diff --git a/asset-manifest.json b/asset-manifest.json index 3490112e2e..1e385bd024 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "./static/css/main.4ada0dcb.css", - "main.js": "./static/js/main.efd035ef.js", + "main.js": "./static/js/main.98b8a097.js", "reactPlayerYouTube.js": "./static/js/reactPlayerYouTube.d1edb033.chunk.js", "reactPlayerSoundCloud.js": "./static/js/reactPlayerSoundCloud.11c08821.chunk.js", "reactPlayerVimeo.js": "./static/js/reactPlayerVimeo.331d9d72.chunk.js", @@ -21,7 +21,7 @@ "static/media/multisig.png": "./static/media/multisig.3ab2bbc3bda7df25ea83.png", "index.html": "./index.html", "main.4ada0dcb.css.map": "./static/css/main.4ada0dcb.css.map", - "main.efd035ef.js.map": "./static/js/main.efd035ef.js.map", + "main.98b8a097.js.map": "./static/js/main.98b8a097.js.map", "reactPlayerYouTube.d1edb033.chunk.js.map": "./static/js/reactPlayerYouTube.d1edb033.chunk.js.map", "reactPlayerSoundCloud.11c08821.chunk.js.map": "./static/js/reactPlayerSoundCloud.11c08821.chunk.js.map", "reactPlayerVimeo.331d9d72.chunk.js.map": "./static/js/reactPlayerVimeo.331d9d72.chunk.js.map", @@ -38,6 +38,6 @@ }, "entrypoints": [ "static/css/main.4ada0dcb.css", - "static/js/main.efd035ef.js" + "static/js/main.98b8a097.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 3b317491a0..312ed9d14d 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Umami
\ No newline at end of file +Umami
\ No newline at end of file diff --git a/static/js/main.efd035ef.js b/static/js/main.98b8a097.js similarity index 80% rename from static/js/main.efd035ef.js rename to static/js/main.98b8a097.js index cab0fdfabb..8b01aa28fe 100644 --- a/static/js/main.efd035ef.js +++ b/static/js/main.98b8a097.js @@ -1,4 +1,4 @@ -/*! For license information please see main.efd035ef.js.LICENSE.txt */ +/*! For license information please see main.98b8a097.js.LICENSE.txt */ (()=>{var e={5679:(e,t)=>{var r;function n(e,t){navigator.onLine||e("offline"),e("error",t)}function i(e,t,r){navigator.serviceWorker.register(e,r).then((function(e){t("registered",e),e.waiting?t("updated",e):e.onupdatefound=function(){t("updatefound",e);var r=e.installing;r.onstatechange=function(){"installed"===r.state&&(navigator.serviceWorker.controller?t("updated",e):t("cached",e))}}})).catch((function(e){return n(t,e)}))}"undefined"!==typeof window&&(r="undefined"===typeof document||"interactive"!==document.readyState&&"complete"!==document.readyState?"undefined"!==typeof Promise?new Promise((function(e){return window.addEventListener("load",e)})):{then:function(e){return window.addEventListener("load",e)}}:Promise.resolve()),t.s=function(e,t){void 0===t&&(t={});var o=t.registrationOptions;void 0===o&&(o={}),delete t.registrationOptions;var a=function(e){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];t&&t[e]&&t[e].apply(t,r)};"serviceWorker"in navigator&&r.then((function(){Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))?(!function(e,t,r){fetch(e).then((function(n){404===n.status?(t("error",new Error("Service worker not found at "+e)),unregister()):-1===n.headers.get("content-type").indexOf("javascript")?(t("error",new Error("Expected "+e+" to have javascript content-type, but received "+n.headers.get("content-type"))),unregister()):i(e,t,r)})).catch((function(e){return n(t,e)}))}(e,a,o),navigator.serviceWorker.ready.then((function(e){a("ready",e)}))):(i(e,a,o),navigator.serviceWorker.ready.then((function(e){a("ready",e)})))}))}},3656:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!==typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(3656),i=r(3484);class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){n.default.exists(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;no-s&&(this.process(r,0),s=0);for(let n=s;n>i&o),s=Number(r&o),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const c=(0,i.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<>>32-r,rotlSL:(e,t,r)=>t<>>32-r,rotlBH:(e,t,r)=>t<>>64-r,rotlBL:(e,t,r)=>e<>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},5828:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},8484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const n=r(3656),i=r(3484);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,n.default.hash(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let n=0;nnew o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},3379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(3656),i=r(8484),o=r(3484);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:c,dkLen:l,asyncTick:u}=s;if(n.default.number(c),n.default.number(l),n.default.number(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,o.toBytes)(t),h=(0,o.toBytes)(r),f=new Uint8Array(l),p=i.hmac.create(e,d),m=p._cloneInto().update(h);return{c:c,dkLen:l,asyncTick:u,DK:f,PRF:p,PRFSalt:m}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:c,DK:l,PRF:u,PRFSalt:d}=a(e,t,r,n);let h;const f=new Uint8Array(4),p=(0,o.createView)(f),m=new Uint8Array(u.outputLen);for(let o=1,a=0;a{d._cloneInto(f).update(g).digestInto(g);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(80),i=r(3484),o=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let i=0;i<16;i++,t+=4)c[i]=e.getUint32(t,!1);for(let o=16;o<64;o++){const e=c[o-15],t=c[o-2],r=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,n=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;c[o]=n+c[o-7]+r+c[o-16]|0}let{A:r,B:n,C:s,D:l,E:u,F:d,G:h,H:f}=this;for(let m=0;m<64;m++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&d^~p&h)+a[m]+c[m]|0,t=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+o(r,n,s)|0;f=h,h=d,d=u,u=l+e|0,l=s,s=n,n=r,r=e+t|0}var p;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(r,n,s,l,u,d,h,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new l)),t.sha224=(0,i.wrapConstructor)((()=>new u))},8688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const n=r(3656),i=r(8932),o=r(3484),[a,s,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let S=0,k=u,E=1,A=0;S<24;S++){[E,A]=[A,(2*E+3*A)%5],a.push(2*(5*A+E)),s.push((S+1)*(S+2)/2%64);let e=l;for(let t=0;t<7;t++)k=(k<>h)*p)%f,k&d&&(e^=u<<(u<r>32?i.default.rotlBH(e,t,r):i.default.rotlSH(e,t,r),y=(e,t,r)=>r>32?i.default.rotlBL(e,t,r):i.default.rotlSL(e,t,r);function b(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let n=0;n<10;n++)r[n]=e[n]^e[n+10]^e[n+20]^e[n+30]^e[n+40];for(let n=0;n<10;n+=2){const t=(n+8)%10,i=(n+2)%10,o=r[i],a=r[i+1],s=v(o,a,1)^r[t],c=y(o,a,1)^r[t+1];for(let r=0;r<50;r+=10)e[n+r]^=s,e[n+r+1]^=c}let t=e[2],i=e[3];for(let r=0;r<24;r++){const n=s[r],o=v(t,i,n),c=y(t,i,n),l=a[r];t=e[l],i=e[l+1],e[l]=o,e[l+1]=c}for(let n=0;n<50;n+=10){for(let t=0;t<10;t++)r[t]=e[n+t];for(let t=0;t<10;t++)e[n+t]^=~r[(t+2)%10]&r[(t+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}t.keccakP=b;class w extends o.Hash{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){n.default.exists(this);const{blockLen:t,state:r}=this,i=(e=(0,o.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return n.default.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(n.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new w(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=w;const x=(e,t,r)=>(0,o.wrapConstructor)((()=>new w(t,e,r)));t.sha3_224=x(6,144,28),t.sha3_256=x(6,136,32),t.sha3_384=x(6,104,48),t.sha3_512=x(6,72,64),t.keccak_224=x(1,144,28),t.keccak_256=x(1,136,32),t.keccak_384=x(1,104,48),t.keccak_512=x(1,72,64);const _=(e,t,r)=>(0,o.wrapConstructorWithOpts)(((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0)));t.shake128=_(31,168,16),t.shake256=_(31,136,32)},3776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const n=r(80),i=r(8932),o=r(3484),[a,s]=i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),c=new Uint32Array(80),l=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:m}=this;return[e,t,r,n,i,o,a,s,c,l,u,d,h,f,p,m]}set(e,t,r,n,i,o,a,s,c,l,u,d,h,f,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let i=0;i<16;i++,t+=4)c[i]=e.getUint32(t),l[i]=e.getUint32(t+=4);for(let a=16;a<80;a++){const e=0|c[a-15],t=0|l[a-15],r=i.default.rotrSH(e,t,1)^i.default.rotrSH(e,t,8)^i.default.shrSH(e,t,7),n=i.default.rotrSL(e,t,1)^i.default.rotrSL(e,t,8)^i.default.shrSL(e,t,7),o=0|c[a-2],s=0|l[a-2],u=i.default.rotrSH(o,s,19)^i.default.rotrBH(o,s,61)^i.default.shrSH(o,s,6),d=i.default.rotrSL(o,s,19)^i.default.rotrBL(o,s,61)^i.default.shrSL(o,s,6),h=i.default.add4L(n,d,l[a-7],l[a-16]),f=i.default.add4H(h,r,u,c[a-7],c[a-16]);c[a]=0|f,l[a]=0|h}let{Ah:r,Al:n,Bh:o,Bl:u,Ch:d,Cl:h,Dh:f,Dl:p,Eh:m,El:g,Fh:v,Fl:y,Gh:b,Gl:w,Hh:x,Hl:_}=this;for(let S=0;S<80;S++){const e=i.default.rotrSH(m,g,14)^i.default.rotrSH(m,g,18)^i.default.rotrBH(m,g,41),t=i.default.rotrSL(m,g,14)^i.default.rotrSL(m,g,18)^i.default.rotrBL(m,g,41),k=m&v^~m&b,E=g&y^~g&w,A=i.default.add5L(_,t,E,s[S],l[S]),P=i.default.add5H(A,x,e,k,a[S],c[S]),O=0|A,T=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),C=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),j=r&o^r&d^o&d,R=n&u^n&h^u&h;x=0|b,_=0|w,b=0|v,w=0|y,v=0|m,y=0|g,({h:m,l:g}=i.default.add(0|f,0|p,0|P,0|O)),f=0|d,p=0|h,d=0|o,h=0|u,o=0|r,u=0|n;const I=i.default.add3L(O,C,R);r=i.default.add3H(I,P,T,j),n=0|I}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|u)),({h:d,l:h}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|h)),({h:f,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|f,0|p)),({h:m,l:g}=i.default.add(0|this.Eh,0|this.El,0|m,0|g)),({h:v,l:y}=i.default.add(0|this.Fh,0|this.Fl,0|v,0|y)),({h:b,l:w}=i.default.add(0|this.Gh,0|this.Gl,0|b,0|w)),({h:x,l:_}=i.default.add(0|this.Hh,0|this.Hl,0|x,0|_)),this.set(r,n,o,u,d,h,f,p,m,g,v,y,b,w,x,_)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class h extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,o.wrapConstructor)((()=>new u)),t.sha512_224=(0,o.wrapConstructor)((()=>new d)),t.sha512_256=(0,o.wrapConstructor)((()=>new h)),t.sha384=(0,o.wrapConstructor)((()=>new f))},3484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(5828);t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o=0&&ee instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let n=0,i=0;ne().update(a(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(a(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"===typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},3680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5348);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function a(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=o,t.writeInt16LE=o,t.readInt32BE=a,t.readUint32BE=s,t.readInt32LE=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=a(e,t),n=a(e,t+4);return 4294967296*r+n-4294967296*(n>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=l(e,t);return 4294967296*l(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3680),i=r(7772);t.BLOCK_SIZE=128,t.DIGEST_LENGTH=64,t.KEY_LENGTH=64,t.PERSONALIZATION_LENGTH=16,t.SALT_LENGTH=16,t.MAX_LEAF_SIZE=Math.pow(2,32)-1,t.MAX_FANOUT=255,t.MAX_MAX_DEPTH=255;var o=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),a=[[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30],[28,20,8,16,18,30,26,12,2,24,0,4,22,14,10,6],[22,16,24,0,10,4,30,26,20,28,6,12,14,2,18,8],[14,18,6,2,26,24,22,28,4,12,10,20,8,0,30,16],[18,0,10,14,4,8,20,30,28,2,22,24,12,16,6,26],[4,24,12,20,0,22,16,6,8,26,14,10,30,28,2,18],[24,10,2,30,28,26,8,20,0,14,12,6,18,4,16,22],[26,22,14,28,24,2,6,18,10,0,30,8,16,12,4,20],[12,30,28,18,22,6,0,16,24,4,26,14,2,8,20,10],[20,4,16,8,14,12,2,10,30,22,18,28,6,24,26,0],[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30],[28,20,8,16,18,30,26,12,2,24,0,4,22,14,10,6]],s=function(){function e(e,r){if(void 0===e&&(e=64),this.digestLength=e,this.blockSize=t.BLOCK_SIZE,this._state=new Int32Array(o),this._buffer=new Uint8Array(t.BLOCK_SIZE),this._bufferLength=0,this._ctr=new Uint32Array(4),this._flag=new Uint32Array(4),this._lastNode=!1,this._finished=!1,this._vtmp=new Uint32Array(32),this._mtmp=new Uint32Array(32),e<1||e>t.DIGEST_LENGTH)throw new Error("blake2b: wrong digest length");r&&this.validateConfig(r);var i=0;r&&r.key&&(i=r.key.length);var a=1,s=1;r&&r.tree&&(a=r.tree.fanout,s=r.tree.maxDepth),this._state[0]^=e|i<<8|a<<16|s<<24,r&&r.tree&&(this._state[1]^=r.tree.leafSize,this._state[2]^=r.tree.nodeOffsetLowBits,this._state[3]^=r.tree.nodeOffsetHighBits,this._state[4]^=r.tree.nodeDepth|r.tree.innerDigestLength<<8,this._lastNode=r.tree.lastNode),r&&r.salt&&(this._state[8]^=n.readUint32LE(r.salt,0),this._state[9]^=n.readUint32LE(r.salt,4),this._state[10]^=n.readUint32LE(r.salt,8),this._state[11]^=n.readUint32LE(r.salt,12)),r&&r.personalization&&(this._state[12]^=n.readUint32LE(r.personalization,0),this._state[13]^=n.readUint32LE(r.personalization,4),this._state[14]^=n.readUint32LE(r.personalization,8),this._state[15]^=n.readUint32LE(r.personalization,12)),this._initialState=new Uint32Array(this._state),r&&r.key&&i>0&&(this._paddedKey=new Uint8Array(t.BLOCK_SIZE),this._paddedKey.set(r.key),this._buffer.set(this._paddedKey),this._bufferLength=t.BLOCK_SIZE)}return e.prototype.reset=function(){return this._state.set(this._initialState),this._paddedKey?(this._buffer.set(this._paddedKey),this._bufferLength=t.BLOCK_SIZE):this._bufferLength=0,i.wipe(this._ctr),i.wipe(this._flag),this._finished=!1,this},e.prototype.validateConfig=function(e){if(e.key&&e.key.length>t.KEY_LENGTH)throw new Error("blake2b: wrong key length");if(e.salt&&e.salt.length!==t.SALT_LENGTH)throw new Error("blake2b: wrong salt length");if(e.personalization&&e.personalization.length!==t.PERSONALIZATION_LENGTH)throw new Error("blake2b: wrong personalization length");if(e.tree){if(e.tree.fanout<0||e.tree.fanout>t.MAX_FANOUT)throw new Error("blake2b: wrong tree fanout");if(e.tree.maxDepth<0||e.tree.maxDepth>t.MAX_MAX_DEPTH)throw new Error("blake2b: wrong tree depth");if(e.tree.leafSize<0||e.tree.leafSize>t.MAX_LEAF_SIZE)throw new Error("blake2b: wrong leaf size");if(e.tree.innerDigestLength<0||e.tree.innerDigestLength>t.DIGEST_LENGTH)throw new Error("blake2b: wrong tree inner digest length")}},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("blake2b: can't update because hash was finished.");var n=t.BLOCK_SIZE-this._bufferLength,i=0;if(0===r)return this;if(r>n){for(var o=0;ot.BLOCK_SIZE;){for(o=0;o>>16,S=65535&p,k=p>>>16;_+=m>>>16,S+=65535&g,k+=g>>>16,S+=(_+=(x+=65535&m)>>>16)>>>16,x=65535&(f=65535&x|_<<16),_=f>>>16,S=65535&(p=65535&S|(k+=S>>>16)<<16),k=p>>>16,_+=l>>>16,S+=65535&u,k+=u>>>16,f=65535&(x+=65535&l)|(_+=x>>>16)<<16,x=w^=p=65535&(S+=_>>>16)|(k+=S>>>16)<<16,w=b^=f,b=x,x=65535&v,_=v>>>16,S=65535&y,k=y>>>16,_+=b>>>16,S+=65535&w,k+=w>>>16,x=(m^=v=65535&(x+=65535&b)|(_+=x>>>16)<<16)<<8|(g^=y=65535&(S+=_>>>16)|(k+=S>>>16)<<16)>>>24,m=g<<8|m>>>24,g=x,x=65535&f,_=f>>>16,S=65535&p,k=p>>>16,_+=m>>>16,S+=65535&g,k+=g>>>16,S+=(_+=(x+=65535&m)>>>16)>>>16,x=65535&(f=65535&x|_<<16),_=f>>>16,S=65535&(p=65535&S|(k+=S>>>16)<<16),k=p>>>16,_+=d>>>16,S+=65535&h,k+=h>>>16,x=(b^=f=65535&(x+=65535&d)|(_+=x>>>16)<<16)<<16|(w^=p=65535&(S+=_>>>16)|(k+=S>>>16)<<16)>>>16,b=w<<16|b>>>16,w=x,x=65535&v,_=v>>>16,S=65535&y,k=y>>>16,_+=b>>>16,S+=65535&w,k+=w>>>16,x=(g^=y=65535&(S+=(_+=(x+=65535&b)>>>16)>>>16)|(k+=S>>>16)<<16)<<1|(m^=v=65535&x|_<<16)>>>31,m=m<<1|g>>>31,g=x,e[t]=f,e[o]=p,e[r]=m,e[a]=g,e[n]=v,e[s]=y,e[i]=b,e[c]=w},e.prototype._incrementCounter=function(e){for(var t=0;t<3;t++){var r=this._ctr[t]+e;if(this._ctr[t]=r>>>0,this._ctr[t]===r)return;e=1}},e.prototype._processBlock=function(e){this._incrementCounter(e);var t=this._vtmp;t.set(this._state),t.set(o,16),t[24]^=this._ctr[0],t[25]^=this._ctr[1],t[26]^=this._ctr[2],t[27]^=this._ctr[3],t[28]^=this._flag[0],t[29]^=this._flag[1],t[30]^=this._flag[2],t[31]^=this._flag[3];for(var r=this._mtmp,i=0;i<32;i++)r[i]=n.readUint32LE(this._buffer,4*i);for(var s=0;s<12;s++)this._G(t,0,8,16,24,1,9,17,25,r[a[s][0]],r[a[s][0]+1],r[a[s][1]],r[a[s][1]+1]),this._G(t,2,10,18,26,3,11,19,27,r[a[s][2]],r[a[s][2]+1],r[a[s][3]],r[a[s][3]+1]),this._G(t,4,12,20,28,5,13,21,29,r[a[s][4]],r[a[s][4]+1],r[a[s][5]],r[a[s][5]+1]),this._G(t,6,14,22,30,7,15,23,31,r[a[s][6]],r[a[s][6]+1],r[a[s][7]],r[a[s][7]+1]),this._G(t,0,10,20,30,1,11,21,31,r[a[s][8]],r[a[s][8]+1],r[a[s][9]],r[a[s][9]+1]),this._G(t,2,12,22,24,3,13,23,25,r[a[s][10]],r[a[s][10]+1],r[a[s][11]],r[a[s][11]+1]),this._G(t,4,14,16,26,5,15,17,27,r[a[s][12]],r[a[s][12]+1],r[a[s][13]],r[a[s][13]+1]),this._G(t,6,8,18,28,7,9,19,29,r[a[s][14]],r[a[s][14]+1],r[a[s][15]],r[a[s][15]+1]);for(i=0;i<16;i++)this._state[i]^=t[i]^t[i+16]},e}();t.BLAKE2b=s,t.hash=function(e,r,n){void 0===r&&(r=t.DIGEST_LENGTH);var i=new s(r,n);i.update(e);var o=i.digest();return i.clean(),o}},8164:(e,t)=>{"use strict";t.W=function(){for(var e=0,t=0;t{"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},7728:(e,t,r)=>{"use strict";t.gL=t.am=t.kq=t.Eh=t.KE=t.gf=t.S=void 0;const n=r(8461),i=r(4024),o=r(7772);function a(e){const t=new Float64Array(16);if(e)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,g(n,r,1-e)}for(let i=0;i<16;i++)e[2*i]=255&n[i],e[2*i+1]=n[i]>>8}function y(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function b(e,t){const r=new Uint8Array(32),n=new Uint8Array(32);return v(r,e),v(n,t),y(r,n)}function w(e){const t=new Uint8Array(32);return v(t,e),1&t[0]}function x(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function _(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function S(e,t,r){let n,i,o=0,a=0,s=0,c=0,l=0,u=0,d=0,h=0,f=0,p=0,m=0,g=0,v=0,y=0,b=0,w=0,x=0,_=0,S=0,k=0,E=0,A=0,P=0,O=0,T=0,C=0,j=0,R=0,I=0,M=0,L=0,N=r[0],D=r[1],z=r[2],B=r[3],F=r[4],U=r[5],$=r[6],H=r[7],V=r[8],q=r[9],K=r[10],W=r[11],G=r[12],Y=r[13],Z=r[14],X=r[15];n=t[0],o+=n*N,a+=n*D,s+=n*z,c+=n*B,l+=n*F,u+=n*U,d+=n*$,h+=n*H,f+=n*V,p+=n*q,m+=n*K,g+=n*W,v+=n*G,y+=n*Y,b+=n*Z,w+=n*X,n=t[1],a+=n*N,s+=n*D,c+=n*z,l+=n*B,u+=n*F,d+=n*U,h+=n*$,f+=n*H,p+=n*V,m+=n*q,g+=n*K,v+=n*W,y+=n*G,b+=n*Y,w+=n*Z,x+=n*X,n=t[2],s+=n*N,c+=n*D,l+=n*z,u+=n*B,d+=n*F,h+=n*U,f+=n*$,p+=n*H,m+=n*V,g+=n*q,v+=n*K,y+=n*W,b+=n*G,w+=n*Y,x+=n*Z,_+=n*X,n=t[3],c+=n*N,l+=n*D,u+=n*z,d+=n*B,h+=n*F,f+=n*U,p+=n*$,m+=n*H,g+=n*V,v+=n*q,y+=n*K,b+=n*W,w+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=n*F,_+=n*U,S+=n*$,k+=n*H,E+=n*V,A+=n*q,P+=n*K,O+=n*W,T+=n*G,C+=n*Y,j+=n*Z,R+=n*X,n=t[13],y+=n*N,b+=n*D,w+=n*z,x+=n*B,_+=n*F,S+=n*U,k+=n*$,E+=n*H,A+=n*V,P+=n*q,O+=n*K,T+=n*W,C+=n*G,j+=n*Y,R+=n*Z,I+=n*X,n=t[14],b+=n*N,w+=n*D,x+=n*z,_+=n*B,S+=n*F,k+=n*U,E+=n*$,A+=n*H,P+=n*V,O+=n*q,T+=n*K,C+=n*W,j+=n*G,R+=n*Y,I+=n*Z,M+=n*X,n=t[15],w+=n*N,x+=n*D,_+=n*z,S+=n*B,k+=n*F,E+=n*U,A+=n*$,P+=n*H,O+=n*V,T+=n*q,C+=n*K,j+=n*W,R+=n*G,I+=n*Y,M+=n*Z,L+=n*X,o+=38*x,a+=38*_,s+=38*S,c+=38*k,l+=38*E,u+=38*A,d+=38*P,h+=38*O,f+=38*T,p+=38*C,m+=38*j,g+=38*R,v+=38*I,y+=38*M,b+=38*L,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=m,e[11]=g,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function k(e,t){S(e,t,t)}function E(e,t){const r=a();let n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)k(r,r),2!==n&&4!==n&&S(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function A(e,t){const r=a(),n=a(),i=a(),o=a(),s=a(),c=a(),l=a(),d=a(),h=a();_(r,e[1],e[0]),_(h,t[1],t[0]),S(r,r,h),x(n,e[0],e[1]),x(h,t[0],t[1]),S(n,n,h),S(i,e[3],t[3]),S(i,i,u),S(o,e[2],t[2]),x(o,o,o),_(s,n,r),_(c,o,i),x(l,o,i),x(d,n,r),S(e[0],s,c),S(e[1],d,l),S(e[2],l,c),S(e[3],s,d)}function P(e,t,r){for(let n=0;n<4;n++)g(e[n],t[n],r)}function O(e,t){const r=a(),n=a(),i=a();E(i,t[2]),S(r,t[0],i),S(n,t[1],i),v(e,n),e[31]^=w(r)<<7}function T(e,t,r){p(e[0],s),p(e[1],c),p(e[2],c),p(e[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;P(e,t,i),A(t,e),A(e,e),P(e,t,i)}}function C(e,t){const r=[a(),a(),a(),a()];p(r[0],d),p(r[1],h),p(r[2],c),S(r[3],d,h),T(e,r,t)}function j(e){if(e.length!==t.KE)throw new Error(`ed25519: seed must be ${t.KE} bytes`);const r=(0,i.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;const n=new Uint8Array(32),o=[a(),a(),a(),a()];C(o,r),O(n,o);const s=new Uint8Array(64);return s.set(e),s.set(n,32),{publicKey:n,secretKey:s}}t.Eh=j;const R=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function I(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*R[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*R[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function M(e){const t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;I(e,t)}function L(e,t){const r=a(),n=a(),i=a(),o=a(),u=a(),d=a(),h=a();return p(e[2],c),function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],t),k(i,e[1]),S(o,i,l),_(i,i,e[2]),x(o,e[2],o),k(u,o),k(d,u),S(h,d,u),S(r,h,i),S(r,r,o),function(e,t){const r=a();let n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)k(r,r),1!==n&&S(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(r,r),S(r,r,i),S(r,r,o),S(r,r,o),S(e[0],r,o),k(n,e[0]),S(n,n,o),b(n,i)&&S(e[0],e[0],f),k(n,e[0]),S(n,n,o),b(n,i)?-1:(w(e[0])===t[31]>>7&&_(e[0],s,e[0]),S(e[3],e[0],e[1]),0)}t.kq=function(e,t){const r=new Float64Array(64),n=[a(),a(),a(),a()],o=(0,i.hash)(e.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const c=new i.SHA512;c.update(s.subarray(32)),c.update(t);const l=c.digest();c.clean(),M(l),C(n,l),O(s,n),c.reset(),c.update(s.subarray(0,32)),c.update(e.subarray(32)),c.update(t);const u=c.digest();M(u);for(let i=0;i<32;i++)r[i]=l[i];for(let i=0;i<32;i++)for(let e=0;e<32;e++)r[i+e]+=u[i]*o[e];return I(s.subarray(32),r),s},t.am=function(e){let t=[a(),a(),a(),a()];if(L(t,e))throw new Error("Ed25519: invalid public key");let r=a(),n=a(),i=t[1];x(r,c,i),_(n,c,i),E(n,n),S(r,r,n);let o=new Uint8Array(32);return v(o,r),o},t.gL=function(e){const t=(0,i.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;const r=new Uint8Array(t.subarray(0,32));return(0,o.wipe)(t),r}},3832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},7995:(e,t,r)=>{"use strict";var n=r(3832),i=r(8556),o=r(7772),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},6451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openBox=t.box=t.precomputeSharedKey=t.generateKeyPair=void 0;const n=r(916),i=r(4176),o=r(1072),a=r(7772);var s=r(916);Object.defineProperty(t,"generateKeyPair",{enumerable:!0,get:function(){return s.generateKeyPair}});const c=new Uint8Array(16);function l(e,t){const r=(0,n.scalarMult)(t,e);return(0,i.hsalsa)(r,c,r),r}t.precomputeSharedKey=l,t.box=function(e,t,r,n){const i=l(e,t),s=(0,o.secretBox)(i,r,n);return(0,a.wipe)(i),s},t.openBox=function(e,t,r,n){const i=l(e,t),s=(0,o.openSecretBox)(i,r,n);return(0,a.wipe)(i),s}},6432:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6451),t),i(r(1072),t)},1072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateKey=t.openSecretBox=t.secretBox=void 0;const n=r(4176),i=r(4432),o=r(7772),a=r(8461);t.secretBox=function(e,t,r){if(24!==t.length)throw new Error("secretBox nonce must be 24 bytes");const a=new Uint8Array(64),s=new Uint8Array(32);s.set(t),(0,n.stream)(e,s,a,8);const c=new Uint8Array(16+r.length);for(let n=0;n<32&&n32&&(0,n.streamXOR)(e,s,r.subarray(32),c.subarray(48),8);const l=(0,i.oneTimeAuth)(a.subarray(0,32),c.subarray(16));for(let n=0;n32&&(0,n.streamXOR)(e,s,l.subarray(32),u.subarray(32),8),(0,o.wipe)(c),(0,o.wipe)(a),(0,o.wipe)(s),u},t.generateKey=function(e){return(0,a.randomBytes)(32,e)}},4432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8556),i=r(7772);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var o=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=e[8]|e[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|c<<5);var l=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],v=this._r[3],y=this._r[4],b=this._r[5],w=this._r[6],x=this._r[7],_=this._r[8],S=this._r[9];r>=16;){var k=e[t+0]|e[t+1]<<8;i+=8191&k;var E=e[t+2]|e[t+3]<<8;o+=8191&(k>>>13|E<<3);var A=e[t+4]|e[t+5]<<8;a+=8191&(E>>>10|A<<6);var P=e[t+6]|e[t+7]<<8;s+=8191&(A>>>7|P<<9);var O=e[t+8]|e[t+9]<<8;c+=8191&(P>>>4|O<<12),l+=O>>>1&8191;var T=e[t+10]|e[t+11]<<8;u+=8191&(O>>>14|T<<2);var C=e[t+12]|e[t+13]<<8;d+=8191&(T>>>11|C<<5);var j=e[t+14]|e[t+15]<<8,R=0,I=R;I+=i*p,I+=o*(5*S),I+=a*(5*_),I+=s*(5*x),R=(I+=c*(5*w))>>>13,I&=8191,I+=l*(5*b),I+=u*(5*y),I+=d*(5*v),I+=(h+=8191&(C>>>8|j<<8))*(5*g);var M=R+=(I+=(f+=j>>>5|n)*(5*m))>>>13;M+=i*m,M+=o*p,M+=a*(5*S),M+=s*(5*_),R=(M+=c*(5*x))>>>13,M&=8191,M+=l*(5*w),M+=u*(5*b),M+=d*(5*y),M+=h*(5*v),R+=(M+=f*(5*g))>>>13,M&=8191;var L=R;L+=i*g,L+=o*m,L+=a*p,L+=s*(5*S),R=(L+=c*(5*_))>>>13,L&=8191,L+=l*(5*x),L+=u*(5*w),L+=d*(5*b),L+=h*(5*y);var N=R+=(L+=f*(5*v))>>>13;N+=i*v,N+=o*g,N+=a*m,N+=s*p,R=(N+=c*(5*S))>>>13,N&=8191,N+=l*(5*_),N+=u*(5*x),N+=d*(5*w),N+=h*(5*b);var D=R+=(N+=f*(5*y))>>>13;D+=i*y,D+=o*v,D+=a*g,D+=s*m,R=(D+=c*p)>>>13,D&=8191,D+=l*(5*S),D+=u*(5*_),D+=d*(5*x),D+=h*(5*w);var z=R+=(D+=f*(5*b))>>>13;z+=i*b,z+=o*y,z+=a*v,z+=s*g,R=(z+=c*m)>>>13,z&=8191,z+=l*p,z+=u*(5*S),z+=d*(5*_),z+=h*(5*x);var B=R+=(z+=f*(5*w))>>>13;B+=i*w,B+=o*b,B+=a*y,B+=s*v,R=(B+=c*g)>>>13,B&=8191,B+=l*m,B+=u*p,B+=d*(5*S),B+=h*(5*_);var F=R+=(B+=f*(5*x))>>>13;F+=i*x,F+=o*w,F+=a*b,F+=s*y,R=(F+=c*v)>>>13,F&=8191,F+=l*g,F+=u*m,F+=d*p,F+=h*(5*S);var U=R+=(F+=f*(5*_))>>>13;U+=i*_,U+=o*x,U+=a*w,U+=s*b,R=(U+=c*y)>>>13,U&=8191,U+=l*v,U+=u*g,U+=d*m,U+=h*p;var $=R+=(U+=f*(5*S))>>>13;$+=i*S,$+=o*_,$+=a*x,$+=s*w,R=($+=c*b)>>>13,$&=8191,$+=l*y,$+=u*v,$+=d*g,$+=h*m,i=I=8191&(R=(R=((R+=($+=f*p)>>>13)<<2)+R|0)+(I&=8191)|0),o=M+=R>>>=13,a=L&=8191,s=N&=8191,c=D&=8191,l=z&=8191,u=B&=8191,d=F&=8191,h=U&=8191,f=$&=8191,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const n=r(8020),i=r(3680),o=r(7772);function a(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){const r=a(4,e),n=(0,i.readUint32LE)(r);return(0,o.wipe)(r),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=s,n=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,l=256-256%c;for(;e>0;){const t=a(Math.ceil(256*e/l),n);for(let n=0;n0;n++){const o=t[n];o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const n=r(7772);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=r(5924);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const n=r(152),i=r(9396);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},2344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3680),i=r(7772),o=20;function a(e,t,r){for(var i,a=1634760805,s=r[3]<<24|r[2]<<16|r[1]<<8|r[0],c=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],u=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=857760878,h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],g=2036477234,v=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],b=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],x=1797285236,_=a,S=s,k=c,E=l,A=u,P=d,O=h,T=f,C=p,j=m,R=g,I=v,M=y,L=b,N=w,D=x,z=0;z>>25)+_|0)<<9|i>>>23)+A|0)<<13|i>>>19)+C|0)<<18|i>>>14,P^=(i=(S^=(i=(L^=(i=(j^=(i=P+S|0)<<7|i>>>25)+P|0)<<9|i>>>23)+j|0)<<13|i>>>19)+L|0)<<18|i>>>14,R^=(i=(O^=(i=(k^=(i=(N^=(i=R+O|0)<<7|i>>>25)+R|0)<<9|i>>>23)+N|0)<<13|i>>>19)+k|0)<<18|i>>>14,D^=(i=(I^=(i=(T^=(i=(E^=(i=D+I|0)<<7|i>>>25)+D|0)<<9|i>>>23)+E|0)<<13|i>>>19)+T|0)<<18|i>>>14,_^=(i=(E^=(i=(k^=(i=(S^=(i=_+E|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+k|0)<<18|i>>>14,P^=(i=(A^=(i=(T^=(i=(O^=(i=P+A|0)<<7|i>>>25)+P|0)<<9|i>>>23)+O|0)<<13|i>>>19)+T|0)<<18|i>>>14,R^=(i=(j^=(i=(C^=(i=(I^=(i=R+j|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+C|0)<<18|i>>>14,D^=(i=(N^=(i=(L^=(i=(M^=(i=D+N|0)<<7|i>>>25)+D|0)<<9|i>>>23)+M|0)<<13|i>>>19)+L|0)<<18|i>>>14;n.writeUint32LE(_+a|0,e,0),n.writeUint32LE(S+s|0,e,4),n.writeUint32LE(k+c|0,e,8),n.writeUint32LE(E+l|0,e,12),n.writeUint32LE(A+u|0,e,16),n.writeUint32LE(P+d|0,e,20),n.writeUint32LE(O+h|0,e,24),n.writeUint32LE(T+f|0,e,28),n.writeUint32LE(C+p|0,e,32),n.writeUint32LE(j+m|0,e,36),n.writeUint32LE(R+g|0,e,40),n.writeUint32LE(I+v|0,e,44),n.writeUint32LE(M+y|0,e,48),n.writeUint32LE(L+b|0,e,52),n.writeUint32LE(N+w|0,e,56),n.writeUint32LE(D+x|0,e,60)}function s(e,t,r,n,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("Salsa20: key size must be 32 bytes");if(n.length>>=8,t++;if(n>0)throw new Error("Salsa20: counter overflow")}t.streamXOR=s,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),s(e,t,r,r,n)}},4024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3680),i=r(7772);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t/536870912|0,o=t<<3,a=t%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(e,t,r,i,o,s,c){for(var l,u,d,h,f,p,m,g,v=r[0],y=r[1],b=r[2],w=r[3],x=r[4],_=r[5],S=r[6],k=r[7],E=i[0],A=i[1],P=i[2],O=i[3],T=i[4],C=i[5],j=i[6],R=i[7];c>=128;){for(var I=0;I<16;I++){var M=8*I+s;e[I]=n.readUint32BE(o,M),t[I]=n.readUint32BE(o,M+4)}for(I=0;I<80;I++){var L,N,D=v,z=y,B=b,F=w,U=x,$=_,H=S,V=E,q=A,K=P,W=O,G=T,Y=C,Z=j;if(f=65535&(u=R),p=u>>>16,m=65535&(l=k),g=l>>>16,f+=65535&(u=(T>>>14|x<<18)^(T>>>18|x<<14)^(x>>>9|T<<23)),p+=u>>>16,m+=65535&(l=(x>>>14|T<<18)^(x>>>18|T<<14)^(T>>>9|x<<23)),g+=l>>>16,f+=65535&(u=T&C^~T&j),p+=u>>>16,m+=65535&(l=x&_^~x&S),g+=l>>>16,l=a[2*I],f+=65535&(u=a[2*I+1]),p+=u>>>16,m+=65535&l,g+=l>>>16,l=e[I%16],p+=(u=t[I%16])>>>16,m+=65535&l,g+=l>>>16,m+=(p+=(f+=65535&u)>>>16)>>>16,f=65535&(u=h=65535&f|p<<16),p=u>>>16,m=65535&(l=d=65535&m|(g+=m>>>16)<<16),g=l>>>16,f+=65535&(u=(E>>>28|v<<4)^(v>>>2|E<<30)^(v>>>7|E<<25)),p+=u>>>16,m+=65535&(l=(v>>>28|E<<4)^(E>>>2|v<<30)^(E>>>7|v<<25)),g+=l>>>16,p+=(u=E&A^E&P^A&P)>>>16,m+=65535&(l=v&y^v&b^y&b),g+=l>>>16,L=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,N=65535&f|p<<16,f=65535&(u=W),p=u>>>16,m=65535&(l=F),g=l>>>16,p+=(u=h)>>>16,m+=65535&(l=d),g+=l>>>16,y=D,b=z,w=B,x=F=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,_=U,S=$,k=H,v=L,A=V,P=q,O=K,T=W=65535&f|p<<16,C=G,j=Y,R=Z,E=N,I%16===15)for(M=0;M<16;M++)l=e[M],f=65535&(u=t[M]),p=u>>>16,m=65535&l,g=l>>>16,l=e[(M+9)%16],f+=65535&(u=t[(M+9)%16]),p+=u>>>16,m+=65535&l,g+=l>>>16,d=e[(M+1)%16],f+=65535&(u=((h=t[(M+1)%16])>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),p+=u>>>16,m+=65535&(l=(d>>>1|h<<31)^(d>>>8|h<<24)^d>>>7),g+=l>>>16,d=e[(M+14)%16],p+=(u=((h=t[(M+14)%16])>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26))>>>16,m+=65535&(l=(d>>>19|h<<13)^(h>>>29|d<<3)^d>>>6),g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,e[M]=65535&m|g<<16,t[M]=65535&f|p<<16}f=65535&(u=E),p=u>>>16,m=65535&(l=v),g=l>>>16,l=r[0],p+=(u=i[0])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[0]=v=65535&m|g<<16,i[0]=E=65535&f|p<<16,f=65535&(u=A),p=u>>>16,m=65535&(l=y),g=l>>>16,l=r[1],p+=(u=i[1])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[1]=y=65535&m|g<<16,i[1]=A=65535&f|p<<16,f=65535&(u=P),p=u>>>16,m=65535&(l=b),g=l>>>16,l=r[2],p+=(u=i[2])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[2]=b=65535&m|g<<16,i[2]=P=65535&f|p<<16,f=65535&(u=O),p=u>>>16,m=65535&(l=w),g=l>>>16,l=r[3],p+=(u=i[3])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[3]=w=65535&m|g<<16,i[3]=O=65535&f|p<<16,f=65535&(u=T),p=u>>>16,m=65535&(l=x),g=l>>>16,l=r[4],p+=(u=i[4])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[4]=x=65535&m|g<<16,i[4]=T=65535&f|p<<16,f=65535&(u=C),p=u>>>16,m=65535&(l=_),g=l>>>16,l=r[5],p+=(u=i[5])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[5]=_=65535&m|g<<16,i[5]=C=65535&f|p<<16,f=65535&(u=j),p=u>>>16,m=65535&(l=S),g=l>>>16,l=r[6],p+=(u=i[6])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[6]=S=65535&m|g<<16,i[6]=j=65535&f|p<<16,f=65535&(u=R),p=u>>>16,m=65535&(l=k),g=l>>>16,l=r[7],p+=(u=i[7])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[7]=k=65535&m|g<<16,i[7]=R=65535&f|p<<16,s+=128,c-=128}return s}t.hash=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},3632:(e,t)=>{"use strict";var r="utf8: invalid string",n="utf8: invalid source encoding";function i(e){for(var t=0,n=0;n=e.length-1)throw new Error(r);n++,t+=4}}return t}t.OW=function(e){for(var t=new Uint8Array(i(e)),r=0,n=0;n>6,t[r++]=128|63&o):o<55296?(t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o):(n++,o=(1023&o)<<10,o|=1023&e.charCodeAt(n),o+=65536,t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o)}return t}},7772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X25519Session=t.SECRET_SEED_LENGTH=t.SAVED_STATE_LENGTH=t.ACCEPT_MESSAGE_LENGTH=t.OFFER_MESSAGE_LENGTH=void 0;const n=r(8461),i=r(7772),o=r(916),a=r(3376);t.OFFER_MESSAGE_LENGTH=o.PUBLIC_KEY_LENGTH,t.ACCEPT_MESSAGE_LENGTH=o.PUBLIC_KEY_LENGTH,t.SAVED_STATE_LENGTH=o.SECRET_KEY_LENGTH,t.SECRET_SEED_LENGTH=o.SECRET_KEY_LENGTH;t.X25519Session=class{constructor(e,r){this.offerMessageLength=t.OFFER_MESSAGE_LENGTH,this.acceptMessageLength=t.ACCEPT_MESSAGE_LENGTH,this.sharedKeyLength=o.SHARED_KEY_LENGTH,this.savedStateLength=t.SAVED_STATE_LENGTH,this._seed=e||(0,n.randomBytes)(o.SECRET_KEY_LENGTH,r)}saveState(){return new Uint8Array(this._seed)}restoreState(e){return this._seed=new Uint8Array(e),this}clean(){this._seed&&(0,i.wipe)(this._seed),this._keyPair&&((0,i.wipe)(this._keyPair.secretKey),(0,i.wipe)(this._keyPair.publicKey)),this._sharedKey&&(0,i.wipe)(this._sharedKey),this._sessionKeys&&((0,i.wipe)(this._sessionKeys.receive),(0,i.wipe)(this._sessionKeys.send))}offer(){return this._keyPair=(0,o.generateKeyPairFromSeed)(this._seed),new Uint8Array(this._keyPair.publicKey)}accept(e){if(this._keyPair)throw new Error("X25519Session: accept shouldn't be called by offering party");if(e.length!==this.offerMessageLength)throw new Error("X25519Session: incorrect offer message length");if(this._sharedKey)throw new Error("X25519Session: accept was already called");const t=(0,o.generateKeyPairFromSeed)(this._seed);return this._sharedKey=(0,o.sharedKey)(t.secretKey,e),this._sessionKeys=(0,a.clientSessionKeysFromSharedKey)(this._sharedKey,t.publicKey,e),(0,i.wipe)(t.secretKey),t.publicKey}finish(e){if(e.length!==this.acceptMessageLength)throw new Error("X25519Session: incorrect accept message length");if(!this._keyPair)throw new Error("X25519Session: no offer state");if(this._sharedKey)throw new Error("X25519Session: finish was already called");return this._sharedKey=(0,o.sharedKey)(this._keyPair.secretKey,e),this._sessionKeys=(0,a.serverSessionKeysFromSharedKey)(this._sharedKey,this._keyPair.publicKey,e),this}getSharedKey(){if(!this._sharedKey)throw new Error("X25519Session: no shared key established");return new Uint8Array(this._sharedKey)}getSessionKeys(){if(!this._sessionKeys)throw new Error("X25519Session: no shared key established");return{receive:new Uint8Array(this._sessionKeys.receive),send:new Uint8Array(this._sessionKeys.send)}}}},3376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientSessionKeys=t.serverSessionKeys=t.clientSessionKeysFromSharedKey=t.serverSessionKeysFromSharedKey=t.X25519Session=void 0;const n=r(6800),i=r(916);var o=r(7732);Object.defineProperty(t,"X25519Session",{enumerable:!0,get:function(){return o.X25519Session}});const a=32;function s(e,t,r,i=n.BLAKE2b){const o=new i;if(o.digestLength!==2*a)throw new Error("X25519: incorrect digest length");const s=o.update(e).update(r).update(t).digest();return{send:s.subarray(0,a),receive:s.subarray(a)}}function c(e,t,r,i=n.BLAKE2b){const o=new i;if(o.digestLength!==2*a)throw new Error("X25519: incorrect digest length");const s=o.update(e).update(t).update(r).digest();return{receive:s.subarray(0,a),send:s.subarray(a)}}t.serverSessionKeysFromSharedKey=s,t.clientSessionKeysFromSharedKey=c,t.serverSessionKeys=function(e,t,r=n.BLAKE2b){return s((0,i.sharedKey)(e.secretKey,t),e.publicKey,t,r)},t.clientSessionKeys=function(e,t,r=n.BLAKE2b){return c((0,i.sharedKey)(e.secretKey,t),e.publicKey,t,r)}},916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sharedKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.scalarMultBase=t.scalarMult=t.SHARED_KEY_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=void 0;const n=r(8461),i=r(7772);function o(e){const t=new Float64Array(16);if(e)for(let r=0;r=0;--o){const e=r[o>>>3]>>>(7&o)&1;l(i,a,e),l(p,m,e),u(g,i,p),d(i,i,p),u(p,a,m),d(a,a,m),f(m,g),f(v,i),h(i,p,i),h(p,a,g),u(g,i,p),d(i,i,p),f(a,i),d(p,m,v),h(i,p,s),u(i,i,m),h(p,p,i),h(i,m,v),h(m,a,n),f(a,g),l(i,a,e),l(p,m,e)}for(let o=0;o<16;o++)n[o+16]=i[o],n[o+32]=p[o],n[o+48]=a[o],n[o+64]=m[o];const y=n.subarray(32),b=n.subarray(16);!function(e,t){const r=o();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)f(r,r),2!==n&&4!==n&&h(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}(y,y),h(b,b,y);const w=new Uint8Array(32);return function(e,t){const r=o(),n=o();for(let i=0;i<16;i++)n[i]=t[i];c(n),c(n),c(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,l(n,r,1-e)}for(let i=0;i<16;i++)e[2*i]=255&n[i],e[2*i+1]=n[i]>>8}(w,b),w}function m(e){return p(e,a)}function g(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const r=new Uint8Array(e);return{publicKey:m(r),secretKey:r}}t.scalarMult=p,t.scalarMultBase=m,t.generateKeyPairFromSeed=g,t.generateKeyPair=function(e){const t=(0,n.randomBytes)(32,e),r=g(t);return(0,i.wipe)(t),r},t.sharedKey=function(e,r,n=!1){if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(r.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const i=p(e,r);if(n){let e=0;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3680),i=r(2344),o=r(7772);function a(e,t,r,n,a){if(void 0===a&&(a=0),0===a){if(24!==t.length)throw new Error("XSalsa20 nonce must be 24 bytes")}else if(32!==t.length)throw new Error("XSalsa20 nonce with counter must be 32 bytes");var s=c(e,t.subarray(0,16),new Uint8Array(32)),l=i.streamXOR(s,t.subarray(16),r,n,a);return o.wipe(s),l}t.streamXOR=a,t.stream=function(e,t,r,n){return void 0===n&&(n=0),o.wipe(r),a(e,t,r,r,n)};var s=20;function c(e,t,r){for(var i,o=1634760805,a=e[3]<<24|e[2]<<16|e[1]<<8|e[0],c=e[7]<<24|e[6]<<16|e[5]<<8|e[4],l=e[11]<<24|e[10]<<16|e[9]<<8|e[8],u=e[15]<<24|e[14]<<16|e[13]<<8|e[12],d=857760878,h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],g=2036477234,v=e[19]<<24|e[18]<<16|e[17]<<8|e[16],y=e[23]<<24|e[22]<<16|e[21]<<8|e[20],b=e[27]<<24|e[26]<<16|e[25]<<8|e[24],w=e[31]<<24|e[30]<<16|e[29]<<8|e[28],x=1797285236,_=0;_>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+p|0)<<18|i>>>14,d^=(i=(a^=(i=(b^=(i=(m^=(i=d+a|0)<<7|i>>>25)+d|0)<<9|i>>>23)+m|0)<<13|i>>>19)+b|0)<<18|i>>>14,g^=(i=(h^=(i=(c^=(i=(w^=(i=g+h|0)<<7|i>>>25)+g|0)<<9|i>>>23)+w|0)<<13|i>>>19)+c|0)<<18|i>>>14,x^=(i=(v^=(i=(f^=(i=(l^=(i=x+v|0)<<7|i>>>25)+x|0)<<9|i>>>23)+l|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(l^=(i=(c^=(i=(a^=(i=o+l|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+c|0)<<18|i>>>14,d^=(i=(u^=(i=(f^=(i=(h^=(i=d+u|0)<<7|i>>>25)+d|0)<<9|i>>>23)+h|0)<<13|i>>>19)+f|0)<<18|i>>>14,g^=(i=(m^=(i=(p^=(i=(v^=(i=g+m|0)<<7|i>>>25)+g|0)<<9|i>>>23)+v|0)<<13|i>>>19)+p|0)<<18|i>>>14,x^=(i=(w^=(i=(b^=(i=(y^=(i=x+w|0)<<7|i>>>25)+x|0)<<9|i>>>23)+y|0)<<13|i>>>19)+b|0)<<18|i>>>14;return n.writeUint32LE(o,r,0),n.writeUint32LE(d,r,4),n.writeUint32LE(g,r,8),n.writeUint32LE(x,r,12),n.writeUint32LE(h,r,16),n.writeUint32LE(f,r,20),n.writeUint32LE(p,r,24),n.writeUint32LE(m,r,28),r}t.hsalsa=c},8728:e=>{"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,l=new Uint8Array(o);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d>>0,l[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,r++}for(var f=o-i;f!==o&&0===l[f];)f++;for(var p=new Uint8Array(n+(o-f)),m=n;f!==o;)p[m++]=l[f++];return p}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var c=(o-i)*l+1>>>0,u=new Uint8Array(c);i!==o;){for(var d=t[i],h=0,f=c-1;(0!==d||h>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");n=h,i++}for(var p=c-n;p!==c&&0===u[p];)p++;for(var m=s.repeat(r);p{const n=r(8728);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},2588:(e,t,r)=>{"use strict";var n=r(2200);e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=Uint8Array.from(t),i=e(r),o=r.length+4,a=new Uint8Array(o);return a.set(r,0),a.set(i.subarray(0,4),r.length),n.encode(a,o)},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},5272:(e,t,r)=>{"use strict";var{sha256:n}=r(7680),i=r(2588);e.exports=i((function(e){return n(n(e))}))},5628:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(4111).Buffer}catch(O){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(O){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?m+r:h[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var l=1;l>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[l]=0|d,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,x=b>>>13,_=0|a[4],S=8191&_,k=_>>>13,E=0|a[5],A=8191&E,P=E>>>13,O=0|a[6],T=8191&O,C=O>>>13,j=0|a[7],R=8191&j,I=j>>>13,M=0|a[8],L=8191&M,N=M>>>13,D=0|a[9],z=8191&D,B=D>>>13,F=0|s[0],U=8191&F,$=F>>>13,H=0|s[1],V=8191&H,q=H>>>13,K=0|s[2],W=8191&K,G=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(h,U)|0))<<13)|0;l=((o=Math.imul(h,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,$))+Math.imul(m,U)|0,o=Math.imul(m,$);var ve=(l+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,V)|0))<<13)|0;l=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,$))+Math.imul(y,U)|0,o=Math.imul(y,$),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,q)|0;var ye=(l+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,$))+Math.imul(x,U)|0,o=Math.imul(x,$),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var be=(l+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,$))+Math.imul(k,U)|0,o=Math.imul(k,$),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,q)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0;var we=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,$))+Math.imul(P,U)|0,o=Math.imul(P,$),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var xe=(l+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,$))+Math.imul(C,U)|0,o=Math.imul(C,$),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,q)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,X)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var _e=(l+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,$))+Math.imul(I,U)|0,o=Math.imul(I,$),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(l+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,$))+Math.imul(N,U)|0,o=Math.imul(N,$),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var ke=(l+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(z,U),i=(i=Math.imul(z,$))+Math.imul(B,U)|0,o=Math.imul(B,$),n=n+Math.imul(L,V)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,le)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ee=(l+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(z,V),i=(i=Math.imul(z,q))+Math.imul(B,V)|0,o=Math.imul(B,q),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,le)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(z,W),i=(i=Math.imul(z,G))+Math.imul(B,W)|0,o=Math.imul(B,G),n=n+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,he)|0;var Pe=(l+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(z,Z),i=(i=Math.imul(z,X))+Math.imul(B,Z)|0,o=Math.imul(B,X),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var Oe=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;l=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,de)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,re),i=(i=Math.imul(z,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,he)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(z,oe),i=(i=Math.imul(z,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,he)|0;var je=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(z,ce),i=(i=Math.imul(z,le))+Math.imul(B,ce)|0,o=Math.imul(B,le),n=n+Math.imul(L,de)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(z,de),i=(i=Math.imul(z,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var Ie=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Me=(l+(n=Math.imul(z,pe))|0)+((8191&(i=(i=Math.imul(z,me))+Math.imul(B,pe)|0))<<13)|0;return l=((o=Math.imul(B,me))+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,c[0]=ge,c[1]=ve,c[2]=ye,c[3]=be,c[4]=we,c[5]=xe,c[6]=_e,c[7]=Se,c[8]=ke,c[9]=Ee,c[10]=Ae,c[11]=Pe,c[12]=Oe,c[13]=Te,c[14]=Ce,c[15]=je,c[16]=Re,c[17]=Ie,c[18]=Me,0!==l&&(c[19]=l,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function y(e,t,r){return v(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?v(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;0===(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new A(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function S(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function P(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(_,x),_.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new S;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var d=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new P(e)},i(P,A),P.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},P.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},P.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},P.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},P.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},9036:(e,t,r)=>{"use strict";var n=r(1868).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,u=new Uint8Array(a);e[r];){var d=t[e.charCodeAt(r)];if(255===d)return;for(var h=0,f=a-1;(0!==d||h>>0,u[f]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=h,r++}for(var p=a-o;p!==a&&0===u[p];)p++;var m=n.allocUnsafe(i+(a-p));m.fill(0,0,i);for(var g=i;p!==a;)m[g++]=u[p++];return m}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var l=(a-o)*u+1>>>0,d=new Uint8Array(l);o!==a;){for(var h=t[o],f=0,p=l-1;(0!==h||f>>0,d[p]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=f,o++}for(var m=l-i;m!==l&&0===d[m];)m++;for(var g=c.repeat(r);m{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],l=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),u=0,d=c>0?a-4:a;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;sl?l:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},5176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};let i;t.wordlists=n,t._default=i;try{t._default=i=r(1196),n.czech=i}catch(o){}try{t._default=i=r(9972),n.chinese_simplified=i}catch(o){}try{t._default=i=r(176),n.chinese_traditional=i}catch(o){}try{t._default=i=r(3468),n.korean=i}catch(o){}try{t._default=i=r(9488),n.french=i}catch(o){}try{t._default=i=r(5908),n.italian=i}catch(o){}try{t._default=i=r(2976),n.spanish=i}catch(o){}try{t._default=i=r(4134),n.japanese=i,n.JA=i}catch(o){}try{t._default=i=r(104),n.portuguese=i}catch(o){}try{t._default=i=r(2968),n.english=i,n.EN=i}catch(o){}},4192:(e,t,r)=>{"use strict";var n=r(4240).Buffer;const i=r(7680),o=r(3776),a=r(3379),s=r(3484),c=r(5176);let l=c._default;const u="Invalid mnemonic",d="Invalid entropy",h="Invalid mnemonic checksum",f="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function p(e){return(e||"").normalize("NFKD")}function m(e,t,r){for(;e.lengthm(e.toString(2),"0",8))).join("")}function y(e){const t=8*e.length/32,r=i.sha256(Uint8Array.from(e));return v(Array.from(r)).slice(0,t)}function b(e){return"mnemonic"+(e||"")}function w(e,t){if(!(t=t||l))throw new Error(f);const r=p(e).split(" ");if(r.length%3!==0)throw new Error(u);const i=r.map((e=>{const r=t.indexOf(e);if(-1===r)throw new Error(u);return m(r.toString(2),"0",11)})).join(""),o=32*Math.floor(i.length/33),a=i.slice(0,o),s=i.slice(o),c=a.match(/(.{1,8})/g).map(g);if(c.length<16)throw new Error(d);if(c.length>32)throw new Error(d);if(c.length%4!==0)throw new Error(d);const v=n.from(c);if(y(v)!==s)throw new Error(h);return v.toString("hex")}function x(e,t){if(n.isBuffer(e)||(e=n.from(e,"hex")),!(t=t||l))throw new Error(f);if(e.length<16)throw new TypeError(d);if(e.length>32)throw new TypeError(d);if(e.length%4!==0)throw new TypeError(d);const r=(v(Array.from(e))+y(e)).match(/(.{1,11})/g).map((e=>{const r=g(e);return t[r]}));return"\u3042\u3044\u3053\u304f\u3057\u3093"===t[0]?r.join("\u3000"):r.join(" ")}t.yW=function(e,t){const r=Uint8Array.from(n.from(p(e),"utf8")),i=Uint8Array.from(n.from(b(p(t)),"utf8")),s=a.pbkdf2(o.sha512,r,i,{c:2048,dkLen:64});return n.from(s)},t.Ap=function(e,t,r){if((e=e||128)%32!==0)throw new TypeError(d);return x((t=t||(e=>n.from(s.randomBytes(e))))(e/8),r)},t.oT=function(e,t){try{w(e,t)}catch(r){return!1}return!0};var _=r(5176);t.WM=_.wordlists},232:(e,t,r)=>{const n=r(7608);function i(e,t,r){const n=e[t]+e[r];let i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function o(e,t,r,n){let i=e[t]+r;r<0&&(i+=4294967296);let o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,r,n,a,s){const c=d[a],l=d[a+1],h=d[s],f=d[s+1];i(u,e,t),o(u,e,c,l);let p=u[n]^u[e],m=u[n+1]^u[e+1];u[n]=m,u[n+1]=p,i(u,r,n),p=u[t]^u[r],m=u[t+1]^u[r+1],u[t]=p>>>24^m<<8,u[t+1]=m>>>24^p<<8,i(u,e,t),o(u,e,h,f),p=u[n]^u[e],m=u[n+1]^u[e+1],u[n]=p>>>16^m<<16,u[n+1]=m>>>16^p<<16,i(u,r,n),p=u[t]^u[r],m=u[t+1]^u[r+1],u[t]=m>>>31^p<<1,u[t+1]=p>>>31^m<<1}const c=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),u=new Uint32Array(32),d=new Uint32Array(32);function h(e,t){let r=0;for(r=0;r<16;r++)u[r]=e.h[r],u[r+16]=c[r];for(u[24]=u[24]^e.t,u[25]=u[25]^e.t/4294967296,t&&(u[28]=~u[28],u[29]=~u[29]),r=0;r<32;r++)d[r]=a(e.b,4*r);for(r=0;r<12;r++)s(0,8,16,24,l[16*r+0],l[16*r+1]),s(2,10,18,26,l[16*r+2],l[16*r+3]),s(4,12,20,28,l[16*r+4],l[16*r+5]),s(6,14,22,30,l[16*r+6],l[16*r+7]),s(0,10,20,30,l[16*r+8],l[16*r+9]),s(2,12,22,24,l[16*r+10],l[16*r+11]),s(4,14,16,26,l[16*r+12],l[16*r+13]),s(6,8,18,28,l[16*r+14],l[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^u[r]^u[r+16]}const f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,r,n){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(r&&16!==r.length)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&16!==n.length)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};f.fill(0),f[0]=e,t&&(f[1]=t.length),f[2]=1,f[3]=1,r&&f.set(r,32),n&&f.set(n,48);for(let o=0;o<16;o++)i.h[o]=c[o]^a(f,4*o);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let r=0;r>2]>>8*(3&r);return t}function v(e,t,r,i,o){r=r||64,e=n.normalizeInput(e),i&&(i=n.normalizeInput(i)),o&&(o=n.normalizeInput(o));const a=p(r,t,i,o);return m(a,e),g(a)}e.exports={blake2b:v,blake2bHex:function(e,t,r,i,o){const a=v(e,t,r,i,o);return n.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:g}},6584:(e,t,r)=>{const n=r(7608);function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function o(e,t,r,n,i,o){l[e]=l[e]+l[t]+i,l[n]=a(l[n]^l[e],16),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],12),l[e]=l[e]+l[t]+o,l[n]=a(l[n]^l[e],8),l[r]=l[r]+l[n],l[t]=a(l[t]^l[r],7)}function a(e,t){return e>>>t^e<<32-t}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function d(e,t){let r=0;for(r=0;r<8;r++)l[r]=e.h[r],l[r+8]=s[r];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),r=0;r<16;r++)u[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,u[c[16*r+0]],u[c[16*r+1]]),o(1,5,9,13,u[c[16*r+2]],u[c[16*r+3]]),o(2,6,10,14,u[c[16*r+4]],u[c[16*r+5]]),o(3,7,11,15,u[c[16*r+6]],u[c[16*r+7]]),o(0,5,10,15,u[c[16*r+8]],u[c[16*r+9]]),o(1,6,11,12,u[c[16*r+10]],u[c[16*r+11]]),o(2,7,8,13,u[c[16*r+12]],u[c[16*r+13]]),o(3,4,9,14,u[c[16*r+14]],u[c[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=l[r]^l[r+8]}function h(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");const r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");const n={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(f(n,t),n.c=64),n}function f(e,t){for(let r=0;r>2]>>8*(3&r)&255;return t}function m(e,t,r){r=r||32,e=n.normalizeInput(e);const i=h(r,t);return f(i,e),p(i)}e.exports={blake2s:m,blake2sHex:function(e,t,r){const i=m(e,t,r);return n.toHex(i)},blake2sInit:h,blake2sUpdate:f,blake2sFinal:p}},8832:(e,t,r)=>{const n=r(232),i=r(6584);e.exports={blake2b:n.blake2b,blake2bHex:n.blake2bHex,blake2bInit:n.blake2bInit,blake2bUpdate:n.blake2bUpdate,blake2bFinal:n.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7608:e=>{function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else{if("string"!==typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=(new TextEncoder).encode(e)}return t},toHex:function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")},debugPrint:function(e,r,n){let i="\n"+e+" = ";for(let o=0;o=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2===0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var l=1;l>>26,d=67108863&c,h=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=h;f++){var p=l-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[l]=0|d,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:u[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,x=b>>>13,_=0|a[4],S=8191&_,k=_>>>13,E=0|a[5],A=8191&E,P=E>>>13,O=0|a[6],T=8191&O,C=O>>>13,j=0|a[7],R=8191&j,I=j>>>13,M=0|a[8],L=8191&M,N=M>>>13,D=0|a[9],z=8191&D,B=D>>>13,F=0|s[0],U=8191&F,$=F>>>13,H=0|s[1],V=8191&H,q=H>>>13,K=0|s[2],W=8191&K,G=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,he=ue>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(h,U)|0))<<13)|0;l=((o=Math.imul(h,$))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,$))+Math.imul(m,U)|0,o=Math.imul(m,$);var ve=(l+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,V)|0))<<13)|0;l=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,$))+Math.imul(y,U)|0,o=Math.imul(y,$),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,q)|0;var ye=(l+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,$))+Math.imul(x,U)|0,o=Math.imul(x,$),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,q)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var be=(l+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,$))+Math.imul(k,U)|0,o=Math.imul(k,$),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,q)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,G)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0;var we=(l+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;l=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,$))+Math.imul(P,U)|0,o=Math.imul(P,$),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,q)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var xe=(l+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,$))+Math.imul(C,U)|0,o=Math.imul(C,$),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,q)|0,n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,G)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,X)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var _e=(l+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(h,oe)|0))<<13)|0;l=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,$))+Math.imul(I,U)|0,o=Math.imul(I,$),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,q)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,X)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Se=(l+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(h,ce)|0))<<13)|0;l=((o=o+Math.imul(h,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,$))+Math.imul(N,U)|0,o=Math.imul(N,$),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,G)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var ke=(l+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;l=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(z,U),i=(i=Math.imul(z,$))+Math.imul(B,U)|0,o=Math.imul(B,$),n=n+Math.imul(L,V)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(N,V)|0,o=o+Math.imul(N,q)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,le)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var Ee=(l+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(z,V),i=(i=Math.imul(z,q))+Math.imul(B,V)|0,o=Math.imul(B,q),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,X)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,X)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,le)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(z,W),i=(i=Math.imul(z,G))+Math.imul(B,W)|0,o=Math.imul(B,G),n=n+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,X)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(k,ce)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(x,de)|0,o=o+Math.imul(x,he)|0;var Pe=(l+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(z,Z),i=(i=Math.imul(z,X))+Math.imul(B,Z)|0,o=Math.imul(B,X),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(P,ce)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(k,de)|0,o=o+Math.imul(k,he)|0;var Oe=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;l=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(B,Q)|0,o=Math.imul(B,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,le)|0,n=n+Math.imul(A,de)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(P,de)|0,o=o+Math.imul(P,he)|0;var Te=(l+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(z,re),i=(i=Math.imul(z,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,he)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(z,oe),i=(i=Math.imul(z,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(L,ce)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,he)|0;var je=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(z,ce),i=(i=Math.imul(z,le))+Math.imul(B,ce)|0,o=Math.imul(B,le),n=n+Math.imul(L,de)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,de)|0,o=o+Math.imul(N,he)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(z,de),i=(i=Math.imul(z,he))+Math.imul(B,de)|0,o=Math.imul(B,he);var Ie=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Me=(l+(n=Math.imul(z,pe))|0)+((8191&(i=(i=Math.imul(z,me))+Math.imul(B,pe)|0))<<13)|0;return l=((o=Math.imul(B,me))+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,c[0]=ge,c[1]=ve,c[2]=ye,c[3]=be,c[4]=we,c[5]=xe,c[6]=_e,c[7]=Se,c[8]=ke,c[9]=Ee,c[10]=Ae,c[11]=Pe,c[12]=Oe,c[13]=Te,c[14]=Ce,c[15]=je,c[16]=Re,c[17]=Ie,c[18]=Me,0!==l&&(c[19]=l,r.length++),r};function m(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t),r},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==u||l>=i);l--){var d=0|this.words[l];this.words[l]=u<<26-o|d>>>o,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0===(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0===(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,h=1;0===(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(b,y),b.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g=0;n--){for(var l=t.words[n],u=c-1;u>=0;u--){var d=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,S),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},2052:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(r[c]);if(void 0!==l)return l}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}}if(o>0){var h=Object.keys(i),f=s.default.find(h,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},1152:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r{var n=r(9036);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},184:(e,t,r)=>{"use strict";var n=r(6720),i=r(1868).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},6436:(e,t,r)=>{"use strict";var n=r(424),i=r(184);e.exports=i((function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}))},4240:(e,t,r)=>{"use strict";const n=r(9076),i=r(9347),o="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=s(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!==typeof e.length||Z(e.length)?s(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(i)return n?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return O(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;ni&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128===(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128===(192&r)&&128===(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128===(192&r)&&128===(192&n)&&128===(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),l=this.slice(n,i),u=e.slice(t,r);for(let c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function O(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;in)&&(r=n);let i="";for(let o=t;or)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function M(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function L(e,t,r,n,i){$(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return t=+t,r>>>=0,o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=J((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=J((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||V(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||R(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){I(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=J((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=J((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function $(e,t,r,n,i,o){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||V(t,e.length-(r+1))}(n,i,o)}function H(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,r){if(Math.floor(e)!==e)throw H(e,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=U(String(r)):"bigint"===typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function K(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function W(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},4244:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{var n=r(1868).Buffer,i=r(6624).Transform,o=r(680).o;function a(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(7272)(a,i),a.prototype.update=function(e,t,r){"string"===typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},4029:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";var n=r(7272),i=r(1160),o=r(3280),a=r(6912),s=r(2815);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},9892:(e,t,r)=>{var n=r(1160);e.exports=function(e){return(new n).update(e).digest()}},4248:e=>{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,i=0;n>>6-2*i);return r}};e.exports=r}()},3272:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(r){return!1}}function s(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"===typeof r?r:c}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function c(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?o.arrayMerge(e,r,o):s(e,r,o):n(r,o)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},600:(e,t,r)=>{"use strict";var n=t;n.version=r(5210).WU,n.utils=r(9120),n.rand=r(1152),n.curve=r(9988),n.curves=r(1016),n.ec=r(1484),n.eddsa=r(2360)},5252:(e,t,r)=>{"use strict";var n=r(408),i=r(9120),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=a;u--)c=(c<<1)+n[u];l.push(c)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(a=0;a=0;l--){for(var u=0;l>=0&&0===a[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var d=a[l];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(i[d-1>>1]):c.mixedAdd(i[-d-1>>1].neg()):d>0?c.add(i[d-1>>1]):c.add(i[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){var s,c,l,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,f=0;for(s=0;s=1;s-=2){var m=s-1,g=s;if(1===u[m]&&1===u[g]){var v=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(v[1]=t[m].add(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].add(t[g].neg())):(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=a(r[m],r[g]);for(f=Math.max(b[0].length,f),h[m]=new Array(f),h[g]=new Array(f),c=0;c=0;s--){for(var k=0;s>=0;){var E=!0;for(c=0;c=0&&k++,_=_.dblp(k),s<0)break;for(c=0;c0?l=d[c][A-1>>1]:A<0&&(l=d[c][-A-1>>1].neg()),_="affine"===l.type?_.mixedAdd(l):_.add(l))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i{"use strict";var n=r(9120),i=r(408),o=r(7272),a=r(5252),s=n.assert;function c(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function l(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,a.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),l=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(c,l,d,u)},l.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(n=this.curve._mulA(s)).redAdd(c);this.zOne?(e=a.redSub(s).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(n.redSub(c)),r=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),o=l.redSub(i).redISub(i),e=a.redSub(s).redISub(c).redMul(o),t=l.redMul(n.redSub(c)),r=l.redMul(o))}else n=s.redAdd(c),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(c)),r=n.redMul(o);return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),l=o.redMul(a),u=s.redMul(c),d=o.redMul(c),h=a.redMul(s);return this.curve.point(l,u,h,d)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(u);return this.curve.twisted?(t=n.redMul(l).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(l)):(t=n.redMul(l).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(l)),this.curve.point(d,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},9988:(e,t,r)=>{"use strict";var n=t;n.base=r(5252),n.short=r(7256),n.mont=r(3524),n.edwards=r(7687)},3524:(e,t,r)=>{"use strict";var n=r(408),i=r(7272),o=r(5252),a=r(9120);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},7256:(e,t,r)=>{"use strict";var n=r(9120),i=r(408),o=r(7272),a=r(5252),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,l,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),v=new i(1),y=0;0!==h.cmpn(0);){var b=f.div(h);l=f.sub(b.mul(h)),u=g.sub(b.mul(p));var w=v.sub(b.mul(m));if(!n&&l.cmp(d)<0)t=c.neg(),r=p,n=l.neg(),o=u;else if(n&&2===++y)break;c=l,f=h,h=l,g=p,p=u,v=m,m=w}a=l.neg(),s=u;var x=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(x)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),d=n.redMul(l),h=c.redSqr().redIAdd(u).redISub(d).redISub(d),f=c.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=r.redMul(c),d=s.redSqr().redIAdd(l).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(l)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},1016:(e,t,r)=>{"use strict";var n,i=t,o=r(4400),a=r(9988),s=r(9120).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(4920)}catch(u){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},1484:(e,t,r)=>{"use strict";var n=r(408),i=r(428),o=r(9120),a=r(1016),s=r(1152),c=o.assert,l=r(6628),u=r(7915);function d(e){if(!(this instanceof d))return new d(e);"string"===typeof e&&(c(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new l(this,e)},d.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;;h++){var f=o.k?o.k(h):new n(l.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:g,s:v,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,r.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,l=t.s,d=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=t.r.invm(o),p=o.sub(a).mul(f).umod(o),m=l.mul(f).umod(o);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},6628:(e,t,r)=>{"use strict";var n=r(408),i=r(9120).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return""}},7915:(e,t,r)=>{"use strict";var n=r(408),i=r(9120),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var l=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=c(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(l),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=l(t),r=l(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},2360:(e,t,r)=>{"use strict";var n=r(4400),i=r(1016),o=r(9120),a=o.assert,s=o.parseBytes,c=r(4720),l=r(7352);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},u.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";var n=r(9120),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},7352:(e,t,r)=>{"use strict";var n=r(408),i=r(9120),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},4920:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},9120:(e,t,r)=>{"use strict";var n=t,i=r(408),o=r(5608),a=r(7852);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,c=e.andln(3)+i&3,l=t.andln(3)+o&3;3===c&&(c=-1),3===l&&(l=-1),a=0===(1&c)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==l?c:-c,r[0].push(a),s=0===(1&l)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==c?l:-l,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},3224:e=>{"use strict";function t(e,t){for(const r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}e.exports=function(e,r,n){if(!e||"string"===typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"===typeof r&&(n=r,r=void 0),null!=r&&(n.code=r);try{return t(e,n)}catch(i){n.message=e.message,n.stack=e.stack;const r=function(){};return r.prototype=Object.create(Object.getPrototypeOf(e)),t(new r,n)}}},3352:(e,t,r)=>{"use strict";t.u6=void 0;const n=r(8688),i=r(4136);(0,i.wrapHash)(n.keccak_224),t.u6=(()=>{const e=(0,i.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),(0,i.wrapHash)(n.keccak_384),(0,i.wrapHash)(n.keccak_512)},4136:function(e,t,r){"use strict";e=r.nmd(e);var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=t.wrapHash=t.equalsBytes=t.hexToBytes=t.bytesToUtf8=t.utf8ToBytes=t.createView=t.concatBytes=t.toHex=t.bytesToHex=t.assertBytes=t.assertBool=void 0;const i=n(r(3656)),o=r(3484),a=i.default.bool;t.assertBool=a;const s=i.default.bytes;t.assertBytes=s;var c=r(3484);Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(t,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),t.bytesToUtf8=function(e){if(!(e instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof e);return(new TextDecoder).decode(e)},t.hexToBytes=function(e){const t=e.startsWith("0x")?e.substring(2):e;return(0,o.hexToBytes)(t)},t.equalsBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r(i.default.bytes(t),e(t))},t.crypto=(()=>{const t="object"===typeof self&&"crypto"in self?self.crypto:void 0,r="function"===typeof e.require&&e.require.bind(e);return{node:r&&!t?r("crypto"):void 0,web:t}})()},3684:e=>{"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&m(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,a,l;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"===typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"===typeof c)n(c,this,t);else{var l=c.length,u=p(c,l);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},3349:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,n="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r{"use strict";var n=r(1868).Buffer,i=r(4808).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(7272)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},4400:(e,t,r)=>{var n=t;n.utils=r(384),n.common=r(9840),n.sha=r(2956),n.ripemd=r(2272),n.hmac=r(392),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},9840:(e,t,r)=>{"use strict";var n=r(384),i=r(5608);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o{"use strict";var n=r(384),i=r(5608);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t{"use strict";var n=r(384),i=r(9840),o=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],y=r,b=n,w=i,x=l,_=u,S=0;S<80;S++){var k=a(o(c(r,d(S,n,i,l),e[p[S]+t],h(S)),g[S]),u);r=u,u=l,l=o(i,10),i=n,n=k,k=a(o(c(y,d(79-S,b,w,x),e[m[S]+t],f(S)),v[S]),_),y=_,_=x,x=o(w,10),w=b,b=k}k=s(this.h[1],i,x),this.h[1]=s(this.h[2],l,_),this.h[2]=s(this.h[3],u,y),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,w),this.h[0]=k},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[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],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[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]},2956:(e,t,r)=>{"use strict";t.sha1=r(1268),t.sha224=r(4764),t.sha256=r(7740),t.sha384=r(7536),t.sha512=r(2936)},1268:(e,t,r)=>{"use strict";var n=r(384),i=r(9840),o=r(5244),a=n.rotl32,s=n.sum32,c=n.sum32_5,l=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(384),i=r(7740);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},7740:(e,t,r)=>{"use strict";var n=r(384),i=r(9840),o=r(5244),a=r(5608),s=n.sum32,c=n.sum32_4,l=n.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(384),i=r(2936);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},2936:(e,t,r)=>{"use strict";var n=r(384),i=r(9840),o=r(5608),a=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,l=n.shr64_lo,u=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,v=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function x(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function _(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function O(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function j(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(b,v),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n{"use strict";var n=r(384).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},384:(e,t,r)=>{"use strict";var n=r(5608),i=r(7272);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var c=0,l=t;return c+=(l=l+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,c,l){var u=0,d=t;return u+=(d=d+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,c,l){return t+n+o+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},428:(e,t,r)=>{"use strict";var n=r(4400),i=r(7852),o=r(5608);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length{"use strict";var n=r(9928),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=c(t),m=c(r),g=0;g{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case l:case h:case g:case m:case c:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},9928:(e,t,r)=>{"use strict";e.exports=r(2540)},9347:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,u=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=l}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,l=8*o-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[r+f]=255&a,f+=p,a/=256,l-=8);e[r+f-p]|=128*m}},7272:e=>{"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5404:e=>{function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},5692:(e,t,r)=>{"use strict";var n="undefined"!==typeof JSON?JSON:r(1144),i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in e)t.call(e,n)&&r.push(n);return r};e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r=t.space||"";"number"===typeof r&&(r=Array(r+1).join(" "));var a,s="boolean"===typeof t.cycles&&t.cycles,c=t.replacer||function(e,t){return t},l=t.cmp&&(a=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},i={key:r,value:e[r]};return a(n,i)}}),u=[];return function e(t,a,d,h){var f=r?"\n"+new Array(h+1).join(r):"",p=r?": ":":";if(d&&d.toJSON&&"function"===typeof d.toJSON&&(d=d.toJSON()),void 0!==(d=c.call(t,a,d))){if("object"!==typeof d||null===d)return n.stringify(d);if(i(d)){for(var m=[],g=0;g{"use strict";t.parse=r(7795),t.stringify=r(324)},7795:e=>{"use strict";var t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function o(e){throw{name:"SyntaxError",message:e,at:t,text:n}}function a(e){return e&&e!==r&&o("Expected '"+e+"' instead of '"+r+"'"),r=n.charAt(t),t+=1,r}function s(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),"-"!==r&&"+"!==r||(t+=r,a());r>="0"&&r<="9";)t+=r,a();return e=Number(t),isFinite(e)||o("Bad number"),e}function c(){var e,t,n,s="";if('"'===r)for(;a();){if('"'===r)return a(),s;if("\\"===r)if(a(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(a(),16),isFinite(e));t+=1)n=16*n+e;s+=String.fromCharCode(n)}else{if("string"!==typeof i[r])break;s+=i[r]}else s+=r}o("Bad string")}function l(){for(;r&&r<=" ";)a()}function u(){switch(l(),r){case"{":return function(){var e,t={};if("{"===r){if(a("{"),l(),"}"===r)return a("}"),t;for(;r;){if(e=c(),l(),a(":"),Object.prototype.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=u(),l(),"}"===r)return a("}"),t;a(","),l()}}o("Bad object")}();case"[":return function(){var e=[];if("["===r){if(a("["),l(),"]"===r)return a("]"),e;for(;r;){if(e.push(u()),l(),"]"===r)return a("]"),e;a(","),l()}}o("Bad array")}();case'"':return c();case"-":return s();default:return r>="0"&&r<="9"?s():function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null;default:o("Unexpected '"+r+"'")}}()}}e.exports=function(e,i){var a;return n=e,t=0,r=" ",a=u(),l(),r&&o("Syntax error"),"function"===typeof i?function e(t,r){var n,o,a=t[r];if(a&&"object"===typeof a)for(n in u)Object.prototype.hasOwnProperty.call(a,n)&&("undefined"===typeof(o=e(a,n))?delete a[n]:a[n]=o);return i.call(t,r,a)}({"":a},""):a}},324:e=>{"use strict";var t,r,n,i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=o[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function s(e,i){var o,c,l,u,d,h=t,f=i[e];switch(f&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(e)),"function"===typeof n&&(f=n.call(i,e,f)),typeof f){case"string":return a(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(t+=r,d=[],"[object Array]"===Object.prototype.toString.apply(f)){for(u=f.length,o=0;o{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,n,i){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof n&&(i=n,n={}),n=n||{},i=i||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async=!("async"in n)||!!n.async,a.src=e,n.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,n.attrs),n.text&&(a.text=""+n.text),("onload"in a?t:r)(a,i),a.onload||t(a,i),o.appendChild(a)}},472:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",_="[object Set]",S="[object String]",k="[object Symbol]",E="[object Undefined]",A="[object WeakMap]",P="[object ArrayBuffer]",O="[object DataView]",T=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[s]=j[c]=j[P]=j[u]=j[O]=j[d]=j[h]=j[f]=j[m]=j[g]=j[y]=j[x]=j[_]=j[S]=j[A]=!1;var R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,M=R||I||Function("return this")(),L=t&&!t.nodeType&&t,N=L&&e&&!e.nodeType&&e,D=N&&N.exports===L,z=D&&R.process,B=function(){try{return z&&z.binding&&z.binding("util")}catch(e){}}(),F=B&&B.isTypedArray;function U(e,t){for(var r=-1,n=null==e?0:e.length;++rl))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var h=-1,f=!0,p=r&o?new Ae:void 0;for(s.set(e,t),s.set(t,e);++h-1},ke.prototype.set=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(de||ke),string:new Se}},Ee.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},Ee.prototype.get=function(e){return De(this,e).get(e)},Ee.prototype.has=function(e){return De(this,e).has(e)},Ee.prototype.set=function(e,t){var r=De(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,n),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new ke,this.size=0},Pe.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!de||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ee(n)}return r.set(e,t),this.size=r.size,this};var Be=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ze(e){return null!=e&&"object"==typeof e}var Xe=F?function(e){return function(t){return e(t)}}(F):function(e){return Ze(e)&&Ge(e.length)&&!!j[Ce(e)]};function Je(e){return null!=(t=e)&&Ge(t.length)&&!We(t)?Oe(e):Me(e);var t}e.exports=function(e,t){return Re(e,t)}},2156:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Null]",u="[object Object]",d="[object Proxy]",h="[object Undefined]",f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,w=b&&e&&!e.nodeType&&e,x=w&&w.exports===b,_=x&&g.process,S=function(){try{var e=w&&w.require&&w.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(t){}}(),k=S&&S.isTypedArray;var E,A,P=Array.prototype,O=Function.prototype,T=Object.prototype,C=y["__core-js_shared__"],j=O.toString,R=T.hasOwnProperty,I=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=T.toString,L=j.call(Object),N=RegExp("^"+j.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=x?y.Buffer:void 0,z=y.Symbol,B=y.Uint8Array,F=D?D.allocUnsafe:void 0,U=(E=Object.getPrototypeOf,A=Object,function(e){return E(A(e))}),$=Object.create,H=T.propertyIsEnumerable,V=P.splice,q=z?z.toStringTag:void 0,K=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),W=D?D.isBuffer:void 0,G=Math.max,Y=Date.now,Z=ye(y,"Map"),X=ye(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if($)return $(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(Z||ee),string:new Q}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var r=ve(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Z||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ce,le=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ce?a:++n];if(!1===t(i[s],s,i))break}return e};function ue(e){return null==e?void 0===e?h:l:q&&q in Object(e)?function(e){var t=R.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(o){}var i=M.call(e);n&&(t?e[q]=r:delete e[q]);return i}(e):function(e){return M.call(e)}(e)}function de(e){return je(e)&&ue(e)==o}function he(e){return!(!Ce(e)||function(e){return!!I&&I in e}(e))&&(Oe(e)?N:f).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&R.call(e,n))&&r.push(n);return r}function pe(e,t,r,n,i){e!==t&&le(t,(function(o,a){if(i||(i=new re),Ce(o))!function(e,t,r,n,i,o,a){var s=xe(e,r),c=xe(t,r),l=a.get(c);if(l)return void ie(e,r,l);var d=o?o(s,c,r+"",e,t,a):void 0,h=void 0===d;if(h){var f=Ee(c),p=!f&&Pe(c),m=!f&&!p&&Re(c);d=c,f||p||m?Ee(s)?d=s:je(g=s)&&Ae(g)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function Se(e,t){return e===t||e!==e&&t!==t}var ke=de(function(){return arguments}())?de:function(e){return je(e)&&R.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Ae(e){return null!=e&&Te(e.length)&&!Oe(e)}var Pe=W||function(){return!1};function Oe(e){if(!Ce(e))return!1;var t=ue(e);return t==s||t==c||t==a||t==d}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Re=k?function(e){return function(t){return e(t)}}(k):function(e){return je(e)&&Te(e.length)&&!!m[ue(e)]};function Ie(e){return Ae(e)?ne(e,!0):fe(e)}var Me,Le=(Me=function(e,t,r){pe(e,t,r)},me((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Ae(r)&&be(t,r.length):"string"==n&&t in r)&&Se(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r{e=r.nmd(e);var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Null]",u="[object Object]",d="[object Proxy]",h="[object Undefined]",f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,w=b&&e&&!e.nodeType&&e,x=w&&w.exports===b,_=x&&g.process,S=function(){try{var e=w&&w.require&&w.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(t){}}(),k=S&&S.isTypedArray;var E,A,P=Array.prototype,O=Function.prototype,T=Object.prototype,C=y["__core-js_shared__"],j=O.toString,R=T.hasOwnProperty,I=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=T.toString,L=j.call(Object),N=RegExp("^"+j.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=x?y.Buffer:void 0,z=y.Symbol,B=y.Uint8Array,F=D?D.allocUnsafe:void 0,U=(E=Object.getPrototypeOf,A=Object,function(e){return E(A(e))}),$=Object.create,H=T.propertyIsEnumerable,V=P.splice,q=z?z.toStringTag:void 0,K=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),W=D?D.isBuffer:void 0,G=Math.max,Y=Date.now,Z=ye(y,"Map"),X=ye(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if($)return $(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(Z||ee),string:new Q}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var r=ve(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Z||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ce,le=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ce?a:++n];if(!1===t(i[s],s,i))break}return e};function ue(e){return null==e?void 0===e?h:l:q&&q in Object(e)?function(e){var t=R.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(o){}var i=M.call(e);n&&(t?e[q]=r:delete e[q]);return i}(e):function(e){return M.call(e)}(e)}function de(e){return je(e)&&ue(e)==o}function he(e){return!(!Ce(e)||function(e){return!!I&&I in e}(e))&&(Oe(e)?N:f).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function fe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&R.call(e,n))&&r.push(n);return r}function pe(e,t,r,n,i){e!==t&&le(t,(function(o,a){if(i||(i=new re),Ce(o))!function(e,t,r,n,i,o,a){var s=xe(e,r),c=xe(t,r),l=a.get(c);if(l)return void ie(e,r,l);var d=o?o(s,c,r+"",e,t,a):void 0,h=void 0===d;if(h){var f=Ee(c),p=!f&&Pe(c),m=!f&&!p&&Re(c);d=c,f||p||m?Ee(s)?d=s:je(g=s)&&Ae(g)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function Se(e,t){return e===t||e!==e&&t!==t}var ke=de(function(){return arguments}())?de:function(e){return je(e)&&R.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Ae(e){return null!=e&&Te(e.length)&&!Oe(e)}var Pe=W||function(){return!1};function Oe(e){if(!Ce(e))return!1;var t=ue(e);return t==s||t==c||t==a||t==d}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Re=k?function(e){return function(t){return e(t)}}(k):function(e){return je(e)&&Te(e.length)&&!!m[ue(e)]};function Ie(e){return Ae(e)?ne(e,!0):fe(e)}var Me,Le=(Me=function(e,t,r,n){pe(e,t,r,n)},me((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Ae(r)&&be(t,r.length):"string"==n&&t in r)&&Se(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r"']/g,Z=RegExp(G.source),X=RegExp(Y.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['\u2019]",Re="["+ke+"]",Ie="["+Ce+"]",Me="["+Ee+"]",Le="\\d+",Ne="["+Ae+"]",De="["+Pe+"]",ze="[^"+ke+Ce+Le+Ae+Pe+Oe+"]",Be="\\ud83c[\\udffb-\\udfff]",Fe="[^"+ke+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Oe+"]",Ve="\\u200d",qe="(?:"+De+"|"+ze+")",Ke="(?:"+He+"|"+ze+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Me+"|"+Be+")"+"?",Ze="["+Te+"]?",Xe=Ze+Ye+("(?:"+Ve+"(?:"+[Fe,Ue,$e].join("|")+")"+Ze+Ye+")*"),Je="(?:"+[Ne,Ue,$e].join("|")+")"+Xe,Qe="(?:"+[Fe+Me+"?",Me,Ue,$e,Re].join("|")+")",et=RegExp(je,"g"),tt=RegExp(Me,"g"),rt=RegExp(Be+"(?="+Be+")|"+Qe+Xe,"g"),nt=RegExp([He+"?"+De+"+"+We+"(?="+[Ie,He,"$"].join("|")+")",Ke+"+"+Ge+"(?="+[Ie,He+qe,"$"].join("|")+")",He+"?"+qe+"+"+We,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Je].join("|"),"g"),it=RegExp("["+Ve+ke+Ee+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ct={};ct[N]=ct[D]=ct[z]=ct[B]=ct[F]=ct[U]=ct[$]=ct[H]=ct[V]=!0,ct[y]=ct[b]=ct[M]=ct[w]=ct[L]=ct[x]=ct[_]=ct[S]=ct[E]=ct[A]=ct[P]=ct[T]=ct[C]=ct[j]=ct[I]=!1;var lt={};lt[y]=lt[b]=lt[M]=lt[L]=lt[w]=lt[x]=lt[N]=lt[D]=lt[z]=lt[B]=lt[F]=lt[E]=lt[A]=lt[P]=lt[T]=lt[C]=lt[j]=lt[R]=lt[U]=lt[$]=lt[H]=lt[V]=!0,lt[_]=lt[S]=lt[I]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,ft="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&ft.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,St=wt&&wt.isMap,kt=wt&&wt.isRegExp,Et=wt&&wt.isSet,At=wt&&wt.isTypedArray;function Pt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ot(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Mt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function nr(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var ir=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(e){return"\\"+ut[e]}function sr(e){return it.test(e)}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var vr=function e(t){var r=(t=null==t?mt:vr.defaults(mt.Object(),t,vr.pick(mt,at))).Array,n=t.Date,se=t.Error,ke=t.Function,Ee=t.Math,Ae=t.Object,Pe=t.RegExp,Oe=t.String,Te=t.TypeError,Ce=r.prototype,je=ke.prototype,Re=Ae.prototype,Ie=t["__core-js_shared__"],Me=je.toString,Le=Re.hasOwnProperty,Ne=0,De=function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Re.toString,Be=Me.call(Ae),Fe=mt._,Ue=Pe("^"+Me.call(Le).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=yt?t.Buffer:i,He=t.Symbol,Ve=t.Uint8Array,qe=$e?$e.allocUnsafe:i,Ke=lr(Ae.getPrototypeOf,Ae),We=Ae.create,Ge=Re.propertyIsEnumerable,Ye=Ce.splice,Ze=He?He.isConcatSpreadable:i,Xe=He?He.iterator:i,Je=He?He.toStringTag:i,Qe=function(){try{var e=ho(Ae,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,it=n&&n.now!==mt.Date.now&&n.now,ut=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Ee.ceil,pt=Ee.floor,gt=Ae.getOwnPropertySymbols,vt=$e?$e.isBuffer:i,bt=t.isFinite,wt=Ce.join,Ft=lr(Ae.keys,Ae),Gt=Ee.max,yr=Ee.min,br=n.now,wr=t.parseInt,xr=Ee.random,_r=Ce.reverse,Sr=ho(t,"DataView"),kr=ho(t,"Map"),Er=ho(t,"Promise"),Ar=ho(t,"Set"),Pr=ho(t,"WeakMap"),Or=ho(Ae,"create"),Tr=Pr&&new Pr,Cr={},jr=zo(Sr),Rr=zo(kr),Ir=zo(Er),Mr=zo(Ar),Lr=zo(Pr),Nr=He?He.prototype:i,Dr=Nr?Nr.valueOf:i,zr=Nr?Nr.toString:i;function Br(e){if(ts(e)&&!Va(e)&&!(e instanceof Hr)){if(e instanceof $r)return e;if(Le.call(e,"__wrapped__"))return Bo(e)}return new $r(e)}var Fr=function(){function e(){}return function(t){if(!es(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Ur(){}function $r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cn(e,t,r,n,o,a){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=o?r(e,n,o,a):r(e)),s!==i)return s;if(!es(e))return e;var d=Va(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Ti(e,s)}else{var h=mo(e),f=h==S||h==k;if(Ga(e))return Si(e,c);if(h==P||h==y||f&&!o){if(s=l||f?{}:vo(e),!c)return l?function(e,t){return Ci(e,po(e),t)}(e,function(e,t){return e&&Ci(t,Rs(t),e)}(s,e)):function(e,t){return Ci(e,fo(e),t)}(e,nn(s,e))}else{if(!lt[h])return o?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case M:return ki(e);case w:case x:return new n(+e);case L:return function(e,t){var r=t?ki(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case N:case D:case z:case B:case F:case U:case $:case H:case V:return Ei(e,r);case E:return new n;case A:case j:return new n(e);case T:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new n;case R:return i=e,Dr?Ae(Dr.call(i)):{}}var i}(e,h,c)}}a||(a=new Gr);var p=a.get(e);if(p)return p;a.set(e,s),as(e)?e.forEach((function(n){s.add(cn(n,t,r,n,e,a))})):rs(e)&&e.forEach((function(n,i){s.set(i,cn(n,t,r,i,e,a))}));var m=d?i:(u?l?io:no:l?Rs:js)(e);return Tt(m||e,(function(n,i){m&&(n=e[i=n]),en(s,i,cn(n,t,r,i,e,a))})),s}function ln(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ae(e);n--;){var o=r[n],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Te(o);return jo((function(){e.apply(i,r)}),t)}function dn(e,t,r,n){var i=-1,o=It,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;r&&(t=Lt(t,Qt(r))),n?(o=Mt,a=!1):t.length>=200&&(o=tr,a=!1,t=new Wr(t));e:for(;++i-1},qr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(kr||qr),string:new Vr}},Kr.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return lo(this,e).get(e)},Kr.prototype.has=function(e){return lo(this,e).has(e)},Kr.prototype.set=function(e,t){var r=lo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Wr.prototype.add=Wr.prototype.push=function(e){return this.__data__.set(e,a),this},Wr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new qr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!kr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var hn=Ii(wn),fn=Ii(xn,!0);function pn(e,t){var r=!0;return hn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function mn(e,t,r){for(var n=-1,o=e.length;++n0&&r(s)?t>1?vn(s,t-1,r,n,i):Nt(i,s):n||(i[i.length]=s)}return i}var yn=Mi(),bn=Mi(!0);function wn(e,t){return e&&yn(e,t,js)}function xn(e,t){return e&&bn(e,t,js)}function _n(e,t){return Rt(t,(function(t){return Xa(e[t])}))}function Sn(e,t){for(var r=0,n=(t=bi(t,e)).length;null!=e&&rt}function Pn(e,t){return null!=e&&Le.call(e,t)}function On(e,t){return null!=e&&t in Ae(e)}function Tn(e,t,n){for(var o=n?Mt:It,a=e[0].length,s=e.length,c=s,l=r(s),u=1/0,d=[];c--;){var h=e[c];c&&t&&(h=Lt(h,Qt(t))),u=yr(h.length,u),l[c]=!n&&(t||a>=120&&h.length>=120)?new Wr(c&&h):i}h=e[0];var f=-1,p=l[0];e:for(;++f=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)s!==e&&Ye.call(s,c,1),Ye.call(e,c,1);return e}function Wn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;bo(i)?Ye.call(e,i,1):di(e,i)}}return e}function Gn(e,t){return e+pt(xr()*(t-e+1))}function Yn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=pt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Ro(Po(e,t,nc),e+"")}function Xn(e){return Zr(Fs(e))}function Jn(e,t){var r=Fs(e);return Lo(r,sn(t,0,r.length))}function Qn(e,t,r,n){if(!es(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!cs(a)&&(r?a<=t:a=200){var l=t?null:Yi(e);if(l)return dr(l);a=!1,i=tr,c=new Wr}else c=t?[]:s;e:for(;++n=n?e:ni(e,t,r)}var _i=rt||function(e){return mt.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function ki(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ei(e,t){var r=t?ki(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ai(e,t){if(e!==t){var r=e!==i,n=null===e,o=e===e,a=cs(e),s=t!==i,c=null===t,l=t===t,u=cs(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||n&&s&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&wo(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=Ae(t);++n-1?o[a?t[s]:s]:i}}function Bi(e){return ro((function(t){var r=t.length,n=r,a=$r.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Te(o);if(a&&!c&&"wrapper"==ao(s))var c=new $r([],!0)}for(n=c?n:r;++n1&&w.reverse(),f&&uc))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&r?new Wr:i;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Tt(v,(function(r){var n="_."+r[0];t&r[1]&&!It(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(n),r)))}function Mo(e){var t=0,r=0;return function(){var n=br(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Lo(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,oa(e,r)}));function ha(e){var t=Br(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var pa=ro((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Hr&&bo(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:i}),new $r(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ma=ji((function(e,t,r){Le.call(e,r)?++e[r]:on(e,r,1)}));var ga=zi(Ho),va=zi(Vo);function ya(e,t){return(Va(e)?Tt:hn)(e,co(t,3))}function ba(e,t){return(Va(e)?Ct:fn)(e,co(t,3))}var wa=ji((function(e,t,r){Le.call(e,r)?e[r].push(t):on(e,r,[t])}));var xa=Zn((function(e,t,n){var i=-1,o="function"==typeof t,a=Ka(e)?r(e.length):[];return hn(e,(function(e){a[++i]=o?Pt(t,e,n):Cn(e,t,n)})),a})),_a=ji((function(e,t,r){on(e,r,t)}));function Sa(e,t){return(Va(e)?Lt:Bn)(e,co(t,3))}var ka=ji((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Zn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wo(e,t[0],t[1])?t=[]:r>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Vn(e,vn(t,1),[])})),Aa=it||function(){return mt.Date.now()};function Pa(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Xi(e,d,i,i,i,i,t)}function Oa(e,t){var r;if("function"!=typeof t)throw new Te(o);return e=ps(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Ta=Zn((function(e,t,r){var n=1;if(r.length){var i=ur(r,so(Ta));n|=l}return Xi(e,n,t,r,i)})),Ca=Zn((function(e,t,r){var n=3;if(r.length){var i=ur(r,so(Ca));n|=l}return Xi(t,n,e,r,i)}));function ja(e,t,r){var n,a,s,c,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Te(o);function m(t){var r=n,o=a;return n=a=i,d=t,c=e.apply(o,r)}function g(e){var r=e-u;return u===i||r>=t||r<0||f&&e-d>=s}function v(){var e=Aa();if(g(e))return y(e);l=jo(v,function(e){var r=t-(e-u);return f?yr(r,s-(e-d)):r}(e))}function y(e){return l=i,p&&n?m(e):(n=a=i,c)}function b(){var e=Aa(),r=g(e);if(n=arguments,a=this,u=e,r){if(l===i)return function(e){return d=e,l=jo(v,t),h?m(e):c}(u);if(f)return _i(l),l=jo(v,t),m(u)}return l===i&&(l=jo(v,t)),c}return t=gs(t)||0,es(r)&&(h=!!r.leading,s=(f="maxWait"in r)?Gt(gs(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),b.cancel=function(){l!==i&&_i(l),d=0,n=u=a=l=i},b.flush=function(){return l===i?c:y(Aa())},b}var Ra=Zn((function(e,t){return un(e,1,t)})),Ia=Zn((function(e,t,r){return un(e,gs(t)||0,r)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ma.Cache||Kr),r}function La(e){if("function"!=typeof e)throw new Te(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=Kr;var Na=wi((function(e,t){var r=(t=1==t.length&&Va(t[0])?Lt(t[0],Qt(co())):Lt(vn(t,1),Qt(co()))).length;return Zn((function(n){for(var i=-1,o=yr(n.length,r);++i=t})),Ha=jn(function(){return arguments}())?jn:function(e){return ts(e)&&Le.call(e,"callee")&&!Ge.call(e,"callee")},Va=r.isArray,qa=xt?Qt(xt):function(e){return ts(e)&&En(e)==M};function Ka(e){return null!=e&&Qa(e.length)&&!Xa(e)}function Wa(e){return ts(e)&&Ka(e)}var Ga=vt||gc,Ya=_t?Qt(_t):function(e){return ts(e)&&En(e)==x};function Za(e){if(!ts(e))return!1;var t=En(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!es(e))return!1;var t=En(e);return t==S||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ps(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var rs=St?Qt(St):function(e){return ts(e)&&mo(e)==E};function ns(e){return"number"==typeof e||ts(e)&&En(e)==A}function is(e){if(!ts(e)||En(e)!=P)return!1;var t=Ke(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Me.call(r)==Be}var os=kt?Qt(kt):function(e){return ts(e)&&En(e)==T};var as=Et?Qt(Et):function(e){return ts(e)&&mo(e)==C};function ss(e){return"string"==typeof e||!Va(e)&&ts(e)&&En(e)==j}function cs(e){return"symbol"==typeof e||ts(e)&&En(e)==R}var ls=At?Qt(At):function(e){return ts(e)&&Qa(e.length)&&!!ct[En(e)]};var us=Ki(zn),ds=Ki((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ka(e))return ss(e)?pr(e):Ti(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=mo(e);return(t==E?cr:t==C?dr:Fs)(e)}function fs(e){return e?(e=gs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=fs(e),r=t%1;return t===t?r?t-r:t:0}function ms(e){return e?sn(ps(e),0,g):0}function gs(e){if("number"==typeof e)return e;if(cs(e))return m;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=ve.test(e);return r||be.test(e)?ht(e.slice(2),r?2:8):ge.test(e)?m:+e}function vs(e){return Ci(e,Rs(e))}function ys(e){return null==e?"":li(e)}var bs=Ri((function(e,t){if(ko(t)||Ka(t))Ci(t,js(t),e);else for(var r in t)Le.call(t,r)&&en(e,r,t[r])})),ws=Ri((function(e,t){Ci(t,Rs(t),e)})),xs=Ri((function(e,t,r,n){Ci(t,Rs(t),e,n)})),_s=Ri((function(e,t,r,n){Ci(t,js(t),e,n)})),Ss=ro(an);var ks=Zn((function(e,t){e=Ae(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&wo(t[0],t[1],o)&&(n=1);++r1),t})),Ci(e,io(e),r),n&&(r=cn(r,7,eo));for(var i=t.length;i--;)di(r,t[i]);return r}));var Ns=ro((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return Ps(e,r)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var r=Lt(io(e),(function(e){return[e]}));return t=co(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var zs=Zi(js),Bs=Zi(Rs);function Fs(e){return null==e?[]:er(e,js(e))}var Us=Ni((function(e,t,r){return t=t.toLowerCase(),e+(r?$s(t):t)}));function $s(e){return Zs(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(xe,ir).replace(tt,"")}var Vs=Ni((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=Ni((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ks=Li("toLowerCase");var Ws=Ni((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Gs=Ni((function(e,t,r){return e+(r?" ":"")+Zs(t)}));var Ys=Ni((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Zs=Li("toUpperCase");function Xs(e,t,r){return e=ys(e),(t=r?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Zn((function(e,t){try{return Pt(e,i,t)}catch(r){return Za(r)?r:new se(r)}})),Qs=ro((function(e,t){return Tt(t,(function(t){t=Do(t),on(e,t,Ta(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Bi(),rc=Bi(!0);function nc(e){return e}function ic(e){return Ln("function"==typeof e?e:cn(e,1))}var oc=Zn((function(e,t){return function(r){return Cn(r,e,t)}})),ac=Zn((function(e,t){return function(r){return Cn(e,r,t)}}));function sc(e,t,r){var n=js(t),i=_n(t,n);null!=r||es(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=_n(t,js(t)));var o=!(es(r)&&"chain"in r)||!!r.chain,a=Xa(e);return Tt(i,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Ti(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Nt([this.value()],arguments))})})),e}function cc(){}var lc=Hi(Lt),uc=Hi(jt),dc=Hi(Bt);function hc(e){return xo(e)?Wt(Do(e)):function(e){return function(t){return Sn(t,e)}}(e)}var fc=qi(),pc=qi(!0);function mc(){return[]}function gc(){return!1}var vc=$i((function(e,t){return e+t}),0),yc=Gi("ceil"),bc=$i((function(e,t){return e/t}),1),wc=Gi("floor");var xc=$i((function(e,t){return e*t}),1),_c=Gi("round"),Sc=$i((function(e,t){return e-t}),0);return Br.after=function(e,t){if("function"!=typeof t)throw new Te(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Br.ary=Pa,Br.assign=bs,Br.assignIn=ws,Br.assignInWith=xs,Br.assignWith=_s,Br.at=Ss,Br.before=Oa,Br.bind=Ta,Br.bindAll=Qs,Br.bindKey=Ca,Br.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Br.chain=ha,Br.chunk=function(e,t,n){t=(n?wo(e,t,n):t===i)?1:Gt(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,c=r(ft(o/t));ao?0:o+r),(n=n===i||n>o?o:ps(n))<0&&(n+=o),n=r>n?0:ms(n);r>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&sr(e)?xi(pr(e),0,r):e.split(t,r):[]},Br.spread=function(e,t){if("function"!=typeof e)throw new Te(o);return t=null==t?0:Gt(ps(t),0),Zn((function(r){var n=r[t],i=xi(r,0,t);return n&&Nt(i,n),Pt(e,this,i)}))},Br.tail=function(e){var t=null==e?0:e.length;return t?ni(e,1,t):[]},Br.take=function(e,t,r){return e&&e.length?ni(e,0,(t=r||t===i?1:ps(t))<0?0:t):[]},Br.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ni(e,(t=n-(t=r||t===i?1:ps(t)))<0?0:t,n):[]},Br.takeRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!1,!0):[]},Br.takeWhile=function(e,t){return e&&e.length?fi(e,co(t,3)):[]},Br.tap=function(e,t){return t(e),e},Br.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Te(o);return es(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ja(e,t,{leading:n,maxWait:t,trailing:i})},Br.thru=fa,Br.toArray=hs,Br.toPairs=zs,Br.toPairsIn=Bs,Br.toPath=function(e){return Va(e)?Lt(e,Do):cs(e)?[e]:Ti(No(ys(e)))},Br.toPlainObject=vs,Br.transform=function(e,t,r){var n=Va(e),i=n||Ga(e)||ls(e);if(t=co(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:es(e)&&Xa(o)?Fr(Ke(e)):{}}return(i?Tt:wn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Br.unary=function(e){return Pa(e,1)},Br.union=ta,Br.unionBy=ra,Br.unionWith=na,Br.uniq=function(e){return e&&e.length?ui(e):[]},Br.uniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Br.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Br.unset=function(e,t){return null==e||di(e,t)},Br.unzip=ia,Br.unzipWith=oa,Br.update=function(e,t,r){return null==e?e:hi(e,t,yi(r))},Br.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:hi(e,t,yi(r),n)},Br.values=Fs,Br.valuesIn=function(e){return null==e?[]:er(e,Rs(e))},Br.without=aa,Br.words=Xs,Br.wrap=function(e,t){return Da(yi(t),e)},Br.xor=sa,Br.xorBy=ca,Br.xorWith=la,Br.zip=ua,Br.zipObject=function(e,t){return gi(e||[],t||[],en)},Br.zipObjectDeep=function(e,t){return gi(e||[],t||[],Qn)},Br.zipWith=da,Br.entries=zs,Br.entriesIn=Bs,Br.extend=ws,Br.extendWith=xs,sc(Br,Br),Br.add=vc,Br.attempt=Js,Br.camelCase=Us,Br.capitalize=$s,Br.ceil=yc,Br.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=gs(r))===r?r:0),t!==i&&(t=(t=gs(t))===t?t:0),sn(gs(e),t,r)},Br.clone=function(e){return cn(e,4)},Br.cloneDeep=function(e){return cn(e,5)},Br.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:i)},Br.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:i)},Br.conformsTo=function(e,t){return null==t||ln(e,t,js(t))},Br.deburr=Hs,Br.defaultTo=function(e,t){return null==e||e!==e?t:e},Br.divide=bc,Br.endsWith=function(e,t,r){e=ys(e),t=li(t);var n=e.length,o=r=r===i?n:sn(ps(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Br.eq=Fa,Br.escape=function(e){return(e=ys(e))&&X.test(e)?e.replace(Y,or):e},Br.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Br.every=function(e,t,r){var n=Va(e)?jt:pn;return r&&wo(e,t,r)&&(t=i),n(e,co(t,3))},Br.find=ga,Br.findIndex=Ho,Br.findKey=function(e,t){return Ut(e,co(t,3),wn)},Br.findLast=va,Br.findLastIndex=Vo,Br.findLastKey=function(e,t){return Ut(e,co(t,3),xn)},Br.floor=wc,Br.forEach=ya,Br.forEachRight=ba,Br.forIn=function(e,t){return null==e?e:yn(e,co(t,3),Rs)},Br.forInRight=function(e,t){return null==e?e:bn(e,co(t,3),Rs)},Br.forOwn=function(e,t){return e&&wn(e,co(t,3))},Br.forOwnRight=function(e,t){return e&&xn(e,co(t,3))},Br.get=As,Br.gt=Ua,Br.gte=$a,Br.has=function(e,t){return null!=e&&go(e,t,Pn)},Br.hasIn=Ps,Br.head=Ko,Br.identity=nc,Br.includes=function(e,t,r,n){e=Ka(e)?e:Fs(e),r=r&&!n?ps(r):0;var i=e.length;return r<0&&(r=Gt(i+r,0)),ss(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ht(e,t,r)>-1},Br.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ps(r);return i<0&&(i=Gt(n+i,0)),Ht(e,t,i)},Br.inRange=function(e,t,r){return t=fs(t),r===i?(r=t,t=0):r=fs(r),function(e,t,r){return e>=yr(t,r)&&e=-9007199254740991&&e<=p},Br.isSet=as,Br.isString=ss,Br.isSymbol=cs,Br.isTypedArray=ls,Br.isUndefined=function(e){return e===i},Br.isWeakMap=function(e){return ts(e)&&mo(e)==I},Br.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==En(e)},Br.join=function(e,t){return null==e?"":wt.call(e,t)},Br.kebabCase=Vs,Br.last=Zo,Br.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=ps(r))<0?Gt(n+o,0):yr(o,n-1)),t===t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):$t(e,qt,o,!0)},Br.lowerCase=qs,Br.lowerFirst=Ks,Br.lt=us,Br.lte=ds,Br.max=function(e){return e&&e.length?mn(e,nc,An):i},Br.maxBy=function(e,t){return e&&e.length?mn(e,co(t,2),An):i},Br.mean=function(e){return Kt(e,nc)},Br.meanBy=function(e,t){return Kt(e,co(t,2))},Br.min=function(e){return e&&e.length?mn(e,nc,zn):i},Br.minBy=function(e,t){return e&&e.length?mn(e,co(t,2),zn):i},Br.stubArray=mc,Br.stubFalse=gc,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=xc,Br.nth=function(e,t){return e&&e.length?Hn(e,ps(t)):i},Br.noConflict=function(){return mt._===this&&(mt._=Fe),this},Br.noop=cc,Br.now=Aa,Br.pad=function(e,t,r){e=ys(e);var n=(t=ps(t))?fr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Vi(pt(i),r)+e+Vi(ft(i),r)},Br.padEnd=function(e,t,r){e=ys(e);var n=(t=ps(t))?fr(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=xr();return yr(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Gn(e,t)},Br.reduce=function(e,t,r){var n=Va(e)?Dt:Yt,i=arguments.length<3;return n(e,co(t,4),r,i,hn)},Br.reduceRight=function(e,t,r){var n=Va(e)?zt:Yt,i=arguments.length<3;return n(e,co(t,4),r,i,fn)},Br.repeat=function(e,t,r){return t=(r?wo(e,t,r):t===i)?1:ps(t),Yn(ys(e),t)},Br.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Br.result=function(e,t,r){var n=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=i);++np)return[];var r=g,n=yr(e,g);t=co(t),e-=g;for(var i=Xt(n,t);++r=a)return e;var c=r-fr(n);if(c<1)return n;var l=s?xi(s,0,c).join(""):e.slice(0,c);if(o===i)return l+n;if(s&&(c+=l.length-c),os(o)){if(e.slice(c).search(o)){var u,d=l;for(o.global||(o=Pe(o.source,ys(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;l=l.slice(0,h===i?c:h)}}else if(e.indexOf(li(o),c)!=c){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+n},Br.unescape=function(e){return(e=ys(e))&&Z.test(e)?e.replace(G,gr):e},Br.uniqueId=function(e){var t=++Ne;return ys(e)+t},Br.upperCase=Ys,Br.upperFirst=Zs,Br.each=ya,Br.eachRight=ba,Br.first=Ko,sc(Br,function(){var e={};return wn(Br,(function(t,r){Le.call(Br.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),Br.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Br[e].placeholder=Br})),Tt(["drop","take"],(function(e,t){Hr.prototype[e]=function(r){r=r===i?1:Gt(ps(r),0);var n=this.__filtered__&&!t?new Hr(this):this.clone();return n.__filtered__?n.__takeCount__=yr(r,n.__takeCount__):n.__views__.push({size:yr(r,g),type:e+(n.__dir__<0?"Right":"")}),n},Hr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Hr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Tt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Hr.prototype[e]=function(){return this[r](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Hr.prototype[e]=function(){return this.__filtered__?new Hr(this):this[r](1)}})),Hr.prototype.compact=function(){return this.filter(nc)},Hr.prototype.find=function(e){return this.filter(e).head()},Hr.prototype.findLast=function(e){return this.reverse().find(e)},Hr.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new Hr(this):this.map((function(r){return Cn(r,e,t)}))})),Hr.prototype.reject=function(e){return this.filter(La(co(e)))},Hr.prototype.slice=function(e,t){e=ps(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=ps(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hr.prototype.toArray=function(){return this.take(g)},wn(Hr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Br[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(Br.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof Hr,l=s[0],u=c||Va(t),d=function(e){var t=o.apply(Br,Nt([e],s));return n&&h?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=c&&!f;if(!a&&u){t=m?t:new Hr(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:i}),new $r(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?n?g.value()[0]:g.value():g)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Br.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Va(i)?i:[],e)}return this[r]((function(r){return t.apply(Va(r)?r:[],e)}))}})),wn(Hr.prototype,(function(e,t){var r=Br[t];if(r){var n=r.name+"";Le.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:t,func:r})}})),Cr[Fi(i,2).name]=[{name:"wrapper",func:i}],Hr.prototype.clone=function(){var e=new Hr(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Hr.prototype.reverse=function(){if(this.__filtered__){var e=new Hr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Va(e),n=t<0,i=r?e.length:0,o=function(e,t,r){var n=-1,i=r.length;for(;++n=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Br.prototype.plant=function(e){for(var t,r=this;r instanceof Ur;){var n=Bo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Br.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hr){var t=e;return this.__actions__.length&&(t=new Hr(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:i}),new $r(t,this.__chain__)}return this.thru(ea)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Xe&&(Br.prototype[Xe]=function(){return this}),Br}();mt._=vr,(n=function(){return vr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},2248:function(e,t,r){var n,i;!function(o,a){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if("function"===typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(n){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?o:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function s(t,r){for(var i=0;i=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&u(r),s.call(a,r,e),typeof console===t&&r{"use strict";const n=r(5384),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(e,t,r)=>{const n=e[h].get(t);if(n){const t=n.value;if(g(e,t)){if(y(e,n),!e[s])return}else r&&(e[f]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},v=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[o]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class b{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const w=(e,t,r,n)=>{let i=r.value;g(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"===typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!==typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||p;if(this[a]="function"!==typeof t?p:t,this[s]=e.stale||!1,e.maxAge&&"number"!==typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!==typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!==typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,v(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!==typeof e&&(e=p),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),v(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;w(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[l]&&this[d]&&this[d].length&&this[d].forEach((e=>this[l](e.key,e.value))),this[h]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!==typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[h].has(e)){if(s>this[i])return y(this,this[h].get(e)),!1;const a=this[h].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),v(this),!0}const f=new b(e,t,s,n,r);return f.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=f.length,this[d].unshift(f),this[h].set(e,this[d].head),v(this),!0)}has(e){if(!this[h].has(e))return!1;const t=this[h].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[h].forEach(((e,t)=>m(this,t,!1)))}}},1160:(e,t,r)=>{"use strict";var n=r(7272),i=r(2564),o=r(1868).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function l(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function u(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=l(r,n,i,o,e[0],3614090360,7),o=l(o,r,n,i,e[1],3905402710,12),i=l(i,o,r,n,e[2],606105819,17),n=l(n,i,o,r,e[3],3250441966,22),r=l(r,n,i,o,e[4],4118548399,7),o=l(o,r,n,i,e[5],1200080426,12),i=l(i,o,r,n,e[6],2821735955,17),n=l(n,i,o,r,e[7],4249261313,22),r=l(r,n,i,o,e[8],1770035416,7),o=l(o,r,n,i,e[9],2336552879,12),i=l(i,o,r,n,e[10],4294925233,17),n=l(n,i,o,r,e[11],2304563134,22),r=l(r,n,i,o,e[12],1804603682,7),o=l(o,r,n,i,e[13],4254626195,12),i=l(i,o,r,n,e[14],2792965006,17),r=u(r,n=l(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,r,n,i,e[6],3225465664,9),i=u(i,o,r,n,e[11],643717713,14),n=u(n,i,o,r,e[0],3921069994,20),r=u(r,n,i,o,e[5],3593408605,5),o=u(o,r,n,i,e[10],38016083,9),i=u(i,o,r,n,e[15],3634488961,14),n=u(n,i,o,r,e[4],3889429448,20),r=u(r,n,i,o,e[9],568446438,5),o=u(o,r,n,i,e[14],3275163606,9),i=u(i,o,r,n,e[3],4107603335,14),n=u(n,i,o,r,e[8],1163531501,20),r=u(r,n,i,o,e[13],2850285829,5),o=u(o,r,n,i,e[2],4243563512,9),i=u(i,o,r,n,e[7],1735328473,14),r=d(r,n=u(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),r=h(r,n=d(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},488:(e,t,r)=>{!function(){var t=r(4248),n=r(4244).utf8,i=r(5404),o=r(4244).bin,a=function(e,r){e.constructor==String?e=r&&"binary"===r.encoding?o.stringToBytes(e):n.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,d=-1732584194,h=271733878,f=0;f>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var p=a._ff,m=a._gg,g=a._hh,v=a._ii;for(f=0;f>>0,u=u+b>>>0,d=d+w>>>0,h=h+x>>>0}return t.endian([l,u,d,h])};a._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,r){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=t.wordsToBytes(a(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()},3299:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},7852:(e,t)=>{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},6592:(e,t,r)=>{"use strict";var n=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof r.g)return r.g;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},4776:(e,t,r)=>{var n=r(8244);function i(e){if("number"!==typeof e)throw new TypeError("Expected Number, got "+typeof e+" "+e);return Number.isFinite(e)?e+n(e):e}i.indicator=n,e.exports=i},8244:e=>{e.exports=function(e){var t=(e=Math.abs(e))%100;if(t>=10&&t<=20)return"th";var r=e%10;return 1===r?"st":2===r?"nd":3===r?"rd":"th"}},4696:function(e,t){var r,n,i;n=[],r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,i={},o=0,a={parse:function(r,n){var s=(n=n||{}).dynamicTyping||!1;if(x(s)&&(n.dynamicTypingFunction=s,s={}),n.dynamicTyping=s,n.transform=!!x(n.transform)&&n.transform,n.worker&&a.WORKERS_SUPPORTED){var c=function(){if(!a.WORKERS_SUPPORTED)return!1;var r,n,s=(r=t.URL||t.webkitURL||null,n=e.toString(),a.BLOB_URL||(a.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),c=new t.Worker(s);return c.onmessage=g,c.id=o++,i[c.id]=c}();return c.userStep=n.step,c.userChunk=n.chunk,c.userComplete=n.complete,c.userError=n.error,n.step=x(n.step),n.chunk=x(n.chunk),n.complete=x(n.complete),n.error=x(n.error),delete n.worker,void c.postMessage({input:r,config:n,workerId:c.id})}var f=null;return a.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),f=n.download?new l(n):new d(n)):!0===r.readable&&x(r.read)&&x(r.on)?f=new h(n):(t.File&&r instanceof File||r instanceof Object)&&(f=new u(n)),f.stream(r)},unparse:function(e,t){var r=!1,n=!0,i=",",o="\r\n",s='"',c=s+s,l=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(c=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var h=new RegExp(p(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function f(e,t,r){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0=this._config.preview;if(n)t.postMessage({results:s,workerId:a.WORKER_ID,finished:l});else if(x(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!l||!x(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){x(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),c.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function u(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),c.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function h(e){c.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=w((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=w((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=w((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,r,n,i=Math.pow(2,53),o=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,c=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,d=0,h=!1,f=!1,g=[],v={data:[],errors:[],meta:{}};if(x(e.step)){var y=e.step;e.step=function(t){if(v=t,S())_();else{if(_(),0===v.data.length)return;u+=t.data.length,e.preview&&u>e.preview?r.abort():(v.data=v.data[0],y(v,l))}}}function w(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function _(){return v&&n&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(v.data=v.data.filter((function(e){return!w(e)}))),S()&&function(){if(v)if(Array.isArray(v.data[0])){for(var t=0;S()&&t=g.length?"__parsed_extra":g[n]),e.transform&&(a=e.transform(a,o)),a=k(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}return e.header&&(n>g.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+n,d+r):n=n.length/2?"\r\n":"\r"}(i,c)),n=!1,e.delimiter)x(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter);else{var l=function(t,r,n,i,o){var s,c,l,u;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d=s)return K(!0)}else for(B=u,u++;;){if(-1===(B=a.indexOf(t,B+1)))return f||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:u}),V();if(B===m-1)return V(a.substring(u,B).replace(z,t));if(t!==l||a[B+1]!==l){if(t===l||0===B||a[B-1]!==l){-1!==N&&N=s)return K(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:u}),B++}}else B++}return V();function $(e){w.push(e),k=u}function H(e){var t=0;if(-1!==e){var r=a.substring(B+1,e);r&&""===r.trim()&&(t=r.length)}return t}function V(e){return f||(void 0===e&&(e=a.substring(u)),S.push(e),u=m,$(S),b&&W()),K()}function q(e){u=e,$(S),S=[],D=a.indexOf(n,u)}function K(e){return{data:w,errors:_,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:k+(h||0)}}}function W(){o(K()),w=[],_=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function g(e){var t=e.data,r=i[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,v(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(x(r.userStep)){for(var a=0;a{t.pbkdf2=r(1568),t.pbkdf2Sync=r(376)},1568:(e,t,r)=>{var n,i,o=r(1868).Buffer,a=r(1692),s=r(1685),c=r(376),l=r(7444),u=r.g.crypto&&r.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function f(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,t,i,m,g,v){"function"===typeof g&&(v=g,g=void 0);var y=d[(g=g||"sha1").toLowerCase()];if(y&&"function"===typeof r.g.Promise){if(a(i,m),e=l(e,s,"Password"),t=l(t,s,"Salt"),"function"!==typeof v)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){f()((function(){t(null,e)}))}),(function(e){f()((function(){t(e)}))}))}(function(e){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return h[e]=t,t}(y).then((function(r){return r?p(e,t,i,m,y):c(e,t,i,m,g)})),v)}else f()((function(){var r;try{r=c(e,t,i,m,g)}catch(n){return v(n)}v(null,r)}))}},1685:(e,t,r)=>{var n,i=r(2792);if(r.g.process&&r.g.process.browser)n="utf-8";else if(r.g.process&&r.g.process.version){n=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n},1692:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!==r)throw new TypeError("Bad key length")}},376:(e,t,r)=>{var n=r(9892),i=r(3280),o=r(6912),a=r(1868).Buffer,s=r(1692),c=r(1685),l=r(7444),u=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}function r(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?r:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length{var n=r(1868).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"===typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},6712:function(e){e.exports=function(){var e=[],t=[],r={},n={},i={};function o(e){return"string"===typeof e?new RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(/\$(\d{1,2})/g,(function(e,r){return t[r]||""}))}function c(e,t){return e.replace(t[0],(function(r,n){var i=s(t[1],arguments);return a(""===r?e[n-1]:r,i)}))}function l(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var o=n[i];if(o[0].test(t))return c(t,o)}return t}function u(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?a(n,i):e.hasOwnProperty(i)?a(n,e[i]):l(i,n,r)}}function d(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&l(i,i,r)===i}}function h(e,t,r){return(r?t+" ":"")+(1===t?h.singular(e):h.plural(e))}return h.plural=u(i,n,e),h.isPlural=d(i,n,e),h.singular=u(n,i,t),h.isSingular=d(n,i,t),h.addPluralRule=function(t,r){e.push([o(t),r])},h.addSingularRule=function(e,r){t.push([o(e),r])},h.addUncountableRule=function(e){"string"!==typeof e?(h.addPluralRule(e,"$0"),h.addSingularRule(e,"$0")):r[e.toLowerCase()]=!0},h.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return h.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(e){return h.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return h.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\xe9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(h.addUncountableRule),h}()},2792:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var r=1;r{"use strict";var n=r(3224),i=r(4),o=Object.prototype.hasOwnProperty;function a(e){return e&&"EPROMISERETRY"===e.code&&o.call(e,"retried")}e.exports=function(e,t){var r,o;return"object"===typeof e&&"function"===typeof t&&(r=t,t=e,e=r),o=i.operation(t),new Promise((function(t,r){o.attempt((function(i){Promise.resolve().then((function(){return e((function(e){throw a(e)&&(e=e.retried),n(new Error("Retrying"),"EPROMISERETRY",{retried:e})}),i)})).then(t,(function(e){a(e)&&(e=e.retried,o.retry(e||new Error))||r(e)}))}))}))}},5672:(e,t,r)=>{"use strict";var n=r(7888);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},1811:(e,t,r)=>{e.exports=r(5672)()},7888:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3255:(e,t)=>{var r,n,i,o=function(){var e=function(e,t){var r=e,n=o[t],i=null,a=0,s=null,c=[],l={},u=function(e,t){i=function(e){for(var t=new Array(e),r=0;r=7&&m(e),null==s&&(s=A(r,n,c)),k(s,t)},d=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1||a<=e+r))for(var n=-1;n<=7;n+=1)t+n<=-1||a<=t+n||(i[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},h=function(){for(var e=8;e>n&1);i[Math.floor(n/3)][n%3+a-8-3]=o}for(n=0;n<18;n+=1){o=!e&&1==(t>>n&1);i[n%3+a-8-3][Math.floor(n/3)]=o}},S=function(e,t){for(var r=n<<3|t,o=p.getBCHTypeInfo(r),s=0;s<15;s+=1){var c=!e&&1==(o>>s&1);s<6?i[s][8]=c:s<8?i[s+1][8]=c:i[a-15+s][8]=c}for(s=0;s<15;s+=1){c=!e&&1==(o>>s&1);s<8?i[8][a-s-1]=c:s<9?i[8][15-s-1+1]=c:i[8][15-s-1]=c}i[a-8][8]=!e},k=function(e,t){for(var r=-1,n=a-1,o=7,s=0,c=p.getMaskFunction(t),l=a-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var u=0;u<2;u+=1)if(null==i[n][l-u]){var d=!1;s>>o&1)),c(n,l-u)&&(d=!d),i[n][l-u]=d,-1==(o-=1)&&(s+=1,o=7)}if((n+=r)<0||a<=n){n-=r,r=-r;break}}},A=function(e,t,r){for(var n=v.getRSBlocks(e,t),i=y(),o=0;o8*s)throw"code length overflow. ("+i.getLengthInBits()+">"+8*s+")";for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s)&&(i.put(236,8),!(i.getLengthInBits()>=8*s));)i.put(17,8);return function(e,t){for(var r=0,n=0,i=0,o=new Array(t.length),a=new Array(t.length),s=0;s=0?h.getAt(f):0}}var m=0;for(u=0;un)&&(e=n,t=r)}return t}())},l.createTableTag=function(e,t){e=e||2;var r="";r+='";for(var i=0;i';r+=""}return r+="",r+="
"},l.createSvgTag=function(e,t,r,n){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,r=i.alt,n=i.title),e=e||2,t="undefined"==typeof t?4*e:t,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var o,a,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+=''+P(n.text)+"":"",d+=r.text?''+P(r.text)+"":"",d+='',d+='":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=n}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,r,n,i,o,a=1*l.getModuleCount()+2*e,s=e,c=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},h="";for(t=0;t=c?d[o]:u[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("\u2580"):h.substring(0,h.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var r,n,i,o,a=l.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join(" "),h="",f="";for(r=0;r>>8),t.push(255&a)):t.push(n)}}return t}};var t=1,r=2,n=4,i=8,o={L:1,M:0,Q:3,H:2},a=0,s=1,c=2,l=3,u=4,d=5,h=6,f=7,p=function(){var e=[[],[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]],o=1335,p=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(o)>=0;)t^=o<=0;)t^=p<5&&(r+=3+o-5)}for(n=0;n=256;)t-=255;return e[t]}};return n}();function g(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r>>7-t%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return t},putBit:function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1}};return r},b=function(e){var r=t,n=e,i={getMode:function(){return r},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2>>8&255)+(255&n),e.put(n,13),r+=2}if(r>>8)},writeBytes:function(e,r,n){r=r||0,n=n||e.length;for(var i=0;i0&&(t+=","),t+=e[r];return t+="]"}};return t},k=function(e){var t=e,r=0,n=0,i=0,o={read:function(){for(;i<8;){if(r>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(r);if(r+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(n=n<<6|a(e.charCodeAt(0)),i+=6)}var o=n>>>i-8&255;return i-=8,o}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},E=function(e,t,r){for(var n=function(e,t){var r=e,n=t,i=new Array(e*t),o={setPixel:function(e,t,n){i[t*r+e]=n},write:function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(n),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(n),e.writeByte(0);var t=a(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<>>i!=0)throw"length over";for(;r+i>=8;)t.writeByte(255&(e<>>=8-r,n=0,r=0;n|=e<0&&t.writeByte(n)}}}(c);l.write(t,n);var u=0,d=String.fromCharCode(i[u]);for(u+=1;u=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var i=3-r%3,a=0;a>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},n=[],void 0===(i="function"===typeof(r=function(){return o})?r.apply(t,n):r)||(e.exports=i)},9948:(e,t,r)=>{"use strict";var n=r(1628),i=r(8280);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Se=null,ke=null;function Ee(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function Ae(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ee(e),t)for(e=0;e>>=0,0===e?32:31-(st(e)/ct|0)|0},st=Math.log,ct=Math.LN2;var lt=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!==(o&=a)&&(n=dt(o))}else 0!==(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function vt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<=Mr),Dr=String.fromCharCode(32),zr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Rr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ur=!1;var $r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$r[e.type]:"textarea"===t}function Vr(e,t,r,n){Ae(n),0<(t=Kn(t,"onChange")).length&&(r=new lr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qr=null,Kr=null;function Wr(e){zn(e,0)}function Gr(e){if(W(wi(e)))return e}function Yr(e,t){if("change"===e)return t}var Zr=!1;if(u){var Xr;if(u){var Jr="oninput"in document;if(!Jr){var Qr=document.createElement("div");Qr.setAttribute("oninput","return;"),Jr="function"===typeof Qr.oninput}Xr=Jr}else Xr=!1;Zr=Xr&&(!document.documentMode||9=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ln(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=G((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=un(r,o);var a=un(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r=document.documentMode,gn=null,vn=null,yn=null,bn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==gn||gn!==G(n)||("selectionStart"in(n=gn)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&cn(yn,n)||(yn=n,0<(n=Kn(vn,"onSelect")).length&&(t=new lr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var _n={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},Sn={},kn={};function En(e){if(Sn[e])return Sn[e];if(!_n[e])return e;var t,r=_n[e];for(t in r)if(r.hasOwnProperty(t)&&t in kn)return Sn[e]=r[t];return e}u&&(kn=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);var An=En("animationend"),Pn=En("animationiteration"),On=En("animationstart"),Tn=En("transitionend"),Cn=new Map,jn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rn(e,t){Cn.set(e,t),c(t,[e])}for(var In=0;InSi||(e.current=_i[Si],_i[Si]=null,Si--)}function Ai(e,t){Si++,_i[Si]=e.current,e.current=t}var Pi={},Oi=ki(Pi),Ti=ki(!1),Ci=Pi;function ji(e,t){var r=e.type.contextTypes;if(!r)return Pi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Ei(Ti),Ei(Oi)}function Mi(e,t,r){if(Oi.current!==Pi)throw Error(o(168));Ai(Oi,t),Ai(Ti,r)}function Li(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return D({},r,n)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Ci=Oi.current,Ai(Oi,e),Ai(Ti,Ti.current),!0}function Di(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Li(e,t,Ci),n.__reactInternalMemoizedMergedChildContext=e,Ei(Ti),Ei(Oi),Ai(Oi,e)):Ei(Ti),Ai(Ti,r)}var zi=null,Bi=!1,Fi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function $i(){if(!Fi&&null!==zi){Fi=!0;var e=0,t=bt;try{var r=zi;for(bt=1;e>=a,i-=a,Zi=1<<32-at(t)+i|r<m?(g=d,d=null):g=d.sibling;var v=f(i,d,s[m],c);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===u?l=v:u.sibling=v,u=v,d=g}if(m===s.length)return r(i,d),io&&Ji(i,m),l;if(null===d){for(;mg?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,l);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=c.next())null!==(y=h(i,y.value,l))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Ji(i,g),u}for(m=n(i,m);!y.done;g++,y=c.next())null!==(y=p(m,i,g,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Ji(i,g),u}return function e(n,o,a,c){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var l=a.key,u=o;null!==u;){if(u.key===l){if((l=a.type)===S){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===R&&Yo(l)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=Wo(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===S?((o=Nl(a.props.children,n.mode,c,a.key)).return=n,n=o):((c=Ll(a.type,a.key,a.props,null,n.mode,c)).ref=Wo(n,o,a),c.return=n,n=c)}return s(n);case _:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Bl(a,n.mode,c)).return=n,n=o}return s(n);case R:return e(n,o,(u=a._init)(a._payload),c)}if(te(a))return m(n,o,a,c);if(L(a))return g(n,o,a,c);Go(n,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=zl(a,n.mode,c)).return=n,n=o),s(n)):r(n,o)}}var Xo=Zo(!0),Jo=Zo(!1),Qo={},ea=ki(Qo),ta=ki(Qo),ra=ki(Qo);function na(e){if(e===Qo)throw Error(o(174));return e}function ia(e,t){switch(Ai(ra,t),Ai(ta,e),Ai(ea,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(ea),Ai(ea,t)}function oa(){Ei(ea),Ei(ta),Ei(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=ce(t,e.type);t!==r&&(Ai(ta,e),Ai(ea,r))}function sa(e){ta.current===e&&(Ei(ea),Ei(ta))}var ca=ki(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;er?r:4,e(!0);var n=fa.transition;fa.transition={};try{e(!1),t()}finally{bt=r,fa.transition=n}}function es(){return Pa().memoizedState}function ts(e,t,r){var n=rl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))is(t,r);else if(null!==(r=To(e,t,r,n))){nl(r,e,n,tl()),os(r,t,n)}}function rs(e,t,r){var n=rl(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var c=t.interleaved;return null===c?(i.next=i,Oo(t)):(i.next=c.next,c.next=i),void(t.interleaved=i)}}catch(l){}null!==(r=To(e,t,i,n))&&(nl(r,e,n,i=tl()),os(r,t,n))}}function ns(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function os(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var as={readContext:Ao,useCallback:_a,useContext:_a,useEffect:_a,useImperativeHandle:_a,useInsertionEffect:_a,useLayoutEffect:_a,useMemo:_a,useReducer:_a,useRef:_a,useState:_a,useDebugValue:_a,useDeferredValue:_a,useTransition:_a,useMutableSource:_a,useSyncExternalStore:_a,useId:_a,unstable_isNewReconciler:!1},ss={readContext:Ao,useCallback:function(e,t){return Aa().memoizedState=[e,void 0===t?null:t],e},useContext:Ao,useEffect:Ha,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Ua(4194308,4,Wa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var r=Aa();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Aa();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Aa().memoizedState=e},useState:za,useDebugValue:Ya,useDeferredValue:function(e){return Aa().memoizedState=e},useTransition:function(){var e=za(!1),t=e[0];return e=Qa.bind(null,e[1]),Aa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ma,i=Aa();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Cc)throw Error(o(349));0!==(30&pa)||Ia(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ha(La.bind(null,n,a,e),[e]),n.flags|=2048,Ba(9,Ma.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Aa(),t=Cc.identifierPrefix;if(io){var r=Xi;t=":"+t+"R"+(r=(Zi&~(1<<32-at(Zi)-1)).toString(32)+r),0<(r=wa++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cs={readContext:Ao,useCallback:Za,useContext:Ao,useEffect:Va,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:Ka,useMemo:Xa,useReducer:Ta,useRef:Fa,useState:function(){return Ta(Oa)},useDebugValue:Ya,useDeferredValue:function(e){return Ja(Pa(),ga.memoizedState,e)},useTransition:function(){return[Ta(Oa)[0],Pa().memoizedState]},useMutableSource:ja,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},ls={readContext:Ao,useCallback:Za,useContext:Ao,useEffect:Va,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:Ka,useMemo:Xa,useReducer:Ca,useRef:Fa,useState:function(){return Ca(Oa)},useDebugValue:Ya,useDeferredValue:function(e){var t=Pa();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Ca(Oa)[0],Pa().memoizedState]},useMutableSource:ja,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var r="",n=t;do{r+=U(n),n=n.return}while(n);var i=r}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Mo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qc||(qc=!0,Kc=n),hs(0,t)},r}function ms(e,t,r){(r=Mo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(r.callback=function(){hs(0,t),"function"!==typeof n&&(null===Wc?Wc=new Set([this]):Wc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function gs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new fs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Al.bind(null,e,t,r),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Mo(-1,1)).tag=2,Lo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,r,n){t.child=null===e?Jo(t,null,r,n):Xo(t,e.child,r,n)}function _s(e,t,r,n,i){r=r.render;var o=t.ref;return Eo(t,i),n=ka(e,t,r,n,o,i),r=Ea(),null===e||ws?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Ss(e,t,r,n,i){if(null===e){var o=r.type;return"function"!==typeof o||Il(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ll(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ks(e,t,o,n,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:cn)(a,n)&&e.ref===t.ref)return qs(e,t,i)}return t.flags|=1,(e=Ml(o,n)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(cn(o,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=o,0===(e.lanes&i))return t.lanes=e.lanes,qs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Ps(e,t,r,n,i)}function Es(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ai(Mc,Ic),Ic|=r;else{if(0===(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ai(Mc,Ic),Ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Ai(Mc,Ic),Ic|=n}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ai(Mc,Ic),Ic|=n;return xs(e,t,i,r),t.child}function As(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,r,n,i){var o=Ri(r)?Ci:Oi.current;return o=ji(t,o),Eo(t,i),r=ka(e,t,r,n,o,i),n=Ea(),null===e||ws?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qs(e,t,i))}function Os(e,t,r,n,i){if(Ri(r)){var o=!0;Ni(t)}else o=!1;if(Eo(t,i),null===t.stateNode)Vs(e,t),Vo(t,r,n),Ko(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=r.contextType;"object"===typeof l&&null!==l?l=Ao(l):l=ji(t,l=Ri(r)?Ci:Oi.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==n||c!==l)&&qo(t,a,n,l),jo=!1;var h=t.memoizedState;a.state=h,zo(t,n,a,i),c=t.memoizedState,s!==n||h!==c||Ti.current||jo?("function"===typeof u&&(Uo(t,r,u,n),c=t.memoizedState),(s=jo||Ho(t,r,s,n,h,c,l))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:vo(t.type,s),a.props=l,d=t.pendingProps,h=a.context,"object"===typeof(c=r.contextType)&&null!==c?c=Ao(c):c=ji(t,c=Ri(r)?Ci:Oi.current);var f=r.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==c)&&qo(t,a,n,c),jo=!1,h=t.memoizedState,a.state=h,zo(t,n,a,i);var p=t.memoizedState;s!==d||h!==p||Ti.current||jo?("function"===typeof f&&(Uo(t,r,f,n),p=t.memoizedState),(l=jo||Ho(t,r,l,n,h,p,c)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,c)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=c,n=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Ts(e,t,r,n,o,i)}function Ts(e,t,r,n,i,o){As(e,t);var a=0!==(128&t.flags);if(!n&&!a)return i&&Di(t,r,!1),qs(e,t,o);n=t.stateNode,bs.current=t;var s=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=n.state,i&&Di(t,r,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mi(0,t.context,!1),ia(e,t.containerInfo)}function js(e,t,r,n,i){return po(),mo(i),t.flags|=256,xs(e,t,r,n),t.child}var Rs,Is,Ms,Ls,Ns={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var n,i=t.pendingProps,a=ca.current,s=!1,c=0!==(128&t.flags);if((n=c)||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ai(ca,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(c=i.children,e=i.fallback,s?(i=t.mode,s=t.child,c={mode:"hidden",children:c},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=c):s=Dl(c,i,0,null),e=Nl(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(r),t.memoizedState=Ns,e):Bs(t,c));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,n=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Dl({mode:"visible",children:n.children},i,0,null),(a=Nl(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!==(1&t.mode)&&Xo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ns,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var c=n.dgst;return n=c,Fs(e,t,s,n=ds(a=Error(o(419)),n,void 0))}if(c=0!==(s&e.childLanes),ws||c){if(null!==(n=Cc)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Co(e,i),nl(n,e,i,-1))}return gl(),Fs(e,t,s,n=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ol.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=li(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Wi[Gi++]=Zi,Wi[Gi++]=Xi,Wi[Gi++]=Yi,Zi=e.id,Xi=e.overflow,Yi=t),t=Bs(t,n.children),t.flags|=4096,t)}(e,t,c,i,n,a,r);if(s){s=i.fallback,c=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&c)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Ml(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Ml(n,s):(s=Nl(s,c,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,c=null===(c=e.child.memoizedState)?Ds(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Ns,i}return e=(s=e.child).sibling,i=Ml(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Dl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,r,n){return null!==n&&mo(n),Xo(t,e.child,null,r),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ko(e.return,t,r)}function $s(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Hs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(xs(e,t,n.children,r),0!==(2&(n=ca.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,r,t);else if(19===e.tag)Us(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ai(ca,n),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===la(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),$s(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}$s(t,!0,r,null,o);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Dc|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Ml(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ml(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Gs(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ri(t.type)&&Ii(),Ws(t),null;case 3:return n=t.stateNode,oa(),Ei(Ti),Ei(Oi),da(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Is(e,t),Ws(t),null;case 5:sa(t);var i=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=na(ea.current),ho(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[hi]=t,n[fi]=a,e=0!==(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[hi]=t,e[fi]=n,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(c=be(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),i=n;break;case"iframe":case"object":case"embed":Bn("load",e),i=n;break;case"video":case"audio":for(i=0;iHc&&(t.flags|=128,n=!0,Ks(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=la(c))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!io)return Ws(t),null}else 2*Xe()-a.renderingStartTime>Hc&&1073741824!==r&&(t.flags|=128,n=!0,Ks(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=a.last)?r.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=ca.current,Ai(ca,n?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return hl(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Ic)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ei(Ti),Ei(Oi),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ei(ca),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(ca),null;case 4:return oa(),null;case 10:return So(t.type._context),null;case 22:case 23:return hl(),null;default:return null}}Rs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Is=function(){},Ms=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,na(ea.current);var o,a=null;switch(r){case"input":i=Y(e,i),n=Y(e,n),a=[];break;case"select":i=D({},i,{value:void 0}),n=D({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=Qn)}for(u in ye(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var c=i[u];for(o in c)c.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(c=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Bn("scroll",e),a||c===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,r,n){r!==n&&(t.flags|=4)};var Zs=!1,Xs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Qs=null;function ec(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){El(e,t,n)}else r.current=null}function tc(e,t,r){try{r()}catch(n){El(e,t,n)}}var rc=!1;function nc(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tc(t,r,o)}i=i.next}while(i!==n)}}function ic(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function oc(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function ac(e){var t=e.alternate;null!==t&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[gi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function cc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Qn));else if(4!==n&&null!==(e=e.child))for(lc(e,t,r),e=e.sibling;null!==e;)lc(e,t,r),e=e.sibling}function uc(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(uc(e,t,r),e=e.sibling;null!==e;)uc(e,t,r),e=e.sibling}var dc=null,hc=!1;function fc(e,t,r){for(r=r.child;null!==r;)pc(e,t,r),r=r.sibling}function pc(e,t,r){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Xs||ec(r,t);case 6:var n=dc,i=hc;dc=null,fc(e,t,r),hc=i,null!==(dc=n)&&(hc?(e=dc,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dc.removeChild(r.stateNode));break;case 18:null!==dc&&(hc?(e=dc,r=r.stateNode,8===e.nodeType?ci(e.parentNode,r):1===e.nodeType&&ci(e,r),$t(e)):ci(dc,r.stateNode));break;case 4:n=dc,i=hc,dc=r.stateNode.containerInfo,hc=!0,fc(e,t,r),dc=n,hc=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tc(r,t,a),i=i.next}while(i!==n)}fc(e,t,r);break;case 1:if(!Xs&&(ec(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){El(r,t,s)}fc(e,t,r);break;case 21:fc(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,fc(e,t,r),Xs=n):fc(e,t,r);break;default:fc(e,t,r)}}function mc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Tl.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function gc(e,t){var r=t.deletions;if(null!==r)for(var n=0;ni&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Xe()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ec(n/1960))-n)){e.timeoutHandle=ni(_l.bind(null,e,Uc,Vc),n);break}_l(e,Uc,Vc);break;default:throw Error(o(329))}}}return il(e,Xe()),e.callbackNode===r?ol.bind(null,e):null}function al(e,t){var r=Fc;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=vl(e,t))&&(t=Uc,Uc=r,null!==t&&sl(t)),e}function sl(e){null===Uc?Uc=e:Uc.push.apply(Uc,e)}function cl(e,t){for(t&=~Bc,t&=~zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Yc)var n=!1;else{if(e=Yc,Yc=null,Zc=0,0!==(6&Tc))throw Error(o(331));var i=Tc;for(Tc|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var c=a.deletions;if(null!==c){for(var l=0;lXe()-$c?fl(e,0):Bc|=r),il(e,t)}function Pl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var r=tl();null!==(e=Co(e,t))&&(vt(e,t,r),il(e,r))}function Ol(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Pl(e,r)}function Tl(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Pl(e,r)}function Cl(e,t){return We(e,t)}function jl(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rl(e,t,r,n){return new jl(e,t,r,n)}function Il(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ml(e,t){var r=e.alternate;return null===r?((r=Rl(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ll(e,t,r,n,i,a){var s=2;if(n=e,"function"===typeof e)Il(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Nl(r.children,i,a,t);case k:s=8,i|=8;break;case E:return(e=Rl(12,r,t,2|i)).elementType=E,e.lanes=a,e;case T:return(e=Rl(13,r,t,i)).elementType=T,e.lanes=a,e;case C:return(e=Rl(19,r,t,i)).elementType=C,e.lanes=a,e;case I:return Dl(r,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case P:s=9;break e;case O:s=11;break e;case j:s=14;break e;case R:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Rl(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Nl(e,t,r,n){return(e=Rl(7,e,n,t)).lanes=r,e}function Dl(e,t,r,n){return(e=Rl(22,e,n,t)).elementType=I,e.lanes=r,e.stateNode={isHidden:!1},e}function zl(e,t,r){return(e=Rl(6,e,null,t)).lanes=r,e}function Bl(e,t,r){return(t=Rl(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ul(e,t,r,n,i,o,a,s,c){return e=new Fl(e,t,r,s,c),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Rl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function $l(e){if(!e)return Pi;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Ri(r))return Li(e,r,t)}return t}function Hl(e,t,r,n,i,o,a,s,c){return(e=Ul(r,n,!0,e,0,o,0,s,c)).context=$l(null),r=e.current,(o=Mo(n=tl(),i=rl(r))).callback=void 0!==t&&null!==t?t:null,Lo(r,o,i),e.current.lanes=i,vt(e,i,n),il(e,n),e}function Vl(e,t,r,n){var i=t.current,o=tl(),a=rl(i);return r=$l(r),null===t.context?t.context=r:t.pendingContext=r,(t=Mo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Lo(i,t,a))&&(nl(e,i,a,o),No(e,i,a)),a}function ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Kl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r{"use strict";var n=r(1932);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},1932:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(9948)},3640:function(e,t,r){var n,i,o;i=[t,r(1388)],n=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(t);function n(e){return e&&e.__esModule?e:{default:e}}e.default=r.default},void 0===(o="function"===typeof n?n.apply(t,i):n)||(e.exports=o)},1388:function(e,t,r){var n,i,o;i=[t,r(1628),r(1811)],n=function(e,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=f;var n=o(t),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return h?e:e.capture}function m(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function t(){var e;c(this,t);for(var r=arguments.length,n=Array(r),i=0;it&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),r=e.style,i=e.children,o=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,s(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return n.default.createElement(this.props.tagName,a({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:r},o),i)}}]),t}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=g},void 0===(o="function"===typeof n?n.apply(t,i):n)||(e.exports=o)},8820:e=>{var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,l,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(!o(e[c],a[c]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!==c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!e.$$typeof)&&!o(e[l[c]],a[l[c]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},7584:(e,t,r)=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=s(n),o=s(r(2)),a=s(r(3));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=e.fg,r=e.bg,s=e.count,c=e.palette,l=e.string,u=e.size,d=e.getColor,h=e.padding,f=e.className,p=(0,n.useRef)(null);(0,n.useEffect)((function(){m(e)}));var m=function(){var e=(0,o.default)(l),n=Math.floor(u/s),i=e.slice(0,6);if(c&&c.length){var f=Math.floor((0,a.default)(parseInt(e.slice(-3),16),0,4095,0,c.length));t=c[f]}d&&d(t||i);var m=h;p.current.width=n*s+m,p.current.height=n*s+m;var g=e.split("").map((function(e){return(e=parseInt(e,16))<8?0:1})),v=[];v[0]=v[4]=g.slice(0,5),v[1]=v[3]=g.slice(5,10),v[2]=g.slice(10,15);var y=p.current.getContext("2d");y.imageSmoothingEnabled=!1,y.clearRect(0,0,p.current.width,p.current.height),v.forEach((function(e,o){e.forEach((function(e,a){e?(y.fillStyle=t||"#"+i,y.fillRect(n*o+m,n*a+m,n-m,n-m)):(y.fillStyle=r,y.fillRect(n*o+m,n*a+m,n-m,n-m))}))}))};return i.default.createElement("canvas",{ref:p,className:f,style:{width:u,height:u}})};c.defaultProps={className:"identicon",bg:"transparent",count:5,palette:null,fg:null,padding:0,size:400,getColor:null,string:""},t.default=c},function(e,t){e.exports=r(1628)},function(e,t,r){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,function(i){function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,n,i,a){return o(function(e,t){return e<>>32-t}(o(o(t,e),o(n,a)),i),r)}function s(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function c(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function l(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function u(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}function d(e,t){e[t>>5]|=128<>>9<<4)]=t;var r,n,i,a,d,h=1732584193,f=-271733879,p=-1732584194,m=271733878;for(r=0;r>5]>>>t%32&255);return r}function f(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+"0123456789abcdef".charAt(15&t);return n}function m(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return h(d(f(e),8*e.length))}(m(e))}function v(e,t){return function(e,t){var r,n,i=f(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],a[r]=1549556828^i[r];return n=d(o.concat(f(t)),512+8*t.length),h(d(a.concat(n),640))}(m(e),m(t))}function y(e,t,r){return t?r?v(t,e):function(e,t){return p(v(e,t))}(t,e):r?g(e):function(e){return p(g(e))}(e)}void 0===(n=function(){return y}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,i){return(e-t)*(i-n)/(r-t)+n}}])},5595:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case a:case h:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case m:case p:case c:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference")},8196:(e,t,r)=>{"use strict";r(5595)},3264:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{default:()=>y}),e.exports=(n=f,u(o({},"__esModule",{value:!0}),n));var p=d(r(1628)),m=d(r(8820)),g=r(1232),v=r(7864);class y extends p.Component{constructor(){super(...arguments),h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),h(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),h(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),r=this.getDuration();if(r){const n={playedSeconds:e,played:e/r};null!==t&&(n.loadedSeconds=t,n.loaded=t/r),n.playedSeconds===this.prevPlayed&&n.loadedSeconds===this.prevLoaded||this.props.onProgress(n),this.prevPlayed=n.playedSeconds,this.prevLoaded=n.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),h(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:r,muted:n}=this.props;e(),n||null===r||this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),h(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==r&&this.player.setPlaybackRate(r),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),h(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),h(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:r}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,r())})),h(this,"handleError",((...e)=>{this.isLoading=!1,this.props.onError(...e)})),h(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),h(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:r,volume:n,muted:i,playbackRate:o,pip:a,loop:s,activePlayer:c,disableDeferredLoading:l}=this.props;if(!(0,m.default)(e.url,t)){if(this.isLoading&&!c.forceLoad&&!l&&!(0,v.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!r||this.isPlaying||this.player.play(),e.playing&&!r&&this.isPlaying&&this.player.pause(),!e.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==n&&null!==n&&this.player.setVolume(n),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==n&&setTimeout((()=>this.player.setVolume(n))))),e.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),e.loop!==s&&this.player.setLoop&&this.player.setLoop(s)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,r){if(!this.isReady)return void(0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),5e3)));if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,r):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,r)}render(){const e=this.props.activePlayer;return e?p.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}h(y,"displayName","Player"),h(y,"propTypes",g.propTypes),h(y,"defaultProps",g.defaultProps)},5020:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),h=(e,t,r)=>(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{createReactPlayer:()=>P}),e.exports=(n=f,u(o({},"__esModule",{value:!0}),n));var p=d(r(1628)),m=d(r(3272)),g=d(r(3299)),v=d(r(8820)),y=r(1232),b=r(7864),w=d(r(3264));const x=(0,b.lazy)((()=>r.e(984).then(r.t.bind(r,4656,23)))),_="undefined"!==typeof window&&window.document,S="undefined"!==typeof r.g&&r.g.window&&r.g.window.document,k=Object.keys(y.propTypes),E=_||S?p.Suspense:()=>null,A=[],P=(e,t)=>{var r;return r=class extends p.Component{constructor(){super(...arguments),h(this,"state",{showPreview:!!this.props.light}),h(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),h(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),h(this,"showPreview",(()=>{this.setState({showPreview:!0})})),h(this,"getDuration",(()=>this.player?this.player.getDuration():null)),h(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),h(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),h(this,"getInternalPlayer",((e="player")=>this.player?this.player.getInternalPlayer(e):null)),h(this,"seekTo",((e,t,r)=>{if(!this.player)return null;this.player.seekTo(e,t,r)})),h(this,"handleReady",(()=>{this.props.onReady(this)})),h(this,"getActivePlayer",(0,g.default)((r=>{for(const t of[...A,...e])if(t.canPlay(r))return t;return t||null}))),h(this,"getConfig",(0,g.default)(((e,t)=>{const{config:r}=this.props;return m.default.all([y.defaultProps.config,y.defaultProps.config[t]||{},r,r[t]||{}])}))),h(this,"getAttributes",(0,g.default)((e=>(0,b.omit)(this.props,k)))),h(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const r=this.getConfig(e,t.key);return p.default.createElement(w.default,{...this.props,key:t.key,ref:this.references.player,config:r,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,v.default)(this.props,e)||!(0,v.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:i}=this.props;return p.default.createElement(x,{url:e,light:t,playIcon:r,previewTabIndex:n,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:r,height:n,fallback:i,wrapper:o}=this.props,{showPreview:a}=this.state,s=this.getAttributes(e),c="string"===typeof o?this.references.wrapper:void 0;return p.default.createElement(o,{ref:c,style:{...t,width:r,height:n},...s},p.default.createElement(E,{fallback:i},a?this.renderPreview(e):this.renderActivePlayer(e)))}},h(r,"displayName","ReactPlayer"),h(r,"propTypes",y.propTypes),h(r,"defaultProps",y.defaultProps),h(r,"addCustomPlayer",(e=>{A.push(e)})),h(r,"removeCustomPlayers",(()=>{A.length=0})),h(r,"canPlay",(t=>{for(const r of[...A,...e])if(r.canPlay(t))return!0;return!1})),h(r,"canEnablePIP",(t=>{for(const r of[...A,...e])if(r.canEnablePIP&&r.canEnablePIP(t))return!0;return!1})),r}},2080:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>m}),e.exports=(n=d,u(o({},"__esModule",{value:!0}),n));var h=((e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(6440)),f=r(5020);const p=h.default[h.default.length-1];var m=(0,f.createReactPlayer)(h.default,p)},6976:(e,t,r)=>{var n,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(c,{AUDIO_EXTENSIONS:()=>S,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>P,HLS_EXTENSIONS:()=>E,MATCH_URL_DAILYMOTION:()=>b,MATCH_URL_FACEBOOK:()=>f,MATCH_URL_FACEBOOK_WATCH:()=>p,MATCH_URL_KALTURA:()=>_,MATCH_URL_MIXCLOUD:()=>w,MATCH_URL_SOUNDCLOUD:()=>d,MATCH_URL_STREAMABLE:()=>m,MATCH_URL_TWITCH_CHANNEL:()=>y,MATCH_URL_TWITCH_VIDEO:()=>v,MATCH_URL_VIDYARD:()=>x,MATCH_URL_VIMEO:()=>h,MATCH_URL_WISTIA:()=>g,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>k,canPlay:()=>T}),e.exports=(n=c,((e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of a(t))s.call(e,c)||c===r||i(e,c,{get:()=>t[c],enumerable:!(n=o(t,c))||n.enumerable});return e})(i({},"__esModule",{value:!0}),n));var l=r(7864);const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,d=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,h=/vimeo\.com\/(?!progressive_redirect).+/,f=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,p=/^https?:\/\/fb\.watch\/.+$/,m=/streamable\.com\/([a-z0-9]+)$/,g=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,v=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,y=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,b=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,w=/mixcloud\.com\/([^/]+\/[^/]+)/,x=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,_=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,S=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,k=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,E=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,P=/\.(flv)($|\?)/i,O=e=>{if(e instanceof Array){for(const t of e){if("string"===typeof t&&O(t))return!0;if(O(t.src))return!0}return!1}return!(!(0,l.isMediaStream)(e)&&!(0,l.isBlobUrl)(e))||(S.test(e)||k.test(e)||E.test(e)||A.test(e)||P.test(e))},T={youtube:e=>e instanceof Array?e.every((e=>u.test(e))):u.test(e),soundcloud:e=>d.test(e)&&!S.test(e),vimeo:e=>h.test(e)&&!k.test(e)&&!E.test(e),facebook:e=>f.test(e)||p.test(e),streamable:e=>m.test(e),wistia:e=>g.test(e),twitch:e=>v.test(e)||y.test(e),dailymotion:e=>b.test(e),mixcloud:e=>w.test(e),vidyard:e=>x.test(e),kaltura:e=>_.test(e),file:O}},6440:(e,t,r)=>{Object.create;var n,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=(Object.getPrototypeOf,Object.prototype.hasOwnProperty),c=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let c of a(t))s.call(e,c)||c===r||i(e,c,{get:()=>t[c],enumerable:!(n=o(t,c))||n.enumerable});return e},l={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(l,{default:()=>h}),e.exports=(n=l,c(i({},"__esModule",{value:!0}),n));var u=r(7864),d=r(6976),h=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,u.lazy)((()=>r.e(344).then(r.t.bind(r,5280,23))))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,u.lazy)((()=>r.e(412).then(r.t.bind(r,7960,23))))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,u.lazy)((()=>r.e(904).then(r.t.bind(r,6860,23))))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,u.lazy)((()=>r.e(411).then(r.t.bind(r,2316,23))))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,u.lazy)((()=>r.e(420).then(r.t.bind(r,1973,23))))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,u.lazy)((()=>r.e(696).then(r.t.bind(r,5620,23))))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,u.lazy)((()=>r.e(72).then(r.t.bind(r,2736,23))))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,u.lazy)((()=>r.e(936).then(r.t.bind(r,884,23))))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,u.lazy)((()=>r.e(204).then(r.t.bind(r,576,23))))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,u.lazy)((()=>r.e(28).then(r.t.bind(r,9256,23))))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,u.lazy)((()=>r.e(164).then(r.t.bind(r,2808,23))))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,u.lazy)((()=>r.e(464).then(r.t.bind(r,9388,23))))}]},1232:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(d,{defaultProps:()=>k,propTypes:()=>_}),e.exports=(n=d,u(o({},"__esModule",{value:!0}),n));var h=((e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)))(r(1811));const{string:f,bool:p,number:m,array:g,oneOfType:v,shape:y,object:b,func:w,node:x}=h.default,_={url:v([f,g,b]),playing:p,loop:p,controls:p,volume:m,muted:p,playbackRate:m,width:v([f,m]),height:v([f,m]),style:b,progressInterval:m,playsinline:p,pip:p,stopOnUnmount:p,light:v([p,f,b]),playIcon:x,previewTabIndex:m,fallback:x,oEmbedUrl:f,wrapper:v([f,w,y({render:w.isRequired})]),config:y({soundcloud:y({options:b}),youtube:y({playerVars:b,embedOptions:b,onUnstarted:w}),facebook:y({appId:f,version:f,playerId:f,attributes:b}),dailymotion:y({params:b}),vimeo:y({playerOptions:b,title:f}),file:y({attributes:b,tracks:g,forceVideo:p,forceAudio:p,forceHLS:p,forceSafariHLS:p,forceDisableHls:p,forceDASH:p,forceFLV:p,hlsOptions:b,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:y({options:b,playerId:f,customControls:g}),mixcloud:y({options:b}),twitch:y({options:b,playerId:f}),vidyard:y({options:b})}),onReady:w,onStart:w,onPlay:w,onPause:w,onBuffer:w,onBufferEnd:w,onEnded:w,onError:w,onDuration:w,onSeek:w,onPlaybackRateChange:w,onPlaybackQualityChange:w,onProgress:w,onClickPreview:w,onEnablePIP:w,onDisablePIP:w},S=()=>{},k={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:S},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:S,onStart:S,onPlay:S,onPause:S,onBuffer:S,onBufferEnd:S,onEnded:S,onError:S,onDuration:S,onSeek:S,onPlaybackRateChange:S,onPlaybackQualityChange:S,onProgress:S,onClickPreview:S,onEnablePIP:S,onDisablePIP:S}},7864:(e,t,r)=>{var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of s(t))l.call(e,i)||i===r||o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(c(e)):{},u(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(h,{callPlayer:()=>j,getConfig:()=>T,getSDK:()=>O,isBlobUrl:()=>I,isMediaStream:()=>R,lazy:()=>g,omit:()=>C,parseEndTime:()=>S,parseStartTime:()=>_,queryString:()=>E,randomString:()=>k,supportsWebKitPresentationMode:()=>M}),e.exports=(n=h,u(o({},"__esModule",{value:!0}),n));var f=d(r(1628)),p=d(r(8092)),m=d(r(3272));const g=e=>f.default.lazy((async()=>{const t=await e();return"function"===typeof t.default?t:t.default})),v=/[?&#](?:start|t)=([0-9hms]+)/,y=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,w=/^\d+$/;function x(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){const[,n,i]=r;"h"===i&&(t+=60*parseInt(n,10)*60),"m"===i&&(t+=60*parseInt(n,10)),"s"===i&&(t+=parseInt(n,10)),r=b.exec(e)}return t}(e);if(w.test(e))return parseInt(e)}}function _(e){return x(e,v)}function S(e){return x(e,y)}function k(){return Math.random().toString(36).substr(2,5)}function E(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function A(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const P={},O=function(e){0;return e}((function(e,t,r=null,n=(()=>!0),i=p.default){const o=A(t);return o&&n(o)?Promise.resolve(o):new Promise(((n,o)=>{if(P[e])return void P[e].push({resolve:n,reject:o});P[e]=[{resolve:n,reject:o}];const a=t=>{P[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),a(A(t))}}i(e,(n=>{n?(P[e].forEach((e=>e.reject(n))),P[e]=null):r||a(A(t))}))}))}));function T(e,t){return(0,m.default)(t.config,e.config)}function C(e,...t){const r=[].concat(...t),n={},i=Object.keys(e);for(const o of i)-1===r.indexOf(o)&&(n[o]=e[o]);return n}function j(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function R(e){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&e instanceof window.MediaStream}function I(e){return/^blob:/.test(e)}function M(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t}},5508:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;var i=r(472),o=r(3255),a=r(1628),s=r(1932),c=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=a.createRef(),r}return n(t,e),t.utf16to8=function(e){var t,r,n="",i=e.length;for(t=0;t=1&&r<=127?n+=e.charAt(t):r>2047?(n+=String.fromCharCode(224|r>>12&15),n+=String.fromCharCode(128|r>>6&63),n+=String.fromCharCode(128|r>>0&63)):(n+=String.fromCharCode(192|r>>6&31),n+=String.fromCharCode(128|r>>0&63));return n},t.prototype.drawRoundedSquare=function(e,t,r,n,i,o,a,s){s.lineWidth=e,s.fillStyle=i,s.strokeStyle=i,r+=e/2,t+=e/2,n-=e,Array.isArray(o)||(o=[o,o,o,o]);var c=(o=o.map((function(e){return(e=Math.min(e,n/2))<0?0:e})))[0]||0,l=o[1]||0,u=o[2]||0,d=o[3]||0;s.beginPath(),s.moveTo(t+c,r),s.lineTo(t+n-l,r),l&&s.quadraticCurveTo(t+n,r,t+n,r+l),s.lineTo(t+n,r+n-u),u&&s.quadraticCurveTo(t+n,r+n,t+n-u,r+n),s.lineTo(t+d,r+n),d&&s.quadraticCurveTo(t,r+n,t,r+n-d),s.lineTo(t,r+c),c&&s.quadraticCurveTo(t,r,t+c,r),s.closePath(),s.stroke(),a&&s.fill()},t.prototype.drawPositioningPattern=function(e,t,r,n,i,o,a){void 0===a&&(a=[0,0,0,0]);var s,c,l,u,d=Math.ceil(t);"number"===typeof a||Array.isArray(a)?c=s=a:(s=a.outer||0,c=a.inner||0),"string"!==typeof o?(l=o.outer,u=o.inner):(l=o,u=o);var h=n*t+r,f=i*t+r,p=7*t;this.drawRoundedSquare(d,f,h,p,l,s,!1,e),p=3*t,h+=2*t,f+=2*t,this.drawRoundedSquare(d,f,h,p,u,c,!0,e)},t.prototype.isInPositioninZone=function(e,t,r){return r.some((function(r){return t>=r.row&&t<=r.row+7&&e>=r.col&&e<=r.col+7}))},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,r,n,i,o,a,s){if(s){var c=this.transformPixelLengthIntoNumberOfCells(i,a),l=this.transformPixelLengthIntoNumberOfCells(o,a),u=this.transformPixelLengthIntoNumberOfCells(r,a)-1,d=this.transformPixelLengthIntoNumberOfCells(n,a)-1;return t>=c-2&&t<=c+u+2&&e>=l-2&&e<=l+d+2}return!1},t.prototype.shouldComponentUpdate=function(e){return!i(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e=this.props,r=e.value,n=e.ecLevel,i=e.enableCORS,a=e.bgColor,c=e.fgColor,l=e.logoImage,u=e.logoOpacity,d=e.logoOnLoad,h=e.removeQrCodeBehindLogo,f=e.qrStyle,p=e.eyeRadius,m=e.eyeColor,g=e.logoPaddingStyle,v=+this.props.size,y=+this.props.quietZone,b=this.props.logoWidth?+this.props.logoWidth:0,w=this.props.logoHeight?+this.props.logoHeight:0,x=this.props.logoPadding?+this.props.logoPadding:0,_=o(0,n);_.addData(t.utf16to8(r)),_.make();var S=s.findDOMNode(this.canvas.current),k=S.getContext("2d"),E=v+2*y,A=_.getModuleCount(),P=v/A,O=window.devicePixelRatio||1;S.height=S.width=E*O,k.scale(O,O),k.fillStyle=a,k.fillRect(0,0,E,E);var T=y,C=[{row:0,col:0},{row:0,col:A-7},{row:A-7,col:0}];if(k.strokeStyle=c,"dots"===f){k.fillStyle=c;for(var j=P/2,R=0;R{"use strict";r.d(t,{m:()=>a});var n=r(5900),i=r(4952),o=r(4288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.oj&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.c)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setFocused(e):r.onFocus()}))},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach((function(e){e()}))},r.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.Q))},1704:(e,t,r)=>{"use strict";r.d(t,{QueryClient:()=>n.S});var n=r(8464),i=r(7892);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}}),r.o(i,"useQueryClient")&&r.d(t,{useQueryClient:function(){return i.useQueryClient}})},5928:(e,t,r)=>{"use strict";r.d(t,{e:()=>i,k:()=>o});var n=console;function i(){return n}function o(e){n=e}},4152:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(4288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n._8)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";r.d(t,{q:()=>a});var n=r(5900),i=r(4952),o=r(4288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.oj&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.c)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setOnline(e):r.onOnline()}))},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach((function(e){e()}))},r.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(i.Q))},8464:(e,t,r)=>{"use strict";r.d(t,{S:()=>y});var n=r(848),i=r(4288),o=r(5900),a=r(4152),s=r(5928),c=r(443),l=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.c)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.AT)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,o=this.state.data,a=(0,i.iY)(e,o);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.CO)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(i.Kw).catch(i.Kw):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.ob)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return null==(l=this.retryer)||l.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,i.ye)(this.queryKey),h=(0,i._k)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(h)return a.abortSignalConsumed=!0,h.signal}});var p,m,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(r=this.options.behavior)?void 0:r.onFetch)&&(null==(p=this.options.behavior)||p.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(n=g.fetchOptions)?void 0:n.meta))||this.dispatch({type:"fetch",meta:null==(m=g.fetchOptions)?void 0:m.meta});return this.retryer=new c.et({fn:g.fetchFn,abort:null==h||null==(o=h.abort)?void 0:o.bind(h),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,c.qu)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,c.qu)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.e)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.y.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,r="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,i;switch(t.type){case"failed":return(0,n.c)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.c)({},e,{isPaused:!0});case"continue":return(0,n.c)({},e,{isPaused:!1});case"fetch":return(0,n.c)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.c)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,c.qu)(o)&&o.revert&&this.revertState?(0,n.c)({},this.revertState):(0,n.c)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.c)({},e,{isInvalidated:!0});case"setState":return(0,n.c)({},e,t.state);default:return e}},e}(),u=r(4952),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,o.c)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,o=t.queryKey,a=null!=(n=t.queryHash)?n:(0,i.oX)(o,t),s=this.get(a);return s||(s=new l({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;a.y.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,i.A7)(e,t)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return(0,i._W)(r,e)}))},r.findAll=function(e,t){var r=(0,i.A7)(e,t)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return(0,i._W)(r,e)})):this.queries},r.notify=function(e){var t=this;a.y.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){var e=this;a.y.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},r.onOnline=function(){var e=this;a.y.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.Q),h=function(){function e(e){this.options=(0,n.c)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.Kw).catch(i.Kw)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),n.then((function(){return t.executeMutation()})).then((function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.e)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new c.et({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.c)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.c)({},e,{isPaused:!0});case"continue":return(0,n.c)({},e,{isPaused:!1});case"loading":return(0,n.c)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.c)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.c)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.c)({},e,t.state);default:return e}}(this.state,e),a.y.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var f=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,o.c)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new h({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},r.clear=function(){var e=this;a.y.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},r.getAll=function(){return this.mutations},r.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.Yn)(e,t)}))},r.findAll=function(e){return this.mutations.filter((function(t){return(0,i.Yn)(e,t)}))},r.notify=function(e){var t=this;a.y.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.y.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.Kw)}))}),Promise.resolve())}))},t}(u.Q),p=r(1480),m=r(6176);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function v(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=p.m.subscribe((function(){p.m.isFocused()&&m.q.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.q.subscribe((function(){p.m.isFocused()&&m.q.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,i.A7)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.c)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,r){var n=(0,i.O2)(e),o=this.defaultQueryOptions(n);return this.queryCache.build(this,o).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return a.y.batch((function(){return n.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,n.setQueryData(i,t,r)]}))}))},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,i.A7)(e,t)[0],n=this.queryCache;a.y.batch((function(){n.findAll(r).forEach((function(e){n.remove(e)}))}))},t.resetQueries=function(e,t,r){var o=this,s=(0,i.A7)(e,t,r),c=s[0],l=s[1],u=this.queryCache,d=(0,n.c)({},c,{active:!0});return a.y.batch((function(){return u.findAll(c).forEach((function(e){e.reset()})),o.refetchQueries(d,l)}))},t.cancelQueries=function(e,t,r){var n=this,o=(0,i.A7)(e,t,r),s=o[0],c=o[1],l=void 0===c?{}:c;"undefined"===typeof l.revert&&(l.revert=!0);var u=a.y.batch((function(){return n.queryCache.findAll(s).map((function(e){return e.cancel(l)}))}));return Promise.all(u).then(i.Kw).catch(i.Kw)},t.invalidateQueries=function(e,t,r){var o,s,c,l=this,u=(0,i.A7)(e,t,r),d=u[0],h=u[1],f=(0,n.c)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(c=d.refetchInactive)&&c});return a.y.batch((function(){return l.queryCache.findAll(d).forEach((function(e){e.invalidate()})),l.refetchQueries(f,h)}))},t.refetchQueries=function(e,t,r){var o=this,s=(0,i.A7)(e,t,r),c=s[0],l=s[1],u=a.y.batch((function(){return o.queryCache.findAll(c).map((function(e){return e.fetch(void 0,(0,n.c)({},l,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))}))})),d=Promise.all(u).then(i.Kw);return(null==l?void 0:l.throwOnError)||(d=d.catch(i.Kw)),d},t.fetchQuery=function(e,t,r){var n=(0,i.O2)(e,t,r),o=this.defaultQueryOptions(n);"undefined"===typeof o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(i.Kw).catch(i.Kw)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,i.O2)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,o,a,s,l,u=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(o=n.meta)?void 0:o.fetchMore,h=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),p="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i._k)(),w=null==b?void 0:b.signal,x=y,_=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(e,t,r,n){return x=n?[t].concat(x):[].concat(x,[t]),n?[r].concat(e):[].concat(e,[r])},E=function(t,r,n,i){if(_)return Promise.reject("Cancelled");if("undefined"===typeof n&&!r&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:w,pageParam:n,meta:e.meta},a=S(o),s=Promise.resolve(a).then((function(e){return k(t,n,e,i)}));return(0,c.k7)(a)&&(s.cancel=a.cancel),s};if(m.length)if(f){var A="undefined"!==typeof h,P=A?h:g(e.options,m);l=E(m,A,P)}else if(p){var O="undefined"!==typeof h,T=O?h:v(e.options,m);l=E(m,O,T,!0)}else!function(){x=[];var t="undefined"===typeof e.options.getNextPageParam,r=!u||!m[0]||u(m[0],0,m);l=r?E([],t,y[0]):Promise.resolve(k([],y[0],m[0]));for(var n=function(r){l=l.then((function(n){if(!u||!m[r]||u(m[r],r,m)){var i=t?y[r]:g(e.options,n);return E(n,t,i)}return Promise.resolve(k(n,y[r],m[r]))}))},i=1;i{"use strict";r.d(t,{et:()=>u,k7:()=>s,qu:()=>l});var n=r(1480),i=r(6176),o=r(4288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var c=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function l(e){return e instanceof c}var u=function(e){var t,r,l,u,d=this,h=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){l=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),l(t))},p=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),u(t))};!function l(){if(!d.isResolved){var u;try{u=e.fn()}catch(m){u=Promise.reject(m)}t=function(e){if(!d.isResolved&&(p(new c(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,c;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(c=e.retryDelay)?c:a,m="function"===typeof f?f(d.failureCount,t):f,g=!0===u||"number"===typeof u&&d.failureCount{"use strict";r.d(t,{Q:()=>n});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==r})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},7892:()=>{},4288:(e,t,r)=>{"use strict";r.d(t,{A7:()=>d,AT:()=>s,CO:()=>y,GS:()=>g,Kw:()=>o,O2:()=>u,W_:()=>S,Yn:()=>f,_8:()=>k,_W:()=>h,_k:()=>E,aw:()=>m,iY:()=>a,oX:()=>p,ob:()=>l,oj:()=>i,wL:()=>b,ye:()=>c});var n=r(848),i="undefined"===typeof window;function o(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function c(e){return Array.isArray(e)?e:[e]}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return _(e)?"function"===typeof t?(0,n.c)({},r,{queryKey:e,queryFn:t}):(0,n.c)({},t,{queryKey:e}):e}function d(e,t,r){return _(e)?[(0,n.c)({},t,{queryKey:e}),r]:[e||{},t]}function h(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,c=e.stale;if(_(s))if(n){if(t.queryHash!==p(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var l=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,o);if("none"===l)return!1;if("all"!==l){var u=t.isActive();if("active"===l&&!u)return!1;if("inactive"===l&&u)return!1}return("boolean"!==typeof c||t.isStale()===c)&&(("boolean"!==typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function f(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(_(o)){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return("boolean"!==typeof n||"loading"===t.state.status===n)&&!(i&&!i(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||m)(e)}function m(e){var t,r=c(e);return t=r,JSON.stringify(t,(function(e,t){return w(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function g(e,t){return v(c(e),c(t))}function v(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(r){return!v(e[r],t[r])})))}function y(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||w(e)&&w(t)){for(var n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},s=0,c=0;c{"use strict";r.d(t,{QueryClient:()=>n.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useQuery:()=>i.useQuery,useQueryClient:()=>i.useQueryClient});var n=r(1704);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var i=r(736)},736:(e,t,r)=>{"use strict";r.d(t,{QueryClientProvider:()=>h,useQuery:()=>P,useQueryClient:()=>d});var n=r(4152),i=r(1932).unstable_batchedUpdates;n.y.setBatchNotifyFunction(i);var o=r(5928),a=console;(0,o.k)(a);var s=r(1628),c=s.createContext(void 0),l=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var d=function(){var e=s.useContext(u(s.useContext(l)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},h=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,i=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=u(n);return s.createElement(l.Provider,{value:n},s.createElement(o.Provider,{value:t},i))},f=r(848),p=r(5900),m=r(4288),g=r(1480),v=r(4952),y=r(443),b=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,p.c)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),w(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return x(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return x(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var i=this.hasListeners();i&&_(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===n&&this.options.enabled===r.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},i=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),n},r.getNextResult=function(e){var t=this;return new Promise((function(r,n){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))}))}))},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,f.c)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then((function(){return t.createResult(n,r)}))},r.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(m.Kw)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!m.oj&&!this.currentResult.isStale&&(0,m.AT)(this.options.staleTime)){var t=(0,m.ob)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},r.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!m.oj&&!1!==this.options.enabled&&(0,m.AT)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||g.m.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,c=this.currentResultOptions,l=e!==n,u=l?e.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,h=e.state,f=h.dataUpdatedAt,p=h.error,g=h.errorUpdatedAt,v=h.isFetching,y=h.status,b=!1,x=!1;if(t.optimisticResults){var k=this.hasListeners(),E=!k&&w(e,t),A=k&&_(e,n,t,i);(E||A)&&(v=!0,f||(y="loading"))}if(t.keepPreviousData&&!h.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)r=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&"undefined"!==typeof h.data)if(a&&h.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(h.data),!1!==t.structuralSharing&&(r=(0,m.CO)(null==a?void 0:a.data,r)),this.selectResult=r,this.selectError=null}catch(O){(0,o.e)().error(O),this.selectError=O}else r=h.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof r&&("loading"===y||"idle"===y)){var P;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))P=a.data;else if(P="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof P)try{P=t.select(P),!1!==t.structuralSharing&&(P=(0,m.CO)(null==a?void 0:a.data,P)),this.selectError=null}catch(O){(0,o.e)().error(O),this.selectError=O}"undefined"!==typeof P&&(y="success",r=P,x=!0)}return this.selectError&&(p=this.selectError,r=this.selectResult,g=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:r,dataUpdatedAt:f,error:p,errorUpdatedAt:g,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==y,isLoadingError:"error"===y&&0===h.dataUpdatedAt,isPlaceholderData:x,isPreviousData:b,isRefetchError:"error"===y&&0!==h.dataUpdatedAt,isStale:S(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,i=r.notifyOnChangePropsExclusions;if(!n&&!i)return!0;if("tracked"===n&&!this.trackedProps.length)return!0;var o="tracked"===n?this.trackedProps:n;return Object.keys(e).some((function(r){var n=r,a=e[n]!==t[n],s=null==o?void 0:o.some((function(e){return e===r})),c=null==i?void 0:i.some((function(e){return e===r}));return a&&!c&&(!o||s)}))},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,m.wL)(this.currentResult,t)){var r={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,f.c)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,y.qu)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;n.y.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(v.Q);function w(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&x(e,t,t.refetchOnMount)}function x(e,t,r){if(!1!==t.enabled){var n="function"===typeof r?r(e):r;return"always"===n||!1!==n&&S(e,t)}return!1}function _(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&S(e,r)}function S(e,t){return e.isStaleByTime(t.staleTime)}function k(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var E=s.createContext(k()),A=function(){return s.useContext(E)};function P(e,t,r){return function(e,t){var r=s.useRef(!1),i=s.useState(0)[1],o=d(),a=A(),c=o.defaultQueryObserverOptions(e);c.optimisticResults=!0,c.onError&&(c.onError=n.y.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=n.y.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=n.y.batchCalls(c.onSettled)),c.suspense&&("number"!==typeof c.staleTime&&(c.staleTime=1e3),0===c.cacheTime&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(a.isReset()||(c.retryOnMount=!1));var l,u,h,f=s.useState((function(){return new t(o,c)}))[0],p=f.getOptimisticResult(c);if(s.useEffect((function(){r.current=!0,a.clearReset();var e=f.subscribe(n.y.batchCalls((function(){r.current&&i((function(e){return e+1}))})));return f.updateResult(),function(){r.current=!1,e()}}),[a,f]),s.useEffect((function(){f.setOptions(c,{listeners:!1})}),[c,f]),c.suspense&&p.isLoading)throw f.fetchOptimistic(c).then((function(e){var t=e.data;null==c.onSuccess||c.onSuccess(t),null==c.onSettled||c.onSettled(t,null)})).catch((function(e){a.clearReset(),null==c.onError||c.onError(e),null==c.onSettled||c.onSettled(void 0,e)}));if(p.isError&&!a.isReset()&&!p.isFetching&&(l=c.suspense,u=c.useErrorBoundary,h=[p.error,f.getCurrentQuery()],"function"===typeof u?u.apply(void 0,h):"boolean"===typeof u?u:l))throw p.error;return"tracked"===c.notifyOnChangeProps&&(p=f.trackResult(p,c)),p}((0,m.O2)(e,t,r),b)}},6335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,r){var n=0===e?e:e+t;return"translate3d"+("("+("horizontal"===r?[n,0,0]:[0,n,0]).join(",")+")")}},9520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var n,i=r(1628),o=(n=r(6335))&&n.__esModule?n:{default:n},a=r(8492);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;tl))return s<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?r.itemListStyle=(0,a.setPosition)(-(l+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):r.itemListStyle=(0,a.setPosition)(100*-(l+2),e.axis):s>l&&(r.itemListStyle=(0,a.setPosition)(0,e.axis)),r;var u=(0,a.getPosition)(n,e),d=(0,o.default)(u,"%",e.axis),h=e.transitionTime+"ms";return r.itemListStyle={WebkitTransform:d,msTransform:d,OTransform:d,transform:d},t.swiping||(r.itemListStyle=c(c({},r.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),r};t.slideSwipeAnimationHandler=function(e,t,r,n){var o={},s="horizontal"===t.axis,c=i.Children.count(t.children),l=(0,a.getPosition)(r.selectedItem,t),u=t.infiniteLoop?(0,a.getPosition)(c-1,t)-100:(0,a.getPosition)(c-1,t),d=s?e.x:e.y,h=d;0===l&&d>0&&(h=0),l===u&&d<0&&(h=0);var f=l+100/(r.itemSize/h),p=Math.abs(d)>t.swipeScrollTolerance;return t.infiniteLoop&&p&&(0===r.selectedItem&&f>-100?f-=100*c:r.selectedItem===c-1&&f<100*-c&&(f+=100*c)),(!t.preventMovementUntilSwipeScrollTolerance||p||r.swipeMovementStarted)&&(r.swipeMovementStarted||n({swipeMovementStarted:!0}),o.itemListStyle=(0,a.setPosition)(f,t.axis)),p&&!r.cancelClick&&n({cancelClick:!0}),o};t.slideStopSwipingHandler=function(e,t){var r=(0,a.getPosition)(t.selectedItem,e);return{itemListStyle:(0,a.setPosition)(r,e.axis)}};t.fadeAnimationHandler=function(e,t){var r=e.transitionTime+"ms",n="ease-in-out",i={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:n,msTransitionTimingFunction:n,MozTransitionTimingFunction:n,WebkitTransitionTimingFunction:n,OTransitionTimingFunction:n};return t.swiping||(i=c(c({},i),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:i,selectedStyle:c(c({},i),{},{opacity:1,position:"relative"}),prevStyle:c({},i)}}},244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(1628)),i=d(r(3640)),o=d(r(3460)),a=d(r(9075)),s=d(r(2864)),c=d(r(9240)),l=r(8492),u=r(9520);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"===typeof e?e:1))})),_(w(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"===typeof e?e:1))})),_(w(t),"moveTo",(function(e){if("number"===typeof e){var r=n.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?r:0),e>r&&(e=t.props.infiniteLoop?0:r),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),_(w(t),"onClickNext",(function(){t.increment(1)})),_(w(t),"onClickPrev",(function(){t.decrement(1)})),_(w(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),_(w(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),_(w(t),"changeItem",(function(e){return function(r){(0,l.isKeyboardEvent)(r)&&"Enter"!==r.key||t.moveTo(e)}})),_(w(t),"selectItem",(function(e){t.setState(g({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,n.Children.toArray(t.props.children)[e.selectedItem])})),_(w(t),"getInitialImage",(function(){var e=t.props.selectedItem,r=t.itemsRef&&t.itemsRef[e];return(r&&r.getElementsByTagName("img")||[])[0]})),_(w(t),"getVariableItemHeight",(function(e){var r=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&r&&r.children.length){var n=r.children[0].getElementsByTagName("img")||[];if(n.length>0){var i=n[0];if(!i.complete){i.addEventListener("load",(function e(){t.forceUpdate(),i.removeEventListener("load",e)}))}}var o=(n[0]||r.children[0]).clientHeight;return o>0?o:null}return null}));var r={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"===typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&u.fadeAnimationHandler||u.slideAnimationHandler,t.state=g(g({},r),t.animationHandler(e,r)),t}return t=f,(r=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(g({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&n.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,c.default)().addEventListener("resize",this.updateSizes),(0,c.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,c.default)().removeEventListener("resize",this.updateSizes),(0,c.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?n.Children.map(this.props.children,(function(r,i){var a=i===t.state.selectedItem,s=i===t.state.previousItem,c=a&&t.state.selectedStyle||s&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(c=g(g({},c),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(c=g(g({},c),{},{pointerEvents:"none"}));var l={ref:function(e){return t.setItemsRef(e,i)},key:"itemKey"+i+(e?"clone":""),className:o.default.ITEM(!0,i===t.state.selectedItem,i===t.state.previousItem),onClick:t.handleClickItem.bind(t,i,r),style:c};return n.default.createElement("li",l,t.props.renderItem(r,{isSelected:i===t.state.selectedItem,isPrevious:i===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,r=t.showIndicators,i=t.labels,o=t.renderIndicator,a=t.children;return r?n.default.createElement("ul",{className:"control-dots"},n.Children.map(a,(function(t,r){return o&&o(e.changeItem(r),r===e.state.selectedItem,r,i.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?n.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,n.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==n.Children.count(this.props.children)?n.default.createElement(a.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===n.Children.count(this.props.children))return null;var t=this.props.swipeable&&n.Children.count(this.props.children)>1,r="horizontal"===this.props.axis,a=this.props.showArrows&&n.Children.count(this.props.children)>1,s=a&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,c=a&&(this.state.selectedItem{},8492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPosition=t.getPosition=t.isKeyboardEvent=t.defaultStatusFormatter=t.noop=void 0;var n,i=r(1628),o=(n=r(6335))&&n.__esModule?n:{default:n};t.noop=function(){};t.defaultStatusFormatter=function(e,t){return"".concat(e," of ").concat(t)};t.isKeyboardEvent=function(e){return!!e&&e.hasOwnProperty("key")};t.getPosition=function(e,t){if(t.infiniteLoop&&++e,0===e)return 0;var r=i.Children.count(t.children);if(t.centerMode&&"horizontal"===t.axis){var n=-e*t.centerSlidePercentage,o=r-1;return e&&(e!==o||t.infiniteLoop)?n+=(100-t.centerSlidePercentage)/2:e===o&&(n+=100-t.centerSlidePercentage),n}return 100*-e};t.setPosition=function(e,t){var r={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(n){r[n]=(0,o.default)(e,"%",t)})),r}},9075:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r(1628)),i=l(r(3460)),o=r(216),a=l(r(6335)),s=l(r(3640)),c=l(r(9240));function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(){return h=Object.assign||function(e){for(var t=1;t0&&(r=0),o===100*-Math.max(i-t.state.visibleItems,0)/t.state.visibleItems&&r<0&&(r=0);var s=o+100/(t.itemsWrapperRef.clientWidth/r);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,a.default)(s,"%",t.props.axis)})),!0})),y(g(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"===typeof e?e:1))})),y(g(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"===typeof e?e:1))})),y(g(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=d,(r=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,c.default)().addEventListener("resize",this.updateSizes),(0,c.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,c.default)().removeEventListener("resize",this.updateSizes),(0,c.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e1,o=this.state.showArrows&&this.state.firstItem>0,c=this.state.showArrows&&this.state.firstItem{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(4029))&&n.__esModule?n:{default:n};var o={ROOT:function(e){return(0,i.default)(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,i.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,i.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,i.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,r){return(0,i.default)({thumb:!e,slide:e,selected:t,previous:r})},ARROW_PREV:function(e){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,i.default)({dot:!0,selected:e})}};t.default=o},216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0;t.outerWidth=function(e){var t=e.offsetWidth,r=getComputedStyle(e);return t+=parseInt(r.marginLeft)+parseInt(r.marginRight)}},340:(e,t,r)=>{"use strict";Object.defineProperty(t,"ER",{enumerable:!0,get:function(){return n.default}});var n=a(r(244)),i=r(2680),o=a(r(9075));function a(e){return e&&e.__esModule?e:{default:e}}},2864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return document}},9240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return window}},9720:(e,t,r)=>{"use strict";var n=r(1628),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,o={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},8064:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var c=arguments.length-2;if(1===c)o.children=n;else if(1{"use strict";e.exports=r(8064)},9524:(e,t,r)=>{"use strict";e.exports=r(9720)},7768:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"===typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s;if("string"===typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return s+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.i=t},692:(e,t,r)=>{"use strict";var n=r(2792),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(6248),a=r(1564);r(7272)(u,o);for(var s=i(a.prototype),c=0;c{"use strict";e.exports=i;var n=r(2704);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(7272)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},6248:(e,t,r)=>{"use strict";var n,i=r(2792);e.exports=E,E.ReadableState=k;r(3684).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=r(8716),s=r(4240).Buffer,c=("undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var l,u=r(3716);l=u&&u.debuglog?u.debuglog("stream"):function(){};var d,h,f,p=r(9736),m=r(2616),g=r(5144).getHighWaterMark,v=r(7768).i,y=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,x=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(7272)(E,a);var _=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(692),e=e||{},"boolean"!==typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(680).o),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function E(e){if(n=n||r(692),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function A(e,t,r,n,i){l("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}(e,a);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof c||"string"===typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(a,t)),o)_(e,o);else if(a.objectMode||t&&t.length>0)if("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)a.endEmitted?_(e,new x):P(e,a,t,!0);else if(a.ended)_(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?P(e,a,t,!1):R(e,a)):P(e,a,t,!1)}else n||(a.reading=!1,R(e,a));return!a.ended&&(a.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){l("readable nexttick read 0"),e.read(0)}function N(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(F,t,e))}function F(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):C(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e0?z(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){_(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,l("pipe count=%d opts=%j",n.pipesCount,t);var a=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:g;function s(t,i){l("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",h),d=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){l("onend"),e.end()}n.endEmitted?i.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",u);var d=!1;function h(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==U(n.pipes,e))&&!d&&(l("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){l("onerror",t),g(),e.removeListener("error",f),0===o(e,"error")&&_(e,t)}function p(){e.removeListener("finish",m),g()}function m(){l("onfinish"),e.removeListener("close",p),g()}function g(){l("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",p),e.once("finish",m),e.emit("pipe",r),n.flowing||(l("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,l("on readable",n.length,n.reading),n.length?C(this):n.reading||i.nextTick(L,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(M,this),r},E.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(M,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&void 0!==i)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o{"use strict";e.exports=u;var n=r(7768).i,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(692);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n,i=r(2792);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=E,E.WritableState=k;var a={deprecate:r(3412)},s=r(8716),c=r(4240).Buffer,l=("undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var u,d=r(2616),h=r(5144).getHighWaterMark,f=r(7768).i,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,x=f.ERR_UNKNOWN_ENCODING,_=d.errorOrDestroy;function S(){}function k(e,t,a){n=n||r(692),e=e||{},"boolean"!==typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!==typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,_(e,n)):(o(n),e._writableState.errorEmitted=!0,_(e,n),j(e,t))}(e,r,n,t,o);else{var a=T(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?i.nextTick(P,e,r,a,o):P(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(e){var t=this instanceof(n=n||r(692));if(!t&&!u.call(E,this))return new E(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function A(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function P(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,A(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var r=T(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(7272)(E,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===E&&(e&&e._writableState instanceof k)}})):u=function(e){return e instanceof this},E.prototype.pipe=function(){_(this,new v)},E.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof l);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"===typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!==typeof r&&(r=S),o.ending?function(e,t){var r=new w;_(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new b:"string"===typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(_(e,o),i.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=c.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,j(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=d.destroy,E.prototype._undestroy=d.undestroy,E.prototype._destroy=function(e,t){t(e)}},544:(e,t,r)=>{"use strict";var n,i=r(2792);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(1556),s=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[s]=null,e[c]=null,t(p(r,!1)))}}function g(e){i.nextTick(m,e)}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[l]?r(e[l]):t(p(void 0,!0))}))}));var r,n=this[d];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[h])}return this[d]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),v);e.exports=function(e){var t,r=Object.create(y,(o(t={},f,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[s]=null,r[c]=null,e(p(n,!1))):(r[s]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[d]=null,r[s]=null,r[c]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[c]=null,n(p(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},9736:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,r,n,i=c.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,c.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},2616:(e,t,r)=>{"use strict";var n=r(2792);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},1556:(e,t,r)=>{"use strict";var n=r(7768).i.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"===typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},2960:(e,t,r)=>{"use strict";var n;var i=r(7768).i,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i0,(function(e){u||(u=e),e&&h.forEach(c),o||(h.forEach(c),d(u))}))}));return t.reduce(l)}},5144:(e,t,r)=>{"use strict";var n=r(7768).i.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},8716:(e,t,r)=>{e.exports=r(3684).EventEmitter},4808:(e,t,r)=>{(t=e.exports=r(6248)).Stream=t,t.Readable=t,t.Writable=r(1564),t.Duplex=r(692),t.Transform=r(2704),t.PassThrough=r(1048),t.finished=r(1556),t.pipeline=r(2960)},7624:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise((function(r,n){r(t.getItem(e))}))},setItem:function(e,r){return new Promise((function(n,i){n(t.setItem(e,r))}))},removeItem:function(e){return new Promise((function(r,n){r(t.removeItem(e))}))}}};var n,i=(n=r(5583))&&n.__esModule?n:{default:n}},5583:(e,t)=>{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"===typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(i){return!1}return!0}(t)?self[t]:i};var i={getItem:n,setItem:n,removeItem:n}},7576:(e,t,r)=>{"use strict";var n;t.c=void 0;var i=(0,((n=r(7624))&&n.__esModule?n:{default:n}).default)("local");t.c=i},4:(e,t,r)=>{e.exports=r(1408)},1408:(e,t,r)=>{var n=r(6004);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i{function t(e,t){"boolean"===typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift()}var n=this,i=setTimeout((function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)}),r);return this._options.unref&&i.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){r._operationTimeoutCb()}),r._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,n=0;n=r&&(t=i,r=a)}return t}},3280:(e,t,r)=>{"use strict";var n=r(4240).Buffer,i=r(7272),o=r(2564),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[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],u=[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],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(f,o),f.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,f=0|this._e,w=0|this._a,x=0|this._b,_=0|this._c,S=0|this._d,k=0|this._e,E=0;E<80;E+=1){var A,P;E<16?(A=m(r,n,i,o,f,e[s[E]],d[0],l[E]),P=b(w,x,_,S,k,e[c[E]],h[0],u[E])):E<32?(A=g(r,n,i,o,f,e[s[E]],d[1],l[E]),P=y(w,x,_,S,k,e[c[E]],h[1],u[E])):E<48?(A=v(r,n,i,o,f,e[s[E]],d[2],l[E]),P=v(w,x,_,S,k,e[c[E]],h[2],u[E])):E<64?(A=y(r,n,i,o,f,e[s[E]],d[3],l[E]),P=g(w,x,_,S,k,e[c[E]],h[3],u[E])):(A=b(r,n,i,o,f,e[s[E]],d[4],l[E]),P=m(w,x,_,S,k,e[c[E]],h[4],u[E])),r=f,f=o,o=p(i,10),i=n,n=A,w=k,k=S,S=p(_,10),_=x,x=P}var O=this._b+i+S|0;this._b=this._c+o+k|0,this._c=this._d+f+w|0,this._d=this._e+r+x|0,this._e=this._a+n+_|0,this._a=O},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=f},1868:(e,t,r)=>{var n=r(4240),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},9824:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(!(0>>1;no(c,r))lo(u,c)?(e[n]=u,e[l]=r,n=l):(e[n]=c,e[s]=r,n=s);else{if(!(lo(u,r)))break e;e[n]=u,e[l]=r,n=l}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var l=[],u=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(l,t)}t=n(u)}}function x(e){if(g=!1,w(e),!m)if(null!==n(l))m=!0,I(_);else{var t=n(u);null!==t&&M(x,t.startTime-e)}}function _(e,r){m=!1,g&&(g=!1,y(A),A=-1),p=!0;var o=f;try{for(w(r),h=n(l);null!==h&&(!(h.expirationTime>r)||e&&!T());){var a=h.callback;if("function"===typeof a){h.callback=null,f=h.priorityLevel;var s=a(h.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?h.callback=s:h===n(l)&&i(l),w(r)}else i(l);h=n(l)}if(null!==h)var c=!0;else{var d=n(u);null!==d&&M(x,d.startTime-r),c=!1}return c}finally{h=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,E=null,A=-1,P=5,O=-1;function T(){return!(t.unstable_now()-Oe||125a?(e.sortIndex=o,r(u,e),null===n(l)&&e===n(u)&&(g?(y(A),A=-1):g=!0,M(x,o-a))):(e.sortIndex=s,r(l,e),m||p||(m=!0,I(_))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},8280:(e,t,r)=>{"use strict";e.exports=r(9824)},8360:(e,t,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=i;const o=r(7124),{safeRe:a,t:s}=r(6220),c=r(7771),l=r(2572),u=r(6512),d=r(4652)},4652:(e,t,r)=>{class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&v(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,T(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),s("comparator trim",e),e=e.replace(l[u.TILDETRIM],h),s("tilde trim",e),e=e.replace(l[u.CARETTRIM],f),s("caret trim",e);let c=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>O(e,this.options)));n&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const v=new Map,y=c.map((e=>new a(e,this.options)));for(const i of y){if(g(i))return[i];v.set(i.value,i)}v.size>1&&v.has("")&&v.delete("");const w=[...v.values()];return i.set(t,w),w}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new c(e,this.options)}catch(t){return!1}for(let r=0;r"<0.0.0-0"===e.value,v=e=>""===e.value,y=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},b=(e,t)=>(s("comp",e,t),e=S(e,t),s("caret",e),e=x(e,t),s("tildes",e),e=E(e,t),s("xrange",e),e=P(e,t),s("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{const r=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),w(r)?a="":w(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{s("caret",e,t);const r=t.loose?l[u.CARETLOOSE]:l[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),w(r)?c="":w(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},E=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const r=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const l=w(i),u=l||w(o),d=u||w(a),h=d;return"="===n&&h&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},P=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),O=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,r,n,i,o,a,s,c,l,u,d,h,f)=>`${r=w(n)?"":w(i)?`>=${n}.0.0${e?"-0":""}`:w(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=w(l)?"":w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:h?`<=${l}.${u}.${d}-${h}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`}`.trim(),C=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},6512:(e,t,r)=>{const n=r(2572),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(7328),{safeRe:a,t:s}=r(6220),c=r(7124),{compareIdentifiers:l}=r(1276);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"===typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},1364:(e,t,r)=>{const n=r(584);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7771:(e,t,r)=>{const n=r(435),i=r(788),o=r(5584),a=r(7300),s=r(4004),c=r(852);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e===r;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return i(e,r,l);case">":return o(e,r,l);case">=":return a(e,r,l);case"<":return s(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},8672:(e,t,r)=>{const n=r(6512),i=r(584),{safeRe:o,t:a}=r(6220);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},6096:(e,t,r)=>{const n=r(6512);e.exports=(e,t,r)=>{const i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},7760:(e,t,r)=>{const n=r(4804);e.exports=(e,t)=>n(e,t,!0)},4804:(e,t,r)=>{const n=r(6512);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},9820:(e,t,r)=>{const n=r(584);e.exports=(e,t)=>{const r=n(e,null,!0),i=n(t,null,!0),o=r.compare(i);if(0===o)return null;const a=o>0,s=a?r:i,c=a?i:r,l=!!s.prerelease.length;if(!!c.prerelease.length&&!l)return c.patch||c.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}},435:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>0===n(e,t,r)},5584:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>n(e,t,r)>0},7300:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>n(e,t,r)>=0},1356:(e,t,r)=>{const n=r(6512);e.exports=(e,t,r,i,o)=>{"string"===typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(a){return null}}},4004:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>n(e,t,r)<0},852:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>n(e,t,r)<=0},189:(e,t,r)=>{const n=r(6512);e.exports=(e,t)=>new n(e,t).major},8108:(e,t,r)=>{const n=r(6512);e.exports=(e,t)=>new n(e,t).minor},788:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>0!==n(e,t,r)},584:(e,t,r)=>{const n=r(6512);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(i){if(!r)return null;throw i}}},9896:(e,t,r)=>{const n=r(6512);e.exports=(e,t)=>new n(e,t).patch},4148:(e,t,r)=>{const n=r(584);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},8384:(e,t,r)=>{const n=r(4804);e.exports=(e,t,r)=>n(t,e,r)},1848:(e,t,r)=>{const n=r(6096);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},16:(e,t,r)=>{const n=r(4652);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(i){return!1}return t.test(e)}},1240:(e,t,r)=>{const n=r(6096);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},1720:(e,t,r)=>{const n=r(584);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},3712:(e,t,r)=>{const n=r(6220),i=r(7328),o=r(6512),a=r(1276),s=r(584),c=r(1720),l=r(1364),u=r(1356),d=r(9820),h=r(189),f=r(8108),p=r(9896),m=r(4148),g=r(4804),v=r(8384),y=r(7760),b=r(6096),w=r(1240),x=r(1848),_=r(5584),S=r(4004),k=r(435),E=r(788),A=r(7300),P=r(852),O=r(7771),T=r(8672),C=r(8360),j=r(4652),R=r(16),I=r(2068),M=r(4344),L=r(8112),N=r(5104),D=r(4056),z=r(4744),B=r(9672),F=r(7832),U=r(5512),$=r(4796),H=r(1961);e.exports={parse:s,valid:c,clean:l,inc:u,diff:d,major:h,minor:f,patch:p,prerelease:m,compare:g,rcompare:v,compareLoose:y,compareBuild:b,sort:w,rsort:x,gt:_,lt:S,eq:k,neq:E,gte:A,lte:P,cmp:O,coerce:T,Comparator:C,Range:j,satisfies:R,toComparators:I,maxSatisfying:M,minSatisfying:L,minVersion:N,validRange:D,outside:z,gtr:B,ltr:F,intersects:U,simplifyRange:$,subset:H,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},7328:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2572:(e,t,r)=>{const n="object"===typeof r(2792)&&{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=n},1276:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},7124:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!==typeof e?t:e:r},6220:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(7328),a=r(2572),s=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],u=t.t={};let d=0;const h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[h,i]],p=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=d++;a(e,i,t),u[e]=i,l[i]=t,s[i]=new RegExp(t,r?"g":void 0),c[i]=new RegExp(n,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9672:(e,t,r)=>{const n=r(4744);e.exports=(e,t,r)=>n(e,t,">",r)},5512:(e,t,r)=>{const n=r(4652);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},7832:(e,t,r)=>{const n=r(4744);e.exports=(e,t,r)=>n(e,t,"<",r)},4344:(e,t,r)=>{const n=r(6512),i=r(4652);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},8112:(e,t,r)=>{const n=r(6512),i=r(4652);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(c){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},5104:(e,t,r)=>{const n=r(6512),i=r(4652),o=r(5584);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let i=0;i{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!o(r,a)||(r=a)}return r&&e.test(r)?r:null}},4744:(e,t,r)=>{const n=r(6512),i=r(8360),{ANY:o}=i,a=r(4652),s=r(16),c=r(5584),l=r(4004),u=r(852),d=r(7300);e.exports=(e,t,r,h)=>{let f,p,m,g,v;switch(e=new n(e,h),t=new a(t,h),r){case">":f=c,p=u,m=l,g=">",v=">=";break;case"<":f=l,p=d,m=c,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,h))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,h)?a=e:m(e.semver,s.semver,h)&&(s=e)})),a.operator===g||a.operator===v)return!1;if((!s.operator||s.operator===g)&&p(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0}},4796:(e,t,r)=>{const n=r(16),i=r(4804);e.exports=(e,t,r)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const i of c){n(i,t,r)?(s=i,a||(a=i)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const l=[];for(const[n,i]of o)n===i?l.push(n):i||n!==c[0]?i?n===c[0]?l.push(`<=${i}`):l.push(`${n} - ${i}`):l.push(`>=${n}`):l.push("*");const u=l.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length{const n=r(4652),i=r(8360),{ANY:o}=i,a=r(16),s=r(4804),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?c:l}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=l}const n=new Set;let i,u,f,p,m,g,v;for(const o of e)">"===o.operator||">="===o.operator?i=d(i,o,r):"<"===o.operator||"<="===o.operator?u=h(u,o,r):n.add(o.semver);if(n.size>1)return null;if(i&&u){if(f=s(i.semver,u.semver,r),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==u.operator))return null}for(const o of n){if(i&&!a(o,String(i),r))return null;if(u&&!a(o,String(u),r))return null;for(const e of t)if(!a(o,String(e),r))return!1;return!0}let y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,b=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;y&&1===y.prerelease.length&&"<"===u.operator&&0===y.prerelease[0]&&(y=!1);for(const o of t){if(v=v||">"===o.operator||">="===o.operator,g=g||"<"===o.operator||"<="===o.operator,i)if(b&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===b.major&&o.semver.minor===b.minor&&o.semver.patch===b.patch&&(b=!1),">"===o.operator||">="===o.operator){if(p=d(i,o,r),p===o&&p!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(o),r))return!1;if(u)if(y&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===y.major&&o.semver.minor===y.minor&&o.semver.patch===y.patch&&(y=!1),"<"===o.operator||"<="===o.operator){if(m=h(u,o,r),m===o&&m!==u)return!1}else if("<="===u.operator&&!a(u.semver,String(o),r))return!1;if(!o.operator&&(u||i)&&0!==f)return!1}return!(i&&g&&!u&&0!==f)&&(!(u&&v&&!i&&0!==f)&&(!b&&!y))},d=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},2068:(e,t,r)=>{const n=r(4652);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},4056:(e,t,r)=>{const n=r(4652);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}}},7356:(e,t,r)=>{var n=r(1868).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},6912:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(4416),n.sha1=r(5671),n.sha224=r(4912),n.sha256=r(4052),n.sha384=r(6352),n.sha512=r(9048)},4416:(e,t,r)=>{var n=r(7272),i=r(7356),o=r(1868).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((t=n)<<5|t>>>27)+u(f,i,o,s)+c+r[h]+a[f];c=s,s=o,o=l(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},5671:(e,t,r)=>{var n=r(7272),i=r(7356),o=r(1868).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=l(n)+d(p,i,o,s)+c+r[f]+a[p]|0;c=s,s=o,o=u(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},4912:(e,t,r)=>{var n=r(7272),i=r(4052),o=r(7356),a=r(1868).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},4052:(e,t,r)=>{var n=r(7272),i=r(7356),o=r(1868).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v);for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+f(r[v-15])+r[v-16];for(var y=0;y<64;++y){var b=g+h(c)+l(c,p,m)+a[y]+r[y]|0,w=d(n)+u(n,i,o)|0;g=m,m=p,p=c,c=s+b|0,s=o,o=i,i=n,n=b+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},6352:(e,t,r)=>{var n=r(7272),i=r(9048),o=r(7356),a=r(1868).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},9048:(e,t,r)=>{var n=r(7272),i=r(7356),o=r(1868).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,b=0|this._hh,w=0|this._al,x=0|this._bl,_=0|this._cl,S=0|this._dl,k=0|this._el,E=0|this._fl,A=0|this._gl,P=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var T=t[O-30],C=t[O-30+1],j=f(T,C),R=p(C,T),I=m(T=t[O-4],C=t[O-4+1]),M=g(C,T),L=t[O-14],N=t[O-14+1],D=t[O-32],z=t[O-32+1],B=R+N|0,F=j+L+v(B,R)|0;F=(F=F+I+v(B=B+M|0,M)|0)+D+v(B=B+z|0,z)|0,t[O]=F,t[O+1]=B}for(var U=0;U<160;U+=2){F=t[U],B=t[U+1];var $=u(r,n,i),H=u(w,x,_),V=d(r,w),q=d(w,r),K=h(s,k),W=h(k,s),G=a[U],Y=a[U+1],Z=l(s,c,y),X=l(k,E,A),J=P+W|0,Q=b+K+v(J,P)|0;Q=(Q=(Q=Q+Z+v(J=J+X|0,X)|0)+G+v(J=J+Y|0,Y)|0)+F+v(J=J+B|0,B)|0;var ee=q+H|0,te=V+$+v(ee,q)|0;b=y,P=A,y=c,A=E,c=s,E=k,s=o+Q+v(k=S+J|0,S)|0,o=i,S=_,i=n,_=x,n=r,x=w,r=Q+te+v(w=J+ee|0,J)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+_|0,this._dl=this._dl+S|0,this._el=this._el+k|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+P|0,this._ah=this._ah+r+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,x)|0,this._ch=this._ch+i+v(this._cl,_)|0,this._dh=this._dh+o+v(this._dl,S)|0,this._eh=this._eh+s+v(this._el,k)|0,this._fh=this._fh+c+v(this._fl,E)|0,this._gh=this._gh+y+v(this._gl,A)|0,this._hh=this._hh+b+v(this._hl,P)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},6624:(e,t,r)=>{e.exports=i;var n=r(3684).EventEmitter;function i(){n.call(this)}r(7272)(i,n),i.Readable=r(6248),i.Writable=r(1564),i.Duplex=r(692),i.Transform=r(2704),i.PassThrough=r(1048),i.finished=r(1556),i.pipeline=r(2960),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function l(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",l),e.on("error",l),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},680:(e,t,r)=>{"use strict";var n=r(1868).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.o=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},648:(e,t,r)=>{var n=r(4240).Buffer;e.exports=function(e){return ArrayBuffer.isView(e)?n.from(e.buffer,e.byteOffset,e.byteLength):n.from(e)}},816:(e,t,r)=>{"use strict";var n=r(1628);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(n){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s((function(){i.value=r,i.getSnapshot=t,l(i)&&u({inst:i})}),[e,r,t]),a((function(){return l(i)&&u({inst:i}),e((function(){l(i)&&u({inst:i})}))}),[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},2508:(e,t,r)=>{"use strict";var n=r(1628),i=r(1584);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=i.useSyncExternalStore,s=n.useRef,c=n.useEffect,l=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=l((function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,c=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,r,n,i]);var f=a(e,d[0],d[1]);return c((function(){h.hasValue=!0,h.value=f}),[f]),u(f),f}},1584:(e,t,r)=>{"use strict";e.exports=r(816)},2656:(e,t,r)=>{"use strict";e.exports=r(2508)},3412:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(n){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},9132:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},5384:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n{},6652:()=>{},4111:()=>{},5756:()=>{},9100:()=>{},3236:()=>{},3716:()=>{},3044:(e,t,r)=>{var n=r(7803).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(C){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new O(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=h;var p={};function m(){}function g(){}function v(){}var y={};d(y,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==r&&o.call(w,c)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(i,a,s,c){var l=f(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function k(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=f(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(e){if(e||""===e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},7803:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3816:(e,t,r)=>{var n=r(3044)();e.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},848:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},5900:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{c:()=>i})},9972:e=>{"use strict";e.exports=JSON.parse('["\u7684","\u4e00","\u662f","\u5728","\u4e0d","\u4e86","\u6709","\u548c","\u4eba","\u8fd9","\u4e2d","\u5927","\u4e3a","\u4e0a","\u4e2a","\u56fd","\u6211","\u4ee5","\u8981","\u4ed6","\u65f6","\u6765","\u7528","\u4eec","\u751f","\u5230","\u4f5c","\u5730","\u4e8e","\u51fa","\u5c31","\u5206","\u5bf9","\u6210","\u4f1a","\u53ef","\u4e3b","\u53d1","\u5e74","\u52a8","\u540c","\u5de5","\u4e5f","\u80fd","\u4e0b","\u8fc7","\u5b50","\u8bf4","\u4ea7","\u79cd","\u9762","\u800c","\u65b9","\u540e","\u591a","\u5b9a","\u884c","\u5b66","\u6cd5","\u6240","\u6c11","\u5f97","\u7ecf","\u5341","\u4e09","\u4e4b","\u8fdb","\u7740","\u7b49","\u90e8","\u5ea6","\u5bb6","\u7535","\u529b","\u91cc","\u5982","\u6c34","\u5316","\u9ad8","\u81ea","\u4e8c","\u7406","\u8d77","\u5c0f","\u7269","\u73b0","\u5b9e","\u52a0","\u91cf","\u90fd","\u4e24","\u4f53","\u5236","\u673a","\u5f53","\u4f7f","\u70b9","\u4ece","\u4e1a","\u672c","\u53bb","\u628a","\u6027","\u597d","\u5e94","\u5f00","\u5b83","\u5408","\u8fd8","\u56e0","\u7531","\u5176","\u4e9b","\u7136","\u524d","\u5916","\u5929","\u653f","\u56db","\u65e5","\u90a3","\u793e","\u4e49","\u4e8b","\u5e73","\u5f62","\u76f8","\u5168","\u8868","\u95f4","\u6837","\u4e0e","\u5173","\u5404","\u91cd","\u65b0","\u7ebf","\u5185","\u6570","\u6b63","\u5fc3","\u53cd","\u4f60","\u660e","\u770b","\u539f","\u53c8","\u4e48","\u5229","\u6bd4","\u6216","\u4f46","\u8d28","\u6c14","\u7b2c","\u5411","\u9053","\u547d","\u6b64","\u53d8","\u6761","\u53ea","\u6ca1","\u7ed3","\u89e3","\u95ee","\u610f","\u5efa","\u6708","\u516c","\u65e0","\u7cfb","\u519b","\u5f88","\u60c5","\u8005","\u6700","\u7acb","\u4ee3","\u60f3","\u5df2","\u901a","\u5e76","\u63d0","\u76f4","\u9898","\u515a","\u7a0b","\u5c55","\u4e94","\u679c","\u6599","\u8c61","\u5458","\u9769","\u4f4d","\u5165","\u5e38","\u6587","\u603b","\u6b21","\u54c1","\u5f0f","\u6d3b","\u8bbe","\u53ca","\u7ba1","\u7279","\u4ef6","\u957f","\u6c42","\u8001","\u5934","\u57fa","\u8d44","\u8fb9","\u6d41","\u8def","\u7ea7","\u5c11","\u56fe","\u5c71","\u7edf","\u63a5","\u77e5","\u8f83","\u5c06","\u7ec4","\u89c1","\u8ba1","\u522b","\u5979","\u624b","\u89d2","\u671f","\u6839","\u8bba","\u8fd0","\u519c","\u6307","\u51e0","\u4e5d","\u533a","\u5f3a","\u653e","\u51b3","\u897f","\u88ab","\u5e72","\u505a","\u5fc5","\u6218","\u5148","\u56de","\u5219","\u4efb","\u53d6","\u636e","\u5904","\u961f","\u5357","\u7ed9","\u8272","\u5149","\u95e8","\u5373","\u4fdd","\u6cbb","\u5317","\u9020","\u767e","\u89c4","\u70ed","\u9886","\u4e03","\u6d77","\u53e3","\u4e1c","\u5bfc","\u5668","\u538b","\u5fd7","\u4e16","\u91d1","\u589e","\u4e89","\u6d4e","\u9636","\u6cb9","\u601d","\u672f","\u6781","\u4ea4","\u53d7","\u8054","\u4ec0","\u8ba4","\u516d","\u5171","\u6743","\u6536","\u8bc1","\u6539","\u6e05","\u7f8e","\u518d","\u91c7","\u8f6c","\u66f4","\u5355","\u98ce","\u5207","\u6253","\u767d","\u6559","\u901f","\u82b1","\u5e26","\u5b89","\u573a","\u8eab","\u8f66","\u4f8b","\u771f","\u52a1","\u5177","\u4e07","\u6bcf","\u76ee","\u81f3","\u8fbe","\u8d70","\u79ef","\u793a","\u8bae","\u58f0","\u62a5","\u6597","\u5b8c","\u7c7b","\u516b","\u79bb","\u534e","\u540d","\u786e","\u624d","\u79d1","\u5f20","\u4fe1","\u9a6c","\u8282","\u8bdd","\u7c73","\u6574","\u7a7a","\u5143","\u51b5","\u4eca","\u96c6","\u6e29","\u4f20","\u571f","\u8bb8","\u6b65","\u7fa4","\u5e7f","\u77f3","\u8bb0","\u9700","\u6bb5","\u7814","\u754c","\u62c9","\u6797","\u5f8b","\u53eb","\u4e14","\u7a76","\u89c2","\u8d8a","\u7ec7","\u88c5","\u5f71","\u7b97","\u4f4e","\u6301","\u97f3","\u4f17","\u4e66","\u5e03","\u590d","\u5bb9","\u513f","\u987b","\u9645","\u5546","\u975e","\u9a8c","\u8fde","\u65ad","\u6df1","\u96be","\u8fd1","\u77ff","\u5343","\u5468","\u59d4","\u7d20","\u6280","\u5907","\u534a","\u529e","\u9752","\u7701","\u5217","\u4e60","\u54cd","\u7ea6","\u652f","\u822c","\u53f2","\u611f","\u52b3","\u4fbf","\u56e2","\u5f80","\u9178","\u5386","\u5e02","\u514b","\u4f55","\u9664","\u6d88","\u6784","\u5e9c","\u79f0","\u592a","\u51c6","\u7cbe","\u503c","\u53f7","\u7387","\u65cf","\u7ef4","\u5212","\u9009","\u6807","\u5199","\u5b58","\u5019","\u6bdb","\u4eb2","\u5feb","\u6548","\u65af","\u9662","\u67e5","\u6c5f","\u578b","\u773c","\u738b","\u6309","\u683c","\u517b","\u6613","\u7f6e","\u6d3e","\u5c42","\u7247","\u59cb","\u5374","\u4e13","\u72b6","\u80b2","\u5382","\u4eac","\u8bc6","\u9002","\u5c5e","\u5706","\u5305","\u706b","\u4f4f","\u8c03","\u6ee1","\u53bf","\u5c40","\u7167","\u53c2","\u7ea2","\u7ec6","\u5f15","\u542c","\u8be5","\u94c1","\u4ef7","\u4e25","\u9996","\u5e95","\u6db2","\u5b98","\u5fb7","\u968f","\u75c5","\u82cf","\u5931","\u5c14","\u6b7b","\u8bb2","\u914d","\u5973","\u9ec4","\u63a8","\u663e","\u8c08","\u7f6a","\u795e","\u827a","\u5462","\u5e2d","\u542b","\u4f01","\u671b","\u5bc6","\u6279","\u8425","\u9879","\u9632","\u4e3e","\u7403","\u82f1","\u6c27","\u52bf","\u544a","\u674e","\u53f0","\u843d","\u6728","\u5e2e","\u8f6e","\u7834","\u4e9a","\u5e08","\u56f4","\u6ce8","\u8fdc","\u5b57","\u6750","\u6392","\u4f9b","\u6cb3","\u6001","\u5c01","\u53e6","\u65bd","\u51cf","\u6811","\u6eb6","\u600e","\u6b62","\u6848","\u8a00","\u58eb","\u5747","\u6b66","\u56fa","\u53f6","\u9c7c","\u6ce2","\u89c6","\u4ec5","\u8d39","\u7d27","\u7231","\u5de6","\u7ae0","\u65e9","\u671d","\u5bb3","\u7eed","\u8f7b","\u670d","\u8bd5","\u98df","\u5145","\u5175","\u6e90","\u5224","\u62a4","\u53f8","\u8db3","\u67d0","\u7ec3","\u5dee","\u81f4","\u677f","\u7530","\u964d","\u9ed1","\u72af","\u8d1f","\u51fb","\u8303","\u7ee7","\u5174","\u4f3c","\u4f59","\u575a","\u66f2","\u8f93","\u4fee","\u6545","\u57ce","\u592b","\u591f","\u9001","\u7b14","\u8239","\u5360","\u53f3","\u8d22","\u5403","\u5bcc","\u6625","\u804c","\u89c9","\u6c49","\u753b","\u529f","\u5df4","\u8ddf","\u867d","\u6742","\u98de","\u68c0","\u5438","\u52a9","\u5347","\u9633","\u4e92","\u521d","\u521b","\u6297","\u8003","\u6295","\u574f","\u7b56","\u53e4","\u5f84","\u6362","\u672a","\u8dd1","\u7559","\u94a2","\u66fe","\u7aef","\u8d23","\u7ad9","\u7b80","\u8ff0","\u94b1","\u526f","\u5c3d","\u5e1d","\u5c04","\u8349","\u51b2","\u627f","\u72ec","\u4ee4","\u9650","\u963f","\u5ba3","\u73af","\u53cc","\u8bf7","\u8d85","\u5fae","\u8ba9","\u63a7","\u5dde","\u826f","\u8f74","\u627e","\u5426","\u7eaa","\u76ca","\u4f9d","\u4f18","\u9876","\u7840","\u8f7d","\u5012","\u623f","\u7a81","\u5750","\u7c89","\u654c","\u7565","\u5ba2","\u8881","\u51b7","\u80dc","\u7edd","\u6790","\u5757","\u5242","\u6d4b","\u4e1d","\u534f","\u8bc9","\u5ff5","\u9648","\u4ecd","\u7f57","\u76d0","\u53cb","\u6d0b","\u9519","\u82e6","\u591c","\u5211","\u79fb","\u9891","\u9010","\u9760","\u6df7","\u6bcd","\u77ed","\u76ae","\u7ec8","\u805a","\u6c7d","\u6751","\u4e91","\u54ea","\u65e2","\u8ddd","\u536b","\u505c","\u70c8","\u592e","\u5bdf","\u70e7","\u8fc5","\u5883","\u82e5","\u5370","\u6d32","\u523b","\u62ec","\u6fc0","\u5b54","\u641e","\u751a","\u5ba4","\u5f85","\u6838","\u6821","\u6563","\u4fb5","\u5427","\u7532","\u6e38","\u4e45","\u83dc","\u5473","\u65e7","\u6a21","\u6e56","\u8d27","\u635f","\u9884","\u963b","\u6beb","\u666e","\u7a33","\u4e59","\u5988","\u690d","\u606f","\u6269","\u94f6","\u8bed","\u6325","\u9152","\u5b88","\u62ff","\u5e8f","\u7eb8","\u533b","\u7f3a","\u96e8","\u5417","\u9488","\u5218","\u554a","\u6025","\u5531","\u8bef","\u8bad","\u613f","\u5ba1","\u9644","\u83b7","\u8336","\u9c9c","\u7cae","\u65a4","\u5b69","\u8131","\u786b","\u80a5","\u5584","\u9f99","\u6f14","\u7236","\u6e10","\u8840","\u6b22","\u68b0","\u638c","\u6b4c","\u6c99","\u521a","\u653b","\u8c13","\u76fe","\u8ba8","\u665a","\u7c92","\u4e71","\u71c3","\u77db","\u4e4e","\u6740","\u836f","\u5b81","\u9c81","\u8d35","\u949f","\u7164","\u8bfb","\u73ed","\u4f2f","\u9999","\u4ecb","\u8feb","\u53e5","\u4e30","\u57f9","\u63e1","\u5170","\u62c5","\u5f26","\u86cb","\u6c89","\u5047","\u7a7f","\u6267","\u7b54","\u4e50","\u8c01","\u987a","\u70df","\u7f29","\u5f81","\u8138","\u559c","\u677e","\u811a","\u56f0","\u5f02","\u514d","\u80cc","\u661f","\u798f","\u4e70","\u67d3","\u4e95","\u6982","\u6162","\u6015","\u78c1","\u500d","\u7956","\u7687","\u4fc3","\u9759","\u8865","\u8bc4","\u7ffb","\u8089","\u8df5","\u5c3c","\u8863","\u5bbd","\u626c","\u68c9","\u5e0c","\u4f24","\u64cd","\u5782","\u79cb","\u5b9c","\u6c22","\u5957","\u7763","\u632f","\u67b6","\u4eae","\u672b","\u5baa","\u5e86","\u7f16","\u725b","\u89e6","\u6620","\u96f7","\u9500","\u8bd7","\u5ea7","\u5c45","\u6293","\u88c2","\u80de","\u547c","\u5a18","\u666f","\u5a01","\u7eff","\u6676","\u539a","\u76df","\u8861","\u9e21","\u5b59","\u5ef6","\u5371","\u80f6","\u5c4b","\u4e61","\u4e34","\u9646","\u987e","\u6389","\u5440","\u706f","\u5c81","\u63aa","\u675f","\u8010","\u5267","\u7389","\u8d75","\u8df3","\u54e5","\u5b63","\u8bfe","\u51ef","\u80e1","\u989d","\u6b3e","\u7ecd","\u5377","\u9f50","\u4f1f","\u84b8","\u6b96","\u6c38","\u5b97","\u82d7","\u5ddd","\u7089","\u5ca9","\u5f31","\u96f6","\u6768","\u594f","\u6cbf","\u9732","\u6746","\u63a2","\u6ed1","\u9547","\u996d","\u6d53","\u822a","\u6000","\u8d76","\u5e93","\u593a","\u4f0a","\u7075","\u7a0e","\u9014","\u706d","\u8d5b","\u5f52","\u53ec","\u9f13","\u64ad","\u76d8","\u88c1","\u9669","\u5eb7","\u552f","\u5f55","\u83cc","\u7eaf","\u501f","\u7cd6","\u76d6","\u6a2a","\u7b26","\u79c1","\u52aa","\u5802","\u57df","\u67aa","\u6da6","\u5e45","\u54c8","\u7adf","\u719f","\u866b","\u6cfd","\u8111","\u58e4","\u78b3","\u6b27","\u904d","\u4fa7","\u5be8","\u6562","\u5f7b","\u8651","\u659c","\u8584","\u5ead","\u7eb3","\u5f39","\u9972","\u4f38","\u6298","\u9ea6","\u6e7f","\u6697","\u8377","\u74e6","\u585e","\u5e8a","\u7b51","\u6076","\u6237","\u8bbf","\u5854","\u5947","\u900f","\u6881","\u5200","\u65cb","\u8ff9","\u5361","\u6c2f","\u9047","\u4efd","\u6bd2","\u6ce5","\u9000","\u6d17","\u6446","\u7070","\u5f69","\u5356","\u8017","\u590f","\u62e9","\u5fd9","\u94dc","\u732e","\u786c","\u4e88","\u7e41","\u5708","\u96ea","\u51fd","\u4ea6","\u62bd","\u7bc7","\u9635","\u9634","\u4e01","\u5c3a","\u8ffd","\u5806","\u96c4","\u8fce","\u6cdb","\u7238","\u697c","\u907f","\u8c0b","\u5428","\u91ce","\u732a","\u65d7","\u7d2f","\u504f","\u5178","\u9986","\u7d22","\u79e6","\u8102","\u6f6e","\u7237","\u8c46","\u5ffd","\u6258","\u60ca","\u5851","\u9057","\u6108","\u6731","\u66ff","\u7ea4","\u7c97","\u503e","\u5c1a","\u75db","\u695a","\u8c22","\u594b","\u8d2d","\u78e8","\u541b","\u6c60","\u65c1","\u788e","\u9aa8","\u76d1","\u6355","\u5f1f","\u66b4","\u5272","\u8d2f","\u6b8a","\u91ca","\u8bcd","\u4ea1","\u58c1","\u987f","\u5b9d","\u5348","\u5c18","\u95fb","\u63ed","\u70ae","\u6b8b","\u51ac","\u6865","\u5987","\u8b66","\u7efc","\u62db","\u5434","\u4ed8","\u6d6e","\u906d","\u5f90","\u60a8","\u6447","\u8c37","\u8d5e","\u7bb1","\u9694","\u8ba2","\u7537","\u5439","\u56ed","\u7eb7","\u5510","\u8d25","\u5b8b","\u73bb","\u5de8","\u8015","\u5766","\u8363","\u95ed","\u6e7e","\u952e","\u51e1","\u9a7b","\u9505","\u6551","\u6069","\u5265","\u51dd","\u78b1","\u9f7f","\u622a","\u70bc","\u9ebb","\u7eba","\u7981","\u5e9f","\u76db","\u7248","\u7f13","\u51c0","\u775b","\u660c","\u5a5a","\u6d89","\u7b52","\u5634","\u63d2","\u5cb8","\u6717","\u5e84","\u8857","\u85cf","\u59d1","\u8d38","\u8150","\u5974","\u5566","\u60ef","\u4e58","\u4f19","\u6062","\u5300","\u7eb1","\u624e","\u8fa9","\u8033","\u5f6a","\u81e3","\u4ebf","\u7483","\u62b5","\u8109","\u79c0","\u8428","\u4fc4","\u7f51","\u821e","\u5e97","\u55b7","\u7eb5","\u5bf8","\u6c57","\u6302","\u6d2a","\u8d3a","\u95ea","\u67ec","\u7206","\u70ef","\u6d25","\u7a3b","\u5899","\u8f6f","\u52c7","\u50cf","\u6eda","\u5398","\u8499","\u82b3","\u80af","\u5761","\u67f1","\u8361","\u817f","\u4eea","\u65c5","\u5c3e","\u8f67","\u51b0","\u8d21","\u767b","\u9ece","\u524a","\u94bb","\u52d2","\u9003","\u969c","\u6c28","\u90ed","\u5cf0","\u5e01","\u6e2f","\u4f0f","\u8f68","\u4ea9","\u6bd5","\u64e6","\u83ab","\u523a","\u6d6a","\u79d8","\u63f4","\u682a","\u5065","\u552e","\u80a1","\u5c9b","\u7518","\u6ce1","\u7761","\u7ae5","\u94f8","\u6c64","\u9600","\u4f11","\u6c47","\u820d","\u7267","\u7ed5","\u70b8","\u54f2","\u78f7","\u7ee9","\u670b","\u6de1","\u5c16","\u542f","\u9677","\u67f4","\u5448","\u5f92","\u989c","\u6cea","\u7a0d","\u5fd8","\u6cf5","\u84dd","\u62d6","\u6d1e","\u6388","\u955c","\u8f9b","\u58ee","\u950b","\u8d2b","\u865a","\u5f2f","\u6469","\u6cf0","\u5e7c","\u5ef7","\u5c0a","\u7a97","\u7eb2","\u5f04","\u96b6","\u7591","\u6c0f","\u5bab","\u59d0","\u9707","\u745e","\u602a","\u5c24","\u7434","\u5faa","\u63cf","\u819c","\u8fdd","\u5939","\u8170","\u7f18","\u73e0","\u7a77","\u68ee","\u679d","\u7af9","\u6c9f","\u50ac","\u7ef3","\u5fc6","\u90a6","\u5269","\u5e78","\u6d46","\u680f","\u62e5","\u7259","\u8d2e","\u793c","\u6ee4","\u94a0","\u7eb9","\u7f62","\u62cd","\u54b1","\u558a","\u8896","\u57c3","\u52e4","\u7f5a","\u7126","\u6f5c","\u4f0d","\u58a8","\u6b32","\u7f1d","\u59d3","\u520a","\u9971","\u4eff","\u5956","\u94dd","\u9b3c","\u4e3d","\u8de8","\u9ed8","\u6316","\u94fe","\u626b","\u559d","\u888b","\u70ad","\u6c61","\u5e55","\u8bf8","\u5f27","\u52b1","\u6885","\u5976","\u6d01","\u707e","\u821f","\u9274","\u82ef","\u8bbc","\u62b1","\u6bc1","\u61c2","\u5bd2","\u667a","\u57d4","\u5bc4","\u5c4a","\u8dc3","\u6e21","\u6311","\u4e39","\u8270","\u8d1d","\u78b0","\u62d4","\u7239","\u6234","\u7801","\u68a6","\u82bd","\u7194","\u8d64","\u6e14","\u54ed","\u656c","\u9897","\u5954","\u94c5","\u4ef2","\u864e","\u7a00","\u59b9","\u4e4f","\u73cd","\u7533","\u684c","\u9075","\u5141","\u9686","\u87ba","\u4ed3","\u9b4f","\u9510","\u6653","\u6c2e","\u517c","\u9690","\u788d","\u8d6b","\u62e8","\u5fe0","\u8083","\u7f38","\u7275","\u62a2","\u535a","\u5de7","\u58f3","\u5144","\u675c","\u8baf","\u8bda","\u78a7","\u7965","\u67ef","\u9875","\u5de1","\u77e9","\u60b2","\u704c","\u9f84","\u4f26","\u7968","\u5bfb","\u6842","\u94fa","\u5723","\u6050","\u6070","\u90d1","\u8da3","\u62ac","\u8352","\u817e","\u8d34","\u67d4","\u6ef4","\u731b","\u9614","\u8f86","\u59bb","\u586b","\u64a4","\u50a8","\u7b7e","\u95f9","\u6270","\u7d2b","\u7802","\u9012","\u620f","\u540a","\u9676","\u4f10","\u5582","\u7597","\u74f6","\u5a46","\u629a","\u81c2","\u6478","\u5fcd","\u867e","\u8721","\u90bb","\u80f8","\u5de9","\u6324","\u5076","\u5f03","\u69fd","\u52b2","\u4e73","\u9093","\u5409","\u4ec1","\u70c2","\u7816","\u79df","\u4e4c","\u8230","\u4f34","\u74dc","\u6d45","\u4e19","\u6682","\u71e5","\u6a61","\u67f3","\u8ff7","\u6696","\u724c","\u79e7","\u80c6","\u8be6","\u7c27","\u8e0f","\u74f7","\u8c31","\u5446","\u5bbe","\u7cca","\u6d1b","\u8f89","\u6124","\u7ade","\u9699","\u6012","\u7c98","\u4e43","\u7eea","\u80a9","\u7c4d","\u654f","\u6d82","\u7199","\u7686","\u4fa6","\u60ac","\u6398","\u4eab","\u7ea0","\u9192","\u72c2","\u9501","\u6dc0","\u6068","\u7272","\u9738","\u722c","\u8d4f","\u9006","\u73a9","\u9675","\u795d","\u79d2","\u6d59","\u8c8c","\u5f79","\u5f7c","\u6089","\u9e2d","\u8d8b","\u51e4","\u6668","\u755c","\u8f88","\u79e9","\u5375","\u7f72","\u68af","\u708e","\u6ee9","\u68cb","\u9a71","\u7b5b","\u5ce1","\u5192","\u5565","\u5bff","\u8bd1","\u6d78","\u6cc9","\u5e3d","\u8fdf","\u7845","\u7586","\u8d37","\u6f0f","\u7a3f","\u51a0","\u5ae9","\u80c1","\u82af","\u7262","\u53db","\u8680","\u5965","\u9e23","\u5cad","\u7f8a","\u51ed","\u4e32","\u5858","\u7ed8","\u9175","\u878d","\u76c6","\u9521","\u5e99","\u7b79","\u51bb","\u8f85","\u6444","\u88ad","\u7b4b","\u62d2","\u50da","\u65f1","\u94be","\u9e1f","\u6f06","\u6c88","\u7709","\u758f","\u6dfb","\u68d2","\u7a57","\u785d","\u97e9","\u903c","\u626d","\u4fa8","\u51c9","\u633a","\u7897","\u683d","\u7092","\u676f","\u60a3","\u998f","\u529d","\u8c6a","\u8fbd","\u52c3","\u9e3f","\u65e6","\u540f","\u62dc","\u72d7","\u57cb","\u8f8a","\u63a9","\u996e","\u642c","\u9a82","\u8f9e","\u52fe","\u6263","\u4f30","\u848b","\u7ed2","\u96fe","\u4e08","\u6735","\u59c6","\u62df","\u5b87","\u8f91","\u9655","\u96d5","\u507f","\u84c4","\u5d07","\u526a","\u5021","\u5385","\u54ac","\u9a76","\u85af","\u5237","\u65a5","\u756a","\u8d4b","\u5949","\u4f5b","\u6d47","\u6f2b","\u66fc","\u6247","\u9499","\u6843","\u6276","\u4ed4","\u8fd4","\u4fd7","\u4e8f","\u8154","\u978b","\u68f1","\u8986","\u6846","\u6084","\u53d4","\u649e","\u9a97","\u52d8","\u65fa","\u6cb8","\u5b64","\u5410","\u5b5f","\u6e20","\u5c48","\u75be","\u5999","\u60dc","\u4ef0","\u72e0","\u80c0","\u8c10","\u629b","\u9709","\u6851","\u5c97","\u561b","\u8870","\u76d7","\u6e17","\u810f","\u8d56","\u6d8c","\u751c","\u66f9","\u9605","\u808c","\u54e9","\u5389","\u70c3","\u7eac","\u6bc5","\u6628","\u4f2a","\u75c7","\u716e","\u53f9","\u9489","\u642d","\u830e","\u7b3c","\u9177","\u5077","\u5f13","\u9525","\u6052","\u6770","\u5751","\u9f3b","\u7ffc","\u7eb6","\u53d9","\u72f1","\u902e","\u7f50","\u7edc","\u68da","\u6291","\u81a8","\u852c","\u5bfa","\u9aa4","\u7a46","\u51b6","\u67af","\u518c","\u5c38","\u51f8","\u7ec5","\u576f","\u727a","\u7130","\u8f70","\u6b23","\u664b","\u7626","\u5fa1","\u952d","\u9526","\u4e27","\u65ec","\u953b","\u5784","\u641c","\u6251","\u9080","\u4ead","\u916f","\u8fc8","\u8212","\u8106","\u9176","\u95f2","\u5fe7","\u915a","\u987d","\u7fbd","\u6da8","\u5378","\u4ed7","\u966a","\u8f9f","\u60e9","\u676d","\u59da","\u809a","\u6349","\u98d8","\u6f02","\u6606","\u6b3a","\u543e","\u90ce","\u70f7","\u6c41","\u5475","\u9970","\u8427","\u96c5","\u90ae","\u8fc1","\u71d5","\u6492","\u59fb","\u8d74","\u5bb4","\u70e6","\u503a","\u5e10","\u6591","\u94c3","\u65e8","\u9187","\u8463","\u997c","\u96cf","\u59ff","\u62cc","\u5085","\u8179","\u59a5","\u63c9","\u8d24","\u62c6","\u6b6a","\u8461","\u80fa","\u4e22","\u6d69","\u5fbd","\u6602","\u57ab","\u6321","\u89c8","\u8d2a","\u6170","\u7f34","\u6c6a","\u614c","\u51af","\u8bfa","\u59dc","\u8c0a","\u51f6","\u52a3","\u8bec","\u8000","\u660f","\u8eba","\u76c8","\u9a91","\u4e54","\u6eaa","\u4e1b","\u5362","\u62b9","\u95f7","\u54a8","\u522e","\u9a7e","\u7f06","\u609f","\u6458","\u94d2","\u63b7","\u9887","\u5e7b","\u67c4","\u60e0","\u60e8","\u4f73","\u4ec7","\u814a","\u7a9d","\u6da4","\u5251","\u77a7","\u5821","\u6cfc","\u8471","\u7f69","\u970d","\u635e","\u80ce","\u82cd","\u6ee8","\u4fe9","\u6345","\u6e58","\u780d","\u971e","\u90b5","\u8404","\u75af","\u6dee","\u9042","\u718a","\u7caa","\u70d8","\u5bbf","\u6863","\u6208","\u9a73","\u5ac2","\u88d5","\u5f99","\u7bad","\u6350","\u80a0","\u6491","\u6652","\u8fa8","\u6bbf","\u83b2","\u644a","\u6405","\u9171","\u5c4f","\u75ab","\u54c0","\u8521","\u5835","\u6cab","\u76b1","\u7545","\u53e0","\u9601","\u83b1","\u6572","\u8f96","\u94a9","\u75d5","\u575d","\u5df7","\u997f","\u7978","\u4e18","\u7384","\u6e9c","\u66f0","\u903b","\u5f6d","\u5c1d","\u537f","\u59a8","\u8247","\u541e","\u97e6","\u6028","\u77ee","\u6b47"]')},176:e=>{"use strict";e.exports=JSON.parse('["\u7684","\u4e00","\u662f","\u5728","\u4e0d","\u4e86","\u6709","\u548c","\u4eba","\u9019","\u4e2d","\u5927","\u70ba","\u4e0a","\u500b","\u570b","\u6211","\u4ee5","\u8981","\u4ed6","\u6642","\u4f86","\u7528","\u5011","\u751f","\u5230","\u4f5c","\u5730","\u65bc","\u51fa","\u5c31","\u5206","\u5c0d","\u6210","\u6703","\u53ef","\u4e3b","\u767c","\u5e74","\u52d5","\u540c","\u5de5","\u4e5f","\u80fd","\u4e0b","\u904e","\u5b50","\u8aaa","\u7522","\u7a2e","\u9762","\u800c","\u65b9","\u5f8c","\u591a","\u5b9a","\u884c","\u5b78","\u6cd5","\u6240","\u6c11","\u5f97","\u7d93","\u5341","\u4e09","\u4e4b","\u9032","\u8457","\u7b49","\u90e8","\u5ea6","\u5bb6","\u96fb","\u529b","\u88e1","\u5982","\u6c34","\u5316","\u9ad8","\u81ea","\u4e8c","\u7406","\u8d77","\u5c0f","\u7269","\u73fe","\u5be6","\u52a0","\u91cf","\u90fd","\u5169","\u9ad4","\u5236","\u6a5f","\u7576","\u4f7f","\u9ede","\u5f9e","\u696d","\u672c","\u53bb","\u628a","\u6027","\u597d","\u61c9","\u958b","\u5b83","\u5408","\u9084","\u56e0","\u7531","\u5176","\u4e9b","\u7136","\u524d","\u5916","\u5929","\u653f","\u56db","\u65e5","\u90a3","\u793e","\u7fa9","\u4e8b","\u5e73","\u5f62","\u76f8","\u5168","\u8868","\u9593","\u6a23","\u8207","\u95dc","\u5404","\u91cd","\u65b0","\u7dda","\u5167","\u6578","\u6b63","\u5fc3","\u53cd","\u4f60","\u660e","\u770b","\u539f","\u53c8","\u9ebc","\u5229","\u6bd4","\u6216","\u4f46","\u8cea","\u6c23","\u7b2c","\u5411","\u9053","\u547d","\u6b64","\u8b8a","\u689d","\u53ea","\u6c92","\u7d50","\u89e3","\u554f","\u610f","\u5efa","\u6708","\u516c","\u7121","\u7cfb","\u8ecd","\u5f88","\u60c5","\u8005","\u6700","\u7acb","\u4ee3","\u60f3","\u5df2","\u901a","\u4e26","\u63d0","\u76f4","\u984c","\u9ee8","\u7a0b","\u5c55","\u4e94","\u679c","\u6599","\u8c61","\u54e1","\u9769","\u4f4d","\u5165","\u5e38","\u6587","\u7e3d","\u6b21","\u54c1","\u5f0f","\u6d3b","\u8a2d","\u53ca","\u7ba1","\u7279","\u4ef6","\u9577","\u6c42","\u8001","\u982d","\u57fa","\u8cc7","\u908a","\u6d41","\u8def","\u7d1a","\u5c11","\u5716","\u5c71","\u7d71","\u63a5","\u77e5","\u8f03","\u5c07","\u7d44","\u898b","\u8a08","\u5225","\u5979","\u624b","\u89d2","\u671f","\u6839","\u8ad6","\u904b","\u8fb2","\u6307","\u5e7e","\u4e5d","\u5340","\u5f37","\u653e","\u6c7a","\u897f","\u88ab","\u5e79","\u505a","\u5fc5","\u6230","\u5148","\u56de","\u5247","\u4efb","\u53d6","\u64da","\u8655","\u968a","\u5357","\u7d66","\u8272","\u5149","\u9580","\u5373","\u4fdd","\u6cbb","\u5317","\u9020","\u767e","\u898f","\u71b1","\u9818","\u4e03","\u6d77","\u53e3","\u6771","\u5c0e","\u5668","\u58d3","\u5fd7","\u4e16","\u91d1","\u589e","\u722d","\u6fdf","\u968e","\u6cb9","\u601d","\u8853","\u6975","\u4ea4","\u53d7","\u806f","\u4ec0","\u8a8d","\u516d","\u5171","\u6b0a","\u6536","\u8b49","\u6539","\u6e05","\u7f8e","\u518d","\u63a1","\u8f49","\u66f4","\u55ae","\u98a8","\u5207","\u6253","\u767d","\u6559","\u901f","\u82b1","\u5e36","\u5b89","\u5834","\u8eab","\u8eca","\u4f8b","\u771f","\u52d9","\u5177","\u842c","\u6bcf","\u76ee","\u81f3","\u9054","\u8d70","\u7a4d","\u793a","\u8b70","\u8072","\u5831","\u9b25","\u5b8c","\u985e","\u516b","\u96e2","\u83ef","\u540d","\u78ba","\u624d","\u79d1","\u5f35","\u4fe1","\u99ac","\u7bc0","\u8a71","\u7c73","\u6574","\u7a7a","\u5143","\u6cc1","\u4eca","\u96c6","\u6eab","\u50b3","\u571f","\u8a31","\u6b65","\u7fa4","\u5ee3","\u77f3","\u8a18","\u9700","\u6bb5","\u7814","\u754c","\u62c9","\u6797","\u5f8b","\u53eb","\u4e14","\u7a76","\u89c0","\u8d8a","\u7e54","\u88dd","\u5f71","\u7b97","\u4f4e","\u6301","\u97f3","\u773e","\u66f8","\u5e03","\u590d","\u5bb9","\u5152","\u9808","\u969b","\u5546","\u975e","\u9a57","\u9023","\u65b7","\u6df1","\u96e3","\u8fd1","\u7926","\u5343","\u9031","\u59d4","\u7d20","\u6280","\u5099","\u534a","\u8fa6","\u9752","\u7701","\u5217","\u7fd2","\u97ff","\u7d04","\u652f","\u822c","\u53f2","\u611f","\u52de","\u4fbf","\u5718","\u5f80","\u9178","\u6b77","\u5e02","\u514b","\u4f55","\u9664","\u6d88","\u69cb","\u5e9c","\u7a31","\u592a","\u6e96","\u7cbe","\u503c","\u865f","\u7387","\u65cf","\u7dad","\u5283","\u9078","\u6a19","\u5beb","\u5b58","\u5019","\u6bdb","\u89aa","\u5feb","\u6548","\u65af","\u9662","\u67e5","\u6c5f","\u578b","\u773c","\u738b","\u6309","\u683c","\u990a","\u6613","\u7f6e","\u6d3e","\u5c64","\u7247","\u59cb","\u537b","\u5c08","\u72c0","\u80b2","\u5ee0","\u4eac","\u8b58","\u9069","\u5c6c","\u5713","\u5305","\u706b","\u4f4f","\u8abf","\u6eff","\u7e23","\u5c40","\u7167","\u53c3","\u7d05","\u7d30","\u5f15","\u807d","\u8a72","\u9435","\u50f9","\u56b4","\u9996","\u5e95","\u6db2","\u5b98","\u5fb7","\u96a8","\u75c5","\u8607","\u5931","\u723e","\u6b7b","\u8b1b","\u914d","\u5973","\u9ec3","\u63a8","\u986f","\u8ac7","\u7f6a","\u795e","\u85dd","\u5462","\u5e2d","\u542b","\u4f01","\u671b","\u5bc6","\u6279","\u71df","\u9805","\u9632","\u8209","\u7403","\u82f1","\u6c27","\u52e2","\u544a","\u674e","\u53f0","\u843d","\u6728","\u5e6b","\u8f2a","\u7834","\u4e9e","\u5e2b","\u570d","\u6ce8","\u9060","\u5b57","\u6750","\u6392","\u4f9b","\u6cb3","\u614b","\u5c01","\u53e6","\u65bd","\u6e1b","\u6a39","\u6eb6","\u600e","\u6b62","\u6848","\u8a00","\u58eb","\u5747","\u6b66","\u56fa","\u8449","\u9b5a","\u6ce2","\u8996","\u50c5","\u8cbb","\u7dca","\u611b","\u5de6","\u7ae0","\u65e9","\u671d","\u5bb3","\u7e8c","\u8f15","\u670d","\u8a66","\u98df","\u5145","\u5175","\u6e90","\u5224","\u8b77","\u53f8","\u8db3","\u67d0","\u7df4","\u5dee","\u81f4","\u677f","\u7530","\u964d","\u9ed1","\u72af","\u8ca0","\u64ca","\u8303","\u7e7c","\u8208","\u4f3c","\u9918","\u5805","\u66f2","\u8f38","\u4fee","\u6545","\u57ce","\u592b","\u5920","\u9001","\u7b46","\u8239","\u4f54","\u53f3","\u8ca1","\u5403","\u5bcc","\u6625","\u8077","\u89ba","\u6f22","\u756b","\u529f","\u5df4","\u8ddf","\u96d6","\u96dc","\u98db","\u6aa2","\u5438","\u52a9","\u6607","\u967d","\u4e92","\u521d","\u5275","\u6297","\u8003","\u6295","\u58de","\u7b56","\u53e4","\u5f91","\u63db","\u672a","\u8dd1","\u7559","\u92fc","\u66fe","\u7aef","\u8cac","\u7ad9","\u7c21","\u8ff0","\u9322","\u526f","\u76e1","\u5e1d","\u5c04","\u8349","\u885d","\u627f","\u7368","\u4ee4","\u9650","\u963f","\u5ba3","\u74b0","\u96d9","\u8acb","\u8d85","\u5fae","\u8b93","\u63a7","\u5dde","\u826f","\u8ef8","\u627e","\u5426","\u7d00","\u76ca","\u4f9d","\u512a","\u9802","\u790e","\u8f09","\u5012","\u623f","\u7a81","\u5750","\u7c89","\u6575","\u7565","\u5ba2","\u8881","\u51b7","\u52dd","\u7d55","\u6790","\u584a","\u5291","\u6e2c","\u7d72","\u5354","\u8a34","\u5ff5","\u9673","\u4ecd","\u7f85","\u9e7d","\u53cb","\u6d0b","\u932f","\u82e6","\u591c","\u5211","\u79fb","\u983b","\u9010","\u9760","\u6df7","\u6bcd","\u77ed","\u76ae","\u7d42","\u805a","\u6c7d","\u6751","\u96f2","\u54ea","\u65e2","\u8ddd","\u885b","\u505c","\u70c8","\u592e","\u5bdf","\u71d2","\u8fc5","\u5883","\u82e5","\u5370","\u6d32","\u523b","\u62ec","\u6fc0","\u5b54","\u641e","\u751a","\u5ba4","\u5f85","\u6838","\u6821","\u6563","\u4fb5","\u5427","\u7532","\u904a","\u4e45","\u83dc","\u5473","\u820a","\u6a21","\u6e56","\u8ca8","\u640d","\u9810","\u963b","\u6beb","\u666e","\u7a69","\u4e59","\u5abd","\u690d","\u606f","\u64f4","\u9280","\u8a9e","\u63ee","\u9152","\u5b88","\u62ff","\u5e8f","\u7d19","\u91ab","\u7f3a","\u96e8","\u55ce","\u91dd","\u5289","\u554a","\u6025","\u5531","\u8aa4","\u8a13","\u9858","\u5be9","\u9644","\u7372","\u8336","\u9bae","\u7ce7","\u65a4","\u5b69","\u812b","\u786b","\u80a5","\u5584","\u9f8d","\u6f14","\u7236","\u6f38","\u8840","\u6b61","\u68b0","\u638c","\u6b4c","\u6c99","\u525b","\u653b","\u8b02","\u76fe","\u8a0e","\u665a","\u7c92","\u4e82","\u71c3","\u77db","\u4e4e","\u6bba","\u85e5","\u5be7","\u9b6f","\u8cb4","\u9418","\u7164","\u8b80","\u73ed","\u4f2f","\u9999","\u4ecb","\u8feb","\u53e5","\u8c50","\u57f9","\u63e1","\u862d","\u64d4","\u5f26","\u86cb","\u6c89","\u5047","\u7a7f","\u57f7","\u7b54","\u6a02","\u8ab0","\u9806","\u7159","\u7e2e","\u5fb5","\u81c9","\u559c","\u677e","\u8173","\u56f0","\u7570","\u514d","\u80cc","\u661f","\u798f","\u8cb7","\u67d3","\u4e95","\u6982","\u6162","\u6015","\u78c1","\u500d","\u7956","\u7687","\u4fc3","\u975c","\u88dc","\u8a55","\u7ffb","\u8089","\u8e10","\u5c3c","\u8863","\u5bec","\u63da","\u68c9","\u5e0c","\u50b7","\u64cd","\u5782","\u79cb","\u5b9c","\u6c2b","\u5957","\u7763","\u632f","\u67b6","\u4eae","\u672b","\u61b2","\u6176","\u7de8","\u725b","\u89f8","\u6620","\u96f7","\u92b7","\u8a69","\u5ea7","\u5c45","\u6293","\u88c2","\u80de","\u547c","\u5a18","\u666f","\u5a01","\u7da0","\u6676","\u539a","\u76df","\u8861","\u96de","\u5b6b","\u5ef6","\u5371","\u81a0","\u5c4b","\u9109","\u81e8","\u9678","\u9867","\u6389","\u5440","\u71c8","\u6b72","\u63aa","\u675f","\u8010","\u5287","\u7389","\u8d99","\u8df3","\u54e5","\u5b63","\u8ab2","\u51f1","\u80e1","\u984d","\u6b3e","\u7d39","\u5377","\u9f4a","\u5049","\u84b8","\u6b96","\u6c38","\u5b97","\u82d7","\u5ddd","\u7210","\u5ca9","\u5f31","\u96f6","\u694a","\u594f","\u6cbf","\u9732","\u687f","\u63a2","\u6ed1","\u93ae","\u98ef","\u6fc3","\u822a","\u61f7","\u8d95","\u5eab","\u596a","\u4f0a","\u9748","\u7a05","\u9014","\u6ec5","\u8cfd","\u6b78","\u53ec","\u9f13","\u64ad","\u76e4","\u88c1","\u96aa","\u5eb7","\u552f","\u9304","\u83cc","\u7d14","\u501f","\u7cd6","\u84cb","\u6a6b","\u7b26","\u79c1","\u52aa","\u5802","\u57df","\u69cd","\u6f64","\u5e45","\u54c8","\u7adf","\u719f","\u87f2","\u6fa4","\u8166","\u58e4","\u78b3","\u6b50","\u904d","\u5074","\u5be8","\u6562","\u5fb9","\u616e","\u659c","\u8584","\u5ead","\u7d0d","\u5f48","\u98fc","\u4f38","\u6298","\u9ea5","\u6fd5","\u6697","\u8377","\u74e6","\u585e","\u5e8a","\u7bc9","\u60e1","\u6236","\u8a2a","\u5854","\u5947","\u900f","\u6881","\u5200","\u65cb","\u8de1","\u5361","\u6c2f","\u9047","\u4efd","\u6bd2","\u6ce5","\u9000","\u6d17","\u64fa","\u7070","\u5f69","\u8ce3","\u8017","\u590f","\u64c7","\u5fd9","\u9285","\u737b","\u786c","\u4e88","\u7e41","\u5708","\u96ea","\u51fd","\u4ea6","\u62bd","\u7bc7","\u9663","\u9670","\u4e01","\u5c3a","\u8ffd","\u5806","\u96c4","\u8fce","\u6cdb","\u7238","\u6a13","\u907f","\u8b00","\u5678","\u91ce","\u8c6c","\u65d7","\u7d2f","\u504f","\u5178","\u9928","\u7d22","\u79e6","\u8102","\u6f6e","\u723a","\u8c46","\u5ffd","\u6258","\u9a5a","\u5851","\u907a","\u6108","\u6731","\u66ff","\u7e96","\u7c97","\u50be","\u5c1a","\u75db","\u695a","\u8b1d","\u596e","\u8cfc","\u78e8","\u541b","\u6c60","\u65c1","\u788e","\u9aa8","\u76e3","\u6355","\u5f1f","\u66b4","\u5272","\u8cab","\u6b8a","\u91cb","\u8a5e","\u4ea1","\u58c1","\u9813","\u5bf6","\u5348","\u5875","\u805e","\u63ed","\u70ae","\u6b98","\u51ac","\u6a4b","\u5a66","\u8b66","\u7d9c","\u62db","\u5433","\u4ed8","\u6d6e","\u906d","\u5f90","\u60a8","\u6416","\u8c37","\u8d0a","\u7bb1","\u9694","\u8a02","\u7537","\u5439","\u5712","\u7d1b","\u5510","\u6557","\u5b8b","\u73bb","\u5de8","\u8015","\u5766","\u69ae","\u9589","\u7063","\u9375","\u51e1","\u99d0","\u934b","\u6551","\u6069","\u525d","\u51dd","\u9e7c","\u9f52","\u622a","\u7149","\u9ebb","\u7d21","\u7981","\u5ee2","\u76db","\u7248","\u7de9","\u6de8","\u775b","\u660c","\u5a5a","\u6d89","\u7b52","\u5634","\u63d2","\u5cb8","\u6717","\u838a","\u8857","\u85cf","\u59d1","\u8cbf","\u8150","\u5974","\u5566","\u6163","\u4e58","\u5925","\u6062","\u52fb","\u7d17","\u624e","\u8faf","\u8033","\u5f6a","\u81e3","\u5104","\u7483","\u62b5","\u8108","\u79c0","\u85a9","\u4fc4","\u7db2","\u821e","\u5e97","\u5674","\u7e31","\u5bf8","\u6c57","\u639b","\u6d2a","\u8cc0","\u9583","\u67ec","\u7206","\u70ef","\u6d25","\u7a3b","\u7246","\u8edf","\u52c7","\u50cf","\u6efe","\u5398","\u8499","\u82b3","\u80af","\u5761","\u67f1","\u76ea","\u817f","\u5100","\u65c5","\u5c3e","\u8ecb","\u51b0","\u8ca2","\u767b","\u9ece","\u524a","\u947d","\u52d2","\u9003","\u969c","\u6c28","\u90ed","\u5cf0","\u5e63","\u6e2f","\u4f0f","\u8ecc","\u755d","\u7562","\u64e6","\u83ab","\u523a","\u6d6a","\u79d8","\u63f4","\u682a","\u5065","\u552e","\u80a1","\u5cf6","\u7518","\u6ce1","\u7761","\u7ae5","\u9444","\u6e6f","\u95a5","\u4f11","\u532f","\u820d","\u7267","\u7e5e","\u70b8","\u54f2","\u78f7","\u7e3e","\u670b","\u6de1","\u5c16","\u555f","\u9677","\u67f4","\u5448","\u5f92","\u984f","\u6dda","\u7a0d","\u5fd8","\u6cf5","\u85cd","\u62d6","\u6d1e","\u6388","\u93e1","\u8f9b","\u58ef","\u92d2","\u8ca7","\u865b","\u5f4e","\u6469","\u6cf0","\u5e7c","\u5ef7","\u5c0a","\u7a97","\u7db1","\u5f04","\u96b8","\u7591","\u6c0f","\u5bae","\u59d0","\u9707","\u745e","\u602a","\u5c24","\u7434","\u5faa","\u63cf","\u819c","\u9055","\u593e","\u8170","\u7de3","\u73e0","\u7aae","\u68ee","\u679d","\u7af9","\u6e9d","\u50ac","\u7e69","\u61b6","\u90a6","\u5269","\u5e78","\u6f3f","\u6b04","\u64c1","\u7259","\u8caf","\u79ae","\u6ffe","\u9209","\u7d0b","\u7f77","\u62cd","\u54b1","\u558a","\u8896","\u57c3","\u52e4","\u7f70","\u7126","\u6f5b","\u4f0d","\u58a8","\u6b32","\u7e2b","\u59d3","\u520a","\u98fd","\u4eff","\u734e","\u92c1","\u9b3c","\u9e97","\u8de8","\u9ed8","\u6316","\u93c8","\u6383","\u559d","\u888b","\u70ad","\u6c61","\u5e55","\u8af8","\u5f27","\u52f5","\u6885","\u5976","\u6f54","\u707d","\u821f","\u9451","\u82ef","\u8a1f","\u62b1","\u6bc0","\u61c2","\u5bd2","\u667a","\u57d4","\u5bc4","\u5c46","\u8e8d","\u6e21","\u6311","\u4e39","\u8271","\u8c9d","\u78b0","\u62d4","\u7239","\u6234","\u78bc","\u5922","\u82bd","\u7194","\u8d64","\u6f01","\u54ed","\u656c","\u9846","\u5954","\u925b","\u4ef2","\u864e","\u7a00","\u59b9","\u4e4f","\u73cd","\u7533","\u684c","\u9075","\u5141","\u9686","\u87ba","\u5009","\u9b4f","\u92b3","\u66c9","\u6c2e","\u517c","\u96b1","\u7919","\u8d6b","\u64a5","\u5fe0","\u8085","\u7f38","\u727d","\u6436","\u535a","\u5de7","\u6bbc","\u5144","\u675c","\u8a0a","\u8aa0","\u78a7","\u7965","\u67ef","\u9801","\u5de1","\u77e9","\u60b2","\u704c","\u9f61","\u502b","\u7968","\u5c0b","\u6842","\u92ea","\u8056","\u6050","\u6070","\u912d","\u8da3","\u62ac","\u8352","\u9a30","\u8cbc","\u67d4","\u6ef4","\u731b","\u95ca","\u8f1b","\u59bb","\u586b","\u64a4","\u5132","\u7c3d","\u9b27","\u64fe","\u7d2b","\u7802","\u905e","\u6232","\u540a","\u9676","\u4f10","\u9935","\u7642","\u74f6","\u5a46","\u64ab","\u81c2","\u6478","\u5fcd","\u8766","\u881f","\u9130","\u80f8","\u978f","\u64e0","\u5076","\u68c4","\u69fd","\u52c1","\u4e73","\u9127","\u5409","\u4ec1","\u721b","\u78da","\u79df","\u70cf","\u8266","\u4f34","\u74dc","\u6dfa","\u4e19","\u66ab","\u71e5","\u6a61","\u67f3","\u8ff7","\u6696","\u724c","\u79e7","\u81bd","\u8a73","\u7c27","\u8e0f","\u74f7","\u8b5c","\u5446","\u8cd3","\u7cca","\u6d1b","\u8f1d","\u61a4","\u7af6","\u9699","\u6012","\u7c98","\u4e43","\u7dd2","\u80a9","\u7c4d","\u654f","\u5857","\u7199","\u7686","\u5075","\u61f8","\u6398","\u4eab","\u7cfe","\u9192","\u72c2","\u9396","\u6dc0","\u6068","\u7272","\u9738","\u722c","\u8cde","\u9006","\u73a9","\u9675","\u795d","\u79d2","\u6d59","\u8c8c","\u5f79","\u5f7c","\u6089","\u9d28","\u8da8","\u9cf3","\u6668","\u755c","\u8f29","\u79e9","\u5375","\u7f72","\u68af","\u708e","\u7058","\u68cb","\u9a45","\u7be9","\u5cfd","\u5192","\u5565","\u58fd","\u8b6f","\u6d78","\u6cc9","\u5e3d","\u9072","\u77fd","\u7586","\u8cb8","\u6f0f","\u7a3f","\u51a0","\u5ae9","\u8105","\u82af","\u7262","\u53db","\u8755","\u5967","\u9cf4","\u5dba","\u7f8a","\u6191","\u4e32","\u5858","\u7e6a","\u9175","\u878d","\u76c6","\u932b","\u5edf","\u7c4c","\u51cd","\u8f14","\u651d","\u8972","\u7b4b","\u62d2","\u50da","\u65f1","\u9240","\u9ce5","\u6f06","\u6c88","\u7709","\u758f","\u6dfb","\u68d2","\u7a57","\u785d","\u97d3","\u903c","\u626d","\u50d1","\u6dbc","\u633a","\u7897","\u683d","\u7092","\u676f","\u60a3","\u993e","\u52f8","\u8c6a","\u907c","\u52c3","\u9d3b","\u65e6","\u540f","\u62dc","\u72d7","\u57cb","\u8f25","\u63a9","\u98f2","\u642c","\u7f75","\u8fad","\u52fe","\u6263","\u4f30","\u8523","\u7d68","\u9727","\u4e08","\u6735","\u59c6","\u64ec","\u5b87","\u8f2f","\u965d","\u96d5","\u511f","\u84c4","\u5d07","\u526a","\u5021","\u5ef3","\u54ac","\u99db","\u85af","\u5237","\u65a5","\u756a","\u8ce6","\u5949","\u4f5b","\u6f86","\u6f2b","\u66fc","\u6247","\u9223","\u6843","\u6276","\u4ed4","\u8fd4","\u4fd7","\u8667","\u8154","\u978b","\u68f1","\u8986","\u6846","\u6084","\u53d4","\u649e","\u9a19","\u52d8","\u65fa","\u6cb8","\u5b64","\u5410","\u5b5f","\u6e20","\u5c48","\u75be","\u5999","\u60dc","\u4ef0","\u72e0","\u8139","\u8ae7","\u62cb","\u9ef4","\u6851","\u5d17","\u561b","\u8870","\u76dc","\u6ef2","\u81df","\u8cf4","\u6e67","\u751c","\u66f9","\u95b1","\u808c","\u54e9","\u53b2","\u70f4","\u7def","\u6bc5","\u6628","\u507d","\u75c7","\u716e","\u5606","\u91d8","\u642d","\u8396","\u7c60","\u9177","\u5077","\u5f13","\u9310","\u6046","\u5091","\u5751","\u9f3b","\u7ffc","\u7db8","\u6558","\u7344","\u902e","\u7f50","\u7d61","\u68da","\u6291","\u81a8","\u852c","\u5bfa","\u9a5f","\u7a46","\u51b6","\u67af","\u518a","\u5c4d","\u51f8","\u7d33","\u576f","\u72a7","\u7130","\u8f5f","\u6b23","\u6649","\u7626","\u79a6","\u9320","\u9326","\u55aa","\u65ec","\u935b","\u58df","\u641c","\u64b2","\u9080","\u4ead","\u916f","\u9081","\u8212","\u8106","\u9176","\u9592","\u6182","\u915a","\u9811","\u7fbd","\u6f32","\u5378","\u4ed7","\u966a","\u95e2","\u61f2","\u676d","\u59da","\u809a","\u6349","\u98c4","\u6f02","\u6606","\u6b3a","\u543e","\u90ce","\u70f7","\u6c41","\u5475","\u98fe","\u856d","\u96c5","\u90f5","\u9077","\u71d5","\u6492","\u59fb","\u8d74","\u5bb4","\u7169","\u50b5","\u5e33","\u6591","\u9234","\u65e8","\u9187","\u8463","\u9905","\u96db","\u59ff","\u62cc","\u5085","\u8179","\u59a5","\u63c9","\u8ce2","\u62c6","\u6b6a","\u8461","\u80fa","\u4e1f","\u6d69","\u5fbd","\u6602","\u588a","\u64cb","\u89bd","\u8caa","\u6170","\u7e73","\u6c6a","\u614c","\u99ae","\u8afe","\u59dc","\u8abc","\u5147","\u52a3","\u8aa3","\u8000","\u660f","\u8eba","\u76c8","\u9a0e","\u55ac","\u6eaa","\u53e2","\u76e7","\u62b9","\u60b6","\u8aee","\u522e","\u99d5","\u7e9c","\u609f","\u6458","\u927a","\u64f2","\u9817","\u5e7b","\u67c4","\u60e0","\u6158","\u4f73","\u4ec7","\u81d8","\u7aa9","\u6ecc","\u528d","\u77a7","\u5821","\u6f51","\u8525","\u7f69","\u970d","\u6488","\u80ce","\u84bc","\u6ff1","\u5006","\u6345","\u6e58","\u780d","\u971e","\u90b5","\u8404","\u760b","\u6dee","\u9042","\u718a","\u7cde","\u70d8","\u5bbf","\u6a94","\u6208","\u99c1","\u5ac2","\u88d5","\u5f99","\u7bad","\u6350","\u8178","\u6490","\u66ec","\u8fa8","\u6bbf","\u84ee","\u6524","\u652a","\u91ac","\u5c4f","\u75ab","\u54c0","\u8521","\u5835","\u6cab","\u76ba","\u66a2","\u758a","\u95a3","\u840a","\u6572","\u8f44","\u9264","\u75d5","\u58e9","\u5df7","\u9913","\u798d","\u4e18","\u7384","\u6e9c","\u66f0","\u908f","\u5f6d","\u5617","\u537f","\u59a8","\u8247","\u541e","\u97cb","\u6028","\u77ee","\u6b47"]')},1196:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},2968:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},9488:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","acade\u0301mie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acque\u0301rir","acronyme","acteur","actif","actuel","adepte","ade\u0301quat","adhe\u0301sif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","ae\u0301rer","ae\u0301ronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agre\u0301able","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","alge\u0300bre","algue","alie\u0301ner","aliment","alle\u0301ger","alliage","allouer","allumer","alourdir","alpaga","altesse","alve\u0301ole","amateur","ambigu","ambre","ame\u0301nager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","ane\u0301antir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","ape\u0301ritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","arte\u0301riel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannie\u0300re","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","be\u0301lier","belote","be\u0301ne\u0301fice","berceau","berger","berline","bermuda","besace","besogne","be\u0301tail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","bre\u0300che","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","cafe\u0301ine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","came\u0301ra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","ce\u0301dille","ceinture","ce\u0301leste","cellule","cendrier","censurer","central","cercle","ce\u0301re\u0301bral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","che\u0301quier","chercher","cheval","chien","chiffre","chignon","chime\u0300re","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cine\u0301ma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohe\u0301sion","coiffer","coincer","cole\u0300re","colibri","colline","colmater","colonel","combat","come\u0301die","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","corte\u0300ge","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","cre\u0301ature","cre\u0301diter","cre\u0301meux","creuser","crevette","cribler","crier","cristal","crite\u0300re","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuille\u0300re","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","de\u0301battre","de\u0301biter","de\u0301border","de\u0301brider","de\u0301butant","de\u0301caler","de\u0301cembre","de\u0301chirer","de\u0301cider","de\u0301clarer","de\u0301corer","de\u0301crire","de\u0301cupler","de\u0301dale","de\u0301ductif","de\u0301esse","de\u0301fensif","de\u0301filer","de\u0301frayer","de\u0301gager","de\u0301givrer","de\u0301glutir","de\u0301grafer","de\u0301jeuner","de\u0301lice","de\u0301loger","demander","demeurer","de\u0301molir","de\u0301nicher","de\u0301nouer","dentelle","de\u0301nuder","de\u0301part","de\u0301penser","de\u0301phaser","de\u0301placer","de\u0301poser","de\u0301ranger","de\u0301rober","de\u0301sastre","descente","de\u0301sert","de\u0301signer","de\u0301sobe\u0301ir","dessiner","destrier","de\u0301tacher","de\u0301tester","de\u0301tourer","de\u0301tresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","diffe\u0301rer","dige\u0301rer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","e\u0301blouir","e\u0301carter","e\u0301charpe","e\u0301chelle","e\u0301clairer","e\u0301clipse","e\u0301clore","e\u0301cluse","e\u0301cole","e\u0301conomie","e\u0301corce","e\u0301couter","e\u0301craser","e\u0301cre\u0301mer","e\u0301crivain","e\u0301crou","e\u0301cume","e\u0301cureuil","e\u0301difier","e\u0301duquer","effacer","effectif","effigie","effort","effrayer","effusion","e\u0301galiser","e\u0301garer","e\u0301jecter","e\u0301laborer","e\u0301largir","e\u0301lectron","e\u0301le\u0301gant","e\u0301le\u0301phant","e\u0301le\u0300ve","e\u0301ligible","e\u0301litisme","e\u0301loge","e\u0301lucider","e\u0301luder","emballer","embellir","embryon","e\u0301meraude","e\u0301mission","emmener","e\u0301motion","e\u0301mouvoir","empereur","employer","emporter","emprise","e\u0301mulsion","encadrer","enche\u0300re","enclave","encoche","endiguer","endosser","endroit","enduire","e\u0301nergie","enfance","enfermer","enfouir","engager","engin","englober","e\u0301nigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","e\u0301nume\u0301rer","envahir","enviable","envoyer","enzyme","e\u0301olien","e\u0301paissir","e\u0301pargne","e\u0301patant","e\u0301paule","e\u0301picerie","e\u0301pide\u0301mie","e\u0301pier","e\u0301pilogue","e\u0301pine","e\u0301pisode","e\u0301pitaphe","e\u0301poque","e\u0301preuve","e\u0301prouver","e\u0301puisant","e\u0301querre","e\u0301quipe","e\u0301riger","e\u0301rosion","erreur","e\u0301ruption","escalier","espadon","espe\u0300ce","espie\u0300gle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","e\u0301tage\u0300re","e\u0301taler","e\u0301tanche","e\u0301tatique","e\u0301teindre","e\u0301tendoir","e\u0301ternel","e\u0301thanol","e\u0301thique","ethnie","e\u0301tirer","e\u0301toffer","e\u0301toile","e\u0301tonnant","e\u0301tourdir","e\u0301trange","e\u0301troit","e\u0301tude","euphorie","e\u0301valuer","e\u0301vasion","e\u0301ventail","e\u0301vidence","e\u0301viter","e\u0301volutif","e\u0301voquer","exact","exage\u0301rer","exaucer","exceller","excitant","exclusif","excuse","exe\u0301cuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expe\u0301dier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fe\u0301brile","fe\u0301conder","fe\u0301de\u0301rer","fe\u0301lin","femme","fe\u0301mur","fendoir","fe\u0301odal","fermer","fe\u0301roce","ferveur","festival","feuille","feutre","fe\u0301vrier","fiasco","ficeler","fictif","fide\u0300le","figure","filature","filetage","filie\u0300re","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fle\u0301au","fle\u0300che","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fouge\u0300re","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","fre\u0301gate","freiner","frelon","fre\u0301mir","fre\u0301ne\u0301sie","fre\u0300re","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","ge\u0301ant","ge\u0301latine","ge\u0301lule","gendarme","ge\u0301ne\u0301ral","ge\u0301nie","genou","gentil","ge\u0301ologie","ge\u0301ome\u0300tre","ge\u0301ranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruye\u0300re","gue\u0301pard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","he\u0301lium","he\u0301matome","herbe","he\u0301risson","hermine","he\u0301ron","he\u0301siter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homoge\u0300ne","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygie\u0300ne","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impe\u0301rial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","ine\u0301dit","ineptie","inexact","infini","infliger","informer","infusion","inge\u0301rer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irre\u0301el","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juve\u0301nile","kayak","kimono","kiosque","label","labial","labourer","lace\u0301rer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","le\u0301gal","le\u0301ger","le\u0301gume","lessive","lettre","levier","lexique","le\u0301zard","liasse","libe\u0301rer","libre","licence","licorne","lie\u0300ge","lie\u0300vre","ligature","ligoter","ligue","limer","limite","limonade","limpide","line\u0301aire","lingot","lionceau","liquide","lisie\u0300re","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumie\u0300re","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","male\u0301fice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","mate\u0301riel","matie\u0300re","matraque","maudire","maussade","mauve","maximal","me\u0301chant","me\u0301connu","me\u0301daille","me\u0301decin","me\u0301diter","me\u0301duse","meilleur","me\u0301lange","me\u0301lodie","membre","me\u0301moire","menacer","mener","menhir","mensonge","mentor","mercredi","me\u0301rite","merle","messager","mesure","me\u0301tal","me\u0301te\u0301ore","me\u0301thode","me\u0301tier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","mine\u0301ral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","mure\u0300ne","murmure","muscle","muse\u0301um","musicien","mutation","muter","mutuel","myriade","myrtille","myste\u0300re","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","ne\u0301buleux","nectar","ne\u0301faste","ne\u0301gation","ne\u0301gliger","ne\u0301gocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","nume\u0301ro","nuptial","nuque","nutritif","obe\u0301ir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","oce\u0301an","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","one\u0301reux","onirique","opale","opaque","ope\u0301rer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxyge\u0300ne","ozone","paisible","palace","palmare\u0300s","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","paste\u0300que","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pe\u0301lican","pelle","pelouse","peluche","pendule","pe\u0301ne\u0301trer","pe\u0301nible","pensif","pe\u0301nurie","pe\u0301pite","pe\u0301plum","perdrix","perforer","pe\u0301riode","permuter","perplexe","persil","perte","peser","pe\u0301tale","petit","pe\u0301trir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pie\u0300ce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poe\u0301sie","poe\u0300te","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","ponde\u0301rer","poney","portique","position","posse\u0301der","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","pre\u0301cieux","pre\u0301dire","pre\u0301fixe","pre\u0301lude","pre\u0301nom","pre\u0301sence","pre\u0301texte","pre\u0301voir","primitif","prince","prison","priver","proble\u0300me","proce\u0301der","prodige","profond","progre\u0300s","proie","projeter","prologue","promener","propre","prospe\u0300re","prote\u0301ger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quie\u0301tude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","re\u0301actif","re\u0301agir","re\u0301aliser","re\u0301animer","recevoir","re\u0301citer","re\u0301clamer","re\u0301colter","recruter","reculer","recycler","re\u0301diger","redouter","refaire","re\u0301flexe","re\u0301former","refrain","refuge","re\u0301galien","re\u0301gion","re\u0301glage","re\u0301gulier","re\u0301ite\u0301rer","rejeter","rejouer","relatif","relever","relief","remarque","reme\u0300de","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","re\u0301serve","re\u0301sineux","re\u0301soudre","respect","rester","re\u0301sultat","re\u0301tablir","retenir","re\u0301ticule","retomber","retracer","re\u0301union","re\u0301ussir","revanche","revivre","re\u0301volte","re\u0301vulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivie\u0300re","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","sce\u0301le\u0301rat","sce\u0301nario","sceptre","sche\u0301ma","science","scinder","score","scrutin","sculpter","se\u0301ance","se\u0301cable","se\u0301cher","secouer","se\u0301cre\u0301ter","se\u0301datif","se\u0301duire","seigneur","se\u0301jour","se\u0301lectif","semaine","sembler","semence","se\u0301minal","se\u0301nateur","sensible","sentence","se\u0301parer","se\u0301quence","serein","sergent","se\u0301rieux","serrure","se\u0301rum","service","se\u0301same","se\u0301vir","sevrage","sextuple","side\u0301ral","sie\u0300cle","sie\u0301ger","siffler","sigle","signal","silence","silicium","simple","since\u0300re","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spe\u0301cial","sphe\u0300re","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succe\u0300s","sucre","suffixe","sugge\u0301rer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","syme\u0301trie","synapse","syntaxe","syste\u0300me","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","te\u0301moin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","te\u0301tine","texte","the\u0300me","the\u0301orie","the\u0301rapie","thorax","tibia","tie\u0300de","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tole\u0301rant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","tre\u0300fle","tremper","tre\u0301sor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","ve\u0301ge\u0301tal","ve\u0301hicule","veinard","ve\u0301loce","vendredi","ve\u0301ne\u0301rer","venger","venimeux","ventouse","verdure","ve\u0301rin","vernir","verrou","verser","vertu","veston","ve\u0301te\u0301ran","ve\u0301tuste","vexant","vexer","viaduc","viande","victoire","vidange","vide\u0301o","vignette","vigueur","vilain","village","vinaigre","violon","vipe\u0300re","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xe\u0301non","yacht","ze\u0300bre","ze\u0301nith","zeste","zoologie"]')},5908:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},4134:e=>{"use strict";e.exports=JSON.parse('["\u3042\u3044\u3053\u304f\u3057\u3093","\u3042\u3044\u3055\u3064","\u3042\u3044\u305f\u3099","\u3042\u304a\u305d\u3099\u3089","\u3042\u304b\u3061\u3083\u3093","\u3042\u304d\u308b","\u3042\u3051\u304b\u3099\u305f","\u3042\u3051\u308b","\u3042\u3053\u304b\u3099\u308c\u308b","\u3042\u3055\u3044","\u3042\u3055\u3072","\u3042\u3057\u3042\u3068","\u3042\u3057\u3099\u308f\u3046","\u3042\u3059\u3099\u304b\u308b","\u3042\u3059\u3099\u304d","\u3042\u305d\u3075\u3099","\u3042\u305f\u3048\u308b","\u3042\u305f\u305f\u3081\u308b","\u3042\u305f\u308a\u307e\u3048","\u3042\u305f\u308b","\u3042\u3064\u3044","\u3042\u3064\u304b\u3046","\u3042\u3063\u3057\u3085\u304f","\u3042\u3064\u307e\u308a","\u3042\u3064\u3081\u308b","\u3042\u3066\u306a","\u3042\u3066\u306f\u307e\u308b","\u3042\u3072\u308b","\u3042\u3075\u3099\u3089","\u3042\u3075\u3099\u308b","\u3042\u3075\u308c\u308b","\u3042\u307e\u3044","\u3042\u307e\u3068\u3099","\u3042\u307e\u3084\u304b\u3059","\u3042\u307e\u308a","\u3042\u307f\u3082\u306e","\u3042\u3081\u308a\u304b","\u3042\u3084\u307e\u308b","\u3042\u3086\u3080","\u3042\u3089\u3044\u304f\u3099\u307e","\u3042\u3089\u3057","\u3042\u3089\u3059\u3057\u3099","\u3042\u3089\u305f\u3081\u308b","\u3042\u3089\u3086\u308b","\u3042\u3089\u308f\u3059","\u3042\u308a\u304b\u3099\u3068\u3046","\u3042\u308f\u305b\u308b","\u3042\u308f\u3066\u308b","\u3042\u3093\u3044","\u3042\u3093\u304b\u3099\u3044","\u3042\u3093\u3053","\u3042\u3093\u305b\u3099\u3093","\u3042\u3093\u3066\u3044","\u3042\u3093\u306a\u3044","\u3042\u3093\u307e\u308a","\u3044\u3044\u305f\u3099\u3059","\u3044\u304a\u3093","\u3044\u304b\u3099\u3044","\u3044\u304b\u3099\u304f","\u3044\u304d\u304a\u3044","\u3044\u304d\u306a\u308a","\u3044\u304d\u3082\u306e","\u3044\u304d\u308b","\u3044\u304f\u3057\u3099","\u3044\u304f\u3075\u3099\u3093","\u3044\u3051\u306f\u3099\u306a","\u3044\u3051\u3093","\u3044\u3053\u3046","\u3044\u3053\u304f","\u3044\u3053\u3064","\u3044\u3055\u307e\u3057\u3044","\u3044\u3055\u3093","\u3044\u3057\u304d","\u3044\u3057\u3099\u3085\u3046","\u3044\u3057\u3099\u3087\u3046","\u3044\u3057\u3099\u308f\u308b","\u3044\u3059\u3099\u307f","\u3044\u3059\u3099\u308c","\u3044\u305b\u3044","\u3044\u305b\u3048\u3072\u3099","\u3044\u305b\u304b\u3044","\u3044\u305b\u304d","\u3044\u305b\u3099\u3093","\u3044\u305d\u3046\u308d\u3046","\u3044\u305d\u304b\u3099\u3057\u3044","\u3044\u305f\u3099\u3044","\u3044\u305f\u3099\u304f","\u3044\u305f\u3059\u3099\u3089","\u3044\u305f\u307f","\u3044\u305f\u308a\u3042","\u3044\u3061\u304a\u3046","\u3044\u3061\u3057\u3099","\u3044\u3061\u3068\u3099","\u3044\u3061\u306f\u3099","\u3044\u3061\u3075\u3099","\u3044\u3061\u308a\u3085\u3046","\u3044\u3064\u304b","\u3044\u3063\u3057\u3085\u3093","\u3044\u3063\u305b\u3044","\u3044\u3063\u305d\u3046","\u3044\u3063\u305f\u3093","\u3044\u3063\u3061","\u3044\u3063\u3066\u3044","\u3044\u3063\u307b\u309a\u3046","\u3044\u3066\u3055\u3099","\u3044\u3066\u3093","\u3044\u3068\u3099\u3046","\u3044\u3068\u3053","\u3044\u306a\u3044","\u3044\u306a\u304b","\u3044\u306d\u3080\u308a","\u3044\u306e\u3061","\u3044\u306e\u308b","\u3044\u306f\u3064","\u3044\u306f\u3099\u308b","\u3044\u306f\u3093","\u3044\u3072\u3099\u304d","\u3044\u3072\u3093","\u3044\u3075\u304f","\u3044\u3078\u3093","\u3044\u307b\u3046","\u3044\u307f\u3093","\u3044\u3082\u3046\u3068","\u3044\u3082\u305f\u308c","\u3044\u3082\u308a","\u3044\u3084\u304b\u3099\u308b","\u3044\u3084\u3059","\u3044\u3088\u304b\u3093","\u3044\u3088\u304f","\u3044\u3089\u3044","\u3044\u3089\u3059\u3068","\u3044\u308a\u304f\u3099\u3061","\u3044\u308a\u3087\u3046","\u3044\u308c\u3044","\u3044\u308c\u3082\u306e","\u3044\u308c\u308b","\u3044\u308d\u3048\u3093\u3072\u309a\u3064","\u3044\u308f\u3044","\u3044\u308f\u3046","\u3044\u308f\u304b\u3093","\u3044\u308f\u306f\u3099","\u3044\u308f\u3086\u308b","\u3044\u3093\u3051\u3099\u3093\u307e\u3081","\u3044\u3093\u3055\u3064","\u3044\u3093\u3057\u3087\u3046","\u3044\u3093\u3088\u3046","\u3046\u3048\u304d","\u3046\u3048\u308b","\u3046\u304a\u3055\u3099","\u3046\u304b\u3099\u3044","\u3046\u304b\u3075\u3099","\u3046\u304b\u3078\u3099\u308b","\u3046\u304d\u308f","\u3046\u304f\u3089\u3044\u306a","\u3046\u304f\u308c\u308c","\u3046\u3051\u305f\u307e\u308f\u308b","\u3046\u3051\u3064\u3051","\u3046\u3051\u3068\u308b","\u3046\u3051\u3082\u3064","\u3046\u3051\u308b","\u3046\u3053\u3099\u304b\u3059","\u3046\u3053\u3099\u304f","\u3046\u3053\u3093","\u3046\u3055\u304d\u3099","\u3046\u3057\u306a\u3046","\u3046\u3057\u308d\u304b\u3099\u307f","\u3046\u3059\u3044","\u3046\u3059\u304d\u3099","\u3046\u3059\u304f\u3099\u3089\u3044","\u3046\u3059\u3081\u308b","\u3046\u305b\u3064","\u3046\u3061\u3042\u308f\u305b","\u3046\u3061\u304b\u3099\u308f","\u3046\u3061\u304d","\u3046\u3061\u3085\u3046","\u3046\u3063\u304b\u308a","\u3046\u3064\u304f\u3057\u3044","\u3046\u3063\u305f\u3048\u308b","\u3046\u3064\u308b","\u3046\u3068\u3099\u3093","\u3046\u306a\u304d\u3099","\u3046\u306a\u3057\u3099","\u3046\u306a\u3059\u3099\u304f","\u3046\u306a\u308b","\u3046\u306d\u308b","\u3046\u306e\u3046","\u3046\u3075\u3099\u3051\u3099","\u3046\u3075\u3099\u3053\u3099\u3048","\u3046\u307e\u308c\u308b","\u3046\u3081\u308b","\u3046\u3082\u3046","\u3046\u3084\u307e\u3046","\u3046\u3088\u304f","\u3046\u3089\u304b\u3099\u3048\u3059","\u3046\u3089\u304f\u3099\u3061","\u3046\u3089\u306a\u3044","\u3046\u308a\u3042\u3051\u3099","\u3046\u308a\u304d\u308c","\u3046\u308b\u3055\u3044","\u3046\u308c\u3057\u3044","\u3046\u308c\u3086\u304d","\u3046\u308c\u308b","\u3046\u308d\u3053","\u3046\u308f\u304d","\u3046\u308f\u3055","\u3046\u3093\u3053\u3046","\u3046\u3093\u3061\u3093","\u3046\u3093\u3066\u3093","\u3046\u3093\u3068\u3099\u3046","\u3048\u3044\u3048\u3093","\u3048\u3044\u304b\u3099","\u3048\u3044\u304d\u3087\u3046","\u3048\u3044\u3053\u3099","\u3048\u3044\u305b\u3044","\u3048\u3044\u3075\u3099\u3093","\u3048\u3044\u3088\u3046","\u3048\u3044\u308f","\u3048\u304a\u308a","\u3048\u304b\u3099\u304a","\u3048\u304b\u3099\u304f","\u3048\u304d\u305f\u3044","\u3048\u304f\u305b\u308b","\u3048\u3057\u3083\u304f","\u3048\u3059\u3066","\u3048\u3064\u3089\u3093","\u3048\u306e\u304f\u3099","\u3048\u307b\u3046\u307e\u304d","\u3048\u307b\u3093","\u3048\u307e\u304d","\u3048\u3082\u3057\u3099","\u3048\u3082\u306e","\u3048\u3089\u3044","\u3048\u3089\u3075\u3099","\u3048\u308a\u3042","\u3048\u3093\u3048\u3093","\u3048\u3093\u304b\u3044","\u3048\u3093\u304d\u3099","\u3048\u3093\u3051\u3099\u304d","\u3048\u3093\u3057\u3085\u3046","\u3048\u3093\u305b\u3099\u3064","\u3048\u3093\u305d\u304f","\u3048\u3093\u3061\u3087\u3046","\u3048\u3093\u3068\u3064","\u304a\u3044\u304b\u3051\u308b","\u304a\u3044\u3053\u3059","\u304a\u3044\u3057\u3044","\u304a\u3044\u3064\u304f","\u304a\u3046\u3048\u3093","\u304a\u3046\u3055\u307e","\u304a\u3046\u3057\u3099","\u304a\u3046\u305b\u3064","\u304a\u3046\u305f\u3044","\u304a\u3046\u3075\u304f","\u304a\u3046\u3078\u3099\u3044","\u304a\u3046\u3088\u3046","\u304a\u3048\u308b","\u304a\u304a\u3044","\u304a\u304a\u3046","\u304a\u304a\u3068\u3099\u304a\u308a","\u304a\u304a\u3084","\u304a\u304a\u3088\u305d","\u304a\u304b\u3048\u308a","\u304a\u304b\u3059\u3099","\u304a\u304b\u3099\u3080","\u304a\u304b\u308f\u308a","\u304a\u304d\u3099\u306a\u3046","\u304a\u304d\u308b","\u304a\u304f\u3055\u307e","\u304a\u304f\u3057\u3099\u3087\u3046","\u304a\u304f\u308a\u304b\u3099\u306a","\u304a\u304f\u308b","\u304a\u304f\u308c\u308b","\u304a\u3053\u3059","\u304a\u3053\u306a\u3046","\u304a\u3053\u308b","\u304a\u3055\u3048\u308b","\u304a\u3055\u306a\u3044","\u304a\u3055\u3081\u308b","\u304a\u3057\u3044\u308c","\u304a\u3057\u3048\u308b","\u304a\u3057\u3099\u304d\u3099","\u304a\u3057\u3099\u3055\u3093","\u304a\u3057\u3083\u308c","\u304a\u305d\u3089\u304f","\u304a\u305d\u308f\u308b","\u304a\u305f\u304b\u3099\u3044","\u304a\u305f\u304f","\u304a\u305f\u3099\u3084\u304b","\u304a\u3061\u3064\u304f","\u304a\u3063\u3068","\u304a\u3064\u308a","\u304a\u3066\u3099\u304b\u3051","\u304a\u3068\u3057\u3082\u306e","\u304a\u3068\u306a\u3057\u3044","\u304a\u3068\u3099\u308a","\u304a\u3068\u3099\u308d\u304b\u3059","\u304a\u306f\u3099\u3055\u3093","\u304a\u307e\u3044\u308a","\u304a\u3081\u3066\u3099\u3068\u3046","\u304a\u3082\u3044\u3066\u3099","\u304a\u3082\u3046","\u304a\u3082\u305f\u3044","\u304a\u3082\u3061\u3083","\u304a\u3084\u3064","\u304a\u3084\u3086\u3072\u3099","\u304a\u3088\u307b\u3099\u3059","\u304a\u3089\u3093\u305f\u3099","\u304a\u308d\u3059","\u304a\u3093\u304b\u3099\u304f","\u304a\u3093\u3051\u3044","\u304a\u3093\u3057\u3083","\u304a\u3093\u305b\u3093","\u304a\u3093\u305f\u3099\u3093","\u304a\u3093\u3061\u3085\u3046","\u304a\u3093\u3068\u3099\u3051\u3044","\u304b\u3042\u3064","\u304b\u3044\u304b\u3099","\u304b\u3099\u3044\u304d","\u304b\u3099\u3044\u3051\u3093","\u304b\u3099\u3044\u3053\u3046","\u304b\u3044\u3055\u3064","\u304b\u3044\u3057\u3083","\u304b\u3044\u3059\u3044\u3088\u304f","\u304b\u3044\u305b\u3099\u3093","\u304b\u3044\u305d\u3099\u3046\u3068\u3099","\u304b\u3044\u3064\u3046","\u304b\u3044\u3066\u3093","\u304b\u3044\u3068\u3046","\u304b\u3044\u3075\u304f","\u304b\u3099\u3044\u3078\u304d","\u304b\u3044\u307b\u3046","\u304b\u3044\u3088\u3046","\u304b\u3099\u3044\u3089\u3044","\u304b\u3044\u308f","\u304b\u3048\u308b","\u304b\u304a\u308a","\u304b\u304b\u3048\u308b","\u304b\u304b\u3099\u304f","\u304b\u304b\u3099\u3057","\u304b\u304b\u3099\u307f","\u304b\u304f\u3053\u3099","\u304b\u304f\u3068\u304f","\u304b\u3055\u3099\u308b","\u304b\u3099\u305d\u3099\u3046","\u304b\u305f\u3044","\u304b\u305f\u3061","\u304b\u3099\u3061\u3087\u3046","\u304b\u3099\u3063\u304d\u3085\u3046","\u304b\u3099\u3063\u3053\u3046","\u304b\u3099\u3063\u3055\u3093","\u304b\u3099\u3063\u3057\u3087\u3046","\u304b\u306a\u3055\u3099\u308f\u3057","\u304b\u306e\u3046","\u304b\u3099\u306f\u304f","\u304b\u3075\u3099\u304b","\u304b\u307b\u3046","\u304b\u307b\u3053\u3099","\u304b\u307e\u3046","\u304b\u307e\u307b\u3099\u3053","\u304b\u3081\u308c\u304a\u3093","\u304b\u3086\u3044","\u304b\u3088\u3046\u3072\u3099","\u304b\u3089\u3044","\u304b\u308b\u3044","\u304b\u308d\u3046","\u304b\u308f\u304f","\u304b\u308f\u3089","\u304b\u3099\u3093\u304b","\u304b\u3093\u3051\u3044","\u304b\u3093\u3053\u3046","\u304b\u3093\u3057\u3083","\u304b\u3093\u305d\u3046","\u304b\u3093\u305f\u3093","\u304b\u3093\u3061","\u304b\u3099\u3093\u306f\u3099\u308b","\u304d\u3042\u3044","\u304d\u3042\u3064","\u304d\u3044\u308d","\u304d\u3099\u3044\u3093","\u304d\u3046\u3044","\u304d\u3046\u3093","\u304d\u3048\u308b","\u304d\u304a\u3046","\u304d\u304a\u304f","\u304d\u304a\u3061","\u304d\u304a\u3093","\u304d\u304b\u3044","\u304d\u304b\u304f","\u304d\u304b\u3093\u3057\u3083","\u304d\u304d\u3066","\u304d\u304f\u306f\u3099\u308a","\u304d\u304f\u3089\u3051\u3099","\u304d\u3051\u3093\u305b\u3044","\u304d\u3053\u3046","\u304d\u3053\u3048\u308b","\u304d\u3053\u304f","\u304d\u3055\u3044","\u304d\u3055\u304f","\u304d\u3055\u307e","\u304d\u3055\u3089\u304d\u3099","\u304d\u3099\u3057\u3099\u304b\u304b\u3099\u304f","\u304d\u3099\u3057\u304d","\u304d\u3099\u3057\u3099\u305f\u3044\u3051\u3093","\u304d\u3099\u3057\u3099\u306b\u3063\u3066\u3044","\u304d\u3099\u3057\u3099\u3085\u3064\u3057\u3083","\u304d\u3059\u3046","\u304d\u305b\u3044","\u304d\u305b\u304d","\u304d\u305b\u3064","\u304d\u305d\u3046","\u304d\u305d\u3099\u304f","\u304d\u305d\u3099\u3093","\u304d\u305f\u3048\u308b","\u304d\u3061\u3087\u3046","\u304d\u3064\u3048\u3093","\u304d\u3099\u3063\u3061\u308a","\u304d\u3064\u3064\u304d","\u304d\u3064\u306d","\u304d\u3066\u3044","\u304d\u3068\u3099\u3046","\u304d\u3068\u3099\u304f","\u304d\u306a\u3044","\u304d\u306a\u304b\u3099","\u304d\u306a\u3053","\u304d\u306c\u3053\u3099\u3057","\u304d\u306d\u3093","\u304d\u306e\u3046","\u304d\u306e\u3057\u305f","\u304d\u306f\u304f","\u304d\u3072\u3099\u3057\u3044","\u304d\u3072\u3093","\u304d\u3075\u304f","\u304d\u3075\u3099\u3093","\u304d\u307b\u3099\u3046","\u304d\u307b\u3093","\u304d\u307e\u308b","\u304d\u307f\u3064","\u304d\u3080\u3059\u3099\u304b\u3057\u3044","\u304d\u3081\u308b","\u304d\u3082\u305f\u3099\u3081\u3057","\u304d\u3082\u3061","\u304d\u3082\u306e","\u304d\u3083\u304f","\u304d\u3084\u304f","\u304d\u3099\u3085\u3046\u306b\u304f","\u304d\u3088\u3046","\u304d\u3087\u3046\u308a\u3085\u3046","\u304d\u3089\u3044","\u304d\u3089\u304f","\u304d\u308a\u3093","\u304d\u308c\u3044","\u304d\u308c\u3064","\u304d\u308d\u304f","\u304d\u3099\u308d\u3093","\u304d\u308f\u3081\u308b","\u304d\u3099\u3093\u3044\u308d","\u304d\u3093\u304b\u304f\u3057\u3099","\u304d\u3093\u3057\u3099\u3087","\u304d\u3093\u3088\u3046\u3072\u3099","\u304f\u3099\u3042\u3044","\u304f\u3044\u3059\u3099","\u304f\u3046\u304b\u3093","\u304f\u3046\u304d","\u304f\u3046\u304f\u3099\u3093","\u304f\u3046\u3053\u3046","\u304f\u3099\u3046\u305b\u3044","\u304f\u3046\u305d\u3046","\u304f\u3099\u3046\u305f\u3089","\u304f\u3046\u3075\u304f","\u304f\u3046\u307b\u3099","\u304f\u304b\u3093","\u304f\u304d\u3087\u3046","\u304f\u3051\u3099\u3093","\u304f\u3099\u3053\u3046","\u304f\u3055\u3044","\u304f\u3055\u304d","\u304f\u3055\u306f\u3099\u306a","\u304f\u3055\u308b","\u304f\u3057\u3083\u307f","\u304f\u3057\u3087\u3046","\u304f\u3059\u306e\u304d","\u304f\u3059\u308a\u3086\u3072\u3099","\u304f\u305b\u3051\u3099","\u304f\u305b\u3093","\u304f\u3099\u305f\u3044\u3066\u304d","\u304f\u305f\u3099\u3055\u308b","\u304f\u305f\u3072\u3099\u308c\u308b","\u304f\u3061\u3053\u307f","\u304f\u3061\u3055\u304d","\u304f\u3064\u3057\u305f","\u304f\u3099\u3063\u3059\u308a","\u304f\u3064\u308d\u304f\u3099","\u304f\u3068\u3046\u3066\u3093","\u304f\u3068\u3099\u304f","\u304f\u306a\u3093","\u304f\u306d\u304f\u306d","\u304f\u306e\u3046","\u304f\u3075\u3046","\u304f\u307f\u3042\u308f\u305b","\u304f\u307f\u305f\u3066\u308b","\u304f\u3081\u308b","\u304f\u3084\u304f\u3057\u3087","\u304f\u3089\u3059","\u304f\u3089\u3078\u3099\u308b","\u304f\u308b\u307e","\u304f\u308c\u308b","\u304f\u308d\u3046","\u304f\u308f\u3057\u3044","\u304f\u3099\u3093\u304b\u3093","\u304f\u3099\u3093\u3057\u3087\u304f","\u304f\u3099\u3093\u305f\u3044","\u304f\u3099\u3093\u3066","\u3051\u3042\u306a","\u3051\u3044\u304b\u304f","\u3051\u3044\u3051\u3093","\u3051\u3044\u3053","\u3051\u3044\u3055\u3064","\u3051\u3099\u3044\u3057\u3099\u3085\u3064","\u3051\u3044\u305f\u3044","\u3051\u3099\u3044\u306e\u3046\u3057\u3099\u3093","\u3051\u3044\u308c\u304d","\u3051\u3044\u308d","\u3051\u304a\u3068\u3059","\u3051\u304a\u308a\u3082\u306e","\u3051\u3099\u304d\u304b","\u3051\u3099\u304d\u3051\u3099\u3093","\u3051\u3099\u304d\u305f\u3099\u3093","\u3051\u3099\u304d\u3061\u3093","\u3051\u3099\u304d\u3068\u3064","\u3051\u3099\u304d\u306f","\u3051\u3099\u304d\u3084\u304f","\u3051\u3099\u3053\u3046","\u3051\u3099\u3053\u304f\u3057\u3099\u3087\u3046","\u3051\u3099\u3055\u3099\u3044","\u3051\u3055\u304d","\u3051\u3099\u3055\u3099\u3093","\u3051\u3057\u304d","\u3051\u3057\u3053\u3099\u3080","\u3051\u3057\u3087\u3046","\u3051\u3099\u3059\u3068","\u3051\u305f\u306f\u3099","\u3051\u3061\u3083\u3063\u3075\u309a","\u3051\u3061\u3089\u3059","\u3051\u3064\u3042\u3064","\u3051\u3064\u3044","\u3051\u3064\u3048\u304d","\u3051\u3063\u3053\u3093","\u3051\u3064\u3057\u3099\u3087","\u3051\u3063\u305b\u304d","\u3051\u3063\u3066\u3044","\u3051\u3064\u307e\u3064","\u3051\u3099\u3064\u3088\u3046\u3072\u3099","\u3051\u3099\u3064\u308c\u3044","\u3051\u3064\u308d\u3093","\u3051\u3099\u3068\u3099\u304f","\u3051\u3068\u306f\u3099\u3059","\u3051\u3068\u308b","\u3051\u306a\u3051\u3099","\u3051\u306a\u3059","\u3051\u306a\u307f","\u3051\u306c\u304d","\u3051\u3099\u306d\u3064","\u3051\u306d\u3093","\u3051\u306f\u3044","\u3051\u3099\u3072\u3093","\u3051\u3075\u3099\u304b\u3044","\u3051\u3099\u307b\u3099\u304f","\u3051\u307e\u308a","\u3051\u307f\u304b\u308b","\u3051\u3080\u3057","\u3051\u3080\u308a","\u3051\u3082\u306e","\u3051\u3089\u3044","\u3051\u308d\u3051\u308d","\u3051\u308f\u3057\u3044","\u3051\u3093\u3044","\u3051\u3093\u3048\u3064","\u3051\u3093\u304a","\u3051\u3093\u304b","\u3051\u3099\u3093\u304d","\u3051\u3093\u3051\u3099\u3093","\u3051\u3093\u3053\u3046","\u3051\u3093\u3055\u304f","\u3051\u3093\u3057\u3085\u3046","\u3051\u3093\u3059\u3046","\u3051\u3099\u3093\u305d\u3046","\u3051\u3093\u3061\u304f","\u3051\u3093\u3066\u3044","\u3051\u3093\u3068\u3046","\u3051\u3093\u306a\u3044","\u3051\u3093\u306b\u3093","\u3051\u3099\u3093\u3075\u3099\u3064","\u3051\u3093\u307e","\u3051\u3093\u307f\u3093","\u3051\u3093\u3081\u3044","\u3051\u3093\u3089\u3093","\u3051\u3093\u308a","\u3053\u3042\u304f\u307e","\u3053\u3044\u306c","\u3053\u3044\u3072\u3099\u3068","\u3053\u3099\u3046\u3044","\u3053\u3046\u3048\u3093","\u3053\u3046\u304a\u3093","\u3053\u3046\u304b\u3093","\u3053\u3099\u3046\u304d\u3085\u3046","\u3053\u3099\u3046\u3051\u3044","\u3053\u3046\u3053\u3046","\u3053\u3046\u3055\u3044","\u3053\u3046\u3057\u3099","\u3053\u3046\u3059\u3044","\u3053\u3099\u3046\u305b\u3044","\u3053\u3046\u305d\u304f","\u3053\u3046\u305f\u3044","\u3053\u3046\u3061\u3083","\u3053\u3046\u3064\u3046","\u3053\u3046\u3066\u3044","\u3053\u3046\u3068\u3099\u3046","\u3053\u3046\u306a\u3044","\u3053\u3046\u306f\u3044","\u3053\u3099\u3046\u307b\u3046","\u3053\u3099\u3046\u307e\u3093","\u3053\u3046\u3082\u304f","\u3053\u3046\u308a\u3064","\u3053\u3048\u308b","\u3053\u304a\u308a","\u3053\u3099\u304b\u3044","\u3053\u3099\u304b\u3099\u3064","\u3053\u3099\u304b\u3093","\u3053\u304f\u3053\u3099","\u3053\u304f\u3055\u3044","\u3053\u304f\u3068\u3046","\u3053\u304f\u306a\u3044","\u3053\u304f\u306f\u304f","\u3053\u304f\u3099\u307e","\u3053\u3051\u3044","\u3053\u3051\u308b","\u3053\u3053\u306e\u304b","\u3053\u3053\u308d","\u3053\u3055\u3081","\u3053\u3057\u3064","\u3053\u3059\u3046","\u3053\u305b\u3044","\u3053\u305b\u304d","\u3053\u305b\u3099\u3093","\u3053\u305d\u305f\u3099\u3066","\u3053\u305f\u3044","\u3053\u305f\u3048\u308b","\u3053\u305f\u3064","\u3053\u3061\u3087\u3046","\u3053\u3063\u304b","\u3053\u3064\u3053\u3064","\u3053\u3064\u306f\u3099\u3093","\u3053\u3064\u3075\u3099","\u3053\u3066\u3044","\u3053\u3066\u3093","\u3053\u3068\u304b\u3099\u3089","\u3053\u3068\u3057","\u3053\u3068\u306f\u3099","\u3053\u3068\u308a","\u3053\u306a\u3053\u3099\u306a","\u3053\u306d\u3053\u306d","\u3053\u306e\u307e\u307e","\u3053\u306e\u307f","\u3053\u306e\u3088","\u3053\u3099\u306f\u3093","\u3053\u3072\u3064\u3057\u3099","\u3053\u3075\u3046","\u3053\u3075\u3093","\u3053\u307b\u3099\u308c\u308b","\u3053\u3099\u307e\u3042\u3075\u3099\u3089","\u3053\u307e\u304b\u3044","\u3053\u3099\u307e\u3059\u308a","\u3053\u307e\u3064\u306a","\u3053\u307e\u308b","\u3053\u3080\u304d\u3099\u3053","\u3053\u3082\u3057\u3099","\u3053\u3082\u3061","\u3053\u3082\u306e","\u3053\u3082\u3093","\u3053\u3084\u304f","\u3053\u3084\u307e","\u3053\u3086\u3046","\u3053\u3086\u3072\u3099","\u3053\u3088\u3044","\u3053\u3088\u3046","\u3053\u308a\u308b","\u3053\u308c\u304f\u3057\u3087\u3093","\u3053\u308d\u3063\u3051","\u3053\u308f\u3082\u3066","\u3053\u308f\u308c\u308b","\u3053\u3093\u3044\u3093","\u3053\u3093\u304b\u3044","\u3053\u3093\u304d","\u3053\u3093\u3057\u3085\u3046","\u3053\u3093\u3059\u3044","\u3053\u3093\u305f\u3099\u3066","\u3053\u3093\u3068\u3093","\u3053\u3093\u306a\u3093","\u3053\u3093\u3072\u3099\u306b","\u3053\u3093\u307b\u309a\u3093","\u3053\u3093\u307e\u3051","\u3053\u3093\u3084","\u3053\u3093\u308c\u3044","\u3053\u3093\u308f\u304f","\u3055\u3099\u3044\u3048\u304d","\u3055\u3044\u304b\u3044","\u3055\u3044\u304d\u3093","\u3055\u3099\u3044\u3051\u3099\u3093","\u3055\u3099\u3044\u3053","\u3055\u3044\u3057\u3087","\u3055\u3044\u305b\u3044","\u3055\u3099\u3044\u305f\u304f","\u3055\u3099\u3044\u3061\u3085\u3046","\u3055\u3044\u3066\u304d","\u3055\u3099\u3044\u308a\u3087\u3046","\u3055\u3046\u306a","\u3055\u304b\u3044\u3057","\u3055\u304b\u3099\u3059","\u3055\u304b\u306a","\u3055\u304b\u307f\u3061","\u3055\u304b\u3099\u308b","\u3055\u304d\u3099\u3087\u3046","\u3055\u304f\u3057","\u3055\u304f\u3072\u3093","\u3055\u304f\u3089","\u3055\u3053\u304f","\u3055\u3053\u3064","\u3055\u3059\u3099\u304b\u308b","\u3055\u3099\u305b\u304d","\u3055\u305f\u3093","\u3055\u3064\u3048\u3044","\u3055\u3099\u3064\u304a\u3093","\u3055\u3099\u3063\u304b","\u3055\u3099\u3064\u304b\u3099\u304f","\u3055\u3063\u304d\u3087\u304f","\u3055\u3099\u3063\u3057","\u3055\u3064\u3057\u3099\u3093","\u3055\u3099\u3063\u305d\u3046","\u3055\u3064\u305f\u306f\u3099","\u3055\u3064\u307e\u3044\u3082","\u3055\u3066\u3044","\u3055\u3068\u3044\u3082","\u3055\u3068\u3046","\u3055\u3068\u304a\u3084","\u3055\u3068\u3057","\u3055\u3068\u308b","\u3055\u306e\u3046","\u3055\u306f\u3099\u304f","\u3055\u3072\u3099\u3057\u3044","\u3055\u3078\u3099\u3064","\u3055\u307b\u3046","\u3055\u307b\u3068\u3099","\u3055\u307e\u3059","\u3055\u307f\u3057\u3044","\u3055\u307f\u305f\u3099\u308c","\u3055\u3080\u3051","\u3055\u3081\u308b","\u3055\u3084\u3048\u3093\u3068\u3099\u3046","\u3055\u3086\u3046","\u3055\u3088\u3046","\u3055\u3088\u304f","\u3055\u3089\u305f\u3099","\u3055\u3099\u308b\u305d\u306f\u3099","\u3055\u308f\u3084\u304b","\u3055\u308f\u308b","\u3055\u3093\u3044\u3093","\u3055\u3093\u304b","\u3055\u3093\u304d\u3083\u304f","\u3055\u3093\u3053\u3046","\u3055\u3093\u3055\u3044","\u3055\u3099\u3093\u3057\u3087","\u3055\u3093\u3059\u3046","\u3055\u3093\u305b\u3044","\u3055\u3093\u305d","\u3055\u3093\u3061","\u3055\u3093\u307e","\u3055\u3093\u307f","\u3055\u3093\u3089\u3093","\u3057\u3042\u3044","\u3057\u3042\u3051\u3099","\u3057\u3042\u3055\u3063\u3066","\u3057\u3042\u308f\u305b","\u3057\u3044\u304f","\u3057\u3044\u3093","\u3057\u3046\u3061","\u3057\u3048\u3044","\u3057\u304a\u3051","\u3057\u304b\u3044","\u3057\u304b\u304f","\u3057\u3099\u304b\u3093","\u3057\u3053\u3099\u3068","\u3057\u3059\u3046","\u3057\u3099\u305f\u3099\u3044","\u3057\u305f\u3046\u3051","\u3057\u305f\u304d\u3099","\u3057\u305f\u3066","\u3057\u305f\u307f","\u3057\u3061\u3087\u3046","\u3057\u3061\u308a\u3093","\u3057\u3063\u304b\u308a","\u3057\u3064\u3057\u3099","\u3057\u3064\u3082\u3093","\u3057\u3066\u3044","\u3057\u3066\u304d","\u3057\u3066\u3064","\u3057\u3099\u3066\u3093","\u3057\u3099\u3068\u3099\u3046","\u3057\u306a\u304d\u3099\u308c","\u3057\u306a\u3082\u306e","\u3057\u306a\u3093","\u3057\u306d\u307e","\u3057\u306d\u3093","\u3057\u306e\u304f\u3099","\u3057\u306e\u3075\u3099","\u3057\u306f\u3044","\u3057\u306f\u3099\u304b\u308a","\u3057\u306f\u3064","\u3057\u306f\u3089\u3044","\u3057\u306f\u3093","\u3057\u3072\u3087\u3046","\u3057\u3075\u304f","\u3057\u3099\u3075\u3099\u3093","\u3057\u3078\u3044","\u3057\u307b\u3046","\u3057\u307b\u3093","\u3057\u307e\u3046","\u3057\u307e\u308b","\u3057\u307f\u3093","\u3057\u3080\u3051\u308b","\u3057\u3099\u3080\u3057\u3087","\u3057\u3081\u3044","\u3057\u3081\u308b","\u3057\u3082\u3093","\u3057\u3083\u3044\u3093","\u3057\u3083\u3046\u3093","\u3057\u3083\u304a\u3093","\u3057\u3099\u3083\u304b\u3099\u3044\u3082","\u3057\u3084\u304f\u3057\u3087","\u3057\u3083\u304f\u307b\u3046","\u3057\u3083\u3051\u3093","\u3057\u3083\u3053","\u3057\u3083\u3055\u3099\u3044","\u3057\u3083\u3057\u3093","\u3057\u3083\u305b\u3093","\u3057\u3083\u305d\u3046","\u3057\u3083\u305f\u3044","\u3057\u3083\u3061\u3087\u3046","\u3057\u3083\u3063\u304d\u3093","\u3057\u3099\u3083\u307e","\u3057\u3083\u308a\u3093","\u3057\u3083\u308c\u3044","\u3057\u3099\u3086\u3046","\u3057\u3099\u3085\u3046\u3057\u3087","\u3057\u3085\u304f\u306f\u304f","\u3057\u3099\u3085\u3057\u3093","\u3057\u3085\u3063\u305b\u304d","\u3057\u3085\u307f","\u3057\u3085\u3089\u306f\u3099","\u3057\u3099\u3085\u3093\u306f\u3099\u3093","\u3057\u3087\u3046\u304b\u3044","\u3057\u3087\u304f\u305f\u304f","\u3057\u3087\u3063\u3051\u3093","\u3057\u3087\u3068\u3099\u3046","\u3057\u3087\u3082\u3064","\u3057\u3089\u305b\u308b","\u3057\u3089\u3078\u3099\u308b","\u3057\u3093\u304b","\u3057\u3093\u3053\u3046","\u3057\u3099\u3093\u3057\u3099\u3083","\u3057\u3093\u305b\u3044\u3057\u3099","\u3057\u3093\u3061\u304f","\u3057\u3093\u308a\u3093","\u3059\u3042\u3051\u3099","\u3059\u3042\u3057","\u3059\u3042\u306a","\u3059\u3099\u3042\u3093","\u3059\u3044\u3048\u3044","\u3059\u3044\u304b","\u3059\u3044\u3068\u3046","\u3059\u3099\u3044\u3075\u3099\u3093","\u3059\u3044\u3088\u3046\u3072\u3099","\u3059\u3046\u304b\u3099\u304f","\u3059\u3046\u3057\u3099\u3064","\u3059\u3046\u305b\u3093","\u3059\u304a\u3068\u3099\u308a","\u3059\u304d\u307e","\u3059\u304f\u3046","\u3059\u304f\u306a\u3044","\u3059\u3051\u308b","\u3059\u3053\u3099\u3044","\u3059\u3053\u3057","\u3059\u3099\u3055\u3093","\u3059\u3059\u3099\u3057\u3044","\u3059\u3059\u3080","\u3059\u3059\u3081\u308b","\u3059\u3063\u304b\u308a","\u3059\u3099\u3063\u3057\u308a","\u3059\u3099\u3063\u3068","\u3059\u3066\u304d","\u3059\u3066\u308b","\u3059\u306d\u308b","\u3059\u306e\u3053","\u3059\u306f\u305f\u3099","\u3059\u306f\u3099\u3089\u3057\u3044","\u3059\u3099\u3072\u3087\u3046","\u3059\u3099\u3075\u3099\u306c\u308c","\u3059\u3075\u3099\u308a","\u3059\u3075\u308c","\u3059\u3078\u3099\u3066","\u3059\u3078\u3099\u308b","\u3059\u3099\u307b\u3046","\u3059\u307b\u3099\u3093","\u3059\u307e\u3044","\u3059\u3081\u3057","\u3059\u3082\u3046","\u3059\u3084\u304d","\u3059\u3089\u3059\u3089","\u3059\u308b\u3081","\u3059\u308c\u3061\u304b\u3099\u3046","\u3059\u308d\u3063\u3068","\u3059\u308f\u308b","\u3059\u3093\u305b\u3099\u3093","\u3059\u3093\u307b\u309a\u3046","\u305b\u3042\u3075\u3099\u3089","\u305b\u3044\u304b\u3064","\u305b\u3044\u3051\u3099\u3093","\u305b\u3044\u3057\u3099","\u305b\u3044\u3088\u3046","\u305b\u304a\u3046","\u305b\u304b\u3044\u304b\u3093","\u305b\u304d\u306b\u3093","\u305b\u304d\u3080","\u305b\u304d\u3086","\u305b\u304d\u3089\u3093\u3046\u3093","\u305b\u3051\u3093","\u305b\u3053\u3046","\u305b\u3059\u3057\u3099","\u305b\u305f\u3044","\u305b\u305f\u3051","\u305b\u3063\u304b\u304f","\u305b\u3063\u304d\u3083\u304f","\u305b\u3099\u3063\u304f","\u305b\u3063\u3051\u3093","\u305b\u3063\u3053\u3064","\u305b\u3063\u3055\u305f\u304f\u307e","\u305b\u3064\u305d\u3099\u304f","\u305b\u3064\u305f\u3099\u3093","\u305b\u3064\u3066\u3099\u3093","\u305b\u3063\u306f\u309a\u3093","\u305b\u3064\u3072\u3099","\u305b\u3064\u3075\u3099\u3093","\u305b\u3064\u3081\u3044","\u305b\u3064\u308a\u3064","\u305b\u306a\u304b","\u305b\u306e\u3072\u3099","\u305b\u306f\u306f\u3099","\u305b\u3072\u3099\u308d","\u305b\u307b\u3099\u306d","\u305b\u307e\u3044","\u305b\u307e\u308b","\u305b\u3081\u308b","\u305b\u3082\u305f\u308c","\u305b\u308a\u3075","\u305b\u3099\u3093\u3042\u304f","\u305b\u3093\u3044","\u305b\u3093\u3048\u3044","\u305b\u3093\u304b","\u305b\u3093\u304d\u3087","\u305b\u3093\u304f","\u305b\u3093\u3051\u3099\u3093","\u305b\u3099\u3093\u3053\u3099","\u305b\u3093\u3055\u3044","\u305b\u3093\u3057\u3085","\u305b\u3093\u3059\u3044","\u305b\u3093\u305b\u3044","\u305b\u3093\u305d\u3099","\u305b\u3093\u305f\u304f","\u305b\u3093\u3061\u3087\u3046","\u305b\u3093\u3066\u3044","\u305b\u3093\u3068\u3046","\u305b\u3093\u306c\u304d","\u305b\u3093\u306d\u3093","\u305b\u3093\u306f\u309a\u3044","\u305b\u3099\u3093\u3075\u3099","\u305b\u3099\u3093\u307b\u309a\u3046","\u305b\u3093\u3080","\u305b\u3093\u3081\u3093\u3057\u3099\u3087","\u305b\u3093\u3082\u3093","\u305b\u3093\u3084\u304f","\u305b\u3093\u3086\u3046","\u305b\u3093\u3088\u3046","\u305b\u3099\u3093\u3089","\u305b\u3099\u3093\u308a\u3083\u304f","\u305b\u3093\u308c\u3044","\u305b\u3093\u308d","\u305d\u3042\u304f","\u305d\u3044\u3068\u3051\u3099\u308b","\u305d\u3044\u306d","\u305d\u3046\u304b\u3099\u3093\u304d\u3087\u3046","\u305d\u3046\u304d","\u305d\u3046\u3053\u3099","\u305d\u3046\u3057\u3093","\u305d\u3046\u305f\u3099\u3093","\u305d\u3046\u306a\u3093","\u305d\u3046\u3072\u3099","\u305d\u3046\u3081\u3093","\u305d\u3046\u308a","\u305d\u3048\u3082\u306e","\u305d\u3048\u3093","\u305d\u304b\u3099\u3044","\u305d\u3051\u3099\u304d","\u305d\u3053\u3046","\u305d\u3053\u305d\u3053","\u305d\u3055\u3099\u3044","\u305d\u3057\u306a","\u305d\u305b\u3044","\u305d\u305b\u3093","\u305d\u305d\u304f\u3099","\u305d\u305f\u3099\u3066\u308b","\u305d\u3064\u3046","\u305d\u3064\u3048\u3093","\u305d\u3063\u304b\u3093","\u305d\u3064\u304d\u3099\u3087\u3046","\u305d\u3063\u3051\u3064","\u305d\u3063\u3053\u3046","\u305d\u3063\u305b\u3093","\u305d\u3063\u3068","\u305d\u3068\u304b\u3099\u308f","\u305d\u3068\u3064\u3099\u3089","\u305d\u306a\u3048\u308b","\u305d\u306a\u305f","\u305d\u3075\u307b\u3099","\u305d\u307b\u3099\u304f","\u305d\u307b\u3099\u308d","\u305d\u307e\u3064","\u305d\u307e\u308b","\u305d\u3080\u304f","\u305d\u3080\u308a\u3048","\u305d\u3081\u308b","\u305d\u3082\u305d\u3082","\u305d\u3088\u304b\u305b\u3099","\u305d\u3089\u307e\u3081","\u305d\u308d\u3046","\u305d\u3093\u304b\u3044","\u305d\u3093\u3051\u3044","\u305d\u3093\u3055\u3099\u3044","\u305d\u3093\u3057\u3064","\u305d\u3093\u305d\u3099\u304f","\u305d\u3093\u3061\u3087\u3046","\u305d\u3099\u3093\u3072\u3099","\u305d\u3099\u3093\u3075\u3099\u3093","\u305d\u3093\u307f\u3093","\u305f\u3042\u3044","\u305f\u3044\u3044\u3093","\u305f\u3044\u3046\u3093","\u305f\u3044\u3048\u304d","\u305f\u3044\u304a\u3046","\u305f\u3099\u3044\u304b\u3099\u304f","\u305f\u3044\u304d","\u305f\u3044\u304f\u3099\u3046","\u305f\u3044\u3051\u3093","\u305f\u3044\u3053","\u305f\u3044\u3055\u3099\u3044","\u305f\u3099\u3044\u3057\u3099\u3087\u3046\u3075\u3099","\u305f\u3099\u3044\u3059\u304d","\u305f\u3044\u305b\u3064","\u305f\u3044\u305d\u3046","\u305f\u3099\u3044\u305f\u3044","\u305f\u3044\u3061\u3087\u3046","\u305f\u3044\u3066\u3044","\u305f\u3099\u3044\u3068\u3099\u3053\u308d","\u305f\u3044\u306a\u3044","\u305f\u3044\u306d\u3064","\u305f\u3044\u306e\u3046","\u305f\u3044\u306f\u3093","\u305f\u3099\u3044\u3072\u3087\u3046","\u305f\u3044\u3075\u3046","\u305f\u3044\u3078\u3093","\u305f\u3044\u307b","\u305f\u3044\u307e\u3064\u306f\u3099\u306a","\u305f\u3044\u307f\u3093\u304f\u3099","\u305f\u3044\u3080","\u305f\u3044\u3081\u3093","\u305f\u3044\u3084\u304d","\u305f\u3044\u3088\u3046","\u305f\u3044\u3089","\u305f\u3044\u308a\u3087\u304f","\u305f\u3044\u308b","\u305f\u3044\u308f\u3093","\u305f\u3046\u3048","\u305f\u3048\u308b","\u305f\u304a\u3059","\u305f\u304a\u308b","\u305f\u304a\u308c\u308b","\u305f\u304b\u3044","\u305f\u304b\u306d","\u305f\u304d\u3072\u3099","\u305f\u304f\u3055\u3093","\u305f\u3053\u304f","\u305f\u3053\u3084\u304d","\u305f\u3055\u3044","\u305f\u3057\u3055\u3099\u3093","\u305f\u3099\u3057\u3099\u3083\u308c","\u305f\u3059\u3051\u308b","\u305f\u3059\u3099\u3055\u308f\u308b","\u305f\u305d\u304b\u3099\u308c","\u305f\u305f\u304b\u3046","\u305f\u305f\u304f","\u305f\u305f\u3099\u3057\u3044","\u305f\u305f\u307f","\u305f\u3061\u306f\u3099\u306a","\u305f\u3099\u3063\u304b\u3044","\u305f\u3099\u3063\u304d\u3083\u304f","\u305f\u3099\u3063\u3053","\u305f\u3099\u3063\u3057\u3085\u3064","\u305f\u3099\u3063\u305f\u3044","\u305f\u3066\u308b","\u305f\u3068\u3048\u308b","\u305f\u306a\u306f\u3099\u305f","\u305f\u306b\u3093","\u305f\u306c\u304d","\u305f\u306e\u3057\u307f","\u305f\u306f\u3064","\u305f\u3075\u3099\u3093","\u305f\u3078\u3099\u308b","\u305f\u307b\u3099\u3046","\u305f\u307e\u3053\u3099","\u305f\u307e\u308b","\u305f\u3099\u3080\u308b","\u305f\u3081\u3044\u304d","\u305f\u3081\u3059","\u305f\u3081\u308b","\u305f\u3082\u3064","\u305f\u3084\u3059\u3044","\u305f\u3088\u308b","\u305f\u3089\u3059","\u305f\u308a\u304d\u307b\u3093\u304b\u3099\u3093","\u305f\u308a\u3087\u3046","\u305f\u308a\u308b","\u305f\u308b\u3068","\u305f\u308c\u308b","\u305f\u308c\u3093\u3068","\u305f\u308d\u3063\u3068","\u305f\u308f\u3080\u308c\u308b","\u305f\u3099\u3093\u3042\u3064","\u305f\u3093\u3044","\u305f\u3093\u304a\u3093","\u305f\u3093\u304b","\u305f\u3093\u304d","\u305f\u3093\u3051\u3093","\u305f\u3093\u3053\u3099","\u305f\u3093\u3055\u3093","\u305f\u3093\u3057\u3099\u3087\u3046\u3072\u3099","\u305f\u3099\u3093\u305b\u3044","\u305f\u3093\u305d\u304f","\u305f\u3093\u305f\u3044","\u305f\u3099\u3093\u3061","\u305f\u3093\u3066\u3044","\u305f\u3093\u3068\u3046","\u305f\u3099\u3093\u306a","\u305f\u3093\u306b\u3093","\u305f\u3099\u3093\u306d\u3064","\u305f\u3093\u306e\u3046","\u305f\u3093\u3072\u309a\u3093","\u305f\u3099\u3093\u307b\u3099\u3046","\u305f\u3093\u307e\u3064","\u305f\u3093\u3081\u3044","\u305f\u3099\u3093\u308c\u3064","\u305f\u3099\u3093\u308d","\u305f\u3099\u3093\u308f","\u3061\u3042\u3044","\u3061\u3042\u3093","\u3061\u3044\u304d","\u3061\u3044\u3055\u3044","\u3061\u3048\u3093","\u3061\u304b\u3044","\u3061\u304b\u3089","\u3061\u304d\u3085\u3046","\u3061\u304d\u3093","\u3061\u3051\u3044\u3059\u3099","\u3061\u3051\u3093","\u3061\u3053\u304f","\u3061\u3055\u3044","\u3061\u3057\u304d","\u3061\u3057\u308a\u3087\u3046","\u3061\u305b\u3044","\u3061\u305d\u3046","\u3061\u305f\u3044","\u3061\u305f\u3093","\u3061\u3061\u304a\u3084","\u3061\u3064\u3057\u3099\u3087","\u3061\u3066\u304d","\u3061\u3066\u3093","\u3061\u306c\u304d","\u3061\u306c\u308a","\u3061\u306e\u3046","\u3061\u3072\u3087\u3046","\u3061\u3078\u3044\u305b\u3093","\u3061\u307b\u3046","\u3061\u307e\u305f","\u3061\u307f\u3064","\u3061\u307f\u3068\u3099\u308d","\u3061\u3081\u3044\u3068\u3099","\u3061\u3083\u3093\u3053\u306a\u3078\u3099","\u3061\u3085\u3046\u3044","\u3061\u3086\u308a\u3087\u304f","\u3061\u3087\u3046\u3057","\u3061\u3087\u3055\u304f\u3051\u3093","\u3061\u3089\u3057","\u3061\u3089\u307f","\u3061\u308a\u304b\u3099\u307f","\u3061\u308a\u3087\u3046","\u3061\u308b\u3068\u3099","\u3061\u308f\u308f","\u3061\u3093\u305f\u3044","\u3061\u3093\u3082\u304f","\u3064\u3044\u304b","\u3064\u3044\u305f\u3061","\u3064\u3046\u304b","\u3064\u3046\u3057\u3099\u3087\u3046","\u3064\u3046\u306f\u3093","\u3064\u3046\u308f","\u3064\u304b\u3046","\u3064\u304b\u308c\u308b","\u3064\u304f\u306d","\u3064\u304f\u308b","\u3064\u3051\u306d","\u3064\u3051\u308b","\u3064\u3053\u3099\u3046","\u3064\u305f\u3048\u308b","\u3064\u3064\u3099\u304f","\u3064\u3064\u3057\u3099","\u3064\u3064\u3080","\u3064\u3068\u3081\u308b","\u3064\u306a\u304b\u3099\u308b","\u3064\u306a\u307f","\u3064\u306d\u3064\u3099\u306d","\u3064\u306e\u308b","\u3064\u3075\u3099\u3059","\u3064\u307e\u3089\u306a\u3044","\u3064\u307e\u308b","\u3064\u307f\u304d","\u3064\u3081\u305f\u3044","\u3064\u3082\u308a","\u3064\u3082\u308b","\u3064\u3088\u3044","\u3064\u308b\u307b\u3099","\u3064\u308b\u307f\u304f","\u3064\u308f\u3082\u306e","\u3064\u308f\u308a","\u3066\u3042\u3057","\u3066\u3042\u3066","\u3066\u3042\u307f","\u3066\u3044\u304a\u3093","\u3066\u3044\u304b","\u3066\u3044\u304d","\u3066\u3044\u3051\u3044","\u3066\u3044\u3053\u304f","\u3066\u3044\u3055\u3064","\u3066\u3044\u3057","\u3066\u3044\u305b\u3044","\u3066\u3044\u305f\u3044","\u3066\u3044\u3068\u3099","\u3066\u3044\u306d\u3044","\u3066\u3044\u3072\u3087\u3046","\u3066\u3044\u3078\u3093","\u3066\u3044\u307b\u3099\u3046","\u3066\u3046\u3061","\u3066\u304a\u304f\u308c","\u3066\u304d\u3068\u3046","\u3066\u304f\u3072\u3099","\u3066\u3099\u3053\u307b\u3099\u3053","\u3066\u3055\u304d\u3099\u3087\u3046","\u3066\u3055\u3051\u3099","\u3066\u3059\u308a","\u3066\u305d\u3046","\u3066\u3061\u304b\u3099\u3044","\u3066\u3061\u3087\u3046","\u3066\u3064\u304b\u3099\u304f","\u3066\u3064\u3064\u3099\u304d","\u3066\u3099\u3063\u306f\u309a","\u3066\u3064\u307b\u3099\u3046","\u3066\u3064\u3084","\u3066\u3099\u306c\u304b\u3048","\u3066\u306c\u304d","\u3066\u306c\u304f\u3099\u3044","\u3066\u306e\u3072\u3089","\u3066\u306f\u3044","\u3066\u3075\u3099\u304f\u308d","\u3066\u3075\u305f\u3099","\u3066\u307b\u3068\u3099\u304d","\u3066\u307b\u3093","\u3066\u307e\u3048","\u3066\u307e\u304d\u3059\u3099\u3057","\u3066\u307f\u3057\u3099\u304b","\u3066\u307f\u3084\u3051\u3099","\u3066\u3089\u3059","\u3066\u308c\u3072\u3099","\u3066\u308f\u3051","\u3066\u308f\u305f\u3057","\u3066\u3099\u3093\u3042\u3064","\u3066\u3093\u3044\u3093","\u3066\u3093\u304b\u3044","\u3066\u3093\u304d","\u3066\u3093\u304f\u3099","\u3066\u3093\u3051\u3093","\u3066\u3093\u3053\u3099\u304f","\u3066\u3093\u3055\u3044","\u3066\u3093\u3057","\u3066\u3093\u3059\u3046","\u3066\u3099\u3093\u3061","\u3066\u3093\u3066\u304d","\u3066\u3093\u3068\u3046","\u3066\u3093\u306a\u3044","\u3066\u3093\u3075\u309a\u3089","\u3066\u3093\u307b\u3099\u3046\u305f\u3099\u3044","\u3066\u3093\u3081\u3064","\u3066\u3093\u3089\u3093\u304b\u3044","\u3066\u3099\u3093\u308a\u3087\u304f","\u3066\u3099\u3093\u308f","\u3068\u3099\u3042\u3044","\u3068\u3044\u308c","\u3068\u3099\u3046\u304b\u3093","\u3068\u3046\u304d\u3085\u3046","\u3068\u3099\u3046\u304f\u3099","\u3068\u3046\u3057","\u3068\u3046\u3080\u304d\u3099","\u3068\u304a\u3044","\u3068\u304a\u304b","\u3068\u304a\u304f","\u3068\u304a\u3059","\u3068\u304a\u308b","\u3068\u304b\u3044","\u3068\u304b\u3059","\u3068\u304d\u304a\u308a","\u3068\u304d\u3068\u3099\u304d","\u3068\u304f\u3044","\u3068\u304f\u3057\u3085\u3046","\u3068\u304f\u3066\u3093","\u3068\u304f\u306b","\u3068\u304f\u3078\u3099\u3064","\u3068\u3051\u3044","\u3068\u3051\u308b","\u3068\u3053\u3084","\u3068\u3055\u304b","\u3068\u3057\u3087\u304b\u3093","\u3068\u305d\u3046","\u3068\u305f\u3093","\u3068\u3061\u3085\u3046","\u3068\u3063\u304d\u3085\u3046","\u3068\u3063\u304f\u3093","\u3068\u3064\u305b\u3099\u3093","\u3068\u3064\u306b\u3085\u3046","\u3068\u3068\u3099\u3051\u308b","\u3068\u3068\u306e\u3048\u308b","\u3068\u306a\u3044","\u3068\u306a\u3048\u308b","\u3068\u306a\u308a","\u3068\u306e\u3055\u307e","\u3068\u306f\u3099\u3059","\u3068\u3099\u3075\u3099\u304b\u3099\u308f","\u3068\u307b\u3046","\u3068\u307e\u308b","\u3068\u3081\u308b","\u3068\u3082\u305f\u3099\u3061","\u3068\u3082\u308b","\u3068\u3099\u3088\u3046\u3072\u3099","\u3068\u3089\u3048\u308b","\u3068\u3093\u304b\u3064","\u3068\u3099\u3093\u3075\u3099\u308a","\u306a\u3044\u304b\u304f","\u306a\u3044\u3053\u3046","\u306a\u3044\u3057\u3087","\u306a\u3044\u3059","\u306a\u3044\u305b\u3093","\u306a\u3044\u305d\u3046","\u306a\u304a\u3059","\u306a\u304b\u3099\u3044","\u306a\u304f\u3059","\u306a\u3051\u3099\u308b","\u306a\u3053\u3046\u3068\u3099","\u306a\u3055\u3051","\u306a\u305f\u3066\u3099\u3053\u3053","\u306a\u3063\u3068\u3046","\u306a\u3064\u3084\u3059\u307f","\u306a\u306a\u304a\u3057","\u306a\u306b\u3053\u3099\u3068","\u306a\u306b\u3082\u306e","\u306a\u306b\u308f","\u306a\u306e\u304b","\u306a\u3075\u305f\u3099","\u306a\u307e\u3044\u304d","\u306a\u307e\u3048","\u306a\u307e\u307f","\u306a\u307f\u305f\u3099","\u306a\u3081\u3089\u304b","\u306a\u3081\u308b","\u306a\u3084\u3080","\u306a\u3089\u3046","\u306a\u3089\u3072\u3099","\u306a\u3089\u3075\u3099","\u306a\u308c\u308b","\u306a\u308f\u3068\u3072\u3099","\u306a\u308f\u306f\u3099\u308a","\u306b\u3042\u3046","\u306b\u3044\u304b\u3099\u305f","\u306b\u3046\u3051","\u306b\u304a\u3044","\u306b\u304b\u3044","\u306b\u304b\u3099\u3066","\u306b\u304d\u3072\u3099","\u306b\u304f\u3057\u307f","\u306b\u304f\u307e\u3093","\u306b\u3051\u3099\u308b","\u306b\u3055\u3093\u304b\u305f\u3093\u305d","\u306b\u3057\u304d","\u306b\u305b\u3082\u306e","\u306b\u3061\u3057\u3099\u3087\u3046","\u306b\u3061\u3088\u3046\u3072\u3099","\u306b\u3063\u304b","\u306b\u3063\u304d","\u306b\u3063\u3051\u3044","\u306b\u3063\u3053\u3046","\u306b\u3063\u3055\u3093","\u306b\u3063\u3057\u3087\u304f","\u306b\u3063\u3059\u3046","\u306b\u3063\u305b\u304d","\u306b\u3063\u3066\u3044","\u306b\u306a\u3046","\u306b\u307b\u3093","\u306b\u307e\u3081","\u306b\u3082\u3064","\u306b\u3084\u308a","\u306b\u3085\u3046\u3044\u3093","\u306b\u308a\u3093\u3057\u3083","\u306b\u308f\u3068\u308a","\u306b\u3093\u3044","\u306b\u3093\u304b","\u306b\u3093\u304d","\u306b\u3093\u3051\u3099\u3093","\u306b\u3093\u3057\u304d","\u306b\u3093\u3059\u3099\u3046","\u306b\u3093\u305d\u3046","\u306b\u3093\u305f\u3044","\u306b\u3093\u3061","\u306b\u3093\u3066\u3044","\u306b\u3093\u306b\u304f","\u306b\u3093\u3075\u309a","\u306b\u3093\u307e\u308a","\u306b\u3093\u3080","\u306b\u3093\u3081\u3044","\u306b\u3093\u3088\u3046","\u306c\u3044\u304f\u304d\u3099","\u306c\u304b\u3059","\u306c\u304f\u3099\u3044\u3068\u308b","\u306c\u304f\u3099\u3046","\u306c\u304f\u3082\u308a","\u306c\u3059\u3080","\u306c\u307e\u3048\u3072\u3099","\u306c\u3081\u308a","\u306c\u3089\u3059","\u306c\u3093\u3061\u3083\u304f","\u306d\u3042\u3051\u3099","\u306d\u3044\u304d","\u306d\u3044\u308b","\u306d\u3044\u308d","\u306d\u304f\u3099\u305b","\u306d\u304f\u305f\u3044","\u306d\u304f\u3089","\u306d\u3053\u305b\u3099","\u306d\u3053\u3080","\u306d\u3055\u3051\u3099","\u306d\u3059\u3053\u3099\u3059","\u306d\u305d\u3078\u3099\u308b","\u306d\u305f\u3099\u3093","\u306d\u3064\u3044","\u306d\u3063\u3057\u3093","\u306d\u3064\u305d\u3099\u3046","\u306d\u3063\u305f\u3044\u304d\u3099\u3087","\u306d\u3075\u3099\u305d\u304f","\u306d\u3075\u305f\u3099","\u306d\u307b\u3099\u3046","\u306d\u307b\u308a\u306f\u307b\u308a","\u306d\u307e\u304d","\u306d\u307e\u308f\u3057","\u306d\u307f\u307f","\u306d\u3080\u3044","\u306d\u3080\u305f\u3044","\u306d\u3082\u3068","\u306d\u3089\u3046","\u306d\u308f\u3055\u3099","\u306d\u3093\u3044\u308a","\u306d\u3093\u304a\u3057","\u306d\u3093\u304b\u3093","\u306d\u3093\u304d\u3093","\u306d\u3093\u304f\u3099","\u306d\u3093\u3055\u3099","\u306d\u3093\u3057","\u306d\u3093\u3061\u3083\u304f","\u306d\u3093\u3068\u3099","\u306d\u3093\u3072\u309a","\u306d\u3093\u3075\u3099\u3064","\u306d\u3093\u307e\u3064","\u306d\u3093\u308a\u3087\u3046","\u306d\u3093\u308c\u3044","\u306e\u3044\u3059\u3099","\u306e\u304a\u3064\u3099\u307e","\u306e\u304b\u3099\u3059","\u306e\u304d\u306a\u307f","\u306e\u3053\u304d\u3099\u308a","\u306e\u3053\u3059","\u306e\u3053\u308b","\u306e\u305b\u308b","\u306e\u305d\u3099\u304f","\u306e\u305d\u3099\u3080","\u306e\u305f\u307e\u3046","\u306e\u3061\u307b\u3068\u3099","\u306e\u3063\u304f","\u306e\u306f\u3099\u3059","\u306e\u306f\u3089","\u306e\u3078\u3099\u308b","\u306e\u307b\u3099\u308b","\u306e\u307f\u3082\u306e","\u306e\u3084\u307e","\u306e\u3089\u3044\u306c","\u306e\u3089\u306d\u3053","\u306e\u308a\u3082\u306e","\u306e\u308a\u3086\u304d","\u306e\u308c\u3093","\u306e\u3093\u304d","\u306f\u3099\u3042\u3044","\u306f\u3042\u304f","\u306f\u3099\u3042\u3055\u3093","\u306f\u3099\u3044\u304b","\u306f\u3099\u3044\u304f","\u306f\u3044\u3051\u3093","\u306f\u3044\u3053\u3099","\u306f\u3044\u3057\u3093","\u306f\u3044\u3059\u3044","\u306f\u3044\u305b\u3093","\u306f\u3044\u305d\u3046","\u306f\u3044\u3061","\u306f\u3099\u3044\u306f\u3099\u3044","\u306f\u3044\u308c\u3064","\u306f\u3048\u308b","\u306f\u304a\u308b","\u306f\u304b\u3044","\u306f\u3099\u304b\u308a","\u306f\u304b\u308b","\u306f\u304f\u3057\u3085","\u306f\u3051\u3093","\u306f\u3053\u3075\u3099","\u306f\u3055\u307f","\u306f\u3055\u3093","\u306f\u3057\u3053\u3099","\u306f\u3099\u3057\u3087","\u306f\u3057\u308b","\u306f\u305b\u308b","\u306f\u309a\u305d\u3053\u3093","\u306f\u305d\u3093","\u306f\u305f\u3093","\u306f\u3061\u307f\u3064","\u306f\u3064\u304a\u3093","\u306f\u3063\u304b\u304f","\u306f\u3064\u3099\u304d","\u306f\u3063\u304d\u308a","\u306f\u3063\u304f\u3064","\u306f\u3063\u3051\u3093","\u306f\u3063\u3053\u3046","\u306f\u3063\u3055\u3093","\u306f\u3063\u3057\u3093","\u306f\u3063\u305f\u3064","\u306f\u3063\u3061\u3085\u3046","\u306f\u3063\u3066\u3093","\u306f\u3063\u3072\u309a\u3087\u3046","\u306f\u3063\u307b\u309a\u3046","\u306f\u306a\u3059","\u306f\u306a\u3072\u3099","\u306f\u306b\u304b\u3080","\u306f\u3075\u3099\u3089\u3057","\u306f\u307f\u304b\u3099\u304d","\u306f\u3080\u304b\u3046","\u306f\u3081\u3064","\u306f\u3084\u3044","\u306f\u3084\u3057","\u306f\u3089\u3046","\u306f\u308d\u3046\u3043\u3093","\u306f\u308f\u3044","\u306f\u3093\u3044","\u306f\u3093\u3048\u3044","\u306f\u3093\u304a\u3093","\u306f\u3093\u304b\u304f","\u306f\u3093\u304d\u3087\u3046","\u306f\u3099\u3093\u304f\u3099\u307f","\u306f\u3093\u3053","\u306f\u3093\u3057\u3083","\u306f\u3093\u3059\u3046","\u306f\u3093\u305f\u3099\u3093","\u306f\u309a\u3093\u3061","\u306f\u309a\u3093\u3064","\u306f\u3093\u3066\u3044","\u306f\u3093\u3068\u3057","\u306f\u3093\u306e\u3046","\u306f\u3093\u306f\u309a","\u306f\u3093\u3075\u3099\u3093","\u306f\u3093\u3078\u309a\u3093","\u306f\u3093\u307b\u3099\u3046\u304d","\u306f\u3093\u3081\u3044","\u306f\u3093\u3089\u3093","\u306f\u3093\u308d\u3093","\u3072\u3044\u304d","\u3072\u3046\u3093","\u3072\u3048\u308b","\u3072\u304b\u304f","\u3072\u304b\u308a","\u3072\u304b\u308b","\u3072\u304b\u3093","\u3072\u304f\u3044","\u3072\u3051\u3064","\u3072\u3053\u3046\u304d","\u3072\u3053\u304f","\u3072\u3055\u3044","\u3072\u3055\u3057\u3075\u3099\u308a","\u3072\u3055\u3093","\u3072\u3099\u3057\u3099\u3085\u3064\u304b\u3093","\u3072\u3057\u3087","\u3072\u305d\u304b","\u3072\u305d\u3080","\u3072\u305f\u3080\u304d","\u3072\u305f\u3099\u308a","\u3072\u305f\u308b","\u3072\u3064\u304d\u3099","\u3072\u3063\u3053\u3057","\u3072\u3063\u3057","\u3072\u3064\u3057\u3099\u3085\u3072\u3093","\u3072\u3063\u3059","\u3072\u3064\u305b\u3099\u3093","\u3072\u309a\u3063\u305f\u308a","\u3072\u309a\u3063\u3061\u308a","\u3072\u3064\u3088\u3046","\u3072\u3066\u3044","\u3072\u3068\u3053\u3099\u307f","\u3072\u306a\u307e\u3064\u308a","\u3072\u306a\u3093","\u3072\u306d\u308b","\u3072\u306f\u3093","\u3072\u3072\u3099\u304f","\u3072\u3072\u3087\u3046","\u3072\u307b\u3046","\u3072\u307e\u308f\u308a","\u3072\u307e\u3093","\u3072\u307f\u3064","\u3072\u3081\u3044","\u3072\u3081\u3057\u3099\u3057","\u3072\u3084\u3051","\u3072\u3084\u3059","\u3072\u3088\u3046","\u3072\u3099\u3087\u3046\u304d","\u3072\u3089\u304b\u3099\u306a","\u3072\u3089\u304f","\u3072\u308a\u3064","\u3072\u308a\u3087\u3046","\u3072\u308b\u307e","\u3072\u308b\u3084\u3059\u307f","\u3072\u308c\u3044","\u3072\u308d\u3044","\u3072\u308d\u3046","\u3072\u308d\u304d","\u3072\u308d\u3086\u304d","\u3072\u3093\u304b\u304f","\u3072\u3093\u3051\u3064","\u3072\u3093\u3053\u3093","\u3072\u3093\u3057\u3085","\u3072\u3093\u305d\u3046","\u3072\u309a\u3093\u3061","\u3072\u3093\u306f\u309a\u3093","\u3072\u3099\u3093\u307b\u3099\u3046","\u3075\u3042\u3093","\u3075\u3044\u3046\u3061","\u3075\u3046\u3051\u3044","\u3075\u3046\u305b\u3093","\u3075\u309a\u3046\u305f\u308d\u3046","\u3075\u3046\u3068\u3046","\u3075\u3046\u3075","\u3075\u3048\u308b","\u3075\u304a\u3093","\u3075\u304b\u3044","\u3075\u304d\u3093","\u3075\u304f\u3055\u3099\u3064","\u3075\u304f\u3075\u3099\u304f\u308d","\u3075\u3053\u3046","\u3075\u3055\u3044","\u3075\u3057\u304d\u3099","\u3075\u3057\u3099\u307f","\u3075\u3059\u307e","\u3075\u305b\u3044","\u3075\u305b\u304f\u3099","\u3075\u305d\u304f","\u3075\u3099\u305f\u306b\u304f","\u3075\u305f\u3093","\u3075\u3061\u3087\u3046","\u3075\u3064\u3046","\u3075\u3064\u304b","\u3075\u3063\u304b\u3064","\u3075\u3063\u304d","\u3075\u3063\u3053\u304f","\u3075\u3099\u3068\u3099\u3046","\u3075\u3068\u308b","\u3075\u3068\u3093","\u3075\u306e\u3046","\u3075\u306f\u3044","\u3075\u3072\u3087\u3046","\u3075\u3078\u3093","\u3075\u307e\u3093","\u3075\u307f\u3093","\u3075\u3081\u3064","\u3075\u3081\u3093","\u3075\u3088\u3046","\u3075\u308a\u3053","\u3075\u308a\u308b","\u3075\u308b\u3044","\u3075\u3093\u3044\u304d","\u3075\u3099\u3093\u304b\u3099\u304f","\u3075\u3099\u3093\u304f\u3099","\u3075\u3093\u3057\u3064","\u3075\u3099\u3093\u305b\u304d","\u3075\u3093\u305d\u3046","\u3075\u3099\u3093\u307b\u309a\u3046","\u3078\u3044\u3042\u3093","\u3078\u3044\u304a\u3093","\u3078\u3044\u304b\u3099\u3044","\u3078\u3044\u304d","\u3078\u3044\u3051\u3099\u3093","\u3078\u3044\u3053\u3046","\u3078\u3044\u3055","\u3078\u3044\u3057\u3083","\u3078\u3044\u305b\u3064","\u3078\u3044\u305d","\u3078\u3044\u305f\u304f","\u3078\u3044\u3066\u3093","\u3078\u3044\u306d\u3064","\u3078\u3044\u308f","\u3078\u304d\u304b\u3099","\u3078\u3053\u3080","\u3078\u3099\u306b\u3044\u308d","\u3078\u3099\u306b\u3057\u3087\u3046\u304b\u3099","\u3078\u3089\u3059","\u3078\u3093\u304b\u3093","\u3078\u3099\u3093\u304d\u3087\u3046","\u3078\u3099\u3093\u3053\u3099\u3057","\u3078\u3093\u3055\u3044","\u3078\u3093\u305f\u3044","\u3078\u3099\u3093\u308a","\u307b\u3042\u3093","\u307b\u3044\u304f","\u307b\u3099\u3046\u304d\u3099\u3087","\u307b\u3046\u3053\u304f","\u307b\u3046\u305d\u3046","\u307b\u3046\u307b\u3046","\u307b\u3046\u3082\u3093","\u307b\u3046\u308a\u3064","\u307b\u3048\u308b","\u307b\u304a\u3093","\u307b\u304b\u3093","\u307b\u304d\u3087\u3046","\u307b\u3099\u304d\u3093","\u307b\u304f\u308d","\u307b\u3051\u3064","\u307b\u3051\u3093","\u307b\u3053\u3046","\u307b\u3053\u308b","\u307b\u3057\u3044","\u307b\u3057\u3064","\u307b\u3057\u3085","\u307b\u3057\u3087\u3046","\u307b\u305b\u3044","\u307b\u305d\u3044","\u307b\u305d\u304f","\u307b\u305f\u3066","\u307b\u305f\u308b","\u307b\u309a\u3061\u3075\u3099\u304f\u308d","\u307b\u3063\u304d\u3087\u304f","\u307b\u3063\u3055","\u307b\u3063\u305f\u3093","\u307b\u3068\u3093\u3068\u3099","\u307b\u3081\u308b","\u307b\u3093\u3044","\u307b\u3093\u304d","\u307b\u3093\u3051","\u307b\u3093\u3057\u3064","\u307b\u3093\u3084\u304f","\u307e\u3044\u306b\u3061","\u307e\u304b\u3044","\u307e\u304b\u305b\u308b","\u307e\u304b\u3099\u308b","\u307e\u3051\u308b","\u307e\u3053\u3068","\u307e\u3055\u3064","\u307e\u3057\u3099\u3081","\u307e\u3059\u304f","\u307e\u305b\u3099\u308b","\u307e\u3064\u308a","\u307e\u3068\u3081","\u307e\u306a\u3075\u3099","\u307e\u306c\u3051","\u307e\u306d\u304f","\u307e\u307b\u3046","\u307e\u3082\u308b","\u307e\u3086\u3051\u3099","\u307e\u3088\u3046","\u307e\u308d\u3084\u304b","\u307e\u308f\u3059","\u307e\u308f\u308a","\u307e\u308f\u308b","\u307e\u3093\u304b\u3099","\u307e\u3093\u304d\u3064","\u307e\u3093\u305d\u3099\u304f","\u307e\u3093\u306a\u304b","\u307f\u3044\u3089","\u307f\u3046\u3061","\u307f\u3048\u308b","\u307f\u304b\u3099\u304f","\u307f\u304b\u305f","\u307f\u304b\u3093","\u307f\u3051\u3093","\u307f\u3053\u3093","\u307f\u3057\u3099\u304b\u3044","\u307f\u3059\u3044","\u307f\u3059\u3048\u308b","\u307f\u305b\u308b","\u307f\u3063\u304b","\u307f\u3064\u304b\u308b","\u307f\u3064\u3051\u308b","\u307f\u3066\u3044","\u307f\u3068\u3081\u308b","\u307f\u306a\u3068","\u307f\u306a\u307f\u304b\u3055\u3044","\u307f\u306d\u3089\u308b","\u307f\u306e\u3046","\u307f\u306e\u304b\u3099\u3059","\u307f\u307b\u3093","\u307f\u3082\u3068","\u307f\u3084\u3051\u3099","\u307f\u3089\u3044","\u307f\u308a\u3087\u304f","\u307f\u308f\u304f","\u307f\u3093\u304b","\u307f\u3093\u305d\u3099\u304f","\u3080\u3044\u304b","\u3080\u3048\u304d","\u3080\u3048\u3093","\u3080\u304b\u3044","\u3080\u304b\u3046","\u3080\u304b\u3048","\u3080\u304b\u3057","\u3080\u304d\u3099\u3061\u3083","\u3080\u3051\u308b","\u3080\u3051\u3099\u3093","\u3080\u3055\u307b\u3099\u308b","\u3080\u3057\u3042\u3064\u3044","\u3080\u3057\u306f\u3099","\u3080\u3057\u3099\u3085\u3093","\u3080\u3057\u308d","\u3080\u3059\u3046","\u3080\u3059\u3053","\u3080\u3059\u3075\u3099","\u3080\u3059\u3081","\u3080\u305b\u308b","\u3080\u305b\u3093","\u3080\u3061\u3085\u3046","\u3080\u306a\u3057\u3044","\u3080\u306e\u3046","\u3080\u3084\u307f","\u3080\u3088\u3046","\u3080\u3089\u3055\u304d","\u3080\u308a\u3087\u3046","\u3080\u308d\u3093","\u3081\u3044\u3042\u3093","\u3081\u3044\u3046\u3093","\u3081\u3044\u3048\u3093","\u3081\u3044\u304b\u304f","\u3081\u3044\u304d\u3087\u304f","\u3081\u3044\u3055\u3044","\u3081\u3044\u3057","\u3081\u3044\u305d\u3046","\u3081\u3044\u3075\u3099\u3064","\u3081\u3044\u308c\u3044","\u3081\u3044\u308f\u304f","\u3081\u304f\u3099\u307e\u308c\u308b","\u3081\u3055\u3099\u3059","\u3081\u3057\u305f","\u3081\u3059\u3099\u3089\u3057\u3044","\u3081\u305f\u3099\u3064","\u3081\u307e\u3044","\u3081\u3084\u3059","\u3081\u3093\u304d\u3087","\u3081\u3093\u305b\u304d","\u3081\u3093\u3068\u3099\u3046","\u3082\u3046\u3057\u3042\u3051\u3099\u308b","\u3082\u3046\u3068\u3099\u3046\u3051\u3093","\u3082\u3048\u308b","\u3082\u304f\u3057","\u3082\u304f\u3066\u304d","\u3082\u304f\u3088\u3046\u3072\u3099","\u3082\u3061\u308d\u3093","\u3082\u3068\u3099\u308b","\u3082\u3089\u3046","\u3082\u3093\u304f","\u3082\u3093\u305f\u3099\u3044","\u3084\u304a\u3084","\u3084\u3051\u308b","\u3084\u3055\u3044","\u3084\u3055\u3057\u3044","\u3084\u3059\u3044","\u3084\u3059\u305f\u308d\u3046","\u3084\u3059\u307f","\u3084\u305b\u308b","\u3084\u305d\u3046","\u3084\u305f\u3044","\u3084\u3061\u3093","\u3084\u3063\u3068","\u3084\u3063\u306f\u309a\u308a","\u3084\u3075\u3099\u308b","\u3084\u3081\u308b","\u3084\u3084\u3053\u3057\u3044","\u3084\u3088\u3044","\u3084\u308f\u3089\u304b\u3044","\u3086\u3046\u304d","\u3086\u3046\u3072\u3099\u3093\u304d\u3087\u304f","\u3086\u3046\u3078\u3099","\u3086\u3046\u3081\u3044","\u3086\u3051\u3064","\u3086\u3057\u3085\u3064","\u3086\u305b\u3093","\u3086\u305d\u3046","\u3086\u305f\u304b","\u3086\u3061\u3083\u304f","\u3086\u3066\u3099\u308b","\u3086\u306b\u3085\u3046","\u3086\u3072\u3099\u308f","\u3086\u3089\u3044","\u3086\u308c\u308b","\u3088\u3046\u3044","\u3088\u3046\u304b","\u3088\u3046\u304d\u3085\u3046","\u3088\u3046\u3057\u3099","\u3088\u3046\u3059","\u3088\u3046\u3061\u3048\u3093","\u3088\u304b\u305b\u3099","\u3088\u304b\u3093","\u3088\u304d\u3093","\u3088\u304f\u305b\u3044","\u3088\u304f\u307b\u3099\u3046","\u3088\u3051\u3044","\u3088\u3053\u3099\u308c\u308b","\u3088\u3055\u3093","\u3088\u3057\u3085\u3046","\u3088\u305d\u3046","\u3088\u305d\u304f","\u3088\u3063\u304b","\u3088\u3066\u3044","\u3088\u3068\u3099\u304b\u3099\u308f\u304f","\u3088\u306d\u3064","\u3088\u3084\u304f","\u3088\u3086\u3046","\u3088\u308d\u3053\u3075\u3099","\u3088\u308d\u3057\u3044","\u3089\u3044\u3046","\u3089\u304f\u304b\u3099\u304d","\u3089\u304f\u3053\u3099","\u3089\u304f\u3055\u3064","\u3089\u304f\u305f\u3099","\u3089\u3057\u3093\u306f\u3099\u3093","\u3089\u305b\u3093","\u3089\u305d\u3099\u304f","\u3089\u305f\u3044","\u3089\u3063\u304b","\u3089\u308c\u3064","\u308a\u3048\u304d","\u308a\u304b\u3044","\u308a\u304d\u3055\u304f","\u308a\u304d\u305b\u3064","\u308a\u304f\u304f\u3099\u3093","\u308a\u304f\u3064","\u308a\u3051\u3093","\u308a\u3053\u3046","\u308a\u305b\u3044","\u308a\u305d\u3046","\u308a\u305d\u304f","\u308a\u3066\u3093","\u308a\u306d\u3093","\u308a\u3086\u3046","\u308a\u3085\u3046\u304b\u3099\u304f","\u308a\u3088\u3046","\u308a\u3087\u3046\u308a","\u308a\u3087\u304b\u3093","\u308a\u3087\u304f\u3061\u3083","\u308a\u3087\u3053\u3046","\u308a\u308a\u304f","\u308a\u308c\u304d","\u308a\u308d\u3093","\u308a\u3093\u3053\u3099","\u308b\u3044\u3051\u3044","\u308b\u3044\u3055\u3044","\u308b\u3044\u3057\u3099","\u308b\u3044\u305b\u304d","\u308b\u3059\u306f\u3099\u3093","\u308b\u308a\u304b\u3099\u308f\u3089","\u308c\u3044\u304b\u3093","\u308c\u3044\u304d\u3099","\u308c\u3044\u305b\u3044","\u308c\u3044\u305d\u3099\u3046\u3053","\u308c\u3044\u3068\u3046","\u308c\u3044\u307b\u3099\u3046","\u308c\u304d\u3057","\u308c\u304d\u305f\u3099\u3044","\u308c\u3093\u3042\u3044","\u308c\u3093\u3051\u3044","\u308c\u3093\u3053\u3093","\u308c\u3093\u3055\u3044","\u308c\u3093\u3057\u3085\u3046","\u308c\u3093\u305d\u3099\u304f","\u308c\u3093\u3089\u304f","\u308d\u3046\u304b","\u308d\u3046\u3053\u3099","\u308d\u3046\u3057\u3099\u3093","\u308d\u3046\u305d\u304f","\u308d\u304f\u304b\u3099","\u308d\u3053\u3064","\u308d\u3057\u3099\u3046\u3089","\u308d\u3057\u3085\u3064","\u308d\u305b\u3093","\u308d\u3066\u3093","\u308d\u3081\u3093","\u308d\u308c\u3064","\u308d\u3093\u304d\u3099","\u308d\u3093\u306f\u309a","\u308d\u3093\u3075\u3099\u3093","\u308d\u3093\u308a","\u308f\u304b\u3059","\u308f\u304b\u3081","\u308f\u304b\u3084\u307e","\u308f\u304b\u308c\u308b","\u308f\u3057\u3064","\u308f\u3057\u3099\u307e\u3057","\u308f\u3059\u308c\u3082\u306e","\u308f\u3089\u3046","\u308f\u308c\u308b"]')},3468:e=>{"use strict";e.exports=JSON.parse('["\u1100\u1161\u1100\u1167\u11a8","\u1100\u1161\u1101\u1173\u11b7","\u1100\u1161\u1102\u1161\u11ab","\u1100\u1161\u1102\u1173\u11bc","\u1100\u1161\u1103\u1173\u11a8","\u1100\u1161\u1105\u1173\u110e\u1175\u11b7","\u1100\u1161\u1106\u116e\u11b7","\u1100\u1161\u1107\u1161\u11bc","\u1100\u1161\u1109\u1161\u11bc","\u1100\u1161\u1109\u1173\u11b7","\u1100\u1161\u110b\u116e\u11ab\u1103\u1166","\u1100\u1161\u110b\u1173\u11af","\u1100\u1161\u110b\u1175\u1103\u1173","\u1100\u1161\u110b\u1175\u11b8","\u1100\u1161\u110c\u1161\u11bc","\u1100\u1161\u110c\u1165\u11bc","\u1100\u1161\u110c\u1169\u11a8","\u1100\u1161\u110c\u116e\u11a8","\u1100\u1161\u11a8\u110b\u1169","\u1100\u1161\u11a8\u110c\u1161","\u1100\u1161\u11ab\u1100\u1167\u11a8","\u1100\u1161\u11ab\u1107\u116e","\u1100\u1161\u11ab\u1109\u1165\u11b8","\u1100\u1161\u11ab\u110c\u1161\u11bc","\u1100\u1161\u11ab\u110c\u1165\u11b8","\u1100\u1161\u11ab\u1111\u1161\u11ab","\u1100\u1161\u11af\u1103\u1173\u11bc","\u1100\u1161\u11af\u1107\u1175","\u1100\u1161\u11af\u1109\u1162\u11a8","\u1100\u1161\u11af\u110c\u1173\u11bc","\u1100\u1161\u11b7\u1100\u1161\u11a8","\u1100\u1161\u11b7\u1100\u1175","\u1100\u1161\u11b7\u1109\u1169","\u1100\u1161\u11b7\u1109\u116e\u1109\u1165\u11bc","\u1100\u1161\u11b7\u110c\u1161","\u1100\u1161\u11b7\u110c\u1165\u11bc","\u1100\u1161\u11b8\u110c\u1161\u1100\u1175","\u1100\u1161\u11bc\u1102\u1161\u11b7","\u1100\u1161\u11bc\u1103\u1161\u11bc","\u1100\u1161\u11bc\u1103\u1169","\u1100\u1161\u11bc\u1105\u1167\u11a8\u1112\u1175","\u1100\u1161\u11bc\u1107\u1167\u11ab","\u1100\u1161\u11bc\u1107\u116e\u11a8","\u1100\u1161\u11bc\u1109\u1161","\u1100\u1161\u11bc\u1109\u116e\u1105\u1163\u11bc","\u1100\u1161\u11bc\u110b\u1161\u110c\u1175","\u1100\u1161\u11bc\u110b\u116f\u11ab\u1103\u1169","\u1100\u1161\u11bc\u110b\u1174","\u1100\u1161\u11bc\u110c\u1166","\u1100\u1161\u11bc\u110c\u1169","\u1100\u1161\u11c0\u110b\u1175","\u1100\u1162\u1100\u116e\u1105\u1175","\u1100\u1162\u1102\u1161\u1105\u1175","\u1100\u1162\u1107\u1161\u11bc","\u1100\u1162\u1107\u1167\u11af","\u1100\u1162\u1109\u1165\u11ab","\u1100\u1162\u1109\u1165\u11bc","\u1100\u1162\u110b\u1175\u11ab","\u1100\u1162\u11a8\u1100\u116a\u11ab\u110c\u1165\u11a8","\u1100\u1165\u1109\u1175\u11af","\u1100\u1165\u110b\u1162\u11a8","\u1100\u1165\u110b\u116e\u11af","\u1100\u1165\u110c\u1175\u11ba","\u1100\u1165\u1111\u116e\u11b7","\u1100\u1165\u11a8\u110c\u1165\u11bc","\u1100\u1165\u11ab\u1100\u1161\u11bc","\u1100\u1165\u11ab\u1106\u116e\u11af","\u1100\u1165\u11ab\u1109\u1165\u11af","\u1100\u1165\u11ab\u110c\u1169","\u1100\u1165\u11ab\u110e\u116e\u11a8","\u1100\u1165\u11af\u110b\u1173\u11b7","\u1100\u1165\u11b7\u1109\u1161","\u1100\u1165\u11b7\u1110\u1169","\u1100\u1166\u1109\u1175\u1111\u1161\u11ab","\u1100\u1166\u110b\u1175\u11b7","\u1100\u1167\u110b\u116e\u11af","\u1100\u1167\u11ab\u1112\u1162","\u1100\u1167\u11af\u1100\u116a","\u1100\u1167\u11af\u1100\u116e\u11a8","\u1100\u1167\u11af\u1105\u1169\u11ab","\u1100\u1167\u11af\u1109\u1165\u11a8","\u1100\u1167\u11af\u1109\u1173\u11bc","\u1100\u1167\u11af\u1109\u1175\u11b7","\u1100\u1167\u11af\u110c\u1165\u11bc","\u1100\u1167\u11af\u1112\u1169\u11ab","\u1100\u1167\u11bc\u1100\u1168","\u1100\u1167\u11bc\u1100\u1169","\u1100\u1167\u11bc\u1100\u1175","\u1100\u1167\u11bc\u1105\u1167\u11a8","\u1100\u1167\u11bc\u1107\u1169\u11a8\u1100\u116e\u11bc","\u1100\u1167\u11bc\u1107\u1175","\u1100\u1167\u11bc\u1109\u1161\u11bc\u1103\u1169","\u1100\u1167\u11bc\u110b\u1167\u11bc","\u1100\u1167\u11bc\u110b\u116e","\u1100\u1167\u11bc\u110c\u1162\u11bc","\u1100\u1167\u11bc\u110c\u1166","\u1100\u1167\u11bc\u110c\u116e","\u1100\u1167\u11bc\u110e\u1161\u11af","\u1100\u1167\u11bc\u110e\u1175","\u1100\u1167\u11bc\u1112\u1163\u11bc","\u1100\u1167\u11bc\u1112\u1165\u11b7","\u1100\u1168\u1100\u1169\u11a8","\u1100\u1168\u1103\u1161\u11ab","\u1100\u1168\u1105\u1161\u11ab","\u1100\u1168\u1109\u1161\u11ab","\u1100\u1168\u1109\u1169\u11a8","\u1100\u1168\u110b\u1163\u11a8","\u1100\u1168\u110c\u1165\u11af","\u1100\u1168\u110e\u1173\u11bc","\u1100\u1168\u1112\u116c\u11a8","\u1100\u1169\u1100\u1162\u11a8","\u1100\u1169\u1100\u116e\u1105\u1167","\u1100\u1169\u1100\u116e\u11bc","\u1100\u1169\u1100\u1173\u11b8","\u1100\u1169\u1103\u1173\u11bc\u1112\u1161\u11a8\u1109\u1162\u11bc","\u1100\u1169\u1106\u116e\u1109\u1175\u11ab","\u1100\u1169\u1106\u1175\u11ab","\u1100\u1169\u110b\u1163\u11bc\u110b\u1175","\u1100\u1169\u110c\u1161\u11bc","\u1100\u1169\u110c\u1165\u11ab","\u1100\u1169\u110c\u1175\u11b8","\u1100\u1169\u110e\u116e\u11ba\u1100\u1161\u1105\u116e","\u1100\u1169\u1110\u1169\u11bc","\u1100\u1169\u1112\u1163\u11bc","\u1100\u1169\u11a8\u1109\u1175\u11a8","\u1100\u1169\u11af\u1106\u1169\u11a8","\u1100\u1169\u11af\u110d\u1161\u1100\u1175","\u1100\u1169\u11af\u1111\u1173","\u1100\u1169\u11bc\u1100\u1161\u11ab","\u1100\u1169\u11bc\u1100\u1162","\u1100\u1169\u11bc\u1100\u1167\u11a8","\u1100\u1169\u11bc\u1100\u116e\u11ab","\u1100\u1169\u11bc\u1100\u1173\u11b8","\u1100\u1169\u11bc\u1100\u1175","\u1100\u1169\u11bc\u1103\u1169\u11bc","\u1100\u1169\u11bc\u1106\u116e\u110b\u116f\u11ab","\u1100\u1169\u11bc\u1107\u116e","\u1100\u1169\u11bc\u1109\u1161","\u1100\u1169\u11bc\u1109\u1175\u11a8","\u1100\u1169\u11bc\u110b\u1165\u11b8","\u1100\u1169\u11bc\u110b\u1167\u11ab","\u1100\u1169\u11bc\u110b\u116f\u11ab","\u1100\u1169\u11bc\u110c\u1161\u11bc","\u1100\u1169\u11bc\u110d\u1161","\u1100\u1169\u11bc\u110e\u1162\u11a8","\u1100\u1169\u11bc\u1110\u1169\u11bc","\u1100\u1169\u11bc\u1111\u1169","\u1100\u1169\u11bc\u1112\u1161\u11bc","\u1100\u1169\u11bc\u1112\u1172\u110b\u1175\u11af","\u1100\u116a\u1106\u1169\u11a8","\u1100\u116a\u110b\u1175\u11af","\u1100\u116a\u110c\u1161\u11bc","\u1100\u116a\u110c\u1165\u11bc","\u1100\u116a\u1112\u1161\u11a8","\u1100\u116a\u11ab\u1100\u1162\u11a8","\u1100\u116a\u11ab\u1100\u1168","\u1100\u116a\u11ab\u1100\u116a\u11bc","\u1100\u116a\u11ab\u1102\u1167\u11b7","\u1100\u116a\u11ab\u1105\u1161\u11b7","\u1100\u116a\u11ab\u1105\u1167\u11ab","\u1100\u116a\u11ab\u1105\u1175","\u1100\u116a\u11ab\u1109\u1173\u11b8","\u1100\u116a\u11ab\u1109\u1175\u11b7","\u1100\u116a\u11ab\u110c\u1165\u11b7","\u1100\u116a\u11ab\u110e\u1161\u11af","\u1100\u116a\u11bc\u1100\u1167\u11bc","\u1100\u116a\u11bc\u1100\u1169","\u1100\u116a\u11bc\u110c\u1161\u11bc","\u1100\u116a\u11bc\u110c\u116e","\u1100\u116c\u1105\u1169\u110b\u116e\u11b7","\u1100\u116c\u11bc\u110c\u1161\u11bc\u1112\u1175","\u1100\u116d\u1100\u116a\u1109\u1165","\u1100\u116d\u1106\u116e\u11ab","\u1100\u116d\u1107\u1169\u11a8","\u1100\u116d\u1109\u1175\u11af","\u1100\u116d\u110b\u1163\u11bc","\u1100\u116d\u110b\u1172\u11a8","\u1100\u116d\u110c\u1161\u11bc","\u1100\u116d\u110c\u1175\u11a8","\u1100\u116d\u1110\u1169\u11bc","\u1100\u116d\u1112\u116a\u11ab","\u1100\u116d\u1112\u116e\u11ab","\u1100\u116e\u1100\u1167\u11bc","\u1100\u116e\u1105\u1173\u11b7","\u1100\u116e\u1106\u1165\u11bc","\u1100\u116e\u1107\u1167\u11af","\u1100\u116e\u1107\u116e\u11ab","\u1100\u116e\u1109\u1165\u11a8","\u1100\u116e\u1109\u1165\u11bc","\u1100\u116e\u1109\u1169\u11a8","\u1100\u116e\u110b\u1167\u11a8","\u1100\u116e\u110b\u1175\u11b8","\u1100\u116e\u110e\u1165\u11bc","\u1100\u116e\u110e\u1166\u110c\u1165\u11a8","\u1100\u116e\u11a8\u1100\u1161","\u1100\u116e\u11a8\u1100\u1175","\u1100\u116e\u11a8\u1102\u1162","\u1100\u116e\u11a8\u1105\u1175\u11b8","\u1100\u116e\u11a8\u1106\u116e\u11af","\u1100\u116e\u11a8\u1106\u1175\u11ab","\u1100\u116e\u11a8\u1109\u116e","\u1100\u116e\u11a8\u110b\u1165","\u1100\u116e\u11a8\u110b\u116a\u11bc","\u1100\u116e\u11a8\u110c\u1165\u11a8","\u1100\u116e\u11a8\u110c\u1166","\u1100\u116e\u11a8\u1112\u116c","\u1100\u116e\u11ab\u1103\u1162","\u1100\u116e\u11ab\u1109\u1161","\u1100\u116e\u11ab\u110b\u1175\u11ab","\u1100\u116e\u11bc\u1100\u1173\u11a8\u110c\u1165\u11a8","\u1100\u116f\u11ab\u1105\u1175","\u1100\u116f\u11ab\u110b\u1171","\u1100\u116f\u11ab\u1110\u116e","\u1100\u1171\u1100\u116e\u11a8","\u1100\u1171\u1109\u1175\u11ab","\u1100\u1172\u110c\u1165\u11bc","\u1100\u1172\u110e\u1175\u11a8","\u1100\u1172\u11ab\u1112\u1167\u11bc","\u1100\u1173\u1102\u1161\u11af","\u1100\u1173\u1102\u1163\u11bc","\u1100\u1173\u1102\u1173\u11af","\u1100\u1173\u1105\u1165\u1102\u1161","\u1100\u1173\u1105\u116e\u11b8","\u1100\u1173\u1105\u1173\u11ba","\u1100\u1173\u1105\u1175\u11b7","\u1100\u1173\u110c\u1166\u1109\u1165\u110b\u1163","\u1100\u1173\u1110\u1169\u1105\u1169\u11a8","\u1100\u1173\u11a8\u1107\u1169\u11a8","\u1100\u1173\u11a8\u1112\u1175","\u1100\u1173\u11ab\u1100\u1165","\u1100\u1173\u11ab\u1100\u116d","\u1100\u1173\u11ab\u1105\u1162","\u1100\u1173\u11ab\u1105\u1169","\u1100\u1173\u11ab\u1106\u116e","\u1100\u1173\u11ab\u1107\u1169\u11ab","\u1100\u1173\u11ab\u110b\u116f\u11ab","\u1100\u1173\u11ab\u110b\u1172\u11a8","\u1100\u1173\u11ab\u110e\u1165","\u1100\u1173\u11af\u110a\u1175","\u1100\u1173\u11af\u110c\u1161","\u1100\u1173\u11b7\u1100\u1161\u11bc\u1109\u1161\u11ab","\u1100\u1173\u11b7\u1100\u1169","\u1100\u1173\u11b7\u1102\u1167\u11ab","\u1100\u1173\u11b7\u1106\u1166\u1103\u1161\u11af","\u1100\u1173\u11b7\u110b\u1162\u11a8","\u1100\u1173\u11b7\u110b\u1167\u11ab","\u1100\u1173\u11b7\u110b\u116d\u110b\u1175\u11af","\u1100\u1173\u11b7\u110c\u1175","\u1100\u1173\u11bc\u110c\u1165\u11bc\u110c\u1165\u11a8","\u1100\u1175\u1100\u1161\u11ab","\u1100\u1175\u1100\u116a\u11ab","\u1100\u1175\u1102\u1167\u11b7","\u1100\u1175\u1102\u1173\u11bc","\u1100\u1175\u1103\u1169\u11a8\u1100\u116d","\u1100\u1175\u1103\u116e\u11bc","\u1100\u1175\u1105\u1169\u11a8","\u1100\u1175\u1105\u1173\u11b7","\u1100\u1175\u1107\u1165\u11b8","\u1100\u1175\u1107\u1169\u11ab","\u1100\u1175\u1107\u116e\u11ab","\u1100\u1175\u1108\u1173\u11b7","\u1100\u1175\u1109\u116e\u11a8\u1109\u1161","\u1100\u1175\u1109\u116e\u11af","\u1100\u1175\u110b\u1165\u11a8","\u1100\u1175\u110b\u1165\u11b8","\u1100\u1175\u110b\u1169\u11ab","\u1100\u1175\u110b\u116e\u11ab","\u1100\u1175\u110b\u116f\u11ab","\u1100\u1175\u110c\u1165\u11a8","\u1100\u1175\u110c\u116e\u11ab","\u1100\u1175\u110e\u1175\u11b7","\u1100\u1175\u1112\u1169\u11ab","\u1100\u1175\u1112\u116c\u11a8","\u1100\u1175\u11ab\u1100\u1173\u11b8","\u1100\u1175\u11ab\u110c\u1161\u11bc","\u1100\u1175\u11af\u110b\u1175","\u1100\u1175\u11b7\u1107\u1161\u11b8","\u1100\u1175\u11b7\u110e\u1175","\u1100\u1175\u11b7\u1111\u1169\u1100\u1169\u11bc\u1112\u1161\u11bc","\u1101\u1161\u11a8\u1103\u116e\u1100\u1175","\u1101\u1161\u11b7\u1108\u1161\u11a8","\u1101\u1162\u1103\u1161\u11af\u110b\u1173\u11b7","\u1101\u1162\u1109\u1169\u1100\u1173\u11b7","\u1101\u1165\u11b8\u110c\u1175\u11af","\u1101\u1169\u11a8\u1103\u1162\u1100\u1175","\u1101\u1169\u11be\u110b\u1175\u11c1","\u1102\u1161\u1103\u1173\u11af\u110b\u1175","\u1102\u1161\u1105\u1161\u11ab\u1112\u1175","\u1102\u1161\u1106\u1165\u110c\u1175","\u1102\u1161\u1106\u116e\u11af","\u1102\u1161\u110e\u1175\u11b7\u1107\u1161\u11ab","\u1102\u1161\u1112\u1173\u11af","\u1102\u1161\u11a8\u110b\u1167\u11b8","\u1102\u1161\u11ab\u1107\u1161\u11bc","\u1102\u1161\u11af\u1100\u1162","\u1102\u1161\u11af\u110a\u1175","\u1102\u1161\u11af\u110d\u1161","\u1102\u1161\u11b7\u1102\u1167","\u1102\u1161\u11b7\u1103\u1162\u1106\u116e\u11ab","\u1102\u1161\u11b7\u1106\u1162","\u1102\u1161\u11b7\u1109\u1161\u11ab","\u1102\u1161\u11b7\u110c\u1161","\u1102\u1161\u11b7\u1111\u1167\u11ab","\u1102\u1161\u11b7\u1112\u1161\u11a8\u1109\u1162\u11bc","\u1102\u1161\u11bc\u1107\u1175","\u1102\u1161\u11c0\u1106\u1161\u11af","\u1102\u1162\u1102\u1167\u11ab","\u1102\u1162\u110b\u116d\u11bc","\u1102\u1162\u110b\u1175\u11af","\u1102\u1162\u11b7\u1107\u1175","\u1102\u1162\u11b7\u1109\u1162","\u1102\u1162\u11ba\u1106\u116e\u11af","\u1102\u1162\u11bc\u1103\u1169\u11bc","\u1102\u1162\u11bc\u1106\u1167\u11ab","\u1102\u1162\u11bc\u1107\u1161\u11bc","\u1102\u1162\u11bc\u110c\u1161\u11bc\u1100\u1169","\u1102\u1166\u11a8\u1110\u1161\u110b\u1175","\u1102\u1166\u11ba\u110d\u1162","\u1102\u1169\u1103\u1169\u11bc","\u1102\u1169\u1105\u1161\u11ab\u1109\u1162\u11a8","\u1102\u1169\u1105\u1167\u11a8","\u1102\u1169\u110b\u1175\u11ab","\u1102\u1169\u11a8\u110b\u1173\u11b7","\u1102\u1169\u11a8\u110e\u1161","\u1102\u1169\u11a8\u1112\u116a","\u1102\u1169\u11ab\u1105\u1175","\u1102\u1169\u11ab\u1106\u116e\u11ab","\u1102\u1169\u11ab\u110c\u1162\u11bc","\u1102\u1169\u11af\u110b\u1175","\u1102\u1169\u11bc\u1100\u116e","\u1102\u1169\u11bc\u1103\u1161\u11b7","\u1102\u1169\u11bc\u1106\u1175\u11ab","\u1102\u1169\u11bc\u1107\u116e","\u1102\u1169\u11bc\u110b\u1165\u11b8","\u1102\u1169\u11bc\u110c\u1161\u11bc","\u1102\u1169\u11bc\u110e\u1169\u11ab","\u1102\u1169\u11c1\u110b\u1175","\u1102\u116e\u11ab\u1103\u1169\u11bc\u110c\u1161","\u1102\u116e\u11ab\u1106\u116e\u11af","\u1102\u116e\u11ab\u110a\u1165\u11b8","\u1102\u1172\u110b\u116d\u11a8","\u1102\u1173\u1101\u1175\u11b7","\u1102\u1173\u11a8\u1103\u1162","\u1102\u1173\u11bc\u1103\u1169\u11bc\u110c\u1165\u11a8","\u1102\u1173\u11bc\u1105\u1167\u11a8","\u1103\u1161\u1107\u1161\u11bc","\u1103\u1161\u110b\u1163\u11bc\u1109\u1165\u11bc","\u1103\u1161\u110b\u1173\u11b7","\u1103\u1161\u110b\u1175\u110b\u1165\u1110\u1173","\u1103\u1161\u1112\u1162\u11bc","\u1103\u1161\u11ab\u1100\u1168","\u1103\u1161\u11ab\u1100\u1169\u11af","\u1103\u1161\u11ab\u1103\u1169\u11a8","\u1103\u1161\u11ab\u1106\u1161\u11ba","\u1103\u1161\u11ab\u1109\u116e\u11ab","\u1103\u1161\u11ab\u110b\u1165","\u1103\u1161\u11ab\u110b\u1171","\u1103\u1161\u11ab\u110c\u1165\u11b7","\u1103\u1161\u11ab\u110e\u1166","\u1103\u1161\u11ab\u110e\u116e","\u1103\u1161\u11ab\u1111\u1167\u11ab","\u1103\u1161\u11ab\u1111\u116e\u11bc","\u1103\u1161\u11af\u1100\u1163\u11af","\u1103\u1161\u11af\u1105\u1165","\u1103\u1161\u11af\u1105\u1167\u11a8","\u1103\u1161\u11af\u1105\u1175","\u1103\u1161\u11b0\u1100\u1169\u1100\u1175","\u1103\u1161\u11b7\u1103\u1161\u11bc","\u1103\u1161\u11b7\u1107\u1162","\u1103\u1161\u11b7\u110b\u116d","\u1103\u1161\u11b7\u110b\u1175\u11b7","\u1103\u1161\u11b8\u1107\u1167\u11ab","\u1103\u1161\u11b8\u110c\u1161\u11bc","\u1103\u1161\u11bc\u1100\u1173\u11ab","\u1103\u1161\u11bc\u1107\u116e\u11ab\u1100\u1161\u11ab","\u1103\u1161\u11bc\u110b\u1167\u11ab\u1112\u1175","\u1103\u1161\u11bc\u110c\u1161\u11bc","\u1103\u1162\u1100\u1172\u1106\u1169","\u1103\u1162\u1102\u1161\u11bd","\u1103\u1162\u1103\u1161\u11ab\u1112\u1175","\u1103\u1162\u1103\u1161\u11b8","\u1103\u1162\u1103\u1169\u1109\u1175","\u1103\u1162\u1105\u1163\u11a8","\u1103\u1162\u1105\u1163\u11bc","\u1103\u1162\u1105\u1172\u11a8","\u1103\u1162\u1106\u116e\u11ab","\u1103\u1162\u1107\u116e\u1107\u116e\u11ab","\u1103\u1162\u1109\u1175\u11ab","\u1103\u1162\u110b\u1173\u11bc","\u1103\u1162\u110c\u1161\u11bc","\u1103\u1162\u110c\u1165\u11ab","\u1103\u1162\u110c\u1165\u11b8","\u1103\u1162\u110c\u116e\u11bc","\u1103\u1162\u110e\u1162\u11a8","\u1103\u1162\u110e\u116e\u11af","\u1103\u1162\u110e\u116e\u11bc","\u1103\u1162\u1110\u1169\u11bc\u1105\u1167\u11bc","\u1103\u1162\u1112\u1161\u11a8","\u1103\u1162\u1112\u1161\u11ab\u1106\u1175\u11ab\u1100\u116e\u11a8","\u1103\u1162\u1112\u1161\u11b8\u1109\u1175\u11af","\u1103\u1162\u1112\u1167\u11bc","\u1103\u1165\u11bc\u110b\u1165\u1105\u1175","\u1103\u1166\u110b\u1175\u1110\u1173","\u1103\u1169\u1103\u1162\u110e\u1166","\u1103\u1169\u1103\u1165\u11a8","\u1103\u1169\u1103\u116e\u11a8","\u1103\u1169\u1106\u1161\u11bc","\u1103\u1169\u1109\u1165\u1100\u116a\u11ab","\u1103\u1169\u1109\u1175\u11b7","\u1103\u1169\u110b\u116e\u11b7","\u1103\u1169\u110b\u1175\u11b8","\u1103\u1169\u110c\u1161\u1100\u1175","\u1103\u1169\u110c\u1165\u1112\u1175","\u1103\u1169\u110c\u1165\u11ab","\u1103\u1169\u110c\u116e\u11bc","\u1103\u1169\u110e\u1161\u11a8","\u1103\u1169\u11a8\u1100\u1161\u11b7","\u1103\u1169\u11a8\u1105\u1175\u11b8","\u1103\u1169\u11a8\u1109\u1165","\u1103\u1169\u11a8\u110b\u1175\u11af","\u1103\u1169\u11a8\u110e\u1161\u11bc\u110c\u1165\u11a8","\u1103\u1169\u11bc\u1112\u116a\u110e\u1162\u11a8","\u1103\u1171\u11ba\u1106\u1169\u1109\u1173\u11b8","\u1103\u1171\u11ba\u1109\u1161\u11ab","\u1104\u1161\u11af\u110b\u1161\u110b\u1175","\u1106\u1161\u1102\u116e\u1105\u1161","\u1106\u1161\u1102\u1173\u11af","\u1106\u1161\u1103\u1161\u11bc","\u1106\u1161\u1105\u1161\u1110\u1169\u11ab","\u1106\u1161\u1105\u1167\u11ab","\u1106\u1161\u1106\u116e\u1105\u1175","\u1106\u1161\u1109\u1161\u110c\u1175","\u1106\u1161\u110b\u1163\u11a8","\u1106\u1161\u110b\u116d\u1102\u1166\u110c\u1173","\u1106\u1161\u110b\u1173\u11af","\u1106\u1161\u110b\u1173\u11b7","\u1106\u1161\u110b\u1175\u110f\u1173","\u1106\u1161\u110c\u116e\u11bc","\u1106\u1161\u110c\u1175\u1106\u1161\u11a8","\u1106\u1161\u110e\u1161\u11ab\u1100\u1161\u110c\u1175","\u1106\u1161\u110e\u1161\u11af","\u1106\u1161\u1112\u1173\u11ab","\u1106\u1161\u11a8\u1100\u1165\u11af\u1105\u1175","\u1106\u1161\u11a8\u1102\u1162","\u1106\u1161\u11a8\u1109\u1161\u11bc","\u1106\u1161\u11ab\u1102\u1161\u11b7","\u1106\u1161\u11ab\u1103\u116e","\u1106\u1161\u11ab\u1109\u1166","\u1106\u1161\u11ab\u110b\u1163\u11a8","\u1106\u1161\u11ab\u110b\u1175\u11af","\u1106\u1161\u11ab\u110c\u1165\u11b7","\u1106\u1161\u11ab\u110c\u1169\u11a8","\u1106\u1161\u11ab\u1112\u116a","\u1106\u1161\u11ad\u110b\u1175","\u1106\u1161\u11af\u1100\u1175","\u1106\u1161\u11af\u110a\u1173\u11b7","\u1106\u1161\u11af\u1110\u116e","\u1106\u1161\u11b7\u1103\u1162\u1105\u1169","\u1106\u1161\u11bc\u110b\u116f\u11ab\u1100\u1167\u11bc","\u1106\u1162\u1102\u1167\u11ab","\u1106\u1162\u1103\u1161\u11af","\u1106\u1162\u1105\u1167\u11a8","\u1106\u1162\u1107\u1165\u11ab","\u1106\u1162\u1109\u1173\u110f\u1165\u11b7","\u1106\u1162\u110b\u1175\u11af","\u1106\u1162\u110c\u1161\u11bc","\u1106\u1162\u11a8\u110c\u116e","\u1106\u1165\u11a8\u110b\u1175","\u1106\u1165\u11ab\u110c\u1165","\u1106\u1165\u11ab\u110c\u1175","\u1106\u1165\u11af\u1105\u1175","\u1106\u1166\u110b\u1175\u11af","\u1106\u1167\u1102\u1173\u1105\u1175","\u1106\u1167\u110e\u1175\u11af","\u1106\u1167\u11ab\u1103\u1161\u11b7","\u1106\u1167\u11af\u110e\u1175","\u1106\u1167\u11bc\u1103\u1161\u11ab","\u1106\u1167\u11bc\u1105\u1167\u11bc","\u1106\u1167\u11bc\u110b\u1168","\u1106\u1167\u11bc\u110b\u1174","\u1106\u1167\u11bc\u110c\u1165\u11af","\u1106\u1167\u11bc\u110e\u1175\u11bc","\u1106\u1167\u11bc\u1112\u1161\u11b7","\u1106\u1169\u1100\u1173\u11b7","\u1106\u1169\u1102\u1175\u1110\u1165","\u1106\u1169\u1103\u1166\u11af","\u1106\u1169\u1103\u1173\u11ab","\u1106\u1169\u1107\u1165\u11b7","\u1106\u1169\u1109\u1173\u11b8","\u1106\u1169\u110b\u1163\u11bc","\u1106\u1169\u110b\u1175\u11b7","\u1106\u1169\u110c\u1169\u1105\u1175","\u1106\u1169\u110c\u1175\u11b8","\u1106\u1169\u1110\u116e\u11bc\u110b\u1175","\u1106\u1169\u11a8\u1100\u1165\u11af\u110b\u1175","\u1106\u1169\u11a8\u1105\u1169\u11a8","\u1106\u1169\u11a8\u1109\u1161","\u1106\u1169\u11a8\u1109\u1169\u1105\u1175","\u1106\u1169\u11a8\u1109\u116e\u11b7","\u1106\u1169\u11a8\u110c\u1165\u11a8","\u1106\u1169\u11a8\u1111\u116d","\u1106\u1169\u11af\u1105\u1162","\u1106\u1169\u11b7\u1106\u1162","\u1106\u1169\u11b7\u1106\u116e\u1100\u1166","\u1106\u1169\u11b7\u1109\u1161\u11af","\u1106\u1169\u11b7\u1109\u1169\u11a8","\u1106\u1169\u11b7\u110c\u1175\u11ba","\u1106\u1169\u11b7\u1110\u1169\u11bc","\u1106\u1169\u11b8\u1109\u1175","\u1106\u116e\u1100\u116a\u11ab\u1109\u1175\u11b7","\u1106\u116e\u1100\u116e\u11bc\u1112\u116a","\u1106\u116e\u1103\u1165\u110b\u1171","\u1106\u116e\u1103\u1165\u11b7","\u1106\u116e\u1105\u1173\u11c1","\u1106\u116e\u1109\u1173\u11ab","\u1106\u116e\u110b\u1165\u11ba","\u1106\u116e\u110b\u1167\u11a8","\u1106\u116e\u110b\u116d\u11bc","\u1106\u116e\u110c\u1169\u1100\u1165\u11ab","\u1106\u116e\u110c\u1175\u1100\u1162","\u1106\u116e\u110e\u1165\u11a8","\u1106\u116e\u11ab\u1100\u116e","\u1106\u116e\u11ab\u1103\u1173\u11a8","\u1106\u116e\u11ab\u1107\u1165\u11b8","\u1106\u116e\u11ab\u1109\u1165","\u1106\u116e\u11ab\u110c\u1166","\u1106\u116e\u11ab\u1112\u1161\u11a8","\u1106\u116e\u11ab\u1112\u116a","\u1106\u116e\u11af\u1100\u1161","\u1106\u116e\u11af\u1100\u1165\u11ab","\u1106\u116e\u11af\u1100\u1167\u11af","\u1106\u116e\u11af\u1100\u1169\u1100\u1175","\u1106\u116e\u11af\u1105\u1169\u11ab","\u1106\u116e\u11af\u1105\u1175\u1112\u1161\u11a8","\u1106\u116e\u11af\u110b\u1173\u11b7","\u1106\u116e\u11af\u110c\u1175\u11af","\u1106\u116e\u11af\u110e\u1166","\u1106\u1175\u1100\u116e\u11a8","\u1106\u1175\u1103\u1175\u110b\u1165","\u1106\u1175\u1109\u1161\u110b\u1175\u11af","\u1106\u1175\u1109\u116e\u11af","\u1106\u1175\u110b\u1167\u11a8","\u1106\u1175\u110b\u116d\u11bc\u1109\u1175\u11af","\u1106\u1175\u110b\u116e\u11b7","\u1106\u1175\u110b\u1175\u11ab","\u1106\u1175\u1110\u1175\u11bc","\u1106\u1175\u1112\u1169\u11ab","\u1106\u1175\u11ab\u1100\u1161\u11ab","\u1106\u1175\u11ab\u110c\u1169\u11a8","\u1106\u1175\u11ab\u110c\u116e","\u1106\u1175\u11ae\u110b\u1173\u11b7","\u1106\u1175\u11af\u1100\u1161\u1105\u116e","\u1106\u1175\u11af\u1105\u1175\u1106\u1175\u1110\u1165","\u1106\u1175\u11c0\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u1100\u1161\u110c\u1175","\u1107\u1161\u1100\u116e\u1102\u1175","\u1107\u1161\u1102\u1161\u1102\u1161","\u1107\u1161\u1102\u1173\u11af","\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u1103\u1161\u11ba\u1100\u1161","\u1107\u1161\u1105\u1161\u11b7","\u1107\u1161\u110b\u1175\u1105\u1165\u1109\u1173","\u1107\u1161\u1110\u1161\u11bc","\u1107\u1161\u11a8\u1106\u116e\u11af\u1100\u116a\u11ab","\u1107\u1161\u11a8\u1109\u1161","\u1107\u1161\u11a8\u1109\u116e","\u1107\u1161\u11ab\u1103\u1162","\u1107\u1161\u11ab\u1103\u1173\u1109\u1175","\u1107\u1161\u11ab\u1106\u1161\u11af","\u1107\u1161\u11ab\u1107\u1161\u11af","\u1107\u1161\u11ab\u1109\u1165\u11bc","\u1107\u1161\u11ab\u110b\u1173\u11bc","\u1107\u1161\u11ab\u110c\u1161\u11bc","\u1107\u1161\u11ab\u110c\u116e\u11a8","\u1107\u1161\u11ab\u110c\u1175","\u1107\u1161\u11ab\u110e\u1161\u11ab","\u1107\u1161\u11ae\u110e\u1175\u11b7","\u1107\u1161\u11af\u1100\u1161\u1105\u1161\u11a8","\u1107\u1161\u11af\u1100\u1165\u11af\u110b\u1173\u11b7","\u1107\u1161\u11af\u1100\u1167\u11ab","\u1107\u1161\u11af\u1103\u1161\u11af","\u1107\u1161\u11af\u1105\u1166","\u1107\u1161\u11af\u1106\u1169\u11a8","\u1107\u1161\u11af\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u11af\u1109\u1162\u11bc","\u1107\u1161\u11af\u110b\u1173\u11b7","\u1107\u1161\u11af\u110c\u1161\u1100\u116e\u11a8","\u1107\u1161\u11af\u110c\u1165\u11ab","\u1107\u1161\u11af\u1110\u1169\u11b8","\u1107\u1161\u11af\u1111\u116d","\u1107\u1161\u11b7\u1112\u1161\u1102\u1173\u11af","\u1107\u1161\u11b8\u1100\u1173\u1105\u1173\u11ba","\u1107\u1161\u11b8\u1106\u1161\u11ba","\u1107\u1161\u11b8\u1109\u1161\u11bc","\u1107\u1161\u11b8\u1109\u1169\u11c0","\u1107\u1161\u11bc\u1100\u1173\u11b7","\u1107\u1161\u11bc\u1106\u1167\u11ab","\u1107\u1161\u11bc\u1106\u116e\u11ab","\u1107\u1161\u11bc\u1107\u1161\u1103\u1161\u11a8","\u1107\u1161\u11bc\u1107\u1165\u11b8","\u1107\u1161\u11bc\u1109\u1169\u11bc","\u1107\u1161\u11bc\u1109\u1175\u11a8","\u1107\u1161\u11bc\u110b\u1161\u11ab","\u1107\u1161\u11bc\u110b\u116e\u11af","\u1107\u1161\u11bc\u110c\u1175","\u1107\u1161\u11bc\u1112\u1161\u11a8","\u1107\u1161\u11bc\u1112\u1162","\u1107\u1161\u11bc\u1112\u1163\u11bc","\u1107\u1162\u1100\u1167\u11bc","\u1107\u1162\u1101\u1169\u11b8","\u1107\u1162\u1103\u1161\u11af","\u1107\u1162\u1103\u1173\u1106\u1175\u11ab\u1110\u1165\u11ab","\u1107\u1162\u11a8\u1103\u116e\u1109\u1161\u11ab","\u1107\u1162\u11a8\u1109\u1162\u11a8","\u1107\u1162\u11a8\u1109\u1165\u11bc","\u1107\u1162\u11a8\u110b\u1175\u11ab","\u1107\u1162\u11a8\u110c\u1166","\u1107\u1162\u11a8\u1112\u116a\u110c\u1165\u11b7","\u1107\u1165\u1105\u1173\u11ba","\u1107\u1165\u1109\u1165\u11ba","\u1107\u1165\u1110\u1173\u11ab","\u1107\u1165\u11ab\u1100\u1162","\u1107\u1165\u11ab\u110b\u1167\u11a8","\u1107\u1165\u11ab\u110c\u1175","\u1107\u1165\u11ab\u1112\u1169","\u1107\u1165\u11af\u1100\u1173\u11b7","\u1107\u1165\u11af\u1105\u1166","\u1107\u1165\u11af\u110a\u1165","\u1107\u1165\u11b7\u110b\u1171","\u1107\u1165\u11b7\u110b\u1175\u11ab","\u1107\u1165\u11b7\u110c\u116c","\u1107\u1165\u11b8\u1105\u1172\u11af","\u1107\u1165\u11b8\u110b\u116f\u11ab","\u1107\u1165\u11b8\u110c\u1165\u11a8","\u1107\u1165\u11b8\u110e\u1175\u11a8","\u1107\u1166\u110b\u1175\u110c\u1175\u11bc","\u1107\u1166\u11af\u1110\u1173","\u1107\u1167\u11ab\u1100\u1167\u11bc","\u1107\u1167\u11ab\u1103\u1169\u11bc","\u1107\u1167\u11ab\u1106\u1167\u11bc","\u1107\u1167\u11ab\u1109\u1175\u11ab","\u1107\u1167\u11ab\u1112\u1169\u1109\u1161","\u1107\u1167\u11ab\u1112\u116a","\u1107\u1167\u11af\u1103\u1169","\u1107\u1167\u11af\u1106\u1167\u11bc","\u1107\u1167\u11af\u110b\u1175\u11af","\u1107\u1167\u11bc\u1109\u1175\u11af","\u1107\u1167\u11bc\u110b\u1161\u1105\u1175","\u1107\u1167\u11bc\u110b\u116f\u11ab","\u1107\u1169\u1100\u116a\u11ab","\u1107\u1169\u1102\u1165\u1109\u1173","\u1107\u1169\u1105\u1161\u1109\u1162\u11a8","\u1107\u1169\u1105\u1161\u11b7","\u1107\u1169\u1105\u1173\u11b7","\u1107\u1169\u1109\u1161\u11bc","\u1107\u1169\u110b\u1161\u11ab","\u1107\u1169\u110c\u1161\u1100\u1175","\u1107\u1169\u110c\u1161\u11bc","\u1107\u1169\u110c\u1165\u11ab","\u1107\u1169\u110c\u1169\u11ab","\u1107\u1169\u1110\u1169\u11bc","\u1107\u1169\u1111\u1167\u11ab\u110c\u1165\u11a8","\u1107\u1169\u1112\u1165\u11b7","\u1107\u1169\u11a8\u1103\u1169","\u1107\u1169\u11a8\u1109\u1161","\u1107\u1169\u11a8\u1109\u116e\u11bc\u110b\u1161","\u1107\u1169\u11a8\u1109\u1173\u11b8","\u1107\u1169\u11a9\u110b\u1173\u11b7","\u1107\u1169\u11ab\u1100\u1167\u11a8\u110c\u1165\u11a8","\u1107\u1169\u11ab\u1105\u1162","\u1107\u1169\u11ab\u1107\u116e","\u1107\u1169\u11ab\u1109\u1161","\u1107\u1169\u11ab\u1109\u1165\u11bc","\u1107\u1169\u11ab\u110b\u1175\u11ab","\u1107\u1169\u11ab\u110c\u1175\u11af","\u1107\u1169\u11af\u1111\u1166\u11ab","\u1107\u1169\u11bc\u1109\u1161","\u1107\u1169\u11bc\u110c\u1175","\u1107\u1169\u11bc\u1110\u116e","\u1107\u116e\u1100\u1173\u11ab","\u1107\u116e\u1101\u1173\u1105\u1165\u110b\u116e\u11b7","\u1107\u116e\u1103\u1161\u11b7","\u1107\u116e\u1103\u1169\u11bc\u1109\u1161\u11ab","\u1107\u116e\u1106\u116e\u11ab","\u1107\u116e\u1107\u116e\u11ab","\u1107\u116e\u1109\u1161\u11ab","\u1107\u116e\u1109\u1161\u11bc","\u1107\u116e\u110b\u1165\u11bf","\u1107\u116e\u110b\u1175\u11ab","\u1107\u116e\u110c\u1161\u11a8\u110b\u116d\u11bc","\u1107\u116e\u110c\u1161\u11bc","\u1107\u116e\u110c\u1165\u11bc","\u1107\u116e\u110c\u1169\u11a8","\u1107\u116e\u110c\u1175\u1105\u1165\u11ab\u1112\u1175","\u1107\u116e\u110e\u1175\u11ab","\u1107\u116e\u1110\u1161\u11a8","\u1107\u116e\u1111\u116e\u11b7","\u1107\u116e\u1112\u116c\u110c\u1161\u11bc","\u1107\u116e\u11a8\u1107\u116e","\u1107\u116e\u11a8\u1112\u1161\u11ab","\u1107\u116e\u11ab\u1102\u1169","\u1107\u116e\u11ab\u1105\u1163\u11bc","\u1107\u116e\u11ab\u1105\u1175","\u1107\u116e\u11ab\u1106\u1167\u11bc","\u1107\u116e\u11ab\u1109\u1165\u11a8","\u1107\u116e\u11ab\u110b\u1163","\u1107\u116e\u11ab\u110b\u1171\u1100\u1175","\u1107\u116e\u11ab\u1111\u1175\u11af","\u1107\u116e\u11ab\u1112\u1169\u11bc\u1109\u1162\u11a8","\u1107\u116e\u11af\u1100\u1169\u1100\u1175","\u1107\u116e\u11af\u1100\u116a","\u1107\u116e\u11af\u1100\u116d","\u1107\u116e\u11af\u1101\u1169\u11be","\u1107\u116e\u11af\u1106\u1161\u11ab","\u1107\u116e\u11af\u1107\u1165\u11b8","\u1107\u116e\u11af\u1107\u1175\u11be","\u1107\u116e\u11af\u110b\u1161\u11ab","\u1107\u116e\u11af\u110b\u1175\u110b\u1175\u11a8","\u1107\u116e\u11af\u1112\u1162\u11bc","\u1107\u1173\u1105\u1162\u11ab\u1103\u1173","\u1107\u1175\u1100\u1173\u11a8","\u1107\u1175\u1102\u1161\u11ab","\u1107\u1175\u1102\u1175\u11af","\u1107\u1175\u1103\u116e\u11af\u1100\u1175","\u1107\u1175\u1103\u1175\u110b\u1169","\u1107\u1175\u1105\u1169\u1109\u1169","\u1107\u1175\u1106\u1161\u11ab","\u1107\u1175\u1106\u1167\u11bc","\u1107\u1175\u1106\u1175\u11af","\u1107\u1175\u1107\u1161\u1105\u1161\u11b7","\u1107\u1175\u1107\u1175\u11b7\u1107\u1161\u11b8","\u1107\u1175\u1109\u1161\u11bc","\u1107\u1175\u110b\u116d\u11bc","\u1107\u1175\u110b\u1172\u11af","\u1107\u1175\u110c\u116e\u11bc","\u1107\u1175\u1110\u1161\u1106\u1175\u11ab","\u1107\u1175\u1111\u1161\u11ab","\u1107\u1175\u11af\u1103\u1175\u11bc","\u1107\u1175\u11ba\u1106\u116e\u11af","\u1107\u1175\u11ba\u1107\u1161\u11bc\u110b\u116e\u11af","\u1107\u1175\u11ba\u110c\u116e\u11af\u1100\u1175","\u1107\u1175\u11be\u1101\u1161\u11af","\u1108\u1161\u11af\u1100\u1161\u11ab\u1109\u1162\u11a8","\u1108\u1161\u11af\u1105\u1162","\u1108\u1161\u11af\u1105\u1175","\u1109\u1161\u1100\u1165\u11ab","\u1109\u1161\u1100\u1168\u110c\u1165\u11af","\u1109\u1161\u1102\u1161\u110b\u1175","\u1109\u1161\u1102\u1163\u11bc","\u1109\u1161\u1105\u1161\u11b7","\u1109\u1161\u1105\u1161\u11bc","\u1109\u1161\u1105\u1175\u11b8","\u1109\u1161\u1106\u1169\u1102\u1175\u11b7","\u1109\u1161\u1106\u116e\u11af","\u1109\u1161\u1107\u1161\u11bc","\u1109\u1161\u1109\u1161\u11bc","\u1109\u1161\u1109\u1162\u11bc\u1112\u116a\u11af","\u1109\u1161\u1109\u1165\u11af","\u1109\u1161\u1109\u1173\u11b7","\u1109\u1161\u1109\u1175\u11af","\u1109\u1161\u110b\u1165\u11b8","\u1109\u1161\u110b\u116d\u11bc","\u1109\u1161\u110b\u116f\u11af","\u1109\u1161\u110c\u1161\u11bc","\u1109\u1161\u110c\u1165\u11ab","\u1109\u1161\u110c\u1175\u11ab","\u1109\u1161\u110e\u1169\u11ab","\u1109\u1161\u110e\u116e\u11ab\u1100\u1175","\u1109\u1161\u1110\u1161\u11bc","\u1109\u1161\u1110\u116e\u1105\u1175","\u1109\u1161\u1112\u1173\u11af","\u1109\u1161\u11ab\u1100\u1175\u11af","\u1109\u1161\u11ab\u1107\u116e\u110b\u1175\u11ab\u1100\u116a","\u1109\u1161\u11ab\u110b\u1165\u11b8","\u1109\u1161\u11ab\u110e\u1162\u11a8","\u1109\u1161\u11af\u1105\u1175\u11b7","\u1109\u1161\u11af\u110b\u1175\u11ab","\u1109\u1161\u11af\u110d\u1161\u11a8","\u1109\u1161\u11b7\u1100\u1168\u1110\u1161\u11bc","\u1109\u1161\u11b7\u1100\u116e\u11a8","\u1109\u1161\u11b7\u1109\u1175\u11b8","\u1109\u1161\u11b7\u110b\u116f\u11af","\u1109\u1161\u11b7\u110e\u1169\u11ab","\u1109\u1161\u11bc\u1100\u116a\u11ab","\u1109\u1161\u11bc\u1100\u1173\u11b7","\u1109\u1161\u11bc\u1103\u1162","\u1109\u1161\u11bc\u1105\u1172","\u1109\u1161\u11bc\u1107\u1161\u11ab\u1100\u1175","\u1109\u1161\u11bc\u1109\u1161\u11bc","\u1109\u1161\u11bc\u1109\u1175\u11a8","\u1109\u1161\u11bc\u110b\u1165\u11b8","\u1109\u1161\u11bc\u110b\u1175\u11ab","\u1109\u1161\u11bc\u110c\u1161","\u1109\u1161\u11bc\u110c\u1165\u11b7","\u1109\u1161\u11bc\u110e\u1165","\u1109\u1161\u11bc\u110e\u116e","\u1109\u1161\u11bc\u1110\u1162","\u1109\u1161\u11bc\u1111\u116d","\u1109\u1161\u11bc\u1111\u116e\u11b7","\u1109\u1161\u11bc\u1112\u116a\u11bc","\u1109\u1162\u1107\u1167\u11a8","\u1109\u1162\u11a8\u1101\u1161\u11af","\u1109\u1162\u11a8\u110b\u1167\u11ab\u1111\u1175\u11af","\u1109\u1162\u11bc\u1100\u1161\u11a8","\u1109\u1162\u11bc\u1106\u1167\u11bc","\u1109\u1162\u11bc\u1106\u116e\u11af","\u1109\u1162\u11bc\u1107\u1161\u11bc\u1109\u1169\u11bc","\u1109\u1162\u11bc\u1109\u1161\u11ab","\u1109\u1162\u11bc\u1109\u1165\u11ab","\u1109\u1162\u11bc\u1109\u1175\u11ab","\u1109\u1162\u11bc\u110b\u1175\u11af","\u1109\u1162\u11bc\u1112\u116a\u11af","\u1109\u1165\u1105\u1161\u11b8","\u1109\u1165\u1105\u1173\u11ab","\u1109\u1165\u1106\u1167\u11bc","\u1109\u1165\u1106\u1175\u11ab","\u1109\u1165\u1107\u1175\u1109\u1173","\u1109\u1165\u110b\u1163\u11bc","\u1109\u1165\u110b\u116e\u11af","\u1109\u1165\u110c\u1165\u11a8","\u1109\u1165\u110c\u1165\u11b7","\u1109\u1165\u110d\u1169\u11a8","\u1109\u1165\u110f\u1173\u11af","\u1109\u1165\u11a8\u1109\u1161","\u1109\u1165\u11a8\u110b\u1172","\u1109\u1165\u11ab\u1100\u1165","\u1109\u1165\u11ab\u1106\u116e\u11af","\u1109\u1165\u11ab\u1107\u1162","\u1109\u1165\u11ab\u1109\u1162\u11bc","\u1109\u1165\u11ab\u1109\u116e","\u1109\u1165\u11ab\u110b\u116f\u11ab","\u1109\u1165\u11ab\u110c\u1161\u11bc","\u1109\u1165\u11ab\u110c\u1165\u11ab","\u1109\u1165\u11ab\u1110\u1162\u11a8","\u1109\u1165\u11ab\u1111\u116e\u11bc\u1100\u1175","\u1109\u1165\u11af\u1100\u1165\u110c\u1175","\u1109\u1165\u11af\u1102\u1161\u11af","\u1109\u1165\u11af\u1105\u1165\u11bc\u1110\u1161\u11bc","\u1109\u1165\u11af\u1106\u1167\u11bc","\u1109\u1165\u11af\u1106\u116e\u11ab","\u1109\u1165\u11af\u1109\u1161","\u1109\u1165\u11af\u110b\u1161\u11a8\u1109\u1161\u11ab","\u1109\u1165\u11af\u110e\u1175","\u1109\u1165\u11af\u1110\u1161\u11bc","\u1109\u1165\u11b8\u110a\u1175","\u1109\u1165\u11bc\u1100\u1169\u11bc","\u1109\u1165\u11bc\u1103\u1161\u11bc","\u1109\u1165\u11bc\u1106\u1167\u11bc","\u1109\u1165\u11bc\u1107\u1167\u11af","\u1109\u1165\u11bc\u110b\u1175\u11ab","\u1109\u1165\u11bc\u110c\u1161\u11bc","\u1109\u1165\u11bc\u110c\u1165\u11a8","\u1109\u1165\u11bc\u110c\u1175\u11af","\u1109\u1165\u11bc\u1112\u1161\u11b7","\u1109\u1166\u1100\u1173\u11b7","\u1109\u1166\u1106\u1175\u1102\u1161","\u1109\u1166\u1109\u1161\u11bc","\u1109\u1166\u110b\u116f\u11af","\u1109\u1166\u110c\u1169\u11bc\u1103\u1162\u110b\u116a\u11bc","\u1109\u1166\u1110\u1161\u11a8","\u1109\u1166\u11ab\u1110\u1165","\u1109\u1166\u11ab\u1110\u1175\u1106\u1175\u1110\u1165","\u1109\u1166\u11ba\u110d\u1162","\u1109\u1169\u1100\u1172\u1106\u1169","\u1109\u1169\u1100\u1173\u11a8\u110c\u1165\u11a8","\u1109\u1169\u1100\u1173\u11b7","\u1109\u1169\u1102\u1161\u1100\u1175","\u1109\u1169\u1102\u1167\u11ab","\u1109\u1169\u1103\u1173\u11a8","\u1109\u1169\u1106\u1161\u11bc","\u1109\u1169\u1106\u116e\u11ab","\u1109\u1169\u1109\u1165\u11af","\u1109\u1169\u1109\u1169\u11a8","\u1109\u1169\u110b\u1161\u1100\u116a","\u1109\u1169\u110b\u116d\u11bc","\u1109\u1169\u110b\u116f\u11ab","\u1109\u1169\u110b\u1173\u11b7","\u1109\u1169\u110c\u116e\u11bc\u1112\u1175","\u1109\u1169\u110c\u1175\u1111\u116e\u11b7","\u1109\u1169\u110c\u1175\u11af","\u1109\u1169\u1111\u116e\u11bc","\u1109\u1169\u1112\u1167\u11bc","\u1109\u1169\u11a8\u1103\u1161\u11b7","\u1109\u1169\u11a8\u1103\u1169","\u1109\u1169\u11a8\u110b\u1169\u11ba","\u1109\u1169\u11ab\u1100\u1161\u1105\u1161\u11a8","\u1109\u1169\u11ab\u1100\u1175\u11af","\u1109\u1169\u11ab\u1102\u1167","\u1109\u1169\u11ab\u1102\u1175\u11b7","\u1109\u1169\u11ab\u1103\u1173\u11bc","\u1109\u1169\u11ab\u1106\u1169\u11a8","\u1109\u1169\u11ab\u1108\u1167\u11a8","\u1109\u1169\u11ab\u1109\u1175\u11af","\u1109\u1169\u11ab\u110c\u1175\u11af","\u1109\u1169\u11ab\u1110\u1169\u11b8","\u1109\u1169\u11ab\u1112\u1162","\u1109\u1169\u11af\u110c\u1175\u11a8\u1112\u1175","\u1109\u1169\u11b7\u110a\u1175","\u1109\u1169\u11bc\u110b\u1161\u110c\u1175","\u1109\u1169\u11bc\u110b\u1175","\u1109\u1169\u11bc\u1111\u1167\u11ab","\u1109\u116c\u1100\u1169\u1100\u1175","\u1109\u116d\u1111\u1175\u11bc","\u1109\u116e\u1100\u1165\u11ab","\u1109\u116e\u1102\u1167\u11ab","\u1109\u116e\u1103\u1161\u11ab","\u1109\u116e\u1103\u1169\u11ba\u1106\u116e\u11af","\u1109\u116e\u1103\u1169\u11bc\u110c\u1165\u11a8","\u1109\u116e\u1106\u1167\u11ab","\u1109\u116e\u1106\u1167\u11bc","\u1109\u116e\u1107\u1161\u11a8","\u1109\u116e\u1109\u1161\u11bc","\u1109\u116e\u1109\u1165\u11a8","\u1109\u116e\u1109\u116e\u11af","\u1109\u116e\u1109\u1175\u1105\u1169","\u1109\u116e\u110b\u1165\u11b8","\u1109\u116e\u110b\u1167\u11b7","\u1109\u116e\u110b\u1167\u11bc","\u1109\u116e\u110b\u1175\u11b8","\u1109\u116e\u110c\u116e\u11ab","\u1109\u116e\u110c\u1175\u11b8","\u1109\u116e\u110e\u116e\u11af","\u1109\u116e\u110f\u1165\u11ba","\u1109\u116e\u1111\u1175\u11af","\u1109\u116e\u1112\u1161\u11a8","\u1109\u116e\u1112\u1165\u11b7\u1109\u1162\u11bc","\u1109\u116e\u1112\u116a\u1100\u1175","\u1109\u116e\u11a8\u1102\u1167","\u1109\u116e\u11a8\u1109\u1169","\u1109\u116e\u11a8\u110c\u1166","\u1109\u116e\u11ab\u1100\u1161\u11ab","\u1109\u116e\u11ab\u1109\u1165","\u1109\u116e\u11ab\u1109\u116e","\u1109\u116e\u11ab\u1109\u1175\u11a8\u1100\u1161\u11ab","\u1109\u116e\u11ab\u110b\u1171","\u1109\u116e\u11ae\u1100\u1161\u1105\u1161\u11a8","\u1109\u116e\u11af\u1107\u1167\u11bc","\u1109\u116e\u11af\u110c\u1175\u11b8","\u1109\u116e\u11ba\u110c\u1161","\u1109\u1173\u1102\u1175\u11b7","\u1109\u1173\u1106\u116e\u11af","\u1109\u1173\u1109\u1173\u1105\u1169","\u1109\u1173\u1109\u1173\u11bc","\u1109\u1173\u110b\u1170\u1110\u1165","\u1109\u1173\u110b\u1171\u110e\u1175","\u1109\u1173\u110f\u1166\u110b\u1175\u1110\u1173","\u1109\u1173\u1110\u1172\u1103\u1175\u110b\u1169","\u1109\u1173\u1110\u1173\u1105\u1166\u1109\u1173","\u1109\u1173\u1111\u1169\u110e\u1173","\u1109\u1173\u11af\u110d\u1165\u11a8","\u1109\u1173\u11af\u1111\u1173\u11b7","\u1109\u1173\u11b8\u1100\u116a\u11ab","\u1109\u1173\u11b8\u1100\u1175","\u1109\u1173\u11bc\u1100\u1162\u11a8","\u1109\u1173\u11bc\u1105\u1175","\u1109\u1173\u11bc\u1107\u116e","\u1109\u1173\u11bc\u110b\u116d\u11bc\u110e\u1161","\u1109\u1173\u11bc\u110c\u1175\u11ab","\u1109\u1175\u1100\u1161\u11a8","\u1109\u1175\u1100\u1161\u11ab","\u1109\u1175\u1100\u1169\u11af","\u1109\u1175\u1100\u1173\u11b7\u110e\u1175","\u1109\u1175\u1102\u1161\u1105\u1175\u110b\u1169","\u1109\u1175\u1103\u1162\u11a8","\u1109\u1175\u1105\u1175\u110c\u1173","\u1109\u1175\u1106\u1166\u11ab\u1110\u1173","\u1109\u1175\u1106\u1175\u11ab","\u1109\u1175\u1107\u116e\u1106\u1169","\u1109\u1175\u1109\u1165\u11ab","\u1109\u1175\u1109\u1165\u11af","\u1109\u1175\u1109\u1173\u1110\u1166\u11b7","\u1109\u1175\u110b\u1161\u1107\u1165\u110c\u1175","\u1109\u1175\u110b\u1165\u1106\u1165\u1102\u1175","\u1109\u1175\u110b\u116f\u11af","\u1109\u1175\u110b\u1175\u11ab","\u1109\u1175\u110b\u1175\u11af","\u1109\u1175\u110c\u1161\u11a8","\u1109\u1175\u110c\u1161\u11bc","\u1109\u1175\u110c\u1165\u11af","\u1109\u1175\u110c\u1165\u11b7","\u1109\u1175\u110c\u116e\u11bc","\u1109\u1175\u110c\u1173\u11ab","\u1109\u1175\u110c\u1175\u11b8","\u1109\u1175\u110e\u1165\u11bc","\u1109\u1175\u1112\u1161\u11b8","\u1109\u1175\u1112\u1165\u11b7","\u1109\u1175\u11a8\u1100\u116e","\u1109\u1175\u11a8\u1100\u1175","\u1109\u1175\u11a8\u1103\u1161\u11bc","\u1109\u1175\u11a8\u1105\u1163\u11bc","\u1109\u1175\u11a8\u1105\u116d\u1111\u116e\u11b7","\u1109\u1175\u11a8\u1106\u116e\u11af","\u1109\u1175\u11a8\u1108\u1161\u11bc","\u1109\u1175\u11a8\u1109\u1161","\u1109\u1175\u11a8\u1109\u1162\u11bc\u1112\u116a\u11af","\u1109\u1175\u11a8\u110e\u1169","\u1109\u1175\u11a8\u1110\u1161\u11a8","\u1109\u1175\u11a8\u1111\u116e\u11b7","\u1109\u1175\u11ab\u1100\u1169","\u1109\u1175\u11ab\u1100\u1172","\u1109\u1175\u11ab\u1102\u1167\u11b7","\u1109\u1175\u11ab\u1106\u116e\u11ab","\u1109\u1175\u11ab\u1107\u1161\u11af","\u1109\u1175\u11ab\u1107\u1175","\u1109\u1175\u11ab\u1109\u1161","\u1109\u1175\u11ab\u1109\u1166","\u1109\u1175\u11ab\u110b\u116d\u11bc","\u1109\u1175\u11ab\u110c\u1166\u1111\u116e\u11b7","\u1109\u1175\u11ab\u110e\u1165\u11bc","\u1109\u1175\u11ab\u110e\u1166","\u1109\u1175\u11ab\u1112\u116a","\u1109\u1175\u11af\u1100\u1161\u11b7","\u1109\u1175\u11af\u1102\u1162","\u1109\u1175\u11af\u1105\u1167\u11a8","\u1109\u1175\u11af\u1105\u1168","\u1109\u1175\u11af\u1106\u1161\u11bc","\u1109\u1175\u11af\u1109\u116e","\u1109\u1175\u11af\u1109\u1173\u11b8","\u1109\u1175\u11af\u1109\u1175","\u1109\u1175\u11af\u110c\u1161\u11bc","\u1109\u1175\u11af\u110c\u1165\u11bc","\u1109\u1175\u11af\u110c\u1175\u11af\u110c\u1165\u11a8","\u1109\u1175\u11af\u110e\u1165\u11ab","\u1109\u1175\u11af\u110e\u1166","\u1109\u1175\u11af\u110f\u1165\u11ba","\u1109\u1175\u11af\u1110\u1162","\u1109\u1175\u11af\u1111\u1162","\u1109\u1175\u11af\u1112\u1165\u11b7","\u1109\u1175\u11af\u1112\u1167\u11ab","\u1109\u1175\u11b7\u1105\u1175","\u1109\u1175\u11b7\u1107\u116e\u1105\u1173\u11b7","\u1109\u1175\u11b7\u1109\u1161","\u1109\u1175\u11b7\u110c\u1161\u11bc","\u1109\u1175\u11b7\u110c\u1165\u11bc","\u1109\u1175\u11b7\u1111\u1161\u11ab","\u110a\u1161\u11bc\u1103\u116e\u11bc\u110b\u1175","\u110a\u1175\u1105\u1173\u11b7","\u110a\u1175\u110b\u1161\u11ba","\u110b\u1161\u1100\u1161\u110a\u1175","\u110b\u1161\u1102\u1161\u110b\u116e\u11ab\u1109\u1165","\u110b\u1161\u1103\u1173\u1102\u1175\u11b7","\u110b\u1161\u1103\u1173\u11af","\u110b\u1161\u1109\u1171\u110b\u116e\u11b7","\u110b\u1161\u1109\u1173\u1111\u1161\u11af\u1110\u1173","\u110b\u1161\u1109\u1175\u110b\u1161","\u110b\u1161\u110b\u116e\u11af\u1105\u1165","\u110b\u1161\u110c\u1165\u110a\u1175","\u110b\u1161\u110c\u116e\u11b7\u1106\u1161","\u110b\u1161\u110c\u1175\u11a8","\u110b\u1161\u110e\u1175\u11b7","\u110b\u1161\u1111\u1161\u1110\u1173","\u110b\u1161\u1111\u1173\u1105\u1175\u110f\u1161","\u110b\u1161\u1111\u1173\u11b7","\u110b\u1161\u1112\u1169\u11b8","\u110b\u1161\u1112\u1173\u11ab","\u110b\u1161\u11a8\u1100\u1175","\u110b\u1161\u11a8\u1106\u1169\u11bc","\u110b\u1161\u11a8\u1109\u116e","\u110b\u1161\u11ab\u1100\u1162","\u110b\u1161\u11ab\u1100\u1167\u11bc","\u110b\u1161\u11ab\u1100\u116a","\u110b\u1161\u11ab\u1102\u1162","\u110b\u1161\u11ab\u1102\u1167\u11bc","\u110b\u1161\u11ab\u1103\u1169\u11bc","\u110b\u1161\u11ab\u1107\u1161\u11bc","\u110b\u1161\u11ab\u1107\u116e","\u110b\u1161\u11ab\u110c\u116e","\u110b\u1161\u11af\u1105\u116e\u1106\u1175\u1102\u1172\u11b7","\u110b\u1161\u11af\u110f\u1169\u110b\u1169\u11af","\u110b\u1161\u11b7\u1109\u1175","\u110b\u1161\u11b7\u110f\u1165\u11ba","\u110b\u1161\u11b8\u1105\u1167\u11a8","\u110b\u1161\u11c1\u1102\u1161\u11af","\u110b\u1161\u11c1\u1106\u116e\u11ab","\u110b\u1162\u110b\u1175\u11ab","\u110b\u1162\u110c\u1165\u11bc","\u110b\u1162\u11a8\u1109\u116e","\u110b\u1162\u11af\u1107\u1165\u11b7","\u110b\u1163\u1100\u1161\u11ab","\u110b\u1163\u1103\u1161\u11ab","\u110b\u1163\u110b\u1169\u11bc","\u110b\u1163\u11a8\u1100\u1161\u11ab","\u110b\u1163\u11a8\u1100\u116e\u11a8","\u110b\u1163\u11a8\u1109\u1169\u11a8","\u110b\u1163\u11a8\u1109\u116e","\u110b\u1163\u11a8\u110c\u1165\u11b7","\u110b\u1163\u11a8\u1111\u116e\u11b7","\u110b\u1163\u11a8\u1112\u1169\u11ab\u1102\u1167","\u110b\u1163\u11bc\u1102\u1167\u11b7","\u110b\u1163\u11bc\u1105\u1167\u11a8","\u110b\u1163\u11bc\u1106\u1161\u11af","\u110b\u1163\u11bc\u1107\u1162\u110e\u116e","\u110b\u1163\u11bc\u110c\u116e","\u110b\u1163\u11bc\u1111\u1161","\u110b\u1165\u1103\u116e\u11b7","\u110b\u1165\u1105\u1167\u110b\u116e\u11b7","\u110b\u1165\u1105\u1173\u11ab","\u110b\u1165\u110c\u1166\u11ba\u1107\u1161\u11b7","\u110b\u1165\u110d\u1162\u11bb\u1103\u1173\u11ab","\u110b\u1165\u110d\u1165\u1103\u1161\u1100\u1161","\u110b\u1165\u110d\u1165\u11ab\u110c\u1175","\u110b\u1165\u11ab\u1102\u1175","\u110b\u1165\u11ab\u1103\u1165\u11a8","\u110b\u1165\u11ab\u1105\u1169\u11ab","\u110b\u1165\u11ab\u110b\u1165","\u110b\u1165\u11af\u1100\u116e\u11af","\u110b\u1165\u11af\u1105\u1173\u11ab","\u110b\u1165\u11af\u110b\u1173\u11b7","\u110b\u1165\u11af\u1111\u1175\u11ba","\u110b\u1165\u11b7\u1106\u1161","\u110b\u1165\u11b8\u1106\u116e","\u110b\u1165\u11b8\u110c\u1169\u11bc","\u110b\u1165\u11b8\u110e\u1166","\u110b\u1165\u11bc\u1103\u1165\u11bc\u110b\u1175","\u110b\u1165\u11bc\u1106\u1161\u11bc","\u110b\u1165\u11bc\u1110\u1165\u1105\u1175","\u110b\u1165\u11bd\u1100\u1173\u110c\u1166","\u110b\u1166\u1102\u1165\u110c\u1175","\u110b\u1166\u110b\u1165\u110f\u1165\u11ab","\u110b\u1166\u11ab\u110c\u1175\u11ab","\u110b\u1167\u1100\u1165\u11ab","\u110b\u1167\u1100\u1169\u1109\u1162\u11bc","\u110b\u1167\u1100\u116a\u11ab","\u110b\u1167\u1100\u116e\u11ab","\u110b\u1167\u1100\u116f\u11ab","\u110b\u1167\u1103\u1162\u1109\u1162\u11bc","\u110b\u1167\u1103\u1165\u11b2","\u110b\u1167\u1103\u1169\u11bc\u1109\u1162\u11bc","\u110b\u1167\u1103\u1173\u11ab","\u110b\u1167\u1105\u1169\u11ab","\u110b\u1167\u1105\u1173\u11b7","\u110b\u1167\u1109\u1165\u11ba","\u110b\u1167\u1109\u1165\u11bc","\u110b\u1167\u110b\u116a\u11bc","\u110b\u1167\u110b\u1175\u11ab","\u110b\u1167\u110c\u1165\u11ab\u1112\u1175","\u110b\u1167\u110c\u1175\u11a8\u110b\u116f\u11ab","\u110b\u1167\u1112\u1161\u11a8\u1109\u1162\u11bc","\u110b\u1167\u1112\u1162\u11bc","\u110b\u1167\u11a8\u1109\u1161","\u110b\u1167\u11a8\u1109\u1175","\u110b\u1167\u11a8\u1112\u1161\u11af","\u110b\u1167\u11ab\u1100\u1167\u11af","\u110b\u1167\u11ab\u1100\u116e","\u110b\u1167\u11ab\u1100\u1173\u11a8","\u110b\u1167\u11ab\u1100\u1175","\u110b\u1167\u11ab\u1105\u1161\u11a8","\u110b\u1167\u11ab\u1109\u1165\u11af","\u110b\u1167\u11ab\u1109\u1166","\u110b\u1167\u11ab\u1109\u1169\u11a8","\u110b\u1167\u11ab\u1109\u1173\u11b8","\u110b\u1167\u11ab\u110b\u1162","\u110b\u1167\u11ab\u110b\u1168\u110b\u1175\u11ab","\u110b\u1167\u11ab\u110b\u1175\u11ab","\u110b\u1167\u11ab\u110c\u1161\u11bc","\u110b\u1167\u11ab\u110c\u116e","\u110b\u1167\u11ab\u110e\u116e\u11af","\u110b\u1167\u11ab\u1111\u1175\u11af","\u110b\u1167\u11ab\u1112\u1161\u11b8","\u110b\u1167\u11ab\u1112\u1172","\u110b\u1167\u11af\u1100\u1175","\u110b\u1167\u11af\u1106\u1162","\u110b\u1167\u11af\u1109\u116c","\u110b\u1167\u11af\u1109\u1175\u11b7\u1112\u1175","\u110b\u1167\u11af\u110c\u1165\u11bc","\u110b\u1167\u11af\u110e\u1161","\u110b\u1167\u11af\u1112\u1173\u11af","\u110b\u1167\u11b7\u1105\u1167","\u110b\u1167\u11b8\u1109\u1165","\u110b\u1167\u11bc\u1100\u116e\u11a8","\u110b\u1167\u11bc\u1102\u1161\u11b7","\u110b\u1167\u11bc\u1109\u1161\u11bc","\u110b\u1167\u11bc\u110b\u1163\u11bc","\u110b\u1167\u11bc\u110b\u1167\u11a8","\u110b\u1167\u11bc\u110b\u116e\u11bc","\u110b\u1167\u11bc\u110b\u116f\u11ab\u1112\u1175","\u110b\u1167\u11bc\u1112\u1161","\u110b\u1167\u11bc\u1112\u1163\u11bc","\u110b\u1167\u11bc\u1112\u1169\u11ab","\u110b\u1167\u11bc\u1112\u116a","\u110b\u1167\u11c1\u1100\u116e\u1105\u1175","\u110b\u1167\u11c1\u1107\u1161\u11bc","\u110b\u1167\u11c1\u110c\u1175\u11b8","\u110b\u1168\u1100\u1161\u11b7","\u110b\u1168\u1100\u1173\u11b7","\u110b\u1168\u1107\u1161\u11bc","\u110b\u1168\u1109\u1161\u11ab","\u110b\u1168\u1109\u1161\u11bc","\u110b\u1168\u1109\u1165\u11ab","\u110b\u1168\u1109\u116e\u11af","\u110b\u1168\u1109\u1173\u11b8","\u110b\u1168\u1109\u1175\u11a8\u110c\u1161\u11bc","\u110b\u1168\u110b\u1163\u11a8","\u110b\u1168\u110c\u1165\u11ab","\u110b\u1168\u110c\u1165\u11af","\u110b\u1168\u110c\u1165\u11bc","\u110b\u1168\u110f\u1165\u11ab\u1103\u1162","\u110b\u1168\u11ba\u1102\u1161\u11af","\u110b\u1169\u1102\u1173\u11af","\u110b\u1169\u1105\u1161\u11a8","\u110b\u1169\u1105\u1162\u11ba\u1103\u1169\u11bc\u110b\u1161\u11ab","\u110b\u1169\u1105\u1166\u11ab\u110c\u1175","\u110b\u1169\u1105\u1169\u110c\u1175","\u110b\u1169\u1105\u1173\u11ab\u1107\u1161\u11af","\u110b\u1169\u1107\u1173\u11ab","\u110b\u1169\u1109\u1175\u11b8","\u110b\u1169\u110b\u1167\u11b7","\u110b\u1169\u110b\u116f\u11af","\u110b\u1169\u110c\u1165\u11ab","\u110b\u1169\u110c\u1175\u11a8","\u110b\u1169\u110c\u1175\u11bc\u110b\u1165","\u110b\u1169\u1111\u1166\u1105\u1161","\u110b\u1169\u1111\u1175\u1109\u1173\u1110\u1166\u11af","\u110b\u1169\u1112\u1175\u1105\u1167","\u110b\u1169\u11a8\u1109\u1161\u11bc","\u110b\u1169\u11a8\u1109\u116e\u1109\u116e","\u110b\u1169\u11ab\u1100\u1161\u11bd","\u110b\u1169\u11ab\u1105\u1161\u110b\u1175\u11ab","\u110b\u1169\u11ab\u1106\u1169\u11b7","\u110b\u1169\u11ab\u110c\u1169\u11bc\u110b\u1175\u11af","\u110b\u1169\u11ab\u1110\u1169\u11bc","\u110b\u1169\u11af\u1100\u1161\u110b\u1173\u11af","\u110b\u1169\u11af\u1105\u1175\u11b7\u1111\u1175\u11a8","\u110b\u1169\u11af\u1112\u1162","\u110b\u1169\u11ba\u110e\u1161\u1105\u1175\u11b7","\u110b\u116a\u110b\u1175\u1109\u1167\u110e\u1173","\u110b\u116a\u110b\u1175\u11ab","\u110b\u116a\u11ab\u1109\u1165\u11bc","\u110b\u116a\u11ab\u110c\u1165\u11ab","\u110b\u116a\u11bc\u1107\u1175","\u110b\u116a\u11bc\u110c\u1161","\u110b\u116b\u1102\u1163\u1112\u1161\u1106\u1167\u11ab","\u110b\u116b\u11ab\u110c\u1175","\u110b\u116c\u1100\u1161\u11ba\u110c\u1175\u11b8","\u110b\u116c\u1100\u116e\u11a8","\u110b\u116c\u1105\u1169\u110b\u116e\u11b7","\u110b\u116c\u1109\u1161\u11b7\u110e\u1169\u11ab","\u110b\u116c\u110e\u116e\u11af","\u110b\u116c\u110e\u1175\u11b7","\u110b\u116c\u1112\u1161\u11af\u1106\u1165\u1102\u1175","\u110b\u116c\u11ab\u1107\u1161\u11af","\u110b\u116c\u11ab\u1109\u1169\u11ab","\u110b\u116c\u11ab\u110d\u1169\u11a8","\u110b\u116d\u1100\u1173\u11b7","\u110b\u116d\u110b\u1175\u11af","\u110b\u116d\u110c\u1173\u11b7","\u110b\u116d\u110e\u1165\u11bc","\u110b\u116d\u11bc\u1100\u1175","\u110b\u116d\u11bc\u1109\u1165","\u110b\u116d\u11bc\u110b\u1165","\u110b\u116e\u1109\u1161\u11ab","\u110b\u116e\u1109\u1165\u11ab","\u110b\u116e\u1109\u1173\u11bc","\u110b\u116e\u110b\u1167\u11ab\u1112\u1175","\u110b\u116e\u110c\u1165\u11bc","\u110b\u116e\u110e\u1166\u1100\u116e\u11a8","\u110b\u116e\u1111\u1167\u11ab","\u110b\u116e\u11ab\u1103\u1169\u11bc","\u110b\u116e\u11ab\u1106\u1167\u11bc","\u110b\u116e\u11ab\u1107\u1161\u11ab","\u110b\u116e\u11ab\u110c\u1165\u11ab","\u110b\u116e\u11ab\u1112\u1162\u11bc","\u110b\u116e\u11af\u1109\u1161\u11ab","\u110b\u116e\u11af\u110b\u1173\u11b7","\u110b\u116e\u11b7\u110c\u1175\u11a8\u110b\u1175\u11b7","\u110b\u116e\u11ba\u110b\u1165\u1105\u1173\u11ab","\u110b\u116e\u11ba\u110b\u1173\u11b7","\u110b\u116f\u1102\u1161\u11a8","\u110b\u116f\u11ab\u1100\u1169","\u110b\u116f\u11ab\u1105\u1162","\u110b\u116f\u11ab\u1109\u1165","\u110b\u116f\u11ab\u1109\u116e\u11bc\u110b\u1175","\u110b\u116f\u11ab\u110b\u1175\u11ab","\u110b\u116f\u11ab\u110c\u1161\u11bc","\u110b\u116f\u11ab\u1111\u1175\u1109\u1173","\u110b\u116f\u11af\u1100\u1173\u11b8","\u110b\u116f\u11af\u1103\u1173\u110f\u1165\u11b8","\u110b\u116f\u11af\u1109\u1166","\u110b\u116f\u11af\u110b\u116d\u110b\u1175\u11af","\u110b\u1170\u110b\u1175\u1110\u1165","\u110b\u1171\u1107\u1161\u11ab","\u110b\u1171\u1107\u1165\u11b8","\u110b\u1171\u1109\u1165\u11bc","\u110b\u1171\u110b\u116f\u11ab","\u110b\u1171\u1112\u1165\u11b7","\u110b\u1171\u1112\u1167\u11b8","\u110b\u1171\u11ba\u1109\u1161\u1105\u1161\u11b7","\u110b\u1172\u1102\u1161\u11ab\u1112\u1175","\u110b\u1172\u1105\u1165\u11b8","\u110b\u1172\u1106\u1167\u11bc","\u110b\u1172\u1106\u116e\u11af","\u110b\u1172\u1109\u1161\u11ab","\u110b\u1172\u110c\u1165\u11a8","\u110b\u1172\u110e\u1175\u110b\u116f\u11ab","\u110b\u1172\u1112\u1161\u11a8","\u110b\u1172\u1112\u1162\u11bc","\u110b\u1172\u1112\u1167\u11bc","\u110b\u1172\u11a8\u1100\u116e\u11ab","\u110b\u1172\u11a8\u1109\u1161\u11bc","\u110b\u1172\u11a8\u1109\u1175\u11b8","\u110b\u1172\u11a8\u110e\u1166","\u110b\u1173\u11ab\u1112\u1162\u11bc","\u110b\u1173\u11b7\u1105\u1167\u11a8","\u110b\u1173\u11b7\u1105\u116d","\u110b\u1173\u11b7\u1107\u1161\u11ab","\u110b\u1173\u11b7\u1109\u1165\u11bc","\u110b\u1173\u11b7\u1109\u1175\u11a8","\u110b\u1173\u11b7\u110b\u1161\u11a8","\u110b\u1173\u11b7\u110c\u116e","\u110b\u1174\u1100\u1167\u11ab","\u110b\u1174\u1102\u1169\u11ab","\u110b\u1174\u1106\u116e\u11ab","\u110b\u1174\u1107\u1169\u11a8","\u110b\u1174\u1109\u1175\u11a8","\u110b\u1174\u1109\u1175\u11b7","\u110b\u1174\u110b\u116c\u1105\u1169","\u110b\u1174\u110b\u116d\u11a8","\u110b\u1174\u110b\u116f\u11ab","\u110b\u1174\u1112\u1161\u11a8","\u110b\u1175\u1100\u1165\u11ba","\u110b\u1175\u1100\u1169\u11ba","\u110b\u1175\u1102\u1167\u11b7","\u110b\u1175\u1102\u1169\u11b7","\u110b\u1175\u1103\u1161\u11af","\u110b\u1175\u1103\u1162\u1105\u1169","\u110b\u1175\u1103\u1169\u11bc","\u110b\u1175\u1105\u1165\u11c2\u1100\u1166","\u110b\u1175\u1105\u1167\u11a8\u1109\u1165","\u110b\u1175\u1105\u1169\u11ab\u110c\u1165\u11a8","\u110b\u1175\u1105\u1173\u11b7","\u110b\u1175\u1106\u1175\u11ab","\u110b\u1175\u1107\u1161\u11af\u1109\u1169","\u110b\u1175\u1107\u1167\u11af","\u110b\u1175\u1107\u116e\u11af","\u110b\u1175\u1108\u1161\u11af","\u110b\u1175\u1109\u1161\u11bc","\u110b\u1175\u1109\u1165\u11bc","\u110b\u1175\u1109\u1173\u11af","\u110b\u1175\u110b\u1163\u1100\u1175","\u110b\u1175\u110b\u116d\u11bc","\u110b\u1175\u110b\u116e\u11ba","\u110b\u1175\u110b\u116f\u11af","\u110b\u1175\u110b\u1173\u11a8\u1100\u1169","\u110b\u1175\u110b\u1175\u11a8","\u110b\u1175\u110c\u1165\u11ab","\u110b\u1175\u110c\u116e\u11bc","\u110b\u1175\u1110\u1173\u11ae\u1102\u1161\u11af","\u110b\u1175\u1110\u1173\u11af","\u110b\u1175\u1112\u1169\u11ab","\u110b\u1175\u11ab\u1100\u1161\u11ab","\u110b\u1175\u11ab\u1100\u1167\u11a8","\u110b\u1175\u11ab\u1100\u1169\u11bc","\u110b\u1175\u11ab\u1100\u116e","\u110b\u1175\u11ab\u1100\u1173\u11ab","\u110b\u1175\u11ab\u1100\u1175","\u110b\u1175\u11ab\u1103\u1169","\u110b\u1175\u11ab\u1105\u1172","\u110b\u1175\u11ab\u1106\u116e\u11af","\u110b\u1175\u11ab\u1109\u1162\u11bc","\u110b\u1175\u11ab\u1109\u116b","\u110b\u1175\u11ab\u110b\u1167\u11ab","\u110b\u1175\u11ab\u110b\u116f\u11ab","\u110b\u1175\u11ab\u110c\u1162","\u110b\u1175\u11ab\u110c\u1169\u11bc","\u110b\u1175\u11ab\u110e\u1165\u11ab","\u110b\u1175\u11ab\u110e\u1166","\u110b\u1175\u11ab\u1110\u1165\u1102\u1166\u11ba","\u110b\u1175\u11ab\u1112\u1161","\u110b\u1175\u11ab\u1112\u1167\u11bc","\u110b\u1175\u11af\u1100\u1169\u11b8","\u110b\u1175\u11af\u1100\u1175","\u110b\u1175\u11af\u1103\u1161\u11ab","\u110b\u1175\u11af\u1103\u1162","\u110b\u1175\u11af\u1103\u1173\u11bc","\u110b\u1175\u11af\u1107\u1161\u11ab","\u110b\u1175\u11af\u1107\u1169\u11ab","\u110b\u1175\u11af\u1107\u116e","\u110b\u1175\u11af\u1109\u1161\u11bc","\u110b\u1175\u11af\u1109\u1162\u11bc","\u110b\u1175\u11af\u1109\u1169\u11ab","\u110b\u1175\u11af\u110b\u116d\u110b\u1175\u11af","\u110b\u1175\u11af\u110b\u116f\u11af","\u110b\u1175\u11af\u110c\u1165\u11bc","\u110b\u1175\u11af\u110c\u1169\u11bc","\u110b\u1175\u11af\u110c\u116e\u110b\u1175\u11af","\u110b\u1175\u11af\u110d\u1175\u11a8","\u110b\u1175\u11af\u110e\u1166","\u110b\u1175\u11af\u110e\u1175","\u110b\u1175\u11af\u1112\u1162\u11bc","\u110b\u1175\u11af\u1112\u116c\u110b\u116d\u11bc","\u110b\u1175\u11b7\u1100\u1173\u11b7","\u110b\u1175\u11b7\u1106\u116e","\u110b\u1175\u11b8\u1103\u1162","\u110b\u1175\u11b8\u1105\u1167\u11a8","\u110b\u1175\u11b8\u1106\u1161\u11ba","\u110b\u1175\u11b8\u1109\u1161","\u110b\u1175\u11b8\u1109\u116e\u11af","\u110b\u1175\u11b8\u1109\u1175","\u110b\u1175\u11b8\u110b\u116f\u11ab","\u110b\u1175\u11b8\u110c\u1161\u11bc","\u110b\u1175\u11b8\u1112\u1161\u11a8","\u110c\u1161\u1100\u1161\u110b\u116d\u11bc","\u110c\u1161\u1100\u1167\u11a8","\u110c\u1161\u1100\u1173\u11a8","\u110c\u1161\u1103\u1169\u11bc","\u110c\u1161\u1105\u1161\u11bc","\u110c\u1161\u1107\u116e\u1109\u1175\u11b7","\u110c\u1161\u1109\u1175\u11a8","\u110c\u1161\u1109\u1175\u11ab","\u110c\u1161\u110b\u1167\u11ab","\u110c\u1161\u110b\u116f\u11ab","\u110c\u1161\u110b\u1172\u11af","\u110c\u1161\u110c\u1165\u11ab\u1100\u1165","\u110c\u1161\u110c\u1165\u11bc","\u110c\u1161\u110c\u1169\u11ab\u1109\u1175\u11b7","\u110c\u1161\u1111\u1161\u11ab","\u110c\u1161\u11a8\u1100\u1161","\u110c\u1161\u11a8\u1102\u1167\u11ab","\u110c\u1161\u11a8\u1109\u1165\u11bc","\u110c\u1161\u11a8\u110b\u1165\u11b8","\u110c\u1161\u11a8\u110b\u116d\u11bc","\u110c\u1161\u11a8\u110b\u1173\u11ab\u1104\u1161\u11af","\u110c\u1161\u11a8\u1111\u116e\u11b7","\u110c\u1161\u11ab\u1103\u1175","\u110c\u1161\u11ab\u1104\u1173\u11a8","\u110c\u1161\u11ab\u110e\u1175","\u110c\u1161\u11af\u1106\u1169\u11ba","\u110c\u1161\u11b7\u1101\u1161\u11ab","\u110c\u1161\u11b7\u1109\u116e\u1112\u1161\u11b7","\u110c\u1161\u11b7\u1109\u1175","\u110c\u1161\u11b7\u110b\u1169\u11ba","\u110c\u1161\u11b7\u110c\u1161\u1105\u1175","\u110c\u1161\u11b8\u110c\u1175","\u110c\u1161\u11bc\u1100\u116a\u11ab","\u110c\u1161\u11bc\u1100\u116e\u11ab","\u110c\u1161\u11bc\u1100\u1175\u1100\u1161\u11ab","\u110c\u1161\u11bc\u1105\u1162","\u110c\u1161\u11bc\u1105\u1168","\u110c\u1161\u11bc\u1105\u1173","\u110c\u1161\u11bc\u1106\u1161","\u110c\u1161\u11bc\u1106\u1167\u11ab","\u110c\u1161\u11bc\u1106\u1169","\u110c\u1161\u11bc\u1106\u1175","\u110c\u1161\u11bc\u1107\u1175","\u110c\u1161\u11bc\u1109\u1161","\u110c\u1161\u11bc\u1109\u1169","\u110c\u1161\u11bc\u1109\u1175\u11a8","\u110c\u1161\u11bc\u110b\u1162\u110b\u1175\u11ab","\u110c\u1161\u11bc\u110b\u1175\u11ab","\u110c\u1161\u11bc\u110c\u1165\u11b7","\u110c\u1161\u11bc\u110e\u1161","\u110c\u1161\u11bc\u1112\u1161\u11a8\u1100\u1173\u11b7","\u110c\u1162\u1102\u1173\u11bc","\u110c\u1162\u1108\u1161\u11af\u1105\u1175","\u110c\u1162\u1109\u1161\u11ab","\u110c\u1162\u1109\u1162\u11bc","\u110c\u1162\u110c\u1161\u11a8\u1102\u1167\u11ab","\u110c\u1162\u110c\u1165\u11bc","\u110c\u1162\u110e\u1162\u1100\u1175","\u110c\u1162\u1111\u1161\u11ab","\u110c\u1162\u1112\u1161\u11a8","\u110c\u1162\u1112\u116a\u11af\u110b\u116d\u11bc","\u110c\u1165\u1100\u1165\u11ba","\u110c\u1165\u1100\u1169\u1105\u1175","\u110c\u1165\u1100\u1169\u11ba","\u110c\u1165\u1102\u1167\u11a8","\u110c\u1165\u1105\u1165\u11ab","\u110c\u1165\u1105\u1165\u11c2\u1100\u1166","\u110c\u1165\u1107\u1165\u11ab","\u110c\u1165\u110b\u116e\u11af","\u110c\u1165\u110c\u1165\u11af\u1105\u1169","\u110c\u1165\u110e\u116e\u11a8","\u110c\u1165\u11a8\u1100\u1173\u11a8","\u110c\u1165\u11a8\u1103\u1161\u11bc\u1112\u1175","\u110c\u1165\u11a8\u1109\u1165\u11bc","\u110c\u1165\u11a8\u110b\u116d\u11bc","\u110c\u1165\u11a8\u110b\u1173\u11bc","\u110c\u1165\u11ab\u1100\u1162","\u110c\u1165\u11ab\u1100\u1169\u11bc","\u110c\u1165\u11ab\u1100\u1175","\u110c\u1165\u11ab\u1103\u1161\u11af","\u110c\u1165\u11ab\u1105\u1161\u1103\u1169","\u110c\u1165\u11ab\u1106\u1161\u11bc","\u110c\u1165\u11ab\u1106\u116e\u11ab","\u110c\u1165\u11ab\u1107\u1161\u11ab","\u110c\u1165\u11ab\u1107\u116e","\u110c\u1165\u11ab\u1109\u1166","\u110c\u1165\u11ab\u1109\u1175","\u110c\u1165\u11ab\u110b\u116d\u11bc","\u110c\u1165\u11ab\u110c\u1161","\u110c\u1165\u11ab\u110c\u1162\u11bc","\u110c\u1165\u11ab\u110c\u116e","\u110c\u1165\u11ab\u110e\u1165\u11af","\u110c\u1165\u11ab\u110e\u1166","\u110c\u1165\u11ab\u1110\u1169\u11bc","\u110c\u1165\u11ab\u1112\u1167","\u110c\u1165\u11ab\u1112\u116e","\u110c\u1165\u11af\u1103\u1162","\u110c\u1165\u11af\u1106\u1161\u11bc","\u110c\u1165\u11af\u1107\u1161\u11ab","\u110c\u1165\u11af\u110b\u1163\u11a8","\u110c\u1165\u11af\u110e\u1161","\u110c\u1165\u11b7\u1100\u1165\u11b7","\u110c\u1165\u11b7\u1109\u116e","\u110c\u1165\u11b7\u1109\u1175\u11b7","\u110c\u1165\u11b7\u110b\u116f\u11ab","\u110c\u1165\u11b7\u110c\u1165\u11b7","\u110c\u1165\u11b7\u110e\u1161","\u110c\u1165\u11b8\u1100\u1173\u11ab","\u110c\u1165\u11b8\u1109\u1175","\u110c\u1165\u11b8\u110e\u1169\u11a8","\u110c\u1165\u11ba\u1100\u1161\u1105\u1161\u11a8","\u110c\u1165\u11bc\u1100\u1165\u110c\u1161\u11bc","\u110c\u1165\u11bc\u1103\u1169","\u110c\u1165\u11bc\u1105\u1172\u110c\u1161\u11bc","\u110c\u1165\u11bc\u1105\u1175","\u110c\u1165\u11bc\u1106\u1161\u11af","\u110c\u1165\u11bc\u1106\u1167\u11ab","\u110c\u1165\u11bc\u1106\u116e\u11ab","\u110c\u1165\u11bc\u1107\u1161\u11ab\u1103\u1162","\u110c\u1165\u11bc\u1107\u1169","\u110c\u1165\u11bc\u1107\u116e","\u110c\u1165\u11bc\u1107\u1175","\u110c\u1165\u11bc\u1109\u1161\u11bc","\u110c\u1165\u11bc\u1109\u1165\u11bc","\u110c\u1165\u11bc\u110b\u1169","\u110c\u1165\u11bc\u110b\u116f\u11ab","\u110c\u1165\u11bc\u110c\u1161\u11bc","\u110c\u1165\u11bc\u110c\u1175","\u110c\u1165\u11bc\u110e\u1175","\u110c\u1165\u11bc\u1112\u116a\u11a8\u1112\u1175","\u110c\u1166\u1100\u1169\u11bc","\u110c\u1166\u1100\u116a\u110c\u1165\u11b7","\u110c\u1166\u1103\u1162\u1105\u1169","\u110c\u1166\u1106\u1169\u11a8","\u110c\u1166\u1107\u1161\u11af","\u110c\u1166\u1107\u1165\u11b8","\u110c\u1166\u1109\u1161\u11ba\u1102\u1161\u11af","\u110c\u1166\u110b\u1161\u11ab","\u110c\u1166\u110b\u1175\u11af","\u110c\u1166\u110c\u1161\u11a8","\u110c\u1166\u110c\u116e\u1103\u1169","\u110c\u1166\u110e\u116e\u11af","\u110c\u1166\u1111\u116e\u11b7","\u110c\u1166\u1112\u1161\u11ab","\u110c\u1169\u1100\u1161\u11a8","\u110c\u1169\u1100\u1165\u11ab","\u110c\u1169\u1100\u1173\u11b7","\u110c\u1169\u1100\u1175\u11bc","\u110c\u1169\u1106\u1167\u11bc","\u110c\u1169\u1106\u1175\u1105\u116d","\u110c\u1169\u1109\u1161\u11bc","\u110c\u1169\u1109\u1165\u11ab","\u110c\u1169\u110b\u116d\u11bc\u1112\u1175","\u110c\u1169\u110c\u1165\u11af","\u110c\u1169\u110c\u1165\u11bc","\u110c\u1169\u110c\u1175\u11a8","\u110c\u1169\u11ab\u1103\u1162\u11ba\u1106\u1161\u11af","\u110c\u1169\u11ab\u110c\u1162","\u110c\u1169\u11af\u110b\u1165\u11b8","\u110c\u1169\u11af\u110b\u1173\u11b7","\u110c\u1169\u11bc\u1100\u116d","\u110c\u1169\u11bc\u1105\u1169","\u110c\u1169\u11bc\u1105\u1172","\u110c\u1169\u11bc\u1109\u1169\u1105\u1175","\u110c\u1169\u11bc\u110b\u1165\u11b8\u110b\u116f\u11ab","\u110c\u1169\u11bc\u110c\u1169\u11bc","\u110c\u1169\u11bc\u1112\u1161\u11b8","\u110c\u116a\u1109\u1165\u11a8","\u110c\u116c\u110b\u1175\u11ab","\u110c\u116e\u1100\u116a\u11ab\u110c\u1165\u11a8","\u110c\u116e\u1105\u1173\u11b7","\u110c\u116e\u1106\u1161\u11af","\u110c\u116e\u1106\u1165\u1102\u1175","\u110c\u116e\u1106\u1165\u11a8","\u110c\u116e\u1106\u116e\u11ab","\u110c\u116e\u1106\u1175\u11ab","\u110c\u116e\u1107\u1161\u11bc","\u110c\u116e\u1107\u1167\u11ab","\u110c\u116e\u1109\u1175\u11a8","\u110c\u116e\u110b\u1175\u11ab","\u110c\u116e\u110b\u1175\u11af","\u110c\u116e\u110c\u1161\u11bc","\u110c\u116e\u110c\u1165\u11ab\u110c\u1161","\u110c\u116e\u1110\u1162\u11a8","\u110c\u116e\u11ab\u1107\u1175","\u110c\u116e\u11af\u1100\u1165\u1105\u1175","\u110c\u116e\u11af\u1100\u1175","\u110c\u116e\u11af\u1106\u116e\u1102\u1174","\u110c\u116e\u11bc\u1100\u1161\u11ab","\u110c\u116e\u11bc\u1100\u1168\u1107\u1161\u11bc\u1109\u1169\u11bc","\u110c\u116e\u11bc\u1100\u116e\u11a8","\u110c\u116e\u11bc\u1102\u1167\u11ab","\u110c\u116e\u11bc\u1103\u1161\u11ab","\u110c\u116e\u11bc\u1103\u1169\u11a8","\u110c\u116e\u11bc\u1107\u1161\u11ab","\u110c\u116e\u11bc\u1107\u116e","\u110c\u116e\u11bc\u1109\u1166","\u110c\u116e\u11bc\u1109\u1169\u1100\u1175\u110b\u1165\u11b8","\u110c\u116e\u11bc\u1109\u116e\u11ab","\u110c\u116e\u11bc\u110b\u1161\u11bc","\u110c\u116e\u11bc\u110b\u116d","\u110c\u116e\u11bc\u1112\u1161\u11a8\u1100\u116d","\u110c\u1173\u11a8\u1109\u1165\u11a8","\u110c\u1173\u11a8\u1109\u1175","\u110c\u1173\u11af\u1100\u1165\u110b\u116e\u11b7","\u110c\u1173\u11bc\u1100\u1161","\u110c\u1173\u11bc\u1100\u1165","\u110c\u1173\u11bc\u1100\u116f\u11ab","\u110c\u1173\u11bc\u1109\u1161\u11bc","\u110c\u1173\u11bc\u1109\u1166","\u110c\u1175\u1100\u1161\u11a8","\u110c\u1175\u1100\u1161\u11b8","\u110c\u1175\u1100\u1167\u11bc","\u110c\u1175\u1100\u1173\u11a8\u1112\u1175","\u110c\u1175\u1100\u1173\u11b7","\u110c\u1175\u1100\u1173\u11b8","\u110c\u1175\u1102\u1173\u11bc","\u110c\u1175\u1105\u1173\u11b7\u1100\u1175\u11af","\u110c\u1175\u1105\u1175\u1109\u1161\u11ab","\u110c\u1175\u1107\u1161\u11bc","\u110c\u1175\u1107\u116e\u11bc","\u110c\u1175\u1109\u1175\u11a8","\u110c\u1175\u110b\u1167\u11a8","\u110c\u1175\u110b\u116e\u1100\u1162","\u110c\u1175\u110b\u116f\u11ab","\u110c\u1175\u110c\u1165\u11a8","\u110c\u1175\u110c\u1165\u11b7","\u110c\u1175\u110c\u1175\u11ab","\u110c\u1175\u110e\u116e\u11af","\u110c\u1175\u11a8\u1109\u1165\u11ab","\u110c\u1175\u11a8\u110b\u1165\u11b8","\u110c\u1175\u11a8\u110b\u116f\u11ab","\u110c\u1175\u11a8\u110c\u1161\u11bc","\u110c\u1175\u11ab\u1100\u1173\u11b8","\u110c\u1175\u11ab\u1103\u1169\u11bc","\u110c\u1175\u11ab\u1105\u1169","\u110c\u1175\u11ab\u1105\u116d","\u110c\u1175\u11ab\u1105\u1175","\u110c\u1175\u11ab\u110d\u1161","\u110c\u1175\u11ab\u110e\u1161\u11af","\u110c\u1175\u11ab\u110e\u116e\u11af","\u110c\u1175\u11ab\u1110\u1169\u11bc","\u110c\u1175\u11ab\u1112\u1162\u11bc","\u110c\u1175\u11af\u1106\u116e\u11ab","\u110c\u1175\u11af\u1107\u1167\u11bc","\u110c\u1175\u11af\u1109\u1165","\u110c\u1175\u11b7\u110c\u1161\u11a8","\u110c\u1175\u11b8\u1103\u1161\u11ab","\u110c\u1175\u11b8\u110b\u1161\u11ab","\u110c\u1175\u11b8\u110c\u116e\u11bc","\u110d\u1161\u110c\u1173\u11bc","\u110d\u1175\u1101\u1165\u1100\u1175","\u110e\u1161\u1102\u1161\u11b7","\u110e\u1161\u1105\u1161\u1105\u1175","\u110e\u1161\u1105\u1163\u11bc","\u110e\u1161\u1105\u1175\u11b7","\u110e\u1161\u1107\u1167\u11af","\u110e\u1161\u1109\u1165\u11ab","\u110e\u1161\u110e\u1173\u11b7","\u110e\u1161\u11a8\u1100\u1161\u11a8","\u110e\u1161\u11ab\u1106\u116e\u11af","\u110e\u1161\u11ab\u1109\u1165\u11bc","\u110e\u1161\u11b7\u1100\u1161","\u110e\u1161\u11b7\u1100\u1175\u1105\u1173\u11b7","\u110e\u1161\u11b7\u1109\u1162","\u110e\u1161\u11b7\u1109\u1165\u11a8","\u110e\u1161\u11b7\u110b\u1167","\u110e\u1161\u11b7\u110b\u116c","\u110e\u1161\u11b7\u110c\u1169","\u110e\u1161\u11ba\u110c\u1161\u11ab","\u110e\u1161\u11bc\u1100\u1161","\u110e\u1161\u11bc\u1100\u1169","\u110e\u1161\u11bc\u1100\u116e","\u110e\u1161\u11bc\u1106\u116e\u11ab","\u110e\u1161\u11bc\u1107\u1161\u11a9","\u110e\u1161\u11bc\u110c\u1161\u11a8","\u110e\u1161\u11bc\u110c\u1169","\u110e\u1162\u1102\u1165\u11af","\u110e\u1162\u110c\u1165\u11b7","\u110e\u1162\u11a8\u1100\u1161\u1107\u1161\u11bc","\u110e\u1162\u11a8\u1107\u1161\u11bc","\u110e\u1162\u11a8\u1109\u1161\u11bc","\u110e\u1162\u11a8\u110b\u1175\u11b7","\u110e\u1162\u11b7\u1111\u1175\u110b\u1165\u11ab","\u110e\u1165\u1107\u1165\u11af","\u110e\u1165\u110b\u1173\u11b7","\u110e\u1165\u11ab\u1100\u116e\u11a8","\u110e\u1165\u11ab\u1103\u116e\u11bc","\u110e\u1165\u11ab\u110c\u1161\u11bc","\u110e\u1165\u11ab\u110c\u1162","\u110e\u1165\u11ab\u110e\u1165\u11ab\u1112\u1175","\u110e\u1165\u11af\u1103\u1169","\u110e\u1165\u11af\u110c\u1165\u1112\u1175","\u110e\u1165\u11af\u1112\u1161\u11a8","\u110e\u1165\u11ba\u1102\u1161\u11af","\u110e\u1165\u11ba\u110d\u1162","\u110e\u1165\u11bc\u1102\u1167\u11ab","\u110e\u1165\u11bc\u1107\u1161\u110c\u1175","\u110e\u1165\u11bc\u1109\u1169","\u110e\u1165\u11bc\u110e\u116e\u11ab","\u110e\u1166\u1100\u1168","\u110e\u1166\u1105\u1167\u11a8","\u110e\u1166\u110b\u1169\u11ab","\u110e\u1166\u110b\u1172\u11a8","\u110e\u1166\u110c\u116e\u11bc","\u110e\u1166\u1112\u1165\u11b7","\u110e\u1169\u1103\u1173\u11bc\u1112\u1161\u11a8\u1109\u1162\u11bc","\u110e\u1169\u1107\u1161\u11ab","\u110e\u1169\u1107\u1161\u11b8","\u110e\u1169\u1109\u1161\u11bc\u1112\u116a","\u110e\u1169\u1109\u116e\u11ab","\u110e\u1169\u110b\u1167\u1105\u1173\u11b7","\u110e\u1169\u110b\u116f\u11ab","\u110e\u1169\u110c\u1165\u1102\u1167\u11a8","\u110e\u1169\u110c\u1165\u11b7","\u110e\u1169\u110e\u1165\u11bc","\u110e\u1169\u110f\u1169\u11af\u1105\u1175\u11ba","\u110e\u1169\u11ba\u1107\u116e\u11af","\u110e\u1169\u11bc\u1100\u1161\u11a8","\u110e\u1169\u11bc\u1105\u1175","\u110e\u1169\u11bc\u110c\u1161\u11bc","\u110e\u116a\u11af\u110b\u1167\u11bc","\u110e\u116c\u1100\u1173\u11ab","\u110e\u116c\u1109\u1161\u11bc","\u110e\u116c\u1109\u1165\u11ab","\u110e\u116c\u1109\u1175\u11ab","\u110e\u116c\u110b\u1161\u11a8","\u110e\u116c\u110c\u1169\u11bc","\u110e\u116e\u1109\u1165\u11a8","\u110e\u116e\u110b\u1165\u11a8","\u110e\u116e\u110c\u1175\u11ab","\u110e\u116e\u110e\u1165\u11ab","\u110e\u116e\u110e\u1173\u11a8","\u110e\u116e\u11a8\u1100\u116e","\u110e\u116e\u11a8\u1109\u1169","\u110e\u116e\u11a8\u110c\u1166","\u110e\u116e\u11a8\u1112\u1161","\u110e\u116e\u11af\u1100\u1173\u11ab","\u110e\u116e\u11af\u1107\u1161\u11af","\u110e\u116e\u11af\u1109\u1161\u11ab","\u110e\u116e\u11af\u1109\u1175\u11ab","\u110e\u116e\u11af\u110b\u1167\u11ab","\u110e\u116e\u11af\u110b\u1175\u11b8","\u110e\u116e\u11af\u110c\u1161\u11bc","\u110e\u116e\u11af\u1111\u1161\u11ab","\u110e\u116e\u11bc\u1100\u1167\u11a8","\u110e\u116e\u11bc\u1100\u1169","\u110e\u116e\u11bc\u1103\u1169\u11af","\u110e\u116e\u11bc\u1107\u116e\u11ab\u1112\u1175","\u110e\u116e\u11bc\u110e\u1165\u11bc\u1103\u1169","\u110e\u1171\u110b\u1165\u11b8","\u110e\u1171\u110c\u1175\u11a8","\u110e\u1171\u1112\u1163\u11bc","\u110e\u1175\u110b\u1163\u11a8","\u110e\u1175\u11ab\u1100\u116e","\u110e\u1175\u11ab\u110e\u1165\u11a8","\u110e\u1175\u11af\u1109\u1175\u11b8","\u110e\u1175\u11af\u110b\u116f\u11af","\u110e\u1175\u11af\u1111\u1161\u11ab","\u110e\u1175\u11b7\u1103\u1162","\u110e\u1175\u11b7\u1106\u116e\u11a8","\u110e\u1175\u11b7\u1109\u1175\u11af","\u110e\u1175\u11ba\u1109\u1169\u11af","\u110e\u1175\u11bc\u110e\u1161\u11ab","\u110f\u1161\u1106\u1166\u1105\u1161","\u110f\u1161\u110b\u116e\u11ab\u1110\u1165","\u110f\u1161\u11af\u1100\u116e\u11a8\u1109\u116e","\u110f\u1162\u1105\u1175\u11a8\u1110\u1165","\u110f\u1162\u11b7\u1111\u1165\u1109\u1173","\u110f\u1162\u11b7\u1111\u1166\u110b\u1175\u11ab","\u110f\u1165\u1110\u1173\u11ab","\u110f\u1165\u11ab\u1103\u1175\u1109\u1167\u11ab","\u110f\u1165\u11af\u1105\u1165","\u110f\u1165\u11b7\u1111\u1172\u1110\u1165","\u110f\u1169\u1101\u1175\u1105\u1175","\u110f\u1169\u1106\u1175\u1103\u1175","\u110f\u1169\u11ab\u1109\u1165\u1110\u1173","\u110f\u1169\u11af\u1105\u1161","\u110f\u1169\u11b7\u1111\u1173\u11af\u1105\u1166\u11a8\u1109\u1173","\u110f\u1169\u11bc\u1102\u1161\u1106\u116e\u11af","\u110f\u116b\u1100\u1161\u11b7","\u110f\u116e\u1103\u1166\u1110\u1161","\u110f\u1173\u1105\u1175\u11b7","\u110f\u1173\u11ab\u1100\u1175\u11af","\u110f\u1173\u11ab\u1104\u1161\u11af","\u110f\u1173\u11ab\u1109\u1169\u1105\u1175","\u110f\u1173\u11ab\u110b\u1161\u1103\u1173\u11af","\u110f\u1173\u11ab\u110b\u1165\u1106\u1165\u1102\u1175","\u110f\u1173\u11ab\u110b\u1175\u11af","\u110f\u1173\u11ab\u110c\u1165\u11af","\u110f\u1173\u11af\u1105\u1162\u1109\u1175\u11a8","\u110f\u1173\u11af\u1105\u1165\u11b8","\u110f\u1175\u11af\u1105\u1169","\u1110\u1161\u110b\u1175\u11b8","\u1110\u1161\u110c\u1161\u1100\u1175","\u1110\u1161\u11a8\u1100\u116e","\u1110\u1161\u11a8\u110c\u1161","\u1110\u1161\u11ab\u1109\u1162\u11bc","\u1110\u1162\u1100\u116f\u11ab\u1103\u1169","\u1110\u1162\u110b\u1163\u11bc","\u1110\u1162\u1111\u116e\u11bc","\u1110\u1162\u11a8\u1109\u1175","\u1110\u1162\u11af\u1105\u1165\u11ab\u1110\u1173","\u1110\u1165\u1102\u1165\u11af","\u1110\u1165\u1106\u1175\u1102\u1165\u11af","\u1110\u1166\u1102\u1175\u1109\u1173","\u1110\u1166\u1109\u1173\u1110\u1173","\u1110\u1166\u110b\u1175\u1107\u1173\u11af","\u1110\u1166\u11af\u1105\u1166\u1107\u1175\u110c\u1165\u11ab","\u1110\u1169\u1105\u1169\u11ab","\u1110\u1169\u1106\u1161\u1110\u1169","\u1110\u1169\u110b\u116d\u110b\u1175\u11af","\u1110\u1169\u11bc\u1100\u1168","\u1110\u1169\u11bc\u1100\u116a","\u1110\u1169\u11bc\u1105\u1169","\u1110\u1169\u11bc\u1109\u1175\u11ab","\u1110\u1169\u11bc\u110b\u1167\u11a8","\u1110\u1169\u11bc\u110b\u1175\u11af","\u1110\u1169\u11bc\u110c\u1161\u11bc","\u1110\u1169\u11bc\u110c\u1166","\u1110\u1169\u11bc\u110c\u1173\u11bc","\u1110\u1169\u11bc\u1112\u1161\u11b8","\u1110\u1169\u11bc\u1112\u116a","\u1110\u116c\u1100\u1173\u11ab","\u1110\u116c\u110b\u116f\u11ab","\u1110\u116c\u110c\u1175\u11a8\u1100\u1173\u11b7","\u1110\u1171\u1100\u1175\u11b7","\u1110\u1173\u1105\u1165\u11a8","\u1110\u1173\u11a8\u1100\u1173\u11b8","\u1110\u1173\u11a8\u1107\u1167\u11af","\u1110\u1173\u11a8\u1109\u1165\u11bc","\u1110\u1173\u11a8\u1109\u116e","\u1110\u1173\u11a8\u110c\u1175\u11bc","\u1110\u1173\u11a8\u1112\u1175","\u1110\u1173\u11ab\u1110\u1173\u11ab\u1112\u1175","\u1110\u1175\u1109\u1167\u110e\u1173","\u1111\u1161\u1105\u1161\u11ab\u1109\u1162\u11a8","\u1111\u1161\u110b\u1175\u11af","\u1111\u1161\u110e\u116e\u11af\u1109\u1169","\u1111\u1161\u11ab\u1100\u1167\u11af","\u1111\u1161\u11ab\u1103\u1161\u11ab","\u1111\u1161\u11ab\u1106\u1162","\u1111\u1161\u11ab\u1109\u1161","\u1111\u1161\u11af\u1109\u1175\u11b8","\u1111\u1161\u11af\u110b\u116f\u11af","\u1111\u1161\u11b8\u1109\u1169\u11bc","\u1111\u1162\u1109\u1167\u11ab","\u1111\u1162\u11a8\u1109\u1173","\u1111\u1162\u11a8\u1109\u1175\u1106\u1175\u11af\u1105\u1175","\u1111\u1162\u11ab\u1110\u1175","\u1111\u1165\u1109\u1166\u11ab\u1110\u1173","\u1111\u1166\u110b\u1175\u11ab\u1110\u1173","\u1111\u1167\u11ab\u1100\u1167\u11ab","\u1111\u1167\u11ab\u110b\u1174","\u1111\u1167\u11ab\u110c\u1175","\u1111\u1167\u11ab\u1112\u1175","\u1111\u1167\u11bc\u1100\u1161","\u1111\u1167\u11bc\u1100\u1172\u11ab","\u1111\u1167\u11bc\u1109\u1162\u11bc","\u1111\u1167\u11bc\u1109\u1169","\u1111\u1167\u11bc\u110b\u1163\u11bc","\u1111\u1167\u11bc\u110b\u1175\u11af","\u1111\u1167\u11bc\u1112\u116a","\u1111\u1169\u1109\u1173\u1110\u1165","\u1111\u1169\u110b\u1175\u11ab\u1110\u1173","\u1111\u1169\u110c\u1161\u11bc","\u1111\u1169\u1112\u1161\u11b7","\u1111\u116d\u1106\u1167\u11ab","\u1111\u116d\u110c\u1165\u11bc","\u1111\u116d\u110c\u116e\u11ab","\u1111\u116d\u1112\u1167\u11ab","\u1111\u116e\u11b7\u1106\u1169\u11a8","\u1111\u116e\u11b7\u110c\u1175\u11af","\u1111\u116e\u11bc\u1100\u1167\u11bc","\u1111\u116e\u11bc\u1109\u1169\u11a8","\u1111\u116e\u11bc\u1109\u1173\u11b8","\u1111\u1173\u1105\u1161\u11bc\u1109\u1173","\u1111\u1173\u1105\u1175\u11ab\u1110\u1165","\u1111\u1173\u11af\u1105\u1161\u1109\u1173\u1110\u1175\u11a8","\u1111\u1175\u1100\u1169\u11ab","\u1111\u1175\u1106\u1161\u11bc","\u1111\u1175\u110b\u1161\u1102\u1169","\u1111\u1175\u11af\u1105\u1173\u11b7","\u1111\u1175\u11af\u1109\u116e","\u1111\u1175\u11af\u110b\u116d","\u1111\u1175\u11af\u110c\u1161","\u1111\u1175\u11af\u1110\u1169\u11bc","\u1111\u1175\u11bc\u1100\u1168","\u1112\u1161\u1102\u1173\u1102\u1175\u11b7","\u1112\u1161\u1102\u1173\u11af","\u1112\u1161\u1103\u1173\u110b\u1170\u110b\u1165","\u1112\u1161\u1105\u116e\u11ba\u1107\u1161\u11b7","\u1112\u1161\u1107\u1161\u11ab\u1100\u1175","\u1112\u1161\u1109\u116e\u11a8\u110c\u1175\u11b8","\u1112\u1161\u1109\u116e\u11ab","\u1112\u1161\u110b\u1167\u1110\u1173\u11ab","\u1112\u1161\u110c\u1175\u1106\u1161\u11ab","\u1112\u1161\u110e\u1165\u11ab","\u1112\u1161\u1111\u116e\u11b7","\u1112\u1161\u1111\u1175\u11af","\u1112\u1161\u11a8\u1100\u116a","\u1112\u1161\u11a8\u1100\u116d","\u1112\u1161\u11a8\u1100\u1173\u11b8","\u1112\u1161\u11a8\u1100\u1175","\u1112\u1161\u11a8\u1102\u1167\u11ab","\u1112\u1161\u11a8\u1105\u1167\u11a8","\u1112\u1161\u11a8\u1107\u1165\u11ab","\u1112\u1161\u11a8\u1107\u116e\u1106\u1169","\u1112\u1161\u11a8\u1107\u1175","\u1112\u1161\u11a8\u1109\u1162\u11bc","\u1112\u1161\u11a8\u1109\u116e\u11af","\u1112\u1161\u11a8\u1109\u1173\u11b8","\u1112\u1161\u11a8\u110b\u116d\u11bc\u1111\u116e\u11b7","\u1112\u1161\u11a8\u110b\u116f\u11ab","\u1112\u1161\u11a8\u110b\u1171","\u1112\u1161\u11a8\u110c\u1161","\u1112\u1161\u11a8\u110c\u1165\u11b7","\u1112\u1161\u11ab\u1100\u1168","\u1112\u1161\u11ab\u1100\u1173\u11af","\u1112\u1161\u11ab\u1101\u1165\u1107\u1165\u11ab\u110b\u1166","\u1112\u1161\u11ab\u1102\u1161\u11bd","\u1112\u1161\u11ab\u1102\u116e\u11ab","\u1112\u1161\u11ab\u1103\u1169\u11bc\u110b\u1161\u11ab","\u1112\u1161\u11ab\u1104\u1162","\u1112\u1161\u11ab\u1105\u1161\u1109\u1161\u11ab","\u1112\u1161\u11ab\u1106\u1161\u1103\u1175","\u1112\u1161\u11ab\u1106\u116e\u11ab","\u1112\u1161\u11ab\u1107\u1165\u11ab","\u1112\u1161\u11ab\u1107\u1169\u11a8","\u1112\u1161\u11ab\u1109\u1175\u11a8","\u1112\u1161\u11ab\u110b\u1167\u1105\u1173\u11b7","\u1112\u1161\u11ab\u110d\u1169\u11a8","\u1112\u1161\u11af\u1106\u1165\u1102\u1175","\u1112\u1161\u11af\u110b\u1161\u1107\u1165\u110c\u1175","\u1112\u1161\u11af\u110b\u1175\u11ab","\u1112\u1161\u11b7\u1101\u1166","\u1112\u1161\u11b7\u1107\u116e\u1105\u1169","\u1112\u1161\u11b8\u1100\u1167\u11a8","\u1112\u1161\u11b8\u1105\u1175\u110c\u1165\u11a8","\u1112\u1161\u11bc\u1100\u1169\u11bc","\u1112\u1161\u11bc\u1100\u116e","\u1112\u1161\u11bc\u1109\u1161\u11bc","\u1112\u1161\u11bc\u110b\u1174","\u1112\u1162\u1100\u1167\u11af","\u1112\u1162\u1100\u116e\u11ab","\u1112\u1162\u1103\u1161\u11b8","\u1112\u1162\u1103\u1161\u11bc","\u1112\u1162\u1106\u116e\u11af","\u1112\u1162\u1109\u1165\u11a8","\u1112\u1162\u1109\u1165\u11af","\u1112\u1162\u1109\u116e\u110b\u116d\u11a8\u110c\u1161\u11bc","\u1112\u1162\u110b\u1161\u11ab","\u1112\u1162\u11a8\u1109\u1175\u11b7","\u1112\u1162\u11ab\u1103\u1173\u1107\u1162\u11a8","\u1112\u1162\u11b7\u1107\u1165\u1100\u1165","\u1112\u1162\u11ba\u1107\u1167\u11c0","\u1112\u1162\u11ba\u1109\u1161\u11af","\u1112\u1162\u11bc\u1103\u1169\u11bc","\u1112\u1162\u11bc\u1107\u1169\u11a8","\u1112\u1162\u11bc\u1109\u1161","\u1112\u1162\u11bc\u110b\u116e\u11ab","\u1112\u1162\u11bc\u110b\u1171","\u1112\u1163\u11bc\u1100\u1175","\u1112\u1163\u11bc\u1109\u1161\u11bc","\u1112\u1163\u11bc\u1109\u116e","\u1112\u1165\u1105\u1161\u11a8","\u1112\u1165\u110b\u116d\u11bc","\u1112\u1166\u11af\u1100\u1175","\u1112\u1167\u11ab\u1100\u116a\u11ab","\u1112\u1167\u11ab\u1100\u1173\u11b7","\u1112\u1167\u11ab\u1103\u1162","\u1112\u1167\u11ab\u1109\u1161\u11bc","\u1112\u1167\u11ab\u1109\u1175\u11af","\u1112\u1167\u11ab\u110c\u1161\u11bc","\u1112\u1167\u11ab\u110c\u1162","\u1112\u1167\u11ab\u110c\u1175","\u1112\u1167\u11af\u110b\u1162\u11a8","\u1112\u1167\u11b8\u1105\u1167\u11a8","\u1112\u1167\u11bc\u1107\u116e","\u1112\u1167\u11bc\u1109\u1161","\u1112\u1167\u11bc\u1109\u116e","\u1112\u1167\u11bc\u1109\u1175\u11a8","\u1112\u1167\u11bc\u110c\u1166","\u1112\u1167\u11bc\u1110\u1162","\u1112\u1167\u11bc\u1111\u1167\u11ab","\u1112\u1168\u1110\u1162\u11a8","\u1112\u1169\u1100\u1175\u1109\u1175\u11b7","\u1112\u1169\u1102\u1161\u11b7","\u1112\u1169\u1105\u1161\u11bc\u110b\u1175","\u1112\u1169\u1107\u1161\u11a8","\u1112\u1169\u1110\u1166\u11af","\u1112\u1169\u1112\u1173\u11b8","\u1112\u1169\u11a8\u1109\u1175","\u1112\u1169\u11af\u1105\u1169","\u1112\u1169\u11b7\u1111\u1166\u110b\u1175\u110c\u1175","\u1112\u1169\u11bc\u1107\u1169","\u1112\u1169\u11bc\u1109\u116e","\u1112\u1169\u11bc\u110e\u1161","\u1112\u116a\u1106\u1167\u11ab","\u1112\u116a\u1107\u116e\u11ab","\u1112\u116a\u1109\u1161\u11af","\u1112\u116a\u110b\u116d\u110b\u1175\u11af","\u1112\u116a\u110c\u1161\u11bc","\u1112\u116a\u1112\u1161\u11a8","\u1112\u116a\u11a8\u1107\u1169","\u1112\u116a\u11a8\u110b\u1175\u11ab","\u1112\u116a\u11a8\u110c\u1161\u11bc","\u1112\u116a\u11a8\u110c\u1165\u11bc","\u1112\u116a\u11ab\u1100\u1161\u11b8","\u1112\u116a\u11ab\u1100\u1167\u11bc","\u1112\u116a\u11ab\u110b\u1167\u11bc","\u1112\u116a\u11ab\u110b\u1172\u11af","\u1112\u116a\u11ab\u110c\u1161","\u1112\u116a\u11af\u1100\u1175","\u1112\u116a\u11af\u1103\u1169\u11bc","\u1112\u116a\u11af\u1107\u1161\u11af\u1112\u1175","\u1112\u116a\u11af\u110b\u116d\u11bc","\u1112\u116a\u11af\u110d\u1161\u11a8","\u1112\u116c\u1100\u1167\u11ab","\u1112\u116c\u1100\u116a\u11ab","\u1112\u116c\u1107\u1169\u11a8","\u1112\u116c\u1109\u1162\u11a8","\u1112\u116c\u110b\u116f\u11ab","\u1112\u116c\u110c\u1161\u11bc","\u1112\u116c\u110c\u1165\u11ab","\u1112\u116c\u11ba\u1109\u116e","\u1112\u116c\u11bc\u1103\u1161\u11ab\u1107\u1169\u1103\u1169","\u1112\u116d\u110b\u1172\u11af\u110c\u1165\u11a8","\u1112\u116e\u1107\u1161\u11ab","\u1112\u116e\u110e\u116e\u11ba\u1100\u1161\u1105\u116e","\u1112\u116e\u11ab\u1105\u1167\u11ab","\u1112\u116f\u11af\u110a\u1175\u11ab","\u1112\u1172\u1109\u1175\u11a8","\u1112\u1172\u110b\u1175\u11af","\u1112\u1172\u11bc\u1102\u1162","\u1112\u1173\u1105\u1173\u11b7","\u1112\u1173\u11a8\u1107\u1162\u11a8","\u1112\u1173\u11a8\u110b\u1175\u11ab","\u1112\u1173\u11ab\u110c\u1165\u11a8","\u1112\u1173\u11ab\u1112\u1175","\u1112\u1173\u11bc\u1106\u1175","\u1112\u1173\u11bc\u1107\u116e\u11ab","\u1112\u1174\u1100\u1169\u11a8","\u1112\u1174\u1106\u1161\u11bc","\u1112\u1174\u1109\u1162\u11bc","\u1112\u1174\u11ab\u1109\u1162\u11a8","\u1112\u1175\u11b7\u1101\u1165\u11ba"]')},104:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},2976:e=>{"use strict";e.exports=JSON.parse('["a\u0301baco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","accio\u0301n","aceite","acelga","acento","aceptar","a\u0301cido","aclarar","acne\u0301","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","ae\u0301reo","afectar","aficio\u0301n","afinar","afirmar","a\u0301gil","agitar","agoni\u0301a","agosto","agotar","agregar","agrio","agua","agudo","a\u0301guila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacra\u0301n","alambre","alarma","alba","a\u0301lbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodo\u0301n","aliado","aliento","alivio","alma","almeja","almi\u0301bar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","a\u0301mbar","a\u0301mbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","ande\u0301n","anemia","a\u0301ngulo","anillo","a\u0301nimo","ani\u0301s","anotar","antena","antiguo","antojo","anual","anular","anuncio","an\u0303adir","an\u0303ejo","an\u0303o","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","aran\u0303a","arar","a\u0301rbitro","a\u0301rbol","arbusto","archivo","arco","arder","ardilla","arduo","a\u0301rea","a\u0301rido","aries","armoni\u0301a","arne\u0301s","aroma","arpa","arpo\u0301n","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","a\u0301spero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","a\u0301tico","atleta","a\u0301tomo","atraer","atroz","atu\u0301n","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avio\u0301n","aviso","ayer","ayuda","ayuno","azafra\u0301n","azar","azote","azu\u0301car","azufre","azul","baba","babor","bache","bahi\u0301a","baile","bajar","balanza","balco\u0301n","balde","bambu\u0301","banco","banda","ban\u0303o","barba","barco","barniz","barro","ba\u0301scula","basto\u0301n","basura","batalla","bateri\u0301a","batir","batuta","bau\u0301l","bazar","bebe\u0301","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsa\u0301i","borde","borrar","bosque","bote","boti\u0301n","bo\u0301veda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufo\u0301n","bu\u0301ho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzo\u0301n","caballo","cabeza","cabina","cabra","cacao","cada\u0301ver","cadena","caer","cafe\u0301","cai\u0301da","caima\u0301n","caja","cajo\u0301n","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","ca\u0301ncer","candil","canela","canguro","canica","canto","can\u0303a","can\u0303o\u0301n","caoba","caos","capaz","capita\u0301n","capote","captar","capucha","cara","carbo\u0301n","ca\u0301rcel","careta","carga","carin\u0303o","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","ce\u0301lebre","celoso","ce\u0301lula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","ce\u0301sped","cetro","chacal","chaleco","champu\u0301","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclo\u0301n","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","cipre\u0301s","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","cli\u0301nica","cobre","coccio\u0301n","cochino","cocina","coco","co\u0301digo","codo","cofre","coger","cohete","coji\u0301n","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","co\u0301modo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazo\u0301n","corbata","corcho","cordo\u0301n","corona","correr","coser","cosmos","costa","cra\u0301neo","cra\u0301ter","crear","crecer","crei\u0301do","crema","cri\u0301a","crimen","cripta","crisis","cromo","cro\u0301nica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupo\u0301n","cu\u0301pula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","da\u0301til","deber","de\u0301bil","de\u0301cada","decir","dedo","defensa","definir","dejar","delfi\u0301n","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvi\u0301o","detalle","detener","deuda","di\u0301a","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difi\u0301cil","digno","dilema","diluir","dinero","directo","dirigir","disco","disen\u0303o","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","drago\u0301n","droga","ducha","duda","duelo","duen\u0303o","dulce","du\u0301o","duque","durar","dureza","duro","e\u0301bano","ebrio","echar","eco","ecuador","edad","edicio\u0301n","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","e\u0301lite","elixir","elogio","eludir","embudo","emitir","emocio\u0301n","empate","empen\u0303o","empleo","empresa","enano","encargo","enchufe","enci\u0301a","enemigo","enero","enfado","enfermo","engan\u0303o","enigma","enlace","enorme","enredo","ensayo","ensen\u0303ar","entero","entrar","envase","envi\u0301o","e\u0301poca","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espi\u0301a","esposa","espuma","esqui\u0301","estar","este","estilo","estufa","etapa","eterno","e\u0301tica","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","e\u0301xito","experto","explicar","exponer","extremo","fa\u0301brica","fa\u0301bula","fachada","fa\u0301cil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","farao\u0301n","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fe\u0301rtil","fervor","festi\u0301n","fiable","fianza","fiar","fibra","ficcio\u0301n","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flu\u0301or","fobia","foca","fogata","fogo\u0301n","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","fra\u0301gil","franja","frase","fraude","frei\u0301r","freno","fresa","fri\u0301o","frito","fruta","fuego","fuente","fuerza","fuga","fumar","funcio\u0301n","funda","furgo\u0301n","furia","fusil","fu\u0301tbol","futuro","gacela","gafas","gaita","gajo","gala","galeri\u0301a","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavila\u0301n","gemelo","gemir","gen","ge\u0301nero","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gra\u0301fico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","gru\u0301a","grueso","grumo","grupo","guante","guapo","guardia","guerra","gui\u0301a","guin\u0303o","guion","guiso","guitarra","gusano","gustar","haber","ha\u0301bil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazan\u0303a","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","he\u0301roe","hervir","hielo","hierro","hi\u0301gado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","hu\u0301medo","humilde","humo","hundir","huraca\u0301n","hurto","icono","ideal","idioma","i\u0301dolo","iglesia","iglu\u0301","igual","ilegal","ilusio\u0301n","imagen","ima\u0301n","imitar","impar","imperio","imponer","impulso","incapaz","i\u0301ndice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","intere\u0301s","i\u0301ntimo","intuir","inu\u0301til","invierno","ira","iris","ironi\u0301a","isla","islote","jabali\u0301","jabo\u0301n","jamo\u0301n","jarabe","jardi\u0301n","jarra","jaula","jazmi\u0301n","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","ju\u0301piter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladro\u0301n","lagarto","la\u0301grima","laguna","laico","lamer","la\u0301mina","la\u0301mpara","lana","lancha","langosta","lanza","la\u0301piz","largo","larva","la\u0301stima","lata","la\u0301tex","latir","laurel","lavar","lazo","leal","leccio\u0301n","leche","lector","leer","legio\u0301n","legumbre","lejano","lengua","lento","len\u0303a","leo\u0301n","leopardo","lesio\u0301n","letal","letra","leve","leyenda","libertad","libro","licor","li\u0301der","lidiar","lienzo","liga","ligero","lima","li\u0301mite","limo\u0301n","limpio","lince","lindo","li\u0301nea","lingote","lino","linterna","li\u0301quido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","locio\u0301n","loco","locura","lo\u0301gica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","mai\u0301z","maldad","maleta","malla","malo","mama\u0301","mambo","mamut","manco","mando","manejar","manga","maniqui\u0301","manjar","mano","manso","manta","man\u0303ana","mapa","ma\u0301quina","mar","marco","marea","marfil","margen","marido","ma\u0301rmol","marro\u0301n","martes","marzo","masa","ma\u0301scara","masivo","matar","materia","matiz","matriz","ma\u0301ximo","mayor","mazorca","mecha","medalla","medio","me\u0301dula","mejilla","mejor","melena","melo\u0301n","memoria","menor","mensaje","mente","menu\u0301","mercado","merengue","me\u0301rito","mes","meso\u0301n","meta","meter","me\u0301todo","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millo\u0301n","mimo","mina","minero","mi\u0301nimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","mocio\u0301n","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","mon\u0303o","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","mo\u0301vil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","mun\u0303eca","mural","muro","mu\u0301sculo","museo","musgo","mu\u0301sica","muslo","na\u0301car","nacio\u0301n","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","na\u0301usea","naval","nave","navidad","necio","ne\u0301ctar","negar","negocio","negro","neo\u0301n","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","nin\u0303ez","nin\u0303o","ni\u0301tido","nivel","nobleza","noche","no\u0301mina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","nu\u0301cleo","nudillo","nudo","nuera","nueve","nuez","nulo","nu\u0301mero","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","oce\u0301ano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oi\u0301do","oi\u0301r","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opcio\u0301n","o\u0301pera","opinar","oponer","optar","o\u0301ptica","opuesto","oracio\u0301n","orador","oral","o\u0301rbita","orca","orden","oreja","o\u0301rgano","orgi\u0301a","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadi\u0301a","oscuro","osezno","oso","ostra","oton\u0303o","otro","oveja","o\u0301vulo","o\u0301xido","oxi\u0301geno","oyente","ozono","pacto","padre","paella","pa\u0301gina","pago","pai\u0301s","pa\u0301jaro","palabra","palco","paleta","pa\u0301lido","palma","paloma","palpar","pan","panal","pa\u0301nico","pantera","pan\u0303uelo","papa\u0301","papel","papilla","paquete","parar","parcela","pared","parir","paro","pa\u0301rpado","parque","pa\u0301rrafo","parte","pasar","paseo","pasio\u0301n","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peato\u0301n","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldan\u0303o","pelea","peligro","pellejo","pelo","peluca","pena","pensar","pen\u0303o\u0301n","peo\u0301n","peor","pepino","pequen\u0303o","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pe\u0301simo","pestan\u0303a","pe\u0301talo","petro\u0301leo","pez","pezun\u0303a","picar","picho\u0301n","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","pin\u0303a","piojo","pipa","pirata","pisar","piscina","piso","pista","pito\u0301n","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesi\u0301a","poeta","polen","polici\u0301a","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porcio\u0301n","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","pri\u0301ncipe","prisio\u0301n","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","pro\u0301ximo","prueba","pu\u0301blico","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmo\u0301n","pulpo","pulso","puma","punto","pun\u0303al","pun\u0303o","pupa","pupila","pure\u0301","quedar","queja","quemar","querer","queso","quieto","qui\u0301mica","quince","quitar","ra\u0301bano","rabia","rabo","racio\u0301n","radical","rai\u0301z","rama","rampa","rancho","rango","rapaz","ra\u0301pido","rapto","rasgo","raspa","rato","rayo","raza","razo\u0301n","reaccio\u0301n","realidad","reban\u0303o","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refra\u0301n","refugio","regalo","regir","regla","regreso","rehe\u0301n","reino","rei\u0301r","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","reve\u0301s","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","ri\u0301gido","rigor","rinco\u0301n","rin\u0303o\u0301n","ri\u0301o","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubi\u0301","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sa\u0301bado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmo\u0301n","salo\u0301n","salsa","salto","salud","salvar","samba","sancio\u0301n","sandi\u0301a","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sarte\u0301n","sastre","sata\u0301n","sauna","saxofo\u0301n","seccio\u0301n","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","sen\u0303al","sen\u0303or","separar","sepia","sequi\u0301a","ser","serie","sermo\u0301n","servir","sesenta","sesio\u0301n","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","si\u0301laba","silbar","silencio","silla","si\u0301mbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","so\u0301lido","soltar","solucio\u0301n","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","soste\u0301n","so\u0301tano","suave","subir","suceso","sudor","suegra","suelo","suen\u0303o","suerte","sufrir","sujeto","sulta\u0301n","sumar","superar","suplir","suponer","supremo","sur","surco","suren\u0303o","surgir","susto","sutil","tabaco","tabique","tabla","tabu\u0301","taco","tacto","tajo","talar","talco","talento","talla","talo\u0301n","taman\u0303o","tambor","tango","tanque","tapa","tapete","tapia","tapo\u0301n","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazo\u0301n","teatro","techo","tecla","te\u0301cnica","tejado","tejer","tejido","tela","tele\u0301fono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teori\u0301a","terapia","terco","te\u0301rmino","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburo\u0301n","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","ti\u0301mido","timo","tinta","ti\u0301o","ti\u0301pico","tipo","tira","tiro\u0301n","tita\u0301n","ti\u0301tere","ti\u0301tulo","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","to\u0301rax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","to\u0301xico","trabajo","tractor","traer","tra\u0301fico","trago","traje","tramo","trance","trato","trauma","trazar","tre\u0301bol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tuberi\u0301a","tubo","tuerto","tumba","tumor","tu\u0301nel","tu\u0301nica","turbina","turismo","turno","tutor","ubicar","u\u0301lcera","umbral","unidad","unir","universo","uno","untar","un\u0303a","urbano","urbe","urgente","urna","usar","usuario","u\u0301til","utopi\u0301a","uva","vaca","vaci\u0301o","vacuna","vagar","vago","vaina","vajilla","vale","va\u0301lido","valle","valor","va\u0301lvula","vampiro","vara","variar","varo\u0301n","vaso","vecino","vector","vehi\u0301culo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vi\u0301a","viaje","vibrar","vicio","vi\u0301ctima","vida","vi\u0301deo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","vin\u0303edo","violi\u0301n","viral","virgo","virtud","visor","vi\u0301spera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volca\u0301n","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},5210:e=>{"use strict";e.exports={WU:"6.5.4"}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var o=Object.create(null);r.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(o,a),o}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"static/js/"+{28:"reactPlayerVidyard",72:"reactPlayerTwitch",164:"reactPlayerKaltura",204:"reactPlayerMixcloud",344:"reactPlayerYouTube",411:"reactPlayerFacebook",412:"reactPlayerSoundCloud",420:"reactPlayerStreamable",464:"reactPlayerFilePlayer",696:"reactPlayerWistia",904:"reactPlayerVimeo",936:"reactPlayerDailyMotion",984:"reactPlayerPreview"}[e]+"."+{28:"3b28e45b",72:"0fa2fe61",164:"0b1b9d2b",204:"2f46974d",344:"d1edb033",411:"38d50286",412:"11c08821",420:"8c475eff",464:"0218f160",696:"42e6cbf1",904:"331d9d72",936:"dd4d391e",984:"2d5ed66b"}[e]+".chunk.js",r.miniCssF=e=>{},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="umami:";r.l=(n,i,o,a)=>{if(e[n])e[n].push(i);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(f);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(r))),t)return t(r)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}}})(),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="./",(()=>{var e={590:0};r.f.j=(t,n)=>{var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise(((r,n)=>i=e[t]=[r,n]));n.push(i[2]=o);var a=r.p+r.u(t),s=new Error;r.l(a,(n=>{if(r.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,o,[a,s,c]=n,l=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(c)c(r)}for(t&&t(n);l{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>CC,hasStandardBrowserEnv:()=>jC,hasStandardBrowserWebWorkerEnv:()=>IC});var t={};r.r(t),r.d(t,{hasBrowserEnv:()=>BN,hasStandardBrowserEnv:()=>FN,hasStandardBrowserWebWorkerEnv:()=>UN});var n={};r.r(n),r.d(n,{Decoder:()=>B8,Encoder:()=>D8,PacketType:()=>N8,protocol:()=>L8});var i=r(1628),o=r.t(i,2),a=r(7372);const s=(0,i.createContext)(null),c={didCatch:!1,error:null};class l extends i.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=c}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,r,n=arguments.length,i=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,r)=>!Object.is(e,t[r])))}(e.resetKeys,n)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:n,prev:e.resetKeys,reason:"keys"}),this.setState(c))}render(){const{children:e,fallbackRender:t,FallbackComponent:r,fallback:n}=this.props,{didCatch:o,error:a}=this.state;let c=e;if(o){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)c=t(e);else if(r)c=(0,i.createElement)(r,e);else{if(null!==n&&!(0,i.isValidElement)(n))throw a;c=n}}return(0,i.createElement)(s.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},c)}}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){for(var r=0;re.filter(Boolean).join(" ");function b(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var w=e=>{const{condition:t,message:r}=e};function x(e,...t){return _(e)?e(...t):e}var _=e=>"function"===typeof e,S=e=>e?"":void 0,k=e=>!!e||void 0;function E(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}function A(...e){return function(t){e.forEach((e=>{null==e||e(t)}))}}var P=r(96),O=e=>"string"===typeof e?e.replace(/!(important)?$/,"").trim():e,T=(e,t)=>r=>{const n=String(t),i=(e=>/!(important)?$/.test(e))(n),o=O(n),a=e?`${e}.${o}`:o;let s=b(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=O(s),i?`${s} !important`:s};function C(e){const{scale:t,transform:r,compose:n}=e;return(e,i)=>{var o;const a=T(t,e)(i);let s=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(s=n(s,i)),s}}var j=(...e)=>t=>e.reduce(((e,t)=>t(e)),t);function R(e,t){return r=>{const n={property:r,scale:e};return n.transform=C({scale:e,transform:t}),n}}var I=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t;var M=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var L={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},N={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var D={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},z={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},B=new Set(Object.values(z)),F=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),U=e=>e.trim();var $=e=>"string"===typeof e&&e.includes("(")&&e.includes(")");var H=e=>t=>`${e}(${t})`,V={filter:e=>"auto"!==e?e:L,backdropFilter:e=>"auto"!==e?e:N,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(V.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...M].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...M].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(e);return t||"number"===typeof e?`${e}px`:e},fraction:e=>"number"!==typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"===typeof e&&!e.endsWith("deg");return"number"===typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||F.has(e))return e;if(!$(e)&&!F.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],i=null==r?void 0:r[2];if(!n||!i)return e;const o=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=i.split(",").map(U).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const c=a in z?z[a]:a;return s.unshift(c),`${o}(${s.map((e=>{if(B.has(e))return e;const r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=$(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s})).join(", ")})`}(e,null!=t?t:{}),blur:H("blur"),opacity:H("opacity"),brightness:H("brightness"),contrast:H("contrast"),dropShadow:H("drop-shadow"),grayscale:H("grayscale"),hueRotate:e=>H("hue-rotate")(V.degree(e)),invert:H("invert"),saturate:H("saturate"),sepia:H("sepia"),bgImage(e){if(null==e)return e;return $(e)||F.has(e)?e:`url(${e})`},outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=null!=(t=D[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},q={borderWidths:R("borderWidths"),borderStyles:R("borderStyles"),colors:R("colors"),borders:R("borders"),gradients:R("gradients",V.gradient),radii:R("radii",V.px),space:R("space",j(V.vh,V.px)),spaceT:R("space",j(V.vh,V.px)),degreeT:e=>({property:e,transform:V.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:C({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:R("sizes",j(V.vh,V.px)),sizesT:R("sizes",j(V.vh,V.fraction)),shadows:R("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:I(t),transform:r?C({scale:r,compose:n}):n}},blur:R("blur",V.blur)},K={background:q.colors("background"),backgroundColor:q.colors("backgroundColor"),backgroundImage:q.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:V.bgClip},bgSize:q.prop("backgroundSize"),bgPosition:q.prop("backgroundPosition"),bg:q.colors("background"),bgColor:q.colors("backgroundColor"),bgPos:q.prop("backgroundPosition"),bgRepeat:q.prop("backgroundRepeat"),bgAttachment:q.prop("backgroundAttachment"),bgGradient:q.gradients("backgroundImage"),bgClip:{transform:V.bgClip}};Object.assign(K,{bgImage:K.backgroundImage,bgImg:K.backgroundImage});var W={border:q.borders("border"),borderWidth:q.borderWidths("borderWidth"),borderStyle:q.borderStyles("borderStyle"),borderColor:q.colors("borderColor"),borderRadius:q.radii("borderRadius"),borderTop:q.borders("borderTop"),borderBlockStart:q.borders("borderBlockStart"),borderTopLeftRadius:q.radii("borderTopLeftRadius"),borderStartStartRadius:q.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:q.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:q.radii("borderTopRightRadius"),borderStartEndRadius:q.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:q.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:q.borders("borderRight"),borderInlineEnd:q.borders("borderInlineEnd"),borderBottom:q.borders("borderBottom"),borderBlockEnd:q.borders("borderBlockEnd"),borderBottomLeftRadius:q.radii("borderBottomLeftRadius"),borderBottomRightRadius:q.radii("borderBottomRightRadius"),borderLeft:q.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:q.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:q.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:q.borders(["borderLeft","borderRight"]),borderInline:q.borders("borderInline"),borderY:q.borders(["borderTop","borderBottom"]),borderBlock:q.borders("borderBlock"),borderTopWidth:q.borderWidths("borderTopWidth"),borderBlockStartWidth:q.borderWidths("borderBlockStartWidth"),borderTopColor:q.colors("borderTopColor"),borderBlockStartColor:q.colors("borderBlockStartColor"),borderTopStyle:q.borderStyles("borderTopStyle"),borderBlockStartStyle:q.borderStyles("borderBlockStartStyle"),borderBottomWidth:q.borderWidths("borderBottomWidth"),borderBlockEndWidth:q.borderWidths("borderBlockEndWidth"),borderBottomColor:q.colors("borderBottomColor"),borderBlockEndColor:q.colors("borderBlockEndColor"),borderBottomStyle:q.borderStyles("borderBottomStyle"),borderBlockEndStyle:q.borderStyles("borderBlockEndStyle"),borderLeftWidth:q.borderWidths("borderLeftWidth"),borderInlineStartWidth:q.borderWidths("borderInlineStartWidth"),borderLeftColor:q.colors("borderLeftColor"),borderInlineStartColor:q.colors("borderInlineStartColor"),borderLeftStyle:q.borderStyles("borderLeftStyle"),borderInlineStartStyle:q.borderStyles("borderInlineStartStyle"),borderRightWidth:q.borderWidths("borderRightWidth"),borderInlineEndWidth:q.borderWidths("borderInlineEndWidth"),borderRightColor:q.colors("borderRightColor"),borderInlineEndColor:q.colors("borderInlineEndColor"),borderRightStyle:q.borderStyles("borderRightStyle"),borderInlineEndStyle:q.borderStyles("borderInlineEndStyle"),borderTopRadius:q.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:q.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:q.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:q.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(W,{rounded:W.borderRadius,roundedTop:W.borderTopRadius,roundedTopLeft:W.borderTopLeftRadius,roundedTopRight:W.borderTopRightRadius,roundedTopStart:W.borderStartStartRadius,roundedTopEnd:W.borderStartEndRadius,roundedBottom:W.borderBottomRadius,roundedBottomLeft:W.borderBottomLeftRadius,roundedBottomRight:W.borderBottomRightRadius,roundedBottomStart:W.borderEndStartRadius,roundedBottomEnd:W.borderEndEndRadius,roundedLeft:W.borderLeftRadius,roundedRight:W.borderRightRadius,roundedStart:W.borderInlineStartRadius,roundedEnd:W.borderInlineEndRadius,borderStart:W.borderInlineStart,borderEnd:W.borderInlineEnd,borderTopStartRadius:W.borderStartStartRadius,borderTopEndRadius:W.borderStartEndRadius,borderBottomStartRadius:W.borderEndStartRadius,borderBottomEndRadius:W.borderEndEndRadius,borderStartRadius:W.borderInlineStartRadius,borderEndRadius:W.borderInlineEndRadius,borderStartWidth:W.borderInlineStartWidth,borderEndWidth:W.borderInlineEndWidth,borderStartColor:W.borderInlineStartColor,borderEndColor:W.borderInlineEndColor,borderStartStyle:W.borderInlineStartStyle,borderEndStyle:W.borderInlineEndStyle});var G={color:q.colors("color"),textColor:q.colors("color"),fill:q.colors("fill"),stroke:q.colors("stroke")},Y={boxShadow:q.shadows("boxShadow"),mixBlendMode:!0,blendMode:q.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:q.prop("backgroundBlendMode"),opacity:!0};Object.assign(Y,{shadow:Y.boxShadow});var Z={filter:{transform:V.filter},blur:q.blur("--chakra-blur"),brightness:q.propT("--chakra-brightness",V.brightness),contrast:q.propT("--chakra-contrast",V.contrast),hueRotate:q.propT("--chakra-hue-rotate",V.hueRotate),invert:q.propT("--chakra-invert",V.invert),saturate:q.propT("--chakra-saturate",V.saturate),dropShadow:q.propT("--chakra-drop-shadow",V.dropShadow),backdropFilter:{transform:V.backdropFilter},backdropBlur:q.blur("--chakra-backdrop-blur"),backdropBrightness:q.propT("--chakra-backdrop-brightness",V.brightness),backdropContrast:q.propT("--chakra-backdrop-contrast",V.contrast),backdropHueRotate:q.propT("--chakra-backdrop-hue-rotate",V.hueRotate),backdropInvert:q.propT("--chakra-backdrop-invert",V.invert),backdropSaturate:q.propT("--chakra-backdrop-saturate",V.saturate)},X={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:V.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:q.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:q.space("gap"),rowGap:q.space("rowGap"),columnGap:q.space("columnGap")};Object.assign(X,{flexDir:X.flexDirection});var J={gridGap:q.space("gridGap"),gridColumnGap:q.space("gridColumnGap"),gridRowGap:q.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Q={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:V.outline},outlineOffset:!0,outlineColor:q.colors("outlineColor")},ee={width:q.sizesT("width"),inlineSize:q.sizesT("inlineSize"),height:q.sizes("height"),blockSize:q.sizes("blockSize"),boxSize:q.sizes(["width","height"]),minWidth:q.sizes("minWidth"),minInlineSize:q.sizes("minInlineSize"),minHeight:q.sizes("minHeight"),minBlockSize:q.sizes("minBlockSize"),maxWidth:q.sizes("maxWidth"),maxInlineSize:q.sizes("maxInlineSize"),maxHeight:q.sizes("maxHeight"),maxBlockSize:q.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (min-width: ${null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:q.propT("float",V.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ee,{w:ee.width,h:ee.height,minW:ee.minWidth,maxW:ee.maxWidth,minH:ee.minHeight,maxH:ee.maxHeight,overscroll:ee.overscrollBehavior,overscrollX:ee.overscrollBehaviorX,overscrollY:ee.overscrollBehaviorY});var te={listStyleType:!0,listStylePosition:!0,listStylePos:q.prop("listStylePosition"),listStyleImage:!0,listStyleImg:q.prop("listStyleImage")};var re=(e=>{const t=new WeakMap;return(r,n,i,o)=>{if("undefined"===typeof r)return e(r,n,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,i,o);return a.set(n,s),s}})((function(e,t,r,n){const i="string"===typeof t?t.split("."):[t];for(n=0;n{const n={},i=re(e,t,{});for(const o in i){o in r&&null!=r[o]||(n[o]=i[o])}return n},ae={srOnly:{transform:e=>!0===e?ne:"focusable"===e?ie:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>oe(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>oe(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>oe(t,e,r)}},se={position:!0,pos:q.prop("position"),zIndex:q.prop("zIndex","zIndices"),inset:q.spaceT("inset"),insetX:q.spaceT(["left","right"]),insetInline:q.spaceT("insetInline"),insetY:q.spaceT(["top","bottom"]),insetBlock:q.spaceT("insetBlock"),top:q.spaceT("top"),insetBlockStart:q.spaceT("insetBlockStart"),bottom:q.spaceT("bottom"),insetBlockEnd:q.spaceT("insetBlockEnd"),left:q.spaceT("left"),insetInlineStart:q.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:q.spaceT("right"),insetInlineEnd:q.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(se,{insetStart:se.insetInlineStart,insetEnd:se.insetInlineEnd});var ce={ring:{transform:V.ring},ringColor:q.colors("--chakra-ring-color"),ringOffset:q.prop("--chakra-ring-offset-width"),ringOffsetColor:q.colors("--chakra-ring-offset-color"),ringInset:q.prop("--chakra-ring-inset")},le={margin:q.spaceT("margin"),marginTop:q.spaceT("marginTop"),marginBlockStart:q.spaceT("marginBlockStart"),marginRight:q.spaceT("marginRight"),marginInlineEnd:q.spaceT("marginInlineEnd"),marginBottom:q.spaceT("marginBottom"),marginBlockEnd:q.spaceT("marginBlockEnd"),marginLeft:q.spaceT("marginLeft"),marginInlineStart:q.spaceT("marginInlineStart"),marginX:q.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:q.spaceT("marginInline"),marginY:q.spaceT(["marginTop","marginBottom"]),marginBlock:q.spaceT("marginBlock"),padding:q.space("padding"),paddingTop:q.space("paddingTop"),paddingBlockStart:q.space("paddingBlockStart"),paddingRight:q.space("paddingRight"),paddingBottom:q.space("paddingBottom"),paddingBlockEnd:q.space("paddingBlockEnd"),paddingLeft:q.space("paddingLeft"),paddingInlineStart:q.space("paddingInlineStart"),paddingInlineEnd:q.space("paddingInlineEnd"),paddingX:q.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:q.space("paddingInline"),paddingY:q.space(["paddingTop","paddingBottom"]),paddingBlock:q.space("paddingBlock")};Object.assign(le,{m:le.margin,mt:le.marginTop,mr:le.marginRight,me:le.marginInlineEnd,marginEnd:le.marginInlineEnd,mb:le.marginBottom,ml:le.marginLeft,ms:le.marginInlineStart,marginStart:le.marginInlineStart,mx:le.marginX,my:le.marginY,p:le.padding,pt:le.paddingTop,py:le.paddingY,px:le.paddingX,pb:le.paddingBottom,pl:le.paddingLeft,ps:le.paddingInlineStart,paddingStart:le.paddingInlineStart,pr:le.paddingRight,pe:le.paddingInlineEnd,paddingEnd:le.paddingInlineEnd});var ue={textDecorationColor:q.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:q.shadows("textShadow")},de={clipPath:!0,transform:q.propT("transform",V.transform),transformOrigin:!0,translateX:q.spaceT("--chakra-translate-x"),translateY:q.spaceT("--chakra-translate-y"),skewX:q.degreeT("--chakra-skew-x"),skewY:q.degreeT("--chakra-skew-y"),scaleX:q.prop("--chakra-scale-x"),scaleY:q.prop("--chakra-scale-y"),scale:q.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:q.degreeT("--chakra-rotate")},he={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:q.prop("transitionDuration","transition.duration"),transitionProperty:q.prop("transitionProperty","transition.property"),transitionTimingFunction:q.prop("transitionTimingFunction","transition.easing")},fe={fontFamily:q.prop("fontFamily","fonts"),fontSize:q.prop("fontSize","fontSizes",V.px),fontWeight:q.prop("fontWeight","fontWeights"),lineHeight:q.prop("lineHeight","lineHeights"),letterSpacing:q.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},pe={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:q.spaceT("scrollMargin"),scrollMarginTop:q.spaceT("scrollMarginTop"),scrollMarginBottom:q.spaceT("scrollMarginBottom"),scrollMarginLeft:q.spaceT("scrollMarginLeft"),scrollMarginRight:q.spaceT("scrollMarginRight"),scrollMarginX:q.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:q.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:q.spaceT("scrollPadding"),scrollPaddingTop:q.spaceT("scrollPaddingTop"),scrollPaddingBottom:q.spaceT("scrollPaddingBottom"),scrollPaddingLeft:q.spaceT("scrollPaddingLeft"),scrollPaddingRight:q.spaceT("scrollPaddingRight"),scrollPaddingX:q.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:q.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function me(e){return b(e)&&e.reference?e.reference:String(e)}var ge=(e,...t)=>t.map(me).join(` ${e} `).replace(/calc/g,""),ve=(...e)=>`calc(${ge("+",...e)})`,ye=(...e)=>`calc(${ge("-",...e)})`,be=(...e)=>`calc(${ge("*",...e)})`,we=(...e)=>`calc(${ge("/",...e)})`,xe=e=>{const t=me(e);return null==t||Number.isNaN(parseFloat(t))?be(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},_e=Object.assign((e=>({add:(...t)=>_e(ve(e,...t)),subtract:(...t)=>_e(ye(e,...t)),multiply:(...t)=>_e(be(e,...t)),divide:(...t)=>_e(we(e,...t)),negate:()=>_e(xe(e)),toString:()=>e.toString()})),{add:ve,subtract:ye,multiply:be,divide:we,negate:xe});function Se(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){if(e.includes("\\."))return e;const t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}function ke(e,t){return`var(${e}${t?`, ${t}`:""})`}function Ee(e,t=""){return Se(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Ae(e,t,r){const n=Ee(e,r);return{variable:n,reference:ke(n,t)}}function Pe(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Oe(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"===typeof e?`${e}px`:e}var Te=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Ce=e=>Object.fromEntries(Object.entries(e).sort(Te));function je(e){const t=Ce(e);return Object.assign(Object.values(t),t)}function Re(e){var t;if(!e)return e;e=null!=(t=Oe(e))?t:e;return"number"===typeof e?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,(e=>`${parseFloat(e)+-.02}`))}function Ie(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Oe(e)})`),t&&r.push("and",`(max-width: ${Oe(t)})`),r.join(" ")}function Me(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const r=je(e),n=Object.entries(e).sort(Te).map((([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?Re(o):void 0,{_minW:Re(t),breakpoint:e,minW:t,maxW:o,maxWQuery:Ie(null,o),minWQuery:Ie(t),minMaxQuery:Ie(t,o)}})),i=function(e){const t=Object.keys(Ce(e));return new Set(t)}(e),o=Array.from(i.values());return{keys:i,normalized:r,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every((e=>i.has(e)))},asObject:Ce(e),asArray:je(e),details:n,get:e=>n.find((t=>t.breakpoint===e)),media:[null,...r.map((e=>Ie(e))).slice(1)],toArrayValue(e){if(!b(e))throw new Error("toArrayValue: value must be an object");const t=o.map((t=>{var r;return null!=(r=e[t])?r:null}));for(;null===Pe(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce(((e,t,r)=>{const n=o[r];return null!=n&&null!=t&&(e[n]=t),e}),{})}}}var Le=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Ne=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,De=(e,t)=>`${e}:focus-visible ${t}`,ze=(e,t)=>`${e}:focus-within ${t}`,Be=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Fe=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Ue=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,$e=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,He=(e,t)=>`${e}:placeholder-shown ${t}`,Ve=e=>Ke((t=>e(t,"&")),"[role=group]","[data-group]",".group"),qe=e=>Ke((t=>e(t,"~ &")),"[data-peer]",".peer"),Ke=(e,...t)=>t.map(e).join(", "),We={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ve(Le),_peerHover:qe(Le),_groupFocus:Ve(Ne),_peerFocus:qe(Ne),_groupFocusVisible:Ve(De),_peerFocusVisible:qe(De),_groupActive:Ve(Be),_peerActive:qe(Be),_groupDisabled:Ve(Fe),_peerDisabled:qe(Fe),_groupInvalid:Ve(Ue),_peerInvalid:qe(Ue),_groupChecked:Ve($e),_peerChecked:qe($e),_groupFocusWithin:Ve(ze),_peerFocusWithin:qe(ze),_peerPlaceholderShown:qe(He),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Ge=Object.keys(We);function Ye(e,t){return Ae(String(e).replace(/\./g,"-"),void 0,t)}function Ze(e,t,r={}){const{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if(function(e){return"object"===typeof e&&null!=e&&!Array.isArray(e)}(r)||Array.isArray(r)){const s={};for(const[c,l]of Object.entries(r)){const u=null!=(a=null==i?void 0:i(c))?a:c,d=[...o,u];if(null==n?void 0:n(r,d))return t(r,o);s[u]=e(l,d)}return s}return t(r,o)}(e)}var Xe=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];var Je=e=>Ge.includes(e)||"default"===e;function Qe(e){var t;const r=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),n=function(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,Xe)}(r),i=function(e){return e.semanticTokens}(r),o=function({tokens:e,semanticTokens:t}){const r={};return Ze(e,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})})),Ze(t,((e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})}),{stop:e=>Object.keys(e).every(Je)}),r}({tokens:n,semanticTokens:i}),a=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:s,cssVars:c}=function(e,t){let r={};const n={};for(const[i,o]of Object.entries(e)){const{isSemantic:a,value:s}=o,{variable:c,reference:l}=Ye(i,null==t?void 0:t.cssVarPrefix);if(!a){if(i.startsWith("space")){const e=i.split("."),[t,...r]=e,o=`${t}.-${r.join(".")}`,a=_e.negate(s),u=_e.negate(l);n[o]={value:a,var:c,varRef:u}}r[c]=s,n[i]={value:s,var:c,varRef:l};continue}const u=r=>{const n=[String(i).split(".")[0],r].join(".");if(!e[n])return r;const{reference:o}=Ye(n,null==t?void 0:t.cssVarPrefix);return o},d=b(s)?s:{default:s};r=P(r,Object.entries(d).reduce(((e,[t,r])=>{var n,i;if(!r)return e;const o=u(`${r}`);return"default"===t?(e[c]=o,e):(e[null!=(i=null==(n=We)?void 0:n[t])?i:t]={[c]:o},e)}),{})),n[i]={value:l,var:c,varRef:l}}return{cssVars:r,cssMap:n}}(o,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...c},__cssMap:s,__breakpoints:Me(r.breakpoints)}),r}var et=P({},K,W,G,X,ee,Z,ce,Q,J,ae,se,Y,le,pe,fe,ue,de,te,he),tt=Object.assign({},le,ee,X,J,se),rt=Object.keys(tt),nt=[...Object.keys(et),...Ge],it={...et,...We},ot=e=>e in it;var at=(e,t)=>e.startsWith("--")&&"string"===typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),st=(e,t)=>{var r,n;if(null==t)return t;const i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){const t=[];let r="",n=!1;for(let i=0;i{var a,s,c;const l=x(e,n),u=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,o={};for(const a in e){let s=x(e[a],t);if(null==s)continue;if(s=b(s)&&r(s)?n(s):s,!Array.isArray(s)){o[a]=s;continue}const c=s.slice(0,i.length).length;for(let e=0;et=>ct({theme:t,pseudos:We,configs:et})(e);function ut(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function dt(e,t){for(let r=t+1;r{P(s,{[e]:u?p[e]:{[f]:p[e]}})})):d?s[f]=p:u?P(s,p):s[f]=p)}return s}}function ft(e){return function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(e,["styleConfig","size","variant","colorScheme"])}var pt=new Set([...nt,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),mt=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function gt(e){return mt.has(e)||!pt.has(e)}var vt=(0,i.createContext)({});function yt(){const e=(0,i.useContext)(vt);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}vt.displayName="ColorModeContext";var bt=(e=>{const t=new WeakMap;return(r,n,i,o)=>{if("undefined"===typeof r)return e(r,n,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,i,o);return a.set(n,s),s}})((function(e,t,r,n){const i="string"===typeof t?t.split("."):[t];for(n=0;n{const i=e[n];t(i,n,e)&&(r[n]=i)})),r}var xt=e=>wt(e,(e=>null!==e&&void 0!==e));function _t(e,...t){return function(e){return"function"===typeof e}(e)?e(...t):e}function St(...e){return function(t){e.some((e=>(null==e||e(t),null==t?void 0:t.defaultPrevented)))}}function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Lt(qt,--Ht):0,Ut--,10===Vt&&(Ut=1,Ft--),Vt}function Yt(){return Vt=Ht<$t?Lt(qt,Ht++):0,Ut++,10===Vt&&(Ut=1,Ft++),Vt}function Zt(){return Lt(qt,Ht)}function Xt(){return Ht}function Jt(e,t){return Nt(qt,e,t)}function Qt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function er(e){return Ft=Ut=1,$t=Dt(qt=e),Ht=0,[]}function tr(e){return qt="",e}function rr(e){return Rt(Jt(Ht-1,or(91===e?e+2:40===e?e+1:e)))}function nr(e){for(;(Vt=Zt())&&Vt<33;)Yt();return Qt(e)>2||Qt(Vt)>3?"":" "}function ir(e,t){for(;--t&&Yt()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return Jt(e,Xt()+(t<6&&32==Zt()&&32==Yt()))}function or(e){for(;Yt();)switch(Vt){case e:return Ht;case 34:case 39:34!==e&&39!==e&&or(Vt);break;case 40:41===e&&or(e);break;case 92:Yt()}return Ht}function ar(e,t){for(;Yt()&&e+Vt!==57&&(e+Vt!==84||47!==Zt()););return"/*"+Jt(t,Ht-1)+"*"+Ct(47===e?e:Yt())}function sr(e){for(;!Qt(Zt());)Yt();return Jt(e,Ht)}var cr="-ms-",lr="-moz-",ur="-webkit-",dr="comm",hr="rule",fr="decl",pr="@keyframes";function mr(e,t){for(var r="",n=zt(e),i=0;i0&&Dt(S)-d&&Bt(f>32?xr(S+";",n,r,d-1):xr(It(S," ","")+";",n,r,d-2),c);break;case 59:S+=";";default:if(Bt(_=br(S,t,r,l,u,i,s,b,w=[],x=[],d),o),123===y)if(0===u)yr(S,t,_,_,w,o,d,s,x);else switch(99===h&&110===Lt(S,3)?100:h){case 100:case 108:case 109:case 115:yr(e,_,_,n&&Bt(br(e,_,_,0,0,i,s,b,i,w=[],d),x),i,x,d,s,n?w:x);break;default:yr(S,_,_,_,[""],x,0,s,x)}}l=u=f=0,m=v=1,b=S="",d=a;break;case 58:d=1+Dt(S),f=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Gt())continue;switch(S+=Ct(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[l++]=(Dt(S)-1)*v,v=1;break;case 64:45===Zt()&&(S+=rr(Yt())),h=Zt(),u=d=Dt(b=S+=sr(Xt())),y++;break;case 45:45===p&&2==Dt(S)&&(m=0)}}return o}function br(e,t,r,n,i,o,a,s,c,l,u){for(var d=i-1,h=0===i?o:[""],f=zt(h),p=0,m=0,g=0;p0?h[v]+" "+y:It(y,/&\f/g,h[v])))&&(c[g++]=b);return Kt(e,t,r,0===i?hr:s,c,l,u)}function wr(e,t,r){return Kt(e,t,r,dr,Ct(Vt),Nt(e,2,-2),0)}function xr(e,t,r,n){return Kt(e,t,r,fr,Nt(e,0,n),Nt(e,n+1,-1),n)}var _r=function(e,t,r){for(var n=0,i=0;n=i,i=Zt(),38===n&&12===i&&(t[r]=1),!Qt(i);)Yt();return Jt(e,Ht)},Sr=function(e,t){return tr(function(e,t){var r=-1,n=44;do{switch(Qt(n)){case 0:38===n&&12===Zt()&&(t[r]=1),e[r]+=_r(Ht-1,t,r);break;case 2:e[r]+=rr(n);break;case 4:if(44===n){e[++r]=58===Zt()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ct(n)}}while(n=Yt());return e}(er(e),t))},kr=new WeakMap,Er=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||kr.get(r))&&!n){kr.set(e,!0);for(var i=[],o=Sr(t,i),a=r.props,s=0,c=0;s6)switch(Lt(e,t+1)){case 109:if(45!==Lt(e,t+4))break;case 102:return It(e,/(.+:)(.+)-([^]+)/,"$1"+ur+"$2-$3$1"+lr+(108==Lt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Mt(e,"stretch")?Pr(It(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Lt(e,t+1))break;case 6444:switch(Lt(e,Dt(e)-3-(~Mt(e,"!important")&&10))){case 107:return It(e,":",":"+ur)+e;case 101:return It(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ur+(45===Lt(e,14)?"inline-":"")+"box$3$1"+ur+"$2$3$1"+cr+"$2box$3")+e}break;case 5936:switch(Lt(e,t+11)){case 114:return ur+e+cr+It(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ur+e+cr+It(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ur+e+cr+It(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ur+e+cr+e+e}return e}var Or=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case fr:e.return=Pr(e.value,e.length);break;case pr:return mr([Wt(e,{value:It(e.value,"@","@"+ur)})],n);case hr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mr([Wt(e,{props:[It(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return mr([Wt(e,{props:[It(t,/:(plac\w+)/,":"+ur+"input-$1")]}),Wt(e,{props:[It(t,/:(plac\w+)/,":-moz-$1")]}),Wt(e,{props:[It(t,/:(plac\w+)/,cr+"input-$1")]})],n)}return""}))}}],Tr=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Or;var i,o,a={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Ir={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mr=/[A-Z]|^ms/g,Lr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nr=function(e){return 45===e.charCodeAt(1)},Dr=function(e){return null!=e&&"boolean"!==typeof e},zr=Et((function(e){return Nr(e)?e:e.replace(Mr,"-$&").toLowerCase()})),Br=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Lr,(function(e,t,r){return Ur={name:t,styles:r,next:Ur},t}))}return 1===Ir[e]||Nr(e)||"number"!==typeof t||0===t?t:t+"px"};function Fr(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return Ur={name:r.name,styles:r.styles,next:Ur},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)Ur={name:n.name,styles:n.styles,next:Ur},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?dn:hn},pn=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},mn=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Jr(t,r,n),qr((function(){return Qr(t,r,n)})),null},gn=function e(t,r){var n,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var c=pn(t,r,a),l=c||fn(s),u=!l("as");return function(){var d=arguments,h=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&h.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{0,h.push(d[0][0]);for(var f=d.length,p=1;pt=>{const{theme:r,css:n,__css:i,sx:o,...a}=t,s=wt(a,((e,t)=>ot(t))),c=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(null!=n)for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(e in r&&delete r[e],r[e]=n[e]);return r}({},i,_t(e,t),xt(s),o),l=lt(c)(t.theme);return n?[l,n]:l};function bn(e,t){const{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=gt);const o=yn({baseStyle:r}),a=vn(e,n)(o);return i.forwardRef((function(e,t){const{colorMode:r,forced:n}=yt();return i.createElement(a,{ref:t,"data-theme":n?r:void 0,...e})}))}var wn=function(){const e=new Map;return new Proxy(bn,{apply:(e,t,r)=>bn(...r),get:(t,r)=>(e.has(r)||e.set(r,bn(r)),e.get(r))})}(),xn=r(9524),_n=v((function(e,t){const{direction:r,align:n,justify:i,wrap:o,basis:a,grow:s,shrink:c,...l}=e,u={display:"flex",flexDirection:r,alignItems:n,justifyContent:i,flexWrap:o,flexBasis:a,flexGrow:s,flexShrink:c};return(0,xn.jsx)(wn.div,{ref:t,__css:u,...l})}));_n.displayName="Flex";var Sn=wn("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Sn.displayName="Center";var kn={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},En=(v((function(e,t){const{axis:r="both",...n}=e;return(0,xn.jsx)(wn.div,{ref:t,__css:kn[r],...n,position:"absolute"})})),wn("div"));En.displayName="Box";var An=v((function(e,t){const{size:r,centerContent:n=!0,...i}=e,o=n?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,xn.jsx)(En,{ref:t,boxSize:r,__css:{...o,flexShrink:0,flexGrow:0},...i})}));An.displayName="Square";var Pn=v((function(e,t){const{size:r,...n}=e;return(0,xn.jsx)(An,{size:r,ref:t,borderRadius:"9999px",...n})}));function On(){const e=(0,i.useContext)(Yr);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function Tn(){return{...yt(),theme:On()}}function Cn(e,t,r){const n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return r=>{const o=i.filter(Boolean),a=n.map(((t,n)=>{var i,a;if("breakpoints"===e)return function(e,t,r){var n,i;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,t,null!=(i=o[n])?i:t);return function(e,t,r){var n,i;if(null==t)return t;const o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,`${e}.${t}`,null!=(a=o[n])?a:t)}));return Array.isArray(t)?a:a[0]}}Pn.displayName="Circle";var jn=r(8820);function Rn(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:a,colorMode:s}=Tn(),c=e?bt(a,`components.${e}`):void 0,l=n||c,u=P({theme:a,colorMode:s},null!=(r=null==l?void 0:l.defaultProps)?r:{},xt(function(e,t){const r={};return Object.keys(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),r}(o,["children"]))),d=(0,i.useRef)({});if(l){const e=function(e){return t=>{var r;const{variant:n,size:i,theme:o}=t,a=ht(o);return P({},x(null!=(r=e.baseStyle)?r:{},t),a(e,"sizes",i,t),a(e,"variants",n,t))}}(l),t=e(u);jn(d.current,t)||(d.current=t)}return d.current}function In(e,t={}){return Rn(e,t)}function Mn(e,t={}){return Rn(e,t)}var Ln=v((function(e,t){const r=In("Heading",e),{className:n,...i}=ft(e);return(0,xn.jsx)(wn.h2,{ref:t,className:y("chakra-heading",e.className),...i,__css:r})}));function Nn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,c=(0,i.createContext)(s);return c.displayName=t,[c.Provider,function e(){var t;const s=(0,i.useContext)(c);if(!s&&r){const r=new Error(null!=a?a:`${n} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},c]}Ln.displayName="Heading";var[Dn,zn]=Nn({strict:!1,name:"ButtonGroupContext"});function Bn(e){const{children:t,className:r,...n}=e,o=(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=y("chakra-button__icon",r);return(0,xn.jsx)(wn.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:a,children:o})}Bn.displayName="ButtonIcon";r(4664);var Fn=Gr((function(e,t){var r=e.styles,n=Hr([r],void 0,i.useContext(Yr)),o=i.useRef();return Kr((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),o.current=[r,i],function(){r.flush()}}),[t]),Kr((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Qr(t,n.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function Un(){for(var e=arguments.length,t=new Array(e),r=0;r{const r=In("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...c}=ft(e),l=y("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Hn} ${o} linear infinite`,...r};return(0,xn.jsx)(wn.div,{ref:t,__css:u,className:l,...c,children:n&&(0,xn.jsx)(wn.span,{srOnly:!0,children:n})})}));function qn(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=(0,xn.jsx)(Vn,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...c}=e,l=y("chakra-button__spinner",a),u="start"===r?"marginEnd":"marginStart",d=(0,i.useMemo)((()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s})),[s,t,u,n]);return(0,xn.jsx)(wn.div,{className:l,...c,__css:d,children:o})}function Kn(...e){return t=>{e.forEach((e=>{!function(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)}))}}function Wn(...e){return(0,i.useMemo)((()=>Kn(...e)),e)}Vn.displayName="Spinner",qn.displayName="ButtonSpinner";var Gn=v(((e,t)=>{const r=zn(),n=In("Button",{...r,...e}),{isDisabled:o=(null==r?void 0:r.isDisabled),isLoading:a,isActive:s,children:c,leftIcon:l,rightIcon:u,loadingText:d,iconSpacing:h="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:g,as:v,...b}=ft(e),w=(0,i.useMemo)((()=>{const e={...null==n?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:e}}}),[n,r]),{ref:x,type:_}=function(e){const[t,r]=(0,i.useState)(!e),n=(0,i.useCallback)((e=>{e&&r("BUTTON"===e.tagName)}),[]);return{ref:n,type:t?"button":void 0}}(v),k={rightIcon:u,leftIcon:l,iconSpacing:h,children:c};return(0,xn.jsxs)(wn.button,{ref:Wn(t,x),as:v,type:null!=f?f:_,"data-active":S(s),"data-loading":S(a),__css:w,className:y("chakra-button",g),...b,disabled:o||a,children:[a&&"start"===m&&(0,xn.jsx)(qn,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:h,children:p}),a?d||(0,xn.jsx)(wn.span,{opacity:0,children:(0,xn.jsx)(Yn,{...k})}):(0,xn.jsx)(Yn,{...k}),a&&"end"===m&&(0,xn.jsx)(qn,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:h,children:p})]})}));function Yn(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return(0,xn.jsxs)(xn.Fragment,{children:[t&&(0,xn.jsx)(Bn,{marginEnd:i,children:t}),n,r&&(0,xn.jsx)(Bn,{marginStart:i,children:r})]})}Gn.displayName="Button";var Zn=v((function(e,t){const r=In("Link",e),{className:n,isExternal:i,...o}=ft(e);return(0,xn.jsx)(wn.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:t,className:y("chakra-link",n),...o,__css:r})}));Zn.displayName="Link";const Xn=()=>{const e=()=>{window.location.reload()};return(0,xn.jsx)(_n,{alignItems:"stretch",children:(0,xn.jsx)(Sn,{width:"100%",marginTop:"200px",children:(0,xn.jsxs)(En,{children:[(0,xn.jsx)(Ln,{marginBottom:3,textAlign:"center",children:"Ooops, something went wrong!"}),(0,xn.jsx)(Gn,{marginRight:2,onClick:e,children:"Refresh the page"}),(0,xn.jsx)(Gn,{marginRight:2,onClick:()=>{const e=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(window.localStorage))}`,t=document.createElement("a");t.href=e,t.download="data.json",t.click()},variant:"secondary",children:"Download Backup"}),(0,xn.jsx)(Gn,{marginRight:2,onClick:()=>{window.localStorage.clear(),e()},variant:"warning",children:"Offboard"}),(0,xn.jsx)(Gn,{variant:"tertiary",children:(0,xn.jsx)(Zn,{href:"mailto:umami-support@trili.tech?subject=Umami V2 feedback&body=What is it about? (if a bug report please consider including your account address) %0A PLEASE FILL %0A%0A What is the feedback? %0A PLEASE FILL",rel:"noopener noreferrer",target:"_blank",children:"Report Error"})})]})})})};var Jn=r(5904);const Qn=new Jn.QueryClient,ei=e=>(0,xn.jsx)(Jn.QueryClientProvider,{client:Qn,children:e.children});var ti=r(1584),ri=r(2656),ni=r(1932),ii=r.t(ni,2);let oi=function(e){e()};const ai=()=>oi,si=Symbol.for("react-redux-context"),ci="undefined"!==typeof globalThis?globalThis:{};function li(){var e;if(!i.createContext)return{};const t=null!=(e=ci[si])?e:ci[si]=new Map;let r=t.get(i.createContext);return r||(r=i.createContext(null),t.set(i.createContext,r)),r}const ui=li();function di(e=ui){return function(){return(0,i.useContext)(e)}}const hi=di();let fi=()=>{throw new Error("uSES not initialized!")};const pi=(e,t)=>e===t;function mi(e=ui){const t=e===ui?hi:di(e);return function(e,r={}){const{equalityFn:n=pi,stabilityCheck:o,noopCheck:a}="function"===typeof r?{equalityFn:r}:r;const{store:s,subscription:c,getServerState:l,stabilityCheck:u,noopCheck:d}=t(),h=((0,i.useRef)(!0),(0,i.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),f=fi(c.addNestedSub,s.getState,l||s.getState,h,n);return(0,i.useDebugValue)(f),f}}const gi=mi();r(8196);const vi={notify(){},get:()=>[]};function yi(e,t){let r,n=vi,i=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){const e=ai();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function c(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=vi)}const l={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>n};return l}const bi=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?i.useLayoutEffect:i.useEffect;let wi=null;const xi=function({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:a="once"}){const s=i.useMemo((()=>{const t=yi(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:a}}),[e,n,o,a]),c=i.useMemo((()=>e.getState()),[e]);bi((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,c]);const l=t||ui;return i.createElement(l.Provider,{value:s},r)};function _i(e=ui){const t=e===ui?hi:di(e);return function(){const{store:e}=t();return e}}const Si=_i();function ki(e=ui){const t=e===ui?Si:_i(e);return function(){return t().dispatch}}const Ei=ki();var Ai;function Pi(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:Ni(e)?2:Di(e)?3:0}function Ri(e,t){return 2===ji(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ii(e,t){return 2===ji(e)?e.get(t):e[t]}function Mi(e,t,r){var n=ji(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function Li(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ni(e){return fo&&e instanceof Map}function Di(e){return po&&e instanceof Set}function zi(e){return e.o||e.t}function Bi(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xo(e);delete t[yo];for(var r=wo(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Ui),Object.freeze(e),t&&Ci(e,(function(e,t){return Fi(t,!0)}),!0)),e}function Ui(){Pi(2)}function $i(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Hi(e){var t=_o[e];return t||Pi(18,e),t}function Vi(e,t){_o[e]||(_o[e]=t)}function qi(){return uo}function Ki(e,t){t&&(Hi("Patches"),e.u=[],e.s=[],e.v=t)}function Wi(e){Gi(e),e.p.forEach(Zi),e.p=null}function Gi(e){e===uo&&(uo=e.l)}function Yi(e){return uo={p:[],l:uo,h:e,m:!0,_:0}}function Zi(e){var t=e[yo];0===t.i||1===t.i?t.j():t.g=!0}function Xi(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.O||Hi("ES5").S(t,e,n),n?(r[yo].P&&(Wi(t),Pi(4)),Ti(e)&&(e=Ji(t,e),t.l||eo(t,e)),t.u&&Hi("Patches").M(r[yo].t,e,t.u,t.s)):e=Ji(t,r,[]),Wi(t),t.u&&t.v(t.u,t.s),e!==go?e:void 0}function Ji(e,t,r){if($i(t))return t;var n=t[yo];if(!n)return Ci(t,(function(i,o){return Qi(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=Bi(n.k):n.o,o=i,a=!1;3===n.i&&(o=new Set(i),i.clear(),a=!0),Ci(o,(function(t,o){return Qi(e,n,i,t,o,r,a)})),eo(e,i,!1),r&&e.u&&Hi("Patches").N(n,r,e.u,e.s)}return n.o}function Qi(e,t,r,n,i,o,a){if(Oi(i)){var s=Ji(e,i,o&&t&&3!==t.i&&!Ri(t.R,n)?o.concat(n):void 0);if(Mi(r,n,s),!Oi(s))return;e.m=!1}else a&&r.add(i);if(Ti(i)&&!$i(i)){if(!e.h.D&&e._<1)return;Ji(e,i),t&&t.A.l||eo(e,i)}}function eo(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&Fi(t,r)}function to(e,t){var r=e[yo];return(r?zi(r):e)[t]}function ro(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function no(e){e.P||(e.P=!0,e.l&&no(e.l))}function io(e){e.o||(e.o=Bi(e.t))}function oo(e,t,r){var n=Ni(t)?Hi("MapSet").F(t,r):Di(t)?Hi("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:qi(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=So;r&&(i=[n],o=ko);var a=Proxy.revocable(i,o),s=a.revoke,c=a.proxy;return n.k=c,n.j=s,c}(t,r):Hi("ES5").J(t,r);return(r?r.A:qi()).p.push(n),n}function ao(e){return Oi(e)||Pi(22,e),function e(t){if(!Ti(t))return t;var r,n=t[yo],i=ji(t);if(n){if(!n.P&&(n.i<4||!Hi("ES5").K(n)))return n.t;n.I=!0,r=so(t,i),n.I=!1}else r=so(t,i);return Ci(r,(function(t,i){n&&Ii(n.t,t)===i||Mi(r,t,e(i))})),3===i?new Set(r):r}(e)}function so(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Bi(e)}function co(){function e(e,t){var r=i[e];return r?r.enumerable=t:i[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[yo];return So.get(t,e)},set:function(t){var r=this[yo];So.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][yo];if(!i.P)switch(i.i){case 5:n(i)&&no(i);break;case 4:r(i)&&no(i)}}}function r(e){for(var t=e.t,r=e.k,n=wo(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==yo){var a=t[o];if(void 0===a&&!Ri(t,o))return!0;var s=r[o],c=s&&s[yo];if(c?c.t!==a:!Li(s,a))return!0}}var l=!!t[yo];return n.length!==wo(t).length+(l?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n{fi=e})(ri.useSyncExternalStoreWithSelector),(e=>{wi=e})(ti.useSyncExternalStore),Ai=ni.unstable_batchedUpdates,oi=Ai;var lo,uo,ho="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),fo="undefined"!=typeof Map,po="undefined"!=typeof Set,mo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,go=ho?Symbol.for("immer-nothing"):((lo={})["immer-nothing"]=!0,lo),vo=ho?Symbol.for("immer-draftable"):"__$immer_draftable",yo=ho?Symbol.for("immer-state"):"__$immer_state",bo=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),wo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xo=Object.getOwnPropertyDescriptors||function(e){var t={};return wo(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},_o={},So={get:function(e,t){if(t===yo)return e;var r=zi(e);if(!Ri(r,t))return function(e,t,r){var n,i=ro(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!Ti(n)?n:n===to(e.t,t)?(io(e),e.o[t]=oo(e.A.h,n,e)):n},has:function(e,t){return t in zi(e)},ownKeys:function(e){return Reflect.ownKeys(zi(e))},set:function(e,t,r){var n=ro(zi(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=to(zi(e),t),o=null==i?void 0:i[yo];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Li(r,i)&&(void 0!==r||Ri(e.t,t)))return!0;io(e),no(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==to(e.t,t)||t in e.t?(e.R[t]=!1,io(e),no(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=zi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){Pi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Pi(12)}},ko={};Ci(So,(function(e,t){ko[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ko.deleteProperty=function(e,t){return ko.set.call(this,e,t,void 0)},ko.set=function(e,t,r){return So.set.call(this,e[0],t,r,e[0])};var Eo=function(){function e(e){var t=this;this.O=mo,this.D=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s1?n-1:0),o=1;o=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=Hi("Patches").$;return Oi(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),Ao=new Eo,Po=Ao.produce;Ao.produceWithPatches.bind(Ao),Ao.setAutoFreeze.bind(Ao),Ao.setUseProxies.bind(Ao),Ao.applyPatches.bind(Ao),Ao.createDraft.bind(Ao),Ao.finishDraft.bind(Ao);const Oo=Po;function To(e){return To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},To(e)}function Co(e){var t=function(e,t){if("object"!==To(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==To(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===To(t)?t:String(t)}function jo(e,t,r){return(t=Co(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ro(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Va(e,t){var r=void 0!==e.version?e.version:-1,n=(e.debug,void 0===e.stateReconciler?Ma:e.stateReconciler),i=e.getStoredState||Da,o=void 0!==e.timeout?e.timeout:5e3,a=null,s=!1,c=!0,l=function(e){return e._persist.rehydrated&&a&&!c&&a.update(e),e};return function(u,d){var h=u||{},f=h._persist,p=Ha(h,["_persist"]);if(d.type===Oa){var m=!1,g=function(t,r){m||(d.rehydrate(e.key,t,r),m=!0)};if(o&&setTimeout((function(){!m&&g(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),o),c=!1,a||(a=La(e)),f)return Ua({},t(p,d),{_persist:f});if("function"!==typeof d.rehydrate||"function"!==typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),i(e).then((function(t){var n=e.migrate||function(e,t){return Promise.resolve(e)};n(t,r).then((function(e){g(e)}),(function(e){g(void 0,e)}))}),(function(e){g(void 0,e)})),Ua({},t(p,d),{_persist:{version:r,rehydrated:!1}})}if(d.type===Ta)return s=!0,d.result(function(e){var t=e.storage,r="".concat(void 0!==e.keyPrefix?e.keyPrefix:ka).concat(e.key);return t.removeItem(r,Ba)}(e)),Ua({},t(p,d),{_persist:f});if(d.type===Ea)return d.result(a&&a.flush()),Ua({},t(p,d),{_persist:f});if(d.type===Pa)c=!0;else if(d.type===Aa){if(s)return Ua({},p,{_persist:Ua({},f,{rehydrated:!0})});if(d.key===e.key){var v=t(p,d),y=d.payload,b=Ua({},!1!==n&&void 0!==y?n(y,u,v,e):v,{_persist:Ua({},f,{rehydrated:!0})});return l(b)}}if(!f)return t(u,d);var w=t(p,d);return w===p?u:l(Ua({},w,{_persist:f}))}}function qa(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:Ya,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ca:return Wa({},e,{registry:[].concat(qa(e.registry),[t.key])});case Aa:var r=e.registry.indexOf(t.key),n=qa(e.registry);return n.splice(r,1),Wa({},e,{registry:n,bootstrapped:0===n.length});default:return e}};var Xa=r(7576);const Ja={html:"",seen:!0},Qa=fa({name:"announcements",initialState:Ja,reducers:{reset:()=>Ja,setCurrent:(e,{payload:t})=>{t!==e.html&&(e.seen=!1),e.html=t},setSeen:e=>{e.seen=!0}}}),es={0:e=>Po(e,(e=>{e.multisigs.labelsMap={}})),1:e=>Po(e,(e=>{e.announcements=Ja}))};var ts=r(656),rs=r(4240),ns=r(7728),is=r(6800),os=r(8832),as=r.n(os),ss=r(5272),cs=r.n(ss);class ls extends Error{}class us extends ls{}class ds extends ls{}class hs extends ls{}class fs extends ls{}class ps extends ls{}class ms extends us{constructor(e,t){super(),this.address=e,this.errorDetail=t,this.name="InvalidAddressError",this.message=`Invalid address "${e}"`,this.message+=t?` ${t}.`:"."}}class gs extends us{constructor(e,t){super(),this.blockHash=e,this.errorDetail=t,this.name="InvalidBlockHashError",this.message=`Invalid block hash "${e}"`,this.message+=t?` ${t}.`:"."}}class vs extends us{constructor(e){super(),this.amount=e,this.name="InvalidAmountError",this.message=`Invalid amount "${e}"`}}class ys extends us{constructor(e,t){super(),this.derivationPath=e,this.errorDetail=t,this.name="InvalidDerivationPathError",this.message=`Invalid derivation path "${e}"`,this.message+=t?` ${t}.`:"."}}class bs extends us{constructor(e,t){super(),this.hexString=e,this.errorDetail=t,this.name="InvalidHexStringError",this.message=`Invalid hex string "${e}"`,this.message+=t?` ${t}.`:"."}}class ws extends us{constructor(e,t){super(),this.msg=e,this.errorDetail=t,this.name="InvalidMessageError",this.message=`Invalid message "${e}"`,this.message+=t?` ${t}.`:"."}}class xs extends us{constructor(e,t,r,n){super(),this.viewName=e,this.sigs=t,this.args=r,this.cause=n,this.name="InvalidViewParameterError",this.message=`Invalid view arguments ${JSON.stringify(r)} received for name "${e}" expecting one of the following signatures ${JSON.stringify(t)}.`}}class _s extends us{constructor(e){super(),this.errorDetail=e,this.name="InvalidKeyError",this.message="Invalid private key",this.message+=e?` ${e}.`:"."}}class Ss extends us{constructor(e,t){super(),this.publicKey=e,this.errorDetail=t,this.name="InvalidPublicKeyError",this.message=`Invalid public key "${e}"`,this.message+=t?` ${t}.`:"."}}class ks extends us{constructor(e,t){super(),this.contractAddress=e,this.errorDetail=t,this.name="InvalidContractAddressError",this.message=`Invalid contract address "${e}"`,this.message+=t?` ${t}.`:"."}}class Es extends us{constructor(e,t){super(),this.chainId=e,this.errorDetail=t,this.name="InvalidChainIdError",this.message=`Invalid chain id "${e}"`,this.message+=t?` ${t}.`:"."}}class As extends us{constructor(e,t){super(),this.keyHash=e,this.errorDetail=t,this.name="InvalidKeyHashError",this.message=`Invalid public key hash "${e}"`,this.message+=t?` ${t}.`:"."}}class Ps extends us{constructor(e,t){super(),this.operationHash=e,this.errorDetail=t,this.name="InvalidOperationHashError",this.message=`Invalid operation hash "${e}"`,this.message+=t?` ${t}.`:"."}}class Os extends us{constructor(e,t){super(),this.operationKind=e,this.errorDetail=t,this.name="InvalidOperationKindError",this.message=`Invalid operation kind "${e}"`,this.message+=t?` ${t}.`:"."}}class Ts extends fs{constructor(e){super(),this.message=e,this.name="DeprecationError"}}class Cs extends fs{constructor(e){super(),this.message=e,this.name="ProhibitedActionError"}}class js extends ls{constructor(e,t){super(),this.pkh=e,this.cause=t,this.name="PublicKeyNotFoundError",this.message=`Public key not found of this address "${e}" in either wallet or contract API.`}}var Rs=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Is=Math.ceil,Ms=Math.floor,Ls="[BigNumber Error] ",Ns=Ls+"Number primitive has more than 15 significant digits: ",Ds=1e14,zs=14,Bs=9007199254740991,Fs=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Us=1e7,$s=1e9;function Hs(e){var t=0|e;return e>0||e===t?t:t-1}function Vs(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nl^r?1:-1;for(s=(c=i.length)<(l=o.length)?c:l,a=0;ao[a]^r?1:-1;return c==l?0:c>l^r?1:-1}function Ks(e,t,r,n){if(er||e!==Ms(e))throw Error(Ls+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Ws(e){var t=e.c.length-1;return Hs(e.e/zs)==t&&e.c[t]%2!=0}function Gs(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Ys(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else th?g.c=g.e=null:e.e=10;u/=10,l++);return void(l>h?g.c=g.e=null:(g.e=l,g.c=[e]))}m=String(e)}else{if(!Rs.test(m=String(e)))return i(g,m,f);g.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(l=m.indexOf("."))>-1&&(m=m.replace(".","")),(u=m.search(/e/i))>0?(l<0&&(l=u),l+=+m.slice(u+1),m=m.substring(0,u)):l<0&&(l=m.length)}else{if(Ks(t,2,v.length,"Base"),10==t&&y)return S(g=new b(e),s+g.e+1,c);if(m=String(e),f="number"==typeof e){if(0*e!=0)return i(g,m,f,t);if(g.s=1/e<0?(m=m.slice(1),-1):1,b.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(Ns+e)}else g.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(r=v.slice(0,t),l=u=0,p=m.length;ul){l=p;continue}}else if(!a&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){a=!0,u=-1,l=0;continue}return i(g,String(e),f,t)}f=!1,(l=(m=n(m,t,10,g.s)).indexOf("."))>-1?m=m.replace(".",""):l=m.length}for(u=0;48===m.charCodeAt(u);u++);for(p=m.length;48===m.charCodeAt(--p););if(m=m.slice(u,++p)){if(p-=u,f&&b.DEBUG&&p>15&&(e>Bs||e!==Ms(e)))throw Error(Ns+g.s*e);if((l=l-u-1)>h)g.c=g.e=null;else if(l=u)?Gs(d,a):Ys(d,a,"0");else if(o=(e=S(new b(e),t,r)).e,s=(d=Vs(e.c)).length,1==n||2==n&&(t<=o||o<=l)){for(;ss){if(--t>0)for(d+=".";t--;d+="0");}else if((t+=o-s)>0)for(o+1==s&&(d+=".");t--;d+="0");return e.s<0&&i?"-"+d:d}function x(e,t){for(var r,n,i=1,o=new b(e[0]);i=10;i/=10,n++);return(r=n+r*zs-1)>h?e.c=e.e=null:r=10;s/=10,i++);if((o=t-i)<0)o+=zs,a=t,c=f[l=0],u=Ms(c/p[i-a-1]%10);else if((l=Is((o+1)/zs))>=f.length){if(!n)break e;for(;f.length<=l;f.push(0));c=u=0,i=1,a=(o%=zs)-zs+1}else{for(c=s=f[l],i=1;s>=10;s/=10,i++);u=(a=(o%=zs)-zs+i)<0?0:Ms(c/p[i-a-1]%10)}if(n=n||t<0||null!=f[l+1]||(a<0?c:c%p[i-a-1]),n=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?c/p[i-a]:0:f[l-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=p[(zs-t%zs)%zs],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=l,s=1,l--):(f.length=l+1,s=p[zs-o],f[l]=a>0?Ms(c/p[i-a]%p[a])*s:0),n)for(;;){if(0==l){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,f[0]==Ds&&(f[0]=1));break}if(f[l]+=s,f[l]!=Ds)break;f[l--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>h?e.c=e.e=null:e.e=u?Gs(t,r):Ys(t,r,"0"),e.s<0?"-"+t:t)}return b.clone=e,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(Ls+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(Ks(r=e[t],0,$s,t),s=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(Ks(r=e[t],0,8,t),c=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(Ks(r[0],-$s,0,t),Ks(r[1],0,$s,t),l=r[0],u=r[1]):(Ks(r,-$s,$s,t),l=-(u=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)Ks(r[0],-$s,-1,t),Ks(r[1],1,$s,t),d=r[0],h=r[1];else{if(Ks(r,-$s,$s,t),!r)throw Error(Ls+t+" cannot be zero: "+r);d=-(h=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(Ls+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw f=!r,Error(Ls+"crypto unavailable");f=r}else f=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(Ks(r=e[t],0,9,t),p=r),e.hasOwnProperty(t="POW_PRECISION")&&(Ks(r=e[t],0,$s,t),m=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(Ls+t+" not an object: "+r);g=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(Ls+t+" invalid: "+r);y="0123456789"==r.slice(0,10),v=r}}return{DECIMAL_PLACES:s,ROUNDING_MODE:c,EXPONENTIAL_AT:[l,u],RANGE:[d,h],CRYPTO:f,MODULO_MODE:p,POW_PRECISION:m,FORMAT:g,ALPHABET:v}},b.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!b.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-$s&&i<=$s&&i===Ms(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%zs)<1&&(t+=zs),String(n[0]).length==t){for(t=0;t=Ds||r!==Ms(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(Ls+"Invalid BigNumber: "+e)},b.maximum=b.max=function(){return x(arguments,-1)},b.minimum=b.min=function(){return x(arguments,1)},b.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return Ms(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var r,n,i,o,c,l=0,u=[],d=new b(a);if(null==e?e=s:Ks(e,0,$s),o=Is(e/zs),f)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(o*=2));l>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[l]=n[0],r[l+1]=n[1]):(u.push(c%1e14),l+=2);l=o/2}else{if(!crypto.randomBytes)throw f=!1,Error(Ls+"crypto unavailable");for(r=crypto.randomBytes(o*=7);l=9e15?crypto.randomBytes(7).copy(r,l):(u.push(c%1e14),l+=7);l=o/7}if(!f)for(;l=10;c/=10,l++);lr-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,l){var u,d,h,f,p,g,y,w,x=n.indexOf("."),_=s,S=c;for(x>=0&&(f=m,m=0,n=n.replace(".",""),g=(w=new b(i)).pow(n.length-x),m=f,w.c=t(Ys(Vs(g.c),g.e,"0"),10,o,e),w.e=w.c.length),h=f=(y=t(n,i,o,l?(u=v,e):(u=e,v))).length;0==y[--f];y.pop());if(!y[0])return u.charAt(0);if(x<0?--h:(g.c=y,g.e=h,g.s=a,y=(g=r(g,w,_,S,o)).c,p=g.r,h=g.e),x=y[d=h+_+1],f=o/2,p=p||d<0||null!=y[d+1],p=S<4?(null!=x||p)&&(0==S||S==(g.s<0?3:2)):x>f||x==f&&(4==S||p||6==S&&1&y[d-1]||S==(g.s<0?8:7)),d<1||!y[0])n=p?Ys(u.charAt(1),-_,u.charAt(0)):u.charAt(0);else{if(y.length=d,p)for(--o;++y[--d]>o;)y[d]=0,d||(++h,y=[1].concat(y));for(f=y.length;!y[--f];);for(x=0,n="";x<=f;n+=u.charAt(y[x++]));n=Ys(n,h,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,l=t%Us,u=t/Us|0;for(e=e.slice();c--;)s=((i=l*(o=e[c]%Us)+(n=u*o+(a=e[c]/Us|0)*l)%Us*Us+s)/r|0)+(n/Us|0)+u*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,s){var c,l,u,d,h,f,p,m,g,v,y,w,x,_,k,E,A,P=n.s==i.s?1:-1,O=n.c,T=i.c;if(!O||!O[0]||!T||!T[0])return new b(n.s&&i.s&&(O?!T||O[0]!=T[0]:T)?O&&0==O[0]||!T?0*P:P/0:NaN);for(g=(m=new b(P)).c=[],P=o+(l=n.e-i.e)+1,s||(s=Ds,l=Hs(n.e/zs)-Hs(i.e/zs),P=P/zs|0),u=0;T[u]==(O[u]||0);u++);if(T[u]>(O[u]||0)&&l--,P<0)g.push(1),d=!0;else{for(_=O.length,E=T.length,u=0,P+=2,(h=Ms(s/(T[0]+1)))>1&&(T=e(T,h,s),O=e(O,h,s),E=T.length,_=O.length),x=E,y=(v=O.slice(0,E)).length;y=s/2&&k++;do{if(h=0,(c=t(T,v,E,y))<0){if(w=v[0],E!=y&&(w=w*s+(v[1]||0)),(h=Ms(w/k))>1)for(h>=s&&(h=s-1),p=(f=e(T,h,s)).length,y=v.length;1==t(f,v,p,y);)h--,r(f,E=10;P/=10,u++);S(m,o+(m.e=u+l*zs-1)+1,a,d)}else m.e=l,m.r=+d;return m}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,c){var l,u=s?a:a.replace(i,"");if(n.test(u))o.s=isNaN(u)?null:u<0?-1:1;else{if(!s&&(u=u.replace(e,(function(e,t,r){return l="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=l?e:t})),c&&(l=c,u=u.replace(t,"$1").replace(r,"0.$1")),a!=u))return new b(u,l);if(b.DEBUG)throw Error(Ls+"Not a"+(c?" base "+c:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),o.absoluteValue=o.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return qs(this,new b(e,t))},o.decimalPlaces=o.dp=function(e,t){var r,n,i,o=this;if(null!=e)return Ks(e,0,$s),null==t?t=c:Ks(t,0,8),S(new b(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-Hs(this.e/zs))*zs,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},o.dividedBy=o.div=function(e,t){return r(this,new b(e,t),s,c)},o.dividedToIntegerBy=o.idiv=function(e,t){return r(this,new b(e,t),0,1)},o.exponentiatedBy=o.pow=function(e,t){var r,n,i,o,s,l,u,d,h=this;if((e=new b(e)).c&&!e.isInteger())throw Error(Ls+"Exponent not an integer: "+k(e));if(null!=t&&(t=new b(t)),s=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new b(Math.pow(+k(h),s?e.s*(2-Ws(e)):+k(e))),t?d.mod(t):d;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new b(NaN);(n=!l&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||s&&h.c[1]>=24e7:h.c[0]<8e13||s&&h.c[0]<=9999975e7)))return o=h.s<0&&Ws(e)?-0:0,h.e>-1&&(o=1/o),new b(l?1/o:o);m&&(o=Is(m/zs+2))}for(s?(r=new b(.5),l&&(e.s=1),u=Ws(e)):u=(i=Math.abs(+k(e)))%2,d=new b(a);;){if(u){if(!(d=d.times(h)).c)break;o?d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}if(i){if(0===(i=Ms(i/2)))break;u=i%2}else if(S(e=e.times(r),e.e+1,1),e.e>14)u=Ws(e);else{if(0===(i=+k(e)))break;u=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}return n?d:(l&&(d=a.div(d)),t?d.mod(t):o?S(d,m,c,undefined):d)},o.integerValue=function(e){var t=new b(this);return null==e?e=c:Ks(e,0,8),S(t,t.e+1,e)},o.isEqualTo=o.eq=function(e,t){return 0===qs(this,new b(e,t))},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return qs(this,new b(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return 1===(t=qs(this,new b(e,t)))||0===t},o.isInteger=function(){return!!this.c&&Hs(this.e/zs)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return qs(this,new b(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return-1===(t=qs(this,new b(e,t)))||0===t},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&0==this.c[0]},o.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new b(e,t)).s,!s||!t)return new b(NaN);if(s!=t)return e.s=-t,a.plus(e);var l=a.e/zs,u=e.e/zs,d=a.c,h=e.c;if(!l||!u){if(!d||!h)return d?(e.s=-t,e):new b(h?a:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new b(d[0]?a:3==c?-0:0)}if(l=Hs(l),u=Hs(u),d=d.slice(),s=l-u){for((o=s<0)?(s=-s,i=d):(u=l,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=d.length)<(t=h.length))?s:t,s=t=0;t0)for(;t--;d[r++]=0);for(t=Ds-1;n>s;){if(d[--n]=0;){for(r=0,h=w[i]%g,f=w[i]/g|0,o=i+(a=c);o>i;)r=((l=h*(l=y[--a]%g)+(s=f*l+(u=y[a]/g|0)*h)%g*g+p[o]+r)/m|0)+(s/g|0)+f*u,p[o--]=l%m;p[o]=r}return r?++n:p.splice(0,1),_(e,p,n)},o.negated=function(){var e=new b(this);return e.s=-e.s||null,e},o.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new b(e,t)).s,!i||!t)return new b(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/zs,a=e.e/zs,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new b(i/0);if(!s[0]||!c[0])return c[0]?e:new b(s[0]?n:0*i)}if(o=Hs(o),a=Hs(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/Ds|0,s[t]=Ds===s[t]?0:s[t]%Ds;return i&&(s=[i].concat(s),++a),_(e,s,a)},o.precision=o.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return Ks(e,1,$s),null==t?t=c:Ks(t,0,8),S(new b(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*zs+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},o.shiftedBy=function(e){return Ks(e,-9007199254740991,Bs),this.times("1e"+e)},o.squareRoot=o.sqrt=function(){var e,t,n,i,o,a=this,l=a.c,u=a.s,d=a.e,h=s+4,f=new b("0.5");if(1!==u||!l||!l[0])return new b(!u||u<0&&(!l||l[0])?NaN:l?a:1/0);if(0==(u=Math.sqrt(+k(a)))||u==1/0?(((t=Vs(l)).length+d)%2==0&&(t+="0"),u=Math.sqrt(+t),d=Hs((d+1)/2)-(d<0||d%2),n=new b(t=u==1/0?"5e"+d:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+d)):n=new b(u+""),n.c[0])for((u=(d=n.e)+h)<3&&(u=0);;)if(o=n,n=f.times(o.plus(r(a,o,h,1))),Vs(o.c).slice(0,u)===(t=Vs(n.c)).slice(0,u)){if(n.e0&&p>0){for(o=p%s||s,u=f.substr(0,o);o0&&(u+=l+f.slice(o)),h&&(u="-"+u)}n=d?u+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):u}return(r.prefix||"")+n+(r.suffix||"")},o.toFraction=function(e){var t,n,i,o,s,l,u,d,f,p,m,g,v=this,y=v.c;if(null!=e&&(!(u=new b(e)).isInteger()&&(u.c||1!==u.s)||u.lt(a)))throw Error(Ls+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+k(u));if(!y)return new b(v);for(t=new b(a),f=n=new b(a),i=d=new b(a),g=Vs(y),s=t.e=g.length-v.e-1,t.c[0]=Fs[(l=s%zs)<0?zs+l:l],e=!e||u.comparedTo(t)>0?s>0?t:f:u,l=h,h=1/0,u=new b(g),d.c[0]=0;p=r(u,t,0,1),1!=(o=n.plus(p.times(i))).comparedTo(e);)n=i,i=o,f=d.plus(p.times(o=f)),d=o,t=u.minus(p.times(o=t)),u=o;return o=r(e.minus(n),i,0,1),d=d.plus(o.times(f)),n=n.plus(o.times(i)),d.s=f.s=v.s,m=r(f,i,s*=2,c).minus(v).abs().comparedTo(r(d,n,s,c).minus(v).abs())<1?[f,i]:[d,n],h=l,m},o.toNumber=function(){return+k(this)},o.toPrecision=function(e,t){return null!=e&&Ks(e,1,$s),w(this,e,t,2)},o.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=l||o>=u?Gs(Vs(r.c),o):Ys(Vs(r.c),o,"0"):10===e&&y?t=Ys(Vs((r=S(new b(r),s+o+1,c)).c),r.e,"0"):(Ks(e,2,v.length,"Base"),t=n(Ys(Vs(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},o.valueOf=o.toJSON=function(){return k(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,null!=t&&b.set(t),b}();const Xs=Zs;var Js,Qs=r(600),ec=r.n(Qs),tc=r(648),rc=r.n(tc);!function(e){e.TZ1="tz1",e.TZ2="tz2",e.TZ3="tz3",e.TZ4="tz4",e.KT="KT",e.KT1="KT1",e.EDSK2="edsk2",e.SPSK="spsk",e.P2SK="p2sk",e.EDPK="edpk",e.SPPK="sppk",e.P2PK="p2pk",e.BLPK="BLpk",e.EDESK="edesk",e.SPESK="spesk",e.P2ESK="p2esk",e.EDSK="edsk",e.EDSIG="edsig",e.SPSIG="spsig",e.P2SIG="p2sig",e.SIG="sig",e.NET="Net",e.NCE="nce",e.B="B",e.O="o",e.LO="Lo",e.LLO="LLo",e.P="P",e.CO="Co",e.ID="id",e.EXPR="expr",e.TZ="TZ",e.VH="vh",e.SASK="sask",e.ZET1="zet1",e.SR1="sr1",e.SRC1="src1"}(Js||(Js={}));const nc={[Js.TZ1]:new Uint8Array([6,161,159]),[Js.TZ2]:new Uint8Array([6,161,161]),[Js.TZ3]:new Uint8Array([6,161,164]),[Js.TZ4]:new Uint8Array([6,161,166]),[Js.KT]:new Uint8Array([2,90,121]),[Js.KT1]:new Uint8Array([2,90,121]),[Js.EDSK]:new Uint8Array([43,246,78,7]),[Js.EDSK2]:new Uint8Array([13,15,58,7]),[Js.SPSK]:new Uint8Array([17,162,224,201]),[Js.P2SK]:new Uint8Array([16,81,238,189]),[Js.EDPK]:new Uint8Array([13,15,37,217]),[Js.SPPK]:new Uint8Array([3,254,226,86]),[Js.P2PK]:new Uint8Array([3,178,139,127]),[Js.BLPK]:new Uint8Array([6,149,135,204]),[Js.EDESK]:new Uint8Array([7,90,60,179,41]),[Js.SPESK]:new Uint8Array([9,237,241,174,150]),[Js.P2ESK]:new Uint8Array([9,48,57,115,171]),[Js.EDSIG]:new Uint8Array([9,245,205,134,18]),[Js.SPSIG]:new Uint8Array([13,115,101,19,63]),[Js.P2SIG]:new Uint8Array([54,240,44,52]),[Js.SIG]:new Uint8Array([4,130,43]),[Js.NET]:new Uint8Array([87,82,0]),[Js.NCE]:new Uint8Array([69,220,169]),[Js.B]:new Uint8Array([1,52]),[Js.O]:new Uint8Array([5,116]),[Js.LO]:new Uint8Array([133,233]),[Js.LLO]:new Uint8Array([29,159,109]),[Js.P]:new Uint8Array([2,170]),[Js.CO]:new Uint8Array([79,179]),[Js.ID]:new Uint8Array([153,103]),[Js.EXPR]:new Uint8Array([13,44,64,27]),[Js.TZ]:new Uint8Array([2,90,121]),[Js.VH]:new Uint8Array([1,106,242]),[Js.SASK]:new Uint8Array([11,237,20,92]),[Js.ZET1]:new Uint8Array([18,71,40,223]),[Js.SR1]:new Uint8Array([6,124,117]),[Js.SRC1]:new Uint8Array([17,165,134,138])},ic={[Js.TZ1]:20,[Js.TZ2]:20,[Js.TZ3]:20,[Js.TZ4]:20,[Js.KT]:20,[Js.KT1]:20,[Js.EDPK]:32,[Js.SPPK]:33,[Js.P2PK]:33,[Js.BLPK]:48,[Js.EDSIG]:64,[Js.SPSIG]:64,[Js.P2SIG]:64,[Js.SIG]:64,[Js.NET]:4,[Js.B]:32,[Js.P]:32,[Js.O]:32,[Js.VH]:32,[Js.SASK]:169,[Js.ZET1]:43,[Js.SR1]:20,[Js.SRC1]:32};class oc extends fs{constructor(e,t){super(),this.value=e,this.desiredType=t,this.name="ValueConversionError",this.message=`Unable to convert ${e} to a ${t}`}}var ac;function sc(e){return"string"===typeof e&&e in nc}function cc(e,t){const r=new RegExp(`^(${t.join("|")})`).exec(e);if(!r||0===r.length)return ac.NO_PREFIX_MATCHED;const n=r[0];if(!sc(n))return ac.NO_PREFIX_MATCHED;e.includes("%")&&(e=e.split("%")[0]);if(!/^(KT1\w{33})$/.test(e)&&"KT1"===n)return ac.INVALID_CHECKSUM;let i=cs().decodeUnsafe(e);return i?(i=i.slice(nc[n].length),i.length!==ic[n]?ac.INVALID_LENGTH:ac.VALID):ac.INVALID_CHECKSUM}!function(e){e[e.NO_PREFIX_MATCHED=0]="NO_PREFIX_MATCHED",e[e.INVALID_CHECKSUM=1]="INVALID_CHECKSUM",e[e.INVALID_LENGTH=2]="INVALID_LENGTH",e[e.VALID=3]="VALID"}(ac||(ac={}));const lc=[Js.TZ1,Js.TZ2,Js.TZ3,Js.TZ4],uc=[Js.KT1],dc=[Js.EDSIG,Js.P2SIG,Js.SPSIG,Js.SIG],hc=[Js.EDPK,Js.SPPK,Js.P2PK,Js.BLPK],fc=[Js.O],pc=(Js.P,[Js.B]),mc=[Js.SR1];function gc(e){return cc(e,[...lc,...uc,...mc])}function vc(e){return cc(e,[Js.NET])}function yc(e){return cc(e,uc)}function bc(e){return cc(e,lc)}function wc(e){return cc(e,dc)}function xc(e){return cc(e,hc)}function _c(e){return cc(e,fc)}function Sc(e){switch(e){case ac.NO_PREFIX_MATCHED:return"with unsupported prefix";case ac.INVALID_CHECKSUM:return"failed checksum";case ac.INVALID_LENGTH:return"with incorrect length";default:return""}}const kc=6,Ec=3;function Ac(e){switch(e){case"tz":return kc;case"mtz":return Ec;default:return 0}}function Pc(e="mutez",t="mutez",r){const n=new Xs(r);return n.isNaN()?r:n.multipliedBy(Math.pow(10,Ac(e))).dividedBy(Math.pow(10,Ac(t)))}function Oc(e,t){const r="string"===typeof e?Uint8Array.from(rs.Buffer.from(e,"hex")):e,n=new Uint8Array(t.length+r.length);return n.set(t),n.set(r,t.length),cs().encode(rs.Buffer.from(n.buffer))}const Tc=(e,t)=>cs().decode(e).slice(t.length);function Cc(e){if("00"===e.substring(0,2)){const t={"0000":nc.tz1,"0001":nc.tz2,"0002":nc.tz3};return Oc(e.substring(4),t[e.substring(0,4)])}return Oc(e.substring(2,42),nc.KT)}function jc(e){if("0"===e[0]){const t={"00":new Uint8Array([6,161,159]),"01":new Uint8Array([6,161,161]),"02":new Uint8Array([6,161,164])};return Oc(e.substring(2),t[e.substring(0,2)])}}const Rc=e=>{if(e.length%2!==0)throw new bs(e,": Expecting even number of characters");const t=Nc(e);if(!t.match(/^([\da-f]{2})*$/gi))throw new bs(e,": Only characters 0-9, a-f and A-F are expected. Optionally, it can be prefixed with '0x'");const r=new Uint8Array(t.length/2);let n=0;for(let i=0;i{const r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r},Mc=e=>{const t=[];return e.forEach((e=>{const r=`00${e.toString(16)}`.slice(-2);t.push(r)})),t.join("")};function Lc(e){const t=Nc(e);if(!t.match(/^(0x)?([\da-f]{2})*$/gi))throw new bs(e,": Expecting even number of characters: 0-9, a-z, A-Z, optionally prefixed with 0x");return rs.Buffer.from(t,"hex")}function Nc(e){return e.startsWith("0x")?e.slice(2):e}var Dc=r(4240).Buffer;const zc=async(e,t)=>Bc(Dc.from(e,"utf-8"),t,6e5),Bc=async(e,t,r)=>{const n={name:"PBKDF2",salt:t,iterations:r,hash:"SHA-256"},i=await crypto.subtle.importKey("raw",e,n.name,!1,["deriveKey"]);return await crypto.subtle.deriveKey(n,i,{name:Uc,length:256},!1,["encrypt","decrypt"])};var Fc=r(4240).Buffer;const Uc="AES-GCM",$c=async(e,t)=>{const r=crypto.getRandomValues(new Uint8Array(32)),n=await zc(t,r),i=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.encrypt({name:Uc,iv:i},n,Fc.from(e,"utf-8"));return{iv:Mc(Fc.from(i)),salt:Mc(Fc.from(r)),data:Mc(Fc.from(o))}},Hc=async(e,t,r="V2")=>{const{iv:n,salt:i,data:o}=e;try{const e="V2"===r?await zc(t,Lc(i)):await(async(e,t)=>Bc(Dc.alloc(32,e,"utf-8"),t,1e4))(t,Lc(i)),a=await crypto.subtle.decrypt({name:Uc,iv:Lc(n)},e,Lc(o));return Fc.from(a).toString("utf-8")}catch(a){throw new Error("Error decrypting data: Invalid password")}},Vc=ba("accounts/changeMnemonicPassword",(async({currentPassword:e,newPassword:t},{getState:r})=>{if(e===t)throw new Error("New password must be different from the current password");const{items:n,seedPhrases:i}=r().accounts;if(0===n.filter((e=>"mnemonic"===e.type)).length)throw new Error("No mnemonic accounts found");const o=await Promise.all(Object.entries(i).map((async([r,n])=>{if(!n)throw new Error("No encrypted mnemonic found");try{const i=await Hc(n,e);return[r,await $c(i,t)]}catch(i){throw new Error(i.message)}})));return{newEncryptedMnemonics:(0,ts.fromPairs)(o)}})),qc={items:[],seedPhrases:{},secretKeys:{}},Kc=fa({name:"accounts",initialState:qc,extraReducers:e=>{e.addCase(Vc.fulfilled,((e,t)=>{const{newEncryptedMnemonics:r}=t.payload;e.seedPhrases=r}))},reducers:{reset:()=>qc,removeMnemonicAndAccounts:(e,{payload:t})=>{const{fingerPrint:r}=t,n=e.items.filter((e=>!("mnemonic"===e.type&&e.seedFingerPrint===r)));e.items=n,delete e.seedPhrases[r]},removeNonMnemonicAccounts:(e,{payload:t})=>{e.items=(0,ts.remove)(e.items,(e=>"mnemonic"===e.type||e.type!==t.accountType))},removeAccount:(e,{payload:t})=>{(0,ts.remove)(e.items,(e=>e.address.pkh===t.address.pkh))},renameAccount:(e,{payload:t})=>{const{account:r,newName:n}=t;if(0===n.length)throw new Error("Cannot rename account to an empty name.");if(e.items.find((e=>e.label===n)))throw new Error(`Cannot rename account ${r.address.pkh} to ${n} since the name already exists.`);const i=e.items.find((e=>e.address.pkh===r.address.pkh&&e.label===r.label));i&&(i.label=n)},addAccount:(e,{payload:t})=>{e.items=Wc(e.items,[t])},addMnemonicAccounts:(e,{payload:{encryptedMnemonic:t,accounts:r,seedFingerprint:n}})=>{e.items=Wc(e.items,r),e.seedPhrases[n]=t},addMockMnemonicAccounts:(e,{payload:t})=>{e.items=Wc(e.items,t)},addSecretKey:(e,{payload:{pkh:t,encryptedSecretKey:r}})=>{e.secretKeys[t]=r},removeSecretKey:(e,{payload:t})=>{delete e.secretKeys[t.address.pkh]}}}),Wc=(e,t)=>(t.forEach((t=>{if(e.some((e=>e.address.pkh===t.address.pkh)))throw new Error(`Can't add account ${t.address.pkh} in store since it already exists.`)})),[...e,...t]);Kc.actions;var Gc,Yc;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),n={};for(const e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(Gc||(Gc={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Yc||(Yc={}));const Zc=Gc.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xc=e=>{switch(typeof e){case"undefined":return Zc.undefined;case"string":return Zc.string;case"number":return isNaN(e)?Zc.nan:Zc.number;case"boolean":return Zc.boolean;case"function":return Zc.function;case"bigint":return Zc.bigint;case"symbol":return Zc.symbol;case"object":return Array.isArray(e)?Zc.array:null===e?Zc.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?Zc.promise:"undefined"!==typeof Map&&e instanceof Map?Zc.map:"undefined"!==typeof Set&&e instanceof Set?Zc.set:"undefined"!==typeof Date&&e instanceof Date?Zc.date:Zc.object;default:return Zc.unknown}},Jc=Gc.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Qc extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;ne.message)){const t={},r=[];for(const n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}Qc.create=e=>new Qc(e);const el=(e,t)=>{let r;switch(e.code){case Jc.invalid_type:r=e.received===Zc.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Jc.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Gc.jsonStringifyReplacer)}`;break;case Jc.unrecognized_keys:r=`Unrecognized key(s) in object: ${Gc.joinValues(e.keys,", ")}`;break;case Jc.invalid_union:r="Invalid input";break;case Jc.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Gc.joinValues(e.options)}`;break;case Jc.invalid_enum_value:r=`Invalid enum value. Expected ${Gc.joinValues(e.options)}, received '${e.received}'`;break;case Jc.invalid_arguments:r="Invalid function arguments";break;case Jc.invalid_return_type:r="Invalid function return type";break;case Jc.invalid_date:r="Invalid date";break;case Jc.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Gc.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Jc.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Jc.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Jc.custom:r="Invalid input";break;case Jc.invalid_intersection_types:r="Intersection results could not be merged";break;case Jc.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Jc.not_finite:r="Number must be finite";break;default:r=t.defaultError,Gc.assertNever(e)}return{message:r}};let tl=el;function rl(){return tl}const nl=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o};let s="";const c=n.filter((e=>!!e)).slice().reverse();for(const l of c)s=l(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}};function il(e,t){const r=nl({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,rl(),el].filter((e=>!!e))});e.common.issues.push(r)}class ol{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const r=[];for(const n of t){if("aborted"===n.status)return al;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const r=[];for(const n of t)r.push({key:await n.key,value:await n.value});return ol.mergeObjectSync(e,r)}static mergeObjectSync(e,t){const r={};for(const n of t){const{key:t,value:i}=n;if("aborted"===t.status)return al;if("aborted"===i.status)return al;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof i.value&&!n.alwaysSet||(r[t.value]=i.value)}return{status:e.value,value:r}}}const al=Object.freeze({status:"aborted"}),sl=e=>({status:"dirty",value:e}),cl=e=>({status:"valid",value:e}),ll=e=>"aborted"===e.status,ul=e=>"dirty"===e.status,dl=e=>"valid"===e.status,hl=e=>"undefined"!==typeof Promise&&e instanceof Promise;var fl;!function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(fl||(fl={}));class pl{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ml=(e,t)=>{if(dl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Qc(e.common.issues);return this._error=t,this._error}}};function gl(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:"undefined"===typeof t.data?{message:null!==n&&void 0!==n?n:t.defaultError}:{message:null!==r&&void 0!==r?r:t.defaultError},description:i}}class vl{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Xc(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Xc(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ol,ctx:{common:e.parent.common,data:e.data,parsedType:Xc(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(hl(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const n={common:{issues:[],async:null!==(r=null===t||void 0===t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Xc(e)},i=this._parseSync({data:e,path:n.path,parent:n});return ml(n,i)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Xc(e)},n=this._parse({data:e,path:r.path,parent:r}),i=await(hl(n)?n:Promise.resolve(n));return ml(r,i)}refine(e,t){const r=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,n)=>{const i=e(t),o=()=>n.addIssue({code:Jc.custom,...r(t)});return"undefined"!==typeof Promise&&i instanceof Promise?i.then((e=>!!e||(o(),!1))):!!i||(o(),!1)}))}refinement(e,t){return this._refinement(((r,n)=>!!e(r)||(n.addIssue("function"===typeof t?t(r,n):t),!1)))}_refinement(e){return new iu({schema:this,typeName:gu.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ou.create(this,this._def)}nullable(){return au.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Bl.create(this,this._def)}promise(){return nu.create(this,this._def)}or(e){return $l.create([this,e],this._def)}and(e){return Kl.create(this,e,this._def)}transform(e){return new iu({...gl(this._def),schema:this,typeName:gu.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new su({...gl(this._def),innerType:this,defaultValue:t,typeName:gu.ZodDefault})}brand(){return new du({typeName:gu.ZodBranded,type:this,...gl(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new cu({...gl(this._def),innerType:this,catchValue:t,typeName:gu.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return hu.create(this,e)}readonly(){return fu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const yl=/^c[^\s-]{8,}$/i,bl=/^[a-z][a-z0-9]*$/,wl=/^[0-9A-HJKMNP-TV-Z]{26}$/,xl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_l=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Sl;const kl=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,El=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class Al extends vl{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==Zc.string){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.string,received:t.parsedType}),al}const t=new ol;let r;for(const a of this._def.checks)if("min"===a.kind)e.data.lengtha.value&&(r=this._getOrReturnCtx(e,r),il(r,{code:Jc.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),t.dirty());else if("length"===a.kind){const n=e.data.length>a.value,i=e.data.lengthe.test(t)),{validation:t,code:Jc.invalid_string,...fl.errToObj(r)})}_addCheck(e){return new Al({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...fl.errToObj(e)})}url(e){return this._addCheck({kind:"url",...fl.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...fl.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...fl.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...fl.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...fl.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...fl.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...fl.errToObj(e)})}datetime(e){var t;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,...fl.errToObj(null===e||void 0===e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...fl.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...fl.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...fl.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...fl.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...fl.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...fl.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...fl.errToObj(t)})}nonempty(e){return this.min(1,fl.errToObj(e))}trim(){return new Al({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Al({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Al({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuen?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}Al.create=e=>{var t;return new Al({checks:[],typeName:gu.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...gl(e)})};class Ol extends vl{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==Zc.number){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.number,received:t.parsedType}),al}let t;const r=new ol;for(const n of this._def.checks)if("int"===n.kind)Gc.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),il(t,{code:Jc.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),il(t,{code:Jc.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==Pl(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),il(t,{code:Jc.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),il(t,{code:Jc.not_finite,message:n.message}),r.dirty()):Gc.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,fl.toString(t))}gt(e,t){return this.setLimit("min",e,!1,fl.toString(t))}lte(e,t){return this.setLimit("max",e,!0,fl.toString(t))}lt(e,t){return this.setLimit("max",e,!1,fl.toString(t))}setLimit(e,t,r,n){return new Ol({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:fl.toString(n)}]})}_addCheck(e){return new Ol({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:fl.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:fl.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:fl.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:fl.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:fl.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:fl.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:fl.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:fl.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:fl.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&Gc.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew Ol({checks:[],typeName:gu.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...gl(e)});class Tl extends vl{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==Zc.bigint){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.bigint,received:t.parsedType}),al}let t;const r=new ol;for(const n of this._def.checks)if("min"===n.kind){(n.inclusive?e.datan.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),il(t,{code:Jc.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),il(t,{code:Jc.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):Gc.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,fl.toString(t))}gt(e,t){return this.setLimit("min",e,!1,fl.toString(t))}lte(e,t){return this.setLimit("max",e,!0,fl.toString(t))}lt(e,t){return this.setLimit("max",e,!1,fl.toString(t))}setLimit(e,t,r,n){return new Tl({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:fl.toString(n)}]})}_addCheck(e){return new Tl({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:fl.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:fl.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:fl.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:fl.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:fl.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new Tl({checks:[],typeName:gu.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...gl(e)})};class Cl extends vl{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==Zc.boolean){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.boolean,received:t.parsedType}),al}return cl(e.data)}}Cl.create=e=>new Cl({typeName:gu.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...gl(e)});class jl extends vl{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==Zc.date){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.date,received:t.parsedType}),al}if(isNaN(e.data.getTime())){return il(this._getOrReturnCtx(e),{code:Jc.invalid_date}),al}const t=new ol;let r;for(const n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(r=this._getOrReturnCtx(e,r),il(r,{code:Jc.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),t.dirty()):Gc.assertNever(n);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new jl({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:fl.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:fl.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew jl({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:gu.ZodDate,...gl(e)});class Rl extends vl{_parse(e){if(this._getType(e)!==Zc.symbol){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.symbol,received:t.parsedType}),al}return cl(e.data)}}Rl.create=e=>new Rl({typeName:gu.ZodSymbol,...gl(e)});class Il extends vl{_parse(e){if(this._getType(e)!==Zc.undefined){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.undefined,received:t.parsedType}),al}return cl(e.data)}}Il.create=e=>new Il({typeName:gu.ZodUndefined,...gl(e)});class Ml extends vl{_parse(e){if(this._getType(e)!==Zc.null){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.null,received:t.parsedType}),al}return cl(e.data)}}Ml.create=e=>new Ml({typeName:gu.ZodNull,...gl(e)});class Ll extends vl{constructor(){super(...arguments),this._any=!0}_parse(e){return cl(e.data)}}Ll.create=e=>new Ll({typeName:gu.ZodAny,...gl(e)});class Nl extends vl{constructor(){super(...arguments),this._unknown=!0}_parse(e){return cl(e.data)}}Nl.create=e=>new Nl({typeName:gu.ZodUnknown,...gl(e)});class Dl extends vl{_parse(e){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.never,received:t.parsedType}),al}}Dl.create=e=>new Dl({typeName:gu.ZodNever,...gl(e)});class zl extends vl{_parse(e){if(this._getType(e)!==Zc.undefined){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.void,received:t.parsedType}),al}return cl(e.data)}}zl.create=e=>new zl({typeName:gu.ZodVoid,...gl(e)});class Bl extends vl{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==Zc.array)return il(t,{code:Jc.invalid_type,expected:Zc.array,received:t.parsedType}),al;if(null!==n.exactLength){const e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&(il(t,{code:Jc.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>n.type._parseAsync(new pl(t,e,t.path,r))))).then((e=>ol.mergeArray(r,e)));const i=[...t.data].map(((e,r)=>n.type._parseSync(new pl(t,e,t.path,r))));return ol.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new Bl({...this._def,minLength:{value:e,message:fl.toString(t)}})}max(e,t){return new Bl({...this._def,maxLength:{value:e,message:fl.toString(t)}})}length(e,t){return new Bl({...this._def,exactLength:{value:e,message:fl.toString(t)}})}nonempty(e){return this.min(1,e)}}function Fl(e){if(e instanceof Ul){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=ou.create(Fl(n))}return new Ul({...e._def,shape:()=>t})}return e instanceof Bl?new Bl({...e._def,type:Fl(e.element)}):e instanceof ou?ou.create(Fl(e.unwrap())):e instanceof au?au.create(Fl(e.unwrap())):e instanceof Wl?Wl.create(e.items.map((e=>Fl(e)))):e}Bl.create=(e,t)=>new Bl({type:e,minLength:null,maxLength:null,exactLength:null,typeName:gu.ZodArray,...gl(t)});class Ul extends vl{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Gc.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Zc.object){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.object,received:t.parsedType}),al}const{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Dl&&"strip"===this._def.unknownKeys))for(const s in r.data)i.includes(s)||o.push(s);const a=[];for(const s of i){const e=n[s],t=r.data[s];a.push({key:{status:"valid",value:s},value:e._parse(new pl(r,t,r.path,s)),alwaysSet:s in r.data})}if(this._def.catchall instanceof Dl){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of o)a.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===e)o.length>0&&(il(r,{code:Jc.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new pl(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>ol.mergeObjectSync(t,e))):ol.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return fl.errToObj,new Ul({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;const s=null!==(o=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=fl.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new Ul({...this._def,unknownKeys:"strip"})}passthrough(){return new Ul({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ul({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ul({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:gu.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ul({...this._def,catchall:e})}pick(e){const t={};return Gc.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new Ul({...this._def,shape:()=>t})}omit(e){const t={};return Gc.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new Ul({...this._def,shape:()=>t})}deepPartial(){return Fl(this)}partial(e){const t={};return Gc.objectKeys(this.shape).forEach((r=>{const n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()})),new Ul({...this._def,shape:()=>t})}required(e){const t={};return Gc.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ou;)e=e._def.innerType;t[r]=e}})),new Ul({...this._def,shape:()=>t})}keyof(){return eu(Gc.objectKeys(this.shape))}}Ul.create=(e,t)=>new Ul({shape:()=>e,unknownKeys:"strip",catchall:Dl.create(),typeName:gu.ZodObject,...gl(t)}),Ul.strictCreate=(e,t)=>new Ul({shape:()=>e,unknownKeys:"strict",catchall:Dl.create(),typeName:gu.ZodObject,...gl(t)}),Ul.lazycreate=(e,t)=>new Ul({shape:e,unknownKeys:"strip",catchall:Dl.create(),typeName:gu.ZodObject,...gl(t)});class $l extends vl{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const r=e.map((e=>new Qc(e.ctx.common.issues)));return il(t,{code:Jc.invalid_union,unionErrors:r}),al}));{let e;const n=[];for(const o of r){const r={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const i=n.map((e=>new Qc(e)));return il(t,{code:Jc.invalid_union,unionErrors:i}),al}}get options(){return this._def.options}}$l.create=(e,t)=>new $l({options:e,typeName:gu.ZodUnion,...gl(t)});const Hl=e=>e instanceof Jl?Hl(e.schema):e instanceof iu?Hl(e.innerType()):e instanceof Ql?[e.value]:e instanceof tu?e.options:e instanceof ru?Object.keys(e.enum):e instanceof su?Hl(e._def.innerType):e instanceof Il?[void 0]:e instanceof Ml?[null]:null;class Vl extends vl{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Zc.object)return il(t,{code:Jc.invalid_type,expected:Zc.object,received:t.parsedType}),al;const r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(il(t,{code:Jc.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),al)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const n=new Map;for(const i of t){const t=Hl(i.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const r of t){if(n.has(r))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);n.set(r,i)}}return new Vl({typeName:gu.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...gl(r)})}}function ql(e,t){const r=Xc(e),n=Xc(t);if(e===t)return{valid:!0,data:e};if(r===Zc.object&&n===Zc.object){const r=Gc.objectKeys(t),n=Gc.objectKeys(e).filter((e=>-1!==r.indexOf(e))),i={...e,...t};for(const o of n){const r=ql(e[o],t[o]);if(!r.valid)return{valid:!1};i[o]=r.data}return{valid:!0,data:i}}if(r===Zc.array&&n===Zc.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let n=0;n{if(ll(e)||ll(n))return al;const i=ql(e.value,n.value);return i.valid?((ul(e)||ul(n))&&t.dirty(),{status:t.value,value:i.data}):(il(r,{code:Jc.invalid_intersection_types}),al)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>n(e,t))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Kl.create=(e,t,r)=>new Kl({left:e,right:t,typeName:gu.ZodIntersection,...gl(r)});class Wl extends vl{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Zc.array)return il(r,{code:Jc.invalid_type,expected:Zc.array,received:r.parsedType}),al;if(r.data.lengththis._def.items.length&&(il(r,{code:Jc.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...r.data].map(((e,t)=>{const n=this._def.items[t]||this._def.rest;return n?n._parse(new pl(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(n).then((e=>ol.mergeArray(t,e))):ol.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new Wl({...this._def,rest:e})}}Wl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Wl({items:e,typeName:gu.ZodTuple,rest:null,...gl(t)})};class Gl extends vl{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Zc.object)return il(r,{code:Jc.invalid_type,expected:Zc.object,received:r.parsedType}),al;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)n.push({key:i._parse(new pl(r,a,r.path,a)),value:o._parse(new pl(r,r.data[a],r.path,a))});return r.common.async?ol.mergeObjectAsync(t,n):ol.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new Gl(t instanceof vl?{keyType:e,valueType:t,typeName:gu.ZodRecord,...gl(r)}:{keyType:Al.create(),valueType:e,typeName:gu.ZodRecord,...gl(t)})}}class Yl extends vl{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Zc.map)return il(r,{code:Jc.invalid_type,expected:Zc.map,received:r.parsedType}),al;const n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map((([e,t],o)=>({key:n._parse(new pl(r,e,r.path,[o,"key"])),value:i._parse(new pl(r,t,r.path,[o,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of o){const n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return al;"dirty"!==n.status&&"dirty"!==i.status||t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of o){const n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return al;"dirty"!==n.status&&"dirty"!==i.status||t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}Yl.create=(e,t,r)=>new Yl({valueType:t,keyType:e,typeName:gu.ZodMap,...gl(r)});class Zl extends vl{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Zc.set)return il(r,{code:Jc.invalid_type,expected:Zc.set,received:r.parsedType}),al;const n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&(il(r,{code:Jc.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const i=this._def.valueType;function o(e){const r=new Set;for(const n of e){if("aborted"===n.status)return al;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}const a=[...r.data.values()].map(((e,t)=>i._parse(new pl(r,e,r.path,t))));return r.common.async?Promise.all(a).then((e=>o(e))):o(a)}min(e,t){return new Zl({...this._def,minSize:{value:e,message:fl.toString(t)}})}max(e,t){return new Zl({...this._def,maxSize:{value:e,message:fl.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Zl.create=(e,t)=>new Zl({valueType:e,minSize:null,maxSize:null,typeName:gu.ZodSet,...gl(t)});class Xl extends vl{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Zc.function)return il(t,{code:Jc.invalid_type,expected:Zc.function,received:t.parsedType}),al;function r(e,r){return nl({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,rl(),el].filter((e=>!!e)),issueData:{code:Jc.invalid_arguments,argumentsError:r}})}function n(e,r){return nl({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,rl(),el].filter((e=>!!e)),issueData:{code:Jc.invalid_return_type,returnTypeError:r}})}const i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof nu){const e=this;return cl((async function(...t){const a=new Qc([]),s=await e._def.args.parseAsync(t,i).catch((e=>{throw a.addIssue(r(t,e)),a})),c=await Reflect.apply(o,this,s),l=await e._def.returns._def.type.parseAsync(c,i).catch((e=>{throw a.addIssue(n(c,e)),a}));return l}))}{const e=this;return cl((function(...t){const a=e._def.args.safeParse(t,i);if(!a.success)throw new Qc([r(t,a.error)]);const s=Reflect.apply(o,this,a.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new Qc([n(s,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Xl({...this._def,args:Wl.create(e).rest(Nl.create())})}returns(e){return new Xl({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new Xl({args:e||Wl.create([]).rest(Nl.create()),returns:t||Nl.create(),typeName:gu.ZodFunction,...gl(r)})}}class Jl extends vl{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Jl.create=(e,t)=>new Jl({getter:e,typeName:gu.ZodLazy,...gl(t)});class Ql extends vl{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return il(t,{received:t.data,code:Jc.invalid_literal,expected:this._def.value}),al}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eu(e,t){return new tu({values:e,typeName:gu.ZodEnum,...gl(t)})}Ql.create=(e,t)=>new Ql({value:e,typeName:gu.ZodLiteral,...gl(t)});class tu extends vl{_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return il(t,{expected:Gc.joinValues(r),received:t.parsedType,code:Jc.invalid_type}),al}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return il(t,{received:t.data,code:Jc.invalid_enum_value,options:r}),al}return cl(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return tu.create(e)}exclude(e){return tu.create(this.options.filter((t=>!e.includes(t))))}}tu.create=eu;class ru extends vl{_parse(e){const t=Gc.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Zc.string&&r.parsedType!==Zc.number){const e=Gc.objectValues(t);return il(r,{expected:Gc.joinValues(e),received:r.parsedType,code:Jc.invalid_type}),al}if(-1===t.indexOf(e.data)){const e=Gc.objectValues(t);return il(r,{received:r.data,code:Jc.invalid_enum_value,options:e}),al}return cl(e.data)}get enum(){return this._def.values}}ru.create=(e,t)=>new ru({values:e,typeName:gu.ZodNativeEnum,...gl(t)});class nu extends vl{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Zc.promise&&!1===t.common.async)return il(t,{code:Jc.invalid_type,expected:Zc.promise,received:t.parsedType}),al;const r=t.parsedType===Zc.promise?t.data:Promise.resolve(t.data);return cl(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}nu.create=(e,t)=>new nu({type:e,typeName:gu.ZodPromise,...gl(t)});class iu extends vl{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===gu.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{il(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){const e=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r}))):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===n.type){const e=e=>{const t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?al:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?al:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===n.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!dl(e))return e;const o=n.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>dl(e)?Promise.resolve(n.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}Gc.assertNever(n)}}iu.create=(e,t,r)=>new iu({schema:e,typeName:gu.ZodEffects,effect:t,...gl(r)}),iu.createWithPreprocess=(e,t,r)=>new iu({schema:t,effect:{type:"preprocess",transform:e},typeName:gu.ZodEffects,...gl(r)});class ou extends vl{_parse(e){return this._getType(e)===Zc.undefined?cl(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ou.create=(e,t)=>new ou({innerType:e,typeName:gu.ZodOptional,...gl(t)});class au extends vl{_parse(e){return this._getType(e)===Zc.null?cl(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}au.create=(e,t)=>new au({innerType:e,typeName:gu.ZodNullable,...gl(t)});class su extends vl{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Zc.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}su.create=(e,t)=>new su({innerType:e,typeName:gu.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...gl(t)});class cu extends vl{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return hl(n)?n.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Qc(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new Qc(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cu.create=(e,t)=>new cu({innerType:e,typeName:gu.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...gl(t)});class lu extends vl{_parse(e){if(this._getType(e)!==Zc.nan){const t=this._getOrReturnCtx(e);return il(t,{code:Jc.invalid_type,expected:Zc.nan,received:t.parsedType}),al}return{status:"valid",value:e.data}}}lu.create=e=>new lu({typeName:gu.ZodNaN,...gl(e)});const uu=Symbol("zod_brand");class du extends vl{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class hu extends vl{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?al:"dirty"===e.status?(t.dirty(),sl(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})()}{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?al:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new hu({in:e,out:t,typeName:gu.ZodPipeline})}}class fu extends vl{_parse(e){const t=this._def.innerType._parse(e);return dl(t)&&(t.value=Object.freeze(t.value)),t}}fu.create=(e,t)=>new fu({innerType:e,typeName:gu.ZodReadonly,...gl(t)});const pu=(e,t={},r)=>e?Ll.create().superRefine(((n,i)=>{var o,a;if(!e(n)){const e="function"===typeof t?t(n):"string"===typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a,c="string"===typeof e?{message:e}:e;i.addIssue({code:"custom",...c,fatal:s})}})):Ll.create(),mu={object:Ul.lazycreate};var gu;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(gu||(gu={}));const vu=Al.create,yu=Ol.create,bu=lu.create,wu=Tl.create,xu=Cl.create,_u=jl.create,Su=Rl.create,ku=Il.create,Eu=Ml.create,Au=Ll.create,Pu=Nl.create,Ou=Dl.create,Tu=zl.create,Cu=Bl.create,ju=Ul.create,Ru=Ul.strictCreate,Iu=$l.create,Mu=Vl.create,Lu=Kl.create,Nu=Wl.create,Du=Gl.create,zu=Yl.create,Bu=Zl.create,Fu=Xl.create,Uu=Jl.create,$u=Ql.create,Hu=tu.create,Vu=ru.create,qu=nu.create,Ku=iu.create,Wu=ou.create,Gu=au.create,Yu=iu.createWithPreprocess,Zu=hu.create,Xu={string:e=>Al.create({...e,coerce:!0}),number:e=>Ol.create({...e,coerce:!0}),boolean:e=>Cl.create({...e,coerce:!0}),bigint:e=>Tl.create({...e,coerce:!0}),date:e=>jl.create({...e,coerce:!0})},Ju=al;var Qu=Object.freeze({__proto__:null,defaultErrorMap:el,setErrorMap:function(e){tl=e},getErrorMap:rl,makeIssue:nl,EMPTY_PATH:[],addIssueToContext:il,ParseStatus:ol,INVALID:al,DIRTY:sl,OK:cl,isAborted:ll,isDirty:ul,isValid:dl,isAsync:hl,get util(){return Gc},get objectUtil(){return Yc},ZodParsedType:Zc,getParsedType:Xc,ZodType:vl,ZodString:Al,ZodNumber:Ol,ZodBigInt:Tl,ZodBoolean:Cl,ZodDate:jl,ZodSymbol:Rl,ZodUndefined:Il,ZodNull:Ml,ZodAny:Ll,ZodUnknown:Nl,ZodNever:Dl,ZodVoid:zl,ZodArray:Bl,ZodObject:Ul,ZodUnion:$l,ZodDiscriminatedUnion:Vl,ZodIntersection:Kl,ZodTuple:Wl,ZodRecord:Gl,ZodMap:Yl,ZodSet:Zl,ZodFunction:Xl,ZodLazy:Jl,ZodLiteral:Ql,ZodEnum:tu,ZodNativeEnum:ru,ZodPromise:nu,ZodEffects:iu,ZodTransformer:iu,ZodOptional:ou,ZodNullable:au,ZodDefault:su,ZodCatch:cu,ZodNaN:lu,BRAND:uu,ZodBranded:du,ZodPipeline:hu,ZodReadonly:fu,custom:pu,Schema:vl,ZodSchema:vl,late:mu,get ZodFirstPartyTypeKind(){return gu},coerce:Xu,any:Au,array:Cu,bigint:wu,boolean:xu,date:_u,discriminatedUnion:Mu,effect:Ku,enum:Hu,function:Fu,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>pu((t=>t instanceof e),t),intersection:Lu,lazy:Uu,literal:$u,map:zu,nan:bu,nativeEnum:Vu,never:Ou,null:Eu,nullable:Gu,number:yu,object:ju,oboolean:()=>xu().optional(),onumber:()=>yu().optional(),optional:Wu,ostring:()=>vu().optional(),pipeline:Zu,preprocess:Yu,promise:qu,record:Du,set:Bu,strictObject:Ru,string:vu,symbol:Su,transformer:Ku,tuple:Nu,undefined:ku,union:Iu,unknown:Pu,void:Tu,NEVER:Ju,ZodIssueCode:Jc,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:Qc});const ed=Qu.object({address:Qu.string()}),td=e=>{if(nd(e))return od(e);if(id(e))return ad(e);throw new Error(`Cannot parse address type: ${e}`)},rd=e=>gc(e)===ac.VALID,nd=e=>rd(e)&&e.match(/^KT1\w+/),id=e=>rd(e)&&e.match(/^tz[1234]\w+/),od=e=>{if(nd(e))return{type:"contract",pkh:e};throw new Error(`Invalid contract address: ${e}`)},ad=e=>{if(id(e))return{type:"implicit",pkh:e};throw new Error(`Invalid implicit address: ${e}`)},sd=Qu.object({standard:Qu.string().regex(/^fa1\.2$/i),contract:ed}),cd=Qu.object({standard:Qu.string().regex(/^fa2$/i),tokenId:Qu.string(),contract:ed}),ld=Qu.object({id:Qu.number(),standard:Qu.string().regex(/^fa2$/i),tokenId:Qu.string(),contract:ed,totalSupply:Qu.string().optional(),metadata:Qu.object({displayUri:Qu.string(),decimals:Qu.void().or(Qu.string().regex(/^0$/))})}),ud=e=>{const t=e.metadata;if("fa1.2"===e.standard){const r=sd.safeParse(e);return r.success?{type:"fa1.2",metadata:t,contract:r.data.contract.address,tokenId:"0"}:(console.warn("Invalid FA1 token: "+JSON.stringify(e)),null)}const r=ld.safeParse(e);if(r.success)return{metadata:t,type:"nft",id:r.data.id,contract:r.data.contract.address,tokenId:r.data.tokenId,displayUri:r.data.metadata.displayUri,totalSupply:r.data.totalSupply};const n=cd.safeParse(e);return n.success?{type:"fa2",metadata:t,contract:n.data.contract.address,tokenId:n.data.tokenId}:(console.warn("Invalid FA2 token: "+JSON.stringify(e)),null)},dd=e=>`${e.contract}:${e.tokenId}`,hd=e=>fd(e)||(e=>{switch(e.type){case"fa1.2":return Ed;case"fa2":return Ad;case"nft":return Pd}})(e),fd=e=>{var t;return null===(t=e.metadata)||void 0===t?void 0:t.name},pd=e=>md(e)||(e=>{switch(e.type){case"fa1.2":return Od;case"fa2":return Td;case"nft":return Cd}})(e),md=e=>{var t;return null===(t=e.metadata)||void 0===t?void 0:t.symbol},gd=e=>{var t,r;return null!==(t=null===(r=e.metadata)||void 0===r?void 0:r.decimals)&&void 0!==t?t:jd},vd=(e,t)=>{const r=new Xs(t),n=gd(e);return r.multipliedBy(new Xs(10).exponentiatedBy(n)).toFixed()},yd=(e,t=jd)=>{const r=Xs(e).dividedBy(Xs(10).pow(t));try{return new Intl.NumberFormat("en-US",{minimumFractionDigits:Number(t),maximumFractionDigits:Number(t)}).format(r.toNumber())}catch(n){return console.warn(`Can't format token amount with decimals = ${t}`),yd(e,"0")}},bd=(e,t,r)=>{var n;if("nft"===t.type)return e;const i=pd(t),o=null===(n=t.metadata)||void 0===n?void 0:n.decimals,a=null!==r&&void 0!==r&&r.showSymbol?` ${i}`:"";return`${yd(e,o)}${a}`},wd=e=>e.metadata.artifactUri||e.displayUri,xd=e=>e.metadata.thumbnailUri||e.displayUri,_d=e=>{var t,r;return null===(t=e.metadata.formats)||void 0===t||null===(r=t.find((t=>t.uri===wd(e))))||void 0===r?void 0:r.mimeType},Sd=(e,t)=>`${kd(e,t)}/metadata`,kd=({contract:e,tokenId:t},r)=>`${r.tzktExplorerUrl}/${e}/tokens/${t}`,Ed="FA1.2 token",Ad="FA2 token",Pd="NFT",Od="FA1.2",Td="FA2",Cd="NFT",jd="0",Rd=e=>{const t=ud(e.token);return t&&e.balance?{balance:e.balance,lastLevel:e.lastLevel,...t}:null},Id={blockLevel:null,balances:{mutez:{},tokens:{}},transfers:{tez:{},tokens:{}},delegationLevels:{},bakers:[],conversionRate:null,refetchTrigger:0,isLoading:!1,lastTimeUpdated:null},Md=fa({name:"assets",initialState:Id,extraReducers:e=>e.addCase(Kc.actions.reset,(()=>Id)),reducers:{reset:()=>Id,updateBlockLevel:(e,{payload:t})=>{e.blockLevel=t},updateTokenTransfers:(e,{payload:t})=>{t.forEach((t=>{e.transfers.tokens[t.transactionId]=t}))},updateTezBalance:(e,{payload:t})=>{e.balances.mutez=t.reduce(((e,t)=>({...e,[t.address]:String(t.balance)})),{}),e.delegationLevels=t.reduce(((e,t)=>({...e,[t.address]:t.delegationLevel})),{})},updateTokenBalance:(e,{payload:t})=>{const r=(0,ts.groupBy)(t,(e=>e.account.address));e.balances.tokens=(0,ts.mapValues)(r,(e=>(0,ts.compact)(e.map(Rd)).map((({balance:e,contract:t,tokenId:r,lastLevel:n})=>({balance:e,contract:t,tokenId:r,lastLevel:n})))))},updateBakers:(e,{payload:t})=>{e.bakers=t},updateConversionRate:(e,{payload:{rate:t}})=>{e.conversionRate=t},refetch:e=>{e.refetchTrigger+=1},setIsLoading:(e,{payload:t})=>{e.isLoading=t},setLastTimeUpdated:(e,{payload:t})=>{e.lastTimeUpdated=t}}}),Ld=Md.actions,Nd={name:"mainnet",rpcUrl:"https://prod.tcinfra.net/rpc/mainnet/",tzktApiUrl:"https://api.mainnet.tzkt.io",tzktExplorerUrl:"https://tzkt.io",buyTezUrl:"https://widget.wert.io"},Dd=e=>zd.map((e=>e.name)).includes(e.name),zd=[Nd,{name:"ghostnet",rpcUrl:"https://ghostnet.ecadinfra.com",tzktApiUrl:"https://api.ghostnet.tzkt.io",tzktExplorerUrl:"https://ghostnet.tzkt.io",buyTezUrl:"https://faucet.ghostnet.teztnets.xyz/"}],Bd=(0,ts.fromPairs)(zd.map((e=>[e.name,[]]))),Fd=fa({name:"batches",initialState:Bd,reducers:{reset:()=>Bd,add:(e,{payload:{operations:t,network:r}})=>{r.name in e||(e[r.name]=[]);const n=e[r.name],i=n.find((e=>e.sender.address.pkh===t.sender.address.pkh));i?i.operations.push(...t.operations):n.push(t)},clear:(e,{payload:{pkh:t,network:r}})=>{const n=e[r.name]||[],i=(0,ts.findIndex)(n,(e=>e.sender.address.pkh===t));-1!==i&&n.splice(i,1)},removeItem:(e,{payload:{pkh:t,index:r,network:n}})=>{const i=e[n.name]||[],o=(0,ts.findIndex)(i,(e=>e.sender.address.pkh===t));if(-1===o)return;const a=i[o];r$d,addConnection:(e,{payload:t})=>{e[t.dAppId]={accountPkh:t.accountPkh,networkType:t.networkType}},removeConnection:(e,{payload:t})=>{delete e[t.dAppId]}}}),Vd=(Hd.actions,(e,t)=>Object.values(e).map((e=>e.name)).includes(t)),qd={},Kd=fa({name:"contacts",initialState:qd,reducers:{reset:()=>qd,upsert:(e,{payload:t})=>{Vd(e,t.name)||(e[t.pkh]=t)},remove:(e,{payload:t})=>{delete e[t]}}}),Wd=Kd.actions,Gd=[],Yd=fa({name:"errors",initialState:Gd,reducers:{reset:()=>Gd,add(e,{payload:t}){100===e.length&&e.shift(),e.push(t)}}}),Zd={items:[],pendingOperations:{},labelsMap:{}},Xd=fa({name:"multisigs",initialState:Zd,reducers:{reset:()=>Zd,setMultisigs:(e,{payload:t})=>{const r=(0,ts.fromPairs)(e.items.map((e=>[e.address.pkh,e.label])));e.items=t.map(((t,n)=>({...t,label:r[t.address.pkh]||e.labelsMap[t.address.pkh]||`Multisig Account ${n}`,type:"multisig"})))},addMultisigLabel:(e,{payload:{pkh:t,label:r}})=>{e.labelsMap[t]=r},setPendingOperations:(e,{payload:t})=>{e.pendingOperations=(0,ts.groupBy)(t,(e=>e.bigmapId))},setName:(e,{payload:t})=>{const{account:{address:{pkh:r}},newName:n}=t,i=e.items.find((e=>e.address.pkh===r));i&&(i.label=n)}}}),Jd=Xd.actions,Qd={available:zd,current:Nd},eh=fa({name:"networks",initialState:Qd,reducers:{reset:()=>Qd,setCurrent:(e,{payload:t})=>{e.current=t},upsertNetwork:(e,{payload:t})=>{if(Dd(t))return;const r=e.available.findIndex((e=>e.name===t.name));e.current.name===t.name&&(e.current=t),-1===r?e.available.push(t):e.available[r]=t},removeNetwork:(e,{payload:t})=>{Dd(t)||(0,ts.remove)(e.available,(e=>e.name===t.name))}}}),th=eh.actions,rh=(0,ts.fromPairs)(zd.map((e=>[e.name,{}]))),nh=fa({name:"tokens",initialState:rh,reducers:{reset:()=>rh,addTokens:(e,{payload:{network:t,tokens:r}})=>{(0,ts.compact)(r.map(ud)).forEach((r=>{(0,ts.setWith)(e,[t.name,r.contract,r.tokenId],r,Object)}))}}}),ih=nh.actions,oh={key:"root",version:1,storage:Xa.c,blacklist:["accounts"],migrate:function(e,t){return(t||{}).debug,function(t,r){if(!t)return Promise.resolve(void 0);var n=t._persist&&void 0!==t._persist.version?t._persist.version:-1;if(n===r)return Promise.resolve(t);if(n>r)return Promise.resolve(t);var i=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return r>=e&&e>n})).sort((function(e,t){return e-t}));try{var o=i.reduce((function(t,r){return e[r](t)}),t);return Promise.resolve(o)}catch(a){return Promise.reject(a)}}}(es,{debug:!1})},ah=Fo({accounts:Va({key:"accounts",version:1,storage:Xa.c},Kc.reducer),announcement:Qa.reducer,assets:Md.reducer,batches:Fd.reducer,beacon:Hd.reducer,contacts:Kd.reducer,errors:Yd.reducer,multisigs:Xd.reducer,networks:eh.reducer,tokens:nh.reducer}),sh=function(e){var t,r=da(),n=e||{},i=n.reducer,o=void 0===i?void 0:i,a=n.middleware,s=void 0===a?r():a,c=n.devTools,l=void 0===c||c,u=n.preloadedState,d=void 0===u?void 0:u,h=n.enhancers,f=void 0===h?void 0:h;if("function"===typeof o)t=o;else{if(!aa(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Fo(o)}var p=s;"function"===typeof p&&(p=p(r));var m=$o.apply(void 0,p),g=Uo;l&&(g=oa(ra({trace:!1},"object"===typeof l&&l)));var v=new la(m),y=v;return Array.isArray(f)?y=Go([m],f):"function"===typeof f&&(y=f(v)),Bo(t,d,g.apply(void 0,y))}({reducer:Va(oh,ah),middleware:e=>e({serializableCheck:{ignoredActions:[Ea,Aa,Pa,Oa,Ta,Ca]}})}),ch=e=>(0,xn.jsx)(xi,{store:sh,children:e.children});var lh=String.raw,uh=lh` :root, :host { @@ -278,5 +278,5 @@ } ${uh} - `}),[fh,ph]=Nn({strict:!1,name:"PortalManagerContext"});function mh(e){const{children:t,zIndex:r}=e;return(0,xn.jsx)(fh,{value:{zIndex:r},children:t})}function gh(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=(0,i.createContext)(void 0);return o.displayName=n,[o.Provider,function e(){var n;const a=(0,i.useContext)(o);if(!a&&t){const t=new Error(r);throw t.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,t,e),t}return a},o]}function vh(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=(0,i.useMemo)((()=>Qe(r)),[r]);return(0,xn.jsxs)(Xr,{theme:o,children:[(0,xn.jsx)(yh,{root:t}),n]})}function yh({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,xn.jsx)(Fn,{styles:e=>({[t]:e.__cssVars})})}mh.displayName="PortalManager";var[bh,wh]=gh({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function xh(){const{colorMode:e}=yt();return(0,xn.jsx)(Fn,{styles:t=>{const r=_t(bt(t,"styles.global"),{theme:t,colorMode:e});if(!r)return;return lt(r)(t)}})}var _h={light:"chakra-ui-light",dark:"chakra-ui-dark"};var Sh="chakra-ui-color-mode";var kh,Eh=(kh=Sh,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(kh)||e}catch(r){}return t||e},set(e){try{localStorage.setItem(kh,e)}catch(t){}}});function Ah(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function Ph(e,t){return{ssr:!!t,type:"cookie",get:r=>t?Ah(t,e):(null==globalThis?void 0:globalThis.document)&&Ah(document.cookie,e)||r,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}Ph(Sh);var Oh=Boolean(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:i.useEffect,Th=()=>{};function Ch(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function jh(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=Eh}=e,c="dark"===o?"dark":"light",[l,u]=(0,i.useState)((()=>Ch(s,c))),[d,h]=(0,i.useState)((()=>Ch(s))),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:g}=(0,i.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?_h.dark:_h.light),document.body.classList.remove(e?_h.light:_h.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"===typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"===typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return r}({preventTransition:a})),[a]),v="system"!==o||l?l:d,y=(0,i.useCallback)((e=>{const t="system"===e?f():e;u(t),p("dark"===t),m(t),s.set(t)}),[s,f,p,m]);Oh((()=>{"system"===o&&h(f())}),[]),(0,i.useEffect)((()=>{const e=s.get();y(e||("system"!==o?c:"system"))}),[s,c,o,y]);const b=(0,i.useCallback)((()=>{y("dark"===v?"light":"dark")}),[v,y]);(0,i.useEffect)((()=>{if(n)return g(y)}),[n,g,y]);const w=(0,i.useMemo)((()=>({colorMode:null!=t?t:v,toggleColorMode:t?Th:b,setColorMode:t?Th:y,forced:void 0!==t})),[v,b,y,t]);return(0,xn.jsx)(vt.Provider,{value:w,children:r})}jh.displayName="ColorModeProvider";var Rh=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function Ih(e){const{children:t,environment:r,disabled:n}=e,o=(0,i.useRef)(null),a=(0,i.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!n||!r;return(0,xn.jsxs)(Rh.Provider,{value:a,children:[t,s&&(0,xn.jsx)("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Rh.displayName="EnvironmentContext",Ih.displayName="EnvironmentProvider";var Mh=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:c,disableEnvironment:l,disableGlobalStyle:u}=e,d=(0,xn.jsx)(Ih,{environment:s,disabled:l,children:t});return(0,xn.jsx)(vh,{theme:a,cssVarsRoot:c,children:(0,xn.jsxs)(jh,{colorModeManager:r,options:a.config,children:[o?(0,xn.jsx)(hh,{scope:i}):(0,xn.jsx)(dh,{}),!u&&(0,xn.jsx)(xh,{}),n?(0,xn.jsx)(mh,{zIndex:n,children:d}):d]})})},Lh={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},Nh={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Dh={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},zh={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Bh={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Fh={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Uh={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},$h={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Hh={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Vh={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},qh={...Vh,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Kh={breakpoints:zh,zIndices:Nh,radii:Fh,blur:$h,colors:Bh,...Hh,sizes:qh,shadows:Uh,space:Vh,borders:Dh,transition:Lh},{defineMultiStyleConfig:Wh,definePartsStyle:Gh}=ut(["stepper","step","title","description","indicator","separator","icon","number"]),Yh=Ae("stepper-indicator-size"),Zh=Ae("stepper-icon-size"),Xh=Ae("stepper-title-font-size"),Jh=Ae("stepper-description-font-size"),Qh=Ae("stepper-accent-color"),ef=Gh((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Qh.variable]:`colors.${e}.500`,_dark:{[Qh.variable]:`colors.${e}.200`}},title:{fontSize:Xh.reference,fontWeight:"medium"},description:{fontSize:Jh.reference,color:"chakra-subtle-text"},number:{fontSize:Xh.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Zh.reference,height:Zh.reference},indicator:{flexShrink:0,borderRadius:"full",width:Yh.reference,height:Yh.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Qh.reference},"&[data-status=complete]":{bg:Qh.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Qh.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Yh.reference} - 8px)`,top:`calc(${Yh.reference} + 4px)`,insetStart:`calc(${Yh.reference} / 2 - 1px)`}}}))),tf=Wh({baseStyle:ef,sizes:{xs:Gh({stepper:{[Yh.variable]:"sizes.4",[Zh.variable]:"sizes.3",[Xh.variable]:"fontSizes.xs",[Jh.variable]:"fontSizes.xs"}}),sm:Gh({stepper:{[Yh.variable]:"sizes.6",[Zh.variable]:"sizes.4",[Xh.variable]:"fontSizes.sm",[Jh.variable]:"fontSizes.xs"}}),md:Gh({stepper:{[Yh.variable]:"sizes.8",[Zh.variable]:"sizes.5",[Xh.variable]:"fontSizes.md",[Jh.variable]:"fontSizes.sm"}}),lg:Gh({stepper:{[Yh.variable]:"sizes.10",[Zh.variable]:"sizes.6",[Xh.variable]:"fontSizes.lg",[Jh.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function rf(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of i)t[e]=n(e);return rf(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return rf(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var nf=rf("accordion").parts("root","container","button","panel").extend("icon"),of=rf("alert").parts("title","description","container").extend("icon","spinner"),af=rf("avatar").parts("label","badge","container").extend("excessLabel","group"),sf=rf("breadcrumb").parts("link","item","container").extend("separator"),cf=(rf("button").parts(),rf("checkbox").parts("control","icon","container").extend("label")),lf=(rf("progress").parts("track","filledTrack").extend("label"),rf("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),uf=rf("editable").parts("preview","input","textarea"),df=rf("form").parts("container","requiredIndicator","helperText"),hf=rf("formError").parts("text","icon"),ff=rf("input").parts("addon","field","element","group"),pf=rf("list").parts("container","item","icon"),mf=rf("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),gf=rf("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),vf=rf("numberinput").parts("root","field","stepperGroup","stepper"),yf=(rf("pininput").parts("field"),rf("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),bf=rf("progress").parts("label","filledTrack","track"),wf=rf("radio").parts("container","control","label"),xf=rf("select").parts("field","icon"),_f=rf("slider").parts("container","track","thumb","filledTrack","mark"),Sf=rf("stat").parts("container","label","helpText","number","icon"),kf=rf("switch").parts("container","track","thumb","label"),Ef=rf("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Af=rf("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Pf=rf("tag").parts("container","label","closeButton"),Of=rf("card").parts("container","header","body","footer");rf("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Tf(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Cf(e,t){return`var(${Tf(e)}${t?`, ${t}`:""})`}function jf(e,t=""){return`--${function(e,t=""){return[t,Tf(e)].filter(Boolean).join("-")}(e,t)}`}function Rf(e,t){const r=jf(e,null==t?void 0:t.prefix);return{variable:r,reference:Cf(r,If(null==t?void 0:t.fallback))}}function If(e){return"string"===typeof e?e:null==e?void 0:e.reference}function Mf(e){return b(e)&&e.reference?e.reference:String(e)}var Lf=(e,...t)=>t.map(Mf).join(` ${e} `).replace(/calc/g,""),Nf=(...e)=>`calc(${Lf("+",...e)})`,Df=(...e)=>`calc(${Lf("-",...e)})`,zf=(...e)=>`calc(${Lf("*",...e)})`,Bf=(...e)=>`calc(${Lf("/",...e)})`,Ff=e=>{const t=Mf(e);return null==t||Number.isNaN(parseFloat(t))?zf(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Uf=Object.assign((e=>({add:(...t)=>Uf(Nf(e,...t)),subtract:(...t)=>Uf(Df(e,...t)),multiply:(...t)=>Uf(zf(e,...t)),divide:(...t)=>Uf(Bf(e,...t)),negate:()=>Uf(Ff(e)),toString:()=>e.toString()})),{add:Nf,subtract:Df,multiply:zf,divide:Bf,negate:Ff}),{defineMultiStyleConfig:$f,definePartsStyle:Hf}=ut(kf.keys),Vf=Rf("switch-track-width"),qf=Rf("switch-track-height"),Kf=Rf("switch-track-diff"),Wf=Uf.subtract(Vf,qf),Gf=Rf("switch-thumb-x"),Yf=Rf("switch-bg"),Zf=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Vf.reference],height:[qf.reference],transitionProperty:"common",transitionDuration:"fast",[Yf.variable]:"colors.gray.300",_dark:{[Yf.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Yf.variable]:`colors.${t}.500`,_dark:{[Yf.variable]:`colors.${t}.200`}},bg:Yf.reference}},Xf={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[qf.reference],height:[qf.reference],_checked:{transform:`translateX(${Gf.reference})`}},Jf=$f({baseStyle:Hf((e=>({container:{[Kf.variable]:Wf,[Gf.variable]:Kf.reference,_rtl:{[Gf.variable]:Uf(Kf).negate().toString()}},track:Zf(e),thumb:Xf}))),sizes:{sm:Hf({container:{[Vf.variable]:"1.375rem",[qf.variable]:"sizes.3"}}),md:Hf({container:{[Vf.variable]:"1.875rem",[qf.variable]:"sizes.4"}}),lg:Hf({container:{[Vf.variable]:"2.875rem",[qf.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Qf(e,t){return r=>"dark"===r.colorMode?t:e}function ep(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:tp,definePartsStyle:rp}=ut(Ef.keys),np=rp({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),ip={"&[data-is-numeric=true]":{textAlign:"end"}},op=rp((e=>{const{colorScheme:t}=e;return{th:{color:Qf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},td:{borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},caption:{color:Qf("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),ap=rp((e=>{const{colorScheme:t}=e;return{th:{color:Qf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},td:{borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},caption:{color:Qf("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e)},td:{background:Qf(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),sp=tp({baseStyle:np,variants:{simple:op,striped:ap,unstyled:{}},sizes:{sm:rp({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:rp({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:rp({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function cp(e,t,r){return Math.min(Math.max(e,r),t)}class lp extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var up=lp;function dp(e){if("string"!==typeof e)throw new up(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=bp.test(e)?function(e){const t=e.toLowerCase().trim(),r=fp[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new up(e);return`#${r}`}(e):e;const r=mp.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(pp(e,2),16))),parseInt(pp(e[3]||"f",2),16)/255]}const n=gp.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const i=vp.exec(t);if(i){const e=Array.from(i).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const o=yp.exec(t);if(o){const[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(cp(0,100,r)!==r)throw new up(e);if(cp(0,100,n)!==n)throw new up(e);return[...xp(t,r,n),Number.isNaN(i)?1:i]}throw new up(e)}const hp=e=>parseInt(e.replace(/_/g,""),36),fp="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=hp(t.substring(0,3)),n=hp(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e}),{});const pp=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),mp=new RegExp(`^#${pp("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gp=new RegExp(`^#${pp("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),vp=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pp(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),yp=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bp=/^[a-z]+$/i,wp=e=>Math.round(255*e),xp=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(wp);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1));let s=0,c=0,l=0;i>=0&&i<1?(s=o,c=a):i>=1&&i<2?(s=a,c=o):i>=2&&i<3?(c=o,l=a):i>=3&&i<4?(c=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);const u=n-o/2;return[s+u,c+u,l+u].map(wp)};function _p(e,t,r,n){return`rgba(${cp(0,255,e).toFixed()}, ${cp(0,255,t).toFixed()}, ${cp(0,255,r).toFixed()}, ${parseFloat(cp(0,1,n).toFixed(3))})`}function Sp(e,t){const[r,n,i,o]=dp(e);return _p(r,n,i,o-t)}var kp=(e,t,r)=>{const n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n{const t=cp(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},Ep=e=>t=>{const r=(e=>{const[t,r,n]=dp(e);return(299*t+587*r+114*n)/1e3})(kp(t,e));return r<128?"dark":"light"},Ap=(e,t)=>r=>Sp(kp(r,e),1-t);function Pp(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}function Op(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let n=0;n>8*n&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var r}var Tp=Ae("tabs-color"),Cp=Ae("tabs-bg"),jp=Ae("tabs-border-color"),{defineMultiStyleConfig:Rp,definePartsStyle:Ip}=ut(Af.keys),Mp=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Lp=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Np=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}},Dp={p:4},zp=Ip((e=>({root:Mp(e),tab:Lp(e),tablist:Np(e),tabpanel:Dp}))),Bp={sm:Ip({tab:{py:1,px:4,fontSize:"sm"}}),md:Ip({tab:{fontSize:"md",py:2,px:4}}),lg:Ip({tab:{fontSize:"lg",py:3,px:4}})},Fp=Ip((e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[Tp.variable]:`colors.${t}.600`,_dark:{[Tp.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Cp.variable]:"colors.gray.200",_dark:{[Cp.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Tp.reference,bg:Cp.reference}}})),Up=Ip((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[jp.variable]:"transparent",_selected:{[Tp.variable]:`colors.${t}.600`,[jp.variable]:"colors.white",_dark:{[Tp.variable]:`colors.${t}.300`,[jp.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:jp.reference},color:Tp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),$p=Ip((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Cp.variable]:"colors.gray.50",_dark:{[Cp.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Cp.variable]:"colors.white",[Tp.variable]:`colors.${t}.600`,_dark:{[Cp.variable]:"colors.gray.800",[Tp.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Tp.reference,bg:Cp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Hp=Ip((e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:kp(r,`${t}.700`),bg:kp(r,`${t}.100`)}}}})),Vp=Ip((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Tp.variable]:"colors.gray.600",_dark:{[Tp.variable]:"inherit"},_selected:{[Tp.variable]:"colors.white",[Cp.variable]:`colors.${t}.600`,_dark:{[Tp.variable]:"colors.gray.800",[Cp.variable]:`colors.${t}.300`}},color:Tp.reference,bg:Cp.reference}}})),qp=Rp({baseStyle:zp,sizes:Bp,variants:{line:Fp,enclosed:Up,"enclosed-colored":$p,"soft-rounded":Hp,"solid-rounded":Vp,unstyled:Ip({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Kp=function(e,t){const r={};for(const n of t)if(Array.isArray(n)){const[t,i]=n;r[t]=Ae(`${e}-${t}`,i)}else r[n]=Ae(`${e}-${n}`);return r}("badge",["bg","color","shadow"]),Wp=e=>{const{colorScheme:t,theme:r}=e,n=Ap(`${t}.500`,.6)(r);return{[Kp.bg.variable]:`colors.${t}.500`,[Kp.color.variable]:"colors.white",_dark:{[Kp.bg.variable]:n,[Kp.color.variable]:"colors.whiteAlpha.800"}}},Gp=e=>{const{colorScheme:t,theme:r}=e,n=Ap(`${t}.200`,.16)(r);return{[Kp.bg.variable]:`colors.${t}.100`,[Kp.color.variable]:`colors.${t}.800`,_dark:{[Kp.bg.variable]:n,[Kp.color.variable]:`colors.${t}.200`}}},Yp=e=>{const{colorScheme:t,theme:r}=e,n=Ap(`${t}.200`,.8)(r);return{[Kp.color.variable]:`colors.${t}.500`,_dark:{[Kp.color.variable]:n},[Kp.shadow.variable]:`inset 0 0 0px 1px ${Kp.color.reference}`}},Zp={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Kp.bg.reference,color:Kp.color.reference,boxShadow:Kp.shadow.reference},variants:{solid:Wp,subtle:Gp,outline:Yp},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Xp,definePartsStyle:Jp}=ut(Pf.keys),Qp=Ae("tag-bg"),em=Ae("tag-color"),tm=Ae("tag-shadow"),rm=Ae("tag-min-height"),nm=Ae("tag-min-width"),im=Ae("tag-font-size"),om=Ae("tag-padding-inline"),am=Jp({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[em.variable]:Kp.color.reference,[Qp.variable]:Kp.bg.reference,[tm.variable]:Kp.shadow.reference,color:em.reference,bg:Qp.reference,boxShadow:tm.reference,borderRadius:"md",minH:rm.reference,minW:nm.reference,fontSize:im.reference,px:om.reference,_focusVisible:{[tm.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),sm={sm:Jp({container:{[rm.variable]:"sizes.5",[nm.variable]:"sizes.5",[im.variable]:"fontSizes.xs",[om.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Jp({container:{[rm.variable]:"sizes.6",[nm.variable]:"sizes.6",[im.variable]:"fontSizes.sm",[om.variable]:"space.2"}}),lg:Jp({container:{[rm.variable]:"sizes.8",[nm.variable]:"sizes.8",[im.variable]:"fontSizes.md",[om.variable]:"space.3"}})},cm={subtle:Jp((e=>{var t;return{container:null==(t=Zp.variants)?void 0:t.subtle(e)}})),solid:Jp((e=>{var t;return{container:null==(t=Zp.variants)?void 0:t.solid(e)}})),outline:Jp((e=>{var t;return{container:null==(t=Zp.variants)?void 0:t.outline(e)}}))},lm=Xp({variants:cm,baseStyle:am,sizes:sm,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:um,defineMultiStyleConfig:dm}=ut(ff.keys),hm=Ae("input-height"),fm=Ae("input-font-size"),pm=Ae("input-padding"),mm=Ae("input-border-radius"),gm=um({addon:{height:hm.reference,fontSize:fm.reference,px:pm.reference,borderRadius:mm.reference},field:{width:"100%",height:hm.reference,fontSize:fm.reference,px:pm.reference,borderRadius:mm.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),vm={lg:{[fm.variable]:"fontSizes.lg",[pm.variable]:"space.4",[mm.variable]:"radii.md",[hm.variable]:"sizes.12"},md:{[fm.variable]:"fontSizes.md",[pm.variable]:"space.4",[mm.variable]:"radii.md",[hm.variable]:"sizes.10"},sm:{[fm.variable]:"fontSizes.sm",[pm.variable]:"space.3",[mm.variable]:"radii.sm",[hm.variable]:"sizes.8"},xs:{[fm.variable]:"fontSizes.xs",[pm.variable]:"space.2",[mm.variable]:"radii.sm",[hm.variable]:"sizes.6"}},ym={lg:um({field:vm.lg,group:vm.lg}),md:um({field:vm.md,group:vm.md}),sm:um({field:vm.sm,group:vm.sm}),xs:um({field:vm.xs,group:vm.xs})};function bm(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Qf("blue.500","blue.300")(e),errorBorderColor:r||Qf("red.500","red.300")(e)}}var wm,xm,_m,Sm,km,Em,Am,Pm,Om,Tm,Cm,jm=um((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=bm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Qf("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kp(t,n),boxShadow:`0 0 0 1px ${kp(t,n)}`},_focusVisible:{zIndex:1,borderColor:kp(t,r),boxShadow:`0 0 0 1px ${kp(t,r)}`}},addon:{border:"1px solid",borderColor:Qf("inherit","whiteAlpha.50")(e),bg:Qf("gray.100","whiteAlpha.300")(e)}}})),Rm=um((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=bm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Qf("gray.100","whiteAlpha.50")(e),_hover:{bg:Qf("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kp(t,n)},_focusVisible:{bg:"transparent",borderColor:kp(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Qf("gray.100","whiteAlpha.50")(e)}}})),Im=um((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=bm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kp(t,n),boxShadow:`0px 1px 0px 0px ${kp(t,n)}`},_focusVisible:{borderColor:kp(t,r),boxShadow:`0px 1px 0px 0px ${kp(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),Mm=dm({baseStyle:gm,sizes:ym,variants:{outline:jm,filled:Rm,flushed:Im,unstyled:um({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Lm={...null==(wm=Mm.baseStyle)?void 0:wm.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Nm={outline:e=>{var t,r;return null!=(r=null==(t=Mm.variants)?void 0:t.outline(e).field)?r:{}},flushed:e=>{var t,r;return null!=(r=null==(t=Mm.variants)?void 0:t.flushed(e).field)?r:{}},filled:e=>{var t,r;return null!=(r=null==(t=Mm.variants)?void 0:t.filled(e).field)?r:{}},unstyled:null!=(_m=null==(xm=Mm.variants)?void 0:xm.unstyled.field)?_m:{}},Dm={baseStyle:Lm,sizes:{xs:null!=(km=null==(Sm=Mm.sizes)?void 0:Sm.xs.field)?km:{},sm:null!=(Am=null==(Em=Mm.sizes)?void 0:Em.sm.field)?Am:{},md:null!=(Om=null==(Pm=Mm.sizes)?void 0:Pm.md.field)?Om:{},lg:null!=(Cm=null==(Tm=Mm.sizes)?void 0:Tm.lg.field)?Cm:{}},variants:Nm,defaultProps:{size:"md",variant:"outline"}},zm=Rf("tooltip-bg"),Bm=Rf("tooltip-fg"),Fm=Rf("popper-arrow-bg"),Um={baseStyle:{bg:zm.reference,color:Bm.reference,[zm.variable]:"colors.gray.700",[Bm.variable]:"colors.whiteAlpha.900",_dark:{[zm.variable]:"colors.gray.300",[Bm.variable]:"colors.gray.900"},[Fm.variable]:zm.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:$m,definePartsStyle:Hm}=ut(bf.keys),Vm=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=Qf(Pp(),Pp("1rem","rgba(0,0,0,0.1)"))(e),a=Qf(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${kp(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}},qm={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Km=e=>({bg:Qf("gray.100","whiteAlpha.300")(e)}),Wm=e=>({transitionProperty:"common",transitionDuration:"slow",...Vm(e)}),Gm=Hm((e=>({label:qm,filledTrack:Wm(e),track:Km(e)}))),Ym=$m({sizes:{xs:Hm({track:{h:"1"}}),sm:Hm({track:{h:"2"}}),md:Hm({track:{h:"3"}}),lg:Hm({track:{h:"4"}})},baseStyle:Gm,defaultProps:{size:"md",colorScheme:"blue"}});function Zm(e,...t){return(e=>"function"===typeof e)(e)?e(...t):e}var Xm,Jm,Qm,eg,tg,rg,ng,ig,og,{definePartsStyle:ag,defineMultiStyleConfig:sg}=ut(cf.keys),cg=Ae("checkbox-size"),lg=e=>{const{colorScheme:t}=e;return{w:cg.reference,h:cg.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Qf(`${t}.500`,`${t}.200`)(e),borderColor:Qf(`${t}.500`,`${t}.200`)(e),color:Qf("white","gray.900")(e),_hover:{bg:Qf(`${t}.600`,`${t}.300`)(e),borderColor:Qf(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Qf("gray.200","transparent")(e),bg:Qf("gray.200","whiteAlpha.300")(e),color:Qf("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Qf(`${t}.500`,`${t}.200`)(e),borderColor:Qf(`${t}.500`,`${t}.200`)(e),color:Qf("white","gray.900")(e)},_disabled:{bg:Qf("gray.100","whiteAlpha.100")(e),borderColor:Qf("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Qf("red.500","red.300")(e)}}},ug={_disabled:{cursor:"not-allowed"}},dg={userSelect:"none",_disabled:{opacity:.4}},hg={transitionProperty:"transform",transitionDuration:"normal"},fg=sg({baseStyle:ag((e=>({icon:hg,container:ug,control:Zm(lg,e),label:dg}))),sizes:{sm:ag({control:{[cg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ag({control:{[cg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ag({control:{[cg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:pg,definePartsStyle:mg}=ut(wf.keys),gg=e=>{var t;const r=null==(t=Zm(fg.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},vg=mg((e=>{var t,r,n,i;return{label:null==(r=(t=fg).baseStyle)?void 0:r.call(t,e).label,container:null==(i=(n=fg).baseStyle)?void 0:i.call(n,e).container,control:gg(e)}})),yg=pg({baseStyle:vg,sizes:{md:mg({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:mg({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:mg({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bg,definePartsStyle:wg}=ut(xf.keys),xg=Ae("select-bg"),_g={paddingInlineEnd:"8"},Sg=bg({baseStyle:wg({field:{...null==(Xm=Mm.baseStyle)?void 0:Xm.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:xg.reference,[xg.variable]:"colors.white",_dark:{[xg.variable]:"colors.gray.700"},"> option, > optgroup":{bg:xg.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(Jm=Mm.sizes)?void 0:Jm.lg,field:{...null==(Qm=Mm.sizes)?void 0:Qm.lg.field,..._g}},md:{...null==(eg=Mm.sizes)?void 0:eg.md,field:{...null==(tg=Mm.sizes)?void 0:tg.md.field,..._g}},sm:{...null==(rg=Mm.sizes)?void 0:rg.sm,field:{...null==(ng=Mm.sizes)?void 0:ng.sm.field,..._g}},xs:{...null==(ig=Mm.sizes)?void 0:ig.xs,field:{...null==(og=Mm.sizes)?void 0:og.xs.field,..._g},icon:{insetEnd:"1"}}},variants:Mm.variants,defaultProps:Mm.defaultProps}),kg=Ae("skeleton-start-color"),Eg=Ae("skeleton-end-color"),Ag={baseStyle:{[kg.variable]:"colors.gray.100",[Eg.variable]:"colors.gray.400",_dark:{[kg.variable]:"colors.gray.800",[Eg.variable]:"colors.gray.600"},background:kg.reference,borderColor:Eg.reference,opacity:.7,borderRadius:"sm"}},Pg=Ae("skip-link-bg"),Og={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Pg.variable]:"colors.white",_dark:{[Pg.variable]:"colors.gray.700"},bg:Pg.reference}}},{defineMultiStyleConfig:Tg,definePartsStyle:Cg}=ut(_f.keys),jg=Ae("slider-thumb-size"),Rg=Ae("slider-track-size"),Ig=Ae("slider-bg"),Mg=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ep({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Lg=e=>({...ep({orientation:e.orientation,horizontal:{h:Rg.reference},vertical:{w:Rg.reference}}),overflow:"hidden",borderRadius:"sm",[Ig.variable]:"colors.gray.200",_dark:{[Ig.variable]:"colors.whiteAlpha.200"},_disabled:{[Ig.variable]:"colors.gray.300",_dark:{[Ig.variable]:"colors.whiteAlpha.300"}},bg:Ig.reference}),Ng=e=>{const{orientation:t}=e;return{...ep({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:jg.reference,h:jg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Dg=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ig.variable]:`colors.${t}.500`,_dark:{[Ig.variable]:`colors.${t}.200`},bg:Ig.reference}},zg=Tg({baseStyle:Cg((e=>({container:Mg(e),track:Lg(e),thumb:Ng(e),filledTrack:Dg(e)}))),sizes:{lg:Cg({container:{[jg.variable]:"sizes.4",[Rg.variable]:"sizes.1"}}),md:Cg({container:{[jg.variable]:"sizes.3.5",[Rg.variable]:"sizes.1"}}),sm:Cg({container:{[jg.variable]:"sizes.2.5",[Rg.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Bg=Rf("spinner-size"),Fg={baseStyle:{width:[Bg.reference],height:[Bg.reference]},sizes:{xs:{[Bg.variable]:"sizes.3"},sm:{[Bg.variable]:"sizes.4"},md:{[Bg.variable]:"sizes.6"},lg:{[Bg.variable]:"sizes.8"},xl:{[Bg.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Ug,definePartsStyle:$g}=ut(Sf.keys),Hg=Ug({baseStyle:$g({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:$g({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Vg=Ae("kbd-bg"),qg={baseStyle:{[Vg.variable]:"colors.gray.100",_dark:{[Vg.variable]:"colors.whiteAlpha.100"},bg:Vg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},Kg={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},{defineMultiStyleConfig:Wg,definePartsStyle:Gg}=ut(pf.keys),Yg=Wg({baseStyle:Gg({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Zg,definePartsStyle:Xg}=ut(mf.keys),Jg=Ae("menu-bg"),Qg=Ae("menu-shadow"),ev=Zg({baseStyle:Xg({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[Jg.variable]:"#fff",[Qg.variable]:"shadows.sm",_dark:{[Jg.variable]:"colors.gray.700",[Qg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Jg.reference,boxShadow:Qg.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Jg.variable]:"colors.gray.100",_dark:{[Jg.variable]:"colors.whiteAlpha.100"}},_active:{[Jg.variable]:"colors.gray.200",_dark:{[Jg.variable]:"colors.whiteAlpha.200"}},_expanded:{[Jg.variable]:"colors.gray.100",_dark:{[Jg.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Jg.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:tv,definePartsStyle:rv}=ut(gf.keys),nv=Ae("modal-bg"),iv=Ae("modal-shadow"),ov={bg:"blackAlpha.600",zIndex:"modal"},av=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},sv=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[nv.variable]:"colors.white",[iv.variable]:"shadows.lg",_dark:{[nv.variable]:"colors.gray.700",[iv.variable]:"shadows.dark-lg"},bg:nv.reference,boxShadow:iv.reference}},cv={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},lv={position:"absolute",top:"2",insetEnd:"3"},uv=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},dv={px:"6",py:"4"};function hv(e){return rv("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var fv=tv({baseStyle:rv((e=>({overlay:ov,dialogContainer:Zm(av,e),dialog:Zm(sv,e),header:cv,closeButton:lv,body:Zm(uv,e),footer:dv}))),sizes:{xs:hv("xs"),sm:hv("sm"),md:hv("md"),lg:hv("lg"),xl:hv("xl"),"2xl":hv("2xl"),"3xl":hv("3xl"),"4xl":hv("4xl"),"5xl":hv("5xl"),"6xl":hv("6xl"),full:hv("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:pv,definePartsStyle:mv}=ut(vf.keys),gv=Rf("number-input-stepper-width"),vv=Rf("number-input-input-padding"),yv=Uf(gv).add("0.5rem").toString(),bv=Rf("number-input-bg"),wv=Rf("number-input-color"),xv=Rf("number-input-border-color"),_v={[gv.variable]:"sizes.6",[vv.variable]:yv},Sv=e=>{var t,r;return null!=(r=null==(t=Zm(Mm.baseStyle,e))?void 0:t.field)?r:{}},kv={width:gv.reference},Ev={borderStart:"1px solid",borderStartColor:xv.reference,color:wv.reference,bg:bv.reference,[wv.variable]:"colors.chakra-body-text",[xv.variable]:"colors.chakra-border-color",_dark:{[wv.variable]:"colors.whiteAlpha.800",[xv.variable]:"colors.whiteAlpha.300"},_active:{[bv.variable]:"colors.gray.200",_dark:{[bv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Av=mv((e=>{var t;return{root:_v,field:null!=(t=Zm(Sv,e))?t:{},stepperGroup:kv,stepper:Ev}}));function Pv(e){var t,r,n;const i=null==(t=Mm.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=Hh.fontSizes[a];return mv({field:{...i.field,paddingInlineEnd:vv.reference,verticalAlign:"top"},stepper:{fontSize:Uf(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Ov,Tv,Cv,jv=pv({baseStyle:Av,sizes:{xs:Pv("xs"),sm:Pv("sm"),md:Pv("md"),lg:Pv("lg")},variants:Mm.variants,defaultProps:Mm.defaultProps}),Rv={...null==(Ov=Mm.baseStyle)?void 0:Ov.field,textAlign:"center"},Iv={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},Mv={outline:e=>{var t,r,n;return null!=(n=null==(r=Zm(null==(t=Mm.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}},flushed:e=>{var t,r,n;return null!=(n=null==(r=Zm(null==(t=Mm.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}},filled:e=>{var t,r,n;return null!=(n=null==(r=Zm(null==(t=Mm.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}},unstyled:null!=(Cv=null==(Tv=Mm.variants)?void 0:Tv.unstyled.field)?Cv:{}},Lv={baseStyle:Rv,sizes:Iv,variants:Mv,defaultProps:Mm.defaultProps},{defineMultiStyleConfig:Nv,definePartsStyle:Dv}=ut(yf.keys),zv=Rf("popper-bg"),Bv=Rf("popper-arrow-bg"),Fv=Rf("popper-arrow-shadow-color"),Uv=Nv({baseStyle:Dv({popper:{zIndex:10},content:{[zv.variable]:"colors.white",bg:zv.reference,[Bv.variable]:zv.reference,[Fv.variable]:"colors.gray.200",_dark:{[zv.variable]:"colors.gray.700",[Fv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:$v,defineMultiStyleConfig:Hv}=ut(lf.keys),Vv=Ae("drawer-bg"),qv=Ae("drawer-box-shadow");function Kv(e){return $v("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Wv={bg:"blackAlpha.600",zIndex:"modal"},Gv={display:"flex",zIndex:"modal",justifyContent:"center"},Yv=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Vv.variable]:"colors.white",[qv.variable]:"shadows.lg",_dark:{[Vv.variable]:"colors.gray.700",[qv.variable]:"shadows.dark-lg"},bg:Vv.reference,boxShadow:qv.reference}},Zv={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Xv={position:"absolute",top:"2",insetEnd:"3"},Jv={px:"6",py:"2",flex:"1",overflow:"auto"},Qv={px:"6",py:"4"},ey=Hv({baseStyle:$v((e=>({overlay:Wv,dialogContainer:Gv,dialog:Zm(Yv,e),header:Zv,closeButton:Xv,body:Jv,footer:Qv}))),sizes:{xs:Kv("xs"),sm:Kv("md"),md:Kv("lg"),lg:Kv("2xl"),xl:Kv("4xl"),full:Kv("full")},defaultProps:{size:"xs"}}),{definePartsStyle:ty,defineMultiStyleConfig:ry}=ut(uf.keys),ny=ry({baseStyle:ty({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:iy,defineMultiStyleConfig:oy}=ut(df.keys),ay=Ae("form-control-color"),sy=oy({baseStyle:iy({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[ay.variable]:"colors.red.500",_dark:{[ay.variable]:"colors.red.300"},color:ay.reference},helperText:{mt:"2",[ay.variable]:"colors.gray.600",_dark:{[ay.variable]:"colors.whiteAlpha.600"},color:ay.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:cy,defineMultiStyleConfig:ly}=ut(hf.keys),uy=Ae("form-error-color"),dy=ly({baseStyle:cy({text:{[uy.variable]:"colors.red.500",_dark:{[uy.variable]:"colors.red.300"},color:uy.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[uy.variable]:"colors.red.500",_dark:{[uy.variable]:"colors.red.300"},color:uy.reference}})}),hy={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},fy={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},{defineMultiStyleConfig:py,definePartsStyle:my}=ut(sf.keys),gy=Ae("breadcrumb-link-decor"),vy=py({baseStyle:my({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:gy.reference,[gy.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[gy.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),yy=e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:Qf("gray.800","whiteAlpha.900")(e),_hover:{bg:Qf("gray.100","whiteAlpha.200")(e)},_active:{bg:Qf("gray.200","whiteAlpha.300")(e)}};const n=Ap(`${t}.200`,.12)(r),i=Ap(`${t}.200`,.24)(r);return{color:Qf(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Qf(`${t}.50`,n)(e)},_active:{bg:Qf(`${t}.100`,i)(e)}}},by=e=>{const{colorScheme:t}=e,r=Qf("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Zm(yy,e)}},wy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},xy=e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=Qf("gray.100","whiteAlpha.200")(e);return{bg:t,color:Qf("gray.800","whiteAlpha.900")(e),_hover:{bg:Qf("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Qf("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=wy[r])?t:{},s=Qf(n,`${r}.200`)(e);return{bg:s,color:Qf(i,"gray.800")(e),_hover:{bg:Qf(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:Qf(a,`${r}.400`)(e)}}},_y=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Qf(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Qf(`${t}.700`,`${t}.500`)(e)}}},Sy={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:yy,outline:by,solid:xy,link:_y,unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ky,defineMultiStyleConfig:Ey}=ut(Of.keys),Ay=Ae("card-bg"),Py=Ae("card-padding"),Oy=Ae("card-shadow"),Ty=Ae("card-radius"),Cy=Ae("card-border-width","0"),jy=Ae("card-border-color"),Ry=ky({container:{[Ay.variable]:"colors.chakra-body-bg",backgroundColor:Ay.reference,boxShadow:Oy.reference,borderRadius:Ty.reference,color:"chakra-body-text",borderWidth:Cy.reference,borderColor:jy.reference},body:{padding:Py.reference,flex:"1 1 0%"},header:{padding:Py.reference},footer:{padding:Py.reference}}),Iy={sm:ky({container:{[Ty.variable]:"radii.base",[Py.variable]:"space.3"}}),md:ky({container:{[Ty.variable]:"radii.md",[Py.variable]:"space.5"}}),lg:ky({container:{[Ty.variable]:"radii.xl",[Py.variable]:"space.7"}})},My=Ey({baseStyle:Ry,variants:{elevated:ky({container:{[Oy.variable]:"shadows.base",_dark:{[Ay.variable]:"colors.gray.700"}}}),outline:ky({container:{[Cy.variable]:"1px",[jy.variable]:"colors.chakra-border-color"}}),filled:ky({container:{[Ay.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Py.variable]:0},header:{[Py.variable]:0},footer:{[Py.variable]:0}}},sizes:Iy,defaultProps:{variant:"elevated",size:"md"}}),Ly=Rf("close-button-size"),Ny=Rf("close-button-bg"),Dy={baseStyle:{w:[Ly.reference],h:[Ly.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ny.variable]:"colors.blackAlpha.100",_dark:{[Ny.variable]:"colors.whiteAlpha.100"}},_active:{[Ny.variable]:"colors.blackAlpha.200",_dark:{[Ny.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ny.reference},sizes:{lg:{[Ly.variable]:"sizes.10",fontSize:"md"},md:{[Ly.variable]:"sizes.8",fontSize:"xs"},sm:{[Ly.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:zy,defaultProps:By}=Zp,Fy={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Kp.bg.reference,color:Kp.color.reference,boxShadow:Kp.shadow.reference},variants:zy,defaultProps:By},Uy={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},$y={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},{definePartsStyle:Hy,defineMultiStyleConfig:Vy}=ut(nf.keys),qy=Vy({baseStyle:Hy({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:Ky,defineMultiStyleConfig:Wy}=ut(of.keys),Gy=Ae("alert-fg"),Yy=Ae("alert-bg"),Zy=Ky({container:{bg:Yy.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Gy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Gy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Xy(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:Ap(`${r}.200`,.16)(t)}}var Jy=Ky((e=>{const{colorScheme:t}=e,r=Xy(e);return{container:{[Gy.variable]:`colors.${t}.600`,[Yy.variable]:r.light,_dark:{[Gy.variable]:`colors.${t}.200`,[Yy.variable]:r.dark}}}})),Qy=Ky((e=>{const{colorScheme:t}=e,r=Xy(e);return{container:{[Gy.variable]:`colors.${t}.600`,[Yy.variable]:r.light,_dark:{[Gy.variable]:`colors.${t}.200`,[Yy.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Gy.reference}}})),eb=Ky((e=>{const{colorScheme:t}=e,r=Xy(e);return{container:{[Gy.variable]:`colors.${t}.600`,[Yy.variable]:r.light,_dark:{[Gy.variable]:`colors.${t}.200`,[Yy.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Gy.reference}}})),tb=Ky((e=>{const{colorScheme:t}=e;return{container:{[Gy.variable]:"colors.white",[Yy.variable]:`colors.${t}.600`,_dark:{[Gy.variable]:"colors.gray.900",[Yy.variable]:`colors.${t}.200`},color:Gy.reference}}})),rb=Wy({baseStyle:Zy,variants:{subtle:Jy,"left-accent":Qy,"top-accent":eb,solid:tb},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:nb,defineMultiStyleConfig:ib}=ut(af.keys),ob=Ae("avatar-border-color"),ab=Ae("avatar-bg"),sb=Ae("avatar-font-size"),cb=Ae("avatar-size"),lb={borderRadius:"full",border:"0.2em solid",borderColor:ob.reference,[ob.variable]:"white",_dark:{[ob.variable]:"colors.gray.800"}},ub={bg:ab.reference,fontSize:sb.reference,width:cb.reference,height:cb.reference,lineHeight:"1",[ab.variable]:"colors.gray.200",_dark:{[ab.variable]:"colors.whiteAlpha.400"}},db=e=>{const{name:t,theme:r}=e,n=t?Op({string:t}):"colors.gray.400",i=(e=>t=>"dark"===Ep(e)(t))(n)(r);let o="white";return i||(o="gray.800"),{bg:ab.reference,fontSize:sb.reference,color:o,borderColor:ob.reference,verticalAlign:"top",width:cb.reference,height:cb.reference,"&:not([data-loaded])":{[ab.variable]:n},[ob.variable]:"colors.white",_dark:{[ob.variable]:"colors.gray.800"}}},hb={fontSize:sb.reference,lineHeight:"1"};function fb(e){const t="100%"!==e?qh[e]:void 0;return nb({container:{[cb.variable]:null!=t?t:e,[sb.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[cb.variable]:null!=t?t:e,[sb.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var pb={Accordion:qy,Alert:rb,Avatar:ib({baseStyle:nb((e=>({badge:Zm(lb,e),excessLabel:Zm(ub,e),container:Zm(db,e),label:hb}))),sizes:{"2xs":fb(4),xs:fb(6),sm:fb(8),md:fb(12),lg:fb(16),xl:fb(24),"2xl":fb(32),full:fb("100%")},defaultProps:{size:"md"}}),Badge:Zp,Breadcrumb:vy,Button:Sy,Checkbox:fg,CloseButton:Dy,Code:Fy,Container:Uy,Divider:$y,Drawer:ey,Editable:ny,Form:sy,FormError:dy,FormLabel:hy,Heading:fy,Input:Mm,Kbd:qg,Link:Kg,List:Yg,Menu:ev,Modal:fv,NumberInput:jv,PinInput:Lv,Popover:Uv,Progress:Ym,Radio:yg,Select:Sg,Skeleton:Ag,SkipLink:Og,Slider:zg,Spinner:Fg,Stat:Hg,Switch:Jf,Table:sp,Tabs:qp,Tag:lm,Textarea:Dm,Tooltip:Um,Card:My,Stepper:tf},mb={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},gb={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},vb={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yb={semanticTokens:mb,direction:"ltr",...Kh,components:pb,styles:gb,config:vb},bb={semanticTokens:mb,direction:"ltr",components:{},...Kh,styles:gb,config:vb},wb=(e,t)=>e.find((e=>e.id===t));function xb(e,t){const r=_b(e,t);return{position:r,index:r?e[r].findIndex((e=>e.id===t)):-1}}function _b(e,t){for(const[r,n]of Object.entries(e))if(wb(n,t))return r}function Sb(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function kb(e,t=[]){const r=(0,i.useRef)(e);return(0,i.useEffect)((()=>{r.current=e})),(0,i.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function Eb(e,t){const r=(0,i.useRef)(!1),n=(0,i.useRef)(!1);(0,i.useEffect)((()=>{if(r.current&&n.current)return e();n.current=!0}),t),(0,i.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}const Ab=(0,i.createContext)(null);function Pb(){const e=(0,i.useContext)(Ab);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=(0,i.useId)();(0,i.useEffect)((()=>n(o)),[]);return!t&&r?[!1,()=>r&&r(o)]:[!0]}function Ob(){return function(e){return null===e||e.isPresent}((0,i.useContext)(Ab))}const Tb=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Cb=(0,i.createContext)({}),jb="undefined"!==typeof document,Rb=jb?i.useLayoutEffect:i.useEffect,Ib=(0,i.createContext)({strict:!1}),Mb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Lb="data-"+Mb("framerAppearId"),Nb=!1,Db=!1;class zb{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Bb=["prepare","read","update","preRender","render","postRender"];function Fb(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Bb.reduce(((e,t)=>(e[t]=function(e){let t=new zb,r=new zb,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const c=s&&i,l=c?t:r;return o&&a.add(e),l.add(e)&&c&&i&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:c=>{if(i)o=!0;else{if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;rr=!0)),e)),{}),a=e=>{o[e].process(i)},s=()=>{const o=Db?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,Bb.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},c=Bb.reduce(((t,a)=>{const c=o[a];return t[a]=(t,o=!1,a=!1)=>(r||(r=!0,n=!0,i.isProcessing||e(s)),c.schedule(t,o,a)),t}),{});return{schedule:c,cancel:e=>Bb.forEach((t=>o[t].cancel(e))),state:i,steps:o}}const{schedule:Ub,cancel:$b}=Fb(queueMicrotask,!1);function Hb(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Vb(e){return"string"===typeof e||Array.isArray(e)}function qb(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const Kb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wb=["initial",...Kb];function Gb(e){return qb(e.animate)||Wb.some((t=>Vb(e[t])))}function Yb(e){return Boolean(Gb(e)||e.variants)}function Zb(e){const{initial:t,animate:r}=function(e,t){if(Gb(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Vb(t)?t:void 0,animate:Vb(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(Cb));return(0,i.useMemo)((()=>({initial:t,animate:r})),[Xb(t),Xb(r)])}function Xb(e){return Array.isArray(e)?e.join(" "):e}const Jb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qb={};for(const r in Jb)Qb[r]={isEnabled:e=>Jb[r].some((t=>!!e[t]))};const ew=(0,i.createContext)({}),tw=(0,i.createContext)({}),rw=Symbol.for("motionComponentSymbol");function nw({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&function(e){for(const t in e)Qb[t]={...Qb[t],...e[t]}}(e);const a=(0,i.forwardRef)((function(a,s){let c;const l={...(0,i.useContext)(Tb),...a,layoutId:iw(a)},{isStatic:u}=l,d=Zb(a),h=n(a,u);if(!u&&jb){d.visualElement=function(e,t,r,n){const{visualElement:o}=(0,i.useContext)(Cb),a=(0,i.useContext)(Ib),s=(0,i.useContext)(Ab),c=(0,i.useContext)(Tb).reducedMotion,l=(0,i.useRef)();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const u=l.current;(0,i.useInsertionEffect)((()=>{u&&u.update(r,s)}));const d=(0,i.useRef)(Boolean(r[Lb]&&!window.HandoffComplete));return Rb((()=>{u&&(Ub.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,i.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),u}(o,h,l,t);const r=(0,i.useContext)(tw),n=(0,i.useContext)(Ib).strict;d.visualElement&&(c=d.visualElement.loadFeatures(l,n,e,r))}return i.createElement(Cb.Provider,{value:d},c&&d.visualElement?i.createElement(c,{visualElement:d.visualElement,...l}):null,r(o,a,function(e,t,r){return(0,i.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"===typeof r?r(n):Hb(r)&&(r.current=n))}),[t])}(h,d.visualElement,s),h,u,d.visualElement))}));return a[rw]=o,a}function iw({layoutId:e}){const t=(0,i.useContext)(ew).id;return t&&void 0!==e?t+"-"+e:e}function ow(e){function t(t,r={}){return nw(e(t,r))}if("undefined"===typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const aw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sw(e){return"string"===typeof e&&!e.includes("-")&&!!(aw.indexOf(e)>-1||/[A-Z]/.test(e))}const cw={};const lw=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],uw=new Set(lw);function dw(e,{layout:t,layoutId:r}){return uw.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!cw[e]||"opacity"===e)}const hw=e=>Boolean(e&&e.getVelocity),fw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pw=lw.length;const mw=e=>t=>"string"===typeof t&&t.startsWith(e),gw=mw("--"),vw=mw("var(--"),yw=(e,t)=>t&&"number"===typeof e?t.transform(e):e,bw=(e,t,r)=>Math.min(Math.max(r,e),t),ww={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},xw={...ww,transform:e=>bw(0,1,e)},_w={...ww,default:1},Sw=e=>Math.round(1e5*e)/1e5,kw=/(-)?([\d]*\.?[\d])+/g,Ew=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Aw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Pw(e){return"string"===typeof e}const Ow=e=>({test:t=>Pw(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Tw=Ow("deg"),Cw=Ow("%"),jw=Ow("px"),Rw=Ow("vh"),Iw=Ow("vw"),Mw={...Cw,parse:e=>Cw.parse(e)/100,transform:e=>Cw.transform(100*e)},Lw={...ww,transform:Math.round},Nw={borderWidth:jw,borderTopWidth:jw,borderRightWidth:jw,borderBottomWidth:jw,borderLeftWidth:jw,borderRadius:jw,radius:jw,borderTopLeftRadius:jw,borderTopRightRadius:jw,borderBottomRightRadius:jw,borderBottomLeftRadius:jw,width:jw,maxWidth:jw,height:jw,maxHeight:jw,size:jw,top:jw,right:jw,bottom:jw,left:jw,padding:jw,paddingTop:jw,paddingRight:jw,paddingBottom:jw,paddingLeft:jw,margin:jw,marginTop:jw,marginRight:jw,marginBottom:jw,marginLeft:jw,rotate:Tw,rotateX:Tw,rotateY:Tw,rotateZ:Tw,scale:_w,scaleX:_w,scaleY:_w,scaleZ:_w,skew:Tw,skewX:Tw,skewY:Tw,distance:jw,translateX:jw,translateY:jw,translateZ:jw,x:jw,y:jw,z:jw,perspective:jw,transformPerspective:jw,opacity:xw,originX:Mw,originY:Mw,originZ:jw,zIndex:Lw,fillOpacity:xw,strokeOpacity:xw,numOctaves:Lw};function Dw(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let c=!1,l=!1,u=!0;for(const d in t){const e=t[d];if(gw(d)){o[d]=e;continue}const r=Nw[d],n=yw(e,r);if(uw.has(d)){if(c=!0,a[d]=n,!u)continue;e!==(r.default||0)&&(u=!1)}else d.startsWith("origin")?(l=!0,s[d]=n):i[d]=n}if(t.transform||(c||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function Bw(e,t,r){for(const n in t)hw(t[n])||dw(n,r)||(e[n]=t[n])}function Fw(e,t,r){const n={};return Bw(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t,r){return(0,i.useMemo)((()=>{const n=zw();return Dw(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),n}function Uw(e,t,r){const n={},i=Fw(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const $w=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hw(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$w.has(e)}let Vw=e=>!Hw(e);try{(qw=require("@emotion/is-prop-valid").default)&&(Vw=e=>e.startsWith("on")?!Hw(e):qw(e))}catch(un){}var qw;function Kw(e,t,r){return"string"===typeof e?e:jw.transform(t+r*e)}const Ww={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gw={offset:"strokeDashoffset",array:"strokeDasharray"};function Yw(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...l},u,d,h){if(Dw(e,l,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){return`${Kw(t,e.x,e.width)} ${Kw(r,e.y,e.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?Ww:Gw;e[o.offset]=jw.transform(-n);const a=jw.transform(t),s=jw.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,c,!1)}const Zw=()=>({...zw(),attrs:{}}),Xw=e=>"string"===typeof e&&"svg"===e.toLowerCase();function Jw(e,t,r,n){const o=(0,i.useMemo)((()=>{const r=Zw();return Yw(r,t,{enableHardwareAcceleration:!1},Xw(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Bw(t,e.style,e),o.style={...t,...o.style}}return o}function Qw(e=!1){return(t,r,n,{latestValues:o},a)=>{const s=(sw(t)?Jw:Uw)(r,o,a,t),c=function(e,t,r){const n={};for(const i in e)"values"===i&&"object"===typeof e.values||(Vw(i)||!0===r&&Hw(i)||!t&&!Hw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"===typeof t,e),l={...c,...s,ref:n},{children:u}=r,d=(0,i.useMemo)((()=>hw(u)?u.get():u),[u]);return(0,i.createElement)(t,{...l,children:d})}}function ex(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const tx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rx(e,t,r,n){ex(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(tx.has(i)?i:Mb(i),t.attrs[i])}function nx(e,t){const{style:r}=e,n={};for(const i in r)(hw(r[i])||t.style&&hw(t.style[i])||dw(i,e))&&(n[i]=r[i]);return n}function ix(e,t){const r=nx(e,t);for(const n in e)if(hw(e[n])||hw(t[n])){r[-1!==lw.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function ox(e,t,r,n={},i={}){return"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}function ax(e){const t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}const sx=e=>Array.isArray(e),cx=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),lx=e=>sx(e)?e[e.length-1]||0:e;function ux(e){const t=hw(e)?e.get():e;return cx(t)?t.toValue():t}const dx=e=>(t,r)=>{const n=(0,i.useContext)(Cb),o=(0,i.useContext)(Ab),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:hx(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,n,o);return r?a():ax(a)};function hx(e,t,r,n){const i={},o=n(e,{});for(const h in o)i[h]=ux(o[h]);let{initial:a,animate:s}=e;const c=Gb(e),l=Yb(e);t&&l&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!==typeof d&&!qb(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const r=ox(e,t);if(!r)return;const{transitionEnd:n,transition:o,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in n)i[e]=n[e]}))}return i}const fx=e=>e,{schedule:px,cancel:mx,state:gx,steps:vx}=Fb("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:fx,!0),yx={useVisualState:dx({scrapeMotionValuesFromProps:ix,createRenderState:Zw,onMount:(e,t,{renderState:r,latestValues:n})=>{px.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),px.render((()=>{Yw(r,n,{enableHardwareAcceleration:!1},Xw(t.tagName),e.transformTemplate),rx(t,r)}))}})},bx={useVisualState:dx({scrapeMotionValuesFromProps:nx,createRenderState:zw})};function wx(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const xx=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function _x(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Sx=e=>t=>xx(t)&&e(t,_x(t));function kx(e,t,r,n){return wx(e,t,Sx(r),n)}const Ex=(e,t)=>r=>t(e(r)),Ax=(...e)=>e.reduce(Ex);function Px(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const Ox=Px("dragHorizontal"),Tx=Px("dragVertical");function Cx(e){let t=!1;if("y"===e)t=Tx();else if("x"===e)t=Ox();else{const e=Ox(),r=Tx();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function jx(){const e=Cx(!0);return!e||(e(),!1)}class Rx{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ix(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return kx(e.current,r,((r,i)=>{if("touch"===r.pointerType||jx())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&px.update((()=>o[n](r,i)))}),{passive:!e.getProps()[n]})}const Mx=(e,t)=>!!t&&(e===t||Mx(e,t.parentElement));function Lx(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,_x(r))}const Nx=new WeakMap,Dx=new WeakMap,zx=e=>{const t=Nx.get(e.target);t&&t(e)},Bx=e=>{e.forEach(zx)};function Fx(e,t,r){const n=function({root:e,...t}){const r=e||document;Dx.has(r)||Dx.set(r,{});const n=Dx.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Bx,{root:e,...t})),n[i]}(t);return Nx.set(e,r),n.observe(e),()=>{Nx.delete(e),n.unobserve(e)}}const Ux={some:0,all:1};const $x={inView:{Feature:class extends Rx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"===typeof n?n:Ux[n]};return Fx(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Rx{constructor(){super(...arguments),this.removeStartListeners=fx,this.removeEndListeners=fx,this.removeAccessibleListeners=fx,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=kx(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();px.update((()=>{i||Mx(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),i=kx(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ax(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=wx(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=wx(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Lx("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&px.update((()=>r(e,t)))}))})),Lx("down",((e,t)=>{this.startPress(e,t)}))})),t=wx(this.node.current,"blur",(()=>{this.isPressing&&Lx("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ax(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&px.update((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!jx()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&px.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=kx(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=wx(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ax(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Rx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ax(wx(this.node.current,"focus",(()=>this.onFocus())),wx(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Rx{mount(){this.unmount=Ax(Ix(this.node,!0),Ix(this.node,!1))}unmount(){}}}};function Hx(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}let qx=fx,Kx=fx;const Wx=e=>1e3*e,Gx=e=>e/1e3,Yx=!1,Zx=e=>Array.isArray(e)&&"number"===typeof e[0];function Xx(e){return Boolean(!e||"string"===typeof e&&Qx[e]||Zx(e)||Array.isArray(e)&&e.every(Xx))}const Jx=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Qx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jx([0,.65,.55,1]),circOut:Jx([.55,0,1,.45]),backIn:Jx([.31,.01,.66,-.59]),backOut:Jx([.33,1.53,.69,.99])};function e_(e){if(e)return Zx(e)?Jx(e):Array.isArray(e)?e.map(e_):Qx[e]}const t_=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,r_=1e-7,n_=12;function i_(e,t,r,n){if(e===t&&r===n)return fx;const i=t=>function(e,t,r,n,i){let o,a,s=0;do{a=t+(r-t)/2,o=t_(a,n,i)-e,o>0?r=a:t=a}while(Math.abs(o)>r_&&++s0===e||1===e?e:t_(i(e),t,n)}const o_=i_(.42,0,1,1),a_=i_(0,0,.58,1),s_=i_(.42,0,.58,1),c_=e=>Array.isArray(e)&&"number"!==typeof e[0],l_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,u_=e=>t=>1-e(1-t),d_=e=>1-Math.sin(Math.acos(e)),h_=u_(d_),f_=l_(d_),p_=i_(.33,1.53,.69,.99),m_=u_(p_),g_=l_(m_),v_={linear:fx,easeIn:o_,easeInOut:s_,easeOut:a_,circIn:d_,circInOut:f_,circOut:h_,backIn:m_,backInOut:g_,backOut:p_,anticipate:e=>(e*=2)<1?.5*m_(e):.5*(2-Math.pow(2,-10*(e-1)))},y_=e=>{if(Array.isArray(e)){Kx(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return i_(t,r,n,i)}return"string"===typeof e?(Kx(void 0!==v_[e],`Invalid easing type '${e}'`),v_[e]):e},b_=(e,t)=>r=>Boolean(Pw(r)&&Aw.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),w_=(e,t,r)=>n=>{if(!Pw(n))return n;const[i,o,a,s]=n.match(kw);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},x_={...ww,transform:e=>Math.round((e=>bw(0,255,e))(e))},__={test:b_("rgb","red"),parse:w_("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+x_.transform(e)+", "+x_.transform(t)+", "+x_.transform(r)+", "+Sw(xw.transform(n))+")"};const S_={test:b_("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:__.transform},k_={test:b_("hsl","hue"),parse:w_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Cw.transform(Sw(t))+", "+Cw.transform(Sw(r))+", "+Sw(xw.transform(n))+")"},E_={test:e=>__.test(e)||S_.test(e)||k_.test(e),parse:e=>__.test(e)?__.parse(e):k_.test(e)?k_.parse(e):S_.parse(e),transform:e=>Pw(e)?e:e.hasOwnProperty("red")?__.transform(e):k_.transform(e)},A_=(e,t,r)=>-r*e+r*t+e;function P_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const O_=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},T_=[S_,__,k_];function C_(e){const t=(e=>T_.find((t=>t.test(e))))(e);Kx(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===k_&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=P_(s,n,e+1/3),o=P_(s,n,e),a=P_(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}const j_=(e,t)=>{const r=C_(e),n=C_(t),i={...r};return e=>(i.red=O_(r.red,n.red,e),i.green=O_(r.green,n.green,e),i.blue=O_(r.blue,n.blue,e),i.alpha=A_(r.alpha,n.alpha,e),__.transform(i))};const R_={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:fx},I_={regex:Ew,countKey:"Colors",token:"${c}",parse:E_.parse},M_={regex:kw,countKey:"Numbers",token:"${n}",parse:ww.parse};function L_(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function N_(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&L_(r,R_),L_(r,I_),L_(r,M_),r}function D_(e){return N_(e).values}function z_(e){const{values:t,numColors:r,numVars:n,tokenised:i}=N_(e),o=t.length;return e=>{let t=i;for(let i=0;i"number"===typeof e?0:e;const F_={test:function(e){var t,r;return isNaN(e)&&Pw(e)&&((null===(t=e.match(kw))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(Ew))||void 0===r?void 0:r.length)||0)>0},parse:D_,createTransformer:z_,getAnimatableNone:function(e){const t=D_(e);return z_(e)(t.map(B_))}},U_=(e,t)=>r=>`${r>0?t:e}`;function $_(e,t){return"number"===typeof e?r=>A_(e,t,r):E_.test(e)?j_(e,t):e.startsWith("var(")?U_(e,t):q_(e,t)}const H_=(e,t)=>{const r=[...e],n=r.length,i=e.map(((e,r)=>$_(e,t[r])));return e=>{for(let t=0;t{const r={...e,...t},n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=$_(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}},q_=(e,t)=>{const r=F_.createTransformer(t),n=N_(e),i=N_(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Ax(H_(n.values,i.values),r):(qx(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),U_(e,t))},K_=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},W_=(e,t)=>r=>A_(e,t,r);function G_(e,t,r){const n=[],i=r||function(e){return"number"===typeof e?W_:"string"===typeof e?E_.test(e)?j_:q_:Array.isArray(e)?H_:"object"===typeof e?V_:W_}(e[0]),o=e.length-1;for(let a=0;at[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=G_(t,n,i),s=a.length,c=t=>{let r=0;if(s>1)for(;rc(bw(e[0],e[o-1],t)):c}function Z_(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=K_(0,t,n);e.push(A_(r,1,i))}}(t,e.length-1),t}function X_({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=c_(n)?n.map(y_):y_(n),o={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:Z_(t),e),s=Y_(a,t,{ease:Array.isArray(i)?i:(c=t,l=i,c.map((()=>l||s_)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function J_(e,t){return t?e*(1e3/t):0}const Q_=5;function eS(e,t,r){const n=Math.max(t-Q_,0);return J_(r-e(n),t-n)}const tS=.001,rS=.01,nS=10,iS=.05,oS=1;function aS({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;qx(e<=Wx(nS),"Spring duration must be 10 seconds or less");let a=1-t;a=bw(iS,oS,a),e=bw(rS,nS,Gx(e)),a<1?(i=t=>{const n=t*a,i=n*e,o=n-r,s=cS(t,a),c=Math.exp(-i);return tS-o/s*c},o=t=>{const n=t*a*e,o=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,c=Math.exp(-n),l=cS(Math.pow(t,2),a);return(-i(t)+tS>0?-1:1)*((o-s)*c)/l}):(i=t=>Math.exp(-t*e)*((t-r)*e+1)-tS,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let i=1;ivoid 0!==e[t]))}function hS({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:c,mass:l,duration:u,velocity:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dS(e,uS)&&dS(e,lS)){const r=aS(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Gx(n.velocity||0)}),f=d||0,p=c/(2*Math.sqrt(s*l)),m=o-i,g=Gx(Math.sqrt(s/l)),v=Math.abs(m)<5;let y;if(r||(r=v?.01:2),t||(t=v?.005:.5),p<1){const e=cS(g,p);y=t=>{const r=Math.exp(-p*g*t);return o-r*((f+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>o-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const r=Math.exp(-p*g*t),n=Math.min(e*t,300);return o-r*((f+p*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&u||null,next:e=>{const n=y(e);if(h)a.done=e>=u;else{let i=f;0!==e&&(i=p<1?eS(y,e,n):0);const s=Math.abs(i)<=r,c=Math.abs(o-n)<=t;a.done=s&&c}return a.value=a.done?o:n,a}}}function fS({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=e=>void 0===s?c:void 0===c||Math.abs(s-e)-p*Math.exp(-e/n),y=e=>g+v(e),b=e=>{const t=v(e),r=y(e);h.done=Math.abs(t)<=l,h.value=h.done?g:r};let w,x;const _=e=>{(e=>void 0!==s&&ec)(h.value)&&(w=e,x=hS({keyframes:[h.value,f(h.value)],velocity:eS(y,e,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),_(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),h)}}}let pS;function mS(){pS=void 0}const gS={now:()=>(void 0===pS&&gS.set(gx.isProcessing||Db?gx.timestamp:performance.now()),pS),set:e=>{pS=e,queueMicrotask(mS)}},vS=e=>{const t=({timestamp:t})=>e(t);return{start:()=>px.update(t,!0),stop:()=>mx(t),now:()=>gx.isProcessing?gx.timestamp:gS.now()}},yS=2e4;function bS(e){let t=0;let r=e.next(t);for(;!r.done&&t=yS?1/0:t}const wS={decay:fS,inertia:fS,tween:X_,keyframes:X_,spring:hS};function xS({autoplay:e=!0,delay:t=0,driver:r=vS,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:c,onStop:l,onComplete:u,onUpdate:d,...h}){let f,p,m=1,g=!1;const v=()=>{p=new Promise((e=>{f=e}))};let y;v();const b=wS[i]||X_;let w;b!==X_&&"number"!==typeof n[0]&&(w=Y_([0,100],n,{clamp:!1}),n=[0,100]);const x=b({...h,keyframes:n});let _;"mirror"===s&&(_=b({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let S="idle",k=null,E=null,A=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=bS(x));const{calculatedDuration:P}=x;let O=1/0,T=1/0;null!==P&&(O=P+a,T=O*(o+1)-a);let C=0;const j=e=>{if(null===E)return;m>0&&(E=Math.min(E,e)),m<0&&(E=Math.min(e-T/m,E)),C=null!==k?k:Math.round(e-E)*m;const r=C-t*(m>=0?1:-1),i=m>=0?r<0:r>T;C=Math.max(r,0),"finished"===S&&null===k&&(C=T);let c=C,l=x;if(o){const e=Math.min(C,T)/O;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,o+1);Boolean(t%2)&&("reverse"===s?(r=1-r,a&&(r-=a/O)):"mirror"===s&&(l=_)),c=bw(0,1,r)*O}const u=i?{done:!1,value:n[0]}:l.next(c);w&&(u.value=w(u.value));let{done:h}=u;i||null===P||(h=m>=0?C>=T:C<=0);const f=null===k&&("finished"===S||"running"===S&&h);return d&&d(u.value),f&&M(),u},R=()=>{y&&y.stop(),y=void 0},I=()=>{S="idle",R(),f(),v(),E=A=null},M=()=>{S="finished",u&&u(),R(),f()},L=()=>{if(g)return;y||(y=r(j));const e=y.now();c&&c(),null!==k?E=e-k:E&&"finished"!==S||(E=e),"finished"===S&&v(),A=E,k=null,S="running",y.start()};e&&L();const N={then:(e,t)=>p.then(e,t),get time(){return Gx(C)},set time(e){e=Wx(e),C=e,null===k&&y&&0!==m?E=y.now()-e/m:k=e},get duration(){const e=null===x.calculatedDuration?bS(x):x.calculatedDuration;return Gx(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,N.time=Gx(C))},get state(){return S},play:L,pause:()=>{S="paused",k=C},stop:()=>{g=!0,"idle"!==S&&(S="idle",l&&l(),I())},cancel:()=>{null!==A&&j(A),I()},complete:()=>{S="finished"},sample:e=>(E=0,j(e))};return N}const _S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),SS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function kS(e,t,{onUpdate:r,onComplete:n,...i}){if(!(_S()&&SS.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,a,s=!1,c=!1;const l=()=>{a=new Promise((e=>{o=e}))};l();let{keyframes:u,duration:d=300,ease:h,times:f}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Xx(t.ease))(t,i)){const e=xS({...i,repeat:0,delay:0});let t={done:!1,value:u[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;f=void 0,u=r,d=n-10,h="linear"}const p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:c}={}){const l={[t]:r};c&&(l.offset=c);const u=e_(s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...i,duration:d,ease:h,times:f}),m=()=>{c=!1,p.cancel()},g=()=>{c=!0,px.update(m),o(),l()};p.onfinish=()=>{c||(e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2===1?0:e.length-1]}(u,i)),n&&n(),g())};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,fx),get time(){return Gx(p.currentTime||0)},set time(e){p.currentTime=Wx(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return Gx(d)},play:()=>{s||(p.play(),mx(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const r=xS({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}g()},complete:()=>{c||p.finish()},cancel:g}}const ES={type:"spring",stiffness:500,damping:25,restSpeed:10},AS={type:"keyframes",duration:.8},PS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OS=(e,{keyframes:t})=>t.length>2?AS:uw.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ES:PS,TS=(e,t)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!F_.test(t)&&"0"!==t||t.startsWith("url("))),CS=new Set(["brightness","contrast","saturate","opacity"]);function jS(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(kw)||[];if(!n)return e;const i=r.replace(n,"");let o=CS.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const RS=/([a-z-]*)\(.*?\)/g,IS={...F_,getAnimatableNone:e=>{const t=e.match(RS);return t?t.map(jS).join(" "):e}},MS={...Nw,color:E_,backgroundColor:E_,outlineColor:E_,fill:E_,stroke:E_,borderColor:E_,borderTopColor:E_,borderRightColor:E_,borderBottomColor:E_,borderLeftColor:E_,filter:IS,WebkitFilter:IS},LS=e=>MS[e];function NS(e,t){let r=LS(e);return r!==IS&&(r=F_),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const DS=e=>/^0[^.\s]+$/.test(e);function zS(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||DS(e):void 0}function BS(e,t){return e[t]||e.default||e}const FS=(e,t,r,n={})=>i=>{const o=BS(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s-=Wx(a);const c=function(e,t,r,n){const i=TS(t,r);let o;o=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const c=[];for(let l=0;l{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}(o)||(f={...f,...OS(e,f)}),f.duration&&(f.duration=Wx(f.duration)),f.repeatDelay&&(f.repeatDelay=Wx(f.repeatDelay)),!d||!h||Yx||!1===o.type||Nb)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:fx,pause:fx,stop:fx,then:e=>(e(),Promise.resolve()),cancel:fx,complete:fx});return t?xS({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(Yx?{...f,delay:0}:f);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=kS(t,e,f);if(r)return r}return xS(f)};function US(e){return Boolean(hw(e)&&e.add)}const $S=e=>/^\-?\d*\.?\d+$/.test(e);function HS(e,t){-1===e.indexOf(t)&&e.push(t)}function VS(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class qS{constructor(){this.subscriptions=[]}add(e){return HS(this.subscriptions,e),()=>VS(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i{const r=gS.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=gS.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new qS);const r=this.events[e].add(t);return"change"===e?()=>{r(),px.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return KS.current&&KS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=gS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return J_(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function GS(e,t){return new WS(e,t)}const YS=e=>t=>t.test(e),ZS=[ww,jw,Cw,Tw,Iw,Rw,{test:e=>"auto"===e,parse:e=>e}],XS=e=>ZS.find(YS(e)),JS=[...ZS,E_,F_],QS=e=>JS.find(YS(e));function ek(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,GS(r))}function tk(e,t){const r=Vx(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){ek(e,a,lx(o[a]))}}function rk(e,t){if(!t)return;return(t[e]||t.default||t).from}function nk({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function ik(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let n=0;nc.remove(d)))),l.push(h)}return a&&Promise.all(l).then((()=>{a&&tk(e,a)})),l}function ak(e,t,r={}){const n=Vx(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(ok(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,c=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(sk).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(ak(e,t,{...o,delay:r+c(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then((()=>t()))}return Promise.all([o(),a(r.delay)])}function sk(e,t){return e.sortNodePosition(t)}const ck=[...Kb].reverse(),lk=Kb.length;function uk(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>ak(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=ak(e,t,r);else{const i="function"===typeof t?Vx(e,t,r.custom):t;n=Promise.all(ok(e,i,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}function dk(e){let t=uk(e);const r={animate:fk(!0),whileInView:fk(),whileHover:fk(),whileTap:fk(),whileDrag:fk(),whileFocus:fk(),exit:fk()};let n=!0;const i=(t,r)=>{const n=Vx(e,r);if(n){const{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){const s=e.getProps(),c=e.getVariantContext(!0)||{},l=[],u=new Set;let d={},h=1/0;for(let t=0;th&&g,w=!1;const x=Array.isArray(m)?m:[m];let _=x.reduce(i,{});!1===v&&(_={});const{prevResolvedValues:S={}}=p,k={...S,..._},E=e=>{b=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0};for(const e in k){const t=_[e],r=S[e];if(d.hasOwnProperty(e))continue;let n=!1;n=sx(t)&&sx(r)?!Hx(t,r):t!==r,n?void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=_,p.isActive&&(d={...d,..._}),n&&e.blockInitialAnimation&&(b=!1),!b||y&&!w||l.push(...x.map((e=>({animation:e,options:{type:f,...o}}))))}if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),l.push({animation:t})}let f=Boolean(l.length);return!n||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const s=o(i,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function hk(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Hx(t,e)}function fk(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let pk=0;const mk={animation:{Feature:class extends Rx{constructor(e){super(e),e.animationState||(e.animationState=dk(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),qb(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Rx{constructor(){super(...arguments),this.id=pk++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!==r&&void 0!==r?r:this.node.getProps().custom});t&&!e&&i.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},gk=(e,t)=>Math.abs(e-t);class vk{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=wk(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=gk(e.x,t.x),n=gk(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:i}=gx;this.history.push({...n,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=yk(t,this.transformPagePoint),px.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=wk("pointercancel"===e.type?this.lastMoveEventInfo:yk(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!xx(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const o=yk(_x(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=gx;this.history=[{...a,timestamp:s}];const{onSessionStart:c}=t;c&&c(e,wk(o,this.history)),this.removeListeners=Ax(kx(this.contextWindow,"pointermove",this.handlePointerMove),kx(this.contextWindow,"pointerup",this.handlePointerUp),kx(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),mx(this.updatePoint)}}function yk(e,t){return t?{point:t(e.point)}:e}function bk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wk({point:e},t){return{point:e,delta:bk(e,_k(t)),offset:bk(e,xk(t)),velocity:Sk(t,.1)}}function xk(e){return e[0]}function _k(e){return e[e.length-1]}function Sk(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=_k(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Wx(t)));)r--;if(!n)return{x:0,y:0};const o=Gx(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function kk(e){return e.max-e.min}function Ek(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ak(e,t,r,n=.5){e.origin=n,e.originPoint=A_(t.min,t.max,e.origin),e.scale=kk(r)/kk(t),(Ek(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=A_(r.min,r.max,e.origin)-e.originPoint,(Ek(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Pk(e,t,r,n){Ak(e.x,t.x,r.x,n?n.originX:void 0),Ak(e.y,t.y,r.y,n?n.originY:void 0)}function Ok(e,t,r){e.min=r.min+t.min,e.max=e.min+kk(t)}function Tk(e,t,r){e.min=t.min-r.min,e.max=e.min+kk(t)}function Ck(e,t,r){Tk(e.x,t.x,r.x),Tk(e.y,t.y,r.y)}function jk(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Rk(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Dk=()=>({x:{min:0,max:0},y:{min:0,max:0}});function zk(e){return[e("x"),e("y")]}function Bk({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Fk(e){return void 0===e||1===e}function Uk({scale:e,scaleX:t,scaleY:r}){return!Fk(e)||!Fk(t)||!Fk(r)}function $k(e){return Uk(e)||Hk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hk(e){return Vk(e.x)||Vk(e.y)}function Vk(e){return e&&"0%"!==e}function qk(e,t,r){return r+t*(e-r)}function Kk(e,t,r,n,i){return void 0!==i&&(e=qk(e,i,n)),qk(e,r,n)+t}function Wk(e,t=0,r=1,n,i){e.min=Kk(e.min,t,r,n,i),e.max=Kk(e.max,t,r,n,i)}function Gk(e,{x:t,y:r}){Wk(e.x,t.translate,t.scale,t.originPoint),Wk(e.y,r.translate,r.scale,r.originPoint)}function Yk(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Zk(e,t){e.min=e.min+t,e.max=e.max+t}function Xk(e,t,[r,n,i]){const o=void 0!==t[i]?t[i]:.5,a=A_(e.min,e.max,o);Wk(e,t[r],t[n],a,t.scale)}const Jk=["x","scaleX","originX"],Qk=["y","scaleY","originY"];function eE(e,t){Xk(e.x,t,Jk),Xk(e.y,t,Qk)}function tE(e,t){return Bk(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const rE=({current:e})=>e?e.ownerDocument.defaultView:null,nE=new WeakMap;class iE{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Dk(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new vk(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(_x(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Cx(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zk((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cw.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=kk(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&px.update((()=>i(e,t)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>zk((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:rE(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&px.update((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!oE(e,n,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?A_(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&Hb(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:i}){return{x:jk(e.x,r,i),y:jk(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Ik){return!1===e?e=0:!0===e&&(e=Ik),{x:Mk(e,"left","right"),y:Mk(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zk((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Hb(e))return!1;const r=e.current;Kx(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=function(e,t,r){const n=tE(e,r),{scroll:i}=t;return i&&(Zk(n.x,i.offset.x),Zk(n.y,i.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Rk(e.x,t.x),y:Rk(e.y,t.y)}}(n.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=Bk(e))}return o}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=zk((a=>{if(!oE(a,t,this.currentDirection))return;let c=s&&s[a]||{};o&&(c={min:0,max:0});const l=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(FS(e,r,0,t))}stopAnimation(){zk((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){zk((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){zk((t=>{const{drag:r}=this.getProps();if(!oE(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-A_(r,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Hb(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};zk((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=kk(e),i=kk(t);return i>n?r=K_(t.min,t.max-n,e.min):n>i&&(r=K_(e.min,e.max-i,t.min)),bw(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zk((t=>{if(!oE(t,e,null))return;const r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(A_(i,o,n[t]))}))}addListeners(){if(!this.visualElement.current)return;nE.set(this.visualElement,this);const e=kx(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Hb(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const i=wx(window,"resize",(()=>this.scalePositionWithinConstraints())),o=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(zk((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),e(),n(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=Ik,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function oE(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}const aE=e=>(t,r)=>{e&&px.update((()=>e(t,r)))};const sE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lE={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!jw.test(e))return e;e=parseFloat(e)}return`${cE(e,t.target.x)}% ${cE(e,t.target.y)}%`}},uE={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=F_.parse(e);if(i.length>5)return n;const o=F_.createTransformer(e),a="number"!==typeof i[0]?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=c;const l=A_(s,c,.5);return"number"===typeof i[2+a]&&(i[2+a]/=l),"number"===typeof i[3+a]&&(i[3+a]/=l),o(i)}};class dE extends i.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;var o;o=fE,Object.assign(cw,o),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),sE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o?(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||px.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ub.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function hE(e){const[t,r]=Pb(),n=(0,i.useContext)(ew);return i.createElement(dE,{...e,layoutGroup:n,switchLayoutGroup:(0,i.useContext)(tw),isPresent:t,safeToRemove:r})}const fE={borderRadius:{...lE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lE,borderTopRightRadius:lE,borderBottomLeftRadius:lE,borderBottomRightRadius:lE,boxShadow:uE},pE=["TopLeft","TopRight","BottomLeft","BottomRight"],mE=pE.length,gE=e=>"string"===typeof e?parseFloat(e):e,vE=e=>"number"===typeof e||jw.test(e);function yE(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const bE=xE(0,.5,h_),wE=xE(.5,.95,fx);function xE(e,t,r){return n=>nt?1:r(K_(e,t,n))}function _E(e,t){e.min=t.min,e.max=t.max}function SE(e,t){_E(e.x,t.x),_E(e.y,t.y)}function kE(e,t,r,n,i){return e=qk(e-=t,1/r,n),void 0!==i&&(e=qk(e,1/i,n)),e}function EE(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){Cw.test(t)&&(t=parseFloat(t),t=A_(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=A_(o.min,o.max,n);e===o&&(s-=t),e.min=kE(e.min,t,r,s,i),e.max=kE(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}const AE=["x","scaleX","originX"],PE=["y","scaleY","originY"];function OE(e,t,r,n){EE(e.x,t,AE,r?r.x:void 0,n?n.x:void 0),EE(e.y,t,PE,r?r.y:void 0,n?n.y:void 0)}function TE(e){return 0===e.translate&&1===e.scale}function CE(e){return TE(e.x)&&TE(e.y)}function jE(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function RE(e){return kk(e.x)/kk(e.y)}class IE{constructor(){this.members=[]}add(e){HS(this.members,e),e.scheduleRender()}remove(e){if(VS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let n=t;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent){r=e;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ME(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}const LE=(e,t)=>e.depth-t.depth;class NE{constructor(){this.children=[],this.isDirty=!1}add(e){HS(this.children,e),this.isDirty=!0}remove(e){VS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(LE),this.isDirty=!1,this.children.forEach(e)}}const DE=["","X","Y","Z"],zE={visibility:"hidden"};let BE=0;const FE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function UE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=(null===t||void 0===t?void 0:t())){this.id=BE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,FE.totalNodes=FE.resolvedTargetDeltas=FE.recalculatedProjection=0,this.nodes.forEach(VE),this.nodes.forEach(XE),this.nodes.forEach(JE),this.nodes.forEach(qE),e=FE,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=gS.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(mx(n),e(o-t))};return px.read(n,!0),()=>mx(n)}(n,250),sE.hasAnimatedSinceResize&&(sE.hasAnimatedSinceResize=!1,this.nodes.forEach(ZE))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||a.getDefaultTransition()||iA,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!jE(this.targetLayout,n)||r,l=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);const t={...BS(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ZE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,mx(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(QE),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;ithis.update())))}clearAllSnapshots(){this.nodes.forEach(KE),this.sharedNodes.forEach(eA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,px.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){px.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let r=0;r{const r=t/1e3;tA(o.x,e.x,r),tA(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ck(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){rA(e.x,t.x,r.x,n),rA(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Dk()),SE(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,r,n,i,o){i?(e.opacity=A_(0,void 0!==r.opacity?r.opacity:1,bE(n)),e.opacityExit=A_(void 0!==t.opacity?t.opacity:1,0,wE(n))):o&&(e.opacity=A_(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a{sE.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=hw(e)?e:GS(e);return n.start(FS("",n,t,r)),n.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&cA(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Dk();const t=kk(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=kk(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}SE(t,r),eE(t,i),Pk(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new IE);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let i=0;i{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(WE),this.root.sharedNodes.clear()}}}function $E(e){e.updateLayout()}function HE(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?zk((e=>{const n=o?r.measuredBox[e]:r.layoutBox[e],i=kk(n);n.min=t[e].min,n.max=n.min+i})):cA(i,r.layoutBox,t)&&zk((n=>{const i=o?r.measuredBox[n]:r.layoutBox[n],a=kk(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=Nk();Pk(a,t,r.layoutBox);const s=Nk();o?Pk(s,e.applyTransform(n,!0),r.measuredBox):Pk(s,t,r.layoutBox);const c=!CE(a);let l=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:o}=n;if(i&&o){const a=Dk();Ck(a,r.layoutBox,i.layoutBox);const s=Dk();Ck(s,t,o.layoutBox),jE(a,s)||(l=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function VE(e){FE.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KE(e){e.clearSnapshot()}function WE(e){e.clearMeasurements()}function GE(e){e.isLayoutDirty=!1}function YE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XE(e){e.resolveTargetDelta()}function JE(e){e.calcProjection()}function QE(e){e.resetRotation()}function eA(e){e.removeLeadSnapshot()}function tA(e,t,r){e.translate=A_(t.translate,0,r),e.scale=A_(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function rA(e,t,r,n){e.min=A_(t.min,r.min,n),e.max=A_(t.max,r.max,n)}function nA(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const iA={duration:.45,ease:[.4,0,.1,1]},oA=e=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(e),aA=oA("applewebkit/")&&!oA("chrome/")?Math.round:fx;function sA(e){e.min=aA(e.min),e.max=aA(e.max)}function cA(e,t,r){return"position"===e||"preserve-aspect"===e&&!Ek(RE(t),RE(r),.2)}const lA=UE({attachResizeListener:(e,t)=>wx(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uA={current:void 0},dA=UE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uA.current){const e=new lA({});e.mount(window),e.setOptions({layoutScroll:!0}),uA.current=e}return uA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),hA={pan:{Feature:class extends Rx{constructor(){super(...arguments),this.removePointerDownListener=fx}onPointerDown(e){this.session=new vk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:aE(e),onStart:aE(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&px.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=kx(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Rx{constructor(e){super(e),this.removeGroupControls=fx,this.removeListeners=fx,this.controls=new iE(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fx}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:dA,MeasureLayout:hE}},fA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const pA=4;function mA(e,t,r=1){Kx(r<=pA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=function(e){const t=fA.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const e=o.trim();return $S(e)?parseFloat(e):e}return vw(i)?mA(i,t,r+1):i}const gA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vA=e=>gA.has(e),yA=e=>e===ww||e===jw,bA=(e,t)=>parseFloat(e.split(", ")[t]),wA=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return bA(i[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?bA(t[1],e):0}},xA=new Set(["x","y","z"]),_A=lw.filter((e=>!xA.has(e)));const SA={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:wA(4,13),y:wA(5,14)};SA.translateX=SA.x,SA.translateY=SA.y;const kA=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(vA);let o=[],a=!1;const s=[];if(i.forEach((i=>{const c=e.getValue(i);if(!e.hasValue(i))return;let l=r[i],u=XS(l);const d=t[i];let h;if(sx(d)){const e=d.length,t=null===d[0]?1:0;l=d[t],u=XS(l);for(let r=t;r{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],c.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=SA[e](n,o)})),t.render();const c=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=SA[r](c,o)})),e})(t,e,s);return o.length&&o.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),jb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}return{target:t,transitionEnd:n}};function EA(e,t,r,n){return(e=>Object.keys(e).some(vA))(t)?kA(e,t,r,n):{target:t,transitionEnd:n}}const AA=(e,t,r,n)=>{const i=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!vw(t))return;const r=mA(t,n);r&&e.set(r)}));for(const i in t){const e=t[i];if(!vw(e))continue;const o=mA(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return EA(e,t=i.target,r,n=i.transitionEnd)},PA={current:null},OA={current:!1};const TA=new WeakMap,CA=Object.keys(Qb),jA=CA.length,RA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],IA=Wb.length;class MA{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>px.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Gb(t),this.isVariantNode=Yb(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(t,{});for(const u in l){const e=l[u];void 0!==a[u]&&hw(e)&&(e.set(a[u],!1),US(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,TA.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),OA.current||function(){if(OA.current=!0,jb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>PA.current=e.matches;e.addListener(t),t()}else PA.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||PA.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TA.delete(this.current),this.projection&&this.projection.unmount(),mx(this.notifyUpdate),mx(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=uw.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&px.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),i()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let s=0;sthis.scheduleRender(),animationType:"string"===typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:c})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Dk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;rt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=GS(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"===typeof r||"object"===typeof r?null===(t=ox(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||hw(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new qS),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class LA extends MA{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},n){const i=function(e,t,r){const n={};for(const i in e){const e=rk(i,t);if(void 0!==e)n[i]=e;else{const e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n){!function(e,t,r){var n,i;const o=Object.keys(t).filter((t=>!e.hasValue(t))),a=o.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){ex(e,t,r,n)}}class DA extends LA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(uw.has(t)){const e=LS(t);return e&&e.default||0}return t=tx.has(t)?t:Mb(t),e.getAttribute(t)}measureInstanceViewportBox(){return Dk()}scrapeMotionValuesFromProps(e,t){return ix(e,t)}build(e,t,r,n){Yw(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){rx(e,t,0,n)}mount(e){this.isSVGTag=Xw(e.tagName),super.mount(e)}}const zA=(e,t)=>sw(e)?new DA(t,{enableHardwareAcceleration:!1}):new NA(t,{enableHardwareAcceleration:!0}),BA={...mk,...$x,...hA,...{layout:{ProjectionNode:dA,MeasureLayout:hE}}},FA=ow(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...sw(e)?yx:bx,preloadedFeatures:r,useRender:Qw(t),createVisualElement:n,Component:e}}(e,t,BA,zA)));var UA={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},$A=(0,i.memo)((e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:c=5e3,containerStyle:l,motionVariants:u=UA,toastSpacing:d="0.5rem"}=e,[h,f]=(0,i.useState)(c),p=Ob();Eb((()=>{p||null==n||n()}),[p]),Eb((()=>{f(c)}),[c]);const m=()=>{p&&o()};(0,i.useEffect)((()=>{p&&a&&o()}),[p,a,o]),function(e,t){const r=kb(e);(0,i.useEffect)((()=>{if(null==t)return;let e=null;return e=window.setTimeout((()=>{r()}),t),()=>{e&&window.clearTimeout(e)}}),[t,r])}(m,h);const g=(0,i.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l})),[l,d]),v=(0,i.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,xn.jsx)(FA.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(c),custom:{position:s},style:v,children:(0,xn.jsx)(wn.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:x(r,{id:t,onClose:m})})})}));function HA(e,t){var r;const n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}$A.displayName="ToastComponent";var VA={path:(0,xn.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,xn.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,xn.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,xn.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},qA=v(((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:c,...l}=e,u={ref:t,focusable:o,className:y("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...In("Icon",e)}},d=null!=n?n:VA.viewBox;if(r&&"string"!==typeof r)return(0,xn.jsx)(wn.svg,{as:r,...u,...l});const h=null!=a?a:VA.path;return(0,xn.jsx)(wn.svg,{verticalAlign:"middle",viewBox:d,...u,...l,children:h})}));qA.displayName="Icon";function KA(e){return(0,xn.jsx)(qA,{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[WA,GA]=Nn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[YA,ZA]=Nn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),XA={info:{icon:function(e){return(0,xn.jsx)(qA,{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:KA,colorScheme:"orange"},success:{icon:function(e){return(0,xn.jsx)(qA,{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:KA,colorScheme:"red"},loading:{icon:Vn,colorScheme:"blue"}};var JA=v((function(e,t){var r;const{status:n="info",addRole:i=!0,...o}=ft(e),a=null!=(r=e.colorScheme)?r:function(e){return XA[e].colorScheme}(n),s=Mn("Alert",{...e,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,xn.jsx)(WA,{value:{status:n},children:(0,xn.jsx)(YA,{value:s,children:(0,xn.jsx)(wn.div,{"data-status":n,role:i?"alert":void 0,ref:t,...o,className:y("chakra-alert",e.className),__css:c})})})}));function QA(e){const{status:t}=GA(),r=function(e){return XA[e].icon}(t),n=ZA(),i="loading"===t?n.spinner:n.icon;return(0,xn.jsx)(wn.span,{display:"inherit","data-status":t,...e,className:y("chakra-alert__icon",e.className),__css:i,children:e.children||(0,xn.jsx)(r,{h:"100%",w:"100%"})})}JA.displayName="Alert",QA.displayName="AlertIcon";var eP=v((function(e,t){const r=ZA(),{status:n}=GA();return(0,xn.jsx)(wn.div,{ref:t,"data-status":n,...e,className:y("chakra-alert__title",e.className),__css:r.title})}));eP.displayName="AlertTitle";var tP=v((function(e,t){const r=ZA(),{status:n}=GA(),i={display:"inline",...r.description};return(0,xn.jsx)(wn.div,{ref:t,"data-status":n,...e,className:y("chakra-alert__desc",e.className),__css:i})}));function rP(e){return(0,xn.jsx)(qA,{focusable:"false","aria-hidden":!0,...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}tP.displayName="AlertDescription";var nP=v((function(e,t){const r=In("CloseButton",e),{children:n,isDisabled:i,__css:o,...a}=ft(e);return(0,xn.jsx)(wn.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...o},...a,children:n||(0,xn.jsx)(rP,{width:"1em",height:"1em"})})}));nP.displayName="CloseButton";var iP=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n((()=>e)),r.delete(t)}),removeToast:(e,t)=>{n((r=>({...r,[t]:r[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const r=function(e,t={}){var r,n;oP+=1;const i=null!=(r=t.id)?r:oP,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>iP.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=r;return n((e=>{var t,n;const o=i.includes("top")?[r,...null!=(t=e[i])?t:[]]:[...null!=(n=e[i])?n:[],r];return{...e,[i]:o}})),o},update:(e,t)=>{e&&n((r=>{const n={...r},{position:i,index:o}=xb(n,e);return i&&-1!==o&&(n[i][o]={...n[i][o],...t,message:sP(t)}),n}))},closeAll:({positions:e}={})=>{n((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,r)=>(e[r]=t[r].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{n((t=>{const r=_b(t,e);return r?{...t,[r]:t[r].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(xb(iP.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var oP=0;var aP=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:c,icon:l}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,xn.jsxs)(JA,{addRole:!1,status:t,variant:r,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[(0,xn.jsx)(QA,{children:l}),(0,xn.jsxs)(wn.div,{flex:"1",maxWidth:"100%",children:[i&&(0,xn.jsx)(eP,{id:null==u?void 0:u.title,children:i}),s&&(0,xn.jsx)(tP,{id:null==u?void 0:u.description,display:"block",children:s})]}),o&&(0,xn.jsx)(nP,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function sP(e={}){const{render:t,toastComponent:r=aP}=e;return n=>"function"===typeof t?t({...n,...e}):(0,xn.jsx)(r,{...n,...e})}function cP(){const e=(0,i.useRef)(!1);return Rb((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class lP extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function uP({children:e,isPresent:t}){const r=(0,i.useId)(),n=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0,top:0,left:0});return(0,i.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!n.current||!e||!i)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),i.createElement(lP,{isPresent:t,childRef:n,sizeRef:o},i.cloneElement(e,{ref:n}))}const dP=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:s})=>{const c=ax(hP),l=(0,i.useId)(),u=(0,i.useMemo)((()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const t of c.values())if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>c.delete(e))})),a?void 0:[r]);return(0,i.useMemo)((()=>{c.forEach(((e,t)=>c.set(t,!1)))}),[r]),i.useEffect((()=>{!r&&!c.size&&n&&n()}),[r]),"popLayout"===s&&(e=i.createElement(uP,{isPresent:r},e)),i.createElement(Ab.Provider,{value:u},e)};function hP(){return new Map}const fP=e=>e.key||"";const pP=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Kx(!o,"Replace exitBeforeEnter with mode='wait'");const c=(0,i.useContext)(ew).forceRender||function(){const e=cP(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,i.useCallback)((()=>px.postRender(n)),[n]),t]}()[0],l=cP(),u=function(e){const t=[];return i.Children.forEach(e,(e=>{(0,i.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const h=(0,i.useRef)(new Map).current,f=(0,i.useRef)(d),p=(0,i.useRef)(new Map).current,m=(0,i.useRef)(!0);var g;if(Rb((()=>{m.current=!1,function(e,t){e.forEach((e=>{const r=fP(e);t.set(r,e)}))}(u,p),f.current=d})),g=()=>{m.current=!0,p.clear(),h.clear()},(0,i.useEffect)((()=>()=>g()),[]),m.current)return i.createElement(i.Fragment,null,d.map((e=>i.createElement(dP,{key:fP(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=f.current.map(fP),y=u.map(fP),b=v.length;for(let i=0;i{if(-1!==y.indexOf(r))return;const o=p.get(r);if(!o)return;const m=v.indexOf(r);let g=e;if(!g){const e=()=>{h.delete(r);const e=Array.from(p.keys()).filter((e=>!y.includes(e)));if(e.forEach((e=>p.delete(e))),f.current=u.filter((t=>{const n=fP(t);return n===r||e.includes(n)})),!h.size){if(!1===l.current)return;c(),n&&n()}};g=i.createElement(dP,{key:fP(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},o),h.set(r,g)}d.splice(m,0,g)})),d=d.map((e=>{const t=e.key;return h.has(t)?e:i.createElement(dP,{key:fP(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),i.createElement(i.Fragment,null,h.size?d:d.map((e=>(0,i.cloneElement)(e))))};var[mP,gP]=Nn({strict:!1,name:"PortalContext"}),vP="chakra-portal",yP=e=>(0,xn.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),bP=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=(0,i.useState)(null),a=(0,i.useRef)(null),[,s]=(0,i.useState)({});(0,i.useEffect)((()=>s({})),[]);const c=gP(),l=ph();Oh((()=>{if(!n)return;const e=n.ownerDocument,r=t&&null!=c?c:e.body;if(!r)return;a.current=e.createElement("div"),a.current.className=vP,r.appendChild(a.current),s({});const i=a.current;return()=>{r.contains(i)&&r.removeChild(i)}}),[n]);const u=(null==l?void 0:l.zIndex)?(0,xn.jsx)(yP,{zIndex:null==l?void 0:l.zIndex,children:r}):r;return a.current?(0,ni.createPortal)((0,xn.jsx)(mP,{value:a.current,children:u}),a.current):(0,xn.jsx)("span",{ref:e=>{e&&o(e)}})},wP=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,a=null!=o?o:"undefined"!==typeof window?document.body:void 0,s=(0,i.useMemo)((()=>{const e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=vP),e}),[o]),[,c]=(0,i.useState)({});return Oh((()=>c({})),[]),Oh((()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}}),[s,a]),a&&s?(0,ni.createPortal)((0,xn.jsx)(mP,{value:n?s:null,children:t}),s):null};function xP(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,xn.jsx)(wP,{containerRef:r,...n}):(0,xn.jsx)(bP,{...n})}xP.className=vP,xP.selector=".chakra-portal",xP.displayName="Portal";var[_P,SP]=Nn({name:"ToastOptionsContext",strict:!1}),kP=e=>{const t=(0,i.useSyncExternalStore)(iP.subscribe,iP.getState,iP.getState),{motionVariants:r,component:n=$A,portalProps:o}=e,a=Object.keys(t).map((e=>{const i=t[e];return(0,xn.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:Sb(e),children:(0,xn.jsx)(pP,{initial:!1,children:i.map((e=>(0,xn.jsx)(n,{motionVariants:r,...e},e.id)))})},e)}));return(0,xn.jsx)(xP,{...o,children:a})},EP=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,xn.jsxs)(Mh,{theme:r,...i,children:[(0,xn.jsx)(_P,{value:null==n?void 0:n.defaultOptions,children:t}),(0,xn.jsx)(kP,{...n})]})},AP=EP(yb),PP=(EP(bb),new Set(["dark","light","system"]));function OP(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,i=function(e){let t=e;return PP.has(t)||(t="light"),t}(t);return`!${"cookie"===r?`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();\n `:`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();\n `}`.trim()}function TP(e={}){const{nonce:t}=e;return(0,xn.jsx)("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:OP(e)}})}var CP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function jP(e){return"function"===typeof e}var RP=e=>function(...t){let r=[...t],n=t[t.length-1];var i;return b(i=n)&&CP.every((e=>Object.prototype.hasOwnProperty.call(i,e)))&&r.length>1?r=r.slice(0,r.length-1):n=e,function(...e){return t=>e.reduce(((e,t)=>t(e)),t)}(...r.map((e=>t=>jP(e)?e(t):function(...e){return P({},...e,MP)}(t,e))))(n)},IP=RP(yb);RP(bb);function MP(e,t,r,n){if((jP(e)||jP(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{const n=jP(e)?e(...r):e,i=jP(t)?t(...r):t;return P({},n,i,MP)}}const LP={orange:"#FB4F57",orangeL:"#FC7884",blue:"#0D99FF",blueL:"#4FA2FF",green:"#00C39A",greenL:"#00E7B6",black:"#000000",white:"#FFFFFF",gray:{900:"#121212",800:"#181818",700:"#282828",600:"#2C2B2B",500:"#414141",450:"#707070",400:"#C2C2C2",300:"#D6D6D6",200:"#EBEBEB",100:"#F0F0F0",50:"#F5F5F5"}},NP={borderRadius:"full",bg:LP.gray[600],_disabled:{bg:LP.gray[700],color:LP.gray[450]},_hover:{color:LP.green,bg:LP.gray[500],_disabled:{bg:LP.gray[700],color:LP.gray[450]}}},DP={sizes:{md:{height:"38px",fontSize:"14px",minWidth:"38px"},lg:{height:"48px",fontSize:"16px",minWidth:"48px"}},variants:{primary:{bg:LP.blue,_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1},_hover:{_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1},bg:LP.blueL}},secondary:{border:"1px solid",borderColor:LP.green,_disabled:{color:LP.gray[450],borderColor:LP.gray[500],opacity:1},_hover:{bg:LP.green,_disabled:{color:LP.gray[450],borderColor:LP.gray[500],opacity:1}}},tertiary:{bg:"transparent",border:"1px solid",borderColor:LP.gray[500],_disabled:{color:LP.gray[450],opacity:1},_hover:{border:"1px solid",borderColor:LP.gray[600],bg:LP.gray[600],_disabled:{borderColor:LP.gray[500],color:LP.gray[450],opacity:1}}},warning:{bg:LP.orange,_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1},_hover:{bg:LP.orangeL,_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1}}},circle_without_hover_color:{...NP,_hover:{color:LP.green,_disabled:{bg:LP.gray[700],color:LP.gray[450]}}},circle_without_color:NP,circle:{...NP,color:LP.gray[300]},specialCTA:{color:LP.greenL,_hover:{color:LP.green}},CTAWithIcon:{padding:"8px 7px",color:LP.gray[300],_hover:{color:LP.green},_disabled:{color:LP.gray[450]}},popover:{color:LP.gray[300],stroke:LP.gray[450],width:"100%",padding:0,height:"24px",justifyContent:"end",_hover:{color:LP.green,stroke:LP.green}}},defaultProps:{variant:"primary",size:"md"}},{definePartsStyle:zP,defineMultiStyleConfig:BP}=ut(cf.keys),FP=BP({baseStyle:zP({icon:{color:"white"},control:{marginTop:"-20px",width:"20px",height:"20px",borderWidth:"2px",borderColor:LP.gray[400],borderRadius:"2px",_checked:{borderColor:LP.green,bg:LP.green,color:LP.white,_hover:{bg:LP.green,borderColor:LP.green}}}})}),{definePartsStyle:UP,defineMultiStyleConfig:$P}=ut(lf.keys),HP=$P({baseStyle:UP((e=>({body:{padding:"18px 30px 30px 30px",borderLeft:`1px solid ${LP.gray[800]}`},dialog:{bg:LP.gray[900]}}))),sizes:{md:{dialog:{maxW:"594px"}}},defaultProps:{size:"md"}}),{definePartsStyle:VP,defineMultiStyleConfig:qP}=ut(pf.keys),KP=qP({variants:{onboardingNotice:VP({item:{"&::marker":{color:LP.gray[400]}}}),suggestions:VP({item:{_hover:{background:LP.gray[500]},background:LP.gray[700],borderRadius:"4px",cursor:"pointer",height:"28px",listStyleType:"none"},container:{background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px",listStyleType:"none",marginLeft:"0 !important",overflowX:"hidden",padding:"10px",position:"absolute",width:"100%",zIndex:2,maxHeight:"130px"}})}}),{definePartsStyle:WP,defineMultiStyleConfig:GP}=ut(gf.keys),YP={top:"10px",position:"absolute",color:LP.gray[400],borderRadius:"18px"},ZP={...YP,insetEnd:"10px"},XP={...YP,insetStart:"10px"},JP=GP({baseStyle:WP({dialog:{padding:"40px",_dark:{bg:LP.gray[900],border:"1px solid",borderColor:LP.gray[700],borderRadius:"8px"}},overlay:{_dark:{bg:"rgba(0, 0, 0, 0.85)"}},closeButton:ZP,body:{padding:0},footer:{padding:"32px 0 0 0"},header:{padding:0}}),sizes:{md:{dialog:{maxW:"482px"}}}}),{definePartsStyle:QP,defineMultiStyleConfig:eO}=ut(wf.keys),tO=eO({variants:{primary:QP({control:{height:"16px",width:"16px",_dark:{borderColor:LP.gray[400]},_checked:{backgroundColor:LP.green,borderColor:LP.green,border:"none",color:"white"}}})}}),{definePartsStyle:rO,defineMultiStyleConfig:nO}=ut(Af.keys),iO={xs:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"},xl:{fontSize:"20px"},"2xl":{fontSize:"24px"},"3xl":{fontSize:"30px"},"4xl":{fontSize:"36px"},"5xl":{fontSize:"48px"},"6xl":{fontSize:"69px"}},oO=IP({components:{Tabs:nO({baseStyle:rO({tab:{_selected:{fontWeight:600,color:LP.white,borderColor:LP.orange,borderBottom:`2px solid ${LP.orange}`}}})}),Text:{baseStyle:{fontWeight:"400"},sizes:iO},Heading:{baseStyle:{fontWeight:"600"},sizes:iO},Checkbox:FP,Input:{sizes:{md:{field:{height:"48px"}}},defaultProps:{variant:"filled"},variants:{filled:{field:{bg:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],_invalid:{borderColor:LP.orange},_hover:{bg:LP.gray[800]},_focusVisible:{bg:LP.gray[800],borderColor:LP.gray[450]}}}}},Button:DP,FormLabel:{baseStyle:{fontWeight:"600",marginBottom:"12px",size:"md"},sizes:iO},Modal:JP,Drawer:HP,Radio:tO,List:KP},config:{initialColorMode:"dark",useSystemColorMode:!1},colors:{umami:LP,text:{dark:LP.gray[400]}},styles:{global:{body:{bg:LP.black,color:LP.white}}}}),aO=e=>(0,xn.jsxs)(AP,{theme:oO,children:[(0,xn.jsx)(TP,{initialColorMode:oO.config.initialColorMode}),e.children]});function sO(){return sO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function gO(e,t,r,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=cO.Pop,c=null,l=u();function u(){return(a.state||{idx:null}).idx}function d(){s=cO.Pop;let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"===typeof e?e:pO(e);return uO(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==l&&(l=0,a.replaceState(sO({},a.state,{idx:l}),""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(lO,d),c=e,()=>{i.removeEventListener(lO,d),c=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=cO.Push;let n=fO(f.location,e,t);r&&r(n,e),l=u()+1;let d=hO(n,l),h=f.createHref(n);try{a.pushState(d,"",h)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(h)}o&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s=cO.Replace;let n=fO(f.location,e,t);r&&r(n,e),l=u();let i=hO(n,l),d=f.createHref(n);a.replaceState(i,"",d),o&&c&&c({action:s,location:f.location,delta:0})},go:e=>a.go(e)};return f}var vO;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(vO||(vO={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function yO(e,t,r){void 0===r&&(r="/");let n=RO(("string"===typeof t?mO(t):t).pathname||"/",r);if(null==n)return null;let i=bO(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let a=0;null==o&&a{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(uO(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=DO([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(uO(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),bO(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:OO(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of wO(e.path))i(e,t,n);else i(e,t)})),t}function wO(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=wO(n.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const xO=/^:[\w-]+$/,_O=3,SO=2,kO=1,EO=10,AO=-2,PO=e=>"*"===e;function OO(e,t){let r=e.split("/"),n=r.length;return r.some(PO)&&(n+=AO),t&&(n+=SO),r.filter((e=>!PO(e))).reduce(((e,t)=>e+(xO.test(t)?_O:""===t?kO:EO)),n)}function TO(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),c=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if("*"===n){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[r];return e[n]=i&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return dO(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c||"",n),e}),{});return{params:c,pathname:o,pathnameBase:a,pattern:e}}function jO(e){try{return decodeURI(e)}catch(t){return dO(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function RO(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function IO(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function MO(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function LO(e,t){let r=MO(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function NO(e,t,r,n){let i;void 0===n&&(n=!1),"string"===typeof e?i=mO(e):(i=sO({},e),uO(!i.pathname||!i.pathname.includes("?"),IO("?","pathname","search",i)),uO(!i.pathname||!i.pathname.includes("#"),IO("#","pathname","hash",i)),uO(!i.search||!i.search.includes("#"),IO("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?mO(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:BO(n),hash:FO(i)}}(i,o),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}const DO=e=>e.join("/").replace(/\/\/+/g,"/"),zO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BO=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",FO=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function UO(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const $O=["post","put","patch","delete"],HO=(new Set($O),["get",...$O]);new Set(HO),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function VO(){return VO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current=!0}));let n=i.useCallback((function(n,i){void 0===i&&(i={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,VO({fromRouteId:t},i)))}),[e,t]);return n}():function(){XO()||uO(!1);let e=i.useContext(qO),{basename:t,future:r,navigator:n}=i.useContext(WO),{matches:o}=i.useContext(YO),{pathname:a}=JO(),s=JSON.stringify(LO(o,r.v7_relativeSplatPath)),c=i.useRef(!1);QO((()=>{c.current=!0}));let l=i.useCallback((function(r,i){if(void 0===i&&(i={}),!c.current)return;if("number"===typeof r)return void n.go(r);let o=NO(r,JSON.parse(s),a,"path"===i.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:DO([t,o.pathname])),(i.replace?n.replace:n.push)(o,i.state,i)}),[t,n,s,a,e]);return l}()}function tT(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(WO),{matches:o}=i.useContext(YO),{pathname:a}=JO(),s=JSON.stringify(LO(o,n.v7_relativeSplatPath));return i.useMemo((()=>NO(e,JSON.parse(s),a,"path"===r)),[e,s,a,r])}function rT(e,t,r,n){XO()||uO(!1);let{navigator:o}=i.useContext(WO),{matches:a}=i.useContext(YO),s=a[a.length-1],c=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=JO();if(t){var h;let e="string"===typeof t?mO(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||uO(!1),u=e}else u=d;let f=u.pathname||"/",p=yO(e,{pathname:"/"===l?f:f.slice(l.length)||"/"});let m=sT(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:DO([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:DO([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,n);return t&&m?i.createElement(GO.Provider,{value:{location:VO({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cO.Pop}},m):m}function nT(){let e=function(){var e;let t=i.useContext(ZO),r=dT(lT.UseRouteError),n=hT(lT.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[n]}(),t=UO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,null)}const iT=i.createElement(nT,null);class oT extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(YO.Provider,{value:this.props.routeContext},i.createElement(ZO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aT(e){let{routeContext:t,match:r,children:n}=e,o=i.useContext(qO);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(YO.Provider,{value:t},n)}function sT(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,c=null==(o=r)?void 0:o.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||uO(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let i=0;i=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,n,o)=>{let a,d=!1,h=null,f=null;r&&(a=c&&n.route.id?c[n.route.id]:void 0,h=n.route.errorElement||iT,l&&(u<0&&0===o?(!function(e,t,r){t||fT[e]||(fT[e]=!0)}("route-fallback",!1),d=!0,f=null):u===o&&(d=!0,f=n.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,o+1)),m=()=>{let t;return t=a?h:d?f:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(aT,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?i.createElement(oT,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}var cT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cT||{}),lT=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lT||{});function uT(e){let t=i.useContext(qO);return t||uO(!1),t}function dT(e){let t=i.useContext(KO);return t||uO(!1),t}function hT(e){let t=function(e){let t=i.useContext(YO);return t||uO(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||uO(!1),r.route.id}const fT={};o.startTransition;function pT(e){let{to:t,replace:r,state:n,relative:o}=e;XO()||uO(!1);let{future:a,static:s}=i.useContext(WO),{matches:c}=i.useContext(YO),{pathname:l}=JO(),u=eT(),d=NO(t,LO(c,a.v7_relativeSplatPath),l,"path"===o),h=JSON.stringify(d);return i.useEffect((()=>u(JSON.parse(h),{replace:r,state:n,relative:o})),[u,h,o,r,n]),null}function mT(e){uO(!1)}function gT(e){let{basename:t="/",children:r=null,location:n,navigationType:o=cO.Pop,navigator:a,static:s=!1,future:c}=e;XO()&&uO(!1);let l=t.replace(/^\/*/,"/"),u=i.useMemo((()=>({basename:l,navigator:a,static:s,future:VO({v7_relativeSplatPath:!1},c)})),[l,c,a,s]);"string"===typeof n&&(n=mO(n));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=n,g=i.useMemo((()=>{let e=RO(d,l);return null==e?null:{location:{pathname:e,search:h,hash:f,state:p,key:m},navigationType:o}}),[l,d,h,f,p,m,o]);return null==g?null:i.createElement(WO.Provider,{value:u},i.createElement(GO.Provider,{children:r,value:g}))}function vT(e){let{children:t,location:r}=e;return rT(yT(t),r)}new Promise((()=>{}));i.Component;function yT(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,((e,n)=>{if(!i.isValidElement(e))return;let o=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,yT(e.props.children,o));e.type!==mT&&uO(!1),e.props.index&&e.props.children&&uO(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=yT(e.props.children,o)),r.push(a)})),r}function bT(){return bT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function xT(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const _T=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(Mde){}new Map;const ST=o.startTransition;ii.flushSync,o.useId;function kT(e){let{basename:t,children:r,future:n,window:o}=e,a=i.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),gO((function(e,t){let{pathname:r="/",search:n="",hash:i=""}=mO(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),fO("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"===typeof t?t:pO(t))}),(function(e,t){dO("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:o,v5Compat:!0}));let s=a.current,[c,l]=i.useState({action:s.action,location:s.location}),{v7_startTransition:u}=n||{},d=i.useCallback((e=>{u&&ST?ST((()=>l(e))):l(e)}),[l,u]);return i.useLayoutEffect((()=>s.listen(d)),[s,d]),i.createElement(gT,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:s,future:n})}const ET="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,AT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PT=i.forwardRef((function(e,t){let r,{onClick:n,relative:o,reloadDocument:a,replace:s,state:c,target:l,to:u,preventScrollReset:d,unstable_viewTransition:h}=e,f=wT(e,_T),{basename:p}=i.useContext(WO),m=!1;if("string"===typeof u&&AT.test(u)&&(r=u,ET))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=RO(t.pathname,p);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(Mde){}let g=function(e,t){let{relative:r}=void 0===t?{}:t;XO()||uO(!1);let{basename:n,navigator:o}=i.useContext(WO),{hash:a,pathname:s,search:c}=tT(e,{relative:r}),l=s;return"/"!==n&&(l="/"===s?n:DO([n,s])),o.createHref({pathname:l,search:c,hash:a})}(u,{relative:o}),v=function(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c}=void 0===t?{}:t,l=eT(),u=JO(),d=tT(e,{relative:s});return i.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==n?n:pO(u)===pO(d);l(e,{replace:r,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c})}}),[u,l,d,n,o,r,e,a,s,c])}(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:h});return i.createElement("a",bT({},f,{href:r||g,onClick:m||a?n:function(e){n&&n(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var OT,TT;function CT(e){let t=i.useRef(xT(e)),r=i.useRef(!1),n=JO(),o=i.useMemo((()=>function(e,t){let r=xT(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(n.search,r.current?null:t.current)),[n.search]),a=eT(),s=i.useCallback(((e,t)=>{const n=xT("function"===typeof e?e(o):e);r.current=!0,a("?"+n,t)}),[a,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(OT||(OT={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(TT||(TT={}));function jT(e,t){return function(){return e.apply(t,arguments)}}const{toString:RT}=Object.prototype,{getPrototypeOf:IT}=Object,MT=(e=>t=>{const r=RT.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),LT=e=>(e=e.toLowerCase(),t=>MT(t)===e),NT=e=>t=>typeof t===e,{isArray:DT}=Array,zT=NT("undefined");const BT=LT("ArrayBuffer");const FT=NT("string"),UT=NT("function"),$T=NT("number"),HT=e=>null!==e&&"object"===typeof e,VT=e=>{if("object"!==MT(e))return!1;const t=IT(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qT=LT("Date"),KT=LT("File"),WT=LT("Blob"),GT=LT("FileList"),YT=LT("URLSearchParams");function ZT(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let n,i;if("object"!==typeof e&&(e=[e]),DT(e))for(n=0,i=e.length;n0;)if(n=r[i],t===n.toLowerCase())return n;return null}const JT="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,QT=e=>!zT(e)&&e!==JT;const eC=(tC="undefined"!==typeof Uint8Array&&IT(Uint8Array),e=>tC&&e instanceof tC);var tC;const rC=LT("HTMLFormElement"),nC=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),iC=LT("RegExp"),oC=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ZT(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},aC="abcdefghijklmnopqrstuvwxyz",sC="0123456789",cC={DIGIT:sC,ALPHA:aC,ALPHA_DIGIT:aC+aC.toUpperCase()+sC};const lC=LT("AsyncFunction"),uC={isArray:DT,isArrayBuffer:BT,isBuffer:function(e){return null!==e&&!zT(e)&&null!==e.constructor&&!zT(e.constructor)&&UT(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||UT(e.append)&&("formdata"===(t=MT(e))||"object"===t&&UT(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&BT(e.buffer),t},isString:FT,isNumber:$T,isBoolean:e=>!0===e||!1===e,isObject:HT,isPlainObject:VT,isUndefined:zT,isDate:qT,isFile:KT,isBlob:WT,isRegExp:iC,isFunction:UT,isStream:e=>HT(e)&&UT(e.pipe),isURLSearchParams:YT,isTypedArray:eC,isFileList:GT,forEach:ZT,merge:function e(){const{caseless:t}=QT(this)&&this||{},r={},n=(n,i)=>{const o=t&&XT(r,i)||i;VT(r[o])&&VT(n)?r[o]=e(r[o],n):VT(n)?r[o]=e({},n):DT(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i(ZT(t,((t,n)=>{r&&UT(t)?e[n]=jT(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&IT(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:MT,kindOfTest:LT,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(DT(e))return e;let t=e.length;if(!$T(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:rC,hasOwnProperty:nC,hasOwnProp:nC,reduceDescriptors:oC,freezeMethods:e=>{oC(e,((t,r)=>{if(UT(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];UT(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return DT(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:XT,global:JT,isContextDefined:QT,ALPHABET:cC,generateString:(e=16,t=cC.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&UT(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(HT(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=DT(e)?[]:{};return ZT(e,((e,t)=>{const o=r(e,n+1);!zT(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:lC,isThenable:e=>e&&(HT(e)||UT(e))&&UT(e.then)&&UT(e.catch)};function dC(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}uC.inherits(dC,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:uC.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hC=dC.prototype,fC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{fC[e]={value:e}})),Object.defineProperties(dC,fC),Object.defineProperty(hC,"isAxiosError",{value:!0}),dC.from=(e,t,r,n,i,o)=>{const a=Object.create(hC);return uC.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),dC.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const pC=dC;var mC=r(4240).Buffer;function gC(e){return uC.isPlainObject(e)||uC.isArray(e)}function vC(e){return uC.endsWith(e,"[]")?e.slice(0,-2):e}function yC(e,t,r){return e?e.concat(t).map((function(e,t){return e=vC(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const bC=uC.toFlatObject(uC,{},null,(function(e){return/^is[A-Z]/.test(e)}));const wC=function(e,t,r){if(!uC.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=uC.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!uC.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&uC.isSpecCompliantForm(t);if(!uC.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(uC.isDate(e))return e.toISOString();if(!s&&uC.isBlob(e))throw new pC("Blob is not supported. Use a Buffer instead.");return uC.isArrayBuffer(e)||uC.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):mC.from(e):e}function l(e,r,i){let s=e;if(e&&!i&&"object"===typeof e)if(uC.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(uC.isArray(e)&&function(e){return uC.isArray(e)&&!e.some(gC)}(e)||(uC.isFileList(e)||uC.endsWith(r,"[]"))&&(s=uC.toArray(e)))return r=vC(r),s.forEach((function(e,n){!uC.isUndefined(e)&&null!==e&&t.append(!0===a?yC([r],n,o):null===a?r:r+"[]",c(e))})),!1;return!!gC(e)||(t.append(yC(i,r,o),c(e)),!1)}const u=[],d=Object.assign(bC,{defaultVisitor:l,convertValue:c,isVisitable:gC});if(!uC.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!uC.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),uC.forEach(r,(function(r,o){!0===(!(uC.isUndefined(r)||null===r)&&i.call(t,r,uC.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t};function xC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _C(e,t){this._pairs=[],e&&wC(e,this,t)}const SC=_C.prototype;SC.append=function(e,t){this._pairs.push([e,t])},SC.toString=function(e){const t=e?function(t){return e.call(this,t,xC)}:xC;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const kC=_C;function EC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AC(e,t,r){if(!t)return e;const n=r&&r.encode||EC,i=r&&r.serialize;let o;if(o=i?i(t,r):uC.isURLSearchParams(t)?t.toString():new kC(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const PC=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){uC.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TC={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:kC,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},CC="undefined"!==typeof window&&"undefined"!==typeof document,jC=(RC="undefined"!==typeof navigator&&navigator.product,CC&&["ReactNative","NativeScript","NS"].indexOf(RC)<0);var RC;const IC="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,MC={...e,...TC};const LC=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&uC.isArray(n)?n.length:o,s)return uC.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&uC.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&uC.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n{t(function(e){return uC.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const NC={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=uC.isObject(e);i&&uC.isHTMLForm(e)&&(e=new FormData(e));if(uC.isFormData(e))return n?JSON.stringify(LC(e)):e;if(uC.isArrayBuffer(e)||uC.isBuffer(e)||uC.isStream(e)||uC.isFile(e)||uC.isBlob(e))return e;if(uC.isArrayBufferView(e))return e.buffer;if(uC.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return wC(e,new MC.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return MC.isNode&&uC.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=uC.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return wC(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(uC.isString(e))try{return(t||JSON.parse)(e),uC.trim(e)}catch(Mde){if("SyntaxError"!==Mde.name)throw Mde}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||NC.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&uC.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(Mde){if(r){if("SyntaxError"===Mde.name)throw pC.from(Mde,pC.ERR_BAD_RESPONSE,this,null,this.response);throw Mde}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:MC.classes.FormData,Blob:MC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};uC.forEach(["delete","get","head","post","put","patch"],(e=>{NC.headers[e]={}}));const DC=NC,zC=uC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),BC=Symbol("internals");function FC(e){return e&&String(e).trim().toLowerCase()}function UC(e){return!1===e||null==e?e:uC.isArray(e)?e.map(UC):String(e)}function $C(e,t,r,n,i){return uC.isFunction(n)?n.call(this,t,r):(i&&(t=r),uC.isString(t)?uC.isString(n)?-1!==t.indexOf(n):uC.isRegExp(n)?n.test(t):void 0:void 0)}class HC{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=FC(t);if(!i)throw new Error("header name must be a non-empty string");const o=uC.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=UC(e))}const o=(e,t)=>uC.forEach(e,((e,r)=>i(e,r,t)));return uC.isPlainObject(e)||e instanceof this.constructor?o(e,t):uC.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&zC[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=FC(e)){const r=uC.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(uC.isFunction(t))return t.call(this,e,r);if(uC.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=FC(e)){const r=uC.findKey(this,e);return!(!r||void 0===this[r]||t&&!$C(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=FC(e)){const i=uC.findKey(r,e);!i||t&&!$C(0,r[i],i,t)||(delete r[i],n=!0)}}return uC.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!$C(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return uC.forEach(this,((n,i)=>{const o=uC.findKey(r,i);if(o)return t[o]=UC(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=UC(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return uC.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&uC.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[BC]=this[BC]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=FC(e);t[n]||(!function(e,t){const r=uC.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return uC.isArray(e)?e.forEach(n):n(e),this}}HC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),uC.reduceDescriptors(HC.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),uC.freezeMethods(HC);const VC=HC;function qC(e,t){const r=this||DC,n=t||r,i=VC.from(n.headers);let o=n.data;return uC.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function KC(e){return!(!e||!e.__CANCEL__)}function WC(e,t,r){pC.call(this,null==e?"canceled":e,pC.ERR_CANCELED,t,r),this.name="CanceledError"}uC.inherits(WC,pC,{__CANCEL__:!0});const GC=WC;const YC=MC.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];uC.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),uC.isString(n)&&a.push("path="+n),uC.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ZC(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const XC=MC.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=uC.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const JC=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];i||(i=c),r[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s);r=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const ej="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=VC.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(uC.isFormData(n))if(MC.hasStandardBrowserEnv||MC.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const d=ZC(e.baseURL,e.url);function h(){if(!u)return;const n=VC.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new pC("Request failed with status code "+r.status,[pC.ERR_BAD_REQUEST,pC.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),AC(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new pC("Request aborted",pC.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new pC("Network Error",pC.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||OC;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new pC(t,n.clarifyTimeoutError?pC.ETIMEDOUT:pC.ECONNABORTED,e,u)),u=null},MC.hasStandardBrowserEnv&&(c&&uC.isFunction(c)&&(c=c(e)),c||!1!==c&&XC(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&YC.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in u&&uC.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),uC.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",QC(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",QC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(r(!t||t.type?new GC(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===MC.protocols.indexOf(f)?r(new pC("Unsupported protocol "+f+":",pC.ERR_BAD_REQUEST,e)):u.send(n||null)}))},tj={http:null,xhr:ej};uC.forEach(tj,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Mde){}Object.defineProperty(e,"adapterName",{value:t})}}));const rj=e=>`- ${e}`,nj=e=>uC.isFunction(e)||null===e||!1===e,ij=e=>{e=uC.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(rj).join("\n"):" "+rj(e[0]):"as no adapter specified";throw new pC("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function oj(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new GC(null,e)}function aj(e){oj(e),e.headers=VC.from(e.headers),e.data=qC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ij(e.adapter||DC.adapter)(e).then((function(t){return oj(e),t.data=qC.call(e,e.transformResponse,t),t.headers=VC.from(t.headers),t}),(function(t){return KC(t)||(oj(e),t&&t.response&&(t.response.data=qC.call(e,e.transformResponse,t.response),t.response.headers=VC.from(t.response.headers))),Promise.reject(t)}))}const sj=e=>e instanceof VC?e.toJSON():e;function cj(e,t){t=t||{};const r={};function n(e,t,r){return uC.isPlainObject(e)&&uC.isPlainObject(t)?uC.merge.call({caseless:r},e,t):uC.isPlainObject(t)?uC.merge({},t):uC.isArray(t)?t.slice():t}function i(e,t,r){return uC.isUndefined(t)?uC.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!uC.isUndefined(t))return n(void 0,t)}function a(e,t){return uC.isUndefined(t)?uC.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(sj(e),sj(t),!0)};return uC.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,a=o(e[n],t[n],n);uC.isUndefined(a)&&o!==s||(r[n]=a)})),r}const lj="1.6.7",uj={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{uj[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const dj={};uj.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new pC(n(i," has been removed"+(t?" in "+t:"")),pC.ERR_DEPRECATED);return t&&!dj[i]&&(dj[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const hj={assertOptions:function(e,t,r){if("object"!==typeof e)throw new pC("options must be an object",pC.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new pC("option "+o+" must be "+r,pC.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new pC("Unknown option "+o,pC.ERR_BAD_OPTION)}},validators:uj},fj=hj.validators;class pj{constructor(e){this.defaults=e,this.interceptors={request:new PC,response:new PC}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}throw r}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=cj(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&hj.assertOptions(r,{silentJSONParsing:fj.transitional(fj.boolean),forcedJSONParsing:fj.transitional(fj.boolean),clarifyTimeoutError:fj.transitional(fj.boolean)},!1),null!=n&&(uC.isFunction(n)?t.paramsSerializer={serialize:n}:hj.assertOptions(n,{encode:fj.function,serialize:fj.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&uC.merge(i.common,i[t.method]);i&&uC.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=VC.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[aj.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new GC(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new gj((function(t){e=t}));return{token:t,cancel:e}}}const vj=gj;const yj={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yj).forEach((([e,t])=>{yj[t]=e}));const bj=yj;const wj=function e(t){const r=new mj(t),n=jT(mj.prototype.request,r);return uC.extend(n,mj.prototype,r,{allOwnKeys:!0}),uC.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(cj(t,r))},n}(DC);wj.Axios=mj,wj.CanceledError=GC,wj.CancelToken=vj,wj.isCancel=KC,wj.VERSION=lj,wj.toFormData=wC,wj.AxiosError=pC,wj.Cancel=wj.CanceledError,wj.all=function(e){return Promise.all(e)},wj.spread=function(e){return function(t){return e.apply(null,t)}},wj.isAxiosError=function(e){return uC.isObject(e)&&!0===e.isAxiosError},wj.mergeConfig=cj,wj.AxiosHeaders=VC,wj.formToJSON=e=>LC(uC.isHTMLForm(e)?new FormData(e):e),wj.getAdapter=ij,wj.HttpStatusCode=bj,wj.default=wj;const xj=wj,_j=e=>(0,xn.jsxs)(qA,{width:"24px",height:"24px",fill:"none",textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,xn.jsx)("path",{d:"M14 5.6C14 5.03995 14 4.75992 14.109 4.54601C14.2049 4.35785 14.3578 4.20487 14.546 4.10899C14.7599 4 15.0399 4 15.6 4H18.4C18.9601 4 19.2401 4 19.454 4.10899C19.6422 4.20487 19.7951 4.35785 19.891 4.54601C20 4.75992 20 5.03995 20 5.6V8.4C20 8.96005 20 9.24008 19.891 9.45399C19.7951 9.64215 19.6422 9.79513 19.454 9.89101C19.2401 10 18.9601 10 18.4 10H15.6C15.0399 10 14.7599 10 14.546 9.89101C14.3578 9.79513 14.2049 9.64215 14.109 9.45399C14 9.24008 14 8.96005 14 8.4V5.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M4 5.6C4 5.03995 4 4.75992 4.10899 4.54601C4.20487 4.35785 4.35785 4.20487 4.54601 4.10899C4.75992 4 5.03995 4 5.6 4H8.4C8.96005 4 9.24008 4 9.45399 4.10899C9.64215 4.20487 9.79513 4.35785 9.89101 4.54601C10 4.75992 10 5.03995 10 5.6V8.4C10 8.96005 10 9.24008 9.89101 9.45399C9.79513 9.64215 9.64215 9.79513 9.45399 9.89101C9.24008 10 8.96005 10 8.4 10H5.6C5.03995 10 4.75992 10 4.54601 9.89101C4.35785 9.79513 4.20487 9.64215 4.10899 9.45399C4 9.24008 4 8.96005 4 8.4V5.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M4 15.6C4 15.0399 4 14.7599 4.10899 14.546C4.20487 14.3578 4.35785 14.2049 4.54601 14.109C4.75992 14 5.03995 14 5.6 14H8.4C8.96005 14 9.24008 14 9.45399 14.109C9.64215 14.2049 9.79513 14.3578 9.89101 14.546C10 14.7599 10 15.0399 10 15.6V18.4C10 18.9601 10 19.2401 9.89101 19.454C9.79513 19.6422 9.64215 19.7951 9.45399 19.891C9.24008 20 8.96005 20 8.4 20H5.6C5.03995 20 4.75992 20 4.54601 19.891C4.35785 19.7951 4.20487 19.6422 4.10899 19.454C4 19.2401 4 18.9601 4 18.4V15.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M14 15.6C14 15.0399 14 14.7599 14.109 14.546C14.2049 14.3578 14.3578 14.2049 14.546 14.109C14.7599 14 15.0399 14 15.6 14H18.4C18.9601 14 19.2401 14 19.454 14.109C19.6422 14.2049 19.7951 14.3578 19.891 14.546C20 14.7599 20 15.0399 20 15.6V18.4C20 18.9601 20 19.2401 19.891 19.454C19.7951 19.6422 19.6422 19.7951 19.454 19.891C19.2401 20 18.9601 20 18.4 20H15.6C15.0399 20 14.7599 20 14.546 19.891C14.3578 19.7951 14.2049 19.6422 14.109 19.454C14 19.2401 14 18.9601 14 18.4V15.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Sj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M8.25 13.5H4.65C3.80992 13.5 3.38988 13.5 3.06901 13.3365C2.78677 13.1927 2.5573 12.9632 2.41349 12.681C2.25 12.3601 2.25 11.9401 2.25 11.1V5.4C2.25 4.55992 2.25 4.13988 2.41349 3.81901C2.5573 3.53677 2.78677 3.3073 3.06901 3.16349C3.38988 3 3.80992 3 4.65 3H13.35C14.1901 3 14.6101 3 14.931 3.16349C15.2132 3.3073 15.4427 3.53677 15.5865 3.81901C15.75 4.13988 15.75 4.55992 15.75 5.4V8.25M2.25 6H15.75M13.5 15V10.5M15.75 12.7506L11.25 12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kj=e=>(0,xn.jsx)(qA,{fill:"none",viewBox:"0 0 13 17",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13 12.5L10.75 12.5M10.75 12.5L8.5 12.5M10.75 12.5V10.25M10.75 12.5V14.75M6.25 14.75H1C1 11.8505 3.35051 9.5 6.25 9.5C6.77123 9.5 7.27472 9.57596 7.75 9.71741M9.25 4.25C9.25 5.90685 7.90685 7.25 6.25 7.25C4.59315 7.25 3.25 5.90685 3.25 4.25C3.25 2.59315 4.59315 1.25 6.25 1.25C7.90685 1.25 9.25 2.59315 9.25 4.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ej=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13.5 15.5C13.2164 14.3589 11.981 13.5 10.5 13.5C9.019 13.5 7.78364 14.3589 7.5 15.5M21 5V7M21 11V13M21 17V19M6.2 21H14.8C15.9201 21 16.4802 21 16.908 20.782C17.2843 20.5903 17.5903 20.2843 17.782 19.908C18 19.4802 18 18.9201 18 17.8V6.2C18 5.0799 18 4.51984 17.782 4.09202C17.5903 3.71569 17.2843 3.40973 16.908 3.21799C16.4802 3 15.9201 3 14.8 3H6.2C5.0799 3 4.51984 3 4.09202 3.21799C3.71569 3.40973 3.40973 3.71569 3.21799 4.09202C3 4.51984 3 5.07989 3 6.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21ZM11.5 9.5C11.5 10.0523 11.0523 10.5 10.5 10.5C9.94772 10.5 9.5 10.0523 9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5C11.0523 8.5 11.5 8.94772 11.5 9.5Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Aj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],"data-testid":"baker-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.74946 5.25V8.25M7.49946 1.5V4.5M13.4995 12V15M2.24946 6.75H5.24946M5.99946 3H8.99946M11.9995 13.5H14.9995M10.4995 5.25L12.6208 7.37132M14.6369 2.80959L15.0612 3.23385C15.3582 3.53086 15.5067 3.67937 15.5624 3.85062C15.6113 4.00125 15.6113 4.16351 15.5624 4.31414C15.5067 4.48539 15.3582 4.6339 15.0612 4.93091L4.89356 15.0985C4.59655 15.3955 4.44804 15.5441 4.2768 15.5997C4.12617 15.6486 3.9639 15.6486 3.81327 15.5997C3.64203 15.5441 3.49352 15.3955 3.19651 15.0985L2.77224 14.6743C2.47523 14.3773 2.32672 14.2288 2.27108 14.0575C2.22214 13.9069 2.22214 13.7446 2.27108 13.594C2.32672 13.4227 2.47523 13.2742 2.77224 12.9772L12.9399 2.80959C13.2369 2.51258 13.3854 2.36407 13.5566 2.30843C13.7073 2.25948 13.8695 2.25948 14.0202 2.30843C14.1914 2.36407 14.3399 2.51258 14.6369 2.80959Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Pj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",strokeWidth:"1.2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M10 4V20M14 4V20M4 8C4 8.92997 4 9.39496 4.10222 9.77646C4.37962 10.8117 5.18827 11.6204 6.22354 11.8978C6.60504 12 7.07003 12 8 12H16C16.93 12 17.395 12 17.7765 11.8978C18.8117 11.6204 19.6204 10.8117 19.8978 9.77646C20 9.39496 20 8.92997 20 8M4 8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4H16C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8M4 8V16C4 16.93 4 17.395 4.10222 17.7765C4.37962 18.8117 5.18827 19.6204 6.22354 19.8978C6.60504 20 7.07003 20 8 20H16C16.93 20 17.395 20 17.7765 19.8978C18.8117 19.6204 19.6204 18.8117 19.8978 17.7765C20 17.395 20 16.93 20 16V8M10 16H8C7.07003 16 6.60504 16 6.22354 15.8978C5.18827 15.6204 4.37962 14.8117 4.10222 13.7765C4 13.395 4 12.93 4 12M14 16H16C16.93 16 17.395 16 17.7765 15.8978C18.8117 15.6204 19.6204 14.8117 19.8978 13.7765C20 13.395 20 12.93 20 12M7 8H7.01M17 8H17.01",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round"})}),Oj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4 6H20M4 12H20M4 18H20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Tj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M6 9.25L7.84615 11.25L12 6.75M15.75 9C15.75 12.7279 12.7279 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 5.27208 5.27208 2.25 9 2.25C12.7279 2.25 15.75 5.27208 15.75 9Z",stroke:"#00C39A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Cj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4.5 6.75L9 11.25L13.5 6.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),jj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M7 14L11.5 9.5L7 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Rj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4.5 11.25L9 6.75L13.5 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ij=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12 10V14M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Mj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none","data-testid":"contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.75 15.75C3.75 12.8505 6.10051 10.5 9 10.5C11.8995 10.5 14.25 12.8505 14.25 15.75M12 5.25C12 6.90685 10.6569 8.25 9 8.25C7.34315 8.25 6 6.90685 6 5.25C6 3.59315 7.34315 2.25 9 2.25C10.6569 2.25 12 3.59315 12 5.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Lj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M7.5 12.75L6 11.25L7.5 9.75M10.5 9.75L12 11.25L10.5 12.75M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V6C9.75 6.41421 10.0858 6.75 10.5 6.75H14.25",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Nj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13.773 13.773C14.9945 12.5515 15.75 10.864 15.75 9C15.75 5.27208 12.7279 2.25 9 2.25C7.13604 2.25 5.44854 3.00552 4.22703 4.22703M13.773 13.773C12.5515 14.9945 10.864 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 7.13604 3.00552 5.44854 4.22703 4.22703M13.773 13.773L4.22703 4.22703",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Dj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.125 9H20.875M12 3L8 9L12 20.6667L16 9L12 3ZM12.64 20.1467L20.64 9.48C20.7691 9.30787 20.8336 9.22181 20.8585 9.12728C20.8805 9.04385 20.8805 8.95615 20.8585 8.87272C20.8336 8.77819 20.7691 8.69213 20.64 8.52L16.74 3.32C16.652 3.20267 16.608 3.144 16.5522 3.10169C16.5028 3.06421 16.4469 3.03625 16.3873 3.01922C16.32 3 16.2467 3 16.1 3H7.9C7.75333 3 7.68 3 7.61269 3.01922C7.55308 3.03625 7.49715 3.06421 7.44776 3.10169C7.392 3.144 7.348 3.20267 7.26 3.32L3.36 8.52C3.2309 8.69213 3.16635 8.77819 3.14147 8.87271C3.11951 8.95615 3.11951 9.04385 3.14147 9.12728C3.16635 9.2218 3.2309 9.30787 3.36 9.48L11.36 20.1467C11.5771 20.4362 11.6857 20.5809 11.8188 20.6327C11.9353 20.678 12.0647 20.678 12.1812 20.6327C12.3143 20.5809 12.4229 20.4362 12.64 20.1467Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),zj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9 17H13M9 13H13M9 9H10M17 18V21M17 15H17.01M13 3H8.2C7.0799 3 6.51984 3 6.09202 3.21799C5.71569 3.40973 5.40973 3.71569 5.21799 4.09202C5 4.51984 5 5.0799 5 6.2V17.8C5 18.9201 5 19.4802 5.21799 19.908C5.40973 20.2843 5.71569 20.5903 6.09202 20.782C6.51984 21 7.0799 21 8.2 21H13M13 3L19 9M13 3V7.4C13 7.96005 13 8.24008 13.109 8.45399C13.2049 8.64215 13.3578 8.79513 13.546 8.89101C13.7599 9 14.0399 9 14.6 9H19M19 9V11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Bj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4 14L9 19L20 8M6 8.88889L9.07692 12L16 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Fj=e=>(0,xn.jsx)(qA,{width:"16px",height:"16px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M5 7.25L8 10.25M8 10.25L11 7.25M8 10.25V1.25M14.75 7.25V12.3494C14.75 13.1895 14.75 13.6095 14.5865 13.9304C14.4427 14.2126 14.2132 14.4421 13.931 14.5859C13.6101 14.7494 13.1901 14.7494 12.35 14.7494H3.65C2.80992 14.7494 2.38988 14.7494 2.06901 14.5859C1.78677 14.4421 1.5573 14.2126 1.41349 13.9304C1.25 13.6095 1.25 13.1895 1.25 12.3494V7.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Uj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M8.5 21H4C4 17.134 7.13401 14 11 14C11.1681 14 11.3348 14.0059 11.5 14.0176M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7ZM12.5898 21L14.6148 20.595C14.7914 20.5597 14.8797 20.542 14.962 20.5097C15.0351 20.4811 15.1045 20.4439 15.1689 20.399C15.2414 20.3484 15.3051 20.2848 15.4324 20.1574L19.5898 16C20.1421 15.4477 20.1421 14.5523 19.5898 14C19.0376 13.4477 18.1421 13.4477 17.5898 14L13.4324 18.1574C13.3051 18.2848 13.2414 18.3484 13.1908 18.421C13.1459 18.4853 13.1088 18.5548 13.0801 18.6279C13.0478 18.7102 13.0302 18.7985 12.9948 18.975L12.5898 21Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),$j=e=>(0,xn.jsx)(qA,{width:"12px",height:"12px",fill:"none",stroke:LP.orange,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M6 3.66667V6.58333M6 8.33333H6.00583M11.25 6C11.25 8.89949 8.89949 11.25 6 11.25C3.1005 11.25 0.75 8.89949 0.75 6C0.75 3.1005 3.1005 0.75 6 0.75C8.89949 0.75 11.25 3.1005 11.25 6Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Hj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15 3V15M3 9H12M12 9L9 6M12 9L9 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Vj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15 3L9 9M15 3V6.375M15 3H11.625M14.25 9.375V12.6C14.25 13.4401 14.25 13.8601 14.0865 14.181C13.9427 14.4632 13.7132 14.6927 13.431 14.8365C13.1101 15 12.6901 15 11.85 15H5.4C4.55992 15 4.13988 15 3.81901 14.8365C3.53677 14.6927 3.3073 14.4632 3.16349 14.181C3 13.8601 3 13.4401 3 12.6V6.15C3 5.30992 3 4.88988 3.16349 4.56901C3.3073 4.28677 3.53677 4.0573 3.81901 3.91349C4.13988 3.75 4.55992 3.75 5.4 3.75H8.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),qj=e=>(0,xn.jsxs)(qA,{width:"16px",height:"12px",fill:"none",viewBox:"0 0 16 12",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,xn.jsx)("path",{d:"M10.2501 6C10.2501 7.24264 9.2427 8.25 8.00006 8.25C6.75742 8.25 5.75006 7.24264 5.75006 6C5.75006 4.75736 6.75742 3.75 8.00006 3.75C9.2427 3.75 10.2501 4.75736 10.2501 6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M8.00039 0.75C4.64217 0.75 1.79946 2.95716 0.84375 5.99997C1.79944 9.04282 4.64217 11.25 8.00041 11.25C11.3586 11.25 14.2013 9.04284 15.157 6.00003C14.2014 2.95719 11.3586 0.75 8.00039 0.75Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Kj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M2.25024 2.25L15.7502 15.75M7.38345 7.43523C6.99147 7.84016 6.75024 8.39191 6.75024 9C6.75024 10.2426 7.7576 11.25 9.00024 11.25C9.6171 11.25 10.176 11.0018 10.5824 10.5997M4.87524 4.98536C3.45076 5.92525 2.36577 7.33796 1.84375 8.99997C2.79944 12.0428 5.64217 14.25 9.00041 14.25C10.4921 14.25 11.882 13.8145 13.0501 13.0638M8.25024 3.78705C8.49697 3.76254 8.74722 3.75 9.00039 3.75C12.3586 3.75 15.2014 5.95719 16.157 9.00003C15.9465 9.67048 15.6443 10.3004 15.2651 10.875",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Wj=e=>(0,xn.jsx)(qA,{width:"30px",height:"15px",fill:LP.gray[450],viewBox:"1 1 30 15",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.2429 13V4.27273H7.02131V5.79403H3.08807V7.87358H6.63778V9.39489H3.08807V13H1.2429ZM8.67685 13H6.69957L9.71236 4.27273H12.0902L15.0987 13H13.1214L10.9354 6.26705H10.8672L8.67685 13ZM8.55327 9.5696H13.2237V11.0099H8.55327V9.5696ZM19.4847 4.27273V13H17.6396V6.02415H17.5884L15.5898 7.27699V5.64062L17.7504 4.27273H19.4847ZM22.1683 13.1108C21.8871 13.1108 21.6456 13.0114 21.4439 12.8125C21.245 12.6108 21.1456 12.3693 21.1456 12.0881C21.1456 11.8097 21.245 11.571 21.4439 11.3722C21.6456 11.1733 21.8871 11.0739 22.1683 11.0739C22.4411 11.0739 22.6797 11.1733 22.8842 11.3722C23.0888 11.571 23.1911 11.8097 23.1911 12.0881C23.1911 12.2756 23.1428 12.4474 23.0462 12.6037C22.9524 12.7571 22.8288 12.8807 22.6754 12.9744C22.522 13.0653 22.353 13.1108 22.1683 13.1108ZM24.6644 13V11.6705L27.771 8.79403C28.0352 8.53835 28.2567 8.30824 28.4357 8.10369C28.6175 7.89915 28.7553 7.69886 28.8491 7.50284C28.9428 7.30398 28.9897 7.08949 28.9897 6.85938C28.9897 6.60369 28.9315 6.38352 28.815 6.19886C28.6985 6.01136 28.5394 5.8679 28.3377 5.76847C28.136 5.66619 27.9073 5.61506 27.6516 5.61506C27.3846 5.61506 27.1516 5.66903 26.9528 5.77699C26.7539 5.88494 26.6005 6.03977 26.4925 6.24148C26.3846 6.44318 26.3306 6.68324 26.3306 6.96165H24.5792C24.5792 6.39062 24.7085 5.89489 24.967 5.47443C25.2255 5.05398 25.5877 4.72869 26.0536 4.49858C26.5195 4.26847 27.0565 4.15341 27.6644 4.15341C28.2894 4.15341 28.8335 4.2642 29.2965 4.4858C29.7624 4.70455 30.1246 5.00852 30.3832 5.39773C30.6417 5.78693 30.771 6.23295 30.771 6.7358C30.771 7.06534 30.7056 7.39062 30.5749 7.71165C30.4471 8.03267 30.2184 8.3892 29.8888 8.78125C29.5593 9.17045 29.0948 9.63778 28.4954 10.1832L27.2212 11.4318V11.4915H30.886V13H24.6644Z"})}),Gj=e=>(0,xn.jsx)(qA,{width:"23px",height:"18px",fill:LP.gray[450],viewBox:"0 0 23 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.0261 13V4.27273H6.80451V5.79403H2.87127V7.87358H6.42099V9.39489H2.87127V13H1.0261ZM8.46005 13H6.48278L9.49556 4.27273H11.8734L14.8819 13H12.9047L10.7186 6.26705H10.6504L8.46005 13ZM8.33647 9.5696H13.0069V11.0099H8.33647V9.5696ZM15.8812 13V11.6705L18.9877 8.79403C19.252 8.53835 19.4735 8.30824 19.6525 8.10369C19.8343 7.89915 19.9721 7.69886 20.0659 7.50284C20.1596 7.30398 20.2065 7.08949 20.2065 6.85938C20.2065 6.60369 20.1483 6.38352 20.0318 6.19886C19.9153 6.01136 19.7562 5.8679 19.5545 5.76847C19.3528 5.66619 19.1241 5.61506 18.8684 5.61506C18.6014 5.61506 18.3684 5.66903 18.1696 5.77699C17.9707 5.88494 17.8173 6.03977 17.7093 6.24148C17.6014 6.44318 17.5474 6.68324 17.5474 6.96165H15.796C15.796 6.39062 15.9252 5.89489 16.1838 5.47443C16.4423 5.05398 16.8045 4.72869 17.2704 4.49858C17.7363 4.26847 18.2733 4.15341 18.8812 4.15341C19.5062 4.15341 20.0502 4.2642 20.5133 4.4858C20.9792 4.70455 21.3414 5.00852 21.6 5.39773C21.8585 5.78693 21.9877 6.23295 21.9877 6.7358C21.9877 7.06534 21.9224 7.39062 21.7917 7.71165C21.6639 8.03267 21.4352 8.3892 21.1056 8.78125C20.7761 9.17045 20.3116 9.63778 19.7122 10.1832L18.438 11.4318V11.4915H22.1028V13H15.8812Z"})}),Yj=e=>(0,xn.jsx)(qA,{width:"19px",height:"19px",fill:"none",stroke:LP.gray[400],viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15.7842 10.2916C15.8165 10.0323 15.8332 9.76807 15.8332 9.49996C15.8332 6.00216 12.9976 3.16663 9.49984 3.16663C7.52021 3.16663 5.75273 4.07488 4.59135 5.49742M3.2155 8.70829C3.18316 8.96764 3.1665 9.23185 3.1665 9.49996C3.1665 12.9978 6.00203 15.8333 9.49984 15.8333C11.3914 15.8333 13.0893 15.004 14.2498 13.6892M11.8748 13.4583H14.2498V13.6892M4.59135 3.16663V5.49742M4.59135 5.49742V5.54157L6.96635 5.54163M14.2498 15.8333V13.6892",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Zj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9 8.25V12.75M9 12.75L7.5 11.25M9 12.75L10.5 11.25M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V5.55C9.75 5.97004 9.75 6.18006 9.83175 6.34049C9.90365 6.48161 10.0184 6.59635 10.1595 6.66825C10.3199 6.75 10.53 6.75 10.95 6.75H14.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Xj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M11.25 2.25V4.8C11.25 5.22004 11.25 5.43006 11.3317 5.59049C11.4037 5.73161 11.5184 5.84635 11.6595 5.91825C11.8199 6 12.03 6 12.45 6H15M7.5 6H4.5C3.67157 6 3 6.67157 3 7.5V14.25C3 15.0784 3.67157 15.75 4.5 15.75H9C9.82843 15.75 10.5 15.0784 10.5 14.25V12M12 2.25H9.9C9.05992 2.25 8.63988 2.25 8.31901 2.41349C8.03677 2.5573 7.8073 2.78677 7.66349 3.06901C7.5 3.38988 7.5 3.80992 7.5 4.65V9.6C7.5 10.4401 7.5 10.8601 7.66349 11.181C7.8073 11.4632 8.03677 11.6927 8.31901 11.8365C8.63988 12 9.05992 12 9.9 12H12.6C13.4401 12 13.8601 12 14.181 11.8365C14.4632 11.6927 14.6927 11.4632 14.8365 11.181C15 10.8601 15 10.4401 15 9.6V5.25L12 2.25Z",strokeLinejoin:"round",strokeWidth:"1.2"})}),Jj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M2.95314 5.997C4.05824 3.77605 6.35091 2.25 9 2.25C12.4718 2.25 15.3314 4.87105 15.708 8.24231M2.2912 9.74998C2.66427 13.125 5.52558 15.75 9 15.75C11.6496 15.75 13.9427 14.2234 15.0475 12.0017M2.25 3V6.375H5.625M15.75 15.375V12H12.375M8.625 6.75L7.5 9H10.5L9.375 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Qj=e=>(0,xn.jsxs)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,xn.jsx)("path",{d:"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M12.9046 3.06005C12.6988 3 12.4659 3 12 3C11.5341 3 11.3012 3 11.0954 3.06005C10.7942 3.14794 10.5281 3.32808 10.3346 3.57511C10.2024 3.74388 10.1159 3.96016 9.94291 4.39272C9.69419 5.01452 9.00393 5.33471 8.36857 5.123L7.79779 4.93281C7.3929 4.79785 7.19045 4.73036 6.99196 4.7188C6.70039 4.70181 6.4102 4.77032 6.15701 4.9159C5.98465 5.01501 5.83376 5.16591 5.53197 5.4677C5.21122 5.78845 5.05084 5.94882 4.94896 6.13189C4.79927 6.40084 4.73595 6.70934 4.76759 7.01551C4.78912 7.2239 4.87335 7.43449 5.04182 7.85566C5.30565 8.51523 5.05184 9.26878 4.44272 9.63433L4.16521 9.80087C3.74031 10.0558 3.52786 10.1833 3.37354 10.3588C3.23698 10.5141 3.13401 10.696 3.07109 10.893C3 11.1156 3 11.3658 3 11.8663C3 12.4589 3 12.7551 3.09462 13.0088C3.17823 13.2329 3.31422 13.4337 3.49124 13.5946C3.69158 13.7766 3.96395 13.8856 4.50866 14.1035C5.06534 14.3261 5.35196 14.9441 5.16236 15.5129L4.94721 16.1584C4.79819 16.6054 4.72367 16.829 4.7169 17.0486C4.70875 17.3127 4.77049 17.5742 4.89587 17.8067C5.00015 18.0002 5.16678 18.1668 5.5 18.5C5.83323 18.8332 5.99985 18.9998 6.19325 19.1041C6.4258 19.2295 6.68733 19.2913 6.9514 19.2831C7.17102 19.2763 7.39456 19.2018 7.84164 19.0528L8.36862 18.8771C9.00393 18.6654 9.6942 18.9855 9.94291 19.6073C10.1159 20.0398 10.2024 20.2561 10.3346 20.4249C10.5281 20.6719 10.7942 20.8521 11.0954 20.94C11.3012 21 11.5341 21 12 21C12.4659 21 12.6988 21 12.9046 20.94C13.2058 20.8521 13.4719 20.6719 13.6654 20.4249C13.7976 20.2561 13.8841 20.0398 14.0571 19.6073C14.3058 18.9855 14.9961 18.6654 15.6313 18.8773L16.1579 19.0529C16.605 19.2019 16.8286 19.2764 17.0482 19.2832C17.3123 19.2913 17.5738 19.2296 17.8063 19.1042C17.9997 18.9999 18.1664 18.8333 18.4996 18.5001C18.8328 18.1669 18.9994 18.0002 19.1037 17.8068C19.2291 17.5743 19.2908 17.3127 19.2827 17.0487C19.2759 16.8291 19.2014 16.6055 19.0524 16.1584L18.8374 15.5134C18.6477 14.9444 18.9344 14.3262 19.4913 14.1035C20.036 13.8856 20.3084 13.7766 20.5088 13.5946C20.6858 13.4337 20.8218 13.2329 20.9054 13.0088C21 12.7551 21 12.4589 21 11.8663C21 11.3658 21 11.1156 20.9289 10.893C20.866 10.696 20.763 10.5141 20.6265 10.3588C20.4721 10.1833 20.2597 10.0558 19.8348 9.80087L19.5569 9.63416C18.9478 9.26867 18.6939 8.51514 18.9578 7.85558C19.1262 7.43443 19.2105 7.22383 19.232 7.01543C19.2636 6.70926 19.2003 6.40077 19.0506 6.13181C18.9487 5.94875 18.7884 5.78837 18.4676 5.46762C18.1658 5.16584 18.0149 5.01494 17.8426 4.91583C17.5894 4.77024 17.2992 4.70174 17.0076 4.71872C16.8091 4.73029 16.6067 4.79777 16.2018 4.93273L15.6314 5.12287C14.9961 5.33464 14.3058 5.0145 14.0571 4.39272C13.8841 3.96016 13.7976 3.74388 13.6654 3.57511C13.4719 3.32808 13.2058 3.14794 12.9046 3.06005Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),eR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M18.3795 5.65166L14.1055 9.86303M9.89445 14.137L5.63994 18.3679M5.63408 5.63799L9.89445 9.86303M14.1056 14.137L18.364 18.364M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),tR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15 2.25H3M15 15.75H3M3.75 2.25C3.75 4.13267 4.65921 5.89944 6.1912 6.99371L11.8088 11.0063C13.3408 12.1006 14.25 13.8673 14.25 15.75M14.25 2.25C14.25 4.13267 13.3408 5.89944 11.8088 6.99371L6.1912 11.0063C4.65921 12.1006 3.75 13.8673 3.75 15.75",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),rR=e=>(0,xn.jsx)(yR,{css:{rotate:"180deg"},...e}),nR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none","data-testid":"key-icon",strokeWidth:"1.2",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9.24092 8.01389L3 14.25L4.5 15.75M5.25 12L6.75 13.5M15 5.625C15 7.48896 13.489 9 11.625 9C9.76104 9 8.25 7.48896 8.25 5.625C8.25 3.76104 9.76104 2.25 11.625 2.25C13.489 2.25 15 3.76104 15 5.625Z",strokeLinecap:"round",strokeLinejoin:"round"})});var iR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},oR=i.createContext&&i.createContext(iR),aR=function(){return aR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(0,xn.jsx)(qA,{as:dR,width:"18px",height:"18px","data-testid":"ledger-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e}),fR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9.16586 17.6508C8.9261 17.8747 8.74055 18.0245 8.55093 18.134C7.62273 18.6699 6.47914 18.6699 5.55093 18.134C5.20889 17.9365 4.88009 17.6077 4.22251 16.9501C3.56492 16.2925 3.23612 15.9637 3.03864 15.6217C2.50274 14.6935 2.50274 13.5499 3.03864 12.6217C3.23612 12.2797 3.56492 11.9509 4.2225 11.2933L7.05093 8.46484C7.70852 7.80725 8.03732 7.47846 8.37936 7.28098C9.30756 6.74508 10.4512 6.74508 11.3794 7.28098C11.7214 7.47846 12.0502 7.80725 12.7078 8.46484C13.3654 9.12243 13.6942 9.45123 13.8916 9.79327C14.4275 10.7215 14.4275 11.8651 13.8916 12.7933C13.7822 12.9829 13.6323 13.1684 13.4085 13.4082M10.5929 10.5926C10.369 10.8323 10.2192 11.0179 10.1097 11.2075C9.57381 12.1357 9.57381 13.2793 10.1097 14.2075C10.3072 14.5495 10.636 14.8783 11.2936 15.5359C11.9512 16.1935 12.28 16.5223 12.622 16.7198C13.5502 17.2557 14.6938 17.2557 15.622 16.7198C15.964 16.5223 16.2928 16.1935 16.9504 15.5359L19.7789 12.7075C20.4364 12.0499 20.7652 11.7211 20.9627 11.3791C21.4986 10.4509 21.4986 9.30726 20.9627 8.37906C20.7652 8.03701 20.4364 7.70822 19.7789 7.05063C19.1213 6.39304 18.7925 6.06425 18.4504 5.86677C17.5222 5.33087 16.3786 5.33087 15.4504 5.86677C15.2608 5.97625 15.0753 6.12608 14.8355 6.34992",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),pR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12 14.5V16.5M7 10.0288C7.47142 10 8.05259 10 8.8 10H15.2C15.9474 10 16.5286 10 17 10.0288M7 10.0288C6.41168 10.0647 5.99429 10.1455 5.63803 10.327C5.07354 10.6146 4.6146 11.0735 4.32698 11.638C4 12.2798 4 13.1198 4 14.8V16.2C4 17.8802 4 18.7202 4.32698 19.362C4.6146 19.9265 5.07354 20.3854 5.63803 20.673C6.27976 21 7.11984 21 8.8 21H15.2C16.8802 21 17.7202 21 18.362 20.673C18.9265 20.3854 19.3854 19.9265 19.673 19.362C20 18.7202 20 17.8802 20 16.2V14.8C20 13.1198 20 12.2798 19.673 11.638C19.3854 11.0735 18.9265 10.6146 18.362 10.327C18.0057 10.1455 17.5883 10.0647 17 10.0288M7 10.0288V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10.0288",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),mR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12.182 5.81859C13.9393 7.57595 13.9393 10.4252 12.182 12.1825M5.81802 12.1825C4.06066 10.4252 4.06066 7.57592 5.81802 5.81856M3.6967 14.3039C0.767767 11.3749 0.767767 6.6262 3.6967 3.69727M14.3033 3.6973C17.2322 6.62623 17.2322 11.375 14.3033 14.3039M10.5 9.00057C10.5 9.82899 9.82843 10.5006 9 10.5006C8.17157 10.5006 7.5 9.82899 7.5 9.00057C7.5 8.17214 8.17157 7.50057 9 7.50057C9.82843 7.50057 10.5 8.17214 10.5 9.00057Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),gR=({fishColor:e,...t})=>(0,xn.jsxs)(qA,{width:"38px",height:"38px",fill:"none",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,xn.jsx)("path",{d:"M34.9985 26.2751C34.6599 26.8629 34.2436 27.4106 33.7512 27.9032C32.2815 29.3727 30.3277 30.1819 28.2496 30.1819H24.8477V34.9996H26.8032H28.2497C30.0524 34.9996 31.7472 34.2976 33.022 33.0229C34.2967 31.7481 34.9986 30.0533 34.9985 28.2507V26.2751Z",fill:"black"}),(0,xn.jsx)("path",{d:"M34.9989 20.9441C34.6603 21.5318 34.2439 22.0796 33.7514 22.572C32.2819 24.0416 30.328 24.8509 28.2499 24.8509H18.9983C17.8104 24.8511 16.8477 25.814 16.8477 27.0019C16.8477 28.1898 17.8104 29.1528 18.9983 29.153H28.25C30.0526 29.153 31.7474 28.4511 33.0222 27.1763C34.2965 25.902 34.9986 24.2076 34.9989 22.4054V20.9441ZM18.9988 27.8361C18.5381 27.8361 18.1645 27.4626 18.1645 27.0018C18.1645 26.5412 18.5381 26.1675 18.9988 26.1675C19.4596 26.1675 19.8331 26.5412 19.8331 27.0018C19.8331 27.4626 19.4596 27.8361 18.9988 27.8361Z",fill:"black"}),(0,xn.jsx)("path",{d:"M35 9.74895C35 6.02751 31.9724 3 28.2509 3H9.74908C6.02761 3 3 6.02751 3 9.74895V28.2511C3 31.9725 6.02761 35 9.74899 35H23.8176V30.1824H18.9995C17.2418 30.1824 15.8171 28.7576 15.8171 27.0001C15.8171 25.2426 17.2418 23.8179 18.9995 23.8179H23.8176V18.9998H9.74899C6.5911 18.9998 4.03113 16.4402 4.03113 13.2824V9.74905C4.03113 6.59127 6.5911 4.03131 9.74899 4.03131H28.2508C31.4087 4.03131 33.9686 6.59127 33.9686 9.74905V13.2824C33.9686 16.4403 31.4089 19.0001 28.251 19.0001L24.8491 18.9998V23.8179H28.2511C30.0539 23.8179 31.7487 23.1159 33.0233 21.8411C34.2977 20.5668 34.9997 18.8725 35 17.0703V9.74895Z",fill:"black"}),(0,xn.jsx)("path",{d:"M28.251 4.03174C31.4088 4.03174 33.9687 6.59167 33.9687 9.74952V13.2828C33.9687 16.4406 31.4089 19.0005 28.2511 19.0005L9.74908 19.0003C6.59124 19.0003 4.03125 16.4406 4.03125 13.2829V9.74954C4.03125 6.59167 6.5912 4.03174 9.74908 4.03174H28.251Z",fill:"white"}),(0,xn.jsx)("path",{d:"M28.2511 6.73267C29.611 6.73267 30.7641 7.6364 31.1394 8.87525C31.1926 9.05118 31.0527 9.22558 30.869 9.21814C28.2867 9.11348 25.877 8.32896 23.8154 7.038C23.6751 6.95014 23.739 6.73267 23.9045 6.73267H28.2511Z",fill:e}),(0,xn.jsx)("path",{d:"M21.9973 7.02488C24.4283 8.9081 27.4326 10.0842 30.7 10.2428C31.0172 10.2581 31.2679 10.5166 31.2679 10.8342V12.8702C31.2674 12.9124 31.2661 13.0446 31.2638 13.1857C31.2603 13.4148 31.069 13.5949 30.8401 13.5876C25.3913 13.4117 20.5215 10.9067 17.1937 7.03888C17.0905 6.91878 17.175 6.73267 17.3334 6.73267H21.1443C21.4533 6.73267 21.753 6.83569 21.9973 7.02488Z",fill:e}),(0,xn.jsx)("path",{d:"M15.9653 7.17305C19.4649 11.5395 24.7681 14.4013 30.735 14.6156C30.8376 14.6193 30.9004 14.7309 30.8481 14.8191C30.3219 15.7056 29.3544 16.3012 28.2505 16.3012H23.1255C22.9317 16.3012 22.7392 16.2646 22.5603 16.1899C18.0848 14.3242 14.3146 11.0926 11.7745 7.01866C11.6968 6.89417 11.7878 6.73267 11.9345 6.73267H15.0503C15.4065 6.73267 15.7426 6.89513 15.9653 7.17305Z",fill:e}),(0,xn.jsx)("path",{d:"M9.75058 6.73267H10.1145C10.294 6.73267 10.4589 6.82889 10.5496 6.98379C12.776 10.7844 16.0081 13.9276 19.8791 16.0439C20.0039 16.1122 19.9556 16.3012 19.8134 16.3012H15.1194C14.5651 16.3012 14.0261 16.1087 13.6043 15.7491C11.1433 13.6507 9.05479 11.1267 7.45371 8.29236C7.34983 8.10846 7.3762 7.87733 7.51835 7.72112C8.07107 7.11383 8.86658 6.73267 9.75058 6.73267Z",fill:e}),(0,xn.jsx)("path",{d:"M12.3071 15.9829C12.4313 16.0951 12.3514 16.3013 12.184 16.3013H9.71437C8.06547 16.2829 6.73047 14.9363 6.73047 13.2836V9.7504L6.73065 9.54576C6.73077 9.42446 6.89048 9.37962 6.95305 9.48354C8.41152 11.9061 10.2194 14.096 12.3071 15.9829Z",fill:e})]}),vR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12 8H12.01M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),yR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],"data-testid":"outgoing-arrow-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M5.25 12.75L12.75 5.25M12.75 5.25H6M12.75 5.25V12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),bR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M11.3348 4.66483L13.2208 6.55082M3 15L3.03164 14.7785C3.1436 13.9948 3.19958 13.6029 3.32692 13.2371C3.43992 12.9124 3.59428 12.6037 3.78619 12.3185C4.00247 11.9971 4.28237 11.7172 4.84218 11.1574L12.609 3.3906C13.1298 2.8698 13.9742 2.8698 14.495 3.3906C15.0158 3.9114 15.0158 4.75578 14.495 5.27658L6.58565 13.1859C6.07779 13.6938 5.82386 13.9477 5.53462 14.1497C5.27789 14.3289 5.001 14.4774 4.70965 14.5921C4.3814 14.7213 4.02937 14.7923 3.32535 14.9344L3 15Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),wR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[300],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4 12H20M12 4V20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),xR=e=>(0,xn.jsx)(qA,{width:"18",height:"18",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3 9C3 12.3137 5.68629 15 9 15C12.3137 15 15 12.3137 15 9C15 5.68629 12.3137 3 9 3C7.20796 3 5.59942 3.78563 4.5 5.03126C4.43696 5.10268 4.3756 5.17562 4.31597 5.25M9 6V9L10.875 10.875M4.31543 3.00293V5.25293H6.56543",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),_R=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],"data-testid":"rotate-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12.5 18.5C17.1944 18.5 21 14.6944 21 10C21 5.30558 17.1944 1.5 12.5 1.5C7.80558 1.5 4 5.30558 4 10C4 11.5433 4.41128 12.9905 5.13022 14.238M1.5 13L5.13022 14.238M6.82531 10.3832L5.47107 14.3542L5.13022 14.238",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),SR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M16 3L8 21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kR=e=>(0,xn.jsx)(qA,{width:"32px",height:"32px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M16 7.33333C16 9.17428 14.5076 10.6667 12.6667 10.6667C10.8257 10.6667 9.33333 9.17428 9.33333 7.33333M16 7.33333C16 5.49238 14.5076 4 12.6667 4C10.8257 4 9.33333 5.49238 9.33333 7.33333M16 7.33333H28M9.33333 7.33333H4M25.3333 16C25.3333 17.8409 23.8409 19.3333 22 19.3333C20.1591 19.3333 18.6667 17.8409 18.6667 16M25.3333 16C25.3333 14.1591 23.8409 12.6667 22 12.6667C20.1591 12.6667 18.6667 14.1591 18.6667 16M25.3333 16H28M18.6667 16H4M13.3333 24.6667C13.3333 26.5076 11.8409 28 10 28C8.15905 28 6.66667 26.5076 6.66667 24.6667M13.3333 24.6667C13.3333 22.8257 11.8409 21.3333 10 21.3333C8.15905 21.3333 6.66667 22.8257 6.66667 24.6667M13.3333 24.6667H28M6.66667 24.6667H4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),ER=e=>(0,xn.jsx)(qA,{width:"28px",height:"28px",fill:"none",stroke:"transparent","data-testid":"social-icon",viewBox:"0 0 28 28",...e,children:(0,xn.jsx)("g",{id:"Group 40429",children:(0,xn.jsx)("g",{id:"Group 40428",children:(0,xn.jsxs)("g",{id:"Group 39769",children:[(0,xn.jsx)("path",{d:"M27.4398 14.3177C27.4398 13.325 27.3507 12.3705 27.1852 11.4541H14V16.8695H21.5344C21.2099 18.6194 20.2235 20.1021 18.7408 21.0949V24.6075H23.2653C25.9125 22.1703 27.4398 18.5813 27.4398 14.3177Z",fill:"#4285F4",clipRule:"evenodd",fillRule:"evenodd",id:"Shape"}),(0,xn.jsx)("path",{d:"M14.0009 28C17.7809 28 20.9499 26.7464 23.2663 24.6082L18.7418 21.0955C17.4882 21.9355 15.8846 22.4319 14.0009 22.4319C10.3546 22.4319 7.26832 19.9692 6.16743 16.6602H1.49023V20.2874C3.79383 24.8628 8.5283 28 14.0009 28Z",fill:"#34A853",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_2"}),(0,xn.jsx)("path",{d:"M6.16627 16.66C5.88627 15.82 5.72718 14.9228 5.72718 14.0001C5.72718 13.0774 5.88627 12.1801 6.16627 11.3401V7.71289H1.48907C0.5409 9.60286 0 11.741 0 14.0001C0 16.2591 0.5409 18.3973 1.48907 20.2872L6.16627 16.66Z",fill:"#FBBC05",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_3"}),(0,xn.jsx)("path",{d:"M14.0009 5.56809C16.0564 5.56809 17.9018 6.27445 19.3527 7.6617L23.3681 3.64631C20.9436 1.38725 17.7745 0 14.0009 0C8.5283 0 3.79383 3.13722 1.49023 7.7126L6.16743 11.3398C7.26832 8.03078 10.3546 5.56809 14.0009 5.56809Z",fill:"#EA4335",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_4"})]})})})}),AR=e=>(0,xn.jsxs)(qA,{width:"30px",height:"30px",fill:"none","data-testid":"tez-icon",viewBox:"0 0 30 30",...e,children:[(0,xn.jsx)("rect",{width:"30",height:"30",fill:"white",rx:"4"}),(0,xn.jsx)("rect",{width:"30",height:"30",fill:"url(#pattern0)",rx:"4"}),(0,xn.jsxs)("defs",{children:[(0,xn.jsx)("pattern",{width:"1",height:"1",id:"pattern0",patternContentUnits:"objectBoundingBox",children:(0,xn.jsx)("use",{transform:"translate(0.1753 0.101557) scale(0.00532296)",xlinkHref:"#image0_2912_38337"})}),(0,xn.jsx)("image",{width:"122",height:"150",id:"image0_2912_38337",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAACWCAYAAAAR35wdAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImV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mQvjrUKSOiMpYuukA4Ocx534fTjxYpMtLlr4kgfaU7Pp5g+vhHT+AIuqDEx7D4tzXA+AW/DW1N7K1xUmiMNeSBtpTT6w1Sw3H6cCM6vF3lhce1x2gbsF+sHbxMwkYltWdpDGixoAA2m+JCdP4wdhwNxaAnwBjn4678mS9n2+hZzSsVsGYTwPclbaA65d5wAHtV048i58ArNyB80UTdCReD0Wr/QiAcggUPwqZoN/6HfG2gmYD/jaCbgM8dSMyj3jfANqP8P4yqo230aj6J8KsvgY80IWsf0kd36M8QRXo5lSk8Ic+bQV60jtM/ARRobTdd2cBZwFnAWcBZwFnAWeB/wO9yrSXP8OnPQAAAABJRU5ErkJggg=="})]})]});var PR=v((function(e,t){const{htmlWidth:r,htmlHeight:n,alt:i,...o}=e;return(0,xn.jsx)("img",{width:r,height:n,ref:t,alt:i,...o})}));PR.displayName="NativeImage";function OR(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var TR=v((function(e,t){const{fallbackSrc:r,fallback:n,src:o,srcSet:a,align:s,fit:c,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:f,...p}=e,m=null!=l||u||!(void 0!==r||void 0!==n),g=function(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:s,sizes:c,ignoreFallback:l}=e,[u,d]=(0,i.useState)("pending");(0,i.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const h=(0,i.useRef)(),f=(0,i.useCallback)((()=>{if(!r)return;p();const e=new Image;e.src=r,s&&(e.crossOrigin=s),n&&(e.srcset=n),c&&(e.sizes=c),t&&(e.loading=t),e.onload=e=>{p(),d("loaded"),null==o||o(e)},e.onerror=e=>{p(),d("failed"),null==a||a(e)},h.current=e}),[r,s,n,c,o,a,t]),p=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return Oh((()=>{if(!l)return"loading"===u&&f(),()=>{p()}}),[u,f,l]),l?"loaded":u}({...e,crossOrigin:d,ignoreFallback:m}),v=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,h),y={ref:t,objectFit:c,objectPosition:s,...m?p:OR(p,["onError","onLoad"])};return v?n||(0,xn.jsx)(wn.img,{as:PR,className:"chakra-image__placeholder",src:r,...y}):(0,xn.jsx)(wn.img,{as:PR,src:o,srcSet:a,crossOrigin:d,loading:l,referrerPolicy:f,className:"chakra-image",...y})}));TR.displayName="Image";const CR=({contract:e,...t})=>{const r=`https://services.tzkt.io/v1/avatars/${e}`;return(0,xn.jsx)(TR,{fallbackSrc:"/static/media/coin-front.svg",src:r,...t})},jR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3 4.5H15M12 4.5L11.797 3.89105C11.6003 3.30094 11.502 3.00588 11.3195 2.78774C11.1584 2.5951 10.9516 2.44599 10.7179 2.35408C10.4532 2.25 10.1422 2.25 9.52018 2.25H8.47982C7.85779 2.25 7.54677 2.25 7.28213 2.35408C7.04844 2.44599 6.84156 2.5951 6.68047 2.78774C6.49804 3.00588 6.39969 3.30094 6.20298 3.89105L6 4.5M13.5 4.5V12.15C13.5 13.4101 13.5 14.0402 13.2548 14.5215C13.039 14.9448 12.6948 15.289 12.2715 15.5048C11.7902 15.75 11.1601 15.75 9.9 15.75H8.1C6.83988 15.75 6.20982 15.75 5.72852 15.5048C5.30516 15.289 4.96095 14.9448 4.74524 14.5215C4.5 14.0402 4.5 13.4101 4.5 12.15V4.5M10.5 7.5V12.75M7.5 7.5V12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),RR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none","data-testid":"unknown-contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.16602 15.5625C3.16602 12.7435 5.45123 10.4583 8.27018 10.4583C8.51775 10.4583 8.7612 10.476 8.99935 10.51M13.3722 13.375C14.1014 12.6458 14.8305 12.3575 14.8305 11.5521C14.8305 10.7467 14.1776 10.0938 13.3722 10.0938C12.6927 10.0938 12.1217 10.5585 11.9598 11.1875M13.3722 15.5625H13.3795M11.1868 5.35417C11.1868 6.965 9.88101 8.27083 8.27018 8.27083C6.65935 8.27083 5.35352 6.965 5.35352 5.35417C5.35352 3.74334 6.65935 2.4375 8.27018 2.4375C9.88101 2.4375 11.1868 3.74334 11.1868 5.35417Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),IR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M20.5 11L18.7396 7.60473C18.253 6.65855 18.0097 6.18545 17.6514 5.84012C17.3346 5.5347 16.9544 5.30272 16.5379 5.16065C16.067 5 15.535 5 14.471 5H9.52901C8.46503 5 7.93304 5 7.46209 5.16065C7.04558 5.30272 6.66542 5.5347 6.34859 5.84012C5.99034 6.18545 5.74703 6.65855 5.26042 7.60473L3.5 11M20.5 11C20.6981 11.3853 20.7658 11.5446 20.8357 11.747C20.8977 11.9267 20.9426 12.1119 20.9696 12.3002C21 12.5121 21 12.7287 21 13.162V14.2C21 15.8802 21 16.7202 20.673 17.362C20.3854 17.9265 19.9265 18.3854 19.362 18.673C18.7202 19 17.8802 19 16.2 19H7.8C6.11984 19 5.27976 19 4.63803 18.673C4.07354 18.3854 3.6146 17.9265 3.32698 17.362C3 16.7202 3 15.8802 3 14.2V13.162C3 12.7287 3 12.5121 3.03041 12.3002C3.05741 12.1119 3.10225 11.9267 3.16432 11.747C3.23421 11.5446 3.30186 11.3853 3.5 11M20.5 11H3.5M15 15H17",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),MR=()=>(0,xn.jsxs)(_n,{position:"relative",alignItems:"center",justifyContent:"center","data-testid":"verified-icon",children:[(0,xn.jsx)(LR,{}),(0,xn.jsx)(_n,{position:"absolute",alignItems:"center",justifyContent:"center",children:(0,xn.jsx)(NR,{})})]}),LR=e=>(0,xn.jsx)(qA,{width:"14px",height:"14px",fill:LP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M6.51019 0.479749C6.78233 0.213196 7.21767 0.213195 7.48981 0.479749L8.86158 1.82333C8.99061 1.94972 9.16351 2.02134 9.34412 2.02321L11.2642 2.04314C11.6451 2.04709 11.9529 2.35492 11.9569 2.73584L11.9768 4.65588C11.9787 4.83649 12.0503 5.00939 12.1767 5.13842L13.5203 6.51019C13.7868 6.78233 13.7868 7.21767 13.5203 7.48981L12.1767 8.86158C12.0503 8.99061 11.9787 9.16351 11.9768 9.34412L11.9569 11.2642C11.9529 11.6451 11.6451 11.9529 11.2642 11.9569L9.34412 11.9768C9.16351 11.9787 8.99061 12.0503 8.86158 12.1767L7.48981 13.5203C7.21767 13.7868 6.78233 13.7868 6.51019 13.5203L5.13842 12.1767C5.00939 12.0503 4.83649 11.9787 4.65588 11.9768L2.73584 11.9569C2.35492 11.9529 2.04709 11.6451 2.04314 11.2642L2.02321 9.34412C2.02134 9.16351 1.94972 8.99061 1.82333 8.86158L0.479749 7.48981C0.213196 7.21767 0.213195 6.78233 0.479749 6.51019L1.82333 5.13842C1.94972 5.00939 2.02134 4.83649 2.02321 4.65588L2.04314 2.73584C2.04709 2.35492 2.35492 2.04709 2.73584 2.04314L4.65588 2.02321C4.83649 2.02134 5.00939 1.94972 5.13842 1.82333L6.51019 0.479749Z",strokeLinecap:"square",strokeLinejoin:"round"})}),NR=e=>(0,xn.jsx)(qA,{width:"7px",height:"5px",fill:"none",stroke:"white",viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.66699 2.19314L3.0281 3.55425L5.75033 0.832031",strokeLinecap:"square",strokeLinejoin:"round"})}),DR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M10 16V14.0003M10 14.0003V12M10 14.0003L12 14.0005M10 14.0003L8 14M21 12V11.2C21 10.0799 21 9.51984 20.782 9.09202C20.5903 8.7157 20.2843 8.40973 19.908 8.21799C19.4802 8 18.9201 8 17.8 8H3M21 12V16M21 12H19C17.8954 12 17 12.8954 17 14C17 15.1046 17.8954 16 19 16H21M21 16V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8V8M18 8V7.2C18 6.0799 18 5.51984 17.782 5.09202C17.5903 4.71569 17.2843 4.40973 16.908 4.21799C16.4802 4 15.9201 4 14.8 4H6.2C5.07989 4 4.51984 4 4.09202 4.21799C3.71569 4.40973 3.40973 4.71569 3.21799 5.09202C3 5.51984 3 6.0799 3 7.2V8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),zR=e=>(0,xn.jsx)(qA,{width:"36px",height:"32px",fill:"none",stroke:LP.orangeL,viewBox:"0 0 36 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M18.0004 24.3332H18.0171M18.0004 12.6665V19.3332M8.68719 30.9999H27.3136C30.2831 30.9999 31.7678 30.9999 32.6386 30.3754C33.3985 29.8305 33.8946 28.9915 34.0058 28.0631C34.1333 26.9991 33.4178 25.6982 31.9868 23.0963L22.6736 6.16318C21.1499 3.39292 20.3881 2.00779 19.3814 1.54954C18.5041 1.15015 17.4968 1.15015 16.6194 1.54954C15.6127 2.00779 14.8509 3.39292 13.3273 6.16317L4.01404 23.0963C2.58301 25.6982 1.8675 26.9991 1.99498 28.0631C2.10622 28.9915 2.6023 29.8305 3.36219 30.3754C4.23304 30.9999 5.71776 30.9999 8.68719 30.9999Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),BR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5","data-testid":"xmark-icon-path",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),FR=Ei,UR=gi,$R=()=>{const{html:e,seen:t}=UR((e=>e.announcement)),r=FR();return(0,i.useEffect)((()=>{const e=()=>{xj.get("https://storage.googleapis.com/umami-artifacts/announcement.html").then((e=>{r(Qa.actions.setCurrent(e.data))})).catch((e=>{}))};e();const t=setInterval(e,36e5);return()=>clearInterval(t)}),[r]),t||!e?null:(0,xn.jsx)(JA,{className:"announcement-banner",color:"black",background:LP.orangeL,"data-testid":"announcement",paddingX:"30px",children:(0,xn.jsxs)(_n,{justifyContent:"space-between",width:"100%",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(mR,{marginRight:"4px"}),(0,xn.jsx)(tP,{fontSize:"14px",dangerouslySetInnerHTML:{__html:e}})]}),(0,xn.jsx)(nP,{"data-testid":"close",onClick:()=>r(Qa.actions.setSeen())})]})})};function HR(e,t){const r=(0,i.useId)();return(0,i.useMemo)((()=>e||[t,r].filter(Boolean).join("-")),[e,t,r])}function VR(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qR(e){var t;return VR(e)&&null!=(t=e.ownerDocument)?t:document}function KR(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var WR=KR()?i.useLayoutEffect:i.useEffect;function GR(e,t=[]){const r=(0,i.useRef)(e);return WR((()=>{r.current=e})),(0,i.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function YR(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=GR(r),s=GR(t),[c,l]=(0,i.useState)(e.defaultIsOpen||!1),[u,d]=function(e,t){const r=void 0!==e;return[r,r&&"undefined"!==typeof e?e:t]}(n,c),h=HR(o,"disclosure"),f=(0,i.useCallback)((()=>{u||l(!1),null==s||s()}),[u,s]),p=(0,i.useCallback)((()=>{u||l(!0),null==a||a()}),[u,a]),m=(0,i.useCallback)((()=>{(d?f:p)()}),[d,p,f]);return{isOpen:!!d,onOpen:p,onClose:f,onToggle:m,isControlled:u,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":h,onClick:St(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:h})}}var ZR=Object.defineProperty,XR=(e,t,r)=>(((e,t,r)=>{t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),JR=new class{constructor(){XR(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function QR(e,t){const[r,n]=(0,i.useState)(0);return(0,i.useEffect)((()=>{const r=e.current;if(r){if(t){const e=JR.add(r);n(e)}return()=>{JR.remove(r),n(0)}}}),[t,e]),r}var eI=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tI=new WeakMap,rI=new WeakMap,nI={},iI=0,oI=function(e){return e&&(e.host||oI(e.parentNode))},aI=function(e,t,r,n){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=oI(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);nI[r]||(nI[r]=new WeakMap);var o=nI[r],a=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(n),i=null!==t&&"false"!==t,c=(tI.get(e)||0)+1,l=(o.get(e)||0)+1;tI.set(e,c),o.set(e,l),a.push(e),1===c&&i&&rI.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}}))};return u(t),s.clear(),iI++,function(){a.forEach((function(e){var t=tI.get(e)-1,i=o.get(e)-1;tI.set(e,t),o.set(e,i),t||(rI.has(e)||e.removeAttribute(n),rI.delete(e)),i||e.removeAttribute(r)})),--iI||(tI=new WeakMap,tI=new WeakMap,rI=new WeakMap,nI={})}},sI=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||eI(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),aI(n,i,r,"aria-hidden")):function(){return null}};function cI(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:c,onEsc:l}=e,u=(0,i.useRef)(null),d=(0,i.useRef)(null),[h,f,p]=function(e,...t){const r=(0,i.useId)(),n=e||r;return(0,i.useMemo)((()=>t.map((e=>`${e}-${n}`))),[n,t])}(n,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){const r=e.current;(0,i.useEffect)((()=>{if(e.current&&t)return sI(e.current)}),[t,e,r])}(u,t&&s);const m=QR(u,t),g=(0,i.useRef)(null),v=(0,i.useCallback)((e=>{g.current=e.target}),[]),y=(0,i.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==r||r()),null==l||l())}),[a,r,l]),[b,w]=(0,i.useState)(!1),[x,_]=(0,i.useState)(!1),S=(0,i.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:Kn(t,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?f:void 0,"aria-describedby":x?p:void 0,onClick:E(e.onClick,(e=>e.stopPropagation()))})),[p,x,h,f,b]),k=(0,i.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&JR.isTopModal(u.current)&&(o&&(null==r||r()),null==c||c())}),[r,o,c]),A=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(t,d),onClick:E(e.onClick,k),onKeyDown:E(e.onKeyDown,y),onMouseDown:E(e.onMouseDown,v)})),[y,v,k]);return{isOpen:t,onClose:r,headerId:f,bodyId:p,setBodyMounted:_,setHeaderMounted:w,dialogRef:u,overlayRef:d,getDialogProps:S,getDialogContainerProps:A,index:m}}var[lI,uI]=Nn({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[dI,hI]=Nn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),fI=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f,onCloseComplete:p}=t,m=Mn("Modal",t),g={...cI(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f};return(0,xn.jsx)(dI,{value:g,children:(0,xn.jsx)(lI,{value:m,children:(0,xn.jsx)(pP,{onExitComplete:p,children:g.isOpen&&(0,xn.jsx)(xP,{...r,children:n})})})})};fI.displayName="Modal";var pI={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},mI={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},gI={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},vI={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},yI={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function bI(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return gI;case"left":return mI;case"bottom":return yI;case"top":return vI}}var wI={enter:{duration:.2,ease:pI.easeOut},exit:{duration:.1,ease:pI.easeIn}},xI=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.enter}),_I=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.exit}),SI={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:xI(wI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:_I(wI.exit,r),transitionEnd:null==t?void 0:t.exit}}},kI={initial:"exit",animate:"enter",exit:"exit",variants:SI},EI=(0,i.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,className:i,transition:o,transitionEnd:a,delay:s,...c}=e,l=n||r?"enter":"exit",u=!r||n&&r,d={transition:o,transitionEnd:a,delay:s};return(0,xn.jsx)(pP,{custom:d,children:u&&(0,xn.jsx)(FA.div,{ref:t,className:y("chakra-fade",i),custom:d,...kI,animate:l,...c})})}));EI.displayName="Fade";var AI=wn(FA.div),PI=v(((e,t)=>{const{className:r,transition:n,motionProps:i,...o}=e,a=y("chakra-modal__overlay",r),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...uI().overlay},{motionPreset:c}=hI(),l=i||("none"===c?{}:kI);return(0,xn.jsx)(AI,{...l,__css:s,ref:t,className:a,...o})}));PI.displayName="ModalOverlay";var OI=function(e,t){return OI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},OI(e,t)};function TI(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}OI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var CI=function(){return CI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function LI(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function NI(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof DI?Promise.resolve(e.value.v).then(c,l):u(o[0][2],e)}(i[e](t))}catch(Mde){u(o[0][3],Mde)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function BI(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=MI(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}Object.create;"function"===typeof SuppressedError&&SuppressedError;var FI="right-scroll-bar-position",UI="width-before-scroll-bar";function $I(e,t){return function(e,t){var r=(0,i.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function HI(e){return e}function VI(e,t){void 0===t&&(t=HI);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return i}function qI(e,t){return void 0===t&&(t=HI),VI(e,t)}function KI(e){void 0===e&&(e={});var t=VI(null);return t.options=CI({async:!0,ssr:!1},e),t}var WI=KI(),GI=function(){},YI=i.forwardRef((function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:GI,onWheelCapture:GI,onTouchMoveCapture:GI}),o=n[0],a=n[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=jI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,_=$I([r,t]),S=CI(CI({},w),o);return i.createElement(i.Fragment,null,d&&i.createElement(x,{sideCar:WI,removeScrollBar:u,shards:h,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:b}),s?i.cloneElement(i.Children.only(c),CI(CI({},S),{ref:_})):i.createElement(y,CI({},S,{className:l,ref:_}),c))}));YI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},YI.classNames={fullWidth:UI,zeroRight:FI};var ZI,XI=function(e){var t=e.sideCar,r=jI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,CI({},r))};XI.isSideCarExport=!0;function JI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZI||r.nc;return t&&e.setAttribute("nonce",t),e}var QI=function(){var e=0,t=null;return{add:function(r){var n;0==e&&(t=JI())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),n=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(n)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eM=function(){var e=function(){var e=QI();return function(t,r){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},tM={left:0,top:0,right:0,gap:0},rM=function(e){return parseInt(e||"",10)||0},nM=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return tM;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[rM(r),rM(n),rM(i)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},iM=eM(),oM=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(FI," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(UI," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(FI," .").concat(FI," {\n right: 0 ").concat(n,";\n }\n \n .").concat(UI," .").concat(UI," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},aM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n,a=i.useMemo((function(){return nM(o)}),[o]);return i.createElement(iM,{styles:oM(a,!t,o,r?"":"!important")})},sM=!1;if("undefined"!==typeof window)try{var cM=Object.defineProperty({},"passive",{get:function(){return sM=!0,!0}});window.addEventListener("test",cM,cM),window.removeEventListener("test",cM,cM)}catch(Lde){sM=!1}var lM=!!sM&&{passive:!1},uM=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},dM=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),hM(e,n)){var i=fM(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hM=function(e,t){return"v"===e?function(e){return uM(e,"overflowY")}(t):function(e){return uM(e,"overflowX")}(t)},fM=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},pM=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mM=function(e){return[e.deltaX,e.deltaY]},gM=function(e){return e&&"current"in e?e.current:e},vM=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yM=0,bM=[];function wM(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xM=(_M=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(yM++)[0],a=i.useState(eM)[0],s=i.useRef(e);i.useEffect((function(){s.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=NI([e.lockRef.current],(e.shards||[]).map(gM),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=pM(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=dM(d,u);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=dM(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=i),!i)return!0;var f=n.current||i;return function(e,t,r,n,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,c=t.contains(s),l=!1,u=a>0,d=0,h=0;do{var f=fM(e,s),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&hM(e,s)&&(d+=m,h+=p),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&a>d)||!u&&(i&&Math.abs(h)<1||!i&&-a>h))&&(l=!0),l}(f,t,e,"h"===f?c:l,!0)}),[]),l=i.useCallback((function(e){var r=e;if(bM.length&&bM[bM.length-1]===a){var n="deltaY"in r?mM(r):pM(r),i=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(i&&i.should)r.cancelable&&r.preventDefault();else if(!i){var o=(s.current.shards||[]).map(gM).filter(Boolean).filter((function(e){return e.contains(r.target)}));(o.length>0?c(r,o[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),u=i.useCallback((function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:wM(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=i.useCallback((function(e){r.current=pM(e),n.current=void 0}),[]),h=i.useCallback((function(t){u(t.type,mM(t),t.target,c(t,e.lockRef.current))}),[]),f=i.useCallback((function(t){u(t.type,pM(t),t.target,c(t,e.lockRef.current))}),[]);i.useEffect((function(){return bM.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,lM),document.addEventListener("touchmove",l,lM),document.addEventListener("touchstart",d,lM),function(){bM=bM.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,lM),document.removeEventListener("touchmove",l,lM),document.removeEventListener("touchstart",d,lM)}}),[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:vM(o)}):null,p?i.createElement(aM,{gapMode:e.gapMode}):null)},WI.useMedium(_M),XI);var _M,SM=i.forwardRef((function(e,t){return i.createElement(YI,CI({},e,{ref:t,sideCar:xM}))}));SM.classNames=YI.classNames;const kM=SM,EM=(0,i.createContext)({openWith:e=>Promise.resolve(),onClose:()=>{},isOpen:!1}),AM=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),[n,o]=(0,i.useState)(null),[a,s]=(0,i.useState)("md");return{isOpen:e,onClose:t,openWith:async(e,t="md")=>{s(t),o(e),r()},content:(0,xn.jsxs)(fI,{autoFocus:!1,blockScrollOnMount:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:e,motionPreset:localStorage.getItem("chakra-modal-motion-preset")||void 0,onClose:t,size:a,children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(kM,{enabled:e,children:n})]})}};function PM(e){return Object.keys(e)}var OM;!function(e){e.PENDING="pending",e.RESOLVED="resolved",e.REJECTED="rejected"}(OM||(OM={}));const TM=()=>{throw new Error("ExposedPromise not initialized yet.")};class CM{_promise;_resolve=TM;_reject=TM;_status=OM.PENDING;_promiseResult;_promiseError;get promise(){return this._promise}get resolve(){return this._resolve}get reject(){return this._reject}get status(){return this._status}get promiseResult(){return this._promiseResult}get promiseError(){return this._promiseError}constructor(){this._promise=new Promise(((e,t)=>{this._resolve=t=>{this.isSettled()||(this._promiseResult=t,e(t),this._status=OM.RESOLVED)},this._reject=e=>{this.isSettled()||(this._promiseError=e,t(e),this._status=OM.REJECTED)}}))}static resolve(e){const t=new CM;return t.resolve(e),t}static reject(e){const t=new CM;return t.reject(e),t}isPending(){return this.status===OM.PENDING}isResolved(){return this.status===OM.RESOLVED}isRejected(){return this.status===OM.REJECTED}isSettled(){return this.isResolved()||this.isRejected()}}var jM=r(6436),RM=r(6432),IM=r(8461),MM=r(3632),LM=r(8164),NM=r(4240).Buffer;function DM(e){return NM.from(e).toString("hex")}async function zM(e){return DM("string"===typeof e?(0,is.hash)((0,MM.OW)(e),32):(0,is.hash)(e,32))}async function BM(e){return(0,ns.Eh)((0,is.hash)((0,MM.OW)(e),32))}async function FM(e,t){const r=NM.from((0,IM.randomBytes)(24));return DM(NM.concat([r,NM.from((0,RM.secretBox)(t,r,NM.from(e,"utf8")))]))}async function UM(e,t){const r=e.slice(0,24),n=e.slice(24),i=(0,RM.openSecretBox)(t,r,n);if(!i)throw new Error("Decryption failed");return NM.from(i).toString("utf8")}function $M(e,t){return`@${e}:${t}`}var HM=r(4240).Buffer;async function VM(){const e=(0,IM.randomBytes)(16);return[e.slice(0,4),e.slice(4,6),e.slice(6,8),e.slice(8,10),e.slice(10,16)].map((function(e){return HM.from(e).toString("hex")})).join("-")}var qM,KM,WM,GM,YM,ZM,XM,JM,QM,eL;!function(e){e.BlockchainRequest="blockchain_request",e.PermissionRequest="permission_request",e.SignPayloadRequest="sign_payload_request",e.OperationRequest="operation_request",e.BroadcastRequest="broadcast_request",e.ChangeAccountRequest="change_account_request",e.BlockchainResponse="blockchain_response",e.PermissionResponse="permission_response",e.SignPayloadResponse="sign_payload_response",e.ProofOfEventChallengeRequest="proof_of_event_challenge_request",e.ProofOfEventChallengeResponse="proof_of_event_challenge_response",e.ProofOfEventChallengeRecorded="proof_of_event_challenge_recorded",e.OperationResponse="operation_response",e.BroadcastResponse="broadcast_response",e.Acknowledge="acknowledge",e.Disconnect="disconnect",e.Error="error"}(qM||(qM={})),function(e){e.SIGN="sign",e.OPERATION_REQUEST="operation_request",e.ENCRYPT="encrypt",e.NOTIFICATION="notification",e.THRESHOLD="threshold"}(KM||(KM={})),function(e){e.MAINNET="mainnet",e.GHOSTNET="ghostnet",e.WEEKLYNET="weeklynet",e.DAILYNET="dailynet",e.DELPHINET="delphinet",e.EDONET="edonet",e.FLORENCENET="florencenet",e.GRANADANET="granadanet",e.HANGZHOUNET="hangzhounet",e.ITHACANET="ithacanet",e.JAKARTANET="jakartanet",e.KATHMANDUNET="kathmandunet",e.LIMANET="limanet",e.MUMBAINET="mumbainet",e.NAIROBINET="nairobinet",e.OXFORDNET="oxfordnet",e.CUSTOM="custom"}(WM||(WM={})),function(e){e.ENDORSEMENT="endorsement",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.ACTIVATE_ACCOUNT="activate_account",e.PROPOSALS="proposals",e.BALLOT="ballot",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ORIGINATION="origination",e.DELEGATION="delegation"}(GM||(GM={})),function(e){e.WEBSITE="website",e.EXTENSION="extension",e.P2P="p2p",e.WALLETCONNECT="walletconnect"}(YM||(YM={})),function(e){e.BACKGROUND="toBackground",e.PAGE="toPage",e.EXTENSION="toExtension"}(ZM||(ZM={})),function(e){e.BROADCAST_ERROR="BROADCAST_ERROR",e.NETWORK_NOT_SUPPORTED="NETWORK_NOT_SUPPORTED",e.NO_ADDRESS_ERROR="NO_ADDRESS_ERROR",e.NO_PRIVATE_KEY_FOUND_ERROR="NO_PRIVATE_KEY_FOUND_ERROR",e.NOT_GRANTED_ERROR="NOT_GRANTED_ERROR",e.PARAMETERS_INVALID_ERROR="PARAMETERS_INVALID_ERROR",e.TOO_MANY_OPERATIONS="TOO_MANY_OPERATIONS",e.TRANSACTION_INVALID_ERROR="TRANSACTION_INVALID_ERROR",e.SIGNATURE_TYPE_NOT_SUPPORTED="SIGNATURE_TYPE_NOT_SUPPORTED",e.ABORTED_ERROR="ABORTED_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(XM||(XM={})),function(e){e.NOT_CONNECTED="NOT_CONNECTED",e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED"}(JM||(JM={})),function(e){e.CHROME_MESSAGE="chrome_message",e.WALLETCONNECT="walletconnect",e.POST_MESSAGE="post_message",e.LEDGER="ledger",e.P2P="p2p"}(QM||(QM={}));class tL{static isSupported(){return Promise.resolve(!1)}}!function(e){e.TRANSPORT_P2P_PEERS_DAPP="beacon:communication-peers-dapp",e.TRANSPORT_P2P_PEERS_WALLET="beacon:communication-peers-wallet",e.TRANSPORT_POSTMESSAGE_PEERS_DAPP="beacon:postmessage-peers-dapp",e.TRANSPORT_POSTMESSAGE_PEERS_WALLET="beacon:postmessage-peers-wallet",e.TRANSPORT_WALLETCONNECT_PEERS_DAPP="beacon:walletconnect-peers-dapp",e.LAST_SELECTED_WALLET="beacon:last-selected-wallet",e.ACCOUNTS="beacon:accounts",e.ACTIVE_ACCOUNT="beacon:active-account",e.PUSH_TOKENS="beacon:push-tokens",e.BEACON_SDK_SECRET_SEED="beacon:sdk-secret-seed",e.APP_METADATA_LIST="beacon:app-metadata-list",e.PERMISSION_LIST="beacon:permissions",e.ONGOING_PROOF_OF_EVENT_CHALLENGES="beacon:ongoing-proof-of-event-challenges",e.BEACON_SDK_VERSION="beacon:sdk_version",e.MATRIX_PRESERVED_STATE="beacon:sdk-matrix-preserved-state",e.MATRIX_PEER_ROOM_IDS="beacon:matrix-peer-rooms",e.MATRIX_SELECTED_NODE="beacon:matrix-selected-node",e.MULTI_NODE_SETUP_DONE="beacon:multi-node-setup",e.WC_2_CORE_PAIRING="wc@2:core:0.3//pairing",e.WC_2_CLIENT_SESSION="wc@2:client:0.3//session",e.WC_2_CORE_KEYCHAIN="wc@2:core:0.3//keychain",e.WC_2_CORE_MESSAGES="wc@2:core:0.3//messages",e.WC_2_CLIENT_PROPOSAL="wc@2:client:0.3//proposal",e.WC_2_CORE_SUBSCRIPTION="wc@2:core:0.3//subscription",e.WC_2_CORE_HISTORY="wc@2:core:0.3//history",e.WC_2_CORE_EXPIRER="wc@2:core:0.3//expirer"}(eL||(eL={}));const rL={[eL.TRANSPORT_P2P_PEERS_DAPP]:[],[eL.TRANSPORT_P2P_PEERS_WALLET]:[],[eL.TRANSPORT_POSTMESSAGE_PEERS_DAPP]:[],[eL.TRANSPORT_POSTMESSAGE_PEERS_WALLET]:[],[eL.TRANSPORT_WALLETCONNECT_PEERS_DAPP]:[],[eL.LAST_SELECTED_WALLET]:void 0,[eL.ACCOUNTS]:[],[eL.ACTIVE_ACCOUNT]:void 0,[eL.PUSH_TOKENS]:[],[eL.BEACON_SDK_SECRET_SEED]:void 0,[eL.APP_METADATA_LIST]:[],[eL.PERMISSION_LIST]:[],[eL.ONGOING_PROOF_OF_EVENT_CHALLENGES]:[],[eL.BEACON_SDK_VERSION]:void 0,[eL.MATRIX_PRESERVED_STATE]:{},[eL.MATRIX_PEER_ROOM_IDS]:{},[eL.MATRIX_SELECTED_NODE]:void 0,[eL.MULTI_NODE_SETUP_DONE]:void 0,[eL.WC_2_CLIENT_SESSION]:void 0,[eL.WC_2_CORE_PAIRING]:void 0,[eL.WC_2_CORE_KEYCHAIN]:void 0,[eL.WC_2_CORE_MESSAGES]:void 0,[eL.WC_2_CLIENT_PROPOSAL]:void 0,[eL.WC_2_CORE_SUBSCRIPTION]:void 0,[eL.WC_2_CORE_HISTORY]:void 0,[eL.WC_2_CORE_EXPIRER]:void 0};class nL{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class iL extends nL{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,a,s),this.senderId=o}}var oL,aL,sL;!function(e){e.RAW="raw",e.OPERATION="operation",e.MICHELINE="micheline"}(oL||(oL={}));class cL{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class lL{type="postmessage-pairing-request";id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o){this.id=e,this.name=t,this.icon=i,this.appUrl=o,this.publicKey=r,this.version=n}}class uL extends lL{senderId;constructor(e,t,r,n,i,o,a){super(e,t,r,n,o,a),this.senderId=i}}class dL{type="walletconnect-pairing-request";uri;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.uri=i}}class hL extends dL{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,o,a,s),this.senderId=i}}!function(e){e.LIGHT="light",e.DARK="dark"}(aL||(aL={})),function(e){e.EUROPE_EAST="europe-east",e.EUROPE_WEST="europe-west",e.NORTH_AMERICA_EAST="north-america-east",e.NORTH_AMERICA_WEST="north-america-west",e.CENTRAL_AMERICA="central-america",e.SOUTH_AMERICA="south-america",e.ASIA_EAST="asia-east",e.ASIA_WEST="asia-west",e.AFRICA="africa",e.AUSTRALIA="australia"}(sL||(sL={}));const fL="https://beacon-notification-oracle.dev.gke.papers.tech",pL=[e=>{}];let mL={postMessage:(e,t)=>{console.log("GOT MOCK POST MESSAGE",e),pL.forEach((t=>{t({data:e})}))},addEventListener:(e,t)=>{pL.push(t)},removeEventListener:(e,t)=>{pL.splice(pL.indexOf((e=>e===t)),1)},location:{origin:"*"}};try{"undefined"!==typeof window&&(mL=window)}catch(Nde){console.log(`not defined: ${Nde}`)}class gL{track(e,t,r,n){}}class vL{name;iconUrl;appUrl;_beaconId=new CM;get beaconId(){return this._beaconId.promise}storage;analytics;_keyPair=new CM;get keyPair(){return this._keyPair.promise}constructor(e){if(!e.name)throw new Error("Name not set");if(!e.storage)throw new Error("Storage not set");this.name=e.name,this.iconUrl=e.iconUrl,this.appUrl=e.appUrl??mL.location.origin,this.storage=e.storage,this.analytics=e.analytics??new gL,mL.beaconCreatedClientInstance?console.error("[BEACON] It looks like you created multiple Beacon SDK Client instances. This can lead to problems. Only create one instance and re-use it everywhere."):mL.beaconCreatedClientInstance=!0,this.initSDK().catch(console.error)}async destroy(){await this.removeBeaconEntriesFromStorage(),mL.beaconCreatedClientInstance=!1}async initSDK(){return this.storage.set(eL.BEACON_SDK_VERSION,"4.1.2").catch(console.error),this.loadOrCreateBeaconSecret().catch(console.error),this.keyPair.then((e=>{this._beaconId.resolve(DM(e.publicKey))}))}async removeBeaconEntriesFromStorage(){const e=Object.values(eL);await Promise.all(e.map((e=>this.storage.delete(e))))}async loadOrCreateBeaconSecret(){const e=await this.storage.get(eL.BEACON_SDK_SECRET_SEED);if(e&&"string"===typeof e)this._keyPair.resolve(await BM(e));else{const e=await VM();await this.storage.set(eL.BEACON_SDK_SECRET_SEED,e),this._keyPair.resolve(await BM(e))}}}class yL{storage;storageKey;constructor(e,t){this.storage=e,this.storageKey=t}async getAll(){return await this.storage.get(this.storageKey)??[]}async getOne(e){return(await this.storage.get(this.storageKey)).find(e)}async addOne(e,t,r=!0){const n=await this.storage.get(this.storageKey);if(n.some(t)){if(r)for(let i=0;i!e(t)));return this.storage.set(this.storageKey,t)}async removeAll(){return this.storage.delete(this.storageKey)}}var bL=r(4240).Buffer;const wL=async(e,t)=>{const r=[e,t.type];t.name&&r.push(`name:${t.name}`),t.rpcUrl&&r.push(`rpc:${t.rpcUrl}`);const n=bL.from((0,is.hash)((0,MM.OW)(r.join("-")),10));return jM.encode(n)};class xL{static async hasPermission(e,t,r){switch(e.type){case qM.PermissionRequest:case qM.BroadcastRequest:return!0;case qM.OperationRequest:{const r=await wL(e.sourceAddress,e.network),n=await t(r);return!!n&&n.scopes.includes(KM.OPERATION_REQUEST)}case qM.SignPayloadRequest:{const t=(await r()).filter((t=>t.address===e.sourceAddress));return 0!==t.length&&t.some((e=>e.scopes.includes(KM.SIGN)))}default:throw new Error("Message not handled")}}}class _L{storageManager;constructor(e){this.storageManager=new yL(e,eL.ACCOUNTS)}async getAccounts(){return await this.storageManager.getAll()??[]}async getAccount(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addAccount(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier))}async updateAccount(e,t){const r=await this.getAccount(e);if(!r)return;const n={...r,...t};return await this.storageManager.addOne(n,(t=>t.accountIdentifier===e),!0),n}async removeAccount(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removeAccounts(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllAccounts(){return this.storageManager.removeAll()}async hasPermission(e){return xL.hasPermission(e,this.getAccount.bind(this),this.getAccounts.bind(this))}}var SL=r(4240).Buffer;const kL=async e=>{const t=SL.from((0,is.hash)(SL.from(e,"hex"),5));return jM.encode(t)};let EL=!!mL.beaconSdkDebugEnabled;EL&&console.log("[BEACON]: Debug mode is ON (turned on either by the developer or a browser extension)");class AL{name;constructor(e){this.name=e}debug(e,...t){PL.debug(this.name,e,t)}log(e,...t){PL.log(this.name,e,t)}warn(e,...t){PL.warn(this.name,e,t)}error(e,...t){PL.error(this.name,e,t)}time(e,t){PL.time(e,t)}timeLog(e,...t){PL.timeLog(e,t)}}new AL("");let PL=new class{constructor(){}debug(e,t,...r){this._log("debug",e,t,r)}log(e,t,...r){this._log("log",e,t,r)}warn(e,t,...r){this._log("warn",e,t,r)}error(e,t,...r){this._log("error",e,t,r)}time(e,t){e?console.time(t):console.timeEnd(t)}timeLog(e,t,...r){this._log("timeLog",e,t,r)}_log(e,t,r,n=[]){if(!EL)return;let i=`[BEACON] ${(new Date).toISOString()} [${t}](${r})`,o=n;switch(n[0]&&"string"===typeof n[0]&&(i+=` ${n[0]}`,o=n.slice(1)),e){case"error":console.group(i),console.error(...o);break;case"warn":console.group(i),console.warn(...o);break;case"debug":console.groupCollapsed(i),console.debug(...o);break;case"timeLog":console.group(i),console.timeLog(...o);break;default:console.group(i),console.log(...o)}console.groupEnd()}};const OL=new AL("Client");class TL extends vL{accountManager;handleResponse;rateLimit=2;rateLimitWindowInSeconds=5;requestCounter=[];matrixNodes;_transport=new CM;get transport(){return this._transport.promise}get connectionStatus(){return this._transport.promiseResult?.connectionStatus??JM.NOT_CONNECTED}get ready(){return this.transport.then((()=>{}))}constructor(e){super(e),this.accountManager=new _L(e.storage),this.matrixNodes=e.matrixNodes??{},this.handleResponse=(e,t)=>{throw new Error(`not overwritten${JSON.stringify(e)} - ${JSON.stringify(t)}`)}}async getAccounts(){return this.accountManager.getAccounts()}async getAccount(e){return this.accountManager.getAccount(e)}async removeAccount(e){return this.accountManager.removeAccount(e)}async removeAllAccounts(){return this.accountManager.removeAllAccounts()}async addRequestAndCheckIfRateLimited(){const e=(new Date).getTime();return this.requestCounter=this.requestCounter.filter((t=>t+1e3*this.rateLimitWindowInSeconds>e)),this.requestCounter.push(e),this.requestCounter.length>this.rateLimit}async init(e){return this._transport.status===OM.RESOLVED?(await this.transport).type:(await this.setTransport(e),e.type)}async getOwnAppMetadata(){return{senderId:await kL(await this.beaconId),name:this.name,icon:this.iconUrl}}async getPeers(){return(await this.transport).getPeers()}async addPeer(e){return(await this.transport).addPeer(e)}async destroy(){this._transport.status===OM.RESOLVED&&await(await this.transport).disconnect(),await super.destroy()}async setTransport(e){e?this._transport.isSettled()?this._transport=CM.resolve(e):this._transport.resolve(e):this._transport.isSettled()&&(this._transport=new CM)}async addListener(e){e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new ML).deserialize(e);this.handleResponse(r,t)}})).catch((e=>OL.error("addListener",e)))}async sendDisconnectToPeer(e,t){const r={id:await VM(),version:e.version,senderId:await kL(await this.beaconId),type:qM.Disconnect},n=await(new ML).serialize(r),i=t??await this.transport;await i.send(n,e)}}const CL=new AL("Transport");class jL{type=QM.POST_MESSAGE;name;_isConnected=JM.NOT_CONNECTED;peerManager;client;newPeerListener;setEventHandler(e,t){this.client.eventHandlers.set(e,t)}listeners=[];get connectionStatus(){return this._isConnected}constructor(e,t,r){this.name=e,this.client=t,this.peerManager=r}static async isAvailable(){return Promise.resolve(!1)}async connect(){CL.log("connect"),this._isConnected=JM.CONNECTED}async disconnect(){CL.log("disconnect"),this._isConnected=JM.NOT_CONNECTED}async send(e,t){if(t)return this.client.sendMessage(e,t);{const t=(await this.getPeers()).map((t=>this.client.sendMessage(e,t)));return(await Promise.all(t))[0]}}async addListener(e){CL.debug("addListener"),this.listeners.push(e)}async removeListener(e){CL.log("removeListener"),this.listeners=this.listeners.filter((t=>t!==e))}async getPeers(){return this.peerManager.getPeers()}async addPeer(e,t=!0){CL.log("addPeer","adding peer",e),await this.peerManager.addPeer(e),await this.listen(e.publicKey)}async removePeer(e){CL.log("removePeer","removing peer",e),await this.peerManager.removePeer(e.publicKey),this.client&&await this.client.unsubscribeFromEncryptedMessage(e.publicKey)}async removeAllPeers(){CL.log("removeAllPeers"),await this.peerManager.removeAllPeers(),this.client&&await this.client.unsubscribeFromEncryptedMessages()}async notifyListeners(e,t){0===this.listeners.length?CL.warn("notifyListeners","0 listeners notified!",this):CL.log("notifyListeners",`Notifying ${this.listeners.length} listeners`,this),this.listeners.forEach((r=>{r(e,t)}))}}class RL extends tL{prefix;constructor(e){super(),this.prefix=e}static async isSupported(){return Promise.resolve(Boolean("undefined"!==typeof window)&&Boolean(window.localStorage))}async get(e){const t=localStorage.getItem(this.getPrefixedKey(e));if(!t)return"object"===typeof rL[e]?JSON.parse(JSON.stringify(rL[e])):rL[e];try{return JSON.parse(t)}catch(r){return t}}async set(e,t){return"string"===typeof t?localStorage.setItem(this.getPrefixedKey(e),t):localStorage.setItem(this.getPrefixedKey(e),JSON.stringify(t))}async delete(e){return Promise.resolve(localStorage.removeItem(this.getPrefixedKey(e)))}async subscribeToStorageChanged(e){window.addEventListener("storage",(t=>{t.key?e({eventType:"entryModified",key:this.getPrefixedKey(t.key),oldValue:t.oldValue,newValue:t.newValue}):e({eventType:"storageCleared",key:null,oldValue:null,newValue:null})}),!1)}getPrefixedKey(e){return this.prefix?`${this.prefix}-${e}`:e}}new AL("STORAGE");var IL=r(4240).Buffer;class ML{async serialize(e){const t=JSON.stringify(e);return jM.encode(IL.from(t))}async deserialize(e){if("string"!==typeof e)throw new Error("Encoded payload needs to be a string");return JSON.parse(jM.decode(e).toString())}}class LL{storageManager;constructor(e){this.storageManager=new yL(e,eL.APP_METADATA_LIST)}async getAppMetadataList(){return await this.storageManager.getAll()??[]}async getAppMetadata(e){return this.storageManager.getOne((t=>t.senderId===e))}async addAppMetadata(e){return this.storageManager.addOne(e,(t=>t.senderId===e.senderId))}async removeAppMetadata(e){return this.storageManager.remove((t=>t.senderId===e))}async removeAppMetadatas(e){return this.storageManager.remove((t=>e.includes(t.senderId)))}async removeAllAppMetadata(){return this.storageManager.removeAll()}}class NL{storageManager;constructor(e){this.storageManager=new yL(e,eL.PERMISSION_LIST)}async getPermissions(){return await this.storageManager.getAll()??[]}async getPermission(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addPermission(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier&&t.senderId===e.senderId))}async removePermission(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removePermissions(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllPermissions(){return this.storageManager.removeAll()}async hasPermission(e){return xL.hasPermission(e,this.getPermission.bind(this),this.getPermissions.bind(this))}}class DL{storageManager;constructor(e,t){this.storageManager=new yL(e,t)}async hasPeer(e){return!!await this.getPeer(e)}async getPeers(){return await this.storageManager.getAll()??[]}async getPeer(e){return this.storageManager.getOne((t=>t.publicKey===e))}async addPeer(e){return this.storageManager.addOne(e,(t=>t.publicKey===e.publicKey))}async removePeer(e){return this.storageManager.remove((t=>t.publicKey===e))}async removePeers(e){return this.storageManager.remove((t=>e.includes(t.publicKey)))}async removeAllPeers(){return this.storageManager.removeAll()}}var zL=r(3376),BL=r(4240).Buffer;class FL{keyPair;constructor(e){this.keyPair=e}eventHandlers=new Map;async getPublicKey(){return DM(this.keyPair?.publicKey)}async getPublicKeyHash(){return zM(this.keyPair.publicKey)}async createCryptoBoxServer(e,t){return(0,zL.serverSessionKeys)({publicKey:(0,ns.am)(t.publicKey),secretKey:(0,ns.gL)(t.secretKey)},(0,ns.am)(BL.from(e,"hex")))}async createCryptoBoxClient(e,t){return(0,zL.clientSessionKeys)({publicKey:(0,ns.am)(t.publicKey),secretKey:(0,ns.gL)(t.secretKey)},(0,ns.am)(BL.from(e,"hex")))}async encryptMessageAsymmetric(e,t){return async function(e,t){const r=(0,ns.am)(NM.from(t)),n=(0,RM.generateKeyPair)(),i=new is.BLAKE2b(24).update(n.publicKey,32).update(r,32).digest(),o="string"===typeof e?(0,MM.OW)(e):e,a=(0,RM.box)(r,n.secretKey,i,o);return DM((0,LM.W)(n.publicKey,a))}(t,BL.from(e,"hex"))}}r(4240).Buffer;new AL("IndexedDBStorage");function UL(e,t){return function(){return e.apply(t,arguments)}}const{toString:$L}=Object.prototype,{getPrototypeOf:HL}=Object,VL=(e=>t=>{const r=$L.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qL=e=>(e=e.toLowerCase(),t=>VL(t)===e),KL=e=>t=>typeof t===e,{isArray:WL}=Array,GL=KL("undefined");const YL=qL("ArrayBuffer");const ZL=KL("string"),XL=KL("function"),JL=KL("number"),QL=e=>null!==e&&"object"===typeof e,eN=e=>{if("object"!==VL(e))return!1;const t=HL(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tN=qL("Date"),rN=qL("File"),nN=qL("Blob"),iN=qL("FileList"),oN=qL("URLSearchParams");function aN(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let n,i;if("object"!==typeof e&&(e=[e]),WL(e))for(n=0,i=e.length;n0;)if(n=r[i],t===n.toLowerCase())return n;return null}const cN="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,lN=e=>!GL(e)&&e!==cN;const uN=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&HL(Uint8Array)),dN=qL("HTMLFormElement"),hN=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),fN=qL("RegExp"),pN=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};aN(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},mN="abcdefghijklmnopqrstuvwxyz",gN="0123456789",vN={DIGIT:gN,ALPHA:mN,ALPHA_DIGIT:mN+mN.toUpperCase()+gN};const yN=qL("AsyncFunction"),bN={isArray:WL,isArrayBuffer:YL,isBuffer:function(e){return null!==e&&!GL(e)&&null!==e.constructor&&!GL(e.constructor)&&XL(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||XL(e.append)&&("formdata"===(t=VL(e))||"object"===t&&XL(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&YL(e.buffer),t},isString:ZL,isNumber:JL,isBoolean:e=>!0===e||!1===e,isObject:QL,isPlainObject:eN,isUndefined:GL,isDate:tN,isFile:rN,isBlob:nN,isRegExp:fN,isFunction:XL,isStream:e=>QL(e)&&XL(e.pipe),isURLSearchParams:oN,isTypedArray:uN,isFileList:iN,forEach:aN,merge:function e(){const{caseless:t}=lN(this)&&this||{},r={},n=(n,i)=>{const o=t&&sN(r,i)||i;eN(r[o])&&eN(n)?r[o]=e(r[o],n):eN(n)?r[o]=e({},n):WL(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i(aN(t,((t,n)=>{r&&XL(t)?e[n]=UL(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&HL(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:VL,kindOfTest:qL,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(WL(e))return e;let t=e.length;if(!JL(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:dN,hasOwnProperty:hN,hasOwnProp:hN,reduceDescriptors:pN,freezeMethods:e=>{pN(e,((t,r)=>{if(XL(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];XL(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return WL(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:sN,global:cN,isContextDefined:lN,ALPHABET:vN,generateString:(e=16,t=vN.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&XL(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(QL(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=WL(e)?[]:{};return aN(e,((e,t)=>{const o=r(e,n+1);!GL(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:yN,isThenable:e=>e&&(QL(e)||XL(e))&&XL(e.then)&&XL(e.catch)};function wN(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}bN.inherits(wN,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:bN.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xN=wN.prototype,_N={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{_N[e]={value:e}})),Object.defineProperties(wN,_N),Object.defineProperty(xN,"isAxiosError",{value:!0}),wN.from=(e,t,r,n,i,o)=>{const a=Object.create(xN);return bN.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),wN.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const SN=wN;var kN=r(4240).Buffer;function EN(e){return bN.isPlainObject(e)||bN.isArray(e)}function AN(e){return bN.endsWith(e,"[]")?e.slice(0,-2):e}function PN(e,t,r){return e?e.concat(t).map((function(e,t){return e=AN(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const ON=bN.toFlatObject(bN,{},null,(function(e){return/^is[A-Z]/.test(e)}));const TN=function(e,t,r){if(!bN.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=bN.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!bN.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&bN.isSpecCompliantForm(t);if(!bN.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(bN.isDate(e))return e.toISOString();if(!s&&bN.isBlob(e))throw new SN("Blob is not supported. Use a Buffer instead.");return bN.isArrayBuffer(e)||bN.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):kN.from(e):e}function l(e,r,i){let s=e;if(e&&!i&&"object"===typeof e)if(bN.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(bN.isArray(e)&&function(e){return bN.isArray(e)&&!e.some(EN)}(e)||(bN.isFileList(e)||bN.endsWith(r,"[]"))&&(s=bN.toArray(e)))return r=AN(r),s.forEach((function(e,n){!bN.isUndefined(e)&&null!==e&&t.append(!0===a?PN([r],n,o):null===a?r:r+"[]",c(e))})),!1;return!!EN(e)||(t.append(PN(i,r,o),c(e)),!1)}const u=[],d=Object.assign(ON,{defaultVisitor:l,convertValue:c,isVisitable:EN});if(!bN.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!bN.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),bN.forEach(r,(function(r,o){!0===(!(bN.isUndefined(r)||null===r)&&i.call(t,r,bN.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t};function CN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function jN(e,t){this._pairs=[],e&&TN(e,this,t)}const RN=jN.prototype;RN.append=function(e,t){this._pairs.push([e,t])},RN.toString=function(e){const t=e?function(t){return e.call(this,t,CN)}:CN;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const IN=jN;function MN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function LN(e,t,r){if(!t)return e;const n=r&&r.encode||MN,i=r&&r.serialize;let o;if(o=i?i(t,r):bN.isURLSearchParams(t)?t.toString():new IN(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const NN=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){bN.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},DN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zN={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:IN,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},BN="undefined"!==typeof window&&"undefined"!==typeof document,FN=(e=>BN&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),UN="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,$N={...t,...zN};const HN=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&bN.isArray(n)?n.length:o,s)return bN.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&bN.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&bN.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n{t(function(e){return bN.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const VN={transitional:DN,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=bN.isObject(e);i&&bN.isHTMLForm(e)&&(e=new FormData(e));if(bN.isFormData(e))return n&&n?JSON.stringify(HN(e)):e;if(bN.isArrayBuffer(e)||bN.isBuffer(e)||bN.isStream(e)||bN.isFile(e)||bN.isBlob(e))return e;if(bN.isArrayBufferView(e))return e.buffer;if(bN.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return TN(e,new $N.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return $N.isNode&&bN.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=bN.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return TN(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(bN.isString(e))try{return(t||JSON.parse)(e),bN.trim(e)}catch(Mde){if("SyntaxError"!==Mde.name)throw Mde}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||VN.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&bN.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(Mde){if(r){if("SyntaxError"===Mde.name)throw SN.from(Mde,SN.ERR_BAD_RESPONSE,this,null,this.response);throw Mde}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$N.classes.FormData,Blob:$N.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};bN.forEach(["delete","get","head","post","put","patch"],(e=>{VN.headers[e]={}}));const qN=VN,KN=bN.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),WN=Symbol("internals");function GN(e){return e&&String(e).trim().toLowerCase()}function YN(e){return!1===e||null==e?e:bN.isArray(e)?e.map(YN):String(e)}function ZN(e,t,r,n,i){return bN.isFunction(n)?n.call(this,t,r):(i&&(t=r),bN.isString(t)?bN.isString(n)?-1!==t.indexOf(n):bN.isRegExp(n)?n.test(t):void 0:void 0)}class XN{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=GN(t);if(!i)throw new Error("header name must be a non-empty string");const o=bN.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=YN(e))}const o=(e,t)=>bN.forEach(e,((e,r)=>i(e,r,t)));return bN.isPlainObject(e)||e instanceof this.constructor?o(e,t):bN.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&KN[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=GN(e)){const r=bN.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(bN.isFunction(t))return t.call(this,e,r);if(bN.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=GN(e)){const r=bN.findKey(this,e);return!(!r||void 0===this[r]||t&&!ZN(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=GN(e)){const i=bN.findKey(r,e);!i||t&&!ZN(0,r[i],i,t)||(delete r[i],n=!0)}}return bN.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!ZN(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return bN.forEach(this,((n,i)=>{const o=bN.findKey(r,i);if(o)return t[o]=YN(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=YN(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return bN.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&bN.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[WN]=this[WN]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=GN(e);t[n]||(!function(e,t){const r=bN.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return bN.isArray(e)?e.forEach(n):n(e),this}}XN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),bN.reduceDescriptors(XN.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),bN.freezeMethods(XN);const JN=XN;function QN(e,t){const r=this||qN,n=t||r,i=JN.from(n.headers);let o=n.data;return bN.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function eD(e){return!(!e||!e.__CANCEL__)}function tD(e,t,r){SN.call(this,null==e?"canceled":e,SN.ERR_CANCELED,t,r),this.name="CanceledError"}bN.inherits(tD,SN,{__CANCEL__:!0});const rD=tD;const nD=$N.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];bN.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),bN.isString(n)&&a.push("path="+n),bN.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function iD(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const oD=$N.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=bN.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const aD=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];i||(i=c),r[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s);r=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const cD="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=JN.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(bN.isFormData(n))if($N.hasStandardBrowserEnv||$N.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const d=iD(e.baseURL,e.url);function h(){if(!u)return;const n=JN.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new SN("Request failed with status code "+r.status,[SN.ERR_BAD_REQUEST,SN.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),LN(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new SN("Request aborted",SN.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new SN("Network Error",SN.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||DN;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new SN(t,n.clarifyTimeoutError?SN.ETIMEDOUT:SN.ECONNABORTED,e,u)),u=null},$N.hasStandardBrowserEnv&&(c&&bN.isFunction(c)&&(c=c(e)),c||!1!==c&&oD(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&nD.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in u&&bN.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),bN.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",sD(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",sD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(r(!t||t.type?new rD(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===$N.protocols.indexOf(f)?r(new SN("Unsupported protocol "+f+":",SN.ERR_BAD_REQUEST,e)):u.send(n||null)}))},lD={http:null,xhr:cD};bN.forEach(lD,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Mde){}Object.defineProperty(e,"adapterName",{value:t})}}));const uD=e=>`- ${e}`,dD=e=>bN.isFunction(e)||null===e||!1===e,hD=e=>{e=bN.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(uD).join("\n"):" "+uD(e[0]):"as no adapter specified";throw new SN("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function fD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rD(null,e)}function pD(e){fD(e),e.headers=JN.from(e.headers),e.data=QN.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return hD(e.adapter||qN.adapter)(e).then((function(t){return fD(e),t.data=QN.call(e,e.transformResponse,t),t.headers=JN.from(t.headers),t}),(function(t){return eD(t)||(fD(e),t&&t.response&&(t.response.data=QN.call(e,e.transformResponse,t.response),t.response.headers=JN.from(t.response.headers))),Promise.reject(t)}))}const mD=e=>e instanceof JN?e.toJSON():e;function gD(e,t){t=t||{};const r={};function n(e,t,r){return bN.isPlainObject(e)&&bN.isPlainObject(t)?bN.merge.call({caseless:r},e,t):bN.isPlainObject(t)?bN.merge({},t):bN.isArray(t)?t.slice():t}function i(e,t,r){return bN.isUndefined(t)?bN.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!bN.isUndefined(t))return n(void 0,t)}function a(e,t){return bN.isUndefined(t)?bN.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(mD(e),mD(t),!0)};return bN.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,a=o(e[n],t[n],n);bN.isUndefined(a)&&o!==s||(r[n]=a)})),r}const vD="1.6.5",yD={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{yD[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const bD={};yD.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.5] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new SN(n(i," has been removed"+(t?" in "+t:"")),SN.ERR_DEPRECATED);return t&&!bD[i]&&(bD[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const wD={assertOptions:function(e,t,r){if("object"!==typeof e)throw new SN("options must be an object",SN.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new SN("option "+o+" must be "+r,SN.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new SN("Unknown option "+o,SN.ERR_BAD_OPTION)}},validators:yD},xD=wD.validators;class _D{constructor(e){this.defaults=e,this.interceptors={request:new NN,response:new NN}}request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=gD(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&wD.assertOptions(r,{silentJSONParsing:xD.transitional(xD.boolean),forcedJSONParsing:xD.transitional(xD.boolean),clarifyTimeoutError:xD.transitional(xD.boolean)},!1),null!=n&&(bN.isFunction(n)?t.paramsSerializer={serialize:n}:wD.assertOptions(n,{encode:xD.function,serialize:xD.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&bN.merge(i.common,i[t.method]);i&&bN.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=JN.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[pD.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new rD(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new kD((function(t){e=t}));return{token:t,cancel:e}}}const ED=kD;const AD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AD).forEach((([e,t])=>{AD[t]=e}));const PD=AD;const OD=function e(t){const r=new SD(t),n=UL(SD.prototype.request,r);return bN.extend(n,SD.prototype,r,{allOwnKeys:!0}),bN.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(gD(t,r))},n}(qN);OD.Axios=SD,OD.CanceledError=rD,OD.CancelToken=ED,OD.isCancel=eD,OD.VERSION=vD,OD.toFormData=TN,OD.AxiosError=SN,OD.Cancel=OD.CanceledError,OD.all=function(e){return Promise.all(e)},OD.spread=function(e){return function(t){return e.apply(null,t)}},OD.isAxiosError=function(e){return bN.isObject(e)&&!0===e.isAxiosError},OD.mergeConfig=gD,OD.AxiosHeaders=JN,OD.formToJSON=e=>HN(bN.isHTMLForm(e)?new FormData(e):e),OD.getAdapter=hD,OD.HttpStatusCode=PD,OD.default=OD;const TD=OD;var CD;!function(e){e.TEXT="m.text"}(CD||(CD={}));class jD{type;sender;content;timestamp;static from(e){if(ID(e))return new jD(e.content.msgtype,e.sender,e.content.body,e.origin_server_ts)}constructor(e,t,r,n){this.type=e,this.sender=t,this.content=r,this.timestamp=n}}const RD=e=>"m.room.message"===e.type,ID=e=>RD(e)&&e.content instanceof Object&&"msgtype"in e.content&&e.content.msgtype===CD.TEXT;var MD;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JOINED=1]="JOINED",e[e.INVITED=2]="INVITED",e[e.LEFT=3]="LEFT"}(MD||(MD={}));class LD{id;status;members;messages;static fromSync(e){if(!e)return[];function t(e,t){return Object.entries(e).map((([e,r])=>t(e,r)))}return[...t(e.join??{},LD.fromJoined),...t(e.invite??{},LD.fromInvited),...t(e.leave??{},LD.fromLeft)]}static from(e,t){return"string"===typeof e?new LD(e,t||MD.UNKNOWN):void 0!==t?new LD(e.id,t,e.members,e.messages):e}static merge(e,t){return t&&t.id===e.id?new LD(e.id,e.status,[...t.members,...e.members].filter(((e,t,r)=>r.indexOf(e)===t)),[...t.messages,...e.messages]):LD.from(e)}static fromJoined(e,t){const r=[...t.state.events,...t.timeline.events],n=LD.getMembersFromEvents(r),i=LD.getMessagesFromEvents(r);return new LD(e,MD.JOINED,n,i)}static fromInvited(e,t){const r=LD.getMembersFromEvents(t.invite_state.events);return new LD(e,MD.INVITED,r)}static fromLeft(e,t){const r=[...t.state.events,...t.timeline.events],n=LD.getMembersFromEvents(r),i=LD.getMessagesFromEvents(r);return new LD(e,MD.LEFT,n,i)}static getMembersFromEvents(e){return LD.getUniqueEvents(e.filter((e=>(e=>"m.room.create"===e.type&&e.content instanceof Object&&"creator"in e.content)(e)||(e=>"m.room.member"===e.type&&e.content instanceof Object&&"membership"in e.content&&"join"===e.content.membership)(e)))).map((e=>e.sender)).filter(((e,t,r)=>r.indexOf(e)===t))}static getMessagesFromEvents(e){return LD.getUniqueEvents(e.filter(RD)).map((e=>jD.from(e))).filter(Boolean)}static getUniqueEvents(e){const t={},r=[];return e.forEach(((e,n)=>{const i=e.event_id;void 0!==i&&i in t||(void 0!==i&&(t[i]=n),r.push(e))})),r}constructor(e,t=MD.UNKNOWN,r=[],n=[]){this.id=e,this.status=t,this.members=r,this.messages=n}}const ND=["syncToken","rooms"];class DD{storage;state={isRunning:!1,userId:void 0,deviceId:void 0,txnNo:0,accessToken:void 0,syncToken:void 0,pollingTimeout:void 0,pollingRetries:0,rooms:{}};onStateChangedListeners=new Map;waitReadyPromise;constructor(e){this.storage=e,this.waitReadyPromise=new Promise((async(e,t)=>{try{await this.initFromStorage(),e()}catch(r){t(r)}}))}get(e){return this.state[e]}getRoom(e){const t=LD.from(e,MD.UNKNOWN);return this.state.rooms[t.id]||t}async update(e){await this.waitReady();const t=Object.assign({},this.state);this.setState(e),this.updateStorage(e),this.notifyListeners(t,this.state,e)}onStateChanged(e,...t){t.length>0?t.forEach((t=>{this.onStateChangedListeners.set(t,e)})):this.onStateChangedListeners.set("all",e)}async waitReady(){return this.waitReadyPromise}async initFromStorage(){const e=await this.storage.get(eL.MATRIX_PRESERVED_STATE);this.setState(e)}prepareData(e){const t=["rooms"].some((t=>void 0!==e[t]))?JSON.parse(JSON.stringify(e)):e;return Object.values(t.rooms||{}).forEach((e=>{e.messages=[]})),t}updateStorage(e){const t=Object.entries(e).filter((([e,t])=>ND.includes(e)&&Boolean(t)));if(t.length>0){const e={};ND.forEach((t=>{e[t]=this.state[t]})),this.storage.set(eL.MATRIX_PRESERVED_STATE,this.prepareData(e))}}setState(e){this.state={isRunning:e.isRunning||this.state.isRunning,userId:e.userId||this.state.userId,deviceId:e.deviceId||this.state.deviceId,txnNo:e.txnNo||this.state.txnNo,accessToken:e.accessToken||this.state.accessToken,syncToken:e.syncToken||this.state.syncToken,pollingTimeout:e.pollingTimeout||this.state.pollingTimeout,pollingRetries:e.pollingRetries||this.state.pollingRetries,rooms:this.mergeRooms(this.state.rooms,e.rooms)}}mergeRooms(e,t){if(!t)return e;const r=Array.isArray(t)?t:Object.values(t),n=Object.assign({},e);return r.forEach((t=>{n[t.id]=LD.merge(t,e[t.id])})),n}notifyListeners(e,t,r){const n=this.onStateChangedListeners.get("all");n&&n(e,t,r),PM(r).filter((e=>void 0!==r[e])).forEach((n=>{const i=this.onStateChangedListeners.get(n);i&&i(e,t,r)}))}}const zD=new AL("MatrixHttpClient");class BD{baseUrl;cancelTokenSource;constructor(e){this.baseUrl=e,this.cancelTokenSource=TD.CancelToken.source()}async get(e,t,r){return this.send("GET",e,r,t)}async post(e,t,r,n){return this.send("POST",e,r,n,t)}async put(e,t,r,n){return this.send("PUT",e,r,n,t)}async cancelAllRequests(){return this.cancelTokenSource.cancel("Manually cancelled")}async send(e,t,r,n,i){const o=r?this.getHeaders(r):void 0,a=n?this.getParams(n):void 0;let s;try{s=await TD.request({method:e,url:t,baseURL:this.apiUrl("/_matrix/client/r0"),headers:o,data:i,params:a,cancelToken:this.cancelTokenSource.token})}catch(c){const e=c;throw zD.error("send",e.code,e.message,e.response.data),c.response.data}return s.data}getHeaders(e){const t={},r=[];if(e.accessToken&&r.push(["Authorization",`Bearer ${e.accessToken}`]),0!==r.length){for(const[e,n]of r)t[e]=n;return t}}getParams(e){if(!e)return;const t=Object.assign(e,{});return PM(t).forEach((e=>void 0===t[e]&&delete t[e])),t}apiUrl(...e){return[this.baseUrl.endsWith("/")?this.baseUrl.substr(0,this.baseUrl.length-1):this.baseUrl,...e.map((e=>e.startsWith("/")?e.substr(1):e))].join("/")}}class FD{httpClient;constructor(e){this.httpClient=e}async createRoom(e,t={}){return this.httpClient.post("/createRoom",t,{accessToken:e})}async inviteToRoom(e,t,r){return r.status!==MD.JOINED&&r.status!==MD.UNKNOWN?Promise.reject(`User is not a member of room ${r.id}.`):this.httpClient.post(`/rooms/${encodeURIComponent(r.id)}/invite`,{user_id:t},{accessToken:e})}async joinRoom(e,t){return t.status===MD.JOINED?Promise.resolve({room_id:t.id}):this.httpClient.post(`/rooms/${encodeURIComponent(t.id)}/join`,{},{accessToken:e})}async getJoinedRooms(e){return this.httpClient.get("/joined_rooms",void 0,{accessToken:e})}}class UD{httpClient;constructor(e){this.httpClient=e}async login(e,t,r){return this.httpClient.post("/login",{type:"m.login.password",identifier:{type:"m.id.user",user:e},password:t,device_id:r})}}class $D{httpClient;cachedPromises=new Map;constructor(e){this.httpClient=e}async sync(e,t){return this.withCache("sync",(()=>this.httpClient.get("/sync",{timeout:t?t.pollingTimeout:void 0,since:t?t.syncToken:void 0},{accessToken:e})))}async sendMessage(e,t,r,n){return new Promise(((i,o)=>this.scheduleEvent({accessToken:e,roomId:t,type:"m.room.message",content:r,txnId:n,onSuccess:i,onError:o})))}scheduleEvent(e){this.sendEvent(e)}async sendEvent(e){const{roomId:t,type:r,txnId:n,content:i,accessToken:o}=e;try{const a=await this.httpClient.put(`/rooms/${encodeURIComponent(t)}/send/${r}/${encodeURIComponent(n)}`,i,{accessToken:o});e.onSuccess(a)}catch(a){e.onError(a)}}withCache(e,t){let r=this.cachedPromises.get(e);return r||(r=t().finally((()=>{this.cachedPromises.delete(e)})),this.cachedPromises.set(e,r)),r}}class HD{events={};on(e,t){return"object"!==typeof this.events[e]&&(this.events[e]=[]),this.events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if("object"!==typeof this.events[e])return;if(!t)return void(this.events[e]=[]);const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}removeAllListeners(){Object.keys(this.events).forEach((e=>this.events[e].splice(0,this.events[e].length)))}emit(e,...t){"object"===typeof this.events[e]&&[...this.events[e]].forEach((e=>e.apply(this,t)))}once(e,t){const r=this.on(e,((...e)=>{r(),t.apply(this,e)}));return r}}var VD;!function(e){e.INVITE="invite",e.MESSAGE="message"}(VD||(VD={}));class qD extends HD{eventEmitProviders=new Map([[VD.INVITE,()=>[this.isInvite,this.emitInvite.bind(this)]],[VD.MESSAGE,()=>[this.isMessage,this.emitMessage.bind(this)]]]);onStateChanged(e,t,r){for(const n of PM(VD))this.emitIfEvent(VD[n],r)}emitIfEvent(e,t){const r=this.eventEmitProviders.get(e);if(r){const[n,i]=r();n(t)&&i(e,t)}}emitClientEvent(e,t,r){this.emit(e,{type:e,content:t,timestamp:r})}isInvite(e){return!!e.rooms&&e.rooms.some((e=>e.status===MD.INVITED))}emitInvite(e,t){t.rooms.filter((e=>e.status===MD.INVITED)).map((e=>[e.id,e.members])).forEach((([t,r])=>{this.emitClientEvent(e,{roomId:t,members:r})}))}isMessage(e){return!!e.rooms&&e.rooms.some((e=>e.messages.length>0))}emitMessage(e,t){t.rooms.filter((e=>e.messages.length>0)).map((e=>e.messages.map((t=>[e.id,t,t.timestamp])))).reduce(((e,t)=>e.concat(t)),[]).forEach((([t,r,n])=>{this.emitClientEvent(e,{roomId:t,message:r},n)}))}}const KD=new AL("MatrixClient");class WD{store;eventEmitter;userService;roomService;eventService;httpClient;isActive=!0;_isReady=new CM;constructor(e,t,r,n,i,o){this.store=e,this.eventEmitter=t,this.userService=r,this.roomService=n,this.eventService=i,this.httpClient=o,this.store.onStateChanged(((e,t,r)=>{this.eventEmitter.onStateChanged(e,t,r)}),"rooms")}static create(e){const t=new DD(e.storage),r=new qD,n=new BD(e.baseUrl),i=new UD(n),o=new FD(n),a=new $D(n);return new WD(t,r,i,o,a,n)}get joinedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===MD.JOINED)))}))}get invitedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===MD.INVITED)))}))}get leftRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===MD.LEFT)))}))}async start(e){const t=await this.userService.login(e.id,e.password,e.deviceId);await this.store.update({accessToken:t.access_token});const r=new Promise((async(e,t)=>{await this.poll(0,(async t=>{this.store.get("isRunning")||e(),await this.store.update({isRunning:!0,syncToken:t.next_batch,pollingTimeout:3e4,pollingRetries:0,rooms:LD.fromSync(t.rooms)})}),(async e=>{this.store.get("isRunning")||t(e),await this.store.update({isRunning:!1,pollingRetries:this.store.get("pollingRetries")+1})}))}));return r.then((()=>{this._isReady.resolve()})).catch(console.error),r}async isConnected(){return this._isReady.promise}async stop(){return KD.log("MATRIX CLIENT STOPPED"),this.isActive=!1,this._isReady=new CM,this.httpClient.cancelAllRequests()}subscribe(e,t){this.eventEmitter.on(e,t)}unsubscribe(e,t){t&&this.eventEmitter.removeListener(e,t)}unsubscribeAll(e){this.eventEmitter.removeListener(e)}async getRoomById(e){return await this.isConnected(),this.store.getRoom(e)}async createTrustedPrivateRoom(...e){return await this.isConnected(),this.requiresAuthorization("createRoom",(async t=>(await this.roomService.createRoom(t,{room_version:"5",invite:e,preset:"public_chat",is_direct:!0})).room_id))}async inviteToRooms(e,...t){await this.isConnected(),await this.requiresAuthorization("invite",(r=>Promise.all(t.map((t=>{const n=this.store.getRoom(t);this.roomService.inviteToRoom(r,e,n).catch((e=>KD.warn("inviteToRooms",e)))})))))}async joinRooms(...e){await this.isConnected(),await this.requiresAuthorization("join",(t=>Promise.all(e.map((e=>{const r=this.store.getRoom(e);return this.roomService.joinRoom(t,r)})))))}async sendTextMessage(e,t){await this.isConnected(),await this.requiresAuthorization("send",(async r=>{const n=await this.createTxnId();return this.eventService.sendMessage(r,e,{msgtype:"m.text",body:t},n)}))}async poll(e,t,r){const n=this.store,i=this.sync.bind(this),o=async(a,s)=>{let c=0;try{const e=await i();t(e)}catch(l){r(l),c=n.get("pollingRetries"),this.isActive&&KD.log(`Retry syncing... ${c} retries so far`)}finally{this.isActive?setTimeout((async()=>{await o(a,s)}),c>3?5e3+e:e):s(new Error("Syncing stopped manually."))}};return new Promise(o)}async sync(){return this.requiresAuthorization("sync",(async e=>this.eventService.sync(e,{pollingTimeout:this.store.get("pollingTimeout"),syncToken:this.store.get("syncToken")})))}async requiresAuthorization(e,t){const r=this.store.get("accessToken");return r?t(r):Promise.reject(`${e} requires authorization but no access token has been provided.`)}async createTxnId(){const e=(new Date).getTime(),t=this.store.get("txnNo");return await this.store.update({txnNo:t+1}),`m${e}.${t}`}}var GD=r(4240).Buffer;const YD=new AL("P2PCommunicationClient"),ZD={[sL.EUROPE_WEST]:["beacon-node-1.diamond.papers.tech","beacon-node-1.sky.papers.tech","beacon-node-2.sky.papers.tech","beacon-node-1.hope.papers.tech","beacon-node-1.hope-2.papers.tech","beacon-node-1.hope-3.papers.tech","beacon-node-1.hope-4.papers.tech","beacon-node-1.hope-5.papers.tech"],[sL.NORTH_AMERICA_EAST]:["beacon-node-1.beacon-server-1.papers.tech"],[sL.NORTH_AMERICA_WEST]:["beacon-node-1.beacon-server-2.papers.tech"],[sL.ASIA_EAST]:["beacon-node-1.beacon-server-3.papers.tech"],[sL.AUSTRALIA]:["beacon-node-1.beacon-server-4.papers.tech"]},XD=e=>new Promise((t=>setTimeout(t,e)));class JD extends FL{name;replicationCount;storage;iconUrl;appUrl;client=new CM;initialEvent;initialListener;selectedRegion;ENABLED_RELAY_SERVERS;relayServer;activeListeners=new Map;ignoredRooms=[];loginCounter=0;constructor(e,t,r,n,i,o,a){super(t),this.name=e,this.replicationCount=r,this.storage=n,this.iconUrl=o,this.appUrl=a,YD.log("constructor","P2PCommunicationClient created"),this.ENABLED_RELAY_SERVERS=ZD,i&&(this.ENABLED_RELAY_SERVERS={...ZD,...i})}async getPairingRequestInfo(){const e=new nL(await VM(),this.name,await this.getPublicKey(),"3",(await this.getRelayServer()).server);return this.iconUrl&&(e.icon=this.iconUrl),this.appUrl&&(e.appUrl=this.appUrl),e}async getPairingResponseInfo(e){const t=new cL(e.id,this.name,await this.getPublicKey(),e.version,(await this.getRelayServer()).server);return this.iconUrl&&(t.icon=this.iconUrl),this.appUrl&&(t.appUrl=this.appUrl),t}async findBestRegionAndGetServer(){if(this.selectedRegion)return this.relayServer?.promiseResult;const e=Object.keys(this.ENABLED_RELAY_SERVERS),t=[],r=new CM;let n=0;const i=new CM;e.forEach((e=>{const o=this.ENABLED_RELAY_SERVERS[e]??[];if(0===o.length)return;n+=2;const a=(o=!0)=>{const c=Date.now();Promise.race([this.getBeaconInfo(s),i.promise]).then((i=>{"boolean"!==typeof i&&(t.push({time:Date.now()-c,server:s,region:e,result:i}),t.length>=n&&r.resolve(void 0),o||a(!0))}))},s=o[Math.floor(Math.random()*o.length)];a(!1)})),await Promise.race([r.promise,XD(1e3)]);let o=0;for(;t.length<=0;){if(o>=100)throw new Error("No server responded.");await XD(50),o++}i.resolve(!0);const a=t.reduce(((e,t)=>e.time0){const t=await this.getBeaconInfo(e);return this.relayServer.resolve({server:e,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:e,timestamp:t.timestamp}}const t=await this.findBestRegionAndGetServer();if(!t)throw new Error("No servers found");return this.storage.set(eL.MATRIX_SELECTED_NODE,t.server).catch((e=>YD.log(e))),this.relayServer.resolve({server:t.server,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:t.server,timestamp:t.timestamp}}async getBeaconInfo(e){return TD.get(`https://${e}/_synapse/client/beacon/info`).then((e=>({region:e.data.region,known_servers:e.data.known_servers,timestamp:Math.floor(e.data.timestamp)})))}async tryJoinRooms(e,t=1){try{await(await this.client.promise).joinRooms(e)}catch(r){t<=10&&"M_FORBIDDEN"===r.errcode?(YD.log("Retrying to join...",r),setTimeout((async()=>{await this.tryJoinRooms(e,t+1)}),200)):YD.log(`Failed to join after ${t} tries.`,r)}}async start(){YD.log("start","starting client"),YD.log("start","connecting to server");const e=await this.getRelayServer(),t=WD.create({baseUrl:`https://${e.server}`,storage:this.storage});if(this.initialListener=async e=>{this.initialEvent&&this.initialEvent.timestamp&&e&&e.timestamp?this.initialEvent.timestamp{let t;1===e.content.members.length&&(t=e.content.members[0]),await this.tryJoinRooms(e.content.roomId),t&&(await this.updateRelayServer(t),await this.updatePeerRoom(t,e.content.roomId))})),!e.timestamp)throw new Error("No timestamp received from relay server");const r=Math.floor(e.timestamp),n=`login:${Math.floor(r/300)}`;YD.log("start",`login ${n}, ${await this.getPublicKeyHash()} on ${e.server}`);const i=(0,is.hash)((0,MM.OW)(n),32),o=this.keyPair.secretKey??this.keyPair.privateKey,a=(0,ns.kq)(o,i);try{await t.start({id:await this.getPublicKeyHash(),password:`ed:${DM(a)}:${await this.getPublicKey()}`,deviceId:DM(this.keyPair.publicKey)})}catch(s){if(YD.error("start","Could not log in, retrying"),await this.reset(),!this.selectedRegion)throw new Error("No region selected.");if(this.loginCounter<=(this.ENABLED_RELAY_SERVERS[this.selectedRegion]??[]).length)return this.loginCounter++,void this.start();throw YD.error("start","Tried to log in to every known beacon node, but no login was successful."),new Error("Could not connect to any beacon nodes. Try again later.")}YD.log("start","login successful, client is ready"),this.client.resolve(t)}async stop(){YD.log("stop","stopping client"),this.client.isResolved()&&await(await this.client.promise).stop().catch((e=>YD.error(e))),await this.reset()}async reset(){YD.log("reset","resetting connection"),await this.storage.delete(eL.MATRIX_PEER_ROOM_IDS).catch((e=>YD.log(e))),await this.storage.delete(eL.MATRIX_PRESERVED_STATE).catch((e=>YD.log(e))),await this.storage.delete(eL.MATRIX_SELECTED_NODE).catch((e=>YD.log(e))),this.relayServer=void 0,this.client=new CM,this.initialEvent=void 0,this.initialListener=void 0}async listenForEncryptedMessage(e,t){if(this.activeListeners.has(e))return;YD.log("listenForEncryptedMessage",`start listening for encrypted messages from publicKey ${e}`);const r=await this.createCryptoBoxServer(e,this.keyPair),n=async n=>{if(this.isTextMessage(n.content)&&await this.isSender(n,e)){let o;await this.updateRelayServer(n.content.message.sender),await this.updatePeerRoom(n.content.message.sender,n.content.roomId);try{o=GD.from(n.content.message.content,"hex")}catch{}if(o&&o.length>=40)try{const n=await UM(o,r.receive);YD.log("listenForEncryptedMessage",`received a message from ${e}`,n),t(n)}catch(i){}}};this.activeListeners.set(e,n),(await this.client.promise).subscribe(VD.MESSAGE,n);const i=this.initialEvent;i&&i.timestamp&&(new Date).getTime()-i.timestamp<3e5?(YD.log("listenForEncryptedMessage","Handling previous event"),await n(i)):YD.log("listenForEncryptedMessage","No previous event found");const o=this.initialListener;o&&(await this.client.promise).unsubscribe(VD.MESSAGE,o),this.initialListener=void 0,this.initialEvent=void 0}async unsubscribeFromEncryptedMessage(e){const t=this.activeListeners.get(e);t&&((await this.client.promise).unsubscribe(VD.MESSAGE,t),this.activeListeners.delete(e))}async unsubscribeFromEncryptedMessages(){(await this.client.promise).unsubscribeAll(VD.MESSAGE),this.activeListeners.clear()}async sendMessage(e,t){const r=await this.createCryptoBoxClient(t.publicKey,this.keyPair),n=$M(await zM(GD.from(t.publicKey,"hex")),t.relayServer),i=await this.getRelevantRoom(n);await this.waitForJoin(i);const o=await FM(e,r.send);YD.log("sendMessage","sending encrypted message",t.publicKey,i,e),(await this.client.promise).sendTextMessage(i,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){YD.log("sendMessage","M_FORBIDDEN",i,e),await this.deleteRoomIdFromRooms(i);const t=await this.getRelevantRoom(n);YD.log("sendMessage","Old room deleted, new room created",t),(await this.client.promise).sendTextMessage(t,o).catch((async e=>{YD.log("sendMessage","inner error",t,e)}))}else YD.log("sendMessage","unexpected error",e)}))}async updatePeerRoom(e,t){YD.log("updatePeerRoom",e,t);const r=e.split(":");if(r.length<2||!r[0].startsWith("@"))throw new Error("Invalid sender");const n=await this.storage.get(eL.MATRIX_PEER_ROOM_IDS),i=n[e];i===t&&YD.debug("updatePeerRoom","rooms are the same, not updating"),YD.debug("updatePeerRoom","current room",i,"new room",t),i&&i[1]&&(YD.log("updatePeerRoom",`adding room "${i[1]}" to ignored array`),this.ignoredRooms.push(i[1])),n[e]=t,await this.storage.set(eL.MATRIX_PEER_ROOM_IDS,n)}async deleteRoomIdFromRooms(e){const t=await this.storage.get(eL.MATRIX_PEER_ROOM_IDS),r=Object.entries(t).filter((t=>t[1]!==e)).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{});await this.storage.set(eL.MATRIX_PEER_ROOM_IDS,r),this.ignoredRooms.push(e)}async listenForChannelOpening(e){YD.debug("listenForChannelOpening"),(await this.client.promise).subscribe(VD.MESSAGE,(async t=>{if(this.isTextMessage(t.content)&&await this.isChannelOpenMessage(t.content)){YD.log("listenForChannelOpening","channel opening received, trying to decrypt",JSON.stringify(t)),await this.updateRelayServer(t.content.message.sender),await this.updatePeerRoom(t.content.message.sender,t.content.roomId);const n=t.content.message.content.split(":"),i=GD.from(n[n.length-1],"hex");if(i.length>=40)try{const t=JSON.parse(await async function(e,t,r){const n=(0,ns.gL)(NM.from(r)),i=(0,ns.am)(NM.from(t)),o="string"===typeof e?(0,MM.OW)(e):e,a=o.slice(0,32),s=o.slice(32),c=new is.BLAKE2b(24).update(a,32).update(i,32).digest(),l=(0,RM.openBox)(a,n,c,s);if(!l)throw new Error("Decryption failed");return NM.from(l).toString()}(i,this.keyPair.publicKey,this.keyPair.secretKey));YD.log("listenForChannelOpening","channel opening received and decrypted",JSON.stringify(t)),e({...t,senderId:await kL(t.publicKey)})}catch(r){}}}))}async waitForJoin(e,t=0){const r=await(await this.client.promise).getRoomById(e);if(YD.log("waitForJoin",`Currently ${r.members.length} members, we need at least 2`),!(r.members.length>=2)){if(t<=200)return YD.log(`Waiting for join... Try: ${t}`),new Promise((r=>{setTimeout((()=>{r(this.waitForJoin(e,t+1))}),100*(t>50?10:1))}));throw new Error(`No one joined after ${t} tries.`)}}async sendPairingResponse(e){YD.log("sendPairingResponse");const t=$M(await zM(GD.from(e.publicKey,"hex")),e.relayServer),r=await(await this.client.promise).createTrustedPrivateRoom(t);YD.debug("sendPairingResponse",`Connecting to room "${r}"`),await this.updatePeerRoom(t,r),await this.waitForJoin(r),YD.debug("sendPairingResponse","Successfully joined room.");const n="undefined"===typeof e.version?await this.getPublicKey():JSON.stringify(await this.getPairingResponseInfo(e));YD.debug("sendPairingResponse","Sending pairing response",n);const i=await this.encryptMessageAsymmetric(e.publicKey,n),o=["@channel-open",t,i].join(":");(await this.client.promise).sendTextMessage(r,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){YD.log("sendPairingResponse","M_FORBIDDEN",r,e),await this.deleteRoomIdFromRooms(r);const n=await this.getRelevantRoom(t);YD.log("sendPairingResponse","Old room deleted, new room created",n),(await this.client.promise).sendTextMessage(n,o).catch((async e=>{YD.log("sendPairingResponse","inner error",n,e)}))}else YD.log("sendPairingResponse","unexpected error",e)}))}isTextMessage(e){return e.message.type===CD.TEXT}async updateRelayServer(e){YD.log("updateRelayServer",e);const t=e.split(":");if(t.length<2||!t[0].startsWith("@"))throw new Error("Invalid sender");const r=t.shift(),n=t.join(":"),i=localStorage.getItem("beacon:communication-peers-dapp")?new DL(this.storage,eL.TRANSPORT_P2P_PEERS_DAPP):new DL(this.storage,eL.TRANSPORT_P2P_PEERS_WALLET),o=(await i.getPeers()).map((async e=>{`@${await zM(GD.from(e.publicKey,"hex"))}`===r&&e.relayServer!==n&&(e.relayServer=n,await i.addPeer(e))}));await Promise.all(o)}async isChannelOpenMessage(e){return e.message.content.startsWith(`@channel-open:@${await zM(GD.from(await this.getPublicKey(),"hex"))}`)}async isSender(e,t){return e.content.message.sender.startsWith(`@${await zM(GD.from(t,"hex"))}`)}async getRelevantRoom(e){const t=await this.storage.get(eL.MATRIX_PEER_ROOM_IDS);let r=t[e];if(!r){YD.log("getRelevantRoom",`No room found for peer ${e}, checking joined ones.`);const n=await this.getRelevantJoinedRoom(e);r=n.id,t[e]=n.id,await this.storage.set(eL.MATRIX_PEER_ROOM_IDS,t)}return YD.log("getRelevantRoom",`Using room ${r}`),r}async getRelevantJoinedRoom(e){const t=await(await this.client.promise).joinedRooms;YD.log("checking joined rooms",t,e);const r=t.filter((e=>!this.ignoredRooms.some((t=>e.id===t)))).filter((t=>t.members.some((t=>t===e))));let n;if(0===r.length||this.ignoredRooms.length>0){YD.log("getRelevantJoinedRoom","no relevant rooms found, creating new one");const t=await(await this.client.promise).createTrustedPrivateRoom(e);n=await(await this.client.promise).getRoomById(t),YD.log("getRelevantJoinedRoom",`waiting for other party to join room: ${n.id}`),await this.waitForJoin(t),YD.log("getRelevantJoinedRoom",`new room created and peer invited: ${n.id}`)}else n=r[0],YD.log("getRelevantJoinedRoom",`channel already open, reusing room ${n.id}`);return n}}const QD=new AL("P2PTransport");class ez extends jL{type=QM.P2P;constructor(e,t,r,n,i,o,a){super(e,new JD(e,t,1,r,n,o,a),new DL(r,i))}static async isAvailable(){return Promise.resolve(!0)}async connect(){if(this._isConnected!==JM.NOT_CONNECTED)return;QD.log("connect"),this._isConnected=JM.CONNECTING,await this.client.start();const e=await this.getPeers();if(e.length>0){QD.log("connect",`connecting to ${e.length} peers`);const t=e.map((async e=>this.listen(e.publicKey)));Promise.all(t).catch((e=>QD.error("connect",e)))}return await this.startOpenChannelListener(),super.connect()}async disconnect(){return await this.client.stop(),super.disconnect()}async startOpenChannelListener(){}async getPairingRequestInfo(){return this.client.getPairingRequestInfo()}async listen(e){await this.client.listenForEncryptedMessage(e,(t=>{const r={origin:YM.P2P,id:e};this.notifyListeners(t,r).catch((e=>{throw e}))})).catch((e=>{throw e}))}}class tz extends ez{constructor(e,t,r,n,i,o){super(e,t,r,n,eL.TRANSPORT_P2P_PEERS_WALLET,i,o)}async addPeer(e,t=!0){await super.addPeer(e),t&&await this.client.sendPairingResponse(e)}}const rz=new AL("IncomingRequestInterceptor");class nz{static async intercept(e){rz.log("INTERCEPTING REQUEST",e.message),"2"===e.message.version?nz.handleV2Message(e):"3"===e.message.version&&nz.handleV3Message(e)}static async getAppMetadata(e,t){const r=await e.getAppMetadata(t);if(!r)throw new Error("AppMetadata not found");return r}static async handleV2Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e;switch(t.type){case qM.PermissionRequest:rz.log("PERMISSION REQUEST V*",t),t.appMetadata.beaconId&&!t.appMetadata.senderId&&(t.appMetadata.senderId=t.appMetadata.beaconId,delete t.appMetadata.beaconId),await n.addAppMetadata(t.appMetadata);i(t,r);break;case qM.OperationRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.SignPayloadRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.BroadcastRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.ProofOfEventChallengeRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.ProofOfEventChallengeRecorded:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;default:rz.log("intercept","Message not handled"),iz(t)}}static async handleV3Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e,o=t,a=o.message;switch(a.type){case qM.PermissionRequest:await n.addAppMetadata({...a.blockchainData.appMetadata,senderId:t.senderId});i(o,r);break;case qM.BlockchainRequest:i({...o},r);break;default:rz.log("intercept","Message not handled"),iz(a)}}}function iz(e){throw new Error("Function not implemented.")}const oz=new AL("OutgoingResponseInterceptor");class az{static async intercept(e){"2"===e.request.version?az.handleV2Message(e):"3"===e.request.version&&az.handleV3Message(e)}static async handleV3Message(e){const{message:t,appMetadataManager:r,interceptorCallback:n}=e,i=t.message;oz.log("LOGGING OUTGOING V3",i,r),n(t)}static async handleV2Message(e){const{senderId:t,request:r,message:n,ownAppMetadata:i,permissionManager:o,appMetadataManager:a,interceptorCallback:s}=e;switch(n.type){case qM.Error:{const e={type:n.type,version:"2",senderId:t,id:n.id,errorType:n.errorType};if(n.errorType===XM.TRANSACTION_INVALID_ERROR&&n.errorData){const t=n.errorData;Array.isArray(t)&&t.every((e=>Boolean(e.kind)&&Boolean(e.id)))?e.errorData=n.errorData:oz.warn("ErrorData provided is not in correct format. It needs to be an array of RPC errors. It will not be included in the message sent to the dApp")}s(e);break}case qM.Acknowledge:s({type:n.type,version:"2",senderId:t,id:n.id});break;case qM.PermissionResponse:{const e={senderId:t,version:"2",appMetadata:i,...n};if(!e.address&&!e.publicKey)throw new Error("Address or PublicKey must be defined");const c=e.publicKey,l=e.address??await async function(e){const t={edpk:{length:54,prefix:NM.from(new Uint8Array([6,161,159]))},sppk:{length:55,prefix:NM.from(new Uint8Array([6,161,161]))},p2pk:{length:55,prefix:NM.from(new Uint8Array([6,161,164]))}};let r,n;if(64===e.length)r=t.edpk.prefix,n=e;else{const i=Object.entries(t);for(let t=0;t{if(!["tz1","tz2","tz3","tz4","KT1","txr1","sr1"].some((t=>e.toLowerCase().startsWith(t.toLowerCase()))))return!1;try{jM.decode(e)}catch(t){return!1}return!0})(l))throw new Error(`Invalid address: "${l}"`);if("abstracted_account"===n.walletType&&"KT1"!==l.substring(0,3))throw new Error(`Invalid abstracted account address "${l}", it should be a KT1 address`);const u=await a.getAppMetadata(r.senderId);if(!u)throw new Error("AppMetadata not found");const d={accountIdentifier:await wL(l,e.network),senderId:r.senderId,appMetadata:u,website:"",address:l,publicKey:c,network:e.network,scopes:e.scopes,connectedAt:(new Date).getTime()};o.addPermission(d).catch(console.error),s(e);break}case qM.OperationResponse:s({senderId:t,version:"2",...n});break;case qM.SignPayloadResponse:s({senderId:t,version:"2",...n});break;case qM.BroadcastResponse:s({senderId:t,version:"2",...n});break;case qM.ProofOfEventChallengeResponse:s({senderId:t,version:"2",...n});break;default:oz.log("intercept","Message not handled"),function(e){throw new Error("Function not implemented.")}()}}}const sz=new AL("WalletClient");class cz extends TL{_isConnected=new CM;get isConnected(){return this._isConnected.promise}permissionManager;appMetadataManager;pendingRequests=[];constructor(e){super({storage:e&&e.storage?e.storage:new RL,...e}),this.permissionManager=new NL(this.storage),this.appMetadataManager=new LL(this.storage)}async init(){const e=await this.keyPair,t=new tz(this.name,e,this.storage,this.matrixNodes,this.iconUrl,this.appUrl);return super.init(t)}async connect(e){return this.handleResponse=async(t,r)=>{if("3"===t.version){const n=t;if(n.message.type===qM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),await this.sendAcknowledgeResponse(n,r),await nz.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}else{const n=t;if(n.type===qM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),"1"!==n.version&&await this.sendAcknowledgeResponse(n,r),await nz.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}},this._connect()}async getRegisterPushChallenge(e,t,r=fL){const n=(await xj.get(`${r}/challenge`)).data,i=DM(["Tezos Signed Message: ",n.id,n.timestamp,t,e].join(" "));return{challenge:n,payloadToSign:"0501"+i.length.toString(16).padStart(8,"0")+i}}async registerPush(e,t,r,n,i,o,a=fL){const s=await this.storage.get(eL.PUSH_TOKENS),c=s.find((e=>e.publicKey===n&&e.backendUrl===r));if(c)return c;const l=(await xj.post(`${a}/register`,{name:this.name,challenge:e,accountPublicKey:n,signature:t,backendUrl:r,protocolIdentifier:i,deviceId:o})).data,u={publicKey:n,backendUrl:r,accessToken:l.accessToken,managementToken:l.managementToken};return s.push(u),await this.storage.set(eL.PUSH_TOKENS,s),u}async _connect(){const e=await this.transport;e.connectionStatus===JM.NOT_CONNECTED&&(await e.connect(),e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new ML).deserialize(e);this.handleResponse(r,t)}})).catch((e=>sz.log("_connect",e))),this._isConnected.resolve(!0))}async respond(e){sz.log("RESPONSE",e);const t=this.pendingRequests.find((t=>t[0].id===e.id));if(!t)throw new Error("No matching request found!");this.pendingRequests=this.pendingRequests.filter((t=>t[0].id!==e.id)),await az.intercept({senderId:await kL(await this.beaconId),request:t[0],message:e,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t[1])}})}async getAppMetadataList(){return this.appMetadataManager.getAppMetadataList()}async getAppMetadata(e){return this.appMetadataManager.getAppMetadata(e)}async removeAppMetadata(e){return this.appMetadataManager.removeAppMetadata(e)}async removeAllAppMetadata(){return this.appMetadataManager.removeAllAppMetadata()}async getPermissions(){return this.permissionManager.getPermissions()}async getPermission(e){return this.permissionManager.getPermission(e)}async removePermission(e){return this.permissionManager.removePermission(e)}async removeAllPermissions(){return this.permissionManager.removeAllPermissions()}async getPeerInfo(e){const t=await kL(e.publicKey);return e instanceof lL?new uL(e.id,e.name,e.publicKey,e.version,t):e instanceof nL?new iL(e.id,e.name,e.publicKey,e.version,e.relayServer,t):e instanceof hL?new hL(e.id,e.name,e.publicKey,e.version,t,e.uri):{...e,senderId:t}}async addPeer(e,t=!0){return(await this.transport).addPeer(await this.getPeerInfo(e),t)}async removePeer(e,t=!1){const r=(await this.transport).removePeer(e);return await this.removePermissionsForPeers([e]),t&&await this.sendDisconnectToPeer(e),r}async removeAllPeers(e=!1){const t=await(await this.transport).getPeers(),r=(await this.transport).removeAllPeers();if(await this.removePermissionsForPeers(t),e){const e=t.map((e=>this.sendDisconnectToPeer(e)));await Promise.all(e)}return r}async removePermissionsForPeers(e){const t=await this.permissionManager.getPermissions(),r=e.map((e=>e.senderId)),n=t.filter((e=>r.includes(e.appMetadata.senderId))).map((e=>e.accountIdentifier));await this.permissionManager.removePermissions(n)}async sendAcknowledgeResponse(e,t){const r={id:e.id,type:qM.Acknowledge};await az.intercept({senderId:await kL(await this.beaconId),request:e,message:r,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t)}})}async respondToMessage(e,t){const r=await(new ML).serialize(e);if(t){const e=(await this.getPeers()).find((e=>e.publicKey===t.id));await(await this.transport).send(r,e)}else await(await this.transport).send(r)}async disconnect(e){const t=await this.transport,r=(await t.getPeers()).find((t=>t.senderId===e));r&&await this.removePeer(r)}}function lz(e){const{theme:t}=Tn(),r=SP();return(0,i.useMemo)((()=>function(e,t){const r=r=>{var n;return{...t,...r,position:HA(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{const t=r(e),n=sP(t);return iP.notify(n,t)};return n.update=(e,t)=>{iP.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then((e=>n.update(r,{status:"success",duration:5e3,...x(t.success,e)}))).catch((e=>n.update(r,{status:"error",duration:5e3,...x(t.error,e)})))},n.closeAll=iP.closeAll,n.close=iP.close,n.isActive=iP.isActive,n}(t.direction,{...r,...e})),[e,t.direction,r])}var uz={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:null!=(o=null==r?void 0:r.exit)?o:_I(wI.exit,i),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:xI(wI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:i,delay:o})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==r?void 0:r.exit)?a:_I(wI.exit,o),...i?{...s,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...s,...null==n?void 0:n.exit}}}}},dz={initial:"initial",animate:"enter",exit:"exit",variants:uz},hz=(0,i.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:c,transitionEnd:l,delay:u,...d}=e,h=!r||n&&r,f=n||r?"enter":"exit",p={offsetX:a,offsetY:s,reverse:i,transition:c,transitionEnd:l,delay:u};return(0,xn.jsx)(pP,{custom:p,children:h&&(0,xn.jsx)(FA.div,{ref:t,className:y("chakra-offset-slide",o),custom:p,...dz,animate:f,...d})})}));hz.displayName="SlideFade";var fz={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(o=null==r?void 0:r.exit)?o:_I(wI.exit,i)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:xI(wI.enter,r),transitionEnd:null==e?void 0:e.enter}}},pz={initial:"exit",animate:"enter",exit:"exit",variants:fz},mz=(0,i.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:c,delay:l,...u}=e,d=!r||n&&r,h=n||r?"enter":"exit",f={initialScale:o,reverse:i,transition:s,transitionEnd:c,delay:l};return(0,xn.jsx)(pP,{custom:f,children:d&&(0,xn.jsx)(FA.div,{ref:t,className:y("chakra-offset-slide",a),...pz,animate:h,custom:f,...u})})}));mz.displayName="ScaleFade";var gz={slideInBottom:{...dz,custom:{offsetY:16,reverse:!0}},slideInRight:{...dz,custom:{offsetX:16,reverse:!0}},slideInTop:{...dz,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...dz,custom:{offsetX:-16,reverse:!0}},scale:{...pz,custom:{initialScale:.95,reverse:!0}},none:{}},vz=wn(FA.section),yz=e=>gz[e||"none"],bz=(0,i.forwardRef)(((e,t)=>{const{preset:r,motionProps:n=yz(r),...i}=e;return(0,xn.jsx)(vz,{ref:t,...n,...i})}));function wz(){return wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0})).sort(Xz)},Qz=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),eB="".concat(Qz,", [data-focus-guard]"),tB=function(e,t){return Nz((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?eB:Qz)?[r]:[],tB(r))}),[])},rB=function(e,t){return e.reduce((function(e,r){var n,i=tB(r,t),o=(n=[]).concat.apply(n,i.map((function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?rB([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(o,r.parentNode?Nz(r.parentNode.querySelectorAll(Qz)).filter((function(e){return e===r})):[])}),[])},nB=function(e,t){return Nz(e).filter((function(e){return $z(t,e)})).filter((function(e){return function(e){return!((qz(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},iB=function(e,t){return void 0===t&&(t=new Map),Nz(e).filter((function(e){return Hz(t,e)}))},oB=function(e,t,r){return Jz(nB(rB(e,r),t),!0,r)},aB=function(e,t){return Jz(nB(rB(e),t),!1)},sB=function(e,t){return nB(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return Nz(t).map((function(e){return rB([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},cB=function(e,t){return e.shadowRoot?cB(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Nz(e.children).some((function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&cB(n,t)}return cB(e,t)}))},lB=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?lB(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(Mde){return}}((function(){return t.contentWindow.document}))?lB(t.contentWindow.document):t}},uB=function(e){return e.parentNode?uB(e.parentNode):e},dB=function(e){return Dz(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(xz);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(Nz(uB(t).querySelectorAll("[".concat(xz,'="').concat(r,'"]:not([').concat(_z,'="disabled"])')))):[t]),e}),[])},hB=function(e,t){return void 0===t&&(t=lB(zz(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&dB(e).some((function(e){return cB(e,t)||function(e,t){return Boolean(Nz(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},fB=function(e,t){return Kz(e)&&e.name?function(e,t){return t.filter(Kz).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},pB=function(e){return e[0]&&e.length>1?fB(e[0],e):e[0]},mB=function(e,t){return e.length>1?e.indexOf(fB(e[t],e)):t},gB="NEW_FOCUS",vB=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=Gz(r);if(!(r&&e.indexOf(r)>=0)){var c=void 0!==r?t.indexOf(r):-1,l=n?t.indexOf(n):c,u=n?e.indexOf(n):-1,d=c-l,h=t.indexOf(o),f=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(r){return t.add(fB(r,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==r?p.indexOf(r):-1)-(n?p.indexOf(n):c),g=mB(e,0),v=mB(e,i-1);return-1===c||-1===u?gB:!d&&u>=0?u:c<=h&&s&&Math.abs(d)>1?v:c>=f&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?u:c<=h?v:c>f?g:d?Math.abs(d)>1?u:(i+u+d)%i:void 0}},yB=function(e,t,r){var n,i=e.map((function(e){return e.node})),o=iB(i.filter((n=r,function(e){var t,r=null===(t=Vz(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return o&&o.length?pB(o):pB(iB(t))},bB=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&bB(e.parentNode.host||e.parentNode,t),t},wB=function(e,t){for(var r=bB(e),n=bB(t),i=0;i=0)return o}return!1},xB=function(e,t,r){var n=Dz(e),i=Dz(t),o=n[0],a=!1;return i.filter(Boolean).forEach((function(e){a=wB(a||e,e)||a,r.filter(Boolean).forEach((function(e){var t=wB(o,e);t&&(a=!a||cB(t,a)?t:wB(t,a))}))})),a},_B=function(e,t){var r=lB(Dz(e).length>0?document:zz(e).ownerDocument),n=dB(e).filter(Yz),i=xB(r||e,e,n),o=new Map,a=aB(n,o),s=oB(n,o).filter((function(e){var t=e.node;return Yz(t)}));if(s[0]||(s=a)[0]){var c=aB([i],o).map((function(e){return e.node})),l=function(e,t){var r=new Map;return t.forEach((function(e){return r.set(e.node,e)})),e.map((function(e){return r.get(e)})).filter(Zz)}(c,s),u=l.map((function(e){return e.node})),d=vB(u,c,r,t);if(d===gB){var h=yB(a,u,function(e,t){return e.reduce((function(e,r){return e.concat(sB(r,t))}),[])}(n,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:l[d]}},SB=0,kB=!1,EB=function(e,t,r){void 0===r&&(r={});var n,i,o=_B(e,t);if(!kB&&o){if(SB>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),kB=!0,void setTimeout((function(){kB=!1}),1);SB++,n=o.node,i=r.focusOptions,"focus"in n&&n.focus(i),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),SB--}};function AB(e){setTimeout(e,1)}var PB=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=lB(e);return!!t&&Nz(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return cB(e,t)}))}()},OB=null,TB=null,CB=null,jB=!1,RB=function(){return!0};function IB(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var MB=function(e){return e&&"current"in e?e.current:e},LB=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},NB=function(){var e,t=!1;if(OB){var r=OB,n=r.observed,i=r.persistentFocus,o=r.autoFocus,a=r.shards,s=r.crossFrame,c=r.focusOptions,l=n||CB&&CB.portaledElement,u=document&&document.activeElement;if(l){var d=[l].concat(a.map(MB).filter(Boolean));if(u&&!function(e){return(OB.whiteList||RB)(e)}(u)||(i||(s?Boolean(jB):"meanwhile"===jB)||!PB()||!TB&&o)&&(l&&!(hB(d)||u&&function(e,t){return t.some((function(t){return LB(e,t,t)}))}(u,d)||(e=u,CB&&CB.portaledElement===e))&&(document&&!TB&&u&&!o?(u.blur&&u.blur(),document.body.focus()):(t=EB(d,TB,{focusOptions:c}),CB={})),jB=!1,TB=document&&document.activeElement),document){var h=document&&document.activeElement,f=function(e){var t=dB(e).filter(Yz),r=xB(e,e,t),n=new Map,i=oB([r],n,!0),o=oB(t,n).filter((function(e){var t=e.node;return Yz(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Gz(t)}}))}(d),p=f.map((function(e){return e.node})).indexOf(h);p>-1&&(f.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),IB(p,f.length,1,f),IB(p,-1,-1,f))}}}return t},DB=function(e){NB()&&e&&(e.stopPropagation(),e.preventDefault())},zB=function(){return AB(NB)},BB=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(CB={observerNode:r,portaledElement:t})},FB=function(){jB="just",AB((function(){jB="meanwhile"}))};Ez.assignSyncMedium(BB),Az.assignMedium(zB),Pz.assignMedium((function(e){return e({moveFocusInside:EB,focusInside:hB})}));const UB=Lz((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!OB&&(document.addEventListener("focusin",DB),document.addEventListener("focusout",zB),window.addEventListener("blur",FB));var r=OB,n=r&&t&&t.id===r.id;OB=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(TB=null,n&&r.observed===t.observed||t.onActivation(),NB(),AB(NB)):(document.removeEventListener("focusin",DB),document.removeEventListener("focusout",zB),window.removeEventListener("blur",FB),TB=null)}))((function(){return null}));var $B=i.forwardRef((function(e,t){return i.createElement(jz,wz({sideCar:UB,ref:t},e))})),HB=jz.propTypes||{};HB.sideCar,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r])}(HB,["sideCar"]);$B.propTypes={};const VB=$B;function qB(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function KB(e){var t;if(!qB(e))return!1;return e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function WB(e){return qB(e)?e.ownerDocument:document}var GB=e=>e.hasAttribute("tabindex"),YB=e=>GB(e)&&-1===e.tabIndex;function ZB(e){return!(!e.parentElement||!ZB(e.parentElement))||e.hidden}function XB(e){if(!KB(e)||ZB(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||GB(e)}var JB,QB=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),eF=e=>e.offsetWidth>0&&e.offsetHeight>0;function tF(e){const t=Array.from(e.querySelectorAll(QB));return t.unshift(e),t.filter((e=>XB(e)&&eF(e)))}var rF=null!=(JB=VB.default)?JB:VB,nF=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:a,isDisabled:s,autoFocus:c,persistentFocus:l,lockFocusAcrossFrames:u}=e,d=(0,i.useCallback)((()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==n?void 0:n.current){0===tF(n.current).length&&requestAnimationFrame((()=>{var e;null==(e=n.current)||e.focus()}))}}),[t,n]),h=(0,i.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),f=o&&!r;return(0,xn.jsx)(rF,{crossFrame:u,persistentFocus:l,autoFocus:c,disabled:s,onActivation:d,onDeactivation:h,returnFocus:f,children:a})};nF.displayName="FocusLock";function iF(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:c,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:h}=hI(),[f,p]=Pb();(0,i.useEffect)((()=>{!f&&p&&setTimeout(p)}),[f,p]);const m=QR(n,h);return(0,xn.jsx)(nF,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:c,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:d,children:(0,xn.jsx)(kM,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===m&&a,forwardProps:!0,children:e.children})})}var oF=v(((e,t)=>{const{className:r,children:n,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c}=hI(),l=s(a,t),u=c(i),d=y("chakra-modal__content",r),h=uI(),f={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:m}=hI();return(0,xn.jsx)(iF,{children:(0,xn.jsx)(wn.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:(0,xn.jsx)(bz,{preset:m,motionProps:o,className:d,...l,__css:f,children:n})})})}));oF.displayName="ModalContent";var aF=v(((e,t)=>{const{onClick:r,className:n,...i}=e,{onClose:o}=hI(),a=y("chakra-modal__close-btn",n),s=uI();return(0,xn.jsx)(nP,{ref:t,__css:s.closeButton,className:a,onClick:E(r,(e=>{e.stopPropagation(),o()})),...i})}));aF.displayName="ModalCloseButton";var sF=v(((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:a}=hI();(0,i.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=y("chakra-modal__header",r),c={flex:0,...uI().header};return(0,xn.jsx)(wn.header,{ref:t,className:s,id:o,...n,__css:c})}));function cF(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}sF.displayName="ModalHeader";var lF=v((function(e,t){const r=In("Text",e),{className:n,align:i,decoration:o,casing:a,...s}=ft(e),c=cF({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,xn.jsx)(wn.p,{ref:t,className:y("chakra-text",e.className),...c,...s,__css:r})}));lF.displayName="Text";var uF=v(((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:a}=hI();(0,i.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=y("chakra-modal__body",r),c=uI();return(0,xn.jsx)(wn.div,{ref:t,className:s,id:o,...n,__css:c.body})}));uF.displayName="ModalBody";Object.freeze(["base","sm","md","lg","xl","2xl"]);function dF(e,t){return Array.isArray(e)?e.map((e=>null===e?null:t(e))):b(e)?Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n]),r)),{}):null!=e?t(e):null}var hF=v((function(e,t){const{ratio:r=4/3,children:n,className:o,...a}=e,s=i.Children.only(n),c=y("chakra-aspect-ratio",o);return(0,xn.jsx)(wn.div,{ref:t,position:"relative",className:c,_before:{height:0,content:'""',display:"block",paddingBottom:dF(r,(e=>1/e*100+"%"))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...a,children:s})}));hF.displayName="AspectRatio";var fF=Object.defineProperty,pF=(e,t,r)=>(((e,t,r)=>{t in e?fF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r);function mF(e){return e.sort(((e,t)=>{const r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function gF(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function vF(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var yF="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,bF=e=>e,wF=class{constructor(){pF(this,"descendants",new Map),pF(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),pF(this,"unregister",(e=>{this.descendants.delete(e);const t=mF(Array.from(this.descendants.keys()));this.assignIndex(t)})),pF(this,"destroy",(()=>{this.descendants.clear()})),pF(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()}))})),pF(this,"count",(()=>this.descendants.size)),pF(this,"enabledCount",(()=>this.enabledValues().length)),pF(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),pF(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),pF(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),pF(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),pF(this,"first",(()=>this.item(0))),pF(this,"firstEnabled",(()=>this.enabledItem(0))),pF(this,"last",(()=>this.item(this.descendants.size-1))),pF(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),pF(this,"indexOf",(e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1})),pF(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),pF(this,"next",((e,t=!0)=>{const r=gF(e,this.count(),t);return this.item(r)})),pF(this,"nextEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=gF(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)})),pF(this,"prev",((e,t=!0)=>{const r=vF(e,this.count()-1,t);return this.item(r)})),pF(this,"prevEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=vF(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)})),pF(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const r=mF(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)}))}};var[xF,_F]=Nn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function SF(){return[bF(xF),()=>bF(_F()),()=>function(){const e=(0,i.useRef)(new wF);return yF((()=>()=>e.current.destroy())),e.current}(),e=>function(e){const t=_F(),[r,n]=(0,i.useState)(-1),o=(0,i.useRef)(null);yF((()=>()=>{o.current&&t.unregister(o.current)}),[]),yF((()=>{if(!o.current)return;const e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||n(e)}));const a=bF(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:Kn(a,o)}}(e)]}var[kF,EF]=Nn({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[AF,PF]=Nn({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[OF,TF,CF,jF]=SF();function RF(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=((e,t)=>e!==t)}=e,a=kb(n),s=kb(o),[c,l]=(0,i.useState)(r),u=void 0!==t,d=u?t:c,h=kb((e=>{const t="function"===typeof e?e(d):e;s(d,t)&&(u||l(t),a(t))}),[u,a,d,s]);return[d,h]}function IF(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:o,allowToggle:a,...s}=e;!function(e){const t=e.index||e.defaultIndex,r=null!=t&&!Array.isArray(t)&&e.allowMultiple;w({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}(e),function(e){w({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);const c=CF(),[l,u]=(0,i.useState)(-1);(0,i.useEffect)((()=>()=>{u(-1)}),[]);const[d,h]=RF({value:n,defaultValue:()=>o?null!=r?r:[]:null!=r?r:-1,onChange:t});return{index:d,setIndex:h,htmlProps:s,getAccordionItemProps:e=>{let t=!1;null!==e&&(t=Array.isArray(d)?d.includes(e):d===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&Array.isArray(d)){const r=t?d.concat(e):d.filter((t=>t!==e));h(r)}else t?h(e):a&&h(-1)}}},focusedIndex:l,setFocusedIndex:u,descendants:c}}var[MF,LF]=Nn({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function NF(e){const{isDisabled:t,isFocusable:r,id:n,...o}=e,{getAccordionItemProps:a,setFocusedIndex:s}=LF(),c=(0,i.useRef)(null),l=(0,i.useId)(),u=null!=n?n:l,d=`accordion-button-${u}`,h=`accordion-panel-${u}`;!function(e){w({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);const{register:f,index:p,descendants:m}=jF({disabled:t&&!r}),{isOpen:g,onChange:v}=a(-1===p?null:p);!function(e){w({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:g,isDisabled:t});const y=(0,i.useCallback)((()=>{null==v||v(!g),s(p)}),[p,s,g,v]),b=(0,i.useCallback)((e=>{const t={ArrowDown:()=>{const e=m.nextEnabled(p);null==e||e.node.focus()},ArrowUp:()=>{const e=m.prevEnabled(p);null==e||e.node.focus()},Home:()=>{const e=m.firstEnabled();null==e||e.node.focus()},End:()=>{const e=m.lastEnabled();null==e||e.node.focus()}},r=t[e.key];r&&(e.preventDefault(),r(e))}),[m,p]),x=(0,i.useCallback)((()=>{s(p)}),[s,p]),_=(0,i.useCallback)((function(e={},r=null){return{...e,type:"button",ref:Kn(f,c,r),id:d,disabled:!!t,"aria-expanded":!!g,"aria-controls":h,onClick:E(e.onClick,y),onFocus:E(e.onFocus,x),onKeyDown:E(e.onKeyDown,b)}}),[d,t,g,y,x,b,h,f]),S=(0,i.useCallback)((function(e={},t=null){return{...e,ref:t,role:"region",id:h,"aria-labelledby":d,hidden:!g}}),[d,g,h]);return{isOpen:g,isDisabled:t,isFocusable:r,onOpen:()=>{null==v||v(!0)},onClose:()=>{null==v||v(!1)},getButtonProps:_,getPanelProps:S,htmlProps:o}}var DF=v((function({children:e,reduceMotion:t,...r},n){const o=Mn("Accordion",r),a=ft(r),{htmlProps:s,descendants:c,...l}=IF(a),u=(0,i.useMemo)((()=>({...l,reduceMotion:!!t})),[l,t]);return(0,xn.jsx)(OF,{value:c,children:(0,xn.jsx)(MF,{value:u,children:(0,xn.jsx)(kF,{value:o,children:(0,xn.jsx)(wn.div,{ref:n,...s,className:y("chakra-accordion",r.className),__css:o.root,children:e})})})})}));DF.displayName="Accordion";var zF=v((function(e,t){const{children:r,className:n}=e,{htmlProps:o,...a}=NF(e),s={...EF().container,overflowAnchor:"none"},c=(0,i.useMemo)((()=>a),[a]);return(0,xn.jsx)(AF,{value:c,children:(0,xn.jsx)(wn.div,{ref:t,...o,className:y("chakra-accordion__item",n),__css:s,children:"function"===typeof r?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})}));zF.displayName="AccordionItem";var BF=v((function(e,t){const{getButtonProps:r}=PF(),n=r(e,t),i={display:"flex",alignItems:"center",width:"100%",outline:0,...EF().button};return(0,xn.jsx)(wn.button,{...n,className:y("chakra-accordion__button",e.className),__css:i})}));function FF(e){const{isOpen:t,isDisabled:r}=PF(),{reduceMotion:n}=LF(),i=y("chakra-accordion__icon",e.className),o={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...EF().icon};return(0,xn.jsx)(qA,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}BF.displayName="AccordionButton",FF.displayName="AccordionIcon";var UF=e=>null!=e&&parseInt(e.toString(),10)>0,$F={exit:{height:{duration:.2,ease:pI.ease},opacity:{duration:.3,ease:pI.ease}},enter:{height:{duration:.3,ease:pI.ease},opacity:{duration:.4,ease:pI.ease}}},HF={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:UF(t)?1:0},height:t,transitionEnd:null==n?void 0:n.exit,transition:null!=(o=null==r?void 0:r.exit)?o:_I($F.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:null==n?void 0:n.enter,transition:null!=(o=null==r?void 0:r.enter)?o:xI($F.enter,i)}}},VF=(0,i.forwardRef)(((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:a=0,endingHeight:s="auto",style:c,className:l,transition:u,transitionEnd:d,...h}=e,[f,p]=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=setTimeout((()=>{p(!0)}));return()=>clearTimeout(e)}),[]),w({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,g={startingHeight:a,endingHeight:s,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:null==d?void 0:d.enter,exit:n?null==d?void 0:d.exit:{...null==d?void 0:d.exit,display:m?"block":"none"}}},v=!n||r,b=r||n?"enter":"exit";return(0,xn.jsx)(pP,{initial:!1,custom:g,children:v&&(0,xn.jsx)(FA.div,{ref:t,...h,className:y("chakra-collapse",l),style:{overflow:"hidden",display:"block",...c},custom:g,variants:HF,initial:!!n&&"exit",animate:b,exit:"exit"})})}));VF.displayName="Collapse";var qF=v((function(e,t){const{className:r,motionProps:n,...i}=e,{reduceMotion:o}=LF(),{getPanelProps:a,isOpen:s}=PF(),c=a(i,t),l=y("chakra-accordion__panel",r),u=EF();o||delete c.hidden;const d=(0,xn.jsx)(wn.div,{...c,__css:u.panel,className:l});return o?d:(0,xn.jsx)(VF,{in:s,...n,children:d})}));qF.displayName="AccordionPanel";var[KF,WF]=Nn({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[GF,YF]=Nn({strict:!1,name:"FormControlContext"});var ZF=v((function(e,t){const r=Mn("Form",e),n=ft(e),{getRootProps:o,htmlProps:a,...s}=function(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...s}=e,c=(0,i.useId)(),l=t||`field-${c}`,u=`${l}-label`,d=`${l}-feedback`,h=`${l}-helptext`,[f,p]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(!1),b=(0,i.useCallback)(((e={},t=null)=>({id:h,...e,ref:Kn(t,(e=>{e&&g(!0)}))})),[h]),w=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":S(v),"data-disabled":S(o),"data-invalid":S(n),"data-readonly":S(a),id:void 0!==e.id?e.id:u,htmlFor:void 0!==e.htmlFor?e.htmlFor:l})),[l,o,v,n,a,u]),x=(0,i.useCallback)(((e={},t=null)=>({id:d,...e,ref:Kn(t,(e=>{e&&p(!0)})),"aria-live":"polite"})),[d]),_=(0,i.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":S(v),"data-disabled":S(o),"data-invalid":S(n),"data-readonly":S(a)})),[s,o,v,n,a]),k=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:g,id:l,labelId:u,feedbackId:d,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:x,getRootProps:_,getLabelProps:w,getRequiredIndicatorProps:k}}(n),c=y("chakra-form-control",e.className);return(0,xn.jsx)(GF,{value:s,children:(0,xn.jsx)(KF,{value:r,children:(0,xn.jsx)(wn.div,{...o({},t),className:c,__css:r.container})})})}));ZF.displayName="FormControl";var XF=v((function(e,t){const r=YF(),n=WF(),i=y("chakra-form__helper-text",e.className);return(0,xn.jsx)(wn.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}));XF.displayName="FormHelperText";var[JF,QF]=Nn({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),eU=v(((e,t)=>{const r=Mn("FormError",e),n=ft(e),i=YF();return(null==i?void 0:i.isInvalid)?(0,xn.jsx)(JF,{value:r,children:(0,xn.jsx)(wn.div,{...null==i?void 0:i.getErrorMessageProps(n,t),className:y("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null}));eU.displayName="FormErrorMessage";var tU=v(((e,t)=>{const r=QF(),n=YF();if(!(null==n?void 0:n.isInvalid))return null;const i=y("chakra-form__error-icon",e.className);return(0,xn.jsx)(qA,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}));tU.displayName="FormErrorIcon";var rU=v(((e,t)=>{const{className:r,...n}=e,i=y("chakra-modal__footer",r),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...uI().footer};return(0,xn.jsx)(wn.footer,{ref:t,...n,__css:o,className:i})}));rU.displayName="ModalFooter";var nU=e=>"checkbox"===e.type,iU=e=>e instanceof Date,oU=e=>null==e;const aU=e=>"object"===typeof e;var sU=e=>!oU(e)&&!Array.isArray(e)&&aU(e)&&!iU(e),cU=e=>sU(e)&&e.target?nU(e.target)?e.target.checked:e.target.value:e,lU=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),uU=e=>{const t=e.constructor&&e.constructor.prototype;return sU(t)&&t.hasOwnProperty("isPrototypeOf")},dU="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function hU(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(dU&&(e instanceof Blob||e instanceof FileList)||!r&&!sU(e))return e;if(t=r?[]:{},r||uU(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=hU(e[r]));else t=e}return t}var fU=e=>Array.isArray(e)?e.filter(Boolean):[],pU=e=>void 0===e,mU=(e,t,r)=>{if(!t||!sU(e))return r;const n=fU(t.split(/[,[\].]+?/)).reduce(((e,t)=>oU(e)?e:e[t]),e);return pU(n)||n===e?pU(e[t])?r:e[t]:n},gU=e=>"boolean"===typeof e;const vU={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yU={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bU="max",wU="min",xU="maxLength",_U="minLength",SU="pattern",kU="required",EU="validate",AU=i.createContext(null),PU=()=>i.useContext(AU),OU=e=>{const{children:t,...r}=e;return i.createElement(AU.Provider,{value:r},t)};var TU=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==yU.all&&(t._proxyFormState[i]=!n||yU.all),r&&(r[i]=!0),e[i]}});return i},CU=e=>sU(e)&&!Object.keys(e).length,jU=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return CU(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||yU.all)))},RU=e=>Array.isArray(e)?e:[e];function IU(e){const t=i.useRef(e);t.current=e,i.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}var MU=e=>"string"===typeof e,LU=(e,t,r,n,i)=>MU(e)?(n&&t.watch.add(e),mU(r,e,i)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),mU(r,e)))):(n&&(t.watchAll=!0),r);var NU=e=>/^\w*$/.test(e),DU=e=>fU(e.replace(/["|']|\]/g,"").split(/\.|\[/)),zU=(e,t,r)=>{let n=-1;const i=NU(t)?[t]:DU(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},FU=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},UU=(e,t,r={})=>r.shouldFocus||pU(r.shouldFocus)?r.focusName||`${e}.${pU(r.focusIndex)?t:r.focusIndex}.`:"",$U=e=>({isOnSubmit:!e||e===yU.onSubmit,isOnBlur:e===yU.onBlur,isOnChange:e===yU.onChange,isOnAll:e===yU.all,isOnTouch:e===yU.onTouched}),HU=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const VU=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const r=mU(e,i);if(r){const{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;VU(o,t)}else sU(o)&&VU(o,t)}}};var qU=(e,t,r)=>{const n=fU(mU(e,r));return zU(n,"root",t[r]),zU(e,r,n),e},KU=e=>"file"===e.type,WU=e=>"function"===typeof e,GU=e=>{if(!dU)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},YU=e=>MU(e),ZU=e=>"radio"===e.type,XU=e=>e instanceof RegExp;const JU={value:!1,isValid:!1},QU={value:!0,isValid:!0};var e$=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!pU(e[0].attributes.value)?pU(e[0].value)||""===e[0].value?QU:{value:e[0].value,isValid:!0}:QU:JU}return JU};const t$={isValid:!1,value:null};var r$=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),t$):t$;function n$(e,t,r="validate"){if(YU(e)||Array.isArray(e)&&e.every(YU)||gU(e)&&!e)return{type:r,message:YU(e)?e:"",ref:t}}var i$=e=>sU(e)&&!XU(e)?e:{value:e,message:""},o$=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:l,min:u,max:d,pattern:h,validate:f,name:p,valueAsNumber:m,mount:g,disabled:v}=e._f,y=mU(t,p);if(!g||v)return{};const b=a?a[0]:o,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(gU(e)?"":e||""),b.reportValidity())},x={},_=ZU(o),S=nU(o),k=_||S,E=(m||KU(o))&&pU(o.value)&&pU(y)||GU(o)&&""===o.value||""===y||Array.isArray(y)&&!y.length,A=BU.bind(null,p,r,x),P=(e,t,r,n=xU,i=_U)=>{const a=e?t:r;x[p]={type:e?n:i,message:a,ref:o,...A(e?n:i,a)}};if(i?!Array.isArray(y)||!y.length:s&&(!k&&(E||oU(y))||gU(y)&&!y||S&&!e$(a).isValid||_&&!r$(a).isValid)){const{value:e,message:t}=YU(s)?{value:!!s,message:s}:i$(s);if(e&&(x[p]={type:kU,message:t,ref:b,...A(kU,t)},!r))return w(t),x}if(!E&&(!oU(u)||!oU(d))){let e,t;const n=i$(d),i=i$(u);if(oU(y)||isNaN(y)){const r=o.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,c="week"==o.type;MU(n.value)&&y&&(e=s?a(y)>a(n.value):c?y>n.value:r>new Date(n.value)),MU(i.value)&&y&&(t=s?a(y)n.value),oU(i.value)||(t=r+e.value,i=!oU(t.value)&&y.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return w(x[p].message),x}if(h&&!E&&MU(y)){const{value:e,message:t}=i$(h);if(XU(e)&&!y.match(e)&&(x[p]={type:SU,message:t,ref:o,...A(SU,t)},!r))return w(t),x}if(f)if(WU(f)){const e=n$(await f(y,t),b);if(e&&(x[p]={...e,...A(EU,e.message)},!r))return w(e.message),x}else if(sU(f)){let e={};for(const n in f){if(!CU(e)&&!r)break;const i=n$(await f[n](y,t),b,n);i&&(e={...i,...A(n,i.message)},w(i.message),r&&(x[p]=e))}if(!CU(e)&&(x[p]={ref:b,...e},!r))return x}return w(!0),x},a$=(e,t)=>[...e,...RU(t)],s$=e=>Array.isArray(e)?e.map((()=>{})):void 0;function c$(e,t,r){return[...e.slice(0,t),...RU(r),...e.slice(t)]}var l$=(e,t,r)=>Array.isArray(e)?(pU(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],u$=(e,t)=>[...RU(t),...RU(e)];var d$=(e,t)=>pU(t)?[]:function(e,t){let r=0;const n=[...e];for(const i of t)n.splice(i-r,1),r++;return fU(n).length?n:[]}(e,RU(t).sort(((e,t)=>e-t))),h$=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function f$(e,t){const r=Array.isArray(t)?t:NU(t)?[t]:DU(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);var m$=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},g$=e=>oU(e)||!aU(e);function v$(e,t){if(g$(e)||g$(t))return e===t;if(iU(e)&&iU(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=t[i];if(iU(r)&&iU(e)||sU(r)&&sU(e)||Array.isArray(r)&&Array.isArray(e)?!v$(r,e):r!==e)return!1}}return!0}var y$=e=>"select-multiple"===e.type,b$=e=>ZU(e)||nU(e),w$=e=>GU(e)&&e.isConnected,x$=e=>{for(const t in e)if(WU(e[t]))return!0;return!1};function _$(e,t={}){const r=Array.isArray(e);if(sU(e)||r)for(const n in e)Array.isArray(e[n])||sU(e[n])&&!x$(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_$(e[n],t[n])):oU(e[n])||(t[n]=!0);return t}function S$(e,t,r){const n=Array.isArray(e);if(sU(e)||n)for(const i in e)Array.isArray(e[i])||sU(e[i])&&!x$(e[i])?pU(t)||g$(r[i])?r[i]=Array.isArray(e[i])?_$(e[i],[]):{..._$(e[i])}:S$(e[i],oU(t)?{}:t[i],r[i]):r[i]=!v$(e[i],t[i]);return r}var k$=(e,t)=>S$(e,t,_$(t)),E$=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>pU(e)?e:t?""===e?NaN:e?+e:e:r&&MU(e)?new Date(e):n?n(e):e;function A$(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return KU(t)?t.files:ZU(t)?r$(e.refs).value:y$(t)?[...t.selectedOptions].map((({value:e})=>e)):nU(t)?e$(e.refs).value:E$(pU(t.value)?e.ref.value:t.value,e)}var P$=(e,t,r,n)=>{const i={};for(const o of e){const e=mU(t,o);e&&zU(i,o,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},O$=e=>pU(e)?e:XU(e)?e.source:sU(e)?XU(e.value)?e.value.source:e.value:e,T$=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function C$(e,t,r){const n=mU(e,r);if(n||NU(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),o=mU(t,n),a=mU(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var j$=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e),R$=(e,t)=>!fU(mU(e,t)).length&&f$(e,t);const I$={mode:yU.onSubmit,reValidateMode:yU.onChange,shouldFocusError:!0};function M$(e={},t){let r,n={...I$,...e},i={submitCount:0,isDirty:!1,isLoading:WU(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},a=(sU(n.values)||sU(n.defaultValues))&&hU(n.values||n.defaultValues)||{},s=n.shouldUnregister?{}:hU(a),c={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:m$(),array:m$(),state:m$()},f=$U(n.mode),p=$U(n.reValidateMode),m=n.criteriaMode===yU.all,g=async e=>{if(d.isValid||e){const e=n.resolver?CU((await x()).errors):await _(o,!0);e!==i.isValid&&h.state.next({isValid:e})}},v=e=>d.isValidating&&h.state.next({isValidating:e}),y=(e,t,r,n)=>{const i=mU(o,e);if(i){const o=mU(s,e,pU(r)?mU(a,e):r);pU(o)||n&&n.defaultChecked||t?zU(s,e,t?o:A$(i._f)):E(e,o),c.mount&&g()}},b=(e,t,r,n,s)=>{let c=!1,l=!1;const u={name:e},f=!(!mU(o,e)||!mU(o,e)._f.disabled);if(!r||n){d.isDirty&&(l=i.isDirty,i.isDirty=u.isDirty=S(),c=l!==u.isDirty);const r=f||v$(mU(a,e),t);l=!(f||!mU(i.dirtyFields,e)),r||f?f$(i.dirtyFields,e):zU(i.dirtyFields,e,!0),u.dirtyFields=i.dirtyFields,c=c||d.dirtyFields&&l!==!r}if(r){const t=mU(i.touchedFields,e);t||(zU(i.touchedFields,e,r),u.touchedFields=i.touchedFields,c=c||d.touchedFields&&t!==r)}return c&&s&&h.state.next(u),c?u:{}},w=(t,n,o,a)=>{const s=mU(i.errors,t),c=d.isValid&&gU(n)&&i.isValid!==n;var l;if(e.delayError&&o?(l=()=>((e,t)=>{zU(i.errors,e,t),h.state.next({errors:i.errors})})(t,o),r=e=>{clearTimeout(u),u=setTimeout(l,e)},r(e.delayError)):(clearTimeout(u),r=null,o?zU(i.errors,t,o):f$(i.errors,t)),(o?!v$(s,o):s)||!CU(a)||c){const e={...a,...c&&gU(n)?{isValid:n}:{},errors:i.errors,name:t};i={...i,...e},h.state.next(e)}v(!1)},x=async e=>n.resolver(s,n.context,P$(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),_=async(e,t,r={valid:!0})=>{for(const o in e){const a=e[o];if(a){const{_f:e,...o}=a;if(e){const o=l.array.has(e.name),c=await o$(a,s,m,n.shouldUseNativeValidation&&!t,o);if(c[e.name]&&(r.valid=!1,t))break;!t&&(mU(c,e.name)?o?qU(i.errors,c,e.name):zU(i.errors,e.name,c[e.name]):f$(i.errors,e.name))}o&&await _(o,t,r)}}return r.valid},S=(e,t)=>(e&&t&&zU(s,e,t),!v$(j(),a)),k=(e,t,r)=>LU(e,l,{...c.mount?s:pU(t)?a:MU(e)?{[e]:t}:t},r,t),E=(e,t,r={})=>{const n=mU(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&zU(s,e,E$(t,r)),i=GU(r.ref)&&oU(t)?"":t,y$(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?nU(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):KU(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||h.values.next({name:e,values:{...s}})))}(r.shouldDirty||r.shouldTouch)&&b(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&C(e)},A=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=mU(o,a);!l.array.has(e)&&g$(i)&&(!s||s._f)||iU(i)?E(a,i,r):A(a,i,r)}},P=(e,r,n={})=>{const u=mU(o,e),f=l.array.has(e),p=hU(r);zU(s,e,p),f?(h.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&h.state.next({name:e,dirtyFields:k$(a,s),isDirty:S(e,p)})):!u||u._f||oU(p)?E(e,p,n):A(e,p,n),HU(e,l)&&h.state.next({...i}),h.values.next({name:e,values:{...s}}),!c.mount&&t()},O=async e=>{const t=e.target;let a=t.name,c=!0;const u=mU(o,a),y=e=>{c=Number.isNaN(e)||e===mU(s,a,e)};if(u){let S,k;const E=t.type?A$(u._f):cU(e),A=e.type===vU.BLUR||e.type===vU.FOCUS_OUT,P=!T$(u._f)&&!n.resolver&&!mU(i.errors,a)&&!u._f.deps||j$(A,mU(i.touchedFields,a),i.isSubmitted,p,f),O=HU(a,l,A);zU(s,a,E),A?(u._f.onBlur&&u._f.onBlur(e),r&&r(0)):u._f.onChange&&u._f.onChange(e);const T=b(a,E,A,!1),j=!CU(T)||O;if(!A&&h.values.next({name:a,type:e.type,values:{...s}}),P)return d.isValid&&g(),j&&h.state.next({name:a,...O?{}:T});if(!A&&O&&h.state.next({...i}),v(!0),n.resolver){const{errors:e}=await x([a]);if(y(E),c){const t=C$(i.errors,o,a),r=C$(e,o,t.name||a);S=r.error,a=r.name,k=CU(e)}}else S=(await o$(u,s,m,n.shouldUseNativeValidation))[a],y(E),c&&(S?k=!1:d.isValid&&(k=await _(o,!0)));c&&(u._f.deps&&C(u._f.deps),w(a,k,S,T))}},T=(e,t)=>{if(mU(i.errors,t)&&e.focus)return e.focus(),1},C=async(e,t={})=>{let r,a;const s=RU(e);if(v(!0),n.resolver){const t=await(async e=>{const{errors:t}=await x(e);if(e)for(const r of e){const e=mU(t,r);e?zU(i.errors,r,e):f$(i.errors,r)}else i.errors=t;return t})(pU(e)?e:s);r=CU(t),a=e?!s.some((e=>mU(t,e))):r}else e?(a=(await Promise.all(s.map((async e=>{const t=mU(o,e);return await _(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||i.isValid)&&g()):a=r=await _(o);return h.state.next({...!MU(e)||d.isValid&&r!==i.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:i.errors,isValidating:!1}),t.shouldFocus&&!a&&VU(o,T,e?s:l.mount),a},j=e=>{const t={...a,...c.mount?s:{}};return pU(e)?t:MU(e)?mU(t,e):e.map((e=>mU(t,e)))},R=(e,t)=>({invalid:!!mU((t||i).errors,e),isDirty:!!mU((t||i).dirtyFields,e),isTouched:!!mU((t||i).touchedFields,e),error:mU((t||i).errors,e)}),I=(e,t,r)=>{const n=(mU(o,e,{_f:{}})._f||{}).ref;zU(i.errors,e,{...t,ref:n}),h.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},M=(e,t={})=>{for(const r of e?RU(e):l.mount)l.mount.delete(r),l.array.delete(r),t.keepValue||(f$(o,r),f$(s,r)),!t.keepError&&f$(i.errors,r),!t.keepDirty&&f$(i.dirtyFields,r),!t.keepTouched&&f$(i.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&f$(a,r);h.values.next({values:{...s}}),h.state.next({...i,...t.keepDirty?{isDirty:S()}:{}}),!t.keepIsValid&&g()},L=({disabled:e,name:t,field:r,fields:n,value:i})=>{if(gU(e)){const o=e?void 0:pU(i)?A$(r?r._f:mU(n,t)._f):i;zU(s,t,o),b(t,o,!1,!1,!0)}},N=(e,t={})=>{let r=mU(o,e);const i=gU(t.disabled);return zU(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:t.disabled,name:e,value:t.value}):y(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:O$(t.min),max:O$(t.max),minLength:O$(t.minLength),maxLength:O$(t.maxLength),pattern:O$(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:i=>{if(i){N(e,t),r=mU(o,e);const n=pU(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=b$(n),c=r._f.refs||[];if(s?c.find((e=>e===n)):n===r._f.ref)return;zU(o,e,{_f:{...r._f,...s?{refs:[...c.filter(w$),n,...Array.isArray(mU(a,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=mU(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!lU(l.array,e)||!c.action)&&l.unMount.add(e)}}},D=()=>n.shouldFocusError&&VU(o,T,l.mount),z=(e,t)=>async r=>{let a;r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let c=hU(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await x();i.errors=e,c=t}else await _(o);if(f$(i.errors,"root"),CU(i.errors)){h.state.next({errors:{}});try{await e(c,r)}catch(l){a=l}}else t&&await t({...i.errors},r),D(),setTimeout(D);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:CU(i.errors)&&!a,submitCount:i.submitCount+1,errors:i.errors}),a)throw a},B=(r,n={})=>{const u=r?hU(r):a,f=hU(u),p=r&&!CU(r)?f:a;if(n.keepDefaultValues||(a=u),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)mU(i.dirtyFields,e)?zU(p,e,mU(s,e)):P(e,mU(p,e));else{if(dU&&pU(r))for(const e of l.mount){const t=mU(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(GU(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}s=e.shouldUnregister?n.keepDefaultValues?hU(a):{}:hU(p),h.array.next({values:{...p}}),h.values.next({values:{...p}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!d.isValid||!!n.keepIsValid||!!n.keepDirtyValues,c.watch=!!e.shouldUnregister,h.state.next({submitCount:n.keepSubmitCount?i.submitCount:0,isDirty:n.keepDirty?i.isDirty:!(!n.keepDefaultValues||v$(r,a)),isSubmitted:!!n.keepIsSubmitted&&i.isSubmitted,dirtyFields:n.keepDirtyValues?n.keepDefaultValues&&s?k$(a,s):i.dirtyFields:n.keepDefaultValues&&r?k$(a,r):{},touchedFields:n.keepTouched?i.touchedFields:{},errors:n.keepErrors?i.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1})},F=(e,t)=>B(WU(e)?e(s):e,t);return{control:{register:N,unregister:M,getFieldState:R,handleSubmit:z,setError:I,_executeSchema:x,_getWatch:k,_getDirty:S,_updateValid:g,_removeUnmounted:()=>{for(const e of l.unMount){const t=mU(o,e);t&&(t._f.refs?t._f.refs.every((e=>!w$(e))):!w$(t._f.ref))&&M(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,n,l=!0,u=!0)=>{if(n&&r){if(c.action=!0,u&&Array.isArray(mU(o,e))){const t=r(mU(o,e),n.argA,n.argB);l&&zU(o,e,t)}if(u&&Array.isArray(mU(i.errors,e))){const t=r(mU(i.errors,e),n.argA,n.argB);l&&zU(i.errors,e,t),R$(i.errors,e)}if(d.touchedFields&&u&&Array.isArray(mU(i.touchedFields,e))){const t=r(mU(i.touchedFields,e),n.argA,n.argB);l&&zU(i.touchedFields,e,t)}d.dirtyFields&&(i.dirtyFields=k$(a,s)),h.state.next({name:e,isDirty:S(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else zU(s,e,t)},_updateDisabledField:L,_getFieldArray:t=>fU(mU(c.mount?s:a,t,e.shouldUnregister?mU(a,t,[]):[])),_reset:B,_resetDefaultValues:()=>WU(n.defaultValues)&&n.defaultValues().then((e=>{F(e,n.resetOptions),h.state.next({isLoading:!1})})),_updateFormState:e=>{i={...i,...e}},_disableForm:e=>{gU(e)&&(h.state.next({disabled:e}),VU(o,((t,r)=>{let n=e;const i=mU(o,r);i&&gU(i._f.disabled)&&(n||(n=i._f.disabled)),t.disabled=n}),0,!1))},_subjects:h,_proxyFormState:d,_setErrors:e=>{i.errors=e,h.state.next({errors:i.errors,isValid:!1})},get _fields(){return o},get _formValues(){return s},get _state(){return c},set _state(e){c=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return i},set _formState(e){i=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:C,register:N,handleSubmit:z,watch:(e,t)=>WU(e)?h.values.subscribe({next:r=>e(k(void 0,t),r)}):k(e,t,!0),setValue:P,getValues:j,reset:F,resetField:(e,t={})=>{mU(o,e)&&(pU(t.defaultValue)?P(e,hU(mU(a,e))):(P(e,t.defaultValue),zU(a,e,hU(t.defaultValue))),t.keepTouched||f$(i.touchedFields,e),t.keepDirty||(f$(i.dirtyFields,e),i.isDirty=t.defaultValue?S(e,hU(mU(a,e))):S()),t.keepError||(f$(i.errors,e),d.isValid&&g()),h.state.next({...i}))},clearErrors:e=>{e&&RU(e).forEach((e=>f$(i.errors,e))),h.state.next({errors:e?i.errors:{}})},unregister:M,setError:I,setFocus:(e,t={})=>{const r=mU(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:R}}function L$(e={}){const t=i.useRef(),r=i.useRef(),[n,o]=i.useState({isDirty:!1,isValidating:!1,isLoading:WU(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:WU(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...M$(e,(()=>o((e=>({...e}))))),formState:n});const a=t.current.control;return a._options=e,IU({subject:a._subjects.state,next:e=>{jU(e,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),i.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),i.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==n.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,n.isDirty]),i.useEffect((()=>{e.values&&!v$(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o((e=>({...e})))):a._resetDefaultValues()}),[e.values,a]),i.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),i.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),i.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=TU(n,a),t.current}var N$,[D$,z$]=gh({name:`${N$="Card"}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${N$} />" `}),B$=v((function(e,t){const{className:r,children:n,direction:i="column",justify:o,align:a,...s}=ft(e),c=Mn("Card",e);return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:o,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...s,children:(0,xn.jsx)(D$,{value:c,children:n})})})),F$=v((function(e,t){const{className:r,...n}=e,i=z$();return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-card__body",r),__css:i.body,...n})}));const U$=({value:e,space:t=2})=>(0,xn.jsx)(B$,{background:LP.gray[700],borderRadius:"5px",children:(0,xn.jsx)(F$,{children:(0,xn.jsx)("pre",{style:{whiteSpace:"pre-wrap",fontSize:"12px",lineHeight:"18px"},children:JSON.stringify(e,null,t)})})});var $$=v((function(e,t){var r;const n=In("FormLabel",e),i=ft(e),{className:o,children:a,requiredIndicator:s=(0,xn.jsx)(H$,{}),optionalIndicator:c=null,...l}=i,u=YF(),d=null!=(r=null==u?void 0:u.getLabelProps(l,t))?r:{ref:t,...l};return(0,xn.jsxs)(wn.label,{...d,className:y("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...n},children:[a,(null==u?void 0:u.isRequired)?s:c]})}));$$.displayName="FormLabel";var H$=v((function(e,t){const r=YF(),n=WF();if(!(null==r?void 0:r.isRequired))return null;const i=y("chakra-form__required-indicator",e.className);return(0,xn.jsx)(wn.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:n.requiredIndicator,className:i})}));function V$(e){return i.Children.toArray(e).filter((e=>(0,i.isValidElement)(e)))}H$.displayName="RequiredIndicator";var[q$,K$]=Nn({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),W$=v((function(e,t){const r=Mn("Input",e),{children:n,className:o,...a}=ft(e),s=y("chakra-input__group",o),c={},l=V$(n),u=r.field;l.forEach((e=>{var t,n;r&&(u&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=u.height)?t:u.h),u&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(n=u.height)?n:u.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))}));const d=l.map((t=>{var r,n;const o=cF({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?(0,i.cloneElement)(t,o):(0,i.cloneElement)(t,Object.assign(o,c,t.props))}));return(0,xn.jsx)(wn.div,{className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:(0,xn.jsx)(q$,{value:r,children:d})})}));function G$(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=Y$(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":k(r),"aria-required":k(i),"aria-readonly":k(n)}}function Y$(e){var t,r,n;const i=YF(),{id:o,disabled:a,readOnly:s,required:c,isRequired:l,isInvalid:u,isReadOnly:d,isDisabled:h,onFocus:f,onBlur:p,...m}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==i?void 0:i.hasFeedbackText)&&(null==i?void 0:i.isInvalid)&&g.push(i.feedbackId),(null==i?void 0:i.hasHelpText)&&g.push(i.helpTextId),{...m,"aria-describedby":g.join(" ")||void 0,id:null!=o?o:null==i?void 0:i.id,isDisabled:null!=(t=null!=a?a:h)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(r=null!=s?s:d)?r:null==i?void 0:i.isReadOnly,isRequired:null!=(n=null!=c?c:l)?n:null==i?void 0:i.isRequired,isInvalid:null!=u?u:null==i?void 0:i.isInvalid,onFocus:E(null==i?void 0:i.onFocus,f),onBlur:E(null==i?void 0:i.onBlur,p)}}W$.displayName="InputGroup";var Z$=v((function(e,t){const{htmlSize:r,...n}=e,i=Mn("Input",n),o=G$(ft(n)),a=y("chakra-input",e.className);return(0,xn.jsx)(wn.input,{size:r,...o,__css:i.field,ref:t,className:a})}));Z$.displayName="Input",Z$.id="Input";var X$=wn("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),J$=v((function(e,t){var r,n;const{placement:i="left",...o}=e,a=K$(),s=a.field,c={["left"===i?"insetStart":"insetEnd"]:"0",width:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,height:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,xn.jsx)(X$,{ref:t,__css:c,...o})}));J$.id="InputElement",J$.displayName="InputElement";var Q$=v((function(e,t){const{className:r,...n}=e,i=y("chakra-input__left-element",r);return(0,xn.jsx)(J$,{ref:t,placement:"left",className:i,...n})}));Q$.id="InputLeftElement",Q$.displayName="InputLeftElement";var eH=v((function(e,t){const{className:r,...n}=e,i=y("chakra-input__right-element",r);return(0,xn.jsx)(J$,{ref:t,placement:"right",className:i,...n})}));eH.id="InputRightElement",eH.displayName="InputRightElement";var[tH,rH]=Nn({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),nH=v((function(e,t){const r=Mn("List",e),{children:n,styleType:i="none",stylePosition:o,spacing:a,...s}=ft(e),c=V$(n),l=a?{"& > *:not(style) ~ *:not(style)":{mt:a}}:{};return(0,xn.jsx)(tH,{value:r,children:(0,xn.jsx)(wn.ul,{ref:t,listStyleType:i,listStylePosition:o,role:"list",__css:{...r.container,...l},...s,children:c})})}));nH.displayName="List";var iH=v(((e,t)=>{const{as:r,...n}=e;return(0,xn.jsx)(nH,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})}));iH.displayName="OrderedList";var oH=v((function(e,t){const{as:r,...n}=e;return(0,xn.jsx)(nH,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})}));oH.displayName="UnorderedList";var aH=v((function(e,t){const r=rH();return(0,xn.jsx)(wn.li,{ref:t,...e,__css:r.item})}));aH.displayName="ListItem";var sH=v((function(e,t){const r=rH();return(0,xn.jsx)(qA,{ref:t,role:"presentation",...e,__css:r.icon})}));sH.displayName="ListIcon";var cH={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function lH(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:KB(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}(e)?e:lH(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var uH=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),dH={arrowShadowColor:uH("--popper-arrow-shadow-color"),arrowSize:uH("--popper-arrow-size","8px"),arrowSizeHalf:uH("--popper-arrow-size-half"),arrowBg:uH("--popper-arrow-bg"),transformOrigin:uH("--popper-transform-origin"),arrowOffset:uH("--popper-arrow-offset")};var hH={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},fH={scroll:!0,resize:!0};function pH(e){let t;return t="object"===typeof e?{enabled:!0,options:{...fH,...e}}:{enabled:e,options:fH},t}var mH={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},gH={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{vH(e)},effect:({state:e})=>()=>{vH(e)}},vH=e=>{var t;e.elements.popper.style.setProperty(dH.transformOrigin.var,(t=e.placement,hH[t]))},yH={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{bH(e)}},bH=e=>{var t;if(!e.placement)return;const r=wH(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:dH.arrowSize.varRef,height:dH.arrowSize.varRef,zIndex:-1});const t={[dH.arrowSizeHalf.var]:`calc(${dH.arrowSize.varRef} / 2 - 1px)`,[dH.arrowOffset.var]:`calc(${dH.arrowSizeHalf.varRef} * -1)`};for(const r in t)e.elements.arrow.style.setProperty(r,t[r])}},wH=e=>e.startsWith("top")?{property:"bottom",value:dH.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:dH.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:dH.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:dH.arrowOffset.varRef}:void 0,xH={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{_H(e)},effect:({state:e})=>()=>{_H(e)}},_H=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=(n=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var n;r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:dH.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},SH={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},kH={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function EH(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function AH(e){return e instanceof EH(e).Element||e instanceof Element}function PH(e){return e instanceof EH(e).HTMLElement||e instanceof HTMLElement}function OH(e){return"undefined"!==typeof ShadowRoot&&(e instanceof EH(e).ShadowRoot||e instanceof ShadowRoot)}var TH=Math.max,CH=Math.min,jH=Math.round;function RH(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function IH(){return!/^((?!chrome|android).)*safari/i.test(RH())}function MH(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&PH(e)&&(i=e.offsetWidth>0&&jH(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&jH(n.height)/e.offsetHeight||1);var a=(AH(e)?EH(e):window).visualViewport,s=!IH()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/i,l=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function LH(e){var t=EH(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function NH(e){return e?(e.nodeName||"").toLowerCase():null}function DH(e){return((AH(e)?e.ownerDocument:e.document)||window.document).documentElement}function zH(e){return MH(DH(e)).left+LH(e).scrollLeft}function BH(e){return EH(e).getComputedStyle(e)}function FH(e){var t=BH(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function UH(e,t,r){void 0===r&&(r=!1);var n=PH(t),i=PH(t)&&function(e){var t=e.getBoundingClientRect(),r=jH(t.width)/e.offsetWidth||1,n=jH(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=DH(t),a=MH(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==NH(t)||FH(o))&&(s=function(e){return e!==EH(e)&&PH(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:LH(e);var t}(t)),PH(t)?((c=MH(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=zH(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function $H(e){var t=MH(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function HH(e){return"html"===NH(e)?e:e.assignedSlot||e.parentNode||(OH(e)?e.host:null)||DH(e)}function VH(e){return["html","body","#document"].indexOf(NH(e))>=0?e.ownerDocument.body:PH(e)&&FH(e)?e:VH(HH(e))}function qH(e,t){var r;void 0===t&&(t=[]);var n=VH(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=EH(n),a=i?[o].concat(o.visualViewport||[],FH(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(qH(HH(a)))}function KH(e){return["table","td","th"].indexOf(NH(e))>=0}function WH(e){return PH(e)&&"fixed"!==BH(e).position?e.offsetParent:null}function GH(e){for(var t=EH(e),r=WH(e);r&&KH(r)&&"static"===BH(r).position;)r=WH(r);return r&&("html"===NH(r)||"body"===NH(r)&&"static"===BH(r).position)?t:r||function(e){var t=/firefox/i.test(RH());if(/Trident/i.test(RH())&&PH(e)&&"fixed"===BH(e).position)return null;var r=HH(e);for(OH(r)&&(r=r.host);PH(r)&&["html","body"].indexOf(NH(r))<0;){var n=BH(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var YH="top",ZH="bottom",XH="right",JH="left",QH="auto",eV=[YH,ZH,XH,JH],tV="start",rV="end",nV="clippingParents",iV="viewport",oV="popper",aV="reference",sV=eV.reduce((function(e,t){return e.concat([t+"-"+tV,t+"-"+rV])}),[]),cV=[].concat(eV,[QH]).reduce((function(e,t){return e.concat([t,t+"-"+tV,t+"-"+rV])}),[]),lV=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uV(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function dV(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var hV={placement:"bottom",modifiers:[],strategy:"absolute"};function fV(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function wV(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?vV(i):null,a=i?yV(i):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case YH:t={x:s,y:r.y-n.height};break;case ZH:t={x:s,y:r.y+r.height};break;case XH:t={x:r.x+r.width,y:c};break;case JH:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=o?bV(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case tV:t[l]=t[l]-(r[u]/2-n[u]/2);break;case rV:t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}const xV={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=wV({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var _V={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SV(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,g="function"===typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=JH,w=YH,x=window;if(l){var _=GH(r),S="clientHeight",k="clientWidth";if(_===EH(r)&&"static"!==BH(_=DH(r)).position&&"absolute"===s&&(S="scrollHeight",k="scrollWidth"),i===YH||(i===JH||i===XH)&&o===rV)w=ZH,m-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[S])-n.height,m*=c?1:-1;if(i===JH||(i===YH||i===ZH)&&o===rV)b=XH,f-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-n.width,f*=c?1:-1}var E,A=Object.assign({position:s},l&&_V),P=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:jH(r*i)/i||0,y:jH(n*i)/i||0}}({x:f,y:m},EH(r)):{x:f,y:m};return f=P.x,m=P.y,c?Object.assign({},A,((E={})[w]=y?"0":"",E[b]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},A,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}const kV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,c=void 0===s||s,l={placement:vV(t.placement),variation:yV(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,SV(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,SV(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const EV={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];PH(i)&&NH(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});PH(n)&&NH(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const AV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=cV.reduce((function(e,r){return e[r]=function(e,t,r){var n=vV(e),i=[JH,YH].indexOf(n)>=0?-1:1,o="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[JH,XH].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}};var PV={left:"right",right:"left",bottom:"top",top:"bottom"};function OV(e){return e.replace(/left|right|bottom|top/g,(function(e){return PV[e]}))}var TV={start:"end",end:"start"};function CV(e){return e.replace(/start|end/g,(function(e){return TV[e]}))}function jV(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&OH(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function RV(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IV(e,t,r){return t===iV?RV(function(e,t){var r=EH(e),n=DH(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=IH();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+zH(e),y:c}}(e,r)):AH(t)?function(e,t){var r=MH(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):RV(function(e){var t,r=DH(e),n=LH(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=TH(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=TH(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+zH(e),c=-n.scrollTop;return"rtl"===BH(i||r).direction&&(s+=TH(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(DH(e)))}function MV(e,t,r,n){var i="clippingParents"===t?function(e){var t=qH(HH(e)),r=["absolute","fixed"].indexOf(BH(e).position)>=0&&PH(e)?GH(e):e;return AH(r)?t.filter((function(e){return AH(e)&&jV(e,r)&&"body"!==NH(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce((function(t,r){var i=IV(e,r,n);return t.top=TH(i.top,t.top),t.right=CH(i.right,t.right),t.bottom=CH(i.bottom,t.bottom),t.left=TH(i.left,t.left),t}),IV(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function LV(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function NV(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function DV(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,c=void 0===s?nV:s,l=r.rootBoundary,u=void 0===l?iV:l,d=r.elementContext,h=void 0===d?oV:d,f=r.altBoundary,p=void 0!==f&&f,m=r.padding,g=void 0===m?0:m,v=LV("number"!==typeof g?g:NV(g,eV)),y=h===oV?aV:oV,b=e.rects.popper,w=e.elements[p?y:h],x=MV(AH(w)?w:w.contextElement||DH(e.elements.popper),c,u,a),_=MH(e.elements.reference),S=wV({reference:_,element:b,strategy:"absolute",placement:i}),k=RV(Object.assign({},b,S)),E=h===oV?k:_,A={top:x.top-E.top+v.top,bottom:E.bottom-x.bottom+v.bottom,left:x.left-E.left+v.left,right:E.right-x.right+v.right},P=e.modifiersData.offset;if(h===oV&&P){var O=P[i];Object.keys(A).forEach((function(e){var t=[XH,ZH].indexOf(e)>=0?1:-1,r=[YH,ZH].indexOf(e)>=0?"y":"x";A[e]+=O[r]*t}))}return A}const zV={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,p=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=vV(g),y=c||(v===g||!p?[OV(g)]:function(e){if(vV(e)===QH)return[];var t=OV(e);return[CV(e),t,CV(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat(vV(r)===QH?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?cV:c,u=yV(n),d=u?s?sV:sV.filter((function(e){return yV(e)===u})):eV,h=d.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,r){return t[r]=DV(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[vV(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,S=!0,k=b[0],E=0;E=0,C=T?"width":"height",j=DV(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:h,padding:l}),R=T?O?XH:JH:O?ZH:YH;w[C]>x[C]&&(R=OV(R));var I=OV(R),M=[];if(o&&M.push(j[P]<=0),s&&M.push(j[R]<=0,j[I]<=0),M.every((function(e){return e}))){k=A,S=!1;break}_.set(A,M)}if(S)for(var L=function(e){var t=b.find((function(t){var r=_.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=p?3:1;N>0;N--){if("break"===L(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function BV(e,t,r){return TH(e,CH(t,r))}const FV={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,h=r.tether,f=void 0===h||h,p=r.tetherOffset,m=void 0===p?0:p,g=DV(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=vV(t.placement),y=yV(t.placement),b=!y,w=bV(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(_){if(o){var T,C="y"===w?YH:JH,j="y"===w?ZH:XH,R="y"===w?"height":"width",I=_[w],M=I+g[C],L=I-g[j],N=f?-k[R]/2:0,D=y===tV?S[R]:k[R],z=y===tV?-k[R]:-S[R],B=t.elements.arrow,F=f&&B?$H(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[C],H=U[j],V=BV(0,S[R],F[R]),q=b?S[R]/2-N-V-$-A.mainAxis:D-V-$-A.mainAxis,K=b?-S[R]/2+N+V+H+A.mainAxis:z+V+H+A.mainAxis,W=t.elements.arrow&&GH(t.elements.arrow),G=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(T=null==P?void 0:P[w])?T:0,Z=I+K-Y,X=BV(f?CH(M,I+q-Y-G):M,I,f?TH(L,Z):L);_[w]=X,O[w]=X-I}if(s){var J,Q="x"===w?YH:JH,ee="x"===w?ZH:XH,te=_[x],re="y"===x?"height":"width",ne=te+g[Q],ie=te-g[ee],oe=-1!==[YH,JH].indexOf(v),ae=null!=(J=null==P?void 0:P[x])?J:0,se=oe?ne:te-S[re]-k[re]-ae+A.altAxis,ce=oe?te+S[re]+k[re]-ae-A.altAxis:ie,le=f&&oe?function(e,t,r){var n=BV(e,t,r);return n>r?r:n}(se,te,ce):BV(f?se:ne,te,f?ce:ie);_[x]=le,O[x]=le-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]};const UV={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=vV(r.placement),c=bV(s),l=[JH,XH].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return LV("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:NV(e,eV))}(i.padding,r),d=$H(o),h="y"===c?YH:JH,f="y"===c?ZH:XH,p=r.rects.reference[l]+r.rects.reference[c]-a[c]-r.rects.popper[l],m=a[c]-r.rects.reference[c],g=GH(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,b=u[h],w=v-d[l]-u[f],x=v/2-d[l]/2+y,_=BV(b,x,w),S=c;r.modifiersData[n]=((t={})[S]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&jV(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $V(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function HV(e){return[YH,XH,ZH,JH].some((function(t){return e[t]>=0}))}const VV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=DV(t,{elementContext:"reference"}),s=DV(t,{altBoundary:!0}),c=$V(a,n),l=$V(s,i,o),u=HV(c),d=HV(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var qV=pV({defaultModifiers:[gV,xV,kV,EV,AV,zV,FV,UV,VV]});function KV(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:c,gutter:l=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:h=!0,matchWidth:f,direction:p="ltr"}=e,m=(0,i.useRef)(null),g=(0,i.useRef)(null),v=(0,i.useRef)(null),y=function(e,t="ltr"){var r,n;const i=(null==(r=SH[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=kH[e])?n:i}(n,p),b=(0,i.useRef)((()=>{})),w=(0,i.useCallback)((()=>{var e;t&&m.current&&g.current&&(null==(e=b.current)||e.call(b),v.current=qV(m.current,g.current,{placement:y,modifiers:[xH,yH,gH,{...mH,enabled:!!f},{name:"eventListeners",...pH(s)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=c?c:[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:d}},...null!=r?r:[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)}),[y,t,r,f,s,a,c,l,u,h,d,o]);(0,i.useEffect)((()=>()=>{var e;m.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)}),[]);const x=(0,i.useCallback)((e=>{m.current=e,w()}),[w]),_=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(x,t)})),[x]),S=(0,i.useCallback)((e=>{g.current=e,w()}),[w]),k=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(S,t),style:{...e.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}})),[o,S,f]),E=(0,i.useCallback)(((e={},t=null)=>{const{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:WV(e)}}),[]),A=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""})),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:dH.transformOrigin.varRef,referenceRef:x,popperRef:S,getPopperProps:k,getArrowProps:E,getArrowInnerProps:A,getReferenceProps:_}}function WV(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function GV(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=kb(r),s=kb(t),[c,l]=(0,i.useState)(e.defaultIsOpen||!1),u=void 0!==n?n:c,d=void 0!==n,h=(0,i.useId)(),f=null!=o?o:`disclosure-${h}`,p=(0,i.useCallback)((()=>{d||l(!1),null==s||s()}),[d,s]),m=(0,i.useCallback)((()=>{d||l(!0),null==a||a()}),[d,a]),g=(0,i.useCallback)((()=>{u?p():m()}),[u,m,p]);return{isOpen:u,onOpen:m,onClose:p,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":f,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:f}}}}function YV(e,t,r,n){const o=kb(r);return(0,i.useEffect)((()=>{const i="function"===typeof e?e():null!=e?e:document;if(r&&i)return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}}),[t,e,n,o,r]),()=>{const r="function"===typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,o,n)}}var ZV=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},XV=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window};function JV(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:a,closeOnPointerDown:s=o,closeOnEsc:c=!0,onOpen:l,onClose:u,placement:d,id:h,isOpen:f,defaultIsOpen:p,arrowSize:m=10,arrowShadowColor:g,arrowPadding:v,modifiers:y,isDisabled:b,gutter:w,offset:x,direction:_,...S}=e,{isOpen:k,onOpen:A,onClose:P}=GV({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:O,getPopperProps:T,getArrowInnerProps:C,getArrowProps:j}=KV({enabled:k,placement:d,arrowPadding:v,modifiers:y,gutter:w,offset:x,direction:_}),R=(0,i.useId)(),I=`tooltip-${null!=h?h:R}`,M=(0,i.useRef)(null),L=(0,i.useRef)(),N=(0,i.useCallback)((()=>{L.current&&(clearTimeout(L.current),L.current=void 0)}),[]),D=(0,i.useRef)(),z=(0,i.useCallback)((()=>{D.current&&(clearTimeout(D.current),D.current=void 0)}),[]),B=(0,i.useCallback)((()=>{z(),P()}),[P,z]),F=function(e,t){return(0,i.useEffect)((()=>{const r=ZV(e);return r.addEventListener(QV,t),()=>r.removeEventListener(QV,t)}),[t,e]),()=>{const t=ZV(e),r=XV(e);t.dispatchEvent(new r.CustomEvent(QV))}}(M,B),U=(0,i.useCallback)((()=>{if(!b&&!L.current){k&&F();const e=XV(M);L.current=e.setTimeout(A,t)}}),[F,b,k,A,t]),$=(0,i.useCallback)((()=>{N();const e=XV(M);D.current=e.setTimeout(B,r)}),[r,B,N]),H=(0,i.useCallback)((()=>{k&&n&&$()}),[n,$,k]),V=(0,i.useCallback)((()=>{k&&s&&$()}),[s,$,k]),q=(0,i.useCallback)((e=>{k&&"Escape"===e.key&&$()}),[k,$]);YV((()=>ZV(M)),"keydown",c?q:void 0),YV((()=>{if(!a)return null;const e=M.current;if(!e)return null;const t=lH(e);return"body"===t.localName?XV(M):t}),"scroll",(()=>{k&&a&&B()}),{passive:!0,capture:!0}),(0,i.useEffect)((()=>{b&&(N(),k&&P())}),[b,k,P,N]),(0,i.useEffect)((()=>()=>{N(),z()}),[N,z]),YV((()=>M.current),"pointerleave",$);const K=(0,i.useCallback)(((e={},t=null)=>{const r={...e,ref:Kn(M,t,O),onPointerEnter:E(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&U()})),onClick:E(e.onClick,H),onPointerDown:E(e.onPointerDown,V),onFocus:E(e.onFocus,U),onBlur:E(e.onBlur,$),"aria-describedby":k?I:void 0};return r}),[U,$,V,k,I,H,O]),W=(0,i.useCallback)(((e={},t=null)=>T({...e,style:{...e.style,[dH.arrowSize.var]:m?`${m}px`:void 0,[dH.arrowShadowColor.var]:g}},t)),[T,m,g]),G=(0,i.useCallback)(((e={},t=null)=>{const r={...e.style,position:"relative",transformOrigin:dH.transformOrigin.varRef};return{ref:t,...S,...e,id:I,role:"tooltip",style:r}}),[S,I]);return{isOpen:k,show:U,hide:$,getTriggerProps:K,getTooltipProps:G,getTooltipPositionerProps:W,getArrowProps:j,getArrowInnerProps:C}}var QV="chakra-ui:close-tooltip";var eq=wn(FA.div),tq=v(((e,t)=>{var r,n;const o=In("Tooltip",e),a=ft(e),s=On(),{children:c,label:l,shouldWrapChildren:u,"aria-label":d,hasArrow:h,bg:f,portalProps:p,background:m,backgroundColor:g,bgColor:v,motionProps:y,...b}=a,w=null!=(n=null!=(r=null!=m?m:g)?r:f)?n:v;if(w){o.bg=w;const e=function(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}(s,"colors",w);o[dH.arrowBg.var]=e}const x=JV({...b,direction:s.direction});let _;if("string"===typeof c||u)_=(0,xn.jsx)(wn.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:c});else{const e=i.Children.only(c);_=(0,i.cloneElement)(e,x.getTriggerProps(e.props,e.ref))}const S=!!d,k=x.getTooltipProps({},t),E=S?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(k,["role","id"]):k,A=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(k,["role","id"]);return l?(0,xn.jsxs)(xn.Fragment,{children:[_,(0,xn.jsx)(pP,{children:x.isOpen&&(0,xn.jsx)(xP,{...p,children:(0,xn.jsx)(wn.div,{...x.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:(0,xn.jsxs)(eq,{variants:cH,initial:"exit",animate:"enter",exit:"exit",...y,...E,__css:o,children:[l,S&&(0,xn.jsx)(wn.span,{srOnly:!0,...A,children:d}),h&&(0,xn.jsx)(wn.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,xn.jsx)(wn.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):(0,xn.jsx)(xn.Fragment,{children:c})}));tq.displayName="Tooltip";var rq=r(488),nq=r.n(rq),iq=r(7584),oq=r.n(iq);const aq="default"in oq()?oq().default:oq(),sq=({address:e,identiconSize:t,...r})=>(0,xn.jsx)(En,{sx:{canvas:{borderRadius:"4px"}},zIndex:10,background:"white",borderRadius:"4px","data-testid":"identicon",...r,children:(0,xn.jsx)(aq,{background:"white",size:t,string:e,style:{borderRadius:4}})}),cq={stroke:LP.gray[400],borderRadius:"4px",padding:"5px",background:LP.gray[500]},lq=({addressKind:e,size:t="sm",identiconSize:r=20})=>{let n;switch(t){case"sm":n="30px";break;case"md":n="38.5px";break;case"lg":n="45.5px"}switch(e.type){case"secret_key":case"mnemonic":return(0,xn.jsx)(sq,{width:n,height:n,padding:"5px",address:e.pkh,identiconSize:r});case"social":return(0,xn.jsx)(ER,{width:n,height:n,...cq,stroke:"transparent",background:"white"});case"ledger":return(0,xn.jsx)(hR,{width:n,height:n,...cq,color:LP.gray[400]});case"multisig":return(0,xn.jsx)(nR,{width:n,height:n,...cq});case"contact":return(0,xn.jsx)(Mj,{width:n,height:n,...cq});case"unknown":return(0,xn.jsx)(RR,{width:n,height:n,...cq});case"baker":{const t=`https://services.tzkt.io/v1/avatars/${e.pkh}`;return(0,xn.jsx)(hF,{width:"30px",height:"30px",marginRight:"8px","data-testid":"baker-icon",ratio:1,children:(0,xn.jsx)(TR,{src:t})})}}};var uq=r(3664),dq=r(4192),hq=r(7995),fq=r(4024),pq=r(408),mq=r.n(pq);function gq(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(Mde){o(Mde)}}function s(e){try{c(n.throw(e))}catch(Mde){o(Mde)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;class vq{constructor(e,t,r){this.key=e;const n=e.substring(0,t?5:4);if(!sc(n))throw new _s(`${Sc(ac.NO_PREFIX_MATCHED)} expecting either '${Js.EDESK}' or '${Js.EDSK}'.`);if(this._key=r(Tc(this.key,nc[n])),this._publicKey=this._key.slice(32),!this._key)throw new _s("unable to decode");this.isInit=this.init()}init(){return gq(this,void 0,void 0,(function*(){if(64!==this._key.length){const{publicKey:e,secretKey:t}=(0,ns.Eh)(new Uint8Array(this._key));this._publicKey=e,this._key=t}return!0}))}sign(e,t){return gq(this,void 0,void 0,(function*(){yield this.isInit;const r=(0,ns.kq)(new Uint8Array(this._key),new Uint8Array(t)),n=rc()(r),i=e+Mc(n);return{bytes:e,sig:Oc(r,nc.sig),prefixSig:Oc(r,nc.edsig),sbytes:i}}))}publicKey(){return gq(this,void 0,void 0,(function*(){return yield this.isInit,Oc(this._publicKey,nc.edpk)}))}publicKeyHash(){return gq(this,void 0,void 0,(function*(){return yield this.isInit,Oc((0,is.hash)(new Uint8Array(this._publicKey),20),nc.tz1)}))}secretKey(){return gq(this,void 0,void 0,(function*(){yield this.isInit;let e=this._key;const{secretKey:t}=(0,ns.Eh)(new Uint8Array(e).slice(0,32));return e=rc()(t),Oc(e,nc.edsk)}))}}const yq={p256:{pk:nc.p2pk,sk:nc.p2sk,pkh:nc.tz3,sig:nc.p2sig},secp256k1:{pk:nc.sppk,sk:nc.spsk,pkh:nc.tz2,sig:nc.spsig}};class bq{constructor(e,t,r,n){this.curve=e,this.key=t;const i=t.substring(0,r?5:4);if(!sc(i))throw new _s(Sc(ac.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Js.SPSK}', '${Js.SPESK}', '${Js.P2SK}' or '${Js.P2ESK}'.`);this._key=n(Tc(this.key,nc[i]));const o=new(ec().ec)(this.curve).keyFromPrivate(this._key),a=o.getPublic().getY().toArray(),s=(a.length<32?a[a.length-1]:a[31])%2?3:2,c=new Array(32).fill(0);this._publicKey=rc()(new Uint8Array([s].concat(c.concat(o.getPublic().getX().toArray()).slice(-32))))}sign(e,t){return gq(this,void 0,void 0,(function*(){const r=new(ec().ec)(this.curve).keyFromPrivate(this._key).sign(t,{canonical:!0}),n=r.r.toString("hex",64)+r.s.toString("hex",64),i=e+n;return{bytes:e,sig:Oc(n,nc.sig),prefixSig:Oc(n,yq[this.curve].sig),sbytes:i}}))}publicKey(){return gq(this,void 0,void 0,(function*(){return Oc(this._publicKey,yq[this.curve].pk)}))}publicKeyHash(){return gq(this,void 0,void 0,(function*(){return Oc((0,is.hash)(new Uint8Array(this._publicKey),20),yq[this.curve].pkh)}))}secretKey(){return gq(this,void 0,void 0,(function*(){return Oc(this._key,yq[this.curve].sk)}))}}const wq=bq.bind(null,"p256"),xq=bq.bind(null,"secp256k1");function _q(e){const t=[];for(let r=0;r64)throw new Aq(o.length);if(!Object.prototype.hasOwnProperty.call(Tq,r))throw new Eq(`Unsupported curve "${r}" expecting either "p256" or "secp256k1"`);const a=new Qs.ec(r);if(256!==(null===(n=a.n)||void 0===n?void 0:n.bitLength()))throw new kq(`Invalid curve "${r}" with bit size "${null===(i=a.n)||void 0===i?void 0:i.bitLength()}" expecting bit size "256"`);const s=(new TextEncoder).encode(Tq[r]);let c=null,l=new Uint8Array,u=0;for(;0===u;){const e=new hq.UL(fq.SHA512,s).update(o).digest();c=new(mq())(e.subarray(0,32)),l=e.subarray(32),c.isZero()||c.cmp(a.n)>=0?o=e:u++}const d=a.keyPair({});return d.priv=c,new e(d,l)}derive(t){const r=new Uint8Array(37);0!==(t&jq)?r.set(this.keyPair.getPrivate().toArray(),1):r.set(this.keyPair.getPublic().encodeCompressed(),0),new DataView(r.buffer).setUint32(33,t);let n=new(mq())(0),i=new Uint8Array,o=0;for(;0===o;){const e=new hq.UL(fq.SHA512,this.chainCode).update(r).digest();n=new(mq())(e.subarray(0,32)),i=e.subarray(32),this.keyPair.ec.n&&n.cmp(this.keyPair.ec.n)<0&&(n=n.add(this.keyPair.getPrivate()).mod(this.keyPair.ec.n),n.isZero()||o++),r.set(i,1),r[0]=1}const a=this.keyPair.ec.keyPair({});return a.priv=n,new e(a,i)}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}bytes(){if(!this.keyPair.priv)throw new _s("missing private key");const e=this.keyPair.priv.toArray(),t=new Uint8Array(32);return t.set(e,t.length-e.length),t}};const jq=2147483648;class Rq extends Array{static from(e){return super.from(e).map((e=>e>>>0))}static fromString(e){if(0===e.length)return new Rq;let t=e.split("/");const r=[];"m"===t[0]&&(t=t.slice(1));for(let n of t){if(0===n.length)throw new ys(e,": Invalid BIP32 path");let t=0;const i=n[n.length-1];"'"!==i&&"h"!==i&&"H"!==i||(t=jq,n=n.slice(0,n.length-1));const o=(parseInt(n,10)|t)>>>0;r.push(o)}return Rq.from(r)}}class Iq{constructor(e,t){this.priv=e,this.chainCode=t}static fromSeed(e){const t="string"===typeof e?_q(e):e;if(t.length<16||t.length>64)throw new Aq(t.length);const r=(new TextEncoder).encode("ed25519 seed"),n=new hq.UL(fq.SHA512,r).update(t).digest();return new Iq((0,ns.Eh)(n.subarray(0,32)).secretKey,n.subarray(32))}seed(){return this.priv.subarray(0,32)}derive(e){if(0===(e&jq))throw new ys(e.toString(),": Non-hardened derivation path.");const t=new Uint8Array(37);t.set(this.seed(),1),new DataView(t.buffer).setUint32(33,e);const r=new hq.UL(fq.SHA512,this.chainCode).update(t).digest();return new Iq((0,ns.Eh)(r.subarray(0,32)).secretKey,r.subarray(32))}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}}class Mq{static fromFundraiser(e,t,r){if(!dq.oT(r))throw new Sq(r);const n=Oc(dq.yW(r,`${e}${t}`).slice(0,32),nc.edsk2);return new Mq(n)}static fromSecretKey(e,t){return gq(this,void 0,void 0,(function*(){return new Mq(e,t)}))}static fromMnemonic({mnemonic:e,password:t="",derivationPath:r="44'/1729'/0'/0'",curve:n="ed25519"}){if(!dq.oT(e))throw new Sq(e);const i=((e,t,r)=>{const n=Rq.fromString(t);let i;switch(r){case"ed25519":return i=Iq.fromSeed(e).derivePath(n),Oc(i.seed().slice(0,32),nc.edsk2);case"secp256k1":case"p256":{const t="secp256k1"===r?nc.spsk:nc.p2sk;let i=Cq.fromSeed(e,r);return i=i.derivePath(n),Oc(new Uint8Array(i.keyPair.getPrivate().toArray()),t)}case"bip25519":throw new Pq;default:throw new Eq(`Unsupported curve "${r}" expecting one of the following "ed25519", "secp256k1", "p256"`)}})(dq.yW(e,t),r,n);return new Mq(i)}constructor(e,t){const r="e"===e.substring(2,3);let n=e=>e;if(r){if(!t)throw new Oq("No passphrase provided to decrypt encrypted key");n=e=>{const r=rc()(e.slice(0,8)),n=e.slice(8),i=uq.pbkdf2Sync(t,r,32768,32,"sha512");return(0,RM.openSecretBox)(new Uint8Array(i),new Uint8Array(24),new Uint8Array(n))}}switch(e.substring(0,4)){case"edes":case"edsk":this._key=new vq(e,r,n);break;case"spsk":case"spes":this._key=new xq(e,r,n);break;case"p2sk":case"p2es":this._key=new wq(e,r,n);break;default:throw new _s(`${Sc(ac.NO_PREFIX_MATCHED)} expecting one of the following '${Js.EDESK}', '${Js.EDSK}', '${Js.SPSK}', '${Js.SPESK}', '${Js.P2SK}' or '${Js.P2ESK}'.`)}}sign(e,t){return gq(this,void 0,void 0,(function*(){let r=Rc(e);"undefined"!==typeof t&&(r=Ic(t,r));const n=(0,is.hash)(r,32);return this._key.sign(e,n)}))}publicKey(){return gq(this,void 0,void 0,(function*(){return this._key.publicKey()}))}publicKeyHash(){return gq(this,void 0,void 0,(function*(){return this._key.publicKeyHash()}))}secretKey(){return gq(this,void 0,void 0,(function*(){return this._key.secretKey()}))}}const Lq="44'/1729'/?'/0'",Nq={label:"Default - m/44'/1729'/?'/0'",value:Lq},Dq=[Nq,{label:"m/44'/1729'/0'/?'",value:"44'/1729'/0'/?'"},{label:"m/44'/1729'/?'/0'/0'",value:"44'/1729'/?'/0'/0'"},{label:"m/44'/1729'/0'/0'/?'",value:"44'/1729'/0'/0'/?'"}],zq=(e,t)=>e.replace("?",t.toString()),Bq=(e,t,r,n,i,o)=>({curve:"ed25519",derivationPath:r,derivationPathPattern:n,pk:e,address:ad(t),seedFingerPrint:i,label:o,type:"mnemonic"}),Fq=()=>UR((e=>e.contacts)),Uq=()=>{const e=Fq();return{addressExistsInContacts:t=>t in e,nameExistsInContacts:t=>Vd(e,t)}},$q=()=>{const e=Fq();return t=>t in e?e[t].name:void 0},Hq=()=>{const e=UR((e=>e.multisigs.pendingOperations));return t=>{var r;return[...null!==(r=e[t.pendingOperationsBigmapId])&&void 0!==r?r:[]].sort(((e,t)=>Number(t.id)-Number(e.id)))}},Vq=()=>UR((e=>e.accounts.seedPhrases)),qq=()=>UR((e=>e.accounts.items)),Kq=()=>{const e=qq();return t=>e.find((e=>e.address.pkh===t))},Wq=()=>{const e=qq(),t=UR((e=>e.multisigs.items));return[...e,...t]},Gq=()=>{const e=Wq().map((e=>e.label)),t=Object.values(Fq()).map((e=>e.name));return r=>![...e,...t].includes(r)},Yq=()=>{const e=Gq();return(t,r=1)=>{const n=[];for(let i=1;n.length{const e=Wq();return t=>e.find((e=>e.address.pkh===t))},Xq=()=>{const e=Zq();return t=>{const r=e(t);if(!r)throw new Error(`You do not own account:${t}`);return r}},Jq=e=>Wq().map((e=>e.address.pkh)).includes(e),Qq=()=>{const e=(()=>{const e=qq();return t=>{const r=e.filter((e=>t.signers.some((t=>t.pkh===e.address.pkh))));return 0===r.length&&console.warn("Wallet doesn't own any signers for multisig contract "+t.address.pkh),r}})();return t=>{switch(t.type){case"ledger":case"mnemonic":case"social":case"secret_key":return[t];case"multisig":return e(t)}}},eK=()=>{const e=Qq(),t=tK();return r=>t(e(r))},tK=()=>{const e=n4();return t=>(0,ts.maxBy)(t,(t=>Number(e(t.address.pkh)||"0")))};var rK=r(3684),nK=r.n(rK);const iK={},oK={},aK=(e,t)=>{oK[e]=t},sK=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(const e in n)this[e]=n[e];if(i&&function(e){return"object"===typeof e}(i)&&"cause"in i&&!("cause"in this)){const e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return iK[e]=t,t};sK("AccountNameRequired"),sK("AccountNotSupported"),sK("AmountRequired"),sK("BluetoothRequired"),sK("BtcUnmatchedApp"),sK("CantOpenDevice"),sK("CashAddrNotSupported"),sK("ClaimRewardsFeesWarning"),sK("CurrencyNotSupported"),sK("DeviceAppVerifyNotSupported"),sK("DeviceGenuineSocketEarlyClose"),sK("DeviceNotGenuine"),sK("DeviceOnDashboardExpected"),sK("DeviceOnDashboardUnexpected"),sK("DeviceInOSUExpected"),sK("DeviceHalted"),sK("DeviceNameInvalid"),sK("DeviceSocketFail"),sK("DeviceSocketNoBulkStatus"),sK("DeviceSocketNoBulkStatus"),sK("UnresponsiveDeviceError");const cK=sK("DisconnectedDevice"),lK=sK("DisconnectedDeviceDuringOperation"),uK=(sK("DeviceExtractOnboardingStateError"),sK("DeviceOnboardingStatePollingError"),sK("EnpointConfig"),sK("EthAppPleaseEnableContractData"),sK("FeeEstimationFailed"),sK("FirmwareNotRecognized"),sK("HardResetFail"),sK("InvalidXRPTag"),sK("InvalidAddress"),sK("InvalidNonce"),sK("InvalidAddressBecauseDestinationIsAlsoSource"),sK("LatestMCUInstalledError"),sK("UnknownMCU"),sK("LedgerAPIError"),sK("LedgerAPIErrorWithMessage"),sK("LedgerAPINotAvailable"),sK("ManagerAppAlreadyInstalled"),sK("ManagerAppRelyOnBTC"),sK("ManagerAppDepInstallRequired"),sK("ManagerAppDepUninstallRequired"),sK("ManagerDeviceLocked"),sK("ManagerFirmwareNotEnoughSpace"),sK("ManagerNotEnoughSpace"),sK("ManagerUninstallBTCDep"),sK("NetworkDown"),sK("NetworkError"),sK("NoAddressesFound"),sK("NotEnoughBalance"),sK("NotEnoughBalanceToDelegate"),sK("NotEnoughBalanceInParentAccount"),sK("NotEnoughSpendableBalance"),sK("NotEnoughBalanceBecauseDestinationNotCreated"),sK("NoAccessToCamera"),sK("NotEnoughGas"),sK("NotEnoughGasSwap"),sK("NotSupportedLegacyAddress"),sK("GasLessThanEstimate"),sK("PriorityFeeTooLow"),sK("PriorityFeeTooHigh"),sK("PriorityFeeHigherThanMaxFee"),sK("MaxFeeTooLow"),sK("PasswordsDontMatch"),sK("PasswordIncorrect"),sK("RecommendSubAccountsToEmpty"),sK("RecommendUndelegation"),sK("TimeoutTagged"),sK("UnexpectedBootloader"),sK("MCUNotGenuineToDashboard"),sK("RecipientRequired"),sK("UnavailableTezosOriginatedAccountReceive"),sK("UnavailableTezosOriginatedAccountSend"),sK("UpdateFetchFileFail"),sK("UpdateIncorrectHash"),sK("UpdateIncorrectSig"),sK("UpdateYourApp"),sK("UserRefusedDeviceNameChange"),sK("UserRefusedAddress"),sK("UserRefusedFirmwareUpdate"),sK("UserRefusedAllowManager"),sK("UserRefusedOnDevice"),sK("ExpertModeRequired"),sK("TransportOpenUserCancelled")),dK=sK("TransportInterfaceNotAvailable"),hK=sK("TransportRaceCondition"),fK=sK("TransportWebUSBGestureRequired");sK("TransactionHasBeenValidatedError"),sK("TransportExchangeTimeoutError"),sK("DeviceShouldStayInApp"),sK("WebsocketConnectionError"),sK("WebsocketConnectionFailed"),sK("WrongDeviceForAccount"),sK("WrongAppForCurrency"),sK("ETHAddressNonEIP"),sK("CantScanQRCode"),sK("FeeNotLoaded"),sK("FeeNotLoadedSwap"),sK("FeeRequired"),sK("FeeTooHigh"),sK("PendingOperation"),sK("SyncError"),sK("PairingFailed"),sK("PeerRemovedPairing"),sK("GenuineCheckFailed"),sK("LedgerAPI4xx"),sK("LedgerAPI5xx"),sK("FirmwareOrAppUpdateRequired"),sK("ReplacementTransactionUnderpriced"),sK("OpReturnSizeLimit"),sK("DustLimit"),sK("LanguageNotFound"),sK("NoDBPathGiven"),sK("DBWrongPassword"),sK("DBNotReset");var pK;!function(e){e.Unknown="Unknown",e.LocationServicesDisabled="LocationServicesDisabled",e.LocationServicesUnauthorized="LocationServicesUnauthorized",e.BluetoothScanStartFailed="BluetoothScanStartFailed"}(pK||(pK={}));Error;class mK extends Error{constructor(e,t){const r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=new Error(e).stack,this.id=t}}aK("TransportError",(e=>new mK(e.message,e.id)));const gK={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};class vK extends Error{constructor(e,{canBeMappedToChildError:t=!0}={}){const r=Object.keys(gK).find((t=>gK[t]===e))||"UNKNOWN_ERROR",n=function(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=e&&e<=28671)return"Internal error, please report"}(e)||r,i=`Ledger device: ${n} (0x${e.toString(16)})`;if(super(i),this.name="TransportStatusError",this.statusCode=e,this.statusText=r,t&&e===gK.LOCKED_DEVICE)return new yK(i)}}class yK extends vK{constructor(e){super(gK.LOCKED_DEVICE,{canBeMappedToChildError:!1}),e&&(this.message=e),this.name="LockedDeviceError"}}aK("TransportStatusError",(e=>new vK(e.statusCode)));let bK=0;const wK=[],xK=(e,t,r)=>{const n={type:e,id:String(++bK),date:new Date};t&&(n.message=t),r&&(n.data=r),kK(n)};class _K{constructor(e,t){this.type=e,this.context=t}trace(e,t){(({type:e,message:t,data:r,context:n})=>{const i={type:e,id:String(++bK),date:new Date};t&&(i.message=t),r&&(i.data=r),n&&(i.context=n),kK(i)})({type:this.type,message:e,data:t,context:this.context})}getContext(){return this.context}setContext(e){this.context=e}updateContext(e){this.context=Object.assign(Object.assign({},this.context),e)}getType(){return this.type}setType(e){this.type=e}withType(e){return new _K(e,this.context)}withContext(e){return new _K(this.type,e)}withUpdatedContext(e){return new _K(this.type,Object.assign(Object.assign({},this.context),e))}}const SK=e=>(wK.push(e),()=>{const t=wK.indexOf(e);-1!==t&&(wK[t]=wK[wK.length-1],wK.pop())});function kK(e){for(let t=0;tAK(this,void 0,void 0,(function*(){const s=this.tracer.withUpdatedContext({function:"send"});if(i.length>=256)throw s.trace("data.length exceeded 256 bytes limit",{dataLength:i.length}),new mK("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");s.trace("Starting an exchange",{abortTimeoutMs:a});const c=yield this.exchange(EK.concat([EK.from([e,t,r,n]),EK.from([i.length]),i]),{abortTimeoutMs:a});s.trace("Received response from exchange");const l=c.readUInt16BE(c.length-2);if(!o.some((e=>e===l)))throw new vK(l);return c})),this._appAPIlock=null,this.tracer=new _K(null!==t&&void 0!==t?t:"transport",e)}exchange(e,{abortTimeoutMs:t}={}){throw new Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return(()=>AK(this,void 0,void 0,(function*(){if(!r)for(const n of e){const e=yield this.exchange(n);if(r)return;const i=e.readUInt16BE(e.length-2);if(i!==gK.OK)throw new vK(i);t.next(e)}})))().then((()=>!r&&t.complete()),(e=>!r&&t.error(e))),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise(((r,n)=>{let i=!1;const o=this.listen({next:t=>{i=!0,o&&o.unsubscribe(),a&&clearTimeout(a),this.open(t.descriptor,e).then(r,n)},error:e=>{a&&clearTimeout(a),n(e)},complete:()=>{a&&clearTimeout(a),i||n(new mK(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),a=t?setTimeout((()=>{o.unsubscribe(),n(new mK(this.ErrorMessage_ListenTimeout,"ListenTimeout"))}),t):null}))}exchangeAtomicImpl(e){return AK(this,void 0,void 0,(function*(){const t=this.tracer.withUpdatedContext({function:"exchangeAtomicImpl",unresponsiveTimeout:this.unresponsiveTimeout});if(this.exchangeBusyPromise)throw t.trace("Atomic exchange is already busy"),new hK("An action was already pending on the Ledger device. Please deny or reconnect.");let r;const n=new Promise((e=>{r=e}));this.exchangeBusyPromise=n;let i=!1;const o=setTimeout((()=>{t.trace('Timeout reached, emitting Transport event "unresponsive"',{unresponsiveTimeout:this.unresponsiveTimeout}),i=!0,this.emit("unresponsive")}),this.unresponsiveTimeout);try{const r=yield e();return i&&(t.trace("Device was unresponsive, emitting responsive"),this.emit("responsive")),r}finally{t.trace("Finalize, clearing busy guard"),clearTimeout(o),r&&r(),this.exchangeBusyPromise=null}}))}decorateAppAPIMethods(e,t,r){for(const n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>AK(this,void 0,void 0,(function*(){const{_appAPIlock:o}=this;if(o)return Promise.reject(new mK("Ledger Device is busy (lock "+o+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}}))}setTraceContext(e){this.tracer=this.tracer.withContext(e)}updateTraceContext(e){this.tracer.updateContext(e)}getTraceContext(){return this.tracer.getContext()}}PK.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",PK.ErrorMessage_NoDeviceFound="No Ledger device found";const OK=PK;var TK=r(4240).Buffer;function CK(e){const t=TK.alloc(2);return t.writeUInt16BE(e,0),t}const jK={data:TK.alloc(0),dataLength:0,sequence:0},RK=(e,t)=>({makeBlocks(r){let n=TK.concat([CK(r.length),r]);const i=t-5,o=Math.ceil(n.length/i);n=TK.concat([n,TK.alloc(o*i-n.length+1).fill(0)]);const a=[];for(let t=0;ti&&(n=n.slice(0,i)),{data:n,dataLength:i,sequence:o}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}});var IK=r(3712),MK=r.n(IK);var LK;!function(e){e.blue="blue",e.nanoS="nanoS",e.nanoSP="nanoSP",e.nanoX="nanoX",e.stax="stax"}(LK||(LK={}));const NK={[LK.blue]:{id:LK.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[LK.nanoS]:{id:LK.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return MK().lt(null!==(t=MK().coerce(e))&&void 0!==t?t:"","2.0.0")?4096:2048}},[LK.nanoSP]:{id:LK.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:e=>32},[LK.nanoX]:{id:LK.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[LK.stax]:{id:LK.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:e=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}},DK=(LK.blue,LK.nanoS,LK.nanoSP,LK.nanoX,LK.stax,Object.values(NK)),zK=11415,BK=e=>{const t=DK.find((t=>t.legacyUsbProductId===e));if(t)return t;const r=e>>8,n=DK.find((e=>e.productIdMM===r));return n},FK=[],UK={};for(const r in NK){const e=NK[r],{bluetoothSpec:t}=e;if(t)for(let r=0;re.vendorId===zK))}))}var KK=r(4240).Buffer,WK=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(Mde){o(Mde)}}function s(e){try{c(n.throw(e))}catch(Mde){o(Mde)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class GK extends OK{constructor(e,t){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.device=e,this.interfaceNumber=t,this.deviceModel=BK(e.productId)}static request(){return WK(this,void 0,void 0,(function*(){const e=yield VK();return GK.open(e)}))}static openConnected(){return WK(this,void 0,void 0,(function*(){const e=yield qK();return 0===e.length?null:GK.open(e[0])}))}static open(e){return WK(this,void 0,void 0,(function*(){yield e.open(),null===e.configuration&&(yield e.selectConfiguration(1)),yield ZK(e);const t=e.configurations[0].interfaces.find((({alternates:e})=>e.some((e=>255===e.interfaceClass))));if(!t)throw new dK("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");const r=t.interfaceNumber;try{yield e.claimInterface(r)}catch(Mde){throw yield e.close(),new dK(Mde.message)}const n=new GK(e,r),i=t=>{e===t.device&&(navigator.usb.removeEventListener("disconnect",i),n._emitDisconnect(new cK))};return navigator.usb.addEventListener("disconnect",i),n}))}close(){return WK(this,void 0,void 0,(function*(){yield this.exchangeBusyPromise,yield this.device.releaseInterface(this.interfaceNumber),yield ZK(this.device),yield this.device.close()}))}exchange(e){return WK(this,void 0,void 0,(function*(){const t=yield this.exchangeAtomicImpl((()=>WK(this,void 0,void 0,(function*(){const{channel:t,packetSize:r}=this;xK("apdu","=> "+e.toString("hex"));const n=RK(t,r),i=n.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("disconnected"))throw this._emitDisconnect(e),new lK(e.message);throw e}));return t}))}setScrambleKey(){}}GK.isSupported=()=>Promise.resolve(!!navigator&&!!navigator.usb&&"function"===typeof navigator.usb.getDevices),GK.list=qK,GK.listen=e=>{let t=!1;return function(){return $K(this,void 0,void 0,(function*(){const e=yield qK();return e.length>0?e[0]:VK()}))}().then((r=>{if(!t){const t=BK(r.productId);e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}),(t=>{window.DOMException&&t instanceof window.DOMException&&18===t.code?e.error(new fK(t.message)):e.error(new uK(t.message))})),{unsubscribe:function(){t=!0}}};const YK=GK;function ZK(e){return WK(this,void 0,void 0,(function*(){try{yield e.reset()}catch(Lde){console.warn(Lde)}}))}var XK=r(4240).Buffer;function JK(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(Mde){o(Mde)}}function s(e){try{c(n.throw(e))}catch(Mde){o(Mde)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;function QK(e){const t=[];e.split("/").forEach((e=>{let r=parseInt(e,10);Number.isNaN(r)||(e.length>1&&"'"===e[e.length-1]&&(r+=2147483648),t.push(r))}));const r=XK.alloc(1+4*t.length);return r[0]=t.length,t.forEach(((e,t)=>{r.writeUInt32BE(e,1+4*t)})),r}function eW(e,t){const r=XK.alloc(32);r.fill(0);let n=t[e],i=e+1;return n>32&&(i+=n-32,n=32),t.copy(r,32-n,i,i+n),{buffer:r,idxValueStart:i,length:n}}class tW extends ls{constructor(e){super(),this.message=e,this.name="InvalidLedgerResponseError"}}class rW extends ls{constructor(e){super(),this.cause=e,this.name="PublicKeyRetrievalError",this.message="Unable to retrieve Public Key from Ledger"}}class nW extends ls{constructor(){super(),this.name="PublicKeyHashRetrievalError",this.message="Unable to retrieve Public Key Hash from Ledger"}}class iW extends us{constructor(e){super(),this.derivationType=e,this.name="InvalidDerivationTypeError",this.message=`Invalid derivation type ${e} expecting one of the following: DerivationType.ED25519, DerivationType.SECP256K1, DerivationType.P256 or DerivationType.BIP32_ED25519`}}var oW;!function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256",e[e.BIP32_ED25519=3]="BIP32_ED25519"}(oW||(oW={}));class aW{constructor(e,t="44'/1729'/0'/0'",r=!0,n=oW.ED25519){if(this.transport=e,this.path=t,this.prompt=r,this.derivationType=n,this.CLA=128,this.INS_GET_PUBLIC_KEY=2,this.INS_PROMPT_PUBLIC_KEY=3,this.INS_SIGN=4,this.FIRST_MESSAGE_SEQUENCE=0,this.LAST_MESSAGE_SEQUENCE=129,this.OTHER_MESSAGE_SEQUENCE=1,this.transport.setScrambleKey("XTZ"),!t.startsWith("44'/1729'"))throw new ys(t,`${Sc(ac.NO_PREFIX_MATCHED)} expecting prefix "44'/1729'".`);if(!Object.values(oW).includes(n))throw new iW(n.toString())}publicKeyHash(){return JK(this,void 0,void 0,(function*(){if(this._publicKeyHash||(yield this.publicKey()),this._publicKeyHash)return this._publicKeyHash;throw new nW}))}publicKey(){return JK(this,void 0,void 0,(function*(){if(this._publicKey)return this._publicKey;const e=yield this.getLedgerPublicKey(),t=e[0],r=function(e,t){return 0===t||3===t?e=e.slice(1):(e[0]=2+(1&e[64]),e=e.slice(0,33)),e}(e.slice(1,1+t),this.derivationType),n=this.getPrefixes(),i=Oc(r,n.prefPk),o=Oc((0,is.hash)(r,20),n.prefPkh);return this._publicKey=i,this._publicKeyHash=o,i}))}getLedgerPublicKey(){return JK(this,void 0,void 0,(function*(){try{let e=this.INS_PROMPT_PUBLIC_KEY;!1===this.prompt&&(e=this.INS_GET_PUBLIC_KEY);return yield this.transport.send(this.CLA,e,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,QK(this.path))}catch(e){throw new rW(e)}}))}secretKey(){return JK(this,void 0,void 0,(function*(){throw new Cs("Secret key cannot be exposed")}))}sign(e,t){return JK(this,void 0,void 0,(function*(){const r=function(e,t){let r=e;"undefined"!==typeof t&&(r=XK.from(t).toString("hex").concat(e));return r}(e,t),n=XK.from(r,"hex");let i=[];i.push(QK(this.path)),i=function(e,t){let r=0;for(;r!==t.length;){const n=r+230>=t.length?t.length-r:230,i=XK.alloc(n);t.copy(i,0,r,r+n),e.push(i),r+=n}return e}(i,n);const o=yield this.signWithLedger(i);let a;if(this.derivationType===oW.ED25519||this.derivationType===oW.BIP32_ED25519)a=o.slice(0,o.length-2).toString("hex");else{if(!function(e){let t=!0;49!==e[0]&&48!==e[0]&&(t=!1),e[1]+4!==e.length&&(t=!1),2!==e[2]&&(t=!1);const r=e[3];2!==e[4+r]&&(t=!1);const n=5+r;return n+1+e[n]+2!==e.length&&(t=!1),t}(o))throw new tW("Invalid signature return by ledger unable to parse the response");const e=eW(3,o),t=eW(e.idxValueStart+e.length+1,o);a=XK.concat([e.buffer,t.buffer]).toString("hex")}return{bytes:e,sig:Oc(a,nc[Js.SIG]),prefixSig:Oc(a,this.getPrefixes().prefSig),sbytes:e+a}}))}signWithLedger(e){return JK(this,void 0,void 0,(function*(){let t=yield this.transport.send(this.CLA,this.INS_SIGN,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,e[0]);for(let r=1;r{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}));continue}t.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}const r=t.join("&");return r?`?${r}`:""}createRequest({url:e,method:t,timeout:r=this.timeout,query:n,headers:i={},json:o=!0},a){return lW(this,void 0,void 0,(function*(){const s=e+this.serialize(n);i["Content-Type"]||(i["Content-Type"]="application/json");const c=new AbortController,l=setTimeout((()=>c.abort()),r);try{const e=yield pW(s,{method:t,headers:i,body:JSON.stringify(a),signal:c.signal});if("undefined"===typeof e)throw new Error("Response is undefined");if(e.status>=400){const t=yield e.text();throw new dW(`Http error response: (${e.status}) ${t}`,e.status,e.statusText,t,s)}return o?e.json():e.text()}catch(Mde){throw Mde instanceof Error&&"AbortError"===Mde.name?new hW(r,s):Mde instanceof dW?Mde:new uW(String(t),s,Mde)}finally{clearTimeout(l)}}))}}function gW(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const r=e[t];let i;if("undefined"!==typeof r){if(Array.isArray(r))return i=wW(r),void(n[t]=i);i=new Xs(r),n[t]=i}})),n}!function(e){e.GET_BAKING_RIGHTS="getBakingRights",e.GET_BALLOTS="getBallots",e.GET_BALLOT_LIST="getBallotList",e.GET_BIG_MAP_KEY="getBigMapKey",e.GET_BIG_MAP_EXPR="getBigMapExpr",e.GET_BLOCK_HASH="getBlockHash",e.GET_BLOCK="getBlock",e.GET_BLOCK_HEADER="getBlockHeader",e.GET_BLOCK_METADATA="getBlockMetadata",e.GET_BALANCE="getBalance",e.GET_CHAIN_ID="getChainId",e.GET_CONSTANTS="getConstants",e.GET_CONTRACT="getContract",e.GET_CURRENT_PERIOD="getCurrentPeriod",e.GET_CURRENT_PROPOSAL="getCurrentProposal",e.GET_CURRENT_QUORUM="getCurrentQuorum",e.GET_DELEGATE="getDelegate",e.GET_DELEGATES="getDelegates",e.GET_VOTING_INFO="getVotingInfo",e.GET_ATTESTATION_RIGHTS="getAttestationRights",e.GET_ENDORSING_RIGHTS="getEndorsingRights",e.GET_ENTRYPOINTS="getEntrypoints",e.GET_LIVE_BLOCKS="getLiveBlocks",e.GET_MANAGER_KEY="getManagerKey",e.GET_NORMALIZED_SCRIPT="getNormalizedScript",e.GET_PROPOSALS="getProposals",e.GET_PROTOCOLS="getProtocols",e.GET_SAPLING_DIFF_BY_CONTRACT="getSaplingDiffByContract",e.GET_SAPLING_DIFF_BY_ID="getSaplingDiffById",e.GET_SCRIPT="getScript",e.GET_STORAGE="getStorage",e.GET_SUCCESSOR_PERIOD="getSuccessorPeriod",e.GET_VOTES_LISTINGS="getVotesListings",e.PACK_DATA="packData",e.GET_STORAGE_USED_SPACE="getStorageUsedSpace",e.GET_STORAGE_PAID_SPACE="getStoragePaidSpace",e.GET_TICKET_BALANCE="getTicketBalance",e.GET_ALL_TICKET_BALANCES="getAllTicketBalances",e.GET_PENDING_OPERATIONS="getPendingOperations"}(bW||(bW={}));var xW,_W,SW,kW,EW,AW,PW,OW,TW,CW;!function(e){e.TOO_LARGE="too large"}(xW||(xW={})),function(e){e.BAKING_BONUSES="baking bonuses",e.BAKING_REWARDS="baking rewards",e.BLOCK_FEES="block fees",e.BONDS="bonds",e.BOOTSTRAP="bootstrap",e.BURNED="burned",e.COMMITMENT="commitment",e.DELEGATE_DENOMINATOR="delegate_denominator",e.DELEGATOR_NUMERATOR="delegator_numerator",e.DEPOSITS="deposits",e.ENDORSING_REWARDS="endorsing rewards",e.INVOICE="invoice",e.LOST_ENDORSING_REWARDS="lost endorsing rewards",e.MINTED="minted",e.NONCE_REVELATION_REWARDS="nonce revelation rewards",e.PUNISHMENTS="punishments",e.SMART_ROLLUP_REFUTATION_PUNISHMENTS="smart_rollup_refutation_punishments",e.SMART_ROLLUP_REFUTATION_REWARDS="smart_rollup_refutation_rewards",e.STORAGE_FEES="storage fees",e.SUBSIDY="subsidy",e.UNSTAKED_DEPOSITS="unstaked_deposits"}(_W||(_W={})),function(e){e.WASM2="wasm_2_0_0",e.ARITH="arith",e.RISCV="riscv"}(SW||(SW={})),function(e){e.START="start",e.MOVE="move"}(kW||(kW={})),function(e){e.INBOX_PROOF="inbox_proof",e.REVEAL_PROOF="reveal_proof",e.FIRST_INPUT="first_input"}(EW||(EW={})),function(e){e.RAW_DATA_PROOF="raw_data_proof",e.METADATA_PROOF="metadata_proof",e.DAL_PAGE_PROOF="dal_page_proof"}(AW||(AW={})),function(e){e.ONGOING="ongoing",e.ENDED="ended"}(PW||(PW={})),function(e){e.LOSER="loser",e.DRAW="draw"}(OW||(OW={})),function(e){e.CONFLICT_RESOLVED="conflict_resolved",e.TIMEOUT="timeout"}(TW||(TW={})),function(e){e.ORIGINATION="origination",e.DELEGATION="delegation",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ACTIVATION="activate_account",e.ATTESTATION="attestation",e.ENDORSEMENT="endorsement",e.PREATTESTATION="preattestation",e.PREENDORSEMENT="preendorsement",e.SET_DEPOSITS_LIMIT="set_deposits_limit",e.DOUBLE_PREATTESTATION_EVIDENCE="double_preattestation_evidence",e.DOUBLE_PREENDORSEMENT_EVIDENCE="double_preendorsement_evidence",e.ATTESTATION_WITH_SLOT="attestation_with_slot",e.ENDORSEMENT_WITH_SLOT="endorsement_with_slot",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ATTESTATION_EVIDENCE="double_attestation_evidence",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.PROPOSALS="proposals",e.BALLOT="ballot",e.FAILING_NOOP="failing_noop",e.REGISTER_GLOBAL_CONSTANT="register_global_constant",e.TRANSFER_TICKET="transfer_ticket",e.INCREASE_PAID_STORAGE="increase_paid_storage",e.UPDATE_CONSENSUS_KEY="update_consensus_key",e.DRAIN_DELEGATE="drain_delegate",e.VDF_REVELATION="vdf_revelation",e.EVENT="event",e.TICKET_UPDATES="ticket_updates",e.SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message",e.SMART_ROLLUP_PUBLISH="smart_rollup_publish",e.SMART_ROLLUP_CEMENT="smart_rollup_cement",e.SMART_ROLLUP_RECOVER_BOND="smart_rollup_recover_bond",e.SMART_ROLLUP_REFUTE="smart_rollup_refute",e.SMART_ROLLUP_TIMEOUT="smart_rollup_timeout"}(CW||(CW={}));class jW{constructor(e,t="main",r=new mW){this.url=e,this.chain=t,this.httpBackend=r}createURL(e){let t=this.url;for(;t.endsWith("/");)t=t.slice(0,-1);return`${t}${e}`}validateAddress(e){const t=gc(e);if(t!==ac.VALID)throw new ms(e,Sc(t))}validateContract(e){const t=yc(e);if(t!==ac.VALID)throw new ks(e,Sc(t))}getBlockHash({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/hash`),method:"GET"})}))}getLiveBlocks({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/live_blocks`),method:"GET"})}))}getBalance(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/balance`),method:"GET"});return new Xs(r)}))}getStorage(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage`),method:"GET"})}))}getScript(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/script`),method:"GET"})}))}getNormalizedScript(e,t={unparsing_mode:"Readable"},{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/script/normalized`),method:"POST"},t)}))}getContract(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}`),method:"GET"});return Object.assign(Object.assign({},r),{balance:new Xs(r.balance)})}))}getManagerKey(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/manager_key`),method:"GET"})}))}getDelegate(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){let r;this.validateAddress(e);try{r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/delegate`),method:"GET"})}catch(n){if(!(n instanceof dW&&n.status===sW.NOT_FOUND))throw n;r=null}return r}))}getBigMapKey(e,t,{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/big_map_get`),method:"POST"},t)}))}getBigMapExpr(e,t,{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/big_maps/${e}/${t}`),method:"GET"})}))}getDelegates(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}`),method:"GET"}),n=wW(r,["balance","full_balance","current_frozen_deposits","frozen_deposits","frozen_balance","frozen_deposits_limit","staking_balance","delegated_balance","voting_power","total_delegated_stake","staking_denominator"]);return Object.assign(Object.assign(Object.assign({},r),n),{frozen_balance_by_cycle:r.frozen_balance_by_cycle?r.frozen_balance_by_cycle.map((e=>{var{deposit:t,deposits:r,fees:n,rewards:i}=e,o=gW(e,["deposit","deposits","fees","rewards"]);const a=wW({deposit:t,deposits:r,fees:n,rewards:i},["deposit","deposits","fees","rewards"]);return Object.assign(Object.assign({},o),{deposit:a.deposit,deposits:a.deposits,fees:a.fees,rewards:a.rewards})})):void 0})}))}getVotingInfo(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateAddress(e),yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}/voting_info`),method:"GET"})}))}getConstants({block:e}=yW){return vW(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/context/constants`),method:"GET"}),r=wW(t,["time_between_blocks","hard_gas_limit_per_operation","hard_gas_limit_per_block","proof_of_work_threshold","tokens_per_roll","seed_nonce_revelation_tip","block_security_deposit","endorsement_security_deposit","block_reward","endorsement_reward","cost_per_byte","hard_storage_limit_per_operation","test_chain_duration","baking_reward_per_endorsement","delay_per_missing_endorsement","minimal_block_delay","liquidity_baking_subsidy","cache_layout","baking_reward_fixed_portion","baking_reward_bonus_per_slot","endorsing_reward_per_slot","double_baking_punishment","delay_increment_per_round","tx_rollup_commitment_bond","vdf_difficulty","sc_rollup_stake_amount","minimal_stake"]);return Object.assign(Object.assign({},t),r)}))}getBlock({block:e,version:t}=yW){return vW(this,void 0,void 0,(function*(){const r={url:this.createURL(`/chains/${this.chain}/blocks/${e}`),method:"GET"};return void 0!==t&&(r.query={version:t}),yield this.httpBackend.createRequest(r)}))}getBlockHeader({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/header`),method:"GET"})}))}getBlockMetadata({block:e,version:t}=yW){return vW(this,void 0,void 0,(function*(){const r={url:this.createURL(`/chains/${this.chain}/blocks/${e}/metadata`),method:"GET"};return void 0!==t&&(r.query={version:t}),yield this.httpBackend.createRequest(r)}))}getBakingRights(e={},{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/baking_rights`),method:"GET",query:e})}))}getAttestationRights(e={},{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/attestation_rights`),method:"GET",query:e})}))}getEndorsingRights(e={},{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/endorsing_rights`),method:"GET",query:e})}))}getBallotList({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballot_list`),method:"GET"})}))}getBallots({block:e}=yW){return vW(this,void 0,void 0,(function*(){return wW(yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballots`),method:"GET"}),["yay","nay","pass"])}))}getCurrentProposal({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_proposal`),method:"GET"})}))}getCurrentQuorum({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_quorum`),method:"GET"})}))}getVotesListings({block:e}=yW){return vW(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/listings`),method:"GET"});return t.map((e=>(e.voting_power&&(e.voting_power=new Xs(e.voting_power)),e))),t}))}getProposals({block:e}=yW){return vW(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/proposals`),method:"GET"});return t.map((e=>e[1]=new Xs(e[1]))),t}))}forgeOperations(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/forge/operations`),method:"POST"},e)}))}injectOperation(e){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL("/injection/operation"),method:"POST"},e)}))}preapplyOperations(e,{block:t,version:r}=yW){return vW(this,void 0,void 0,(function*(){const n={url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/preapply/operations`),method:"POST"};return void 0!==r&&(n.query={version:r}),yield this.httpBackend.createRequest(n,e)}))}getEntrypoints(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateContract(e);return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/entrypoints`),method:"GET"})}))}runOperation(e,{block:t,version:r}=yW){return vW(this,void 0,void 0,(function*(){const n={url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_operation`),method:"POST"};return void 0!==r&&(n.query={version:r}),yield this.httpBackend.createRequest(n,e)}))}simulateOperation(e,{block:t,version:r}=yW){return vW(this,void 0,void 0,(function*(){const n={url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/simulate_operation`),method:"POST"};return void 0!==r&&(n.query={version:r}),yield this.httpBackend.createRequest(n,e)}))}runCode(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_code`),method:"POST"},e)}))}runScriptView(e,t){var{unparsing_mode:r="Readable"}=e,n=gW(e,["unparsing_mode"]),i=(void 0===t?yW:t).block;return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_script_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}runView(e,t){var{unparsing_mode:r="Readable"}=e,n=gW(e,["unparsing_mode"]),i=(void 0===t?yW:t).block;return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}getChainId(){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/chain_id`),method:"GET"})}))}packData(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/pack_data`),method:"POST"},e),{gas:n}=r,i=gW(r,["gas"]);let o=n;const a=new Xs(n||"");return a.isNaN()||(o=a),Object.assign({gas:o},i)}))}getRpcUrl(){return this.url}getCurrentPeriod({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_period`),method:"GET"})}))}getSuccessorPeriod({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/successor_period`),method:"GET"})}))}getSaplingDiffById(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/sapling/${e}/get_diff`),method:"GET"})}))}getSaplingDiffByContract(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/single_sapling_get_diff`),method:"GET"})}))}getProtocols({block:e}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/protocols`),method:"GET"})}))}getStorageUsedSpace(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/used_space`),method:"GET"})}))}getStoragePaidSpace(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/paid_space`),method:"GET"})}))}getTicketBalance(e,t,{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/ticket_balance`),method:"POST"},t)}))}getAllTicketBalances(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/all_ticket_balances`),method:"GET"})}))}getPendingOperations(e={}){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/mempool/pending_operations`),method:"GET",query:e})}))}}function RW(e){return"function"===typeof e}function IW(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var MW=IW((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function LW(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var NW=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=MI(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(f){e={error:f}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(RW(c))try{c()}catch(Mde){i=Mde instanceof MW?Mde.errors:[Mde]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=MI(l),d=u.next();!d.done;d=u.next()){var h=d.value;try{BW(h)}catch(Lde){i=null!==i&&void 0!==i?i:[],Lde instanceof MW?i=NI(NI([],LI(i)),LI(Lde.errors)):i.push(Lde)}}}catch(p){r={error:p}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new MW(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)BW(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&LW(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&LW(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),DW=NW.EMPTY;function zW(e){return e instanceof NW||e&&"closed"in e&&RW(e.remove)&&RW(e.add)&&RW(e.unsubscribe)}function BW(e){RW(e)?e():e.unsubscribe()}var FW={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},UW={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?DW:(this.currentObservers=null,o.push(e),new NW((function(){t.currentObservers=null,LW(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new oG;return e.source=this,e},t.create=function(e,t){return new lG(e,t)},t}(oG),lG=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return TI(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:DW},t}(cG),uG={now:function(){return(uG.delegate||Date).now()},delegate:void 0},dG=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=uG);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return TI(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i0&&d(i)}),void 0,void 0,(function(){(null===o||void 0===o?void 0:o.closed)||null===o||void 0===o||o.unsubscribe(),s=null}))),!l&&d(null!=n?"number"===typeof n?n:+n-c.now():i)}))}function pY(e){throw new hY(e)}function mY(e,t){return RW(t)?JG(e,t,1):JG(e,1)}function gY(){for(var e=[],t=0;t0&&(t=new JW({next:function(e){return m.next(e)},error:function(e){u=!0,d(),n=bY(h,i,e),m.error(e)},complete:function(){l=!0,d(),n=bY(h,a),m.complete()}}),SG(e).subscribe(t))}))(e)}}function bY(e,t){for(var r=[],n=2;n=2;return function(n){return n.pipe(e?xY((function(t,r){return e(t,r,n)})):nG,(o=1)<=0?function(){return AG}:IG((function(e,t){var r=0;e.subscribe(MG(t,(function(e){++r<=o&&(t.next(e),o<=r&&t.complete())})))})),r?function(e){return IG((function(t,r){var n=!1;t.subscribe(MG(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}(t):(void 0===(i=function(){return new _Y})&&(i=SY),IG((function(e,t){var r=!1;e.subscribe(MG(t,(function(e){r=!0,t.next(e)}),(function(){return r?t.complete():t.error(i())})))}))));var i,o}}function EY(e){return IG((function(t,r){var n,i=null,o=!1;i=t.subscribe(MG(r,void 0,void 0,(function(a){n=SG(e(a,EY(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0}))),o&&(i.unsubscribe(),i=null,n.subscribe(r))}))}function AY(e,t){return void 0===t&&(t=nG),e=null!==e&&void 0!==e?e:PY,IG((function(r,n){var i,o=!0;r.subscribe(MG(n,(function(r){var a=t(r);!o&&e(i,a)||(o=!1,i=a,n.next(r))})))}))}function PY(e,t){return e===t}function OY(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"===typeof e?e:{count:e}).count,n=void 0===r?1/0:r,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return n<=0?nG:IG((function(e,t){var r,o=0,s=function(){var c=!1;r=e.subscribe(MG(t,(function(e){a&&(o=0),t.next(e)}),void 0,(function(e){if(o++{r.set(t,e[t])})),r}typecheckKey(e){this.keySchema&&this.keySchema.Typecheck(e)}typecheckValue(e){this.valueSchema&&this.valueSchema.Typecheck(e)}assertTypecheckValue(e){try{this.typecheckValue(e)}catch(Mde){throw new UY(e,this.valueSchema,"value",Mde)}}assertTypecheckKey(e){try{this.typecheckKey(e)}catch(Mde){throw new UY(e,this.keySchema,"key",Mde)}}serializeDeterministically(e){return DY()(e)}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){for(const e of this.valueMap.keys())yield[this.keyMap.get(e),this.valueMap.get(e)]}get(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.valueMap.get(t)}set(e,t){this.assertTypecheckKey(e),this.assertTypecheckValue(t);const r=this.serializeDeterministically(e);this.keyMap.set(r,e),this.valueMap.set(r,t)}delete(e){this.assertTypecheckKey(e),this.keyMap.delete(this.serializeDeterministically(e)),this.valueMap.delete(this.serializeDeterministically(e))}has(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.keyMap.has(t)&&this.valueMap.has(t)}clear(){this.keyMap.clear(),this.valueMap.clear()}get size(){return this.keyMap.size}forEach(e){for(const[t,r]of this.entries())e(r,t,this)}}LY=FY;class HY extends ls{constructor(e,t,r){super(),this.value=e,this.token=t,this.name="TokenValidationError";const n=this.token.annot(),i=n?`[${n}] `:"";this.message=`${i}${r}`}}class VY{constructor(e,t,r){this.val=e,this.idx=t,this.fac=r,this.createToken=this.fac}typeWithoutAnnotations(){const e=t=>{if("object"===typeof t){if(Array.isArray(t)){return t.map((t=>e(t)))}const r=t;return r.args?{prim:r.prim,args:r.args.map((t=>e(t)))}:{prim:r.prim}}return t};return(t=this.val).args?{prim:t.prim,args:t.args.map((t=>e(t)))}:{prim:t.prim};var t}annot(){return(Array.isArray(this.val.annots)&&this.val.annots.length>0?this.val.annots[0]:String(this.idx)).replace(/(%|:)(_Liq_entry_)?/,"")}hasAnnotations(){return Array.isArray(this.val.annots)&&this.val.annots.length}get tokenVal(){return this.val}ExtractSignature(){return[[this.ExtractSchema()]]}}class qY extends VY{compare(e,t){return e===t?0:ethis.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[WY.prim]?t[WY.prim](r,this.val):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}Execute(e,t){if(t&&t[WY.prim])return t[WY.prim](e,this.val);if(Array.isArray(e)){const t=new $Y(this.val);return e.forEach((e=>{t.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1]))})),t}if("int"in e)return e.int;throw new KY(e,this,`Big map is expecting either an array (Athens) or an object with an int property (Babylon). Got ${JSON.stringify(e)}`)}findAndReturnTokens(e,t){return WY.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}WY.prim="big_map";class GY extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="OrValidationError"}}class YY extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e[e.length-1],r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof YY&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if(String(r.annot())!==String(t)||r instanceof YY){if(String(i.annot())!==String(t)||i instanceof YY){if(r instanceof YY){const t=r.Encode(e);if(t)return{prim:"Left",args:[t]}}if(i instanceof YY){const t=i.Encode(e);if(t)return{prim:"Right",args:[t]}}return null}return e.pop(),{prim:"Right",args:[i.Encode(e)]}}return e.pop(),{prim:"Left",args:[r.Encode(e)]}}ExtractSignature(){const e=this.createToken(this.val.args[0],this.idx);let t=1;e instanceof YY&&(t=Object.keys(e.ExtractSchema()).length);const r=this.createToken(this.val.args[1],this.idx+t),n=[];if(e instanceof YY)n.push(...e.ExtractSignature());else for(const i of e.ExtractSignature())n.push([e.annot(),...i]);if(r instanceof YY)n.push(...r.ExtractSignature());else for(const i of r.ExtractSignature())n.push([r.annot(),...i]);return n}EncodeObject(e,t){this.validateJavascriptObject(e);const r=Object.keys(e)[0],n=this.createToken(this.val.args[0],this.idx);let i=1;n instanceof YY&&(i=Object.keys(n.ExtractSchema()).length);const o=this.createToken(this.val.args[1],this.idx+i);if(String(n.annot())!==String(r)||n instanceof YY){if(String(o.annot())!==String(r)||o instanceof YY){if(n instanceof YY){const r=n.EncodeObject(e,t);if(r)return{prim:"Left",args:[r]}}if(o instanceof YY){const r=o.EncodeObject(e,t);if(r)return{prim:"Right",args:[r]}}return null}return{prim:"Right",args:[o.EncodeObject(e[r],t)]}}return{prim:"Left",args:[n.EncodeObject(e[r],t)]}}validateJavascriptObject(e){if("object"!==typeof e||Array.isArray(e)||null===e||1!==Object.keys(e).length)throw new GY(e,this,`EncodeObject expects an object with a single key but got: ${JSON.stringify(e)}`)}Execute(e,t){const r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof YY&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if("Right"===e.prim)return i instanceof YY?i.Execute(e.args[0],t):{[i.annot()]:i.Execute(e.args[0],t)};if("Left"===e.prim)return r instanceof YY?r.Execute(e.args[0],t):{[r.annot()]:r.Execute(e.args[0],t)};throw new GY(e,this,`Was expecting Left or Right prim but got: ${JSON.stringify(e.prim)}`)}traversal(e,t,r){const n=this.createToken(this.val.args[0],this.idx);let i,o=1;n instanceof YY?(i=e(n),o=Object.keys(n.ExtractSchema()).length):i={[n.annot()]:e(n)};const a=this.createToken(this.val.args[1],this.idx+o);let s;s=a instanceof YY?t(a):{[a.annot()]:t(a)};return r(i,s)}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}generateSchema(){return{__michelsonType:YY.prim,schema:this.traversal((e=>e instanceof YY?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof YY?e.generateSchema().schema:e.generateSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}}findToken(e){const t=this.createToken(this.val.args[0],this.idx);let r=1;t instanceof YY&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(this.val.args[1],this.idx+r);if(String(t.annot())===String(e)&&!(t instanceof YY)&&t instanceof qY)return t;if(String(n.annot())===String(e)&&!(n instanceof YY)&&n instanceof qY)return n;if(t instanceof YY){const r=t.findToken(e);if(r)return r}if(n instanceof YY){const t=n.findToken(e);if(t)return t}return null}compare(e,t){const r=Object.keys(e)[0];if(r!==Object.keys(t)[0]){return JSON.stringify(this.EncodeObject(e))r.findAndReturnTokens(e,t)),(r=>r.findAndReturnTokens(e,t)),((e,t)=>Object.assign(Object.assign({},e),t))),t}}YY.prim="or";class ZY extends ls{constructor(e){super(e),this.message=e,this.name="TokenArgumentValidationError"}}class XY extends ls{constructor(e,t){super(),this.val1=e,this.val2=t,this.name="TokenComparisonError",this.message=`Tokens ${JSON.stringify(e)} and ${JSON.stringify(t)} are not comparable`}}function JY(e,t=QY.prim){if(Array.isArray(e))return JY({prim:t,args:e},t);if(void 0===e.args)throw new ZY(`The value ${JSON.stringify(e)} is an invalid PairToken with no arguments, a pair must have two or more arguments.`);return e.args.length>2?[e.args[0],{prim:t,args:e.args.slice(1)}]:[e.args[0],e.args[1]]}class QY extends qY{constructor(e,t,r){super(Array.isArray(e)?{prim:QY.prim,args:e}:e.prim?e:{prim:QY.prim,args:e},t,r)}args(){return JY(this.val)}tokens(){let e=0;return this.args().map((t=>{const r=this.createToken(t,this.idx+e);return r instanceof QY?e+=Object.keys(r.ExtractSchema()).length:e++,r}))}Encode(e){return{prim:"Pair",args:this.tokens().map((t=>t.Encode(e)))}}ExtractSignature(){const e=this.args(),t=this.createToken(e[0],this.idx);let r=1;t instanceof YY&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(e[1],this.idx+r),i=[];for(const o of t.ExtractSignature())for(const e of n.ExtractSignature())i.push([...o,...e]);return i}ToBigMapKey(e){return{key:this.EncodeObject(e),type:this.typeWithoutAnnotations()}}ToKey(e){return this.Execute(e)}EncodeObject(e,t){const[r,n]=this.tokens();let i,o;return i=r instanceof QY&&!r.hasAnnotations()?e:e[r.annot()],o=n instanceof QY&&!n.hasAnnotations()?e:e[n.annot()],{prim:"Pair",args:[r.EncodeObject(i,t),n.EncodeObject(o,t)]}}traversal(e,t){const r=this.args(),n=this.createToken(r[0],this.idx);let i,o=1;n instanceof QY&&!n.hasAnnotations()?(i=e(n),n instanceof QY&&(o=Object.keys(n.ExtractSchema()).length)):i={[n.annot()]:e(n)};const a=this.createToken(r[1],this.idx+o);let s;s=a instanceof QY&&!a.hasAnnotations()?t(a):{[a.annot()]:t(a)};return Object.assign(Object.assign({},i),s)}Execute(e,t){const r=JY(e,"Pair");return this.traversal((e=>e.Execute(r[0],t)),(e=>e.Execute(r[1],t)))}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()))}generateSchema(){return{__michelsonType:QY.prim,schema:this.traversal((e=>e instanceof QY&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof QY&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()))}}compare(e,t){const[r,n]=this.tokens(),i=(e,t)=>e instanceof QY&&!e.hasAnnotations()?t:t[e.annot()];if(r instanceof qY&&n instanceof qY){const o=r.compare(i(r,e),i(r,t));return 0===o?n.compare(i(n,e),i(n,t)):o}throw new XY(e,t)}findAndReturnTokens(e,t){return QY.prim===e&&t.push(this),this.tokens().map((r=>r.findAndReturnTokens(e,t))),t}}QY.prim="pair";class eZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NatValidationError"}}class tZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Xs(e[Object.keys(e)[0]])}Encode(e){const t=e.pop();return this.validate(t),{int:new Xs(t).toFixed()}}validate(e){const t=new Xs(e);if(t.isNaN())throw new eZ(e,this,`Value is not a number: ${JSON.stringify(e)}`);if(t.isNegative())throw new eZ(e,this,`Value cannot be negative: ${JSON.stringify(e)}`)}EncodeObject(e,t){return this.validate(e),t&&t[tZ.prim]?t[tZ.prim](e):{int:new Xs(e).toFixed()}}ExtractSchema(){return tZ.prim}generateSchema(){return{__michelsonType:tZ.prim,schema:tZ.prim}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:tZ.prim}}}ToKey({int:e}){return new Xs(e)}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:re.startsWith("tz"),n=r(e),i=r(t);return n&&!i?-1:i&&!n?1:super.compare(e,t)}findAndReturnTokens(e,t){return iZ.prim===e&&t.push(this),t}}iZ.prim="address";class oZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MapValidationError"}}class aZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get ValueSchema(){return this.createToken(this.val.args[1],0)}get KeySchema(){return this.createToken(this.val.args[0],0)}validate(e){if(!$Y.isMichelsonMap(e))throw new oZ(e,this,`Value ${JSON.stringify(e)} is not a valid MichelsonMap`)}Execute(e,t){const r=new $Y(this.val);return e.forEach((e=>{r.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1],t))})),r}objLitToMichelsonMap(e){return e instanceof $Y?e:"object"===typeof e?0===Object.keys(e).length?new $Y:$Y.fromLiteral(e):e}Encode(e){const t=this.objLitToMichelsonMap(e.pop());return this.validate(t),Array.from(t.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[aZ.prim]?t[aZ.prim](r):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}ExtractSchema(){return{map:{key:this.KeySchema.ExtractSchema(),value:this.ValueSchema.ExtractSchema()}}}generateSchema(){return{__michelsonType:aZ.prim,schema:{key:this.KeySchema.generateSchema(),value:this.ValueSchema.generateSchema()}}}findAndReturnTokens(e,t){return aZ.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}aZ.prim="map";class sZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return"true"===String(e.prim).toLowerCase()}Encode(e){return{prim:e.pop()?"True":"False"}}EncodeObject(e,t){return t&&t[sZ.prim]?t[sZ.prim](e):{prim:e?"True":"False"}}ExtractSchema(){return sZ.prim}generateSchema(){return{__michelsonType:sZ.prim,schema:sZ.prim}}ToBigMapKey(e){return{key:this.EncodeObject(e),type:{prim:sZ.prim}}}ToKey(e){return this.EncodeObject(e)}compare(e,t){return e&&t||!e&&!t?0:e?1:-1}findAndReturnTokens(e,t){return sZ.prim===e&&t.push(this),t}}sZ.prim="bool";class cZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ContractValidationError"}}class lZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(gc(e)!==ac.VALID)throw new cZ(e,this,`Value ${JSON.stringify(e)} is not a valid contract address.`);return null}Execute(e){if(e.string)return e.string;if(!e.bytes)throw new cZ(e,this,`Value ${JSON.stringify(e)} is not a valid contract address. must contain bytes or string.`);return Cc(e.bytes)}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[lZ.prim]?t[lZ.prim](e):{string:e}}ExtractSchema(){return lZ.prim}generateSchema(){const e=this.createToken(this.val.args[0],0);return{__michelsonType:lZ.prim,schema:{parameter:this.val.args[0]?e.generateSchema():{}}}}findAndReturnTokens(e,t){return lZ.prim===e&&t.push(this),t}}lZ.prim="contract";class uZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ListValidationError"}}class dZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueSchema(){return this.createToken(this.val.args[0],this.idx)}validate(e){if(!Array.isArray(e))throw new uZ(e,this,`Value ${JSON.stringify(e)} is not a valid array`)}Encode(e){const t=e.pop();this.validate(t);const r=this.createToken(this.val.args[0],0);return t.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}Execute(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),e.reduce(((e,n)=>[...e,r.Execute(n,t)]),[])}EncodeObject(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),t&&t[dZ.prim]?t[dZ.prim](e):e.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}ExtractSchema(){return{[dZ.prim]:this.valueSchema.ExtractSchema()}}generateSchema(){return{__michelsonType:dZ.prim,schema:this.valueSchema.generateSchema()}}findAndReturnTokens(e,t){return dZ.prim===e&&t.push(this),this.createToken(this.val.args[0],this.idx).findAndReturnTokens(e,t),t}}dZ.prim="list";class hZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MutezValidationError"}}class fZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Xs(e[Object.keys(e)[0]])}ExtractSchema(){return fZ.prim}generateSchema(){return{__michelsonType:fZ.prim,schema:fZ.prim}}validate(e){if(new Xs(e).isNaN())throw new hZ(e,this,`Value is not a number: ${e}`)}Encode(e){const t=e.pop();return this.validate(t),{int:String(t).toString()}}EncodeObject(e,t){return this.validate(e),t&&t[fZ.prim]?t[fZ.prim](e):{int:String(e).toString()}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:fZ.prim}}}ToKey({int:e}){return e}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:rthis.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}Execute(e,t){return e.reduce(((e,r)=>[...e,this.KeySchema.Execute(r,t)]),[])}EncodeObject(e,t){return this.validate(e),t&&t[CZ.prim]?t[CZ.prim](e):e.sort(((e,t)=>this.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}ExtractSchema(){return CZ.prim}generateSchema(){return{__michelsonType:CZ.prim,schema:this.KeySchema.generateSchema()}}findAndReturnTokens(e,t){return CZ.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),t}}CZ.prim="set";class jZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChainIDValidationError"}}class RZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(vc(e)!==ac.VALID)throw new jZ(e,this,`Value ${JSON.stringify(e)} is not a valid ChainID`)}Execute(e){return e[Object.keys(e)[0]]}ExtractSchema(){return RZ.prim}generateSchema(){return{__michelsonType:RZ.prim,schema:RZ.prim}}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[RZ.prim]?t[RZ.prim](e):{string:e}}ToKey({string:e}){return e}ToBigMapKey(e){return{key:{string:e},type:{prim:RZ.prim}}}findAndReturnTokens(e,t){return RZ.prim===e&&t.push(this),t}}RZ.prim="chain_id";class IZ extends ls{constructor(){super(),this.name="TicketEncodeError",this.message="Tickets cannot be sent to the blockchain; they are created on-chain"}}const MZ={prim:"contract"},LZ={prim:"int"};class NZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new IZ}EncodeObject(e,t){if(t&&t[NZ.prim])return t[NZ.prim](e,this.val);throw new IZ}Execute(e,t){if(t&&t[NZ.prim])return t[NZ.prim](e,this.val);const r=this.createToken(MZ,this.idx),n=this.valueToken,i=this.createToken(LZ,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:lZ.prim,value:this.valueToken.ExtractSchema(),amount:bZ.prim}}generateSchema(){return{__michelsonType:NZ.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:lZ.prim,schema:lZ.prim},amount:{__michelsonType:bZ.prim,schema:bZ.prim}}}}findAndReturnTokens(e,t){return NZ.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}NZ.prim="ticket";class DZ extends ls{constructor(){super(),this.name="TicketDeprecatedEncodeError",this.message="Ticket_deprecated cannot be sent to the blockchain; they are created on-chain"}}const zZ={prim:"contract"},BZ={prim:"int"};class FZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new DZ}EncodeObject(e,t){if(t&&t[FZ.prim])return t[FZ.prim](e,this.val);throw new DZ}Execute(e,t){if(t&&t[FZ.prim])return t[FZ.prim](e,this.val);const r=this.createToken(zZ,this.idx),n=this.valueToken,i=this.createToken(BZ,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:lZ.prim,value:this.valueToken.ExtractSchema(),amount:bZ.prim}}generateSchema(){return{__michelsonType:FZ.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:lZ.prim,schema:lZ.prim},amount:{__michelsonType:bZ.prim,schema:bZ.prim}}}}findAndReturnTokens(e,t){return FZ.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}FZ.prim="ticket_deprecated";class UZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NeverTokenError"}}class $Z extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e.pop();throw new UZ(t,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(t)}.`)}EncodeObject(e,t){if(t&&t[$Z.prim])return t[$Z.prim](e);throw new UZ(e,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(e)}.`)}Execute(e){throw new UZ(e,this,`There is no literal value for the type never. Trying to execute ${JSON.stringify(e)}.`)}ExtractSchema(){return $Z.prim}generateSchema(){return{__michelsonType:$Z.prim,schema:$Z.prim}}findAndReturnTokens(e,t){return $Z.prim===e&&t.push(this),t}}$Z.prim="never";class HZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingStateValidationError"}}class VZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}isValid(e){return"object"===typeof e&&0===Object.keys(e).length}Execute(e,t){if(t&&t[VZ.prim])return t[VZ.prim](e,this.val);if("int"in e)return e.int;throw new HZ(e,this,`Sapling state is expecting an object with an int property. Got ${JSON.stringify(e)}`)}Encode(e){const t=e.pop();if(this.isValid(t))return[];throw new HZ(t,this,`Invalid sapling_state. Received: ${JSON.stringify(t)} while expecting: {}`)}EncodeObject(e,t){if(t&&t[VZ.prim])return t[VZ.prim](e);if(this.isValid(e))return[];throw new HZ(e,this,`Invalid sapling_state. Received: ${JSON.stringify(e)} while expecting: {}`)}ExtractSchema(){return{[VZ.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:VZ.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return VZ.prim===e&&t.push(this),t}}VZ.prim="sapling_state";class qZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionValidationError"}}class KZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new qZ(e,this,`There is no literal value for the sapling_transaction type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new qZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[KZ.prim]?t[KZ.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[KZ.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:KZ.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return KZ.prim===e&&t.push(this),t}}KZ.prim="sapling_transaction";class WZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionDeprecatedValidationError"}}class GZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new WZ(e,this,`There is no literal value for the sapling_transaction_deprecated type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new WZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[GZ.prim]?t[GZ.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[GZ.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:GZ.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return GZ.prim===e&&t.push(this),t}}GZ.prim="sapling_transaction_deprecated";class YZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381frValidationError"}}class ZZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new YZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return"number"===typeof t?{int:t.toString()}:(t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t})}EncodeObject(e,t){return t&&t[ZZ.prim]?t[ZZ.prim](e):"number"===typeof e?{int:e.toString()}:(e=this.convertUint8ArrayToHexString(e),this.validate(e),{bytes:e})}Execute(e){return e.bytes}ExtractSchema(){return ZZ.prim}generateSchema(){return{__michelsonType:ZZ.prim,schema:ZZ.prim}}findAndReturnTokens(e,t){return ZZ.prim===e&&t.push(this),t}}ZZ.prim="bls12_381_fr";class XZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g1ValidationError"}}class JZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new XZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[JZ.prim]?t[JZ.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return JZ.prim}generateSchema(){return{__michelsonType:JZ.prim,schema:JZ.prim}}findAndReturnTokens(e,t){return JZ.prim===e&&t.push(this),t}}JZ.prim="bls12_381_g1";class QZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g2ValidationError"}}class eX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new QZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[eX.prim]?t[eX.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return eX.prim}generateSchema(){return{__michelsonType:eX.prim,schema:eX.prim}}findAndReturnTokens(e,t){return eX.prim===e&&t.push(this),t}}eX.prim="bls12_381_g2";class tX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestValidationError"}}class rX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!=0)throw new tX(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[rX.prim]?t[rX.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return rX.prim}generateSchema(){return{__michelsonType:rX.prim,schema:rX.prim}}findAndReturnTokens(e,t){return rX.prim===e&&t.push(this),t}}rX.prim="chest";class nX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestKeyValidationError"}}class iX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new nX(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[iX.prim]?t[iX.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return iX.prim}generateSchema(){return{__michelsonType:iX.prim,schema:iX.prim}}findAndReturnTokens(e,t){return iX.prim===e&&t.push(this),t}}iX.prim="chest_key";class oX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantEncodingError"}}class aX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantDecodingError"}}class sX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e,t){if(t&&t[sX.prim])return t[sX.prim](e,this.val);throw new aX(e,this,`Unable to decode a value represented by a global constants. Please provide an expanded script to the Michelson-Encoder or semantics for the decoding. The following global constant hash was encountered: ${this.val.args[0].string}.`)}Encode(e){throw new oX(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}EncodeObject(e,t){if(t&&t[sX.prim])return t[sX.prim](e);throw new oX(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}ExtractSchema(){return sX.prim}generateSchema(){return{__michelsonType:sX.prim,schema:{hash:this.val.args[0].string}}}findAndReturnTokens(e,t){return sX.prim===e&&t.push(this),t}}sX.prim="constant";const cX=[QY,tZ,rZ,WY,iZ,aZ,sZ,YY,lZ,dZ,fZ,mZ,gZ,vZ,bZ,wZ,_Z,kZ,AZ,PZ,OZ,CZ,RZ,NZ,FZ,$Z,VZ,KZ,GZ,ZZ,JZ,eX,rX,iX,sX];class lX extends ls{constructor(e,t){super(e),this.message=e,this.data=t,this.name="Invalid token error"}}function uX(e,t){if(Array.isArray(e))return new QY(e,t,uX);const r=cX.find((t=>t.prim===e.prim));if(!r)throw new lX(`Malformed data: ${JSON.stringify(e)}. Expected a value with a valid prim property`,e);return new r(e,t,uX)}class dX extends xs{constructor(e,t,r,n){super(e,t,r,n),this.viewName=e,this.sigs=t,this.args=r,this.cause=n,this.name="ParameterEncodingError",this.message=`Could not encode parameter ${JSON.stringify(r)} received for name "${e}" expecting one of the following signatures ${JSON.stringify(t)}`}}class hX extends ls{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidScriptError";let r="Invalid on-chain view found in the following script.";t&&(r+=` Reason: ${t}.`),r+=`Script: ${JSON.stringify(e)}`,this.message=r}}class fX extends ls{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidRpcResponseError";let r="Invalid RPC response passed as argument(s).";t&&(r+=` Reason: ${t}.`),r+=` Received: ${JSON.stringify(e)}`,this.message=r}}class pX extends ls{constructor(e){super(e),this.message=e,this.name="InvalidBigMapSchemaError"}}class mX extends ls{constructor(e,t){super(e),this.message=e,this.value=t,this.name="InvalidBigMapDiffError"}}class gX extends ls{constructor(e,t,r,n){super(),this.details=t,this.schema=r,this.value=n,this.name="BigMapEncodingError",this.message=`Unable to encode the big map ${e}. Schema is: ${JSON.stringify(r)}. The ${e} is: ${JSON.stringify(n)}. Error details: ${t}`}}class vX extends ls{constructor(e,t,r,n,i){super(),this.details=t,this.schema=r,this.value=n,this.semantics=i,this.name="StorageEncodingError",this.message=`Unable to encode ${e}. The schema is: ${JSON.stringify(r)}, the value is: ${JSON.stringify(n)}.${i?`And the semantic is: ${JSON.stringify(i)}`:""}. Error details: ${t}`}}class yX extends ls{constructor(e){super(e),this.message=e,this.name="MissingArgumentError"}}var bX;const wX=Symbol.for("taquito-schema-type-symbol");function xX(e,t=QY.prim){var r,n;if(Array.isArray(e))return xX({prim:t,args:e},t);const i=e;return i.prim===t&&i.args&&i.args.length>2?Object.assign(Object.assign({},i),{args:[null===(r=i.args)||void 0===r?void 0:r[0],{prim:t,args:null===(n=i.args)||void 0===n?void 0:n.slice(1)}]}):i}function _X(e,t){if(void 0===e||void 0===t)return e===t;const r=xX(e),n=xX(t);return r.prim===n.prim&&(void 0===r.args&&void 0===n.args||void 0!==r.args&&void 0!==n.args&&r.args.length===n.args.length&&r.args.every(((e,t)=>{var r,i;return _X(e,null!==(i=null===(r=n.args)||void 0===r?void 0:r[t])&&void 0!==i?i:{})})))&&(void 0===r.annots&&void 0===n.annots||void 0!==r.annots&&void 0!==n.annots&&r.annots.length===n.annots.length&&r.annots.every(((e,t)=>{var r;return e===(null===(r=n.annots)||void 0===r?void 0:r[t])})))}class SX{static isSchema(e){return e&&!0===e[wX]}static fromRPCResponse(e){if(!e)throw new fX(e,"the RPC response is empty");if(!e.script)throw new fX(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new fX(e,"The response.script.code should be an array");let t=e.script.code;for(;1===t.length&&Array.isArray(t[0]);)t=t[0];const r=t.find((e=>"prim"in e&&"storage"===e.prim));if(!r||!Array.isArray(r.args))throw new fX(e,'The response.script.code has an element of type {prim: "storage"}, but its args is not an array');return new SX(r.args[0])}isExpressionExtended(e){return"prim"in e&&Array.isArray(e.args)}constructor(e){if(this.val=e,this[bX]=!0,this.root=uX(e,0),this.root instanceof WY)this.bigMap=this.root;else if(this.isExpressionExtended(e)&&"pair"===e.prim){const t=e.args[0];this.isExpressionExtended(t)&&"big_map"===t.prim&&(this.bigMap=new WY(t,0,uX))}}removeTopLevelAnnotation(e){return(this.root instanceof QY||this.root instanceof YY)&&this.root.hasAnnotations()&&"object"===typeof e&&1===Object.keys(e).length?e[Object.keys(e)[0]]:e}Execute(e,t){const r=this.root.Execute(e,t);return this.removeTopLevelAnnotation(r)}Typecheck(e){this.root instanceof WY&&Number.isInteger(Number(e))||this.root instanceof NZ&&e.ticketer&&e.value&&e.amount||this.root instanceof FZ&&e.ticketer&&e.value&&e.amount||this.root instanceof aZ&&this.root.ValueSchema instanceof WY||this.root.EncodeObject(e)}ExecuteOnBigMapDiff(e,t){if(!this.bigMap)throw new pX("Big map schema is undefined");if(!Array.isArray(e))throw new mX(`Big map diff must be an array, got: ${JSON.stringify(e)}`,e);const r=e.map((({key:e,value:t})=>({args:[e,t]})));return this.bigMap.Execute(r,t)}ExecuteOnBigMapValue(e,t){if(!this.bigMap)throw new pX("Big map schema is undefined");return this.bigMap.ValueSchema.Execute(e,t)}EncodeBigMapKey(e){if(!this.bigMap)throw new pX("Big map schema is undefined");try{return this.bigMap.KeySchema.ToBigMapKey(e)}catch(t){throw new gX("key",t,this.bigMap.KeySchema,e)}}Encode(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof HY)throw r;throw new vX("storage object",r,this.root,e,t)}}ExtractSchema(){return this.removeTopLevelAnnotation(this.root.ExtractSchema())}generateSchema(){return this.removeTopLevelAnnotation(this.root.generateSchema())}ComputeState(e,t){if(!this.bigMap)throw new pX("Big map schema is undefined");const r=e.reduce(((e,t)=>Object.assign(Object.assign({},e),this.ExecuteOnBigMapDiff(t.contents[0].metadata.operation_result.big_map_diff))),{});return Object.assign(Object.assign({},this.Execute(t)),{[this.bigMap.annot()]:r})}FindFirstInTopLevelPair(e,t){return this.findValue(this.root.val,e,t)}findValue(e,t,r){if(_X(r,e))return t;if(Array.isArray(e)||"pair"===e.prim){const n=xX(e),i=xX(t,"Pair");if(void 0===n.args||void 0===i.args)throw new yX("Tokens have no arguments");if(n.args[0])return this.findValue(n.args[0],i.args[0],r)||this.findValue(n.args[1],i.args[1],r)}}findToken(e){return this.root.findAndReturnTokens(e,[])}}bX=wX;class kX{static fromRPCResponse(e){if(!e)throw new fX(e,"the RPC response is empty");if(!e.script)throw new fX(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new fX(e,"The response.script.code should be an array");const t=e.script.code.find((e=>"prim"in e&&"parameter"===e.prim));if(!t)throw new fX(e,'The response.script.code should have an element of type {prim: "parameter"}');if(!Array.isArray(t.args))throw new fX(e,'The response.script.code has an element of type {prim: "parameter"}, but its args is not an array');return new kX(t.args[0])}get isMultipleEntryPoint(){return this.root instanceof YY||this.root instanceof gZ&&this.root.subToken()instanceof YY}get hasAnnotation(){return!this.isMultipleEntryPoint||"0"!==Object.keys(this.ExtractSchema())[0]}constructor(e){this.root=uX(e,0)}Execute(e,t){return this.root.Execute(e,t)}Encode(...e){try{return this.root.Encode(e.reverse())}catch(t){if(t instanceof HY)throw t;throw new dX("Unable to encode parameter",this.root,e,t)}}EncodeObject(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof HY)throw r;throw new dX("Unable to encode parameter object",this.root,e,r)}}ExtractSchema(){return this.root.ExtractSchema()}generateSchema(){return this.root.generateSchema()}ExtractSignatures(){return this.root.ExtractSignature()}}class EX{static fromRPCResponse(e){const t=[],r=e&&e.script&&Array.isArray(e.script.code)&&e.script.code.filter((e=>"view"===e.prim));return r&&r.forEach((e=>{t.push(new EX(e.args))})),t}constructor(e){if(!e)throw new hX(e,"the args are not defined");if(4!==e.length)throw new hX(e,"there should be exactly 4 arguments");if(!("string"in e[0])||!e[0].string)throw new hX(e,"The first argument should be a string, representing the view name. It should be in the form: { string: 'viewName' }");this.viewName=e[0].string,this.viewArgsType=e[1],this.viewReturnType=e[2],this.instructions=e[3],this.rootArgsType=uX(this.viewArgsType,0),this.rootReturnType=uX(this.viewReturnType,0)}encodeViewArgs(e){try{return this.rootArgsType.EncodeObject(e)}catch(t){throw new dX(this.viewName,void 0,e,t)}}decodeViewResult(e,t){return this.rootReturnType.Execute(e,t)}extractArgsSchema(){return this.rootArgsType.ExtractSchema()}extractResultSchema(){return this.rootReturnType.ExtractSchema()}}class AX{constructor(e,t){this.tag=e,this.type=t}static fromMichelineValue(e){var t,r;return new AX(null===(t=e.annots)||void 0===t?void 0:t[0],null===(r=e.args)||void 0===r?void 0:r[0])}static fromRPCResponse(e){const t=[];return e.script.code.forEach((e=>{"prim"in e&&"code"===e.prim&&"args"in e&&e.args&&t.push(...AX.extractEventsRecursively(e.args))})),AX.removeDuplicates(t)}static removeDuplicates(e){const t=[];return e.forEach((e=>{const r=t.findIndex((t=>t.tag===e.tag&&_X(t.type,e.type)));-1===r&&t.push(e)})),t}static extractEventsRecursively(e){return Array.isArray(e)?e.flatMap((e=>AX.extractEventsRecursively(e))):"prim"in e?"EMIT"===e.prim?[AX.fromMichelineValue(e)]:"args"in e&&e.args?e.args.flatMap((e=>AX.extractEventsRecursively(e))):[]:[]}}const PX=Symbol(),OX=Symbol("source_reference");class TX extends ls{constructor(e,t,r){super(),this.src=e,this.idx=t,this.message=r,this.name="ScanError"}}var CX;!function(e){e[e.Comment=0]="Comment",e[e.Number=1]="Number",e[e.String=2]="String",e[e.Bytes=3]="Bytes",e[e.Ident=4]="Ident"}(CX||(CX={}));const jX=new RegExp("\\s"),RX=new RegExp("[:@%_A-Za-z]"),IX=new RegExp("[@%_\\.A-Za-z0-9]"),MX=new RegExp("[0-9]"),LX=new RegExp("[0-9a-fA-F]");function*NX(e,t=!1){let r=0;for(;r1&&"0x"===e.substring(r,r+2)){for(r+=2;r1&&"/*"===e.substring(r,r+2)){for(r+=2;r1&&"*/"===e.substring(r,r+2));)r++;if(r===e.length)throw new TX(e,r,"Unterminated C style comment");r+=2,t&&(yield{t:CX.Comment,v:e.slice(i,r),first:i,last:r})}else{if("("!==n&&")"!==n&&"{"!==n&&"}"!==n&&";"!==n)throw new TX(e,r,`Invalid character at offset ${r}: \`${n}'`);r++,yield{t:n,v:n,first:i,last:r}}}}const DX=Symbol("ref_contract");var zX;!function(e){e.Ps9mPmXa="Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P",e.PtCJ7pwo="PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY",e.PsYLVpVv="PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt",e.PsddFKi3="PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP",e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdoTez="PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangzH="PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakarta="PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProxfordY="ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(zX||(zX={}));const BX=zX.Psithaca2,FX={Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P:0,PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY:1,PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt:2,PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP:3,Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd:4,PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU:5,PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS:5,PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb:6,PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo:7,PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq:8,PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA:8,PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i:9,PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV:10,PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r:11,PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx:11,PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP:12,Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A:12,PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw:13,PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY:13,PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg:14,PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW:15,PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc:16,PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1:16,PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf:17,ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH:19,ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK:20};function UX(e,t){return FX[e][e+1,t])),i+=s,o+=l;break}case"I":o!==r.length&&(a[1]=r[o++]);break;default:throw new $X(e,`${e.prim}: unexpected character: ${l}`)}return{r:n(s,c,[0,a]),n:i,an:o}}function WX(e,t,r,n){const i=t[0];switch(i){case"A":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CAR",annots:["@%%"]},WX(e,t.slice(1),[],n)]]},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%@","%@",...r]}]:n.a;case"D":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CDR",annots:["@%%"]},WX(e,t.slice(1),[],n)]]},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%@",...r]}]:n.d;default:throw new $X(e,`${e.prim}: unexpected character: ${i}`)}}function GX(e,t){let r=e.length;for(;r>0&&e[r-1]===t;)r--;return e.slice(0,r)}function YX(e){const t=[],r=[];if(void 0!==e)for(const n of e)(0!==n.length&&"%"===n[0]?t:r).push(n);return{fields:t,rest:r}}function ZX({prim:e,annots:t,args:r}){return Object.assign(Object.assign({prim:e},t&&{annots:t}),r&&{args:r})}const XX=/^P[PAI]{3,}R$/,JX=/^UNP[PAI]{2,}R$/,QX=/^C[AD]{2,}R$/,eJ=/^SET_C[AD]+R$/,tJ=/^MAP_C[AD]+R$/,rJ=/^DI{2,}P$/,nJ=/^DU+P$/;class iJ extends ls{constructor(e,t){super(),this.token=e,this.message=t,this.name="MichelineParseError"}}class oJ extends ls{constructor(e,t){super(),this.node=e,this.message=t,this.name="JSONParseError"}}const aJ=new iJ(null,"Unexpected EOF");function sJ(e){return e.t===CX.Ident&&("@"===e.v[0]||"%"===e.v[0]||":"===e.v[0])}const cJ=new RegExp("^-?[0-9]+$"),lJ=new RegExp("^([0-9a-fA-F]{2})*$");class uJ{constructor(e){this.opt=e}expand(e){var t,r,n;if(void 0!==(null===(t=this.opt)||void 0===t?void 0:t.expandGlobalConstant)&&"constant"===e.prim){const t=function(e,t){return void 0!==e.args&&1===e.args.length&&"string"in e.args[0]&&e.args[0].string in t?t[e.args[0].string]:e}(e,this.opt.expandGlobalConstant);return t!==e&&(t[OX]=Object.assign(Object.assign({},e[OX]||{first:0,last:0}),{globalConstant:e})),t}if(void 0===(null===(r=this.opt)||void 0===r?void 0:r.expandMacros)||(null===(n=this.opt)||void 0===n?void 0:n.expandMacros)){const t=function(e,t){const r=(null===t||void 0===t?void 0:t.protocol)||BX;function n(e){return void 0!==e?[{prim:"RENAME",annots:e}]:[]}switch(e.prim){case"CMPEQ":case"CMPNEQ":case"CMPLT":case"CMPGT":case"CMPLE":case"CMPGE":if(HX(e,0))return[{prim:"COMPARE"},ZX({prim:e.prim.slice(3),annots:e.annots})];break;case"IFEQ":case"IFNEQ":case"IFLT":case"IFGT":case"IFLE":case"IFGE":if(HX(e,2))return[{prim:e.prim.slice(2)},ZX({prim:"IF",annots:e.annots,args:e.args})];break;case"IFCMPEQ":case"IFCMPNEQ":case"IFCMPLT":case"IFCMPGT":case"IFCMPLE":case"IFCMPGE":if(HX(e,2))return[{prim:"COMPARE"},{prim:e.prim.slice(5)},ZX({prim:"IF",annots:e.annots,args:e.args})];break;case"FAIL":if(HX(e,0)&&VX(e))return[{prim:"UNIT"},{prim:"FAILWITH"}];break;case"ASSERT":if(HX(e,0)&&VX(e))return[{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_EQ":case"ASSERT_NEQ":case"ASSERT_LT":case"ASSERT_GT":case"ASSERT_LE":case"ASSERT_GE":if(HX(e,0)&&VX(e))return[{prim:e.prim.slice(7)},{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_CMPEQ":case"ASSERT_CMPNEQ":case"ASSERT_CMPLT":case"ASSERT_CMPGT":case"ASSERT_CMPLE":case"ASSERT_CMPGE":if(HX(e,0)&&VX(e))return[[{prim:"COMPARE"},{prim:e.prim.slice(10)}],{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_NONE":if(HX(e,0)&&VX(e))return[{prim:"IF_NONE",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_SOME":if(HX(e,0))return[{prim:"IF_NONE",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"ASSERT_LEFT":if(HX(e,0))return[{prim:"IF_LEFT",args:[n(e.annots),[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_RIGHT":if(HX(e,0))return[{prim:"IF_LEFT",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"IF_SOME":if(HX(e,2))return[ZX({prim:"IF_NONE",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"IF_RIGHT":if(HX(e,2))return[ZX({prim:"IF_LEFT",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"CAR":case"CDR":if(void 0===e.args)return e;if(HX(e,1)&&qX(e,e.args[0])){const t=parseInt(e.args[0].int,10);return ZX({prim:"GET",args:[{int:"CAR"===e.prim?String(2*t+1):String(2*t)}],annots:e.annots})}}if(XX.test(e.prim)&&HX(e,0)){const{fields:t,rest:r}=YX(e.annots),{r:n}=KX(e,e.prim.slice(1),t,((e,t,r)=>[...e||[],...t||[],r]));return n.map((([e,t],i)=>{const o=[...GX(t,null).map((e=>null===e?"%":e)),...0===e&&i===n.length-1?r:[]],a=ZX({prim:"PAIR",annots:0!==o.length?o:void 0});return 0===e?a:{prim:"DIP",args:1===e?[[a]]:[{int:String(e)},[a]]}}))}if(JX.test(e.prim)){if(UX(r,zX.PtEdo2Zk)&&HX(e,0)){const{r:t}=KX(e,e.prim.slice(3),e.annots||[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e,t])=>{const r=[{prim:"DUP"},ZX({prim:"CAR",annots:null!==t[0]?[t[0]]:void 0}),{prim:"DIP",args:[[ZX({prim:"CDR",annots:null!==t[1]?[t[1]]:void 0})]]}];return 0===e?r:{prim:"DIP",args:1===e?[[r]]:[{int:String(e)},[r]]}}))}if("UNPAIR"===e.prim)return e;if(HX(e,0)){const{r:t}=KX(e,e.prim.slice(3),[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e])=>{const t=ZX({prim:"UNPAIR"});return 0===e?t:{prim:"DIP",args:1===e?[[t]]:[{int:String(e)},[t]]}}))}}if(QX.test(e.prim)&&HX(e,0)){const t=[...e.prim.slice(1,e.prim.length-1)];return t.map(((r,n)=>{const i=n===t.length-1?e.annots:void 0;switch(r){case"A":return ZX({prim:"CAR",annots:i});case"D":return ZX({prim:"CDR",annots:i});default:throw new $X(e,`unexpected character: ${r}`)}}))}if(eJ.test(e.prim)&&HX(e,0)){const{fields:t,rest:r}=YX(e.annots);if(t.length>1)throw new $X(e,`unexpected annotation on macro ${e.prim}: ${t}`);const n=0!==t.length?{a:[{prim:"DUP"},{prim:"CAR",annots:t},{prim:"DROP"},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:[t[0],"%@"]}],d:[{prim:"DUP"},{prim:"CDR",annots:t},{prim:"DROP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",t[0]]}]}:{a:[{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%","%@"]}],d:[{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%"]}]};return WX(e,e.prim.slice(5,e.prim.length-1),r,n)}if(tJ.test(e.prim)&&HX(e,1)){const{fields:t}=YX(e.annots);if(t.length>1)throw new $X(e,`unexpected annotation on macro ${e.prim}: ${t}`);const r={a:[{prim:"DUP"},{prim:"CDR",annots:["@%%"]},{prim:"DIP",args:[[ZX({prim:"CAR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0]]]},{prim:"SWAP"},{prim:"PAIR",annots:[0!==t.length?t[0]:"%","%@"]}],d:[{prim:"DUP"},ZX({prim:"CDR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0],{prim:"SWAP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",0!==t.length?t[0]:"%"]}]};return WX(e,e.prim.slice(5,e.prim.length-1),[],r)}if(rJ.test(e.prim)&&HX(e,1)){let t=0;for(;"I"===e.prim[1+t];)t++;return ZX({prim:"DIP",args:[{int:String(t)},e.args[0]]})}if(nJ.test(e.prim)){let t=0;for(;"U"===e.prim[1+t];)t++;if(UX(r,zX.PtEdo2Zk)){if(1===t){if(void 0===e.args)return e;HX(e,1)&&qX(e,e.args[0])&&(t=parseInt(e.args[0].int,10))}else HX(e,0);return 1===t?[ZX({prim:"DUP",annots:e.annots})]:2===t?[{prim:"DIP",args:[[ZX({prim:"DUP",annots:e.annots})]]},{prim:"SWAP"}]:[{prim:"DIP",args:[{int:String(t-1)},[ZX({prim:"DUP",annots:e.annots})]]},{prim:"DIG",args:[{int:String(t)}]}]}if(1===t)return e;if(HX(e,0))return ZX({prim:"DUP",args:[{int:String(t)}],annots:e.annots})}return e}(e,this.opt);return t!==e&&(t[OX]=Object.assign(Object.assign({},e[OX]||{first:0,last:0}),{macro:e})),t}return e}parseListExpr(e,t){var r;const n={first:t.first,last:t.last},i="("===t.t;let o;if(i){if(o=e.next(),o.done)throw aJ;n.last=o.value.last}else o={value:t};if(o.value.t!==CX.Ident)throw new iJ(o.value,`not an identifier: ${o.value.v}`);const a={prim:o.value.v,[OX]:n};for(;;){const t=e.next();if(t.done){if(i)throw aJ;break}if(")"===t.value.t){if(!i)throw new iJ(t.value,"unexpected closing bracket");n.last=t.value.last;break}if(sJ(t.value))a.annots=a.annots||[],a.annots.push(t.value.v),n.last=t.value.last;else{a.args=a.args||[];const i=this.parseExpr(e,t.value);n.last=(null===(r=i[OX])||void 0===r?void 0:r.last)||n.last,a.args.push(i)}}return this.expand(a)}parseArgs(e,t){var r;const n={first:t.first,last:t.last},i={prim:t.v,[OX]:n};for(;;){const t=e.next();if(t.done||"}"===t.value.t||";"===t.value.t)return[i,t];if(sJ(t.value))n.last=t.value.last,i.annots=i.annots||[],i.annots.push(t.value.v);else{const o=this.parseExpr(e,t.value);n.last=(null===(r=o[OX])||void 0===r?void 0:r.last)||n.last,i.args=i.args||[],i.args.push(o)}}}parseSequenceExpr(e,t){var r,n;const i={first:t.first,last:t.last},o=[];o[OX]=i;const a="{"===t.t;let s="{"===t.t?null:{value:t};for(;;){if(null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done){if(a)throw aJ;return o}if("}"===s.value.t){if(a)return o;throw new iJ(s.value,"unexpected closing bracket")}if(s.value.t===CX.Ident){const[t,n]=this.parseArgs(e,s.value);i.last=(null===(r=t[OX])||void 0===r?void 0:r.last)||i.last,o.push(this.expand(t)),s=n}else{const t=this.parseExpr(e,s.value);i.last=(null===(n=t[OX])||void 0===n?void 0:n.last)||i.last,o.push(t),s=null}null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done||";"!==s.value.t||(s=null)}}parseExpr(e,t){switch(t.t){case CX.Ident:return this.expand({prim:t.v,[OX]:{first:t.first,last:t.last}});case CX.Number:return{int:t.v,[OX]:{first:t.first,last:t.last}};case CX.String:return{string:JSON.parse(t.v),[OX]:{first:t.first,last:t.last}};case CX.Bytes:return{bytes:t.v.slice(2),[OX]:{first:t.first,last:t.last}};case"{":return this.parseSequenceExpr(e,t);default:return this.parseListExpr(e,t)}}parseSequence(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=NX(e),r=t.next();return r.done?null:this.parseSequenceExpr(t,r.value)}parseList(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=NX(e),r=t.next();return r.done?null:this.parseListExpr(t,r.value)}parseMichelineExpression(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=NX(e),r=t.next();return r.done?null:this.parseExpr(t,r.value)}parseScript(e){return this.parseSequence(e)}parseData(e){return this.parseList(e)}parseJSON(e){if("object"!==typeof e)throw new TypeError(`object type was expected, got ${typeof e} instead`);if(Array.isArray(e)){const t=[];for(const r of e){if(null===r||"object"!==typeof r)throw new oJ(r,`unexpected sequence element: ${r}`);t.push(this.parseJSON(r))}return t}if("prim"in e){const t=e;if("string"===typeof t.prim&&(void 0===t.annots||Array.isArray(t.annots))&&(void 0===t.args||Array.isArray(t.args))){const e={prim:t.prim};if(void 0!==t.annots){for(const e of t.annots)if("string"!==typeof e)throw new oJ(e,`string expected: ${e}`);e.annots=t.annots}if(void 0!==t.args){e.args=[];for(const r of t.args){if(null===r||"object"!==typeof r)throw new oJ(r,`unexpected argument: ${r}`);e.args.push(this.parseJSON(r))}}return this.expand(e)}throw new oJ(e,`malformed prim expression: ${e}`)}if("string"in e){if("string"===typeof e.string)return{string:e.string};throw new oJ(e,`malformed string literal: ${e}`)}if("int"in e){if("string"===typeof e.int&&cJ.test(e.int))return{int:e.int};throw new oJ(e,`malformed int literal: ${e}`)}if("bytes"in e){if("string"===typeof e.bytes&&lJ.test(e.bytes))return{bytes:e.bytes};throw new oJ(e,`malformed bytes literal: ${e}`)}throw new oJ(e,`unexpected object: ${e}`)}}const dJ=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],hJ=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];class fJ extends ls{constructor(e){super(),this.message=e,this.name="Base58DecodingError"}}function pJ(e){const t=(e.length+9)%64,r=0===t?0:64-t;if(e.length>268435455)throw new ws("",`: Invalid length ${e.length} is too big -- SHA-256.`);const n=e.length<<3,i=[...e,128,...new Array(r).fill(0),0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n];function o(e,t){return e>>>t|e<<32-t}const a=[...dJ],s=new Array(64),c=new Array(8);for(let u=0;u>>3,r=o(s[t-2],17)^o(s[t-2],19)^s[t-2]>>>10;s[t]=(0|r)+s[t-7]+e+s[t-16]|0,t++}for(let r=0;r<8;r++)c[r]=a[r];for(let r=0;r<64;r++){const e=o(c[0],2)^o(c[0],13)^o(c[0],22),t=o(c[4],6)^o(c[4],11)^o(c[4],25),n=c[7]+t+(c[4]&c[5]^~c[4]&c[6])+hJ[r]+s[r]|0,i=e+(c[0]&c[1]^c[0]&c[2]^c[1]&c[2])|0;c[7]=c[6],c[6]=c[5],c[5]=c[4],c[4]=c[3]+n|0,c[3]=c[2],c[2]=c[1],c[1]=c[0],c[0]=n+i|0}for(let r=0;r<8;r++)a[r]=a[r]+c[r]|0}const l=[];for(const u of a)l.push(u>>24&255),l.push(u>>16&255),l.push(u>>8&255),l.push(255&u);return l}const mJ=[0,1,2,3,4,5,6,7,8,-1,-1,-1,-1,-1,-1,-1,9,10,11,12,13,14,15,16,-1,17,18,19,20,21,-1,22,23,24,25,26,27,28,29,30,31,32,-1,-1,-1,-1,-1,-1,33,34,35,36,37,38,39,40,41,42,43,-1,44,45,46,47,48,49,50,51,52,53,54,55,56,57];function gJ(e,t){const r=e.charCodeAt(t)-49;if(r>=mJ.length||-1===mJ[r])throw new fJ(`Unexpected character at position ${t}: ${e[t]}`);return mJ[r]}function vJ(e){const t=function(e){const t=[];let r=0;for(;r0;)t.push(0);return t.reverse()}(e);if(t.length<4)throw new fJ(`Data is too short ${t.length}`);const r=t.slice(0,t.length-4),n=t.slice(t.length-4),i=pJ(pJ(r));if(n[0]!==i[0]||n[1]!==i[1]||n[2]!==i[2]||n[3]!==i[3])throw new fJ("Invalid checksum");return r}class yJ extends us{constructor(e){super(),this.message=e,this.name="InvalidMichelsonError"}}class bJ extends us{constructor(e){super(),this.message=e,this.name="InvalidTypeExpressionError"}}class wJ extends us{constructor(e){super(),this.message=e,this.name="InvalidDataExpressionError"}}class xJ extends us{constructor(e){super(),this.entrypoint=e,this.name="InvalidEntrypointError",this.message=`Contract has no entrypoint named: "${e}"`}}class _J extends ls{constructor(e){super(),this.message=e,this.name="LongIntegerError"}}class SJ extends ls{constructor(e,t){super(),this.val=e,this.message=t,this.name="MichelsonError"}}class kJ extends SJ{constructor(e,t,r){super(e,t),this.val=e,this.message=t,this.name="MichelsonTypeError",void 0!==r&&(this.data=r)}}class EJ{append(e){let t=0;for(;0!==e||t57)throw new _J(`unexpected character in integer constant "${e[t]}"`);this.append(r-48)}}else e<0?(this.neg=!0,this.append(-e)):this.append(e)}cmp(e){if(this.neg!==e.neg)return(e.neg?1:0)-(this.neg?1:0);{let t=0;if(this.buf.length!==e.buf.length)t=this.buf.length=0&&this.buf[r]===e.buf[r];)r--;t=r<0?0:this.buf[r]=0}catch(un){return!1}}const TJ=/^(@%|@%%|%@|[@:%]([_0-9a-zA-Z][_0-9a-zA-Z.%@]*)?)$/;function CJ(e,t){if(Array.isArray(e))return{};let r,n,i;if(void 0!==e.annots)for(const o of e.annots)if(0!==o.length){if(!TJ.test(o)||!(null===t||void 0===t?void 0:t.specialVar)&&("@%"===o||"@%%"===o)||!(null===t||void 0===t?void 0:t.specialFields)&&"%@"===o)throw new SJ(e,`${e.prim}: unexpected annotation: ${o}`);switch(o[0]){case"%":((null===t||void 0===t?void 0:t.emptyFields)||o.length>1)&&(r=r||[],r.push(o));break;case":":o.length>1&&(n=n||[],n.push(o));break;case"@":((null===t||void 0===t?void 0:t.emptyVar)||o.length>1)&&(i=i||[],i.push(o))}}return{f:r,t:n,v:i}}const jJ={BlockHash:[32,[1,52]],OperationHash:[32,[5,116]],OperationListHash:[32,[133,233]],OperationListListHash:[32,[29,159,109]],ProtocolHash:[32,[2,170]],ContextHash:[32,[79,199]],ED25519PublicKeyHash:[20,[6,161,159]],SECP256K1PublicKeyHash:[20,[6,161,161]],P256PublicKeyHash:[20,[6,161,164]],ContractHash:[20,[2,90,121]],CryptoboxPublicKeyHash:[16,[153,103]],ED25519Seed:[32,[13,15,58,7]],ED25519PublicKey:[32,[13,15,37,217]],SECP256K1SecretKey:[32,[17,162,224,201]],P256SecretKey:[32,[16,81,238,189]],ED25519EncryptedSeed:[56,[7,90,60,179,41]],SECP256K1EncryptedSecretKey:[56,[9,237,241,174,150]],P256EncryptedSecretKey:[56,[9,48,57,115,171]],SECP256K1PublicKey:[33,[3,254,226,86]],P256PublicKey:[33,[3,178,139,127]],SECP256K1Scalar:[33,[38,248,136]],SECP256K1Element:[33,[5,92,0]],ED25519SecretKey:[64,[43,246,78,7]],ED25519Signature:[64,[9,245,205,134,18]],SECP256K1Signature:[64,[13,115,101,19,63]],P256Signature:[64,[54,240,44,52]],GenericSignature:[64,[4,130,43]],ChainID:[4,[87,82,0]],RollupAddress:[20,[1,128,120,31]]};function RJ(e,...t){const r=vJ(e);for(const n of t){const[e,t]=jJ[n];if(r.length===e+t.length){let e=0;for(;e0?XJ(e,1):XJ(e,0);break;default:throw new HJ(e,"instruction expected")}}return!0}function QJ(e){if(WJ(e))if(Array.isArray(e)||"pair"===e.prim||"or"===e.prim||"option"===e.prim)cQ(e,(e=>QJ(e)));else if(!Object.prototype.hasOwnProperty.call(UJ,e.prim))throw new HJ(e,`${e.prim}: type is not comparable`);return!0}function eQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim)throw new HJ(e,`${e.prim}: type can't be used inside PACK/UNPACK instructions`);cQ(e,(e=>eQ(e)))}return!0}function tQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim||"contract"===e.prim)throw new HJ(e,`${e.prim}: type can't be pushed`);cQ(e,(e=>tQ(e)))}return!0}function rQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"operation"===e.prim||"contract"===e.prim)throw new HJ(e,`${e.prim}: type can't be used as part of a storage`);cQ(e,(e=>rQ(e)))}return!0}function nQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"operation"===e.prim)throw new HJ(e,`${e.prim}: type can't be used as part of a parameter`);cQ(e,(e=>nQ(e)))}return!0}function iQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim)throw new HJ(e,`${e.prim}: type can't be used inside a big_map`);cQ(e,(e=>iQ(e)))}return!0}const oQ=new RegExp("^[a-zA-Z0-9_.%@]*$");function aQ(e){if(e.string.length>zJ)throw new HJ(e,`view name too long: ${e.string}`);if(!oQ.test(e.string))throw new HJ(e,`invalid character(s) in view name: ${e.string}`)}function sQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim))throw new HJ(e,"type expected");cQ(e,(e=>sQ(e)))}return!0}function cQ(e,t){if(Array.isArray(e)||"pair"===e.prim){const r=Array.isArray(e)?e:e.args;if(void 0===r||r.length<2)throw new HJ(e,"at least 2 arguments expected");return r.forEach((e=>{WJ(e)&&t(e)})),!0}switch(e.prim){case"option":case"list":XJ(e,1)&&WJ(e.args[0])&&t(e.args[0]);break;case"contract":XJ(e,1)&&nQ(e.args[0]);break;case"or":XJ(e,2)&&WJ(e.args[0])&&WJ(e.args[1])&&(t(e.args[0]),t(e.args[1]));break;case"lambda":XJ(e,2)&&(sQ(e.args[0]),sQ(e.args[1]));break;case"set":XJ(e,1)&&QJ(e.args[0]);break;case"map":XJ(e,2)&&WJ(e.args[0])&&WJ(e.args[1])&&(QJ(e.args[0]),t(e.args[1]));break;case"big_map":XJ(e,2)&&WJ(e.args[0])&&WJ(e.args[1])&&(QJ(e.args[0]),iQ(e.args[1]),t(e.args[1]));break;case"ticket":XJ(e,1)&&WJ(e.args[0])&&QJ(e.args[0]);break;case"sapling_state":case"sapling_transaction":XJ(e,1)&&YJ(e.args[0]);break;default:XJ(e,0)}return!0}function lQ(e){if("int"in e||"string"in e||"bytes"in e)return!0;if(Array.isArray(e)){let t=0;for(const r of e)VJ(r)&&"Elt"===r.prim?(XJ(r,2)&&(lQ(r.args[0]),lQ(r.args[1])),t++):lQ(r);if(0!==t&&t!==e.length)throw new HJ(e,"data entries and map elements can't be intermixed");return!0}if(!VJ(e))throw new HJ(e,"data entry expected");switch(e.prim){case"Unit":case"True":case"False":case"None":XJ(e,0);break;case"Pair":if(void 0===e.args||e.args.length<2)throw new HJ(e,"at least 2 arguments expected");for(const t of e.args)lQ(t);break;case"Left":case"Right":case"Some":XJ(e,1)&&lQ(e.args[0]);break;case"Lambda_rec":e.args&&JJ(e.args);break;default:if(!Object.prototype.hasOwnProperty.call(FJ,e.prim))throw new HJ(e,"data entry or instruction expected");JJ(e)}return!0}function uQ(e){if(KJ(e)){const t={},r={};for(const n of e)if(qJ(n)){if("view"!==n.prim){if(n.prim in t)throw new HJ(e,`duplicate contract section: ${n.prim}`);t[n.prim]=!0}switch(n.prim){case"code":XJ(n,1)&&KJ(n.args[0])&&JJ(n.args[0]);break;case"parameter":if(XJ(n,1)&&nQ(n.args[0]),n.annots)throw new HJ(n,"Annotation must be part of the parameter type");break;case"storage":XJ(n,1)&&rQ(n.args[0]);break;case"view":if(XJ(n,4)){if(ZJ(n.args[0])){const t=n.args[0];if(t.string in r)throw new HJ(e,`duplicate view name: ${t.string}`);r[t.string]=!0,aQ(t)}tQ(n.args[1]),tQ(n.args[2]),KJ(n.args[3])&&JJ(n.args[3])}break;default:throw new HJ(e,`unexpected contract section: ${n.prim}`)}}}return!0}function dQ(e){return Object.prototype.hasOwnProperty.call(FJ,e.prim)}function hQ(e){if(!Array.isArray(e))return!1;for(const t of e)if("prim"in t){if(dQ(t))throw new SJ(e,`Instruction outside of a lambda: ${JSON.stringify(e)}`);if("Elt"===t.prim)throw new SJ(e,`Elt item outside of a map literal: ${JSON.stringify(e)}`)}return!0}"function"===typeof SuppressedError&&SuppressedError;const fQ=["parameter","storage","code","False","Elt","Left","None","Pair","Right","Some","True","Unit","PACK","UNPACK","BLAKE2B","SHA256","SHA512","ABS","ADD","AMOUNT","AND","BALANCE","CAR","CDR","CHECK_SIGNATURE","COMPARE","CONCAT","CONS","CREATE_ACCOUNT","CREATE_CONTRACT","IMPLICIT_ACCOUNT","DIP","DROP","DUP","EDIV","EMPTY_MAP","EMPTY_SET","EQ","EXEC","FAILWITH","GE","GET","GT","HASH_KEY","IF","IF_CONS","IF_LEFT","IF_NONE","INT","LAMBDA","LE","LEFT","LOOP","LSL","LSR","LT","MAP","MEM","MUL","NEG","NEQ","NIL","NONE","NOT","NOW","OR","PAIR","PUSH","RIGHT","SIZE","SOME","SOURCE","SENDER","SELF","STEPS_TO_QUOTA","SUB","SWAP","TRANSFER_TOKENS","SET_DELEGATE","UNIT","UPDATE","XOR","ITER","LOOP_LEFT","ADDRESS","CONTRACT","ISNAT","CAST","RENAME","bool","contract","int","key","key_hash","lambda","list","map","big_map","nat","option","or","pair","set","signature","string","bytes","mutez","timestamp","unit","operation","address","SLICE","DIG","DUG","EMPTY_BIG_MAP","APPLY","chain_id","CHAIN_ID","LEVEL","SELF_ADDRESS","never","NEVER","UNPAIR","VOTING_POWER","TOTAL_VOTING_POWER","KECCAK","SHA3","PAIRING_CHECK","bls12_381_g1","bls12_381_g2","bls12_381_fr","sapling_state","sapling_transaction_deprecated","SAPLING_EMPTY_STATE","SAPLING_VERIFY_UPDATE","ticket","TICKET_DEPRECATED","READ_TICKET","SPLIT_TICKET","JOIN_TICKETS","GET_AND_UPDATE","chest","chest_key","OPEN_CHEST","VIEW","view","constant","SUB_MUTEZ","tx_rollup_l2_address","MIN_BLOCK_TIME","sapling_transaction","EMIT","Lambda_rec","LAMBDA_REC","TICKET","BYTES","NAT"];Object.assign({},...fQ.map(((e,t)=>({[e]:t}))));var pQ;!function(e){e[e.Int=0]="Int",e[e.String=1]="String",e[e.Sequence=2]="Sequence",e[e.Prim0=3]="Prim0",e[e.Prim0Annot=4]="Prim0Annot",e[e.Prim1=5]="Prim1",e[e.Prim1Annot=6]="Prim1Annot",e[e.Prim2=7]="Prim2",e[e.Prim2Annot=8]="Prim2Annot",e[e.Prim=9]="Prim",e[e.Bytes=10]="Bytes"}(pQ||(pQ={}));const mQ=new Error("bounds out of range");class gQ{constructor(e,t=0,r=e.length){this.buffer=e,this.idx=t,this.cap=r}get length(){return this.cap-this.idx}readBytes(e){if(this.cap-this.idx>>0}readUint16(){if(this.cap-this.idx<2)throw mQ;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readUint32(){if(this.cap-this.idx<4)throw mQ;return(this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readInt8(){if(this.cap-this.idx<1)throw mQ;return this.buffer[this.idx++]<<24>>24}readInt16(){if(this.cap-this.idx<2)throw mQ;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])<<16>>16}readInt32(){if(this.cap-this.idx<4)throw mQ;return this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++]}}var vQ,yQ,bQ;function wQ(e){let t;const r=e.readUint8();switch(r){case yQ.ED25519:t="ED25519PublicKeyHash";break;case yQ.SECP256K1:t="SECP256K1PublicKeyHash";break;case yQ.P256:t="P256PublicKeyHash";break;default:throw new Error(`unknown public key hash tag: ${r}`)}return{type:t,hash:e.readBytes(20)}}function xQ(e){let t;const r=e.readUint8();switch(r){case vQ.Implicit:t=wQ(e);break;case vQ.Originated:t={type:"ContractHash",hash:e.readBytes(20)},e.readBytes(1);break;default:throw new Error(`unknown address tag: ${r}`)}if(0!==e.length){const r=new TextDecoder;t.entryPoint=r.decode(new Uint8Array(e.readBytes(e.length)))}return t}function _Q(e){let t,r;const n=e.readUint8();switch(n){case bQ.ED25519:r="ED25519PublicKey",t=32;break;case bQ.SECP256K1:r="SECP256K1PublicKey",t=33;break;case bQ.P256:r="P256PublicKey",t=33;break;default:throw new Error(`unknown public key tag: ${n}`)}return{type:r,publicKey:e.readBytes(t)}}!function(e){e[e.Implicit=0]="Implicit",e[e.Originated=1]="Originated"}(vQ||(vQ={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(yQ||(yQ={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(bQ||(bQ={}));class SQ extends SJ{constructor(e,t,r){super(e,r),this.val=e,this.stackState=t,this.message=r,this.name="MichelsonInstructionError"}}function kQ(e){return Array.isArray(e)?"pair":e.prim}function EQ(e){return"prim"in e?e.args:e}function AQ(e,t,r=!1){if(kQ(e)!==kQ(t))throw new kJ(e,`types mismatch: ${kQ(e)} != ${kQ(t)}`,void 0);const n=[CJ(e),CJ(t)];if(n[0].t&&n[1].t&&n[0].t[0]!==n[1].t[0])throw new kJ(e,`${kQ(e)}: type names mismatch: ${n[0].t[0]} != ${n[1].t[0]}`,void 0);if(r&&n[0].f&&n[1].f&&n[0].f[0]!==n[1].f[0])throw new kJ(e,`${kQ(e)}: field names mismatch: ${n[0].f[0]} != ${n[1].f}`,void 0);if(MJ(e)){const r=IJ("pair",e),n=IJ("pair",t);return AQ(r.args[0],n.args[0],!0),void AQ(r.args[1],n.args[1],!0)}switch(e.prim){case"option":case"list":case"contract":case"set":case"ticket":AQ(e.args[0],t.args[0]);break;case"or":AQ(e.args[0],t.args[0],!0),AQ(e.args[1],t.args[1],!0);break;case"lambda":case"map":case"big_map":AQ(e.args[0],t.args[0]),AQ(e.args[1],t.args[1]);break;case"sapling_state":case"sapling_transaction":if(parseInt(e.args[0].int,10)!==parseInt(t.args[0].int,10))throw new kJ(e,`${kQ(e)}: type argument mismatch: ${e.args[0].int} != ${t.args[0].int}`,void 0)}}function PQ(e,t){if(e.length!==t.length)throw new kJ(e,`stack length mismatch: ${e.length} != ${t.length}`,void 0);for(let r=0;r1)throw new kJ(e,`${e.prim}: at most one type annotation allowed: ${e.annots}`,void 0);if(t){if(((null===(n=o.f)||void 0===n?void 0:n.length)||0)>1)throw new kJ(e,`${e.prim}: at most one field annotation allowed: ${e.annots}`,void 0)}else if(((null===(i=o.f)||void 0===i?void 0:i.length)||0)>0)throw new kJ(e,`${e.prim}: field annotations aren't allowed: ${e.annots}`,void 0)}if(MJ(e)){const t=EQ(e);for(const e of t)OQ(e,!0)}else switch(e.prim){case"option":case"list":case"contract":case"set":OQ(e.args[0]);break;case"or":for(const t of e.args)OQ(t,!0);break;case"lambda":case"map":case"big_map":OQ(e.args[0]),OQ(e.args[1])}}function TQ(e){if(!Array.isArray(e))return!1;for(const t of e)if(!(Array.isArray(t)&&TQ(t)||"prim"in t&&dQ(t)))return!1;return!0}function CQ(e,t,r){if(MJ(t)){if(LJ(e)){hQ(e);const n=IJ("Pair",e),i=IJ("pair",t);return CQ(n.args[0],i.args[0],r),void CQ(n.args[1],i.args[1],r)}throw new kJ(t,`pair expected: ${JSON.stringify(e)}`,e)}switch(t.prim){case"int":if("int"in e&&PJ(e.int))return;throw new kJ(t,`integer value expected: ${JSON.stringify(e)}`,e);case"nat":case"mutez":if("int"in e&&OJ(e.int))return;throw new kJ(t,`natural value expected: ${JSON.stringify(e)}`,e);case"string":if("string"in e)return;throw new kJ(t,`string value expected: ${JSON.stringify(e)}`,e);case"bytes":case"bls12_381_g1":case"bls12_381_g2":if("bytes"in e&&null!==AJ(e.bytes))return;throw new kJ(t,`bytes value expected: ${JSON.stringify(e)}`,e);case"bool":if("prim"in e&&("True"===e.prim||"False"===e.prim))return;throw new kJ(t,`boolean value expected: ${JSON.stringify(e)}`,e);case"key_hash":if("string"in e&&null!==RJ(e.string,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash"))return;if("bytes"in e)try{return void function(e){const t=AJ(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);wQ(new gQ(new Uint8Array(t)))}(e)}catch(Lde){}throw new kJ(t,`key hash expected: ${JSON.stringify(e)}`,e);case"timestamp":if(("string"in e||"int"in e)&&null!==DJ(e))return;throw new kJ(t,`timestamp expected: ${JSON.stringify(e)}`,e);case"address":if("string"in e){let t=e.string;const r=e.string.indexOf("%");if(r>=0&&(t=e.string.slice(0,r)),null!==RJ(t,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash","ContractHash","RollupAddress"))return}else if("bytes"in e)try{return void function(e){const t=AJ(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);xQ(new gQ(new Uint8Array(t)))}(e)}catch(Lde){}throw new kJ(t,`address expected: ${JSON.stringify(e)}`,e);case"key":if("string"in e&&null!==RJ(e.string,"ED25519PublicKey","SECP256K1PublicKey","P256PublicKey"))return;if("bytes"in e)try{return void function(e){const t=AJ(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);_Q(new gQ(new Uint8Array(t)))}(e)}catch(Lde){}throw new kJ(t,`public key expected: ${JSON.stringify(e)}`,e);case"unit":if("prim"in e&&"Unit"===e.prim)return;throw new kJ(t,`unit value expected: ${JSON.stringify(e)}`,e);case"signature":if("bytes"in e||"string"in e&&null!==RJ(e.string,"ED25519Signature","SECP256K1Signature","P256Signature","GenericSignature"))return;throw new kJ(t,`signature expected: ${JSON.stringify(e)}`,e);case"chain_id":if("bytes"in e||"string"in e){if(null!==("string"in e?vJ(e.string):AJ(e.bytes)))return}throw new kJ(t,`chain id expected: ${JSON.stringify(e)}`,e);case"option":if("prim"in e){if("None"===e.prim)return;if("Some"===e.prim)return void CQ(e.args[0],t.args[0],r)}throw new kJ(t,`option expected: ${JSON.stringify(e)}`,e);case"list":case"set":if(hQ(e)){for(const n of e)CQ(n,t.args[0],r);return}throw new kJ(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"or":if("prim"in e){if("Left"===e.prim)return void CQ(e.args[0],t.args[0],r);if("Right"===e.prim)return void CQ(e.args[0],t.args[1],r)}throw new kJ(t,`union (or) expected: ${JSON.stringify(e)}`,e);case"lambda":if(TQ(e)){const n=jQ(e,[t.args[0]],r);if("failed"in n)throw new kJ(t,`function is failed with error type: ${n.failed}`,e);if(1!==n.length)throw new kJ(t,"function must return a value",e);return void AQ(t.args[1],n[0])}throw new kJ(t,`function expected: ${JSON.stringify(e)}`,e);case"map":case"big_map":if(Array.isArray(e)){for(const n of e){if(!("prim"in n)||"Elt"!==n.prim)throw new kJ(t,`map elements expected: ${JSON.stringify(e)}`,e);CQ(n.args[0],t.args[0],r),CQ(n.args[1],t.args[1],r)}return}throw new kJ(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"bls12_381_fr":if("int"in e&&PJ(e.int)||"bytes"in e&&null!==AJ(e.bytes))return;throw new kJ(t,`BLS12-381 element expected: ${JSON.stringify(e)}`,e);case"sapling_state":if(Array.isArray(e))return;throw new kJ(t,`sapling state expected: ${JSON.stringify(e)}`,e);case"ticket":return void CQ(e,{prim:"pair",args:[{prim:"address"},t.args[0],{prim:"nat"}]},r);default:throw new kJ(t,`type ${kQ(t)} don't have Michelson literal representation`,e)}}function jQ(e,t,r){const n=(null===r||void 0===r?void 0:r.protocol)||BX;if(Array.isArray(e))return function(e,t,r){let n=t,i=t,o=0;for(const a of e){const e=jQ(a,i,r);if(n=e,"failed"in e)break;i=e,o++}if("failed"in n&&0==n.level&&(!("prim"in n.failed)||"never"!==n.failed.prim)&&o!==e.length-1)throw new SQ(e,n,"FAIL must appear in a tail position");if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const i={op:e,in:t,out:n};r.traceCallback(i)}return"failed"in n?{failed:n.failed,level:n.level+1}:n}(e,t,r);const i=e;function o(e,...r){if(t.length{try{return e(...r)}catch(Lde){throw Lde instanceof SJ?new SQ(i,t,Lde.message):Lde}}}function s(e){return r=>{try{return e(r)}catch(Lde){throw Lde instanceof SJ?new SQ(i,t,Lde.message):Lde}}}const c=a(CJ),l=a(PQ),u=a(AQ),d=s(QJ),h=s(eQ),f=s(rQ),p=s(tQ),m=s(iQ);function g(e,r){const n=c(i,Object.assign(Object.assign({},r),{emptyFields:void 0!==e.f&&e.f>1,emptyVar:void 0!==e.v&&e.v>1})),o=(e,r,n)=>{if(e&&e.length>(r||0))throw new SQ(i,t,`${i.prim}: at most ${r||0} ${n} annotations allowed`)};return o(n.f,e.f,"field"),o(n.t,e.t,"type"),o(n.v,e.v,"variable"),n}function v(e,t){const r=e,n=Array.isArray(r)?{prim:"pair",args:r}:r,i=c(n),o=void 0!==t.v||void 0!==t.t||void 0!==t.f?[...(null===t.v?i.v:t.v)||[],...(null===t.t?i.t:t.t)||[],...(null===t.f?i.f:t.f)||[]]:void 0,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i["@"+(e.v?e.v[0].slice(1)+".":"")+t];function k(e,t){return"failed"in e||"failed"in t?"failed"in e?t:e:(l(e,t),e)}const E=(e=>{var i,a,s,E,A;switch(e.prim){case"DUP":{const r=e.args?parseInt(e.args[0].int,10):1;if(0===r)throw new SQ(e,t,"DUP 0 is forbidden");const n=o(r-1,null)[0];if("ticket"===kQ(n))throw new SQ(e,t,"ticket can't be DUPed");return[n,...t]}case"SWAP":{const e=o(0,null,null);return g({}),[e[1],e[0],...t.slice(2)]}case"SOME":return[v({prim:"option",args:[o(0,null)[0]]},g({t:1,v:1})),...t.slice(1)];case"UNIT":return[v({prim:"unit"},g({v:1,t:1})),...t];case"PAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new SQ(e,t,`PAIR ${r} is forbidden`);const n=o(0,...new Array(r).fill(null)),i=g({f:r,t:1,v:1},{specialFields:!0}),a=e=>{const t=e.lastIndexOf(".");return e.slice(t>0?t+1:1)},s=n.map(((e,t)=>{var r;const n=c(e);return v(e,{v:null,t:null,f:i.f&&i.f.length>t&&"%"!==i.f[t]?"%@"===i.f[t]?n.v?["%"+a((null===(r=n.v)||void 0===r?void 0:r[0])||"")]:void 0:[i.f[t]]:void 0})}));return[v({prim:"pair",args:s},{t:i.t,v:i.v}),...t.slice(r)]}case"UNPAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new SQ(e,t,`UNPAIR ${r} is forbidden`);const n=o(0,["pair"])[0],i=g({f:2,v:2},{specialVar:!0});return[...w(n,r).map(((e,t)=>b(n,e,i,t,0===t?"car":"cdr"))),...t.slice(1)]}case"CAR":case"CDR":{const r=IJ("pair",o(0,["pair"])[0]);return[b(r,r.args["CAR"===e.prim?0:1],g({f:1,v:1},{specialVar:!0}),0,e.prim.toLocaleLowerCase()),...t.slice(1)]}case"CONS":{const e=o(0,null,["list"]);return u(e[0],e[1].args[0]),[y({prim:"list",args:[e[1].args[0]]}),...t.slice(2)]}case"SIZE":return o(0,["string","list","set","map","bytes"]),[y({prim:"nat"}),...t.slice(1)];case"MEM":{const e=o(0,null,["set","map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"bool"}),...t.slice(2)]}case"GET":if(e.args){const r=parseInt(e.args[0].int,10);return[y(x(o(0,["pair"])[0],r)),...t.slice(1)]}{const e=o(0,null,["map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"option",args:[e[1].args[1]]}),...t.slice(2)]}case"UPDATE":if(e.args){const r=parseInt(e.args[0].int,10),n=o(0,null,["pair"]);return[y(_(n[1],n[0],r)),...t.slice(2)]}{const e=o(0,null,["bool","option"]);if(d(e[0]),"bool"===e[1].prim){const r=o(2,["set"]);return u(e[0],r[0].args[0]),[y({prim:"set",args:[v(e[0],{t:null})]}),...t.slice(3)]}const r=o(2,["map","big_map"]);return u(e[0],r[0].args[0]),"map"===r[0].prim?[y({prim:"map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)]:(m(e[1].args[0]),[y({prim:"big_map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)])}case"GET_AND_UPDATE":{const e=g({v:2}),r=o(0,null,["option"],["map","big_map"]);d(r[0]),u(r[0],r[2].args[0]),u(r[1].args[0],r[2].args[1]);const n=null===(i=e.v)||void 0===i?void 0:i.map((e=>"@"!==e?[e]:void 0));return"map"===r[2].prim?[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)]:(m(r[1].args[0]),[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"big_map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)])}case"EXEC":{const e=o(0,null,["lambda"]);return u(e[0],e[1].args[0]),[y(e[1].args[1]),...t.slice(2)]}case"APPLY":{const r=o(0,null,["lambda"]);if(f(r[0]),p(r[0]),!MJ(r[1].args[0]))throw new SQ(e,t,`${e.prim}: function's argument must be a pair: ${kQ(r[1].args[0])}`);const n=r[1].args[0];return u(r[0],EQ(n)[0]),[y({prim:"lambda",args:[EQ(n)[1],r[1].args[1]]}),...t.slice(2)]}case"FAILWITH":{const e=o(0,null)[0];return UX(n,zX.PtEdo2Zk)||h(e),{failed:e,level:0}}case"NEVER":return o(0,["never"]),{failed:{prim:"never"},level:0};case"RENAME":return[y(o(0,null)[0]),...t.slice(1)];case"CONCAT":{const r=o(0,["string","list","bytes"]);if("list"===r[0].prim){if("string"!==kQ(r[0].args[0])&&"bytes"!==kQ(r[0].args[0]))throw new SQ(e,t,`${e.prim}: can't concatenate list of ${kQ(r[0].args[0])}'s`);return[y(r[0].args[0]),...t.slice(1)]}const n=o(1,["string","bytes"]);if(r[0].prim!==n[0].prim)throw new SQ(e,t,`${e.prim}: can't concatenate ${r[0].prim} with ${n[0].prim}`);return[y(n[0]),...t.slice(2)]}case"SLICE":return[y({prim:"option",args:[o(0,["nat"],["nat"],["string","bytes"])[2]]},"@slice"),...t.slice(3)];case"PACK":{const e=o(0,null)[0];return h(e),[y({prim:"bytes"},"@packed"),...t.slice(1)]}case"ADD":{const r=o(0,["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("int"===r[0].prim&&"timestamp"===r[1].prim||"timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if(("int"===r[0].prim||"nat"===r[0].prim||"mutez"===r[0].prim||"bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't add ${r[0].prim} to ${r[1].prim}`)}case"SUB":{const r=UX(n,zX.PsiThaCa)?o(0,["nat","int","timestamp","mutez"],["nat","int","timestamp","mutez"]):o(0,["nat","int","timestamp"],["nat","int","timestamp"]);if(("nat"===r[0].prim||"int"===r[0].prim)&&("nat"===r[1].prim||"int"===r[1].prim)||"timestamp"===r[0].prim&&"timestamp"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if("mutez"===r[0].prim&&"mutez"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't subtract ${r[0].prim} from ${r[1].prim}`)}case"SUB_MUTEZ":return o(0,["mutez"],["mutez"]),[y({prim:"option",args:[{prim:"mutez"}]}),...t.slice(2)];case"MUL":{const r=o(0,["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("nat"===r[0].prim&&"mutez"===r[1].prim||"mutez"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];if(("bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[0].prim||"int"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];if(("nat"===r[0].prim||"int"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[1].prim||"int"===r[1].prim)&&"bls12_381_fr"===r[0].prim)return[y({prim:"bls12_381_fr"}),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't multiply ${r[0].prim} by ${r[1].prim}`)}case"EDIV":{const r=(e,t)=>({prim:"option",args:[{prim:"pair",args:[{prim:e},{prim:t}]}]}),n=o(0,["nat","int","mutez"],["nat","int","mutez"]);if("nat"===n[0].prim&&"nat"===n[1].prim)return[y(r("nat","nat")),...t.slice(2)];if(!("nat"!==n[0].prim&&"int"!==n[0].prim||"nat"!==n[1].prim&&"int"!==n[1].prim))return[y(r("int","nat")),...t.slice(2)];if("mutez"===n[0].prim&&"nat"===n[1].prim)return[y(r("mutez","mutez")),...t.slice(2)];if("mutez"===n[0].prim&&"mutez"===n[1].prim)return[y(r("nat","mutez")),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't euclideally divide ${n[0].prim} by ${n[1].prim}`)}case"ABS":return o(0,["int"]),[y({prim:"nat"}),...t.slice(1)];case"ISNAT":return o(0,["int"]),[y({prim:"option",args:[{prim:"nat"}]}),...t.slice(1)];case"INT":return o(0,["nat","bls12_381_fr","bytes"]),[y({prim:"int"}),...t.slice(1)];case"BYTES":return o(0,["nat","int"]),[y({prim:"bytes"}),...t.slice(1)];case"NAT":return o(0,["bytes"]),[y({prim:"nat"}),...t.slice(1)];case"NEG":{const e=o(0,["nat","int","bls12_381_g1","bls12_381_g2","bls12_381_fr"])[0];return"nat"===e.prim||"int"===e.prim?[y({prim:"int"}),...t.slice(1)]:[y(e),...t.slice(1)]}case"LSL":case"LSR":return o(0,["nat","bytes"],["nat","bytes"]),[y({prim:"nat"}),...t.slice(2)];case"OR":case"XOR":{const r=o(0,["nat","bytes","bool"],["nat","bytes","bool"]);if(r[0].prim!==r[1].prim)throw new SQ(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"AND":{const r=o(0,["nat","bytes","bool","int"],["nat","bytes","bool"]);if(("int"!==r[0].prim||"nat"!==r[1].prim)&&r[0].prim!==r[1].prim)throw new SQ(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"NOT":return"bool"===o(0,["nat","bytes","bool","int"])[0].prim?[y({prim:"bool"}),...t.slice(1)]:[y({prim:"int"}),...t.slice(1)];case"COMPARE":{const e=o(0,null,null);return d(e[0]),d(e[1]),[y({prim:"int"}),...t.slice(2)]}case"EQ":case"NEQ":case"LT":case"GT":case"LE":case"GE":return o(0,["int"]),[y({prim:"bool"}),...t.slice(1)];case"SELF":{if(void 0===(null===r||void 0===r?void 0:r.contract))throw new SQ(e,t,`${e.prim}: contract required`);const n=g({f:1,v:1}),i=MQ(r.contract,null===(a=n.f)||void 0===a?void 0:a[0]);if(null===i)throw new SQ(e,t,`${e.prim}: contract has no entrypoint ${i}`);return[v({prim:"contract",args:[i]},{v:n.v?n.v:["@self"]}),...t]}case"TRANSFER_TOKENS":{const e=o(0,null,["mutez"],["contract"]);return u(e[0],e[2].args[0]),[y({prim:"operation"}),...t.slice(3)]}case"SET_DELEGATE":{const r=o(0,["option"])[0];if("key_hash"!==kQ(r.args[0]))throw new SQ(e,t,`${e.prim}: key hash expected: ${kQ(r.args[0])}`);return[y({prim:"operation"}),...t.slice(1)]}case"IMPLICIT_ACCOUNT":return o(0,["key_hash"]),[y({prim:"contract",args:[{prim:"unit"}]}),...t.slice(1)];case"NOW":return[y({prim:"timestamp"},"@now"),...t];case"AMOUNT":return[y({prim:"mutez"},"@amount"),...t];case"BALANCE":return[y({prim:"mutez"},"@balance"),...t];case"CHECK_SIGNATURE":return o(0,["key"],["signature"],["bytes"]),[y({prim:"bool"}),...t.slice(3)];case"BLAKE2B":case"SHA256":case"SHA512":case"KECCAK":case"SHA3":return o(0,["bytes"]),[y({prim:"bytes"}),...t.slice(1)];case"HASH_KEY":return o(0,["key"]),[y({prim:"key_hash"}),...t.slice(1)];case"SOURCE":return[y({prim:"address"},"@source"),...t];case"SENDER":return[y({prim:"address"},"@sender"),...t];case"ADDRESS":{const e=o(0,["contract"])[0],r=g({v:1});return[v({prim:"address",[DX]:e},{v:r.v?r.v:S(c(e),"address")}),...t.slice(1)]}case"SELF_ADDRESS":{const e={prim:"address"};return void 0!==(null===r||void 0===r?void 0:r.contract)&&(e[DX]={prim:"contract",args:[RQ(r.contract,"parameter").args[0]]}),[y(e,"@address"),...t]}case"CHAIN_ID":return[y({prim:"chain_id"}),...t];case"DROP":{g({});const r=void 0!==e.args?parseInt(e.args[0].int,10):1;return o(r-1,null),t.slice(r)}case"DIG":{g({});const r=parseInt(e.args[0].int,10);return[o(r,null)[0],...t.slice(0,r),...t.slice(r+1)]}case"DUG":{g({});const r=parseInt(e.args[0].int,10);return[...t.slice(1,r+1),o(0,null)[0],...t.slice(r+1)]}case"NONE":return OQ(e.args[0]),[v({prim:"option",args:[e.args[0]]},g({t:1,v:1})),...t];case"LEFT":case"RIGHT":{const r=o(0,null)[0],n=g({f:2,t:1,v:1},{specialFields:!0}),i=c(r),a=[v(r,{t:null,v:null,f:n.f&&n.f.length>0&&"%"!==n.f[0]?"%@"===n.f[0]?i.v?["%"+i.v[0].slice(1)]:void 0:n.f:void 0}),v(e.args[0],{t:null,f:n.f&&n.f.length>1&&"%"!==n.f[1]?n.f:void 0})];return[v({prim:"or",args:"LEFT"===e.prim?a:[a[1],a[0]]},{t:n.t,v:n.v}),...t.slice(1)]}case"NIL":return OQ(e.args[0]),[v({prim:"list",args:[e.args[0]]},g({t:1,v:1})),...t];case"UNPACK":return o(0,["bytes"]),OQ(e.args[0]),[y({prim:"option",args:[e.args[0]]},"@unpacked"),...t.slice(1)];case"CONTRACT":{const r=o(0,["address"])[0];OQ(e.args[0]);const n=g({v:1,f:1}),i=r[DX];if(void 0!==i){const r=MQ(i,null===(s=n.f)||void 0===s?void 0:s[0]);if(null===r)throw new SQ(e,t,`${e.prim}: contract has no entrypoint ${r}`);u(r,e.args[0])}return[v({prim:"option",args:[{prim:"contract",args:[e.args[0]]}]},{v:n.v?n.v:S(c(r),"contract")}),...t.slice(1)]}case"CAST":{g({});const r=o(0,null)[0];return OQ(e.args[0]),u(e.args[0],r),[e.args[0],...t.slice(1)]}case"IF_NONE":{g({});const n=o(0,["option"])[0],i=t.slice(1);return k(jQ(e.args[0],i,r),jQ(e.args[1],[v(n.args[0],{t:null,v:S(c(n),"some")}),...i],r))}case"IF_LEFT":{g({});const n=o(0,["or"])[0],i=c(n),a=c(n.args[0]),s=c(n.args[1]),l=t.slice(1);return k(jQ(e.args[0],[v(n.args[0],{t:null,v:S(i,a.f?a.f[0].slice(1):"left")}),...l],r),jQ(e.args[1],[v(n.args[1],{t:null,v:S(i,s.f?s.f[0].slice(1):"right")}),...l],r))}case"IF_CONS":{g({});const n=o(0,["list"])[0],i=c(n),a=t.slice(1);return k(jQ(e.args[0],[v(n.args[0],{t:null,v:S(i,"hd")}),v(n,{t:null,v:S(i,"tl")}),...a],r),jQ(e.args[1],a,r))}case"IF":{g({}),o(0,["bool"]);const n=t.slice(1);return k(jQ(e.args[0],n,r),jQ(e.args[1],n,r))}case"MAP":{const n=o(0,["list","map","option"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=jQ(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);if("failed"in s){if(!("prim"in s.failed)||"never"!==s.failed.prim)throw new SQ(e,t,`${e.prim}: FAIL is not allowed in MAP`);return{failed:s.failed,level:s.level+1}}if(s.length<1)throw new SQ(e,t,`${e.prim}: function must return a value`);return l(s.slice(1),i),"list"===n.prim?[y({prim:"list",args:[s[0]]}),...i]:"map"===n.prim?[y({prim:"map",args:[n.args[0],s[0]]}),...i]:[y({prim:"option",args:[s[0]]}),...i]}case"ITER":{g({});const n=o(0,["set","list","map"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=jQ(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);return"failed"in s?{failed:s.failed,level:s.level+1}:(l(s,i),i)}case"LOOP":{g({}),o(0,["bool"]);const n=t.slice(1),i=jQ(e.args[0],n,r);return"failed"in i?{failed:i.failed,level:i.level+1}:(l(i,[{prim:"bool"},...n]),n)}case"LOOP_LEFT":{g({});const n=o(0,["or"])[0],i=t.slice(1),a=jQ(e.args[0],[v(n.args[0],{t:null,v:S(c(n),"left")}),...i],r);return"failed"in a?{failed:a.failed,level:a.level+1}:(l(a,[n,...i]),[v(n.args[1],{t:null,v:g({v:1}).v}),...i])}case"DIP":{g({});const n=2===e.args.length?parseInt(e.args[0].int,10):1;o(n-1,null);const i=t.slice(0,n),a=t.slice(n),s=2===e.args.length?jQ(e.args[1],a,r):jQ(e.args[0],a,r);return"failed"in s?{failed:s.failed,level:s.level+1}:[...i,...s]}case"CREATE_CONTRACT":{const r=g({v:2}),n=o(0,["option"],["mutez"],null);if("key_hash"!==kQ(n[0].args[0]))throw new SQ(e,t,`${e.prim}: key hash expected: ${kQ(n[0].args[0])}`);f(n[2])&&(NQ(e.args[0]),AQ(RQ(e.args[0],"storage").args[0],n[2]));const i=null===(E=r.v)||void 0===E?void 0:E.map((e=>"@"!==e?[e]:void 0));return[v({prim:"operation"},{v:null===i||void 0===i?void 0:i[0]}),v({prim:"address",[DX]:{prim:"contract",args:[RQ(e.args[0],"parameter").args[0]]}},{v:null===i||void 0===i?void 0:i[1]}),...t.slice(3)]}case"PUSH":return OQ(e.args[0]),CQ(e.args[1],e.args[0],Object.assign(Object.assign({},r),{contract:void 0})),[y(e.args[0]),...t];case"EMPTY_SET":return OQ(e.args[0]),d(e.args[0]),[v({prim:"set",args:e.args},g({t:1,v:1})),...t];case"EMPTY_MAP":return OQ(e.args[0]),d(e.args[0]),OQ(e.args[1]),[v({prim:"map",args:e.args},g({t:1,v:1})),...t];case"EMPTY_BIG_MAP":return OQ(e.args[0]),d(e.args[0]),OQ(e.args[1]),m(e.args[0]),[v({prim:"big_map",args:e.args},g({t:1,v:1})),...t];case"LAMBDA_REC":case"LAMBDA":{OQ(e.args[0]),OQ(e.args[1]);const n=[e.args[0]];"LAMBDA_REC"===e.prim&&n.push({prim:"lambda",args:[e.args[0],e.args[1]]});const i=jQ(e.args[2],n,Object.assign(Object.assign({},r),{contract:void 0}));if("failed"in i)return{failed:i.failed,level:i.level+1};if(1!==i.length)throw new SQ(e,t,`${e.prim}: function must return a value`);return u(e.args[1],i[0]),[y({prim:"lambda",args:[e.args[0],e.args[1]]}),...t]}case"LEVEL":return[y({prim:"nat"},"@level"),...t];case"TOTAL_VOTING_POWER":case"MIN_BLOCK_TIME":return[y({prim:"nat"}),...t];case"VOTING_POWER":return o(0,["key_hash"]),[y({prim:"nat"}),...t.slice(1)];case"TICKET":{const e=o(0,null,["nat"])[0];return d(e),UX(n,zX.PtLimaPtL)?[v({prim:"ticket",args:[e]},g({t:1,v:1})),...t.slice(2)]:[y({prim:"option",args:[v({prim:"ticket",args:[e]},g({t:1,v:1}))]}),...t.slice(2)]}case"JOIN_TICKETS":{const r=IJ("pair",o(0,["pair"])[0]);if("ticket"!==kQ(r.args[0]))throw new SQ(e,t,`${e.prim}: ticket expected: ${kQ(r.args[0])}`);return u(r.args[0],r.args[1]),[y({prim:"option",args:[v(r.args[0],{t:null})]}),...t.slice(1)]}case"SPLIT_TICKET":{const r=o(0,["ticket"],["pair"]),n=IJ("pair",r[1]);if("nat"!==kQ(n.args[0]))throw new SQ(e,t,`${e.prim}: nat expected: ${kQ(n.args[0])}`);return u(n.args[0],n.args[1]),[y({prim:"option",args:[{prim:"pair",args:[v(r[0],{t:null}),v(r[0],{t:null})]}]}),...t.slice(2)]}case"READ_TICKET":{const e=g({v:2}),r=o(0,["ticket"])[0],n=null===(A=e.v)||void 0===A?void 0:A.map((e=>"@"!==e?[e]:void 0));return[v({prim:"pair",args:[{prim:"address"},v(r.args[0],{t:null}),{prim:"nat"}]},{v:null===n||void 0===n?void 0:n[0]}),v(r,{v:null===n||void 0===n?void 0:n[1],t:null}),...t.slice(1)]}case"PAIRING_CHECK":{const r=o(0,["list"])[0].args[0];if(!MJ(r))throw new SQ(e,t,`${e.prim}: pair expected: ${kQ(r)}`);const n=IJ("pair",r);if("bls12_381_g1"!==kQ(n.args[0]))throw new SQ(e,t,`${e.prim}: bls12_381_g1 expected: ${kQ(n.args[0])}`);if("bls12_381_g2"!==kQ(n.args[1]))throw new SQ(e,t,`${e.prim}: bls12_381_g2 expected: ${kQ(n.args[1])}`);return[y({prim:"bool"}),...t.slice(1)]}case"SAPLING_EMPTY_STATE":return[v({prim:"sapling_state",args:[e.args[0]]},g({v:1,t:1})),...t];case"SAPLING_VERIFY_UPDATE":{const r=o(0,["sapling_transaction"],["sapling_state"]);if(parseInt(r[0].args[0].int,10)!==parseInt(r[1].args[0].int,10))throw new SQ(e,t,`${e.prim}: sapling memo size mismatch: ${r[0].args[0].int} != ${r[1].args[0].int}`);return UX(n,zX.PtJakarta)?[y({prim:"option",args:[{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}),...t.slice(2)]:[y({prim:"option",args:[{prim:"pair",args:[{prim:"bytes"},{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}]}),...t.slice(2)]}case"OPEN_CHEST":return o(0,["chest_key"],["chest"],["nat"]),[y({prim:"or",args:[{prim:"bytes"},{prim:"bool"}]}),...t.slice(3)];case"VIEW":{const r=o(0,null,["address"]);return p(r[0]),[y({prim:"option",args:[e.args[1]]}),...t.slice(2)]}case"EMIT":{const r=g({f:1,t:1});if(e.args){const n=o(0,null);return u(n[0],e.args[0]),[v({prim:"operation"},r),...t.slice(1)]}return[v({prim:"operation"},r),...t.slice(1)]}default:throw new SJ(e,`unexpected instruction: ${e.prim}`)}})(i);if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const e={op:i,in:t,out:E};r.traceCallback(e)}return E}function RQ(e,t){for(const r of e)if(r.prim===t)return r;throw new SJ(e,`missing contract section: ${t}`)}function IQ(e){if(Array.isArray(e))for(const t of e)if("prim"in t&&("parameter"===t.prim||"storage"===t.prim||"code"===t.prim))return!0;return!1}function MQ(e,t){t=t||"%default";const r=LQ(e).find((e=>e[0]===t));return void 0!==r?r[1]:"%default"===t?IQ(e)?RQ(e,"parameter").args[0]:e:null}function LQ(e){if(IQ(e)){const t=RQ(e,"parameter"),r=LQ(t.args[0]),n=CJ(t);return n.f?[[n.f[0],t.args[0]],...r]:r}if(function(e){return Array.isArray(e)||"or"===e.prim}(e)){const t=EQ(e),r=e=>{const r=CJ(t[e]);if("or"===kQ(t[e])){const n=LQ(t[e]);return r.f?[[r.f[0],t[e]],...n]:n}return r.f?[[r.f[0],t[e]]]:[]};return[...r(0),...r(1)]}return[]}function NQ(e,t){const r=(r,n,i,o)=>{OQ(r,!0),OQ(n);const a=jQ(o,[{prim:"pair",args:[Object.assign(Object.assign({},r),{annots:["@parameter"]}),Object.assign(Object.assign({},n),{annots:["@storage"]})]}],Object.assign(Object.assign({},t),{contract:e}));if("failed"in a)return a;try{PQ(a,[i])}catch(Lde){throw Lde instanceof SJ?new SQ(o,a,Lde.message):Lde}return a},n=RQ(e,"parameter").args[0],i=RQ(e,"storage").args[0],o=r(n,i,{prim:"pair",args:[{prim:"list",args:[{prim:"operation"}]},i]},RQ(e,"code").args[0]);for(const a of Object.values(function(e){const t={};for(const r of e)"view"===r.prim&&(t[r.args[0].string]=r);return t}(e)))r(a.args[1],i,a.args[2],a.args[3]);return o}function DQ(e,t,r){OQ(t),CQ(e,t,r||null)}class zQ{constructor(e,t){this.contract=e,this.ctx=Object.assign({contract:e},t),this.output=NQ(e,this.ctx)}static parse(e,t){const r=new uJ(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new yJ("empty Michelson");if(uQ(n))return new zQ(n,t)}static parseTypeExpression(e,t){const r=new uJ(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new bJ("empty type expression");if(sQ(n))return OQ(n),n}static parseDataExpression(e,t){const r=new uJ(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new wJ("empty data expression");if(lQ(n))return n;throw void 0}section(e){return RQ(this.contract,e)}entryPoints(){return LQ(this.contract)}entryPoint(e){return MQ(this.contract,e)}assertDataValid(e,t){DQ(e,t,this.ctx)}isDataValid(e,t){return function(e,t,r){try{return DQ(e,t,r),!0}catch(un){return!1}}(e,t,this.ctx)}assertParameterValid(e,t){const r=this.entryPoint(e||void 0);if(null===r)throw new xJ(null===e||void 0===e?void 0:e.toString());this.assertDataValid(t,r)}isParameterValid(e,t){try{return this.assertParameterValid(e,t),!0}catch(un){return!1}}functionType(e,t){return function(e,t,r){for(const n of t)OQ(n);if(void 0!==(null===r||void 0===r?void 0:r.contract))for(const n of["parameter","storage"])OQ(RQ(r.contract,n).args[0]);return jQ(e,t,r||null)}(e,t,this.ctx)}}new zQ([{prim:"parameter",args:[{prim:"unit"}]},{prim:"storage",args:[{prim:"unit"}]},{prim:"code",args:[[{prim:"CAR"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PAIR"}]]}]);var BQ=r(4240).Buffer;const FQ=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),UQ=(e,t=8)=>e.toString(16).padStart(t,"0");var $Q;!function(e){e.SECRET="secret",e.RAW="raw",e.TZ1="tz1",e.BRANCH="branch",e.ZARITH="zarith",e.PUBLIC_KEY="public_key",e.PKH="pkh",e.PKH_ARR="pkhArr",e.DELEGATE="delegate",e.SCRIPT="script",e.BALLOT_STATEMENT="ballotStmt",e.PROPOSAL="proposal",e.PROPOSAL_ARR="proposalArr",e.INT32="int32",e.INT16="int16",e.PARAMETERS="parameters",e.ADDRESS="address",e.SMART_CONTRACT_ADDRESS="smart_contract_address",e.SMART_ROLLUP_ADDRESS="smart_rollup_address",e.SMART_ROLLUP_COMMITMENT_HASH="smart_rollup_commitment_hash",e.VALUE="value",e.PADDED_BYTES="padded_bytes",e.SMART_ROLLUP_MESSAGE="smart_rollup_message",e.MANAGER="manager",e.BLOCK_PAYLOAD_HASH="blockPayloadHash",e.ENTRYPOINT="entrypoint",e.OPERATION="operation",e.OP_ACTIVATE_ACCOUNT="activate_account",e.OP_DELEGATION="delegation",e.OP_TRANSACTION="transaction",e.OP_ORIGINATION="origination",e.OP_BALLOT="ballot",e.OP_FAILING_NOOP="failing_noop",e.OP_ATTESTATION="attestation",e.OP_ENDORSEMENT="endorsement",e.OP_SEED_NONCE_REVELATION="seed_nonce_revelation",e.OP_REVEAL="reveal",e.OP_PROPOSALS="proposals",e.OP_REGISTER_GLOBAL_CONSTANT="register_global_constant",e.OP_TRANSFER_TICKET="transfer_ticket",e.BURN_LIMIT="burn_limit",e.OP_INCREASE_PAID_STORAGE="increase_paid_storage",e.OP_UPDATE_CONSENSUS_KEY="update_consensus_key",e.OP_DRAIN_DELEGATE="drain_delegate",e.DEPOSITS_LIMIT="deposits_limit",e.OP_SET_DEPOSITS_LIMIT="set_deposits_limit",e.OP_SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.PVM_KIND="pvm_kind",e.OP_SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message"}($Q||($Q={}));const HQ={"00":"parameter","01":"storage","02":"code","03":"False","04":"Elt","05":"Left","06":"None","07":"Pair","08":"Right","09":"Some","0a":"True","0b":"Unit","0c":"PACK","0d":"UNPACK","0e":"BLAKE2B","0f":"SHA256",10:"SHA512",11:"ABS",12:"ADD",13:"AMOUNT",14:"AND",15:"BALANCE",16:"CAR",17:"CDR",18:"CHECK_SIGNATURE",19:"COMPARE","1a":"CONCAT","1b":"CONS","1c":"CREATE_ACCOUNT","1d":"CREATE_CONTRACT","1e":"IMPLICIT_ACCOUNT","1f":"DIP",20:"DROP",21:"DUP",22:"EDIV",23:"EMPTY_MAP",24:"EMPTY_SET",25:"EQ",26:"EXEC",27:"FAILWITH",28:"GE",29:"GET","2a":"GT","2b":"HASH_KEY","2c":"IF","2d":"IF_CONS","2e":"IF_LEFT","2f":"IF_NONE",30:"INT",31:"LAMBDA",32:"LE",33:"LEFT",34:"LOOP",35:"LSL",36:"LSR",37:"LT",38:"MAP",39:"MEM","3a":"MUL","3b":"NEG","3c":"NEQ","3d":"NIL","3e":"NONE","3f":"NOT",40:"NOW",41:"OR",42:"PAIR",43:"PUSH",44:"RIGHT",45:"SIZE",46:"SOME",47:"SOURCE",48:"SENDER",49:"SELF","4a":"STEPS_TO_QUOTA","4b":"SUB","4c":"SWAP","4d":"TRANSFER_TOKENS","4e":"SET_DELEGATE","4f":"UNIT",50:"UPDATE",51:"XOR",52:"ITER",53:"LOOP_LEFT",54:"ADDRESS",55:"CONTRACT",56:"ISNAT",57:"CAST",58:"RENAME",59:"bool","5a":"contract","5b":"int","5c":"key","5d":"key_hash","5e":"lambda","5f":"list",60:"map",61:"big_map",62:"nat",63:"option",64:"or",65:"pair",66:"set",67:"signature",68:"string",69:"bytes","6a":"mutez","6b":"timestamp","6c":"unit","6d":"operation","6e":"address","6f":"SLICE",70:"DIG",71:"DUG",72:"EMPTY_BIG_MAP",73:"APPLY",74:"chain_id",75:"CHAIN_ID",76:"LEVEL",77:"SELF_ADDRESS",78:"never",79:"NEVER","7a":"UNPAIR","7b":"VOTING_POWER","7c":"TOTAL_VOTING_POWER","7d":"KECCAK","7e":"SHA3","7f":"PAIRING_CHECK",80:"bls12_381_g1",81:"bls12_381_g2",82:"bls12_381_fr",83:"sapling_state",84:"sapling_transaction_deprecated",85:"SAPLING_EMPTY_STATE",86:"SAPLING_VERIFY_UPDATE",87:"ticket",88:"TICKET_DEPRECATED",89:"READ_TICKET","8a":"SPLIT_TICKET","8b":"JOIN_TICKETS","8c":"GET_AND_UPDATE","8d":"chest","8e":"chest_key","8f":"OPEN_CHEST",90:"VIEW",91:"view",92:"constant",93:"SUB_MUTEZ",94:"tx_rollup_l2_address",95:"MIN_BLOCK_TIME",96:"sapling_transaction",97:"EMIT",98:"Lambda_rec",99:"LAMBDA_REC","9a":"TICKET","9b":"BYTES","9c":"NAT"},VQ=(()=>{const e={};return Object.keys(HQ).forEach((t=>{e[HQ[t]]=t})),e})(),qQ={4:"activate_account",107:"reveal",110:"delegation",108:"transaction",109:"origination",6:"ballot",21:"attestation",1:"seed_nonce_revelation",5:"proposals",111:"register_global_constant",158:"transfer_ticket",112:"set_deposits_limit",113:"increase_paid_storage",114:"update_consensus_key",9:"drain_delegate",200:"smart_rollup_originate",201:"smart_rollup_add_messages",206:"smart_rollup_execute_outbox_message",17:"failing_noop"},KQ=(()=>{const e={};return Object.keys(qQ).forEach((t=>{const r="string"===typeof t?parseInt(t,10):t;e[qQ[r]]=UQ(r,2)})),e})(),WQ={"00":"default","01":"root","02":"do","03":"set_delegate","04":"remove_delegate","05":"deposit"},GQ=(()=>{const e={};return Object.keys(WQ).forEach((t=>{e[WQ[t]]=t})),e})();class YQ extends us{constructor(e,t){super(),this.operation=e,this.errorDetail=t,this.name="InvalidOperationSchemaError",this.message="Invalid operation content recevied",t&&(this.message+=` ${t}.`)}}class ZQ extends us{constructor(e){super(),this.entrypoint=e,this.name="OversizedEntryPointError",this.message=`Invalid entrypoint length "${e.length}", maximum length is "31".`}}class XQ extends us{constructor(e){super(),this.ballotValue=e,this.name="InvalidBallotValueError",this.message=`Invalid ballot value "${e}" expecting one of the following: "yay", "nay", "pass".`}}class JQ extends us{constructor(e){super(),this.ballotValue=e,this.name="DecodeBallotValueError",this.message=`Invalid ballot value "${e}", cannot be decoded.`}}class QQ extends us{constructor(e){super(),this.value=e,this.name="UnexpectedMichelsonValueError",this.message=`Invalid Michelson value "${e}", unalbe to encode.`}}class e0 extends us{constructor(e){super(),this.message=e,this.name="OperationDecodingError"}}class t0 extends us{constructor(e){super(),this.message=e,this.name="OperationEncodingError"}}class r0 extends us{constructor(e){super(),this.op=e,this.name="UnsupportedOperationError",this.message=`Unsupported operation "${e}", can submit an issue on our github for feature request.`}}class n0 extends us{constructor(e){super(),this.pvm=e,this.name="UnsupportedPvmKindError",this.message=`Invalid Pvm kind "${e}" expecting either "arith" or "wasm_2_0_0".`}}class i0 extends us{constructor(e){super(),this.pvm=e,this.name="DecodePvmKindError",this.message=`Invalid Pvm kind "${e}", cannot be decoded.`}}class o0 extends us{constructor(e,t){super(),this.address=e,this.errorDetail=t,this.name="InvalidSmartRollupAddress",this.message=`Invalid smart rollup address "${e}"`,t&&(this.message+=` ${t}.`)}}class a0 extends us{constructor(e,t){super(),this.hash=e,this.errorDetail=t,this.name="InvalidSmartRollupCommitmentHashError",this.message=`Invalid smart rollup commitment hash "${e}"`,t&&(this.message+=` ${t}.`)}}class s0{static fromHexString(e){const t=e.toLowerCase();if(/^(([a-f]|\d){2})*$/.test(t)){const e=new Uint8Array((t.match(/([a-z]|\d){2}/g)||[]).map((e=>parseInt(e,16))));return new s0(e)}throw new bs(t)}constructor(e,t=0){this.arr=e,this.offset=t}consume(e){const t=this.arr.subarray(this.offset,this.offset+e);return this.offset+=e,t}get(e){return this.arr[this.offset+e]}length(){return this.arr.length-this.offset}slice(e,t){return new s0(this.arr.slice(e,t))}}const c0=e=>{if(Array.isArray(e)){const t=e.map((e=>c0(e))).join(""),r=t.length/2;return`02${UQ(r)}${t}`}if((e=>"prim"in e)(e))return v0(e);if((e=>"bytes"in e&&"string"===typeof e.bytes)(e))return d0(e);if((e=>"string"in e&&"string"===typeof e.string)(e))return f0(e);if((e=>"int"in e&&"string"===typeof e.int)(e))return m0(e);throw new QQ(JSON.stringify(e))},l0=e=>{const t=e.consume(1);switch(t[0]){case 10:return h0(e);case 1:return p0(e);case 0:return g0(e);case 2:{const t=new s0(u0(e)),r=[];for(;t.length()>0;)r.push(l0(t));return r}default:return y0(e,t)}},u0=(e,t=4)=>{const r=e.consume(t),n=parseInt(BQ.from(r).toString("hex"),16);return e.consume(n)},d0=e=>{if(!/^([A-Fa-f0-9]{2})*$/.test(e.bytes))throw new bs(e.bytes);const t=e.bytes.length/2;return`0a${UQ(t)}${e.bytes}`},h0=e=>{const t=u0(e);return{bytes:BQ.from(t).toString("hex")}},f0=e=>{const t=BQ.from(e.string,"utf8").toString("hex"),r=t.length/2;return`01${UQ(r)}${t}`},p0=e=>{const t=u0(e);return{string:BQ.from(t).toString("utf8")}},m0=({int:e})=>{const t=new Zs(e,10),r="-"===t.toString(2)[0]?"1":"0",n=t.toString(2).replace(/-/g,""),i=n.length<=6?6:(n.length-6)%7?n.length+7-(n.length-6)%7:n.length,o=n.padStart(i,"0").match(/\d{6,7}/g).reverse();o[0]=r+o[0];const a=o.map(((e,t)=>parseInt((t===o.length-1?"0":"1")+e,2).toString(16).padStart(2,"0")));return`00${a.join("")}`},g0=e=>{let t=e.consume(1)[0];const r=[];for(;128&t;)r.push(t),t=e.consume(1)[0];r.push(t);const n=!!(64&r[0]);r[0]=127&r[0];const i=r.map(((e,t)=>e.toString(2).slice(0===t?-6:-7).padStart(0===t?6:7,"0"))).reverse();let o=new Zs(i.join(""),2);return n&&(o=o.times(-1)),{int:o.toFixed()}},v0=e=>{const t=+Array.isArray(e.annots),r=Array.isArray(e.args)?e.args.length:0,n=UQ(Math.min(2*r+t+3,9),2),i=VQ[e.prim];let o=(e.args||[]).map((e=>c0(e))).join("");const a=Array.isArray(e.annots)?x0(e.annots):"";return"LAMBDA"!==e.prim&&"LAMBDA_REC"!==e.prim||!r||(o=UQ(o.length/2)+o+UQ(0)),("pair"===e.prim||"Pair"===e.prim)&&r>2&&(o=""===a?UQ(o.length/2)+o+UQ(0):UQ(o.length/2)+o),"view"===e.prim&&e.args&&(o=UQ(o.length/2)+o+UQ(0)),`${n}${i}${o}${a}`},y0=(e,t)=>{const r=(t[0]-3)%2===1;let n=Math.floor((t[0]-3)/2);const i=e.consume(1)[0].toString(16).padStart(2,"0"),o={prim:HQ[i]};if("LAMBDA"!==HQ[i]&&"LAMBDA_REC"!==HQ[i]||e.consume(4),"view"===HQ[i])return 0!=n?b0(e,o):o;let a,s;("pair"===HQ[i]||"Pair"===HQ[i])&&n>2&&(a=w0(e),n=0,s=_0(e));const c=new Array(n).fill(0).map((()=>l0(e)));return"LAMBDA"!==HQ[i]&&"LAMBDA_REC"!==HQ[i]||e.consume(4),a?o.args=a:c.length&&(o.args=c),s&&""!==s[0]?o.annots=s:r&&(o.annots=_0(e)),o},b0=(e,t)=>(e.consume(4),t.args=new Array(4).fill(0).map((()=>l0(e))),e.consume(4),t),w0=e=>{const t=new s0(u0(e)),r=[];for(;t.length()>0;)r.push(l0(t));return r},x0=e=>{const t=e.map((e=>BQ.from(e,"utf8").toString("hex"))).join("20"),r=t.length/2;return`${UQ(r)}${t}`},_0=e=>{const t=e.consume(4),r=parseInt(BQ.from(t).toString("hex"),16),n=e.consume(r);return BQ.from(n).toString("hex").split("20").map((e=>BQ.from(e,"hex").toString("utf8")))},S0=e=>t=>Mc(BQ.from(Tc(t,nc[e]))),k0=e=>t=>Oc(t.consume(ic[e]),nc[e]),E0=k0(Js.TZ1),A0=k0(Js.B),P0=e=>{const t=e.consume(1);return 0===t[0]?k0(Js.TZ1)(e):1===t[0]?k0(Js.TZ2)(e):2===t[0]?k0(Js.TZ3)(e):void 0},O0=S0(Js.B),T0=S0(Js.TZ1),C0=e=>e?"ff":"00",j0=e=>S0(Js.P)(e),R0=e=>k0(Js.P)(e),I0=e=>255===e.consume(1)[0],M0=e=>{switch(e.substring(0,3)){case Js.TZ1:return"00"+S0(Js.TZ1)(e);case Js.TZ2:return"01"+S0(Js.TZ2)(e);case Js.TZ3:return"02"+S0(Js.TZ3)(e);case Js.TZ4:return"03"+S0(Js.TZ4)(e);default:throw new As(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting one for the following "${Js.TZ1}", "${Js.TZ2}", "${Js.TZ3}" or "${Js.TZ4}".`)}},L0=e=>{const t=[];let r=new Xs(e,10);if(r.isNaN())throw new TypeError(`Invalid zarith number ${e}`);for(;;){if(r.lt(128)){r.lt(16)&&t.push("0"),t.push(r.toString(16));break}{let e=r.mod(128);r=r.minus(e),r=r.dividedBy(128),e=e.plus(128),t.push(e.toString(16))}}return t.join("")},N0=e=>{let t=0;for(;t=0;n-=1){const t=127&e.get(n);r=r.multipliedBy(128),r=r.plus(t)}return e.consume(t+1),new Xs(r).toString()},D0=S0(Js.VH),z0=k0(Js.VH),B0={branch:$Q.BRANCH,contents:[$Q.OPERATION]},F0={pkh:$Q.TZ1,secret:$Q.SECRET},U0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,public_key:$Q.PUBLIC_KEY},$0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,delegate:$Q.DELEGATE},H0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,amount:$Q.ZARITH,destination:$Q.ADDRESS,parameters:$Q.PARAMETERS},V0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,balance:$Q.ZARITH,delegate:$Q.DELEGATE,script:$Q.SCRIPT},q0={source:$Q.PKH,period:$Q.INT32,proposal:$Q.PROPOSAL,ballot:$Q.BALLOT_STATEMENT},K0={slot:$Q.INT16,level:$Q.INT32,round:$Q.INT32,block_payload_hash:$Q.BLOCK_PAYLOAD_HASH},W0={slot:$Q.INT16,level:$Q.INT32,round:$Q.INT32,block_payload_hash:$Q.BLOCK_PAYLOAD_HASH},G0={level:$Q.INT32,nonce:$Q.RAW},Y0={source:$Q.PKH,period:$Q.INT32,proposals:$Q.PROPOSAL_ARR},Z0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,value:$Q.VALUE},X0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,ticket_contents:$Q.VALUE,ticket_ty:$Q.VALUE,ticket_ticketer:$Q.ADDRESS,ticket_amount:$Q.ZARITH,destination:$Q.ADDRESS,entrypoint:$Q.ENTRYPOINT},J0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,amount:$Q.ZARITH,destination:$Q.SMART_CONTRACT_ADDRESS},Q0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,pk:$Q.PUBLIC_KEY},e1={consensus_key:$Q.PKH,delegate:$Q.PKH,destination:$Q.PKH},t1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,limit:$Q.DEPOSITS_LIMIT},r1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,pvm_kind:$Q.PVM_KIND,kernel:$Q.PADDED_BYTES,parameters_ty:$Q.VALUE,whitelist:$Q.PKH_ARR},n1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,message:$Q.SMART_ROLLUP_MESSAGE},i1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,rollup:$Q.SMART_ROLLUP_ADDRESS,cemented_commitment:$Q.SMART_ROLLUP_COMMITMENT_HASH,output_proof:$Q.PADDED_BYTES},o1={arbitrary:$Q.PADDED_BYTES},a1=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(r&&Array.isArray(o)){const t=e[o[0]],a=r[i];if(!Array.isArray(a))throw new t0(`Invalid operation value "${JSON.stringify(a)}" of key "${i}, expected value to be Array.`);return n+a.reduce(((e,r)=>e+t(r)),"")}return n+(0,e[o])(r[i])}),""),s1=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(Array.isArray(o)){const t=e[o[0]],a=[],s=r.length();for(;r.length()>0;)if(a.push(t(r)),s===r.length())throw new e0("Unable to decode value");return Object.assign(Object.assign({},n),{[i]:a})}{const t=(0,e[o])(r);return"undefined"!==typeof t?Object.assign(Object.assign({},n),{[i]:t}):Object.assign({},n)}}),{}),c1={[$Q.SECRET]:e=>FQ(e.consume(20)),[$Q.RAW]:e=>FQ(e.consume(32)),[$Q.TZ1]:E0,[$Q.BRANCH]:A0,[$Q.ZARITH]:N0,[$Q.PUBLIC_KEY]:e=>{switch(e.consume(1)[0]){case 0:return k0(Js.EDPK)(e);case 1:return k0(Js.SPPK)(e);case 2:return k0(Js.P2PK)(e);default:throw new Ss(e.toString(),Sc(ac.NO_PREFIX_MATCHED))}},[$Q.PKH]:P0,[$Q.PKH_ARR]:e=>{if(!I0(e))return;const t=[];for(e.consume(4);e.length()>0;)t.push(P0(e));return t},[$Q.DELEGATE]:e=>{if(I0(e))return P0(e)},[$Q.INT32]:e=>{const t=e.consume(4);let r=0;for(let n=0;n{const t=u0(e),r=u0(e);return{code:l0(new s0(t)),storage:l0(new s0(r))}},[$Q.BALLOT_STATEMENT]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"yay";case 1:return"nay";case 2:return"pass";default:throw new JQ(t[0].toString())}},[$Q.PROPOSAL]:R0,[$Q.PROPOSAL_ARR]:e=>{const t=[];for(e.consume(4);e.length()>0;)t.push(R0(e));return t},[$Q.PARAMETERS]:e=>{if(0!==e.consume(1)[0]){const t=(e=>{const t=UQ(e.consume(1)[0],2);if(t in WQ)return WQ[t];{const t=u0(e,1),r=BQ.from(t).toString("utf8");if(r.length>31)throw new ZQ(r);return r}})(e),r=u0(e);return{entrypoint:t,value:l0(new s0(r))}}},[$Q.ADDRESS]:e=>{switch(e.consume(1)[0]){case 0:return P0(e);case 1:{const t=k0(Js.KT1)(e);return e.consume(1),t}default:throw new ms(e.toString(),": Unable to decode.")}},[$Q.SMART_ROLLUP_ADDRESS]:e=>{const t=k0(Js.SR1)(e);if(t.substring(0,3)!==Js.SR1)throw new o0(t,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SR1}'.`);return t},[$Q.SMART_CONTRACT_ADDRESS]:e=>{if(1===e.consume(1)[0]){const t=k0(Js.KT1)(e);return e.consume(1),t}throw new ks(e.toString(),Sc(ac.NO_PREFIX_MATCHED))},[$Q.SMART_ROLLUP_COMMITMENT_HASH]:e=>{const t=k0(Js.SRC1)(e);if(t.substring(0,4)!==Js.SRC1)throw new a0(t,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SRC1}'`);return t},[$Q.VALUE]:e=>{const t=u0(e);return l0(new s0(t))},[$Q.INT16]:e=>{const t=e.consume(2);let r=0;for(let n=0;n{const t=u0(e);return BQ.from(t).toString("utf8")},[$Q.BURN_LIMIT]:e=>{const t=e.consume(1);if("00"!==BQ.from(t).toString("hex"))return N0(e)},[$Q.DEPOSITS_LIMIT]:e=>{const t=e.consume(1);if("00"!==BQ.from(t).toString("hex"))return N0(e)},[$Q.PVM_KIND]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"arith";case 1:return"wasm_2_0_0";case 2:return"riscv";default:throw new i0(t[0].toString())}},[$Q.PADDED_BYTES]:e=>{const t=u0(e);return BQ.from(t).toString("hex")},[$Q.SMART_ROLLUP_MESSAGE]:e=>{const t=u0(e),r=((e,t=4)=>{const r=[];let n=e;for(;n.length();){const e=n.consume(t),i=parseInt(BQ.from(e).toString("hex"),16);r.push(n.consume(i)),n=n.slice(i+t)}return r})(new s0(t));return r.map((e=>BQ.from(e).toString("hex")))}};c1[$Q.OPERATION]=(e=>t=>{const r=t.consume(1),n=qQ[r[0]];if(void 0===n)throw new r0(r[0].toString());const i=e[n](t);if("object"!==typeof i)throw new e0("Invalid operation, cannot be decoded.");return Object.assign({kind:n},i)})(c1),c1[$Q.OP_ACTIVATE_ACCOUNT]=e=>s1(c1)(F0)(e),c1[$Q.OP_FAILING_NOOP]=e=>s1(c1)(o1)(e),c1[$Q.OP_DELEGATION]=e=>s1(c1)($0)(e),c1[$Q.OP_TRANSACTION]=e=>s1(c1)(H0)(e),c1[$Q.OP_ORIGINATION]=e=>s1(c1)(V0)(e),c1[$Q.OP_BALLOT]=e=>s1(c1)(q0)(e),c1[$Q.OP_ATTESTATION]=e=>s1(c1)(K0)(e),c1[$Q.OP_ENDORSEMENT]=e=>s1(c1)(W0)(e),c1[$Q.OP_SEED_NONCE_REVELATION]=e=>s1(c1)(G0)(e),c1[$Q.OP_PROPOSALS]=e=>s1(c1)(Y0)(e),c1[$Q.OP_REVEAL]=e=>s1(c1)(U0)(e),c1[$Q.OP_REGISTER_GLOBAL_CONSTANT]=e=>s1(c1)(Z0)(e),c1[$Q.OP_TRANSFER_TICKET]=e=>s1(c1)(X0)(e),c1[$Q.OP_INCREASE_PAID_STORAGE]=e=>s1(c1)(J0)(e),c1[$Q.OP_UPDATE_CONSENSUS_KEY]=e=>s1(c1)(Q0)(e),c1[$Q.OP_DRAIN_DELEGATE]=e=>s1(c1)(e1)(e),c1[$Q.OP_SMART_ROLLUP_ORIGINATE]=e=>s1(c1)(r1)(e),c1[$Q.OP_SMART_ROLLUP_ADD_MESSAGES]=e=>s1(c1)(n1)(e),c1[$Q.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE]=e=>s1(c1)(i1)(e),c1[$Q.MANAGER]=s1(c1)(B0),c1[$Q.OP_SET_DEPOSITS_LIMIT]=e=>s1(c1)(t1)(e);const l1={[$Q.SECRET]:e=>e,[$Q.RAW]:e=>e,[$Q.TZ1]:T0,[$Q.BRANCH]:O0,[$Q.ZARITH]:L0,[$Q.PUBLIC_KEY]:e=>{switch(e.substring(0,4)){case Js.EDPK:return"00"+S0(Js.EDPK)(e);case Js.SPPK:return"01"+S0(Js.SPPK)(e);case Js.P2PK:return"02"+S0(Js.P2PK)(e);default:throw new Ss(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting one of the following '${Js.EDPK}', '${Js.SPPK}', '${Js.P2PK}' or '${Js.BLPK}'.`)}},[$Q.PKH]:M0,[$Q.PKH_ARR]:e=>{if(!e)return C0(!1);if(0===e.length)return C0(!0)+UQ(0);const t=e.reduce(((e,t)=>e+M0(t)),"");return C0(!0)+UQ(t.length/2)+t},[$Q.DELEGATE]:e=>e?C0(!0)+M0(e):C0(!1),[$Q.SCRIPT]:e=>{const t=c0(e.code),r=c0(e.storage);return`${UQ(t.length/2,8)}${t}${UQ(r.length/2,8)}${r}`},[$Q.BALLOT_STATEMENT]:e=>{switch(e){case"yay":return"00";case"nay":return"01";case"pass":return"02";default:throw new XQ(e)}},[$Q.PROPOSAL]:j0,[$Q.PROPOSAL_ARR]:e=>UQ(32*e.length)+e.map((e=>j0(e))).join(""),[$Q.INT32]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<4;n++){const e=8*(4-(n+1));r.push((t&255<>e)}return BQ.from(r).toString("hex")},[$Q.PARAMETERS]:e=>{if(!e||"default"===e.entrypoint&&"prim"in e.value&&"Unit"===e.value.prim)return"00";const t=(e=>{if(e in GQ)return`${GQ[e]}`;if(e.length>31)throw new ZQ(e);return`ff${c0({string:e}).slice(8)}`})(e.entrypoint),r=c0(e.value);return`ff${t}${(r.length/2).toString(16).padStart(8,"0")}${r}`},[$Q.ADDRESS]:e=>{switch(e.substring(0,3)){case Js.TZ1:case Js.TZ2:case Js.TZ3:case Js.TZ4:return"00"+M0(e);case Js.KT1:return"01"+S0(Js.KT1)(e)+"00";default:throw new ms(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Js.TZ1}', ${Js.TZ2}', '${Js.TZ3}', '${Js.TZ4}' or '${Js.KT1}'.`)}},[$Q.SMART_ROLLUP_ADDRESS]:e=>{if(e.substring(0,3)!==Js.SR1)throw new o0(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SR1}'.`);return S0(Js.SR1)(e)},[$Q.SMART_CONTRACT_ADDRESS]:e=>{if(e.substring(0,3)===Js.KT1)return"01"+S0(Js.KT1)(e)+"00";throw new ks(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.KT1}'.`)},[$Q.SMART_ROLLUP_COMMITMENT_HASH]:e=>{if(e.substring(0,4)===Js.SRC1)return S0(Js.SRC1)(e);throw new a0(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SRC1}'`)},[$Q.VALUE]:e=>{const t=c0(e);return`${UQ(t.length/2)}${t}`},[$Q.INT16]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<2;n++){const e=8*(2-(n+1));r.push((t&255<>e)}return BQ.from(r).toString("hex")},[$Q.BLOCK_PAYLOAD_HASH]:D0,[$Q.ENTRYPOINT]:e=>`${c0({string:e}).slice(2)}`,[$Q.BURN_LIMIT]:e=>e?`ff${L0(e)}`:"00",[$Q.DEPOSITS_LIMIT]:e=>e?`ff${L0(e)}`:"00",[$Q.PVM_KIND]:e=>{switch(e){case"arith":return"00";case"wasm_2_0_0":return"01";case"riscv":return"02";default:throw new n0(e)}},[$Q.PADDED_BYTES]:(e,t=8)=>`${UQ(e.length/2,t)}${e}`,[$Q.SMART_ROLLUP_MESSAGE]:e=>{const t=e.reduce(((e,t)=>e+`${UQ(t.length/2)}${t}`),"");return`${UQ(t.length/2)}${t}`}};l1[$Q.OPERATION]=(e=>t=>{if(!(t.kind in e)||!(t.kind in KQ))throw new Os(t.kind);return KQ[t.kind]+e[t.kind](t)})(l1),l1[$Q.OP_ACTIVATE_ACCOUNT]=e=>a1(l1)(F0)(e),l1[$Q.OP_DELEGATION]=e=>a1(l1)($0)(e),l1[$Q.OP_TRANSACTION]=e=>a1(l1)(H0)(e),l1[$Q.OP_ORIGINATION]=e=>a1(l1)(V0)(e),l1[$Q.OP_BALLOT]=e=>a1(l1)(q0)(e),l1[$Q.OP_ATTESTATION]=e=>a1(l1)(K0)(e),l1[$Q.OP_ENDORSEMENT]=e=>a1(l1)(W0)(e),l1[$Q.OP_SEED_NONCE_REVELATION]=e=>a1(l1)(G0)(e),l1[$Q.OP_PROPOSALS]=e=>a1(l1)(Y0)(e),l1[$Q.OP_REVEAL]=e=>a1(l1)(U0)(e),l1[$Q.OP_REGISTER_GLOBAL_CONSTANT]=e=>a1(l1)(Z0)(e),l1[$Q.OP_TRANSFER_TICKET]=e=>a1(l1)(X0)(e),l1[$Q.OP_INCREASE_PAID_STORAGE]=e=>a1(l1)(J0)(e),l1[$Q.OP_UPDATE_CONSENSUS_KEY]=e=>a1(l1)(Q0)(e),l1[$Q.OP_DRAIN_DELEGATE]=e=>a1(l1)(e1)(e),l1[$Q.OP_SMART_ROLLUP_ORIGINATE]=e=>a1(l1)(r1)(e),l1[$Q.OP_SMART_ROLLUP_ADD_MESSAGES]=e=>a1(l1)(n1)(e),l1[$Q.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE]=e=>a1(l1)(i1)(e),l1[$Q.MANAGER]=a1(l1)(B0),l1[$Q.OP_SET_DEPOSITS_LIMIT]=e=>a1(l1)(t1)(e),l1[$Q.OP_FAILING_NOOP]=e=>a1(l1)(o1)(e);const u1={activate_account:F0,reveal:U0,delegation:$0,transaction:H0,origination:V0,ballot:q0,attestation:K0,endorsement:W0,seed_nonce_revelation:G0,proposals:Y0,register_global_constant:Z0,transfer_ticket:X0,increase_paid_storage:J0,update_consensus_key:Q0,drain_delegate:e1,set_deposits_limit:t1,smart_rollup_originate:r1,smart_rollup_add_messages:n1,smart_rollup_execute_outbox_message:i1,failing_noop:o1},d1=e=>{const t=e.kind,r=Object.keys(e),n=(i="kind",r.filter((e=>e!==i)));var i;const o=Object.keys(u1[t]);return a=n,o.filter((e=>!a.includes(e)));var a};var h1;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProxfordY="ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(h1||(h1={}));const f1=h1.ProxfordY;class p1{constructor(e=f1){var t;this.protocolHash=e,this.codec=(t=$Q.MANAGER,this.protocolHash,{encoder:l1[t],decoder:e=>{const r=s0.fromHexString(e);return c1[t](r)}})}forge(e){const t=function(e){return cc(e,pc)}(e.branch);if(t!==ac.VALID)throw new gs(e.branch,Sc(t));for(const i of e.contents){if(r=i.kind,!Object.keys(u1).includes(r))throw new Os(i.kind);const e=d1(i);if(1===e.length){if("delegation"===i.kind&&"delegate"===e[0])continue;if("origination"===i.kind&&"delegate"===e[0])continue;if("transaction"===i.kind&&"parameters"===e[0])continue;if("set_deposits_limit"===i.kind&&"limit"===e[0])continue;if("smart_rollup_originate"===i.kind&&"whitelist"===e[0])continue;throw new YQ(i,`missing properties "${e.join(", ")}"`)}if(e.length>1)throw new YQ(i,`missing properties "${e.join(", ")}"`)}var r;const n=this.codec.encoder(e).toLowerCase();return Promise.resolve(n)}parse(e){return Promise.resolve(this.codec.decoder(e))}}new p1;function m1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i(e.on("data",(e=>{t.next(e)})),e.on("error",(e=>{t.error(e)})),e.on("close",(()=>{t.complete()})),()=>{e.close()})))}const S1=10600,k1=10600,E1=10600,A1=1e3,P1=1e3,O1=2e3,T1=2e3,C1=1257,j1=1e4,R1=1e4,I1=374,M1=0,L1=257,N1=257,D1=0;var z1;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProxfordY="ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(z1||(z1={}));z1.Pt24m4xi,z1.PsBABY5H,z1.PsBabyM1,z1.PsCARTHA,z1.PsDELPH1,z1.PtEdo2Zk,z1.PsFLorena,z1.PtGRANADs,z1.PtHangz2,z1.PsiThaCa,z1.Psithaca2,z1.PtJakart2,z1.PtKathman,z1.PtLimaPtL,z1.PtMumbai2,z1.PtNairobi,z1.ProxfordY,z1.ProtoALpha;var B1;!function(e){e.MAINNET="NetXdQprcVkpaWU",e.CARTHAGENET="NetXjD3HPJJjmcd",e.DELPHINET="NetXm8tYqnMWky1",e.EDONET="NetXSgo1ZT2DRUG",e.FLORENCENET="NetXxkAx4woPLyu",e.GRANADANET="NetXz969SFaFn8k",e.HANGZHOUNET="NetXZSsxBpMQeAT",e.ITHACANET="NetXbhmtAbMukLc",e.ITHACANET2="NetXnHfVqm9iesp",e.JAKARTANET2="NetXLH1uAxK7CCh",e.KATHMANDUNET="NetXazhm4yetmff",e.LIMANET="NetXizpkH94bocH",e.MUMBAINET="NetXQw6nWSnrJ5t",e.MUMBAINET2="NetXgbcrNtXD2yA",e.NAIROBINET="NetXyuzvDo2Ugzb",e.OXFORDNET2="NetXxWsskGahzQB"}(B1||(B1={}));const F1=e=>Math.round(11*U1(e)/10),U1=e=>{switch(e.substring(0,3)){case"tz1":return A1;case"tz2":return P1;case"tz3":return O1;case"tz4":return T1;default:throw new Error(`Cannot estimate reveal gas limit for ${e}`)}};class $1 extends us{constructor(e,t,r){super(),this.smartContractMethodName=e,this.sigs=t,this.invalidParams=r,this.name="InvalidParameterError",this.message=`${e} Received ${r.length} arguments while expecting one of the following signatures (${JSON.stringify(t)})`}}class H1 extends us{constructor(e){super(),this.source=e,this.name="InvalidDelegationSource",this.message=`Since Babylon delegation source can no longer be a contract address ${e}. Please use the smart contract abstraction to set your delegate.`}}class V1 extends us{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidCodeParameter"}}class q1 extends us{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidInitParameter"}}class K1 extends ds{constructor(e,t,r,n){super(),this.message=e,this.viewName=t,this.failWith=r,this.cause=n,this.name="ViewSimulationError"}}const W1=e=>{try{JSON.parse(e)}catch(Mde){return!1}return!0};class G1 extends us{constructor(e){super(),this.info=e,this.name="InvalidViewSimulationContext",this.message=`${e} Please configure the context of the view execution in the executeView method.`}}class Y1 extends ds{constructor(e){super(),this.message=e,this.name="RevealOperationError"}}class Z1 extends us{constructor(e){super(),this.message=e,this.name}}class X1 extends us{constructor(e){super(),this.message=e,this.name="InvalidBalanceError"}}const J1=({code:e,init:t,balance:r="0",delegate:n,storage:i,fee:o=j1,gasLimit:a=k1,storageLimit:s=L1,mutez:c=!1})=>g1(void 0,void 0,void 0,(function*(){if(void 0!==i&&void 0!==t)throw new Z1("Storage and Init cannot be set a the same time. Please either use storage or init but not both.");if(!Array.isArray(e))throw new V1("Wrong code parameter type, expected an array",e);let l;if(void 0!==i){const t=e.find((e=>"prim"in e&&"storage"===e.prim));if(void 0===(null===t||void 0===t?void 0:t.args))throw new V1("The storage section is missing from the script",e);l=new SX(t.args[0]).Encode(i)}else{if(void 0===t||"object"!==typeof t)throw new q1("Wrong init parameter type, expected JSON Michelson",t);l=t}const u={code:e,storage:l};if(isNaN(Number(r)))throw new X1(`Invalid Balance "${r}", cannot be converted to a number`);const d={kind:CW.ORIGINATION,fee:o,gas_limit:a,storage_limit:s,balance:c?r.toString():Pc("tz","mutez",r).toString(),script:u};return n&&(d.delegate=n),d})),Q1=({to:e,amount:t,parameter:r,fee:n=R1,gasLimit:i=E1,storageLimit:o=N1,mutez:a=!1})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.TRANSACTION,fee:n,gas_limit:i,storage_limit:o,amount:a?t.toString():Pc("tz","mutez",t).toString(),destination:e,parameters:r}})),e2=({delegate:e,source:t,fee:r=C1,gasLimit:n=S1,storageLimit:i=M1})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.DELEGATION,source:t,fee:r,gas_limit:n,storage_limit:i,delegate:e}})),t2=({fee:e=I1,gasLimit:t,storageLimit:r=D1},n,i)=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.REVEAL,fee:e,public_key:i,source:n,gas_limit:null!==t&&void 0!==t?t:F1(n),storage_limit:r}})),r2=({value:e,source:t,fee:r,gasLimit:n,storageLimit:i})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.REGISTER_GLOBAL_CONSTANT,value:e,fee:r,gas_limit:n,storage_limit:i,source:t}})),n2=({ticketContents:e,ticketTy:t,ticketTicketer:r,ticketAmount:n,destination:i,entrypoint:o,source:a,fee:s,gasLimit:c,storageLimit:l})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.TRANSFER_TICKET,fee:s,gas_limit:c,storage_limit:l,source:a,ticket_contents:e,ticket_ty:t,ticket_ticketer:r,ticket_amount:n,destination:i,entrypoint:o}})),i2=({source:e,fee:t,gasLimit:r,storageLimit:n,amount:i,destination:o})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.INCREASE_PAID_STORAGE,source:e,fee:t,gas_limit:r,storage_limit:n,amount:i,destination:o}})),o2=({source:e,fee:t,gasLimit:r,storageLimit:n,message:i})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.SMART_ROLLUP_ADD_MESSAGES,source:e,fee:t,gas_limit:r,storage_limit:n,message:i}})),a2=({source:e,fee:t,gasLimit:r,storageLimit:n,pvmKind:i,kernel:o,parametersType:a})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.SMART_ROLLUP_ORIGINATE,source:e,fee:t,gas_limit:r,storage_limit:n,pvm_kind:i,kernel:o,parameters_ty:a}})),s2=(e,t)=>Object.assign(Object.assign({},e),{kind:t}),c2=(e,t)=>{if(Array.isArray(e)){const r=e.find((e=>e.kind===t));if(r&&l2(r,t))return r}},l2=(e,t)=>e.kind===t,u2=e=>-1!==["transaction","delegation","origination","reveal","register_global_constant","increase_paid_storage","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),d2=e=>-1!==["transaction","delegation","origination","register_global_constant","increase_paid_storage","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),h2=e=>"metadata"in e,f2=e=>h2(e)&&"operation_result"in e.metadata;class p2 extends ds{constructor(e,t,r){super(),this.errors=e,this.errorDetails=t,this.operationsWithResults=r,this.name="TezosOperationError",this.lastError=e[e.length-1],this.message=`(${this.kind}) ${this.id}`,(e=>"with"in e)(this.lastError)&&(this.lastError.with.string?this.message=this.lastError.with.string:this.lastError.with.int?this.message=this.lastError.with.int:this.message=JSON.stringify(this.lastError.with))}get id(){return this.lastError.id}get kind(){return this.lastError.kind}}class m2 extends Error{constructor(e){super(),this.result=e,this.name="TezosPreapplyFailureError",this.message="Preapply returned an unexpected result"}}const g2=e=>{const t=Array.isArray(e)?e:[e],r=[];for(let n=0;nr.push(e.result))))}return r},v2=(e,t="failed")=>{const r=Array.isArray(e)?e:[e];let n=[];for(let o=0;onew hG(e).pipe(fY({each:1e3*e.timeout,with:()=>fG((()=>new x2("Confirmation polling timed out")))})))),dY((()=>EG((()=>_1(this.context.stream.subscribeBlock("head")))).pipe(dY((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return PG(n+1,e.header.level-n-1).pipe(mY((e=>this.context.readProvider.getBlock(e))),gY(e))})),vY((e=>this.lastHead=e))))),wY({refCount:!0})),this.confirmed$=this.currentHead$.pipe(WG((e=>{for(let t=3;t>=0;t--)e.operations[t].forEach((t=>{t.hash===this.hash&&(this._foundAt=e.header.level)}));if(e.header.level-this._foundAt>=0)return this._foundAt})),xY((e=>void 0!==e)),kY(),wY()),this._foundAt=Number.POSITIVE_INFINITY,_c(this.hash)!==ac.VALID)throw new Ps(this.hash);this.confirmed$.pipe(kY(),EY((()=>UG(AG)))).subscribe()}get revealOperation(){return Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind))}get revealStatus(){return this.revealOperation?this.revealOperation.metadata.operation_result.status:"unknown"}get status(){return this.results.map((e=>f2(e)?e.metadata.operation_result.status:"unknown"))[0]||"unknown"}confirmation(e,t){return g1(this,void 0,void 0,(function*(){if("undefined"!==typeof e&&e<1)throw new w2(e);const{defaultConfirmationCount:r,confirmationPollingTimeoutSecond:n}=this.context.config;this._pollingConfig$.next({timeout:t||n});const i=void 0!==e?e:r;return new Promise(((e,t)=>{this.confirmed$.pipe(dY((()=>this.currentHead$)),xY((e=>e.header.level-this._foundAt>=i-1)),kY()).subscribe((t=>{e(this._foundAt+(i-1))}),t)}))}))}}class k2 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}getOriginatedContractAddresses(){const e=this.results.filter((e=>"origination"===e.kind));let t=[];for(const r of e)r.metadata.operation_result.originated_contracts&&(t=[...t,...r.metadata.operation_result.originated_contracts]);return t}get status(){return this.results.filter((e=>-1!==J2.indexOf(e.kind))).map((e=>{if(f2(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown"}get fee(){return this.sumProp(this.params,"fee")}get gasLimit(){return this.sumProp(this.params,"gas_limit")}get storageLimit(){return this.sumProp(this.params,"storage_limit")}get consumedGas(){return Xs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Xs.ROUND_UP}),new Xs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(g2({contents:this.results}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(g2({contents:this.results}),"paid_storage_size_diff"))}get errors(){return v2({contents:this.results})}}class E2{get rpc(){return this.context.rpc}get signer(){return this.context.signer}constructor(e){this.context=e}forge({opOb:{branch:e,contents:t,protocol:r},counter:n}){return g1(this,void 0,void 0,(function*(){return{opbytes:yield this.context.forger.forge({branch:e,contents:t}),opOb:{branch:e,contents:t,protocol:r},counter:n}}))}estimate(e,t){var{fee:r,gasLimit:n,storageLimit:i}=e,o=m1(e,["fee","gasLimit","storageLimit"]);return g1(this,void 0,void 0,(function*(){let e=r,a=n,s=i;if(e&&e%1!==0)throw new b2(`Fee value must not be a decimal: ${e}`);if(a&&a%1!==0)throw new b2(`Gas Limit value must not be a decimal: ${a}`);if(s&&s%1!==0)throw new b2(`Storage Limit value must not be a decimal: ${s}`);if(void 0===r||void 0===n||void 0===i){const c=yield t(Object.assign({fee:r,gasLimit:n,storageLimit:i},o));null!==e&&void 0!==e||(e=c.suggestedFeeMutez),null!==a&&void 0!==a||(a=c.gasLimit),null!==s&&void 0!==s||(s=c.storageLimit)}return{fee:e,gasLimit:a,storageLimit:s}}))}getRPCOp(e){return g1(this,void 0,void 0,(function*(){switch(e.kind){case CW.TRANSACTION:return Q1(Object.assign({},e));case CW.ORIGINATION:return J1(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case CW.DELEGATION:return e2(Object.assign({},e));case CW.REGISTER_GLOBAL_CONSTANT:return r2(Object.assign({},e));case CW.INCREASE_PAID_STORAGE:return i2(Object.assign({},e));case CW.TRANSFER_TICKET:return n2(Object.assign({},e));case CW.SMART_ROLLUP_ADD_MESSAGES:return o2(Object.assign({},e));case CW.SMART_ROLLUP_ORIGINATE:return a2(Object.assign({},e));default:throw new Os(e.kind)}}))}runOperation(e){return g1(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.runOperation(e),op:e,context:this.context.clone()}}))}simulate(e){return g1(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.simulateOperation(e),op:e,context:this.context.clone()}}))}isRevealOpNeeded(e,t){return g1(this,void 0,void 0,(function*(){return!(!(yield this.isAccountRevealRequired(t))||!this.isRevealRequiredForOpType(e))}))}isAccountRevealRequired(e){return g1(this,void 0,void 0,(function*(){return!(yield this.context.readProvider.isAccountRevealed(e,"head"))}))}isRevealRequiredForOpType(e){let t=!1;for(const r of e)d2(r)&&(t=!0);return t}signAndInject(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.sign(e.opbytes,new Uint8Array([3]));e.opbytes=t.sbytes,e.opOb.signature=t.prefixSig;const r=[],n=yield this.rpc.preapplyOperations([e.opOb]);if(!Array.isArray(n))throw new m2(n);for(let e=0;eg1(this,void 0,void 0,(function*(){return e}))));case CW.ORIGINATION:return this.walletProvider.mapOriginateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return this.context.parser.prepareCodeOrigination(Object.assign({},e))}))));case CW.DELEGATION:return this.walletProvider.mapDelegateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return e}))));case CW.INCREASE_PAID_STORAGE:return this.walletProvider.mapIncreasePaidStorageWalletParams((()=>g1(this,void 0,void 0,(function*(){return e}))));default:throw new Os(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case CW.TRANSACTION:this.withTransfer(t);break;case CW.ORIGINATION:this.withOrigination(t);break;case CW.DELEGATION:this.withDelegation(t);break;case CW.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;default:throw new Os(JSON.stringify(t.kind))}return this}send(){return g1(this,void 0,void 0,(function*(){const e=[];for(const r of this.operations)e.push(yield this.mapOperation(r));const t=yield this.walletProvider.sendOperations(e);return this.context.operationFactory.createBatchOperation(t)}))}}class P2{constructor(e){this.context=e,this.walletCommand=e=>({send:e})}get walletProvider(){return this.context.walletProvider}pkh({forceRefetch:e}={}){return g1(this,void 0,void 0,(function*(){return this._pkh&&!e||(this._pkh=yield this.walletProvider.getPKH()),this._pkh}))}pk({forceRefetch:e}={}){return g1(this,void 0,void 0,(function*(){return this._pk&&!e||(this._pk=yield this.walletProvider.getPK()),this._pk}))}originate(e){return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapOriginateParamsToWalletParams((()=>this.context.parser.prepareCodeOrigination(Object.assign({},e)))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createOriginationOperation(r)}))))}setDelegate(e){var t;const r=gc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&r!==ac.VALID)throw new ms(e.delegate,Sc(r));return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createDelegationOperation(r)}))))}signFailingNoop(e){return g1(this,void 0,void 0,(function*(){const t={kind:CW.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]});return{signature:yield this.walletProvider.sign(n,Uint8Array.from([3])),bytes:n,signedContent:{branch:r,contents:[{kind:CW.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}registerDelegate(){return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const e=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return{delegate:yield this.pkh()}})))),t=yield this.walletProvider.sendOperations([e]);return this.context.operationFactory.createDelegationOperation(t)}))))}transfer(e){const t=gc(e.to);if(t!==ac.VALID)throw new ms(e.to,Sc(t));return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapTransferParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createTransactionOperation(r)}))))}increasePaidStorage(e){const t=gc(e.destination);if(t!==ac.VALID)throw new ms(e.destination,Sc(t));return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapIncreasePaidStorageWalletParams((()=>g1(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createIncreasePaidStorageOperation(r)}))))}batch(e){const t=new A2(this.walletProvider,this.context);return Array.isArray(e)&&t.with(e),t}at(e,t=(e=>e)){return g1(this,void 0,void 0,(function*(){const r=yc(e);if(r!==ac.VALID)throw new ks(e,Sc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new U2(e,o,this,this.context.contract,a,n,i);return t(s,this.context)}))}getPK(){return g1(this,void 0,void 0,(function*(){return yield this.pk()}))}}class O2 extends hs{constructor(){super(),this.name="ConfirmationUndefinedError",this.message="Default confirmation count can not be undefined"}}class T2 extends ps{constructor(e){super(),this.message=e,this.name="ObservableError"}}class C2{operationResults(){return g1(this,void 0,void 0,(function*(){return this._operationResult.pipe(kY()).toPromise()}))}receipt(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new T2("Unable to get operation results");return((e,{ALLOCATION_BURN:t,ORIGINATION_BURN:r}={ALLOCATION_BURN:257,ORIGINATION_BURN:257})=>{Xs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Xs.ROUND_UP});const n=g2({contents:e});let i=new Xs(0),o=new Xs(0),a=new Xs(0),s=new Xs(0),c=new Xs(0),l=new Xs(0);return n.forEach((e=>{a=a.plus(e.fee||0),s=s.plus(Array.isArray(e.originated_contracts)?e.originated_contracts.length*r:0),c=c.plus("allocated_destination_contract"in e?t:0),i=i.plus(e.consumed_milligas||0),l=l.plus("paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0)})),o=o.plus(c).plus(s).plus(l),{totalFee:a,totalMilliGas:i,totalGas:i.dividedBy(1e3),totalStorage:o,totalAllocationBurn:c,totalOriginationBurn:s,totalPaidStorageDiff:l,totalStorageBurn:new Xs(o.multipliedBy(250))}})(e)}))}constructor(e,t,r){if(this.opHash=e,this.context=t,this._newHead$=r,this._operationResult=new dG(1),this._includedInBlock=new dG(1),this._included=!1,this.newHead$=this._newHead$.pipe(dY((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return PG(n+1,e.header.level-n-1).pipe(mY((e=>this.context.readProvider.getBlock(e))),gY(e))})),vY((e=>this.lastHead=e)),yY({connector:()=>new dG(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),this.confirmed$=this.newHead$.pipe(WG((e=>{for(const t of e.operations)for(const r of t)if(r.hash===this.opHash)return this._included=!0,this._includedInBlock.next(e),this._operationResult.next(r.contents),e})),xY((e=>"undefined"!==typeof e)),kY(),yY({connector:()=>new dG(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),_c(this.opHash)!==ac.VALID)throw new Ps(this.opHash);this.confirmed$.pipe(kY(),EY((()=>UG(void 0)))).subscribe()}getCurrentConfirmation(){return g1(this,void 0,void 0,(function*(){return this._included?ZG([this._includedInBlock,FG(this.context.readProvider.getBlock("head"))]).pipe(WG((([e,t])=>t.header.level-e.header.level+1)),kY()).toPromise():0}))}isInCurrentBranch(e="head"){return g1(this,void 0,void 0,(function*(){if(!this._included)return!0;const t=yield this.context.readProvider.getBlockLevel(e),r=yield this._includedInBlock.pipe(kY()).toPromise();if(!r)throw new T2("Inclusion block is undefined");const n=t-r.header.level;if(n<=0)return!0;const i=Math.min(r.header.level+n,r.header.level+60);return new Set(yield this.context.readProvider.getLiveBlocks(i)).has(r.hash)}))}confirmationObservable(e){if("undefined"!==typeof e&&e<1)throw new w2(e);const{defaultConfirmationCount:t}=this.context.config,r=void 0!==e?e:t;if(void 0===r)throw new O2;return ZG([this._includedInBlock,this.newHead$]).pipe(AY((([,e],[,t])=>e.hash===t.hash)),WG((([e,t])=>({block:t,expectedConfirmation:r,currentConfirmation:t.header.level-e.header.level+1,completed:t.header.level-e.header.level>=r-1,isInCurrentBranch:()=>this.isInCurrentBranch(t.hash)}))),(n=({completed:e})=>!e,void 0===(i=!0)&&(i=!1),IG((function(e,t){var r=0;e.subscribe(MG(t,(function(e){var o=n(e,r++);(o||i)&&t.next(e),!o&&t.complete()})))}))));var n,i}confirmation(e){return this.confirmationObservable(e).toPromise()}}class j2 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new T2("operationResult returned undefined");return e.find((e=>e.kind===CW.REVEAL))}))}transactionOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new T2("operationResult returned undefined");return e.find((e=>e.kind===CW.TRANSACTION))}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.transactionOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class R2 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}originationOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return c2(e,CW.ORIGINATION);throw new T2("Unable to fetch operation result")}))}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return c2(e,CW.REVEAL);throw new T2("Unable to fetch operation result")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.originationOperation();return e?e.metadata.operation_result.status:"unknown"}))}contract(){return g1(this,void 0,void 0,(function*(){const e=yield this.originationOperation(),t=((null===e||void 0===e?void 0:e.metadata.operation_result.originated_contracts)||[])[0];return this.context.wallet.at(t)}))}}class I2 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.REVEAL));throw new T2("Unable to fetch operation result")}))}delegationOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.DELEGATION));throw new T2("Unable to fetch operation result")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.delegationOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class M2{constructor(e){this.context=e}getPKH(){return g1(this,void 0,void 0,(function*(){return this.context.signer.publicKeyHash()}))}getPK(){return g1(this,void 0,void 0,(function*(){return this.context.signer.publicKey()}))}mapTransferParamsToWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.TRANSACTION)}))}mapOriginateParamsToWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.ORIGINATION)}))}mapDelegateParamsToWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.DELEGATION)}))}mapIncreasePaidStorageWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.INCREASE_PAID_STORAGE)}))}sendOperations(e){return g1(this,void 0,void 0,(function*(){return(yield this.context.batch.batch(e).send()).hash}))}sign(e,t){return g1(this,void 0,void 0,(function*(){const{prefixSig:r}=yield this.context.signer.sign(e,t);return r}))}}class L2{constructor(e,t,r,n,i="unit",o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}getSignature(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}send(e={}){return this.provider instanceof P2?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:B2,value:this.isAnonymous?this.parameterSchema.EncodeObject({[this.name]:this.args}):this.parameterSchema.EncodeObject(this.args)}}}}class N2{constructor(e,t,r,n,i,o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}validateArgs(e,t,r){const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new $1(r,n,e)}get schema(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}getSignature(){if(!this.isAnonymous){const e=this.parameterSchema.ExtractSignatures();return 1==e.length?e[0]:e}{const e=this.parameterSchema.ExtractSignatures().find((e=>e[0]===this.name));if(e)return e.shift(),e}}send(e={}){return this.provider instanceof P2?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:B2,value:this.isAnonymous?this.parameterSchema.Encode(this.name,...this.args):this.parameterSchema.Encode(...this.args)}}}}class D2{constructor(e,t,r,n,i,o="Unit"){this._rpc=e,this._readProvider=t,this._contractAddress=r,this._smartContractViewSchema=n,this._contractStorageType=i,this._args=o}getSignature(){return{parameter:this._smartContractViewSchema.extractArgsSchema(),result:this._smartContractViewSchema.extractResultSchema()}}executeView(e){return g1(this,void 0,void 0,(function*(){this.verifyContextExecution(e);const t=yield this._readProvider.getChainId(),r=this.transformArgsToMichelson(),n={contract:this._contractAddress,view:this._smartContractViewSchema.viewName,input:r,chain_id:t,source:e.viewCaller};return e.source&&(n.payer=e.source),this.executeViewAndDecodeResult(n)}))}verifyContextExecution(e){if(e.source&&gc(e.source)!==ac.VALID)throw new G1(`The source account who initialized the view execution is invalid: ${e.source}.`);if(!e.viewCaller||gc(e.viewCaller)!==ac.VALID)throw new G1(`The contract which is the caller of view is invalid: ${e.viewCaller}.`)}transformArgsToMichelson(){try{return this._smartContractViewSchema.encodeViewArgs(this._args)}catch(e){throw new xs(this._smartContractViewSchema.viewName,this.getSignature(),this._args,e)}}adaptViewCodeToContext(e,t,r){const n={BALANCE:[{prim:"PUSH",args:[{prim:"mutez"},{int:r}]}],SENDER:[{prim:"PUSH",args:[{prim:"address"},{string:t}]}],SELF_ADDRESS:[{prim:"PUSH",args:[{prim:"address"},{string:this._contractAddress}]}],AMOUNT:[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]}]};return e.forEach(((i,o)=>{i.prim in n&&(e[o]=Object(n)[i.prim]),i.args&&0!==i.args.length?this.adaptViewCodeToContext(i.args,t,r):Array.isArray(i)&&this.adaptViewCodeToContext(i,t,r)})),e}executeViewAndDecodeResult(e){return g1(this,void 0,void 0,(function*(){let t;try{t=(yield this._rpc.runScriptView(e)).data}catch(r){const e=(e=>{if(W1(e.body)){const t=JSON.parse(e.body);if(Array.isArray(t)&&"with"in t[t.length-1])return t[t.length-1].with}})(r);throw e?new K1(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(e)}`,this._smartContractViewSchema.viewName,e,r):r}return this._smartContractViewSchema.decodeViewResult(t)}))}}class z2{constructor(e,t){this.provider=e,this.contractAddress=t}createContractMethodFlatParams(e,t,r,n=!0,i=!1){return new N2(this.provider,this.contractAddress,e,t,r,n,i)}createContractMethodObjectParam(e,t,r,n=!0,i=!1){return new L2(this.provider,this.contractAddress,e,t,r,n,i)}createContractViewObjectParam(e,t,r,n,i){return new D2(e,t,this.contractAddress,r,n,i)}}const B2="default";class F2{constructor(e,t,r,n,i,o,a){this.currentContract=e,this.name=t,this.callbackParametersSchema=r,this.parameterSchema=n,this.args=i,this.rpc=o,this.readProvider=a}read(e){return g1(this,void 0,void 0,(function*(){const t=vc(null!==e&&void 0!==e?e:"");if(yc(null!==e&&void 0!==e?e:"")==ac.VALID)throw new Ts("Since version 12, the lambda view no longer depends on a lambda contract. The read method no longer accepts a contract address as a parameter.");if(e&&t!==ac.VALID)throw new Es(e,Sc(t));const r=this.parameterSchema.Encode(...this.args),n=yield this.rpc.runView({contract:this.currentContract.address,entrypoint:this.name,input:r,chain_id:e||(yield this.readProvider.getChainId())});return this.callbackParametersSchema.Execute(n.data)}))}}class U2{constructor(e,t,r,n,i,o,a){this.address=e,this.script=t,this.storageProvider=n,this.entrypoints=i,this.rpc=o,this.readProvider=a,this.methods={},this.methodsObject={},this.views={},this.contractViews={},this.contractMethodFactory=new z2(r,e),this.schema=SX.fromRPCResponse({script:this.script}),this.parameterSchema=kX.fromRPCResponse({script:this.script}),this.viewSchema=EX.fromRPCResponse({script:this.script}),0!==this.viewSchema.length&&this._initializeOnChainViews(this,o,this.readProvider,this.viewSchema),this.eventSchema=AX.fromRPCResponse({script:this.script}),this._initializeMethods(this,this.entrypoints.entrypoints,this.rpc,this.readProvider)}_initializeMethods(e,t,r,n){const i=this.parameterSchema,o=Object.keys(t);if(i.isMultipleEntryPoint){o.forEach((i=>{const o=new kX(t[i]);if(this.methods[i]=function(...t){return e.contractMethodFactory.createContractMethodFlatParams(o,i,t)},this.methodsObject[i]=function(t){return e.contractMethodFactory.createContractMethodObjectParam(o,i,t)},(e=>{let t=!1;if("prim"in e&&"pair"===e.prim&&e.args){const r=e.args[e.args.length-1];"prim"in r&&"contract"===r.prim&&(t=!0)}return t})(t[i])){const o=function(...o){const a=t[i].args[0],s=new kX(a),c=t[i].args[1].args[0],l=new kX(c);return((e,t,r)=>{const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new $1(r,n,e)})(o,s,i),new F2(e,i,l,s,o,r,n)};this.views[i]=o}}));const a=Object.keys(i.ExtractSchema()).filter((e=>-1===Object.keys(t).indexOf(e)));a.forEach((t=>{this.methods[t]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(i,t,r,!1,!0)},this.methodsObject[t]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(i,t,r,!1,!0)}}))}else{const t=this.parameterSchema;this.methods[B2]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(t,B2,r,!1)},this.methodsObject[B2]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(t,B2,r,!1)}}}_initializeOnChainViews(e,t,r,n){const i=this.schema.val;n.forEach((n=>{this.contractViews[n.viewName]=function(o){return e.contractMethodFactory.createContractViewObjectParam(t,r,n,i,o)}}))}storage(){return this.storageProvider.getStorage(this.address,this.schema)}bigMap(e){return this.storageProvider.getBigMapKey(this.address,e,this.schema)}}const $2=e=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"SOME"},{prim:"SET_DELEGATE"},{prim:"CONS"}],H2=()=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"NONE",args:[{prim:"key_hash"}]},{prim:"SET_DELEGATE"},{prim:"CONS"}],V2=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"IMPLICIT_ACCOUNT"},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],q2=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"address"},{string:e}]},{prim:"CONTRACT",args:[{prim:"unit"}]},{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}];class K2{constructor(e,t){this.id=e,this.provider=t}getSaplingDiff(e){return g1(this,void 0,void 0,(function*(){return this.provider.getSaplingDiffByID(this.id.toString(),e)}))}getId(){return this.id.toString()}}class W2{constructor(e,t,r){this.id=e,this.schema=t,this.provider=r}get(e,t){return g1(this,void 0,void 0,(function*(){try{return yield this.provider.getBigMapKeyByID(this.id.toString(),e,this.schema,t)}catch(Mde){if(Mde instanceof dW&&Mde.status===sW.NOT_FOUND)return;throw Mde}}))}getMultipleValues(e,t,r=5){return g1(this,void 0,void 0,(function*(){return this.provider.getBigMapKeysByID(this.id.toString(),e,this.schema,t,r)}))}toJSON(){return this.id.toString()}toString(){return this.id.toString()}}const G2=e=>({big_map:(t,r)=>{if(t&&"int"in t&&void 0!==t.int){const n=new SX(r);return new W2(new Xs(t.int),n,e)}return{}},sapling_state:t=>t&&"int"in t&&void 0!==t.int?new K2(new Xs(t.int),e):{}});var Y2;const Z2=(e,t)=>{var r,n,i;return{fee:null!==(r=e.fee)&&void 0!==r?r:t.fee,gasLimit:null!==(n=e.gasLimit)&&void 0!==n?n:t.gasLimit,storageLimit:null!==(i=e.storageLimit)&&void 0!==i?i:t.storageLimit}};class X2 extends E2{constructor(e){super(e),this.context=e,Y2.set(this,void 0),y1(this,Y2,{},"f")}getBlockHash(e){return g1(this,void 0,void 0,(function*(){return this.context.readProvider.getBlockHash(null!==e&&void 0!==e?e:"head~2")}))}getProtocolHash(){return g1(this,void 0,void 0,(function*(){return this.context.readProvider.getNextProtocol("head")}))}getHeadCounter(e){var t;return g1(this,void 0,void 0,(function*(){return null!==(t=this.context.readProvider.getCounter(e,"head"))&&void 0!==t?t:"0"}))}adjustGasForBatchOperation(e,t,r){return Xs.min(t,e.div(r+1))}getAccountLimits(e,t,r){return g1(this,void 0,void 0,(function*(){const n=yield this.context.readProvider.getBalance(e,"head"),{hard_gas_limit_per_operation:i,hard_gas_limit_per_block:o,hard_storage_limit_per_operation:a,cost_per_byte:s}=t;return{fee:0,gasLimit:r?Math.floor(this.adjustGasForBatchOperation(o,i,r).toNumber()):i.toNumber(),storageLimit:Math.floor(Xs.min(n.dividedBy(s),a).toNumber())}}))}getFee(e,t,r){(!v1(this,Y2,"f")[t]||v1(this,Y2,"f")[t]{switch(e.kind){case CW.ACTIVATION:case CW.DRAIN_DELEGATE:return Object.assign({},e);case CW.ORIGINATION:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{balance:"undefined"!==typeof e.balance?`${e.balance}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.TRANSACTION:{const i=Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:"undefined"!==typeof e.amount?`${e.amount}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));if(i.source.toLowerCase().startsWith("kt1"))throw new Ts(`KT1 addresses are not supported as source since ${z1.PsBabyM1}`);return i}case CW.REVEAL:case CW.DELEGATION:case CW.REGISTER_GLOBAL_CONSTANT:case CW.UPDATE_CONSENSUS_KEY:case CW.SMART_ROLLUP_ADD_MESSAGES:case CW.SMART_ROLLUP_ORIGINATE:return Object.assign(Object.assign(Object.assign({},e),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.TRANSFER_TICKET:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{ticket_amount:`${e.ticket_amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.INCREASE_PAID_STORAGE:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:`${e.amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.BALLOT:case CW.PROPOSALS:if(void 0===i)throw new _2("Failed to get the current voting period index");return Object.assign(Object.assign({},e),{period:null===i||void 0===i?void 0:i.voting_period.index});default:throw new Os(e.kind)}}))}activate({pkh:e,secret:t}){return g1(this,void 0,void 0,(function*(){const r=yield(({pkh:e,secret:t})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.ACTIVATION,pkh:e,secret:t}})))({pkh:e,secret:t}),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();y1(this,Y2,{},"f");const a=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:i,contents:this.constructOpContents(n,a,e),protocol:o},counter:a}}))}reveal({fee:e,gasLimit:t,storageLimit:r}){return g1(this,void 0,void 0,(function*(){const{pkh:n,publicKey:i}=yield this.getKeys();if(!i)throw new js(n);const o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(n,o),s=Z2({fee:e,storageLimit:r,gasLimit:t},a),c=yield t2({fee:s.fee,gasLimit:s.gasLimit,storageLimit:s.storageLimit},n,i),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(n),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,n),protocol:d},counter:h}}))}originate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield J1(yield this.context.parser.prepareCodeOrigination(Object.assign(Object.assign({},o),Z2({fee:r,storageLimit:n,gasLimit:i},s)))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();y1(this,Y2,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}transaction(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield Q1(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}delegation(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield e2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}registerDelegate({fee:e,storageLimit:t,gasLimit:r},n){return g1(this,void 0,void 0,(function*(){const{pkh:i}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(i,o),s=Z2({fee:e,storageLimit:t,gasLimit:r},a),c=yield(({fee:e=C1,gasLimit:t=S1,storageLimit:r=M1},n)=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.DELEGATION,fee:e,gas_limit:t,storage_limit:r,delegate:n}})))({fee:s.fee,storageLimit:s.storageLimit,gasLimit:s.gasLimit},i),l=yield this.addRevealOperationIfNeeded(c,i),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();y1(this,Y2,{},"f");const f=parseInt(yield this.getHeadCounter(i),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,i,n),protocol:h},counter:f}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield r2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}updateConsensusKey(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield(({source:e,fee:t,gasLimit:r,storageLimit:n,pk:i})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.UPDATE_CONSENSUS_KEY,source:e,fee:t,gas_limit:r,storage_limit:n,pk:i}})))(Object.assign(Object.assign({},o),Z2({fee:r,storageLimit:n,gasLimit:i},s))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();y1(this,Y2,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield i2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}ballot(e){return g1(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposal:t,ballot:r})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.BALLOT,source:e,proposal:t,ballot:r}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();y1(this,Y2,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(Mde){throw new _2("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}proposals(e){return g1(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposals:t})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.PROPOSALS,source:e,proposals:t}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();y1(this,Y2,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(Mde){throw new _2("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}drainDelegate(e,t){return g1(this,void 0,void 0,(function*(){const{pkh:r}=yield this.getKeys(),n=yield(({consensus_key:e,delegate:t,destination:r})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.DRAIN_DELEGATE,consensus_key:e,delegate:t,destination:r}})))(Object.assign({},e)),i=this.convertIntoArray(n),o=yield this.getBlockHash(),a=yield this.getProtocolHash();y1(this,Y2,{},"f");const s=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:o,contents:this.constructOpContents(i,s,r,t),protocol:a},counter:s}}))}transferTicket(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield n2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupAddMessages(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield o2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupOriginate(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield a2(Object.assign(Object.assign({},Z2({fee:t,storageLimit:r,gasLimit:n},a)),i)),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}batch(e,t){return g1(this,void 0,void 0,(function*(){const{pkh:r,publicKey:n}=yield this.getKeys(),i=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.getAccountLimits(r,i,e.length),a=yield this.isRevealOpNeeded(e,r),s=[];if(t)for(const d of e)if(u2(d)){const e=t.shift(),r=Z2(d,{fee:e.suggestedFeeMutez,storageLimit:e.storageLimit,gasLimit:e.gasLimit});s.push(yield this.getRPCOp(Object.assign(Object.assign({},d),r)))}else s.push(Object.assign({},d));else for(const t of e)if(u2(t)){const e=Z2(t,o);s.push(yield this.getRPCOp(Object.assign(Object.assign({},t),e)))}else s.push(Object.assign({},t));if(a){if(!n)throw new js(r);s.unshift(yield t2({fee:I1,storageLimit:D1,gasLimit:F1(r)},r,n))}const c=yield this.getBlockHash(),l=yield this.getProtocolHash();y1(this,Y2,{},"f");const u=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:c,contents:this.constructOpContents(s,u,r),protocol:l},counter:u}}))}contractCall(e){var t,r,n;return g1(this,void 0,void 0,(function*(){const i=yield this.getBlockHash(),o=yield this.getProtocolHash(),{pkh:a}=yield this.getKeys();y1(this,Y2,{},"f");const s=parseInt(yield this.getHeadCounter(a),10),c=e.toTransferParams(),l=yield this.context.readProvider.getProtocolConstants("head"),u=yield this.getAccountLimits(a,l),d=Z2({fee:c.fee,storageLimit:c.storageLimit,gasLimit:c.gasLimit},u),h={kind:CW.TRANSACTION,fee:null!==(t=c.fee)&&void 0!==t?t:d.fee,gas_limit:null!==(r=c.gasLimit)&&void 0!==r?r:d.gasLimit,storage_limit:null!==(n=c.storageLimit)&&void 0!==n?n:d.storageLimit,amount:String(c.amount),destination:c.to,parameters:c.parameter},f=yield this.addRevealOperationIfNeeded(h,a),p=this.convertIntoArray(f);return{opOb:{branch:i,contents:this.constructOpContents(p,s,a),protocol:o},counter:s}}))}toPreapply(e){return g1(this,void 0,void 0,(function*(){const{opOb:{contents:t,branch:r,protocol:n}}=e,i=this.toForge(e),o=yield this.context.forger.forge(i);return[{contents:t,branch:r,protocol:n,signature:(yield this.context.signer.sign(o,new Uint8Array([3]))).prefixSig}]}))}toForge({opOb:{contents:e,branch:t}}){return{branch:t,contents:e}}}Y2=new WeakMap;const J2=[CW.ACTIVATION,CW.ORIGINATION,CW.TRANSACTION,CW.DELEGATION];class Q2 extends E2{constructor(e,t){super(e),this.estimator=t,this.operations=[],this.prepare=new X2(this.context)}withTransfer(e){const t=gc(e.to);if(e.amount<0)throw new vs(e.amount.toString());if(t!==ac.VALID)throw new ms(e.to,Sc(t));return this.operations.push(Object.assign({kind:CW.TRANSACTION},e)),this}withTransferTicket(e){const t=gc(e.destination);if(t!==ac.VALID)throw new ms(e.destination,Sc(t));return this.operations.push(Object.assign({kind:CW.TRANSFER_TICKET},e)),this}withContractCall(e,t={}){return this.withTransfer(e.toTransferParams(t))}withDelegation(e){var t;const r=gc(e.source);if(e.source&&r!==ac.VALID)throw new ms(e.source,Sc(r));const n=gc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==ac.VALID)throw new ms(e.delegate,Sc(n));return this.operations.push(Object.assign({kind:CW.DELEGATION},e)),this}withActivation({pkh:e,secret:t}){const r=bc(e);if(r!==ac.VALID)throw new As(e,Sc(r));return this.operations.push({kind:CW.ACTIVATION,pkh:e,secret:t}),this}withOrigination(e){return this.operations.push(Object.assign({kind:CW.ORIGINATION},e)),this}withRegisterGlobalConstant(e){return this.operations.push(Object.assign({kind:CW.REGISTER_GLOBAL_CONSTANT},e)),this}withIncreasePaidStorage(e){return this.operations.push(Object.assign({kind:CW.INCREASE_PAID_STORAGE},e)),this}withSmartRollupAddMessages(e){return this.operations.push(Object.assign({kind:CW.SMART_ROLLUP_ADD_MESSAGES},e)),this}withSmartRollupOriginate(e){return this.operations.push(Object.assign({kind:CW.SMART_ROLLUP_ORIGINATE},e)),this}getRPCOp(e){return g1(this,void 0,void 0,(function*(){switch(e.kind){case CW.TRANSACTION:return Q1(Object.assign({},e));case CW.ORIGINATION:return J1(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case CW.DELEGATION:return e2(Object.assign({},e));case CW.REGISTER_GLOBAL_CONSTANT:return r2(Object.assign({},e));case CW.INCREASE_PAID_STORAGE:return i2(Object.assign({},e));case CW.TRANSFER_TICKET:return n2(Object.assign({},e));case CW.SMART_ROLLUP_ADD_MESSAGES:return o2(Object.assign({},e));case CW.SMART_ROLLUP_ORIGINATE:return a2(Object.assign({},e));default:throw new Os(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case CW.TRANSACTION:this.withTransfer(t);break;case CW.ORIGINATION:this.withOrigination(t);break;case CW.DELEGATION:this.withDelegation(t);break;case CW.ACTIVATION:this.withActivation(t);break;case CW.REGISTER_GLOBAL_CONSTANT:this.withRegisterGlobalConstant(t);break;case CW.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;case CW.TRANSFER_TICKET:this.withTransferTicket(t);break;case CW.SMART_ROLLUP_ADD_MESSAGES:this.withSmartRollupAddMessages(t);break;case CW.SMART_ROLLUP_ORIGINATE:this.withSmartRollupOriginate(t);break;default:throw new Os(JSON.stringify(t.kind))}return this}send(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=e&&e.source||t,n=yield this.estimator.batch(this.operations);n.length!==this.operations.length&&n.shift();const i=yield this.prepare.batch(this.operations,n),o=yield this.forge(i),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new k2(a,i.opOb.contents,r,c,l,s)}))}}class e5{constructor(e,t){this.context=e,this.estimator=t}batch(e){const t=new Q2(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class t5 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t,this.getOriginatedContractAddresses=()=>g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e){const t=e.filter((e=>"origination"===e.kind));let r=[];for(const e of t)e.metadata.operation_result.originated_contracts&&(r=[...r,...e.metadata.operation_result.originated_contracts]);return r}throw new T2("Unable to fetch operation results")}))}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.REVEAL));throw new T2("Unable to fetch operation results")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.operationResults();if(e)return e.filter((e=>-1!==J2.indexOf(e.kind))).map((e=>{if(f2(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown";throw new T2("Unable to fetch operation results")}))}}class r5 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.REVEAL));throw new T2("Unable to fetch operation result")}))}increasePaidStorageOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.INCREASE_PAID_STORAGE));throw new T2("Unable to fetch operation result")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.increasePaidStorageOperation();return e?e.metadata.operation_result.status:"unknown"}))}}const n5=(e,t,r)=>{return e.pipe((n=1e3*t.config.confirmationPollingTimeoutSecond,function(e){return new hG(null).pipe(fY({each:n,with:()=>fG((()=>new x2("Confirmation polling timed out")))}),JG((()=>e)))}),yY({connector:()=>new dG(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1}));var n};class i5{constructor(e){this.context=e,this.sharedHeadObs=EG((()=>_1(this.context.stream.subscribeBlock("head"))))}createNewHeadObservable(){return g1(this,void 0,void 0,(function*(){return n5(this.sharedHeadObs,this.context)}))}createPastBlockWalker(e,t=1){return FG(this.context.readProvider.getBlock(e)).pipe(dY((e=>1===t?UG(e):PG(e.header.level,t-1).pipe(function(){for(var e=[],t=0;tg1(this,void 0,void 0,(function*(){return this.context.readProvider.getBlock("number"===typeof e?e:e.header.level)}))))))))}createHeadObservableFromConfig({blockIdentifier:e}){return g1(this,void 0,void 0,(function*(){const t=[];return e&&t.push(this.createPastBlockWalker(e)),t.push(yield this.createNewHeadObservable()),eY(...t)}))}createOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new C2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createBatchOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new t5(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createTransactionOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new j2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createDelegationOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new I2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createOriginationOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new R2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createIncreasePaidStorageOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new r5(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}}class o5 extends E2{constructor(e){super(e),this.prepare=new X2(this.context)}getBalance(e){return g1(this,void 0,void 0,(function*(){const t=gc(e);if(t!==ac.VALID)throw new ms(e,Sc(t));return this.context.readProvider.getBalance(e,"head")}))}getDelegate(e){return g1(this,void 0,void 0,(function*(){const t=gc(e);if(t!==ac.VALID)throw new ms(e,Sc(t));return this.context.readProvider.getDelegate(e,"head")}))}activate(e,t){return g1(this,void 0,void 0,(function*(){const r=bc(e);if(r!==ac.VALID)throw new As(e,Sc(r));const n=yield this.prepare.activate({pkh:e,secret:t}),i=yield this.forge(n),o=`${i.opbytes}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`;return new S2(yield this.rpc.injectOperation(o),Object.assign(Object.assign({},i),{opbytes:o}),[],this.context.clone())}))}}const a5=100;class s5{constructor(e,t,r,n,i=100){this._milligasLimit=e,this._storageLimit=t,this.opSize=r,this.minimalFeePerStorageByteMutez=n,this.baseFeeMutez=i}get burnFeeMutez(){return this.roundUp(Number(this.storageLimit)*Number(this.minimalFeePerStorageByteMutez))}get storageLimit(){const e=Math.max(Number(this._storageLimit),0);return e>0?e:0}get gasLimit(){return this.roundUp(Number(this._milligasLimit)/1e3+100)}get operationFeeMutez(){return.1*(Number(this._milligasLimit)/1e3+100)+1*Number(this.opSize)}roundUp(e){return Math.ceil(Number(e))}get minimalFeeMutez(){return this.roundUp(a5+this.operationFeeMutez)}get suggestedFeeMutez(){return this.roundUp(this.operationFeeMutez+200)}get usingBaseFeeMutez(){return Math.max(Number(this.baseFeeMutez),a5)+this.roundUp(this.operationFeeMutez)}get totalCost(){return this.minimalFeeMutez+this.burnFeeMutez}get consumedMilligas(){return Number(this._milligasLimit)}static createEstimateInstanceFromProperties(e){let t,r=0,n=0,i=0,o=0;return e.forEach((e=>{r+=e.milligasLimit,n+=e.storageLimit,i+=e.opSize,o=Math.max(e.minimalFeePerStorageByteMutez,o),e.baseFeeMutez&&(t=t?t+e.baseFeeMutez:e.baseFeeMutez)})),new s5(r,n,i,o,t)}static createArrayEstimateInstancesFromProperties(e){return e.map((e=>new s5(e.milligasLimit,e.storageLimit,e.opSize,e.minimalFeePerStorageByteMutez,e.baseFeeMutez)))}}class c5 extends ls{constructor(){super(),this.name="RevealEstimateError",this.message="Public key is unknown, unable to estimate the reveal operation in Wallet API."}}class l5 extends E2{constructor(){super(...arguments),this.ALLOCATION_STORAGE=257,this.ORIGINATION_STORAGE=257,this.OP_SIZE_REVEAL=128,this.prepare=new X2(this.context)}getKeys(){return g1(this,void 0,void 0,(function*(){const e=this.context.isAnySignerConfigured();return{publicKeyHash:e?yield this.signer.publicKeyHash():yield this.context.walletProvider.getPKH(),publicKey:e?yield this.signer.publicKey():void 0}}))}getEstimationPropertiesFromOperationContent(e,t,r){const n=g2({contents:[e]});let i=0,o=0;return n.forEach((e=>{o+="originated_contracts"in e&&"undefined"!==typeof e.originated_contracts?e.originated_contracts.length*this.ORIGINATION_STORAGE:0,o+="allocated_destination_contract"in e?this.ALLOCATION_STORAGE:0,i+=Number(e.consumed_milligas)||0,o+="paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0,o+="storage_size"in e&&"global_address"in e&&Number(e.storage_size)||0,o+="genesis_commitment_hash"in e?Number(e.size):0})),u2(e)?{milligasLimit:i||0,storageLimit:Number(o||0),opSize:t,minimalFeePerStorageByteMutez:r.toNumber()}:{milligasLimit:0,storageLimit:0,opSize:t,minimalFeePerStorageByteMutez:r.toNumber(),baseFeeMutez:0}}calculateEstimates(e,t){return g1(this,void 0,void 0,(function*(){const{opbytes:r,opOb:{branch:n,contents:i}}=yield this.forge(e),o={operation:{branch:n,contents:i},chain_id:yield this.context.readProvider.getChainId()},{opResponse:a}=yield this.simulate(o),{cost_per_byte:s}=t,c=[...v2(a,"backtracked"),...v2(a)];if(c.length)throw new p2(c,"Error occurred during estimation",a.contents);let l=1;return Array.isArray(e.opOb.contents)&&e.opOb.contents.length>1&&(l="reveal"===a.contents[0].kind?e.opOb.contents.length-1:e.opOb.contents.length),a.contents.map((e=>this.getEstimationPropertiesFromOperationContent(e,"reveal"===e.kind?this.OP_SIZE_REVEAL/2:r.length/2/l,s)))}))}originate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.prepare.originate(e),r=yield this.context.readProvider.getProtocolConstants("head"),n=yield this.calculateEstimates(t,r);return"reveal"===t.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}transfer(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=gc(o.to);if(e!==ac.VALID)throw new ms(o.to,Sc(e));const a=gc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==ac.VALID)throw new ms(o.source,Sc(a));if(o.amount<0)throw new vs(o.amount.toString());const s=yield this.prepare.transaction(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}transferTicket(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=gc(o.destination);if(e!==ac.VALID)throw new ms(o.destination,Sc(e));const a=gc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==ac.VALID)throw new ms(o.source,Sc(a));const s=yield this.context.readProvider.getProtocolConstants("head"),c=yield this.prepare.transferTicket(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),l=yield this.calculateEstimates(c,s);return"reveal"===c.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}setDelegate(e){var t,{fee:r,gasLimit:n,storageLimit:i}=e,o=m1(e,["fee","gasLimit","storageLimit"]);return g1(this,void 0,void 0,(function*(){const e=gc(o.source);if(o.source&&e!==ac.VALID)throw new ms(o.source,Sc(e));const a=gc(null!==(t=o.delegate)&&void 0!==t?t:"");if(o.delegate&&a!==ac.VALID)throw new ms(o.delegate,Sc(a));const s=yield this.prepare.delegation(Object.assign({fee:r,storageLimit:i,gasLimit:n},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}batch(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.batch(e),n=yield this.calculateEstimates(r,t);return s5.createArrayEstimateInstancesFromProperties(n)}))}registerDelegate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=(yield this.getKeys()).publicKeyHash,a=yield this.context.readProvider.getProtocolConstants("head"),s=t||e,c=yield this.prepare.registerDelegate(Object.assign({fee:r,storageLimit:n,gasLimit:i},o),s),l=yield this.calculateEstimates(c,a);return"reveal"===c.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}reveal(e){return g1(this,void 0,void 0,(function*(){const{publicKeyHash:t,publicKey:r}=yield this.getKeys();if(!r)throw new c5;if(yield this.isAccountRevealRequired(t)){const t=yield this.context.readProvider.getProtocolConstants("head"),r=e?yield this.prepare.reveal(e):yield this.prepare.reveal({}),n=yield this.calculateEstimates(r,t);return s5.createEstimateInstanceFromProperties(n)}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=yield this.prepare.registerGlobalConstant(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.calculateEstimates(e,o);return"reveal"===e.opOb.contents[0].kind&&a.shift(),s5.createEstimateInstanceFromProperties(a)}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){if(i.amount<0)throw new vs(i.amount.toString());const e=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.prepare.increasePaidStorage(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),a=yield this.calculateEstimates(o,e);return"reveal"===o.opOb.contents[0].kind&&a.shift(),s5.createEstimateInstanceFromProperties(a)}))}updateConsensusKey(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.updateConsensusKey(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}smartRollupAddMessages(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupAddMessages(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}smartRollupOriginate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupOriginate(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}contractCall(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.contractCall(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}}class u5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"delegation"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get delegate(){return this.params.delegate}get isRegisterOperation(){return this.delegate===this.source}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class d5 extends S2{constructor(e,t,r,n,i,o){super(e,r,n,i),this.params=t,this.contractProvider=o;const a=this.operationResults&&this.operationResults.originated_contracts;Array.isArray(a)&&(this.contractAddress=a[0])}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"origination"===e.kind)),t=e&&f2(e)&&e.metadata.operation_result;return t||void 0}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get storageDiff(){const e=this.operationResults&&this.operationResults.paid_storage_size_diff;return e||void 0}get storageSize(){const e=this.operationResults&&this.operationResults.storage_size;return e||void 0}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}contract(e,t){return g1(this,void 0,void 0,(function*(){if(!this.contractAddress)throw new y2("No contract was originated in this operation");return yield this.confirmation(e,t),this.contractProvider.at(this.contractAddress)}))}}class h5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r,this.globalConstantHash=this.operationResults&&this.operationResults.global_address}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"register_global_constant"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get registeredExpression(){return this.params.value}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class f5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get publicKey(){return this.params.public_key}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),new Zs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(g2({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(g2({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(g2({contents:this.operationResults}),"storage_size"))}get errors(){return v2({contents:this.operationResults})}}class p5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"transaction"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get amount(){return new Xs(this.params.amount)}get destination(){return this.params.destination}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Xs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Xs.ROUND_UP}),new Xs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(g2({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(g2({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(g2({contents:this.operationResults}),"storage_size"))}get errors(){return v2({contents:this.operationResults})}}class m5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"ballot"===e.kind));return e||void 0}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}get proposal(){return this.params.proposal}get ballot(){return this.params.ballot}}class g5 extends S2{constructor(e,t,r,n,i){super(e,r,n,i),this.params=t}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"drain_delegate"===e.kind)),t=e&&e.metadata&&e.metadata.balance_updates;return t||void 0}get consensusKey(){return this.params.consensus_key}get delegate(){return this.params.delegate}get destination(){return this.params.destination}}class v5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===CW.TRANSFER_TICKET)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class y5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"increase_paid_storage"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get amount(){return this.params.amount}get destination(){return this.params.destination}}class b5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"proposals"===e.kind));return e||void 0}get proposals(){return this.params.proposals}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}}class w5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"update_consensus_key"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get pk(){return this.params.pk}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class x5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"smart_rollup_add_messages"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get message(){return this.params.message}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class _5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===CW.SMART_ROLLUP_ORIGINATE)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get pvmKind(){return this.params.pvm_kind}get kernel(){return this.params.kernel}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class S5 extends E2{constructor(e,t){super(e),this.estimator=t,this.contractProviderTypeSymbol=Symbol.for("taquito-contract-provider-type-symbol"),this.prepare=new X2(this.context)}getStorage(e,t){return g1(this,void 0,void 0,(function*(){const r=yc(e);if(r!==ac.VALID)throw new ks(e,Sc(r));const n=yield this.context.readProvider.getScript(e,"head");let i;return t||(t=n),i=SX.isSchema(t)?t:SX.fromRPCResponse({script:t}),i.Execute(n.storage,G2(this))}))}getBigMapKey(e,t,r){return g1(this,void 0,void 0,(function*(){const n=yc(e);if(n!==ac.VALID)throw new ks(e,Sc(n));let i;r||(r=(yield this.rpc.getContract(e)).script),i=SX.isSchema(r)?r:SX.fromRPCResponse({script:r});const o=i.EncodeBigMapKey(t),a=yield this.rpc.getBigMapKey(e,o);return i.ExecuteOnBigMapValue(a)}))}getBigMapKeyByID(e,t,r,n){return g1(this,void 0,void 0,(function*(){const{key:i,type:o}=r.EncodeBigMapKey(t),{packed:a}=yield this.context.packer.packData({data:i,type:o}),s=function(e){return Oc(as().blake2b(Rc(e),void 0,32),nc.expr)}(a),c=n?yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},n):yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},"head");return r.ExecuteOnBigMapValue(c,G2(this))}))}getBigMapKeysByID(e,t,r,n,i=5){return g1(this,void 0,void 0,(function*(){const o=yield this.getBlockForRequest(t,n),a=new $Y;let s=0,c=[];for(;sthis.getBigMapValueOrUndefined(t,e,r,o)));c=[...c,...yield Promise.all(n)],s+=i}for(let e=0;ee.kind===CW.ORIGINATION)),i=yield this.forge(r),{hash:o,context:a,forgedBytes:s,opResponse:c}=yield this.signAndInject(i);return new d5(o,n,s,c,a,this)}))}setDelegate(e){var t;return g1(this,void 0,void 0,(function*(){const r=gc(e.source);if(e.source&&r!==ac.VALID)throw new ms(e.source,Sc(r));const n=gc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==ac.VALID)throw new ms(e.delegate,Sc(n));if(/kt1/i.test(e.source))throw new H1(e.source);const i=yield this.signer.publicKeyHash(),o=e.source||i,a=yield this.estimate(e,this.estimator.setDelegate.bind(this.estimator)),s=yield this.prepare.delegation(Object.assign(Object.assign({},e),a)),c=s.opOb.contents.find((e=>e.kind===CW.DELEGATION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new u5(u,c,o,h,f,d)}))}registerDelegate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.estimate(e,this.estimator.registerDelegate.bind(this.estimator)),r=yield this.signer.publicKeyHash(),n=yield this.prepare.registerDelegate(Object.assign(Object.assign({},e),t)),i=n.opOb.contents.find((e=>e.kind===CW.DELEGATION)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new u5(a,i,r,c,l,s)}))}transfer(e){var t;return g1(this,void 0,void 0,(function*(){const r=gc(e.to);if(r!==ac.VALID)throw new ms(e.to,Sc(r));const n=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&n!==ac.VALID)throw new ms(e.source,Sc(n));if(e.amount<0)throw new vs(e.amount.toString());const i=yield this.signer.publicKeyHash(),o=yield this.estimate(e,this.estimator.transfer.bind(this.estimator)),a=e.source||i,s=yield this.prepare.transaction(Object.assign(Object.assign({},e),o)),c=s.opOb.contents.find((e=>e.kind===CW.TRANSACTION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new p5(u,c,a,h,f,d)}))}transferTicket(e){var t,r;return g1(this,void 0,void 0,(function*(){const n=gc(e.destination);if(n!==ac.VALID)throw new ms(e.destination,Sc(n));const i=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==ac.VALID)throw new ms(e.source,Sc(i));const o=yield this.signer.publicKeyHash(),a=null!==(r=e.source)&&void 0!==r?r:o,s=yield this.estimate(e,this.estimator.transferTicket.bind(this.estimator)),c=yield this.prepare.transferTicket(Object.assign(Object.assign({},e),s)),l=c.opOb.contents.find((e=>e.kind===CW.TRANSFER_TICKET)),u=yield this.forge(c),{hash:d,context:h,forgedBytes:f,opResponse:p}=yield this.signAndInject(u);return new v5(d,l,a,f,p,h)}))}reveal(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimator.reveal(e);if(r){const n=yield this.estimate(e,(()=>g1(this,void 0,void 0,(function*(){return r})))),i=yield this.prepare.reveal(Object.assign(Object.assign({},e),n)),o=i.opOb.contents.find((e=>e.kind===CW.REVEAL)),a=yield this.forge(i),{hash:s,context:c,forgedBytes:l,opResponse:u}=yield this.signAndInject(a);return new f5(s,o,t,l,u,c)}throw new Y1(`The publicKeyHash '${t}' has already been revealed.`)}))}registerGlobalConstant(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.registerGlobalConstant.bind(this.estimator)),n=yield this.prepare.registerGlobalConstant(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.REGISTER_GLOBAL_CONSTANT)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new h5(a,i,t,c,l,s)}))}increasePaidStorage(e){return g1(this,void 0,void 0,(function*(){if(e.amount<0)throw new vs(e.amount.toString());const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.increasePaidStorage.bind(this.estimator)),n=yield this.prepare.increasePaidStorage(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.INCREASE_PAID_STORAGE)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new y5(a,i,t,c,l,s)}))}drainDelegate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.prepare.drainDelegate(e),r=t.opOb.contents.find((e=>e.kind===CW.DRAIN_DELEGATE)),n=yield this.forge(t),{hash:i,context:o,forgedBytes:a,opResponse:s}=yield this.signAndInject(n);return new g5(i,r,a,s,o)}))}ballot(e){var t,r;return g1(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==ac.VALID)throw new ms(e.source,Sc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.ballot(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===CW.BALLOT)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new m5(l,s,n,d,h,u)}))}proposals(e){var t,r;return g1(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==ac.VALID)throw new ms(e.source,Sc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.proposals(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===CW.PROPOSALS)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new b5(l,s,n,d,h,u)}))}updateConsensusKey(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.updateConsensusKey.bind(this.estimator)),n=yield this.prepare.updateConsensusKey(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.UPDATE_CONSENSUS_KEY)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new w5(a,i,t,c,l,s)}))}smartRollupAddMessages(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupAddMessages.bind(this.estimator)),n=yield this.prepare.smartRollupAddMessages(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.SMART_ROLLUP_ADD_MESSAGES)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new x5(a,i,t,c,l,s)}))}smartRollupOriginate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupOriginate.bind(this.estimator)),n=yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.SMART_ROLLUP_ORIGINATE)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new _5(a,i,t,c,l,s)}))}failingNoop(e){return g1(this,void 0,void 0,(function*(){const t={kind:CW.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]}),{prefixSig:i}=yield this.signer.sign(n,new Uint8Array([3]));return{signature:i,bytes:n,signedContent:{branch:r,contents:[{kind:CW.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}at(e,t=(e=>e)){return g1(this,void 0,void 0,(function*(){const r=yc(e);if(r!==ac.VALID)throw new ks(e,Sc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new U2(e,o,this,this,a,n,i);return t(s,this.context)}))}batch(e){const t=new Q2(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class k5{constructor(e){this.context=e}getNextProto(){return g1(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}parseScript(e){return g1(this,void 0,void 0,(function*(){return new uJ({protocol:yield this.getNextProto()}).parseScript(e)}))}parseMichelineExpression(e){return g1(this,void 0,void 0,(function*(){return new uJ({protocol:yield this.getNextProto()}).parseMichelineExpression(e)}))}parseJSON(e){return g1(this,void 0,void 0,(function*(){return new uJ({protocol:yield this.getNextProto()}).parseJSON(e)}))}prepareCodeOrigination(e){return g1(this,void 0,void 0,(function*(){const t=e;if(t.code=yield this.formatCodeParam(e.code),e.init)t.init=yield this.formatInitParam(e.init);else if(e.storage){const r=t.code.find((e=>"prim"in e&&"storage"===e.prim));if(!(null===r||void 0===r?void 0:r.args))throw new V1("The storage section is missing from the script",e.code);const n=new SX(r.args[0]),i=yield this.findGlobalConstantsHashAndValue(n);if(0!==Object.keys(i).length){const n=new uJ({expandGlobalConstant:i}).parseJSON(r.args[0]),o=new SX(n);t.init=o.Encode(e.storage)}else t.init=n.Encode(e.storage);delete t.storage}return t}))}formatCodeParam(e){return g1(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseScript(e);if(null===r)throw new V1("Unable to parse",e);t=r}else{const r=yield this.parseJSON(e),n=["parameter","storage","code"];t=r.sort(((e,t)=>n.indexOf(e.prim)-n.indexOf(t.prim)))}return t}))}formatInitParam(e){return g1(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseMichelineExpression(e);if(null===r)throw new q1("Invalid init parameter",e);t=r}else t=yield this.parseJSON(e);return t}))}findGlobalConstantsHashAndValue(e){return g1(this,void 0,void 0,(function*(){const t=e.findToken("constant"),r={};if(0!==t.length)for(const e of t){const t=e.tokenVal.args;if(t){const e=t[0];if(e.string){const t=e.string,n=yield this.context.globalConstantsProvider.getGlobalConstantByHash(t);Object.assign(r,{[t]:n})}}}return r}))}}class E5{constructor(e){this.context=e}packData(e){return g1(this,void 0,void 0,(function*(){return this.context.rpc.packData(e)}))}}class A5 extends hs{constructor(){super(),this.name="UnconfiguredGlobalConstantsProviderError",this.message="No global constants provider has been configured. Please configure one by calling setGlobalConstantsProvider({globalConstantsProvider}) on your TezosToolkit instance."}}class P5{getGlobalConstantByHash(e){return g1(this,void 0,void 0,(function*(){throw new A5}))}}class O5{constructor(e){this.rpc=e}getBalance(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getBalance(e,{block:String(t)})}))}getDelegate(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getDelegate(e,{block:String(t)})}))}getNextProtocol(e){return g1(this,void 0,void 0,(function*(){return(yield this.rpc.getProtocols({block:String(e)})).next_protocol}))}getProtocolConstants(e){return g1(this,void 0,void 0,(function*(){const{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,smart_rollup_origination_size:s}=yield this.rpc.getConstants({block:String(e)});return{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,smart_rollup_origination_size:s}}))}getScript(e,t){return g1(this,void 0,void 0,(function*(){const{script:r}=yield this.rpc.getContract(e,{block:String(t)});return r}))}getStorage(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getStorage(e,{block:String(t)})}))}getBlockHash(e){return g1(this,void 0,void 0,(function*(){const{hash:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBlockLevel(e){return g1(this,void 0,void 0,(function*(){const{level:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getCounter(e,t){return g1(this,void 0,void 0,(function*(){const{counter:r}=yield this.rpc.getContract(e,{block:String(t)});return r||"0"}))}getBlockTimestamp(e){return g1(this,void 0,void 0,(function*(){const{timestamp:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBigMapValue(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getBigMapExpr(e.id,e.expr,{block:String(t)})}))}getSaplingDiffById(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffById(e.id,{block:String(t)})}))}getSaplingDiffByContract(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffByContract(e,{block:String(t)})}))}getEntrypoints(e){return g1(this,void 0,void 0,(function*(){return this.rpc.getEntrypoints(e)}))}getChainId(){return g1(this,void 0,void 0,(function*(){return this.rpc.getChainId()}))}isAccountRevealed(e,t){return g1(this,void 0,void 0,(function*(){const r=yield this.rpc.getManagerKey(e,{block:String(t)});return r&&"object"===typeof r?!!r.key:!!r}))}getBlock(e){return g1(this,void 0,void 0,(function*(){return this.rpc.getBlock({block:String(e)})}))}getLiveBlocks(e){return this.rpc.getLiveBlocks({block:String(e)})}}class T5 extends us{constructor(e){super(),this.type=e,this.name="UnsupportedEventError",this.message=`Unsupported event type "${e}" expecting one of the "data", "error", or "close".`}}class C5 extends us{constructor(e){super(),this.invalidExpression=e,this.name="InvalidFilterExpressionError",this.message="Invalid filter expression expecting the object to contain either and/or property"}}const j5=(e,t)=>"opHash"in t?((e,t)=>e.hash===t.opHash)(e,t):"source"in t?((e,t)=>{switch(e.kind){case"attestation":case"endorsement":return"metadata"in e&&e.metadata.delegate===t.source;case"activate_account":return"metadata"in e&&e.pkh===t.source;default:return"source"in e&&e.source===t.source}})(e,t):"kind"in t?((e,t)=>"kind"in e&&e.kind===t.kind)(e,t):"destination"in t&&((e,t)=>{switch(e.kind){case"delegation":return e.delegate===t.destination;case"origination":if("metadata"in e&&"operation_result"in e.metadata&&"originated_contracts"in e.metadata.operation_result&&Array.isArray(e.metadata.operation_result.originated_contracts))return e.metadata.operation_result.originated_contracts.some((e=>e===t.destination));break;case"transaction":return e.destination===t.destination;default:return!1}})(e,t),R5=(e,t)=>{const r=[];return Array.isArray(t)?r.push(...t):r.push(t),r.every((t=>"and"in t||"or"in t?((e,t)=>{if(Array.isArray(t.and))return t.and.every((t=>R5(e,t)));if(Array.isArray(t.or))return t.or.some((t=>R5(e,t)));throw new C5(t)})(e,t):j5(e,t)))};class I5{constructor(e,t=!1,r=OY()){var n;this.shouldRetry=t,this.operatorFunction=r,this.errorListeners=[],this.messageListeners=[],this.closeListeners=[],this.completed$=new cG,e.pipe((n=this.completed$,IG((function(e,t){SG(n).subscribe(MG(t,(function(){return t.complete()}),HW)),!t.closed&&e.subscribe(t)}))),vY((e=>{this.call(this.messageListeners,e)}),(e=>{this.call(this.errorListeners,e)}),(()=>{this.call(this.closeListeners)})),this.shouldRetry?r:vY(),EY((()=>tY))).subscribe()}call(e,t){for(const n of e)try{n(t)}catch(r){console.error(r)}}remove(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}on(e,t){switch(e){case"data":this.messageListeners.push(t);break;case"error":this.errorListeners.push(t);break;case"close":this.closeListeners.push(t);break;default:throw new T5(e)}}off(e,t){switch(e){case"data":this.remove(this.messageListeners,t);break;case"error":this.remove(this.errorListeners,t);break;case"close":this.remove(this.closeListeners,t);break;default:throw new T5(e)}}close(){this.completed$.next()}}const M5={shouldObservableSubscriptionRetry:!1,observableSubscriptionRetryFunction:OY()},L5=e=>mY((t=>new oG((r=>{for(const s of t.operations)for(const c of s)for(const s of c.contents){const l=s.metadata.internal_operation_results;if(l)for(const s of l)n=s,i=null===e||void 0===e?void 0:e.address,o=null===e||void 0===e?void 0:e.tag,a=null===e||void 0===e?void 0:e.excludeFailedOperations,"event"!==n.kind||o&&n.tag!==o||i&&n.source!==i||a&&"applied"!==n.result.status||r.next(Object.assign({opHash:c.hash,blockHash:t.hash,level:t.header.level},s))}var n,i,o,a;r.complete()}))));class N5{constructor(e,t={}){this.context=e,this._config$=new hG(Object.assign(Object.assign({},M5),t)),this.timer$=this._config$.pipe(TY("pollingIntervalMilliseconds"),dY((e=>e?uY(0,e):FG(this.getConfirmationPollingInterval()).pipe(dY((e=>uY(0,e))))))),this.newBlock$=this.timer$.pipe(dY((()=>(e=>FG(e.rpc.getBlock()).pipe(kY()))(this.context))),function(e,t){return AY((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}("hash"),MY(),CY())}get config(){return this._config$.getValue()}getConfirmationPollingInterval(){return g1(this,void 0,void 0,(function*(){if(!this.config.pollingIntervalMilliseconds){const t=5e3,r=1e3;try{const e=yield this.context.readProvider.getProtocolConstants("head"),n=(e.minimal_block_delay?e.minimal_block_delay.multipliedBy(1e3):e.time_between_blocks?e.time_between_blocks[0].multipliedBy(1e3):new Xs(t)).dividedBy(3);this.config.pollingIntervalMilliseconds=0===n.toNumber()?r:n.toNumber()}catch(e){return t}}return this.config.pollingIntervalMilliseconds}))}subscribeBlock(e){return new I5(this.newBlock$,this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribe(e){return new I5(this.newBlock$.pipe(TY("hash")),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeOperation(e){return new I5(this.newBlock$.pipe((e=>mY((t=>new oG((r=>{for(const n of t.operations)for(const t of n)for(const n of t.contents)R5(Object.assign({hash:t.hash},n),e)&&r.next(Object.assign({hash:t.hash},n));r.complete()})))))(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeEvent(e){return new I5(this.newBlock$.pipe(L5(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}}class D5{constructor(e){this.context=e}getNextProto(){return g1(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}forge({branch:e,contents:t}){return g1(this,void 0,void 0,(function*(){return new p1(yield this.getNextProto()).forge({branch:e,contents:t})}))}}const z5={defaultConfirmationCount:1,confirmationPollingTimeoutSecond:180};class B5{constructor(e,t=new x1,r,n=new hG(Object.assign({},z5)),i,o,a,s,c,l,u,d){this._rpc=e,this._signer=t,this._proto=r,this._config=n,this.providerDecorator=[],this.tz=new o5(this),this.estimate=new l5(this),this.contract=new S5(this,this.estimate),this.prepare=new X2(this),this.batch=new e5(this,this.estimate),this.wallet=new P2(this),this.withExtensions=()=>{let e=this.clone();return this.providerDecorator.forEach((t=>{e=t(e)})),e},"string"===typeof this._rpc?this._rpcClient=new jW(this._rpc):this._rpcClient=this._rpc,this._forger=i||new D5(this),this._injector=o||new b1(this),this.operationFactory=new i5(this),this._walletProvider=s||new M2(this),this._parser=c||new k5(this),this._packer=a||new E5(this),this._globalConstantsProvider=l||new P5,this._readProvider=u||new O5(this._rpcClient),this._stream=d||new N5(this)}get config(){return this._config.getValue()}set config(e){this._config.next(Object.assign({},e))}setPartialConfig(e){this._config.next(Object.assign(Object.assign({},this._config.getValue()),e))}get rpc(){return this._rpcClient}set rpc(e){this._rpcClient=e}get injector(){return this._injector}set injector(e){this._injector=e}get forger(){return this._forger}set forger(e){this._forger=e}get signer(){return this._signer}set signer(e){this._signer=e}get walletProvider(){return this._walletProvider}set walletProvider(e){this._walletProvider=e}set proto(e){this._proto=e}get proto(){return this._proto}get parser(){return this._parser}set parser(e){this._parser=e}get packer(){return this._packer}set packer(e){this._packer=e}get globalConstantsProvider(){return this._globalConstantsProvider}set globalConstantsProvider(e){this._globalConstantsProvider=e}get readProvider(){return this._readProvider}set readProvider(e){this._readProvider=e}get stream(){return this._stream}set stream(e){this._stream=e}isAnyProtocolActive(e=[]){return g1(this,void 0,void 0,(function*(){if(this._proto)return e.includes(this._proto);{const t=yield this.readProvider.getNextProtocol("head");return e.includes(t)}}))}isAnySignerConfigured(){return!(this.signer instanceof x1)}clone(){return new B5(this.rpc,this.signer,this.proto,this._config,this.forger,this._injector,this.packer,this._walletProvider,this._parser,this._globalConstantsProvider,this._readProvider,this._stream)}registerProviderDecorator(e){this.providerDecorator.push(e)}}const F5={commitHash:"fc66aa741c240cb367082d1294ef915654c341a6",version:"19.0.1"};class U5{constructor(e){this._rpc=e,this._options={},this.format=Pc,"string"===typeof this._rpc?this._rpcClient=new jW(this._rpc):this._rpcClient=this._rpc,this._context=new B5(e),this._wallet=new P2(this._context),this.setProvider({rpc:this._rpcClient}),this.batch=this._context.batch.batch.bind(this._context.batch)}setProvider({rpc:e,stream:t,signer:r,protocol:n,config:i,forger:o,wallet:a,packer:s,globalConstantsProvider:c,readProvider:l,parserProvider:u,injectorProvider:d}){this.setRpcProvider(e),this.setStreamProvider(t),this.setSignerProvider(r),this.setForgerProvider(o),this.setWalletProvider(a),this.setPackerProvider(s),this.setGlobalConstantsProvider(c),this.setReadProvider(l),this.setParserProvider(u),this.setInjectorProvider(d),this._context.proto=n,i&&this._context.setPartialConfig(i)}setSignerProvider(e){this._options.signer||"undefined"!==typeof e?"undefined"!==typeof e&&(this._context.signer=e,this._options.signer=e):(this._context.signer=new x1,this._options.signer=e)}setRpcProvider(e){"string"===typeof e?this._rpcClient=new jW(e):void 0===e||(this._rpcClient=e),this._options.rpc=this._rpcClient,this._context.rpc=this._rpcClient}setForgerProvider(e){if("undefined"!==typeof e)this._options.forger=e,this._context.forger=e;else if(void 0===this._options.forger){const e=this.getFactory(D5)();this._options.forger=e,this._context.forger=e}}setStreamProvider(e){if("string"===typeof e){const t=new N5(new B5(new jW(e)));this._options.stream=t,this._context.stream=t}else if("undefined"!==typeof e)this._options.stream=e,this._context.stream=e;else if(void 0===this._options.stream){const e=this.getFactory(N5)();this._options.stream=e,this._context.stream=e}}setWalletProvider(e){if(this._options.wallet||"undefined"!==typeof e)"undefined"!==typeof e&&(this._options.wallet=e,this._context.walletProvider=e);else{const e=this.getFactory(M2)();this._options.wallet=e,this._context.walletProvider=e}}setPackerProvider(e){if(this._options.packer||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.packer=e,this._options.packer=e);else{const e=this.getFactory(E5)();this._context.packer=e,this._options.packer=e}}setGlobalConstantsProvider(e){if(this._options.globalConstantsProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e);else{const e=new P5;this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e}}setReadProvider(e){const t=e||new O5(this._context.rpc);this._options.readProvider=t,this._context.readProvider=t}setParserProvider(e){if(this._options.parserProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.parser=e,this._options.parserProvider=e);else{const e=new k5(this._context);this._context.parser=e,this._options.parserProvider=e}}setInjectorProvider(e){if(this._options.injectorProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.injector=e,this._options.injectorProvider=e);else{const e=new b1(this._context);this._context.injector=e,this._options.injectorProvider=e}}get tz(){return this._context.tz}get contract(){return this._context.contract}get prepare(){return this._context.prepare}get wallet(){return this._wallet}get operation(){return this._context.operationFactory}get estimate(){return this._context.estimate}get stream(){return this._context.stream}get rpc(){return this._context.rpc}get signer(){return this._context.signer}get globalConstants(){return this._context.globalConstantsProvider}addExtension(e){Array.isArray(e)?e.forEach((e=>e.configureContext(this._context))):e.configureContext(this._context)}getFactory(e){return(...t)=>new e(this._context,...t)}getVersionInfo(){return F5}}class $5{constructor(e,t){this.pk=void 0,this.pkh=void 0,this.pk=e,this.pkh=t}async publicKey(){return this.pk}async publicKeyHash(){return this.pkh}async sign(){throw new Error("`sign` method not available")}async secretKey(){throw new Error("empty secret key")}}const H5={args:[{args:[{annots:["%from_"],prim:"address"},{annots:["%txs"],args:[{args:[{annots:["%to_"],prim:"address"},{args:[{annots:["%token_id"],prim:"nat"},{annots:["%amount"],prim:"nat"}],prim:"pair"}],prim:"pair"}],prim:"list"}],prim:"pair"}],prim:"list"},V5={args:[{annots:[":from"],prim:"address"},{args:[{annots:[":to"],prim:"address"},{annots:[":value"],prim:"nat"}],prim:"pair"}],prim:"pair"},q5=(e,t,r)=>[...K5,{prim:"PUSH",args:[{prim:"address"},{string:e.contract.pkh+"%"+r.entrypoint}]},{prim:"CONTRACT",args:[t]},[{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]}],{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"PUSH",args:[t,r.value]},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],K5=[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]}],W5=e=>(0,ts.isEqual)(e.slice(0,2),K5)?e.slice(2):e,G5=e=>{const t=e.map((e=>(e=>{switch(e.type){case"tez":switch(e.recipient.type){case"implicit":return V2(e.recipient.pkh,Number(e.amount));case"contract":return q2(e.recipient.pkh,Number(e.amount))}case"fa1.2":return q5(e,V5,n3(e));case"fa2":return q5(e,H5,i3(e));case"delegation":return $2(e.recipient.pkh);case"undelegation":return H2();case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}})(e))).flatMap(W5);return[...K5,...t]},Y5=(e,t,r)=>X5(e,t,{int:r}),Z5=(e,t)=>{const r=G5(t);return X5(e,"propose",r)},X5=(e,t,r,n="0")=>({type:"contract_call",contract:e,entrypoint:t,args:r,amount:n}),J5=async(e,t)=>{try{const r=`${t.tzktApiUrl}/v1/accounts/${e}`,{data:{type:n}}=await xj.get(r);return"empty"!==n}catch(r){throw new Error(`Error fetching account from tzkt ${r.message}`)}},Q5=async e=>{const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,8);return n},e3=async e=>{switch(e.type){case"social":case"mnemonic":case"secret_key":return new Mq(e.secretKey);case"ledger":{const t=await YK.list();for(let e=0;e{switch(e){case"ed25519":return oW.ED25519;case"secp256k1":return oW.SECP256K1;case"p256":return oW.P256;case"bip25519":throw new Error("bip25519 is not supported in Tezos")}})(e.account.curve))}case"fake":return new $5(e.signer.pk,e.signer.address.pkh)}},t3=async e=>{const t=new U5(e.network.rpcUrl),r=await e3(e);return t.setSignerProvider(r),t},r3=async e=>{const t=new Mq(e);return{pk:await t.publicKey(),pkh:await t.publicKeyHash()}},n3=({sender:e,recipient:t,amount:r})=>({entrypoint:"transfer",value:{prim:"Pair",args:[{string:e.pkh},{prim:"Pair",args:[{string:t.pkh},{int:r}]}]}}),i3=({sender:e,recipient:t,tokenId:r,amount:n})=>({entrypoint:"transfer",value:[{prim:"Pair",args:[{string:e.pkh},[{prim:"Pair",args:[{string:t.pkh},{prim:"Pair",args:[{int:r},{int:n}]}]}]]}]}),o3=e=>{switch(e.type){case"tez":return{kind:CW.TRANSACTION,to:e.recipient.pkh,amount:parseInt(e.amount),mutez:!0};case"contract_call":return{kind:CW.TRANSACTION,to:e.contract.pkh,amount:parseInt(e.amount),mutez:!0,parameter:{entrypoint:e.entrypoint,value:e.args}};case"delegation":return{kind:CW.DELEGATION,source:e.sender.pkh,delegate:e.recipient.pkh};case"undelegation":return{kind:CW.DELEGATION,source:e.sender.pkh,delegate:void 0};case"fa1.2":return{kind:CW.TRANSACTION,amount:0,to:e.contract.pkh,parameter:n3(e)};case"fa2":return{kind:CW.TRANSACTION,amount:0,to:e.contract.pkh,parameter:i3(e)};case"contract_origination":return{kind:CW.ORIGINATION,...e}}},a3=({type:e,operations:t,sender:r})=>("implicit"===e?t:[Z5(r.address,t)]).map(o3),s3=a3,c3=async(e,t)=>{const r=await t3({type:"fake",signer:e.signer,network:t});try{const t=await r.estimate.batch(a3(e));return n=t.map((e=>Math.max(e.suggestedFeeMutez,e.totalCost).toString())),n.reduce(((e,t)=>e.plus(t)),new Xs(0))}catch(Lde){if(!await J5(e.signer.address.pkh,t))throw new Error(`Signer address is not revealed on the ${t.name}.`);throw Lde instanceof Error&&(Lde.message=l3(Lde)),Lde}var n},l3=e=>e.message.includes("subtraction_underflow")?"Insufficient balance, please make sure you have enough funds.":e.message.includes("contract.non_existing_contract")?"Contract does not exist, please check if the correct network is selected.":e.message;class u3{constructor(e){this.queue=void 0,this.maxConcurrent=void 0,this.count=void 0,this.queue=[],this.maxConcurrent=e,this.count=0}get canAcquire(){return this.countthis.queue.push(e)))}release(){const e=this.queue.shift();e?setTimeout(e,0):this.count--}}const d3="_default";const h3=[encodeURIComponent,encodeURIComponent];encodeURIComponent,encodeURI;function f3(e,t=","){return(r,...n)=>r.reduce(((r,i,o)=>`${r}${i}${((r,n)=>{const i=e[n%e.length];if("undefined"===typeof r)return"";if("object"===typeof r)return Array.isArray(r)?r.map(i).join(t):Object.entries(r).reduce(((e,t)=>[...e,...t]),[]).map(i).join(t);return i(String(r))})(n[o],o)}`),"")}function p3(e=","){return(t,r=h3)=>Object.entries(t).filter((([,e])=>void 0!==e)).map((([t,n])=>f3(r,e)`${t}=${n}`)).join("&")}function m3(...e){const t=e.filter(Boolean).join("&");return t&&`?${t}`}function g3(e,t=h3){const r=f3(t);return Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,n])=>Array.isArray(n)?n.map((t=>r`${e}=${t}`)).join("&"):"object"===typeof n?g3(n,t):r`${e}=${n}`)).join("&")}const v3=p3();p3("|"),p3("%20");const y3=[200,201,202,204];async function b3(e){const t=await e;if(y3.some((e=>e==t.status)))return t.data;throw new w3(t.status,t.data)}class w3 extends Error{status;data;constructor(e,t){super(`Error: ${e}`),this.status=e,this.data=t}}const x3={jsonParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{if(!(n instanceof Object))throw new Error(`Expected ${e} value to be object, received ${typeof n}`);const{jsonPath:i,jsonValue:o}=n;if(void 0===o||null===o)throw new Error(`Expected jsonValue in ${e} -> ${t}, found: ${o}`);const a=[e,i,t].filter((e=>void 0!==e)).join(".");r[a]=o})),r},queryParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{r[`${e}.${t}`]=n})),r},anyofParameter:(e,t)=>{if(!t)return{};const{fields:r}=t;if(!(t=>{if(!Array.isArray(t))throw new Error(`Expected ${e} fields to be Array. Received ${typeof t}.`);return t.forEach((t=>{if("string"!==typeof t)throw new Error(`Expected ${e} fields to be strings. Received ${typeof t}`)})),!0})(r))return{};const n={},i=r.join(".");if(t.value){n[`${e}.${i}`]=t.value}for(const o of["in","eq","null"])if(t[o]){return n[`${e}.${i}.${o}`]=Array.isArray(t[o])?t[o].join(","):t[o],n}return n}},_3=x3,S3=function(e){async function t(e,t){const n=await r(e,t);let i;try{i=await n.text()}catch(Lde){}return{status:n.status,headers:n.headers,contentType:n.headers.get("content-type"),data:i}}async function r(t,r={}){const{baseUrl:n,headers:i,fetch:o,...a}={...e,...r},s=function(...e){return e.filter(Boolean).map(((e,t)=>0===t?e:e.replace(/^\/+/,""))).map(((e,t,r)=>t===r.length-1?e:e.replace(/\/+$/,""))).join("/")}(n,t);var c;return await(o||fetch)(s,{...a,headers:(c={...e.headers,...i},c&&JSON.parse(JSON.stringify(c)))})}return{ok:b3,fetchText:t,fetchJson:async function(e,r={}){const{status:n,headers:i,contentType:o,data:a}=await t(e,{...r,headers:{Accept:"application/json",...r.headers}});return!!o&&o.includes("json")?{status:n,headers:i,data:a?JSON.parse(a):null}:{status:n,headers:i,data:a}},fetchBlob:async function(e,t={}){const n=await r(e,t);let i;try{i=await n.blob()}catch(Lde){}return{status:n.status,headers:n.headers,data:i}},json:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:JSON.stringify(e)},headers:{...t,"Content-Type":"application/json"}}),form:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:v3(e)},headers:{...t,"Content-Type":"application/x-www-form-urlencoded"}}),multipart({body:t,...r}){if(null==t)return r;const n=new(e.formDataConstructor||r.formDataConstructor||FormData);return Object.entries(t).forEach((([e,t])=>{n.append(e,t)})),{...r,body:n}}}}({baseUrl:"https://api.tzkt.io"});function k3({id:e,level:t,timestamp:r,tokenId:n,tokenContract:i,tokenTokenId:o,tokenStandard:a,tokenMetadata:s,tokenHasFilters:c,anyof:l,$from:u,to:d,amount:h,transactionId:f,originationId:p,migrationId:m,indexedAt:g,sort:v,offset:y,limit:b,select:w}={},x){return S3.ok(S3.fetchJson(`/v1/tokens/transfers${m3(g3({"token.HasFilters":c,limit:b,..._3.queryParameter("id",e),..._3.queryParameter("level",t),..._3.queryParameter("timestamp",r),..._3.queryParameter("token.id",n),..._3.queryParameter("token.contract",i),..._3.queryParameter("token.tokenId",o),..._3.queryParameter("token.standard",a),..._3.jsonParameter("token.metadata",s),..._3.anyofParameter("anyof",l),..._3.queryParameter("from",u),..._3.queryParameter("to",d),..._3.queryParameter("amount",h),..._3.queryParameter("transactionId",f),..._3.queryParameter("originationId",p),..._3.queryParameter("migrationId",m),..._3.queryParameter("indexedAt",g),..._3.queryParameter("sort",v),..._3.queryParameter("offset",y),..._3.queryParameter("select",w)}))}`,{...x}))}var E3=r(9196),A3=r.n(E3);const P3=new class{constructor(e=1){this.semaphoreInstances=void 0,this.maxConcurrent=void 0,this.semaphoreInstances={},this.maxConcurrent=e}hasSemaphoreInstance(e=d3){return Boolean(this.semaphoreInstances[e])}getSemaphoreInstance(e=d3){return this.hasSemaphoreInstance(e)||(this.semaphoreInstances[e]=new u3(this.maxConcurrent)),this.semaphoreInstances[e]}tidy(e=d3){this.hasSemaphoreInstance(e)&&0===this.getSemaphoreInstance(e).count&&delete this.semaphoreInstances[e]}canAcquire(e=d3){return this.getSemaphoreInstance(e).canAcquire}acquire(e=d3){return this.getSemaphoreInstance(e).acquire()}release(e=d3){this.getSemaphoreInstance(e).release(),this.tidy(e)}count(e=d3){return this.hasSemaphoreInstance(e)?this.getSemaphoreInstance(e).count:0}hasTasks(e=d3){return this.count(e)>0}async request(e,t=d3){try{return await this.acquire(t),await e()}finally{this.release(t)}}async requestIfAvailable(e,t=d3){return this.canAcquire(t)?this.request(e,t):null}}(10),O3=e=>P3.acquire().then((()=>A3()((t=>e().catch(t)),{retries:3,minTimeout:100}))).catch((e=>{if("status"in e&&"data"in e)throw new Error(`Fetching data from tzkt failed with: ${e.status}, ${e.data}`);throw e})).finally((()=>P3.release())),T3=async(e,t)=>O3((()=>function({id:e,address:t,$type:r,kind:n,delegate:i,balance:o,staked:a,lastActivity:s,select:c,sort:l,offset:u,limit:d}={},h){return S3.ok(S3.fetchJson(`/v1/accounts${m3(g3({limit:d,..._3.queryParameter("id",e),..._3.queryParameter("address",t),..._3.queryParameter("type",r),..._3.queryParameter("kind",n),..._3.queryParameter("delegate",i),..._3.queryParameter("balance",o),..._3.queryParameter("staked",a),..._3.queryParameter("lastActivity",s),..._3.queryParameter("select",c),..._3.queryParameter("sort",l),..._3.queryParameter("offset",u)}))}`,{...h}))}({address:{in:[e.join(",")]},select:{fields:["address,balance,delegationLevel"]}},{baseUrl:t.tzktApiUrl}))),C3=async(e,t)=>O3((()=>function({id:e,account:t,tokenId:r,tokenContract:n,tokenTokenId:i,tokenStandard:o,tokenMetadata:a,tokenHasFilters:s,balance:c,firstLevel:l,firstTime:u,lastLevel:d,lastTime:h,indexedAt:f,sort:p,offset:m,limit:g,select:v}={},y){return S3.ok(S3.fetchJson(`/v1/tokens/balances${m3(g3({"token.HasFilters":s,limit:g,..._3.queryParameter("id",e),..._3.queryParameter("account",t),..._3.queryParameter("token.id",r),..._3.queryParameter("token.contract",n),..._3.queryParameter("token.tokenId",i),..._3.queryParameter("token.standard",o),..._3.jsonParameter("token.metadata",a),..._3.queryParameter("balance",c),..._3.queryParameter("firstLevel",l),..._3.queryParameter("firstTime",u),..._3.queryParameter("lastLevel",d),..._3.queryParameter("lastTime",h),..._3.queryParameter("indexedAt",f),..._3.queryParameter("sort",p),..._3.queryParameter("offset",m),..._3.queryParameter("select",v)}))}`,{...y}))}({account:{in:[e.join(",")]},balance:{gt:"0"},limit:1e4},{baseUrl:t.tzktApiUrl}))),j3=async(e,t,r)=>O3((()=>function({anyof:e,initiator:t,sender:r,prevDelegate:n,newDelegate:i,level:o,timestamp:a,senderCodeHash:s,status:c,select:l,sort:u,offset:d,limit:h,quote:f}={},p){return S3.ok(S3.fetchJson(`/v1/operations/delegations${m3(g3({limit:h,quote:f,..._3.anyofParameter("anyof",e),..._3.queryParameter("initiator",t),..._3.queryParameter("sender",r),..._3.queryParameter("prevDelegate",n),..._3.queryParameter("newDelegate",i),..._3.queryParameter("level",o),..._3.queryParameter("timestamp",a),..._3.queryParameter("senderCodeHash",s),..._3.queryParameter("status",c),..._3.queryParameter("select",l),..._3.queryParameter("sort",u),..._3.queryParameter("offset",d)}))}`,{...p}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),R3=async(e,t,r)=>O3((()=>function({anyof:e,initiator:t,sender:r,target:n,amount:i,id:o,level:a,timestamp:s,senderCodeHash:c,targetCodeHash:l,codeHash:u,entrypoint:d,parameter:h,hasInternals:f,status:p,select:m,sort:g,offset:v,limit:y,micheline:b,quote:w}={},x){return S3.ok(S3.fetchJson(`/v1/operations/transactions${m3(g3({limit:y,micheline:b,quote:w,..._3.anyofParameter("anyof",e),..._3.queryParameter("initiator",t),..._3.queryParameter("sender",r),..._3.queryParameter("target",n),..._3.queryParameter("amount",i),..._3.queryParameter("id",o),..._3.queryParameter("level",a),..._3.queryParameter("timestamp",s),..._3.queryParameter("senderCodeHash",c),..._3.queryParameter("targetCodeHash",l),..._3.queryParameter("codeHash",u),..._3.queryParameter("entrypoint",d),..._3.jsonParameter("parameter",h),..._3.queryParameter("hasInternals",f),..._3.queryParameter("status",p),..._3.queryParameter("select",m),..._3.queryParameter("sort",g),..._3.queryParameter("offset",v)}))}`,{...x}))}({anyof:{fields:["sender","target","initiator"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),I3=async(e,t,r)=>O3((()=>function({anyof:e,initiator:t,sender:r,contractManager:n,contractDelegate:i,originatedContract:o,id:a,typeHash:s,codeHash:c,level:l,timestamp:u,senderCodeHash:d,anyCodeHash:h,status:f,select:p,sort:m,offset:g,limit:v,micheline:y,quote:b}={},w){return S3.ok(S3.fetchJson(`/v1/operations/originations${m3(g3({limit:v,micheline:y,quote:b,..._3.anyofParameter("anyof",e),..._3.queryParameter("initiator",t),..._3.queryParameter("sender",r),..._3.queryParameter("contractManager",n),..._3.queryParameter("contractDelegate",i),..._3.queryParameter("originatedContract",o),..._3.queryParameter("id",a),..._3.queryParameter("typeHash",s),..._3.queryParameter("codeHash",c),..._3.queryParameter("level",l),..._3.queryParameter("timestamp",u),..._3.queryParameter("senderCodeHash",d),..._3.queryParameter("anyCodeHash",h),..._3.queryParameter("status",f),..._3.queryParameter("select",p),..._3.queryParameter("sort",m),..._3.queryParameter("offset",g)}))}`,{...w}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),M3=async(e,t,r)=>O3((async()=>(await k3({anyof:{fields:["from","to"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl})).map((e=>({...e,type:"token_transfer"}))))),L3=async e=>O3((async()=>{return await(t={baseUrl:e.tzktApiUrl},S3.ok(S3.fetchJson("/v1/blocks/count",{...t})));var t})),N3=async e=>O3((()=>function({active:e,lastActivity:t,select:r,sort:n,offset:i,limit:o}={},a){return S3.ok(S3.fetchJson(`/v1/delegates${m3(g3({limit:o,..._3.queryParameter("active",e),..._3.queryParameter("lastActivity",t),..._3.queryParameter("select",r),..._3.queryParameter("sort",n),..._3.queryParameter("offset",i)}))}`,{...a}))}({sort:{desc:"stakingBalance"},active:{eq:!0},limit:1e4,select:{fields:["address,alias,stakingBalance"]}},{baseUrl:e.tzktApiUrl}))),D3=async(e,t)=>{const r=s3(e);return t.wallet.batch(r).send()},z3=async(e,t)=>{const r=Mq.fromMnemonic({mnemonic:e,derivationPath:t,curve:"ed25519"});return{pkh:await r.publicKeyHash(),pk:await r.publicKey()}},B3=()=>{const e=Yq();return async(t,r,n,i)=>{const o=await(async(e,t,r)=>{const n=[];let i=0,o=await z3(e,zq(t,i));do{n.push(o),i+=1,o=await z3(e,zq(t,i))}while(await J5(o.pkh,r));return n})(t,n,r),a=await Q5(t),s=e(i,o.length);return o.map((({pk:e,pkh:t},r)=>Bq(e,t,zq(n,r),n,a,s[r])))}},F3=()=>{const e=UR((e=>e.accounts.seedPhrases)),t=UR((e=>e.accounts.secretKeys));return async(r,n)=>{if("secret_key"===r.type){const e=t[r.address.pkh];if(!e)throw new Error(`Missing secret key for account ${r.address.pkh}`);return Hc(e,n)}{const t=e[r.seedFingerPrint];if(!t)throw new Error(`Missing seedphrase for account ${r.address.pkh}`);return((e,t,r)=>Mq.fromMnemonic({mnemonic:e,derivationPath:t,curve:r}).secretKey())(await Hc(t,n),r.derivationPath,r.curve)}}},U3=()=>UR((e=>e.networks.current)),$3=()=>UR((e=>e.networks.available)),H3=()=>{const e=$3(),t=Ei();return r=>{const n=e.find((e=>e.name===r));n&&t(th.setCurrent(n))}},V3=()=>{const e=U3(),t=UR((t=>t.tokens[e.name]));return(e,r)=>(0,ts.get)(t,[e,r])},q3=(e,t)=>e.length>t?e.slice(0,t-3)+"...":e,K3=e=>Pc("tz","mutez",e),W3=e=>Pc("mutez","tz",e),G3=e=>{const t=Xs(W3(e)).toNumber();return`${new Intl.NumberFormat("en-US",{minimumFractionDigits:6,maximumFractionDigits:6}).format(t)} \ua729`},Y3=e=>`${e.slice(0,5)}...${e.slice(-5)}`,Z3=e=>{const t=UR((e=>e.assets.blockLevel));return null!==t?t-e>=2:null},X3=()=>{const e=e4(),t=UR((e=>e.assets.balances.tokens)),r=Object.keys(t);return(0,ts.fromPairs)(r.map((t=>[t,e(t)])))},J3=()=>{const e=V3(),t=UR((e=>e.assets.balances.tokens));return r=>{const n=t[r]||[];return(0,ts.compact)(n.map((({contract:t,tokenId:r,...n})=>{const i=e(t,r);return i&&{...i,...n}})))}},Q3=()=>{const e=(()=>{const e=J3();return t=>e(t).filter((e=>"fa1.2"===e.type))})(),t=(()=>{const e=J3();return t=>e(t).filter((e=>"fa2"===e.type))})();return r=>[...e(r),...t(r)]},e4=()=>{const e=J3();return t=>e(t).filter((e=>"nft"===e.type))},t4=()=>{const e=UR((e=>e.assets.conversionRate));return t=>null===e?null:new Zs(t).multipliedBy(e).decimalPlaces(2,Zs.ROUND_UP)},r4=()=>{const e=UR((e=>e.assets.balances.mutez)),t=t4(),r=(e=>{const t=(0,ts.compact)(Object.values(e));return 0===t.length?null:t.reduce(((e,t)=>e.plus(t)),new Xs(0))})(e);if(null==r)return null;const n=t(W3(r));return{mutez:r.toFixed(),usd:n}},n4=()=>{const e=UR((e=>e.assets.balances.mutez));return t=>e[t]},i4=()=>UR((e=>e.assets.bakers)),o4=e=>{const t=a4(e),r=s4(e),n=c4(e);return t||r||n||{pkh:e.pkh,type:"unknown",label:null}},a4=({pkh:e})=>{const t=Zq()(e);return t?{type:t.type,pkh:e,label:t.label}:null},s4=({pkh:e})=>{const t=(()=>{const e=i4();return t=>e.find((e=>e.address===t))})(),r=t(e);return r?{pkh:e,type:"baker",label:r.name}:null},c4=({pkh:e})=>{const t=$q()(e);return t?{pkh:e,type:"contact",label:t}:null},l4=({number:e,size:t="md"})=>{const r="md"===t?"md":"lg",n="md"===t?"sm":"md",{integer:i,decimal:o}=(e=>{const[t,r]=e.split(".");return{integer:t,decimal:r}})(e);return(0,xn.jsxs)(_n,{alignItems:"end","data-testid":"pretty-number",children:[(0,xn.jsx)(Ln,{size:r,children:i}),o&&(0,xn.jsxs)(Ln,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",size:n,children:[".",o]})]})},u4=({address:e,size:t,...r})=>{const n=n4()(e);if(!n)return null;const i=G3(n);return(0,xn.jsx)(En,{overflow:"hidden",textAlign:"right","data-testid":"account-balance",...r,children:(0,xn.jsx)(l4,{number:i,size:t})})},d4=({address:e,...t})=>{const r=o4(e);return(0,xn.jsx)(tq,{background:LP.white,hasArrow:!0,label:r.label,placement:"left",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",width:"400px",padding:"9px 10px",background:LP.gray[800],borderRadius:"4px","data-testid":"address-tile",...t,children:[(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lq,{addressKind:r}),"unknown"===r.type?(0,xn.jsx)(lF,{marginLeft:"10px",color:LP.gray[300],size:"sm",children:e.pkh}):(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(En,{overflow:"hidden",width:"102px",marginLeft:"12px",whiteSpace:"nowrap",children:(0,xn.jsx)(Ln,{overflow:"hidden",textOverflow:"ellipsis",size:"sm",children:r.label})}),(0,xn.jsx)(lF,{width:"89px",marginLeft:"10px",color:LP.gray[300],size:"xs",children:Y3(r.pkh)})]})]}),(0,xn.jsx)(u4,{overflow:"hidden",textAlign:"right",address:e.pkh})]})})},h4=({contacts:e,onChange:t})=>0===e.length?null:(0,xn.jsx)(oH,{position:"absolute",zIndex:2,overflowY:"auto",width:"100%",maxHeight:300,marginTop:"8px",marginLeft:0,background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px","data-testid":"suggestions-list",listStyleType:"none",children:e.map(((r,n)=>(0,xn.jsx)(En,{children:(0,xn.jsx)(aH,{marginBottom:n===e.length-1?"5px":0,padding:"5px 15px 0 5px",onMouseDown:()=>{t(r.name)},children:(0,xn.jsx)(d4,{width:"370px",height:"40px",padding:"10px 8px 10px 5px",background:LP.gray[700],borderRadius:"4px",_hover:{background:LP.gray[500]},cursor:"pointer",address:td(r.pkh)})})},r.pkh)))}),f4=(e,t)=>{if(""===e)return t;return t.filter((t=>t.name.toLowerCase().includes(e.trim().toLowerCase())))},p4=({contacts:e,isDisabled:t,isLoading:r=!1,allowUnknown:n,inputName:o,onUpdate:a,validate:s,label:c,keepValid:l,style:u,size:d})=>{const{register:h,setValue:f,formState:{defaultValues:p},getValues:m}=PU(),g=f,v=(0,i.useId)(),[y,b]=(0,i.useState)((()=>{var t;if(l||!p)return"";const r=(0,ts.get)(p,o);return r?(null===(t=e.find((e=>e.pkh===r)))||void 0===t?void 0:t.name)||r:""})),[w,x]=(0,i.useState)(!0),[_,S]=(0,i.useState)(f4("",e)),k=m(o),E=t=>{b(t),S(f4(t,e));const r=e.find((e=>e.name===t||e.pkh===t));let i;if(void 0!==r)i=r.pkh,x(!0);else if(n&&rd(t))i=t;else{if(l)return;i=""}g(o,i,{shouldValidate:!0}),a&&a(i)};let A="raw_input";r?A="selected_tile":t?A="disabled_tile":k&&(A="selected_tile");const P=()=>{E(""),x(!1)};return(0,xn.jsxs)(En,{"data-testid":`address-autocomplete-${o}`,children:[(0,xn.jsx)($$,{htmlFor:v,children:c}),"disabled_tile"===A&&(0,xn.jsx)(d4,{address:td(k)}),"selected_tile"===A&&(0,xn.jsx)(En,{height:"48px",background:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],borderRadius:"4px","data-testid":`selected-address-tile-${k}`,onClick:P,paddingY:0,children:(0,xn.jsxs)(Sn,{justifyContent:"space-between",cursor:"pointer","data-testid":"clear-selected-button",children:[(0,xn.jsx)(d4,{width:"short"===d?"338px":"365px",paddingTop:"8px",background:"transparent",address:td(k)}),l?(0,xn.jsx)(Cj,{marginRight:"12px","data-testid":"chevron-icon"}):(0,xn.jsx)(m4,{marginRight:"14px"})]})}),"raw_input"===A&&(0,xn.jsxs)(W$,{children:[(0,xn.jsx)(Z$,{...u,"aria-label":o,autoComplete:"off",id:v,onBlur:e=>{if(e.preventDefault(),x(!0),l&&k!==e.target.value)return E(k);E(e.target.value)},onChange:e=>E(e.target.value),onFocus:()=>x(!1),placeholder:"Enter address or contact name",value:y}),(0,xn.jsx)(eH,{children:y?(0,xn.jsx)(m4,{marginRight:"0px",onClick:P}):(0,xn.jsx)(Cj,{"data-testid":"chevron-icon"})})]}),(0,xn.jsx)(Z$,{...h(o,{required:"Invalid address or contact name",validate:s}),marginBottom:0,"data-testid":`real-address-input-${o}`,name:o,type:"hidden"}),!w&&(0,xn.jsx)(h4,{contacts:_,onChange:E})]})},m4=e=>(0,xn.jsx)(BR,{marginRight:"16px",stroke:LP.gray[450],cursor:"pointer","data-testid":"clear-input-button",...e}),g4=e=>{const t=Object.values(Fq()),r=Wq().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{...e,contacts:t.concat(r)})},v4=e=>{const t=qq().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{...e,contacts:t})},y4=e=>{const t=Wq().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{...e,contacts:t})},b4=e=>{const t=i4().map((e=>({name:e.name,pkh:e.address})));return(0,xn.jsx)(p4,{...e,contacts:t})},w4=e=>{const t=Qq()(e.account).map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{allowUnknown:!1,contacts:t,isDisabled:1===t.length,...e})},x4=({request:e,onSuccess:t})=>{const r=(()=>{const e=Ei();return(t,r,n)=>e(Hd.actions.addConnection({dAppId:t,accountPkh:r,networkType:n}))})(),n=qq(),i=L$({mode:"onBlur"}),{getValues:o,formState:{errors:a,isValid:s}}=i;return(0,xn.jsxs)(oF,{children:[(0,xn.jsxs)(sF,{marginBottom:"24px",children:[(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"center",children:"Permission Request"}),(0,xn.jsxs)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:[e.appMetadata.name," is requesting permission to sign this operation."]}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"center",marginTop:"10px",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Network:"}),(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:e.network.type})]})]}),(0,xn.jsx)(aF,{}),(0,xn.jsxs)(uF,{"data-testid":"beacon-request-body",children:[e.appMetadata.icon&&(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"16px",padding:"15px",borderRadius:"4px",backgroundColor:LP.gray[800],children:[(0,xn.jsx)(hF,{width:"60px",marginRight:"12px",ratio:1,children:(0,xn.jsx)(TR,{borderRadius:"4px",src:e.appMetadata.icon})}),(0,xn.jsx)(Ln,{size:"sm",children:e.appMetadata.name})]}),(0,xn.jsx)(DF,{marginTop:"16px",allowToggle:!0,children:(0,xn.jsxs)(zF,{background:LP.gray[800],border:"none",borderRadius:"8px",children:[(0,xn.jsxs)(BF,{children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",marginY:"10px",size:"md",children:"Request Payload"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(U$,{value:e})})]})}),(0,xn.jsx)(OU,{...i,children:(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!a.address,children:[(0,xn.jsx)(v4,{allowUnknown:!1,inputName:"address",label:"Select Account"}),a.address&&(0,xn.jsx)(eU,{children:a.address.message})]})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!s,onClick:i=>(async()=>{const i=n.find((e=>e.address.pkh===o().address));if(!i)throw new Error("No account selected");const a={type:qM.PermissionResponse,network:{type:e.network.type},scopes:e.scopes,id:e.id,publicKey:i.pk,walletType:"implicit"};await Zte.respond(a),r(e.senderId,i.address.pkh,e.network.type),t()})(),size:"lg",children:"Grant"})})]})};var _4=v(((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":a,...s}=e,c=r||n,l=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,xn.jsx)(Gn,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...s,children:l})}));function S4(e){return lR({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}}]})(e)}function k4(e){return k4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k4(e)}function E4(e){var t=function(e,t){if("object"!=k4(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=k4(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k4(t)?t:String(t)}function A4(e,t,r){return(t=E4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}_4.displayName="IconButton";var P4=r(2156),O4=r.n(P4),T4=r(2248),C4=r.n(T4);function j4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R4(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const r={mode:"cors",headers:{}};(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).useAPIKey&&(r.headers=R4(R4({},r.headers),$4()));const n=O4()(r,t,{method:"GET"}),i=await U4(e,n);if(i.ok)return i.json();throw H4(i),i},q4=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(i.headers=R4(R4({},i.headers),$4()));const o=O4()(i,r,{method:"POST"});return n.isUrlEncodedData?(o.body=t,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(t),((e,t)=>{const r=new Promise(((t,r)=>{const n=setTimeout((()=>{clearTimeout(n),r(new Error(`Timed out in ${e}ms`))}),e)}));return Promise.race([t,r])})(n.timeout||6e4,U4(e,o).then((e=>{if(n.logTracingHeader&&function(e){I4.info(`Request tracing with traceID=${e.headers.get("x-web3-correlation-id")}`)}(e),e.ok)return e.json();throw H4(e),e})))},K4=(e,t)=>({jsonrpc:"2.0",method:e,id:10,params:t});function W4(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var G4=r(2052),Y4=r.n(G4);Promise.resolve(!1),Promise.resolve(!0);var Z4=Promise.resolve();function X4(e,t){return e||(e=0),new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))}function J4(){return Math.random().toString(36).substring(2)}var Q4=0,e6=0;function t6(){var e=(new Date).getTime();return e===Q4?1e3*e+ ++e6:(Q4=e,e6=0,1e3*e)}var r6=C4().getLogger("broadcast-channel");r6.setLevel("error");const n6={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),Z4}catch(Lde){return Promise.reject(Lde)}},canBeUsed:function(e){if("undefined"===typeof window)return!1;if(!e.support3PC)return!1;if("function"===typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1},type:"native",averageResponseTime:function(){return 150},microSeconds:t6};var i6=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this;this.map.set(e,o6()),this._to||(this._to=!0,setTimeout((function(){t._to=!1,function(e){var t=o6()-e.ttl,r=e.map[Symbol.iterator]();for(;;){var n=r.next().value;if(!n)return;var i=n[0];if(!(n[1]0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return"undefined"===typeof t.support3PC&&(t.support3PC=function(){if("undefined"===typeof navigator)return!1;var e=Y4().parse(navigator.userAgent);r6.info(JSON.stringify(e),"current browser info");var t=!0;return navigator.brave&&(t=!1),e.engine.name!==Y4().ENGINE_MAP.WebKit&&e.engine.name!==Y4().ENGINE_MAP.Gecko||(t=!1),t}()),"undefined"===typeof t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"===typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),t.server||(t.server={}),t.server.url||(t.server.url="https://broadcast-server.tor.us"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}var s6="pubkey.broadcast-channel-0-",c6="messages",l6={durability:"relaxed"};function u6(){if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof window){if("undefined"!==typeof window.mozIndexedDB)return window.mozIndexedDB;if("undefined"!==typeof window.webkitIndexedDB)return window.webkitIndexedDB;if("undefined"!==typeof window.msIndexedDB)return window.msIndexedDB}return!1}function d6(e){e.commit&&e.commit()}function h6(e,t){var r=e.transaction(c6,"readonly",l6),n=r.objectStore(c6),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(o);return new Promise((function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}}))}return new Promise((function(e,a){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch(Mde){return n.openCursor()}}();s.onerror=function(e){return a(e)},s.onsuccess=function(n){var o=n.target.result;o?o.value.ide.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return e.uuid!==t.uuid&&!t.eMIs.has(e.id)&&!(e.data.time{P6[A6[e]]=e}));const O6={type:"error",data:"parser error"},T6="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),C6="function"===typeof ArrayBuffer,j6=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,R6=({type:e,data:t},r,n)=>T6&&t instanceof Blob?r?n(t):I6(t,n):C6&&(t instanceof ArrayBuffer||j6(t))?r?n(t):I6(new Blob([t]),n):n(A6[e]+(t||"")),I6=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function M6(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let L6;function N6(e,t){return T6&&e.data instanceof Blob?e.data.arrayBuffer().then(M6).then(t):C6&&(e.data instanceof ArrayBuffer||j6(e.data))?t(M6(e.data)):void R6(e,!1,(e=>{L6||(L6=new TextEncoder),t(L6.encode(e))}))}const D6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z6="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<64;r++)z6[D6.charCodeAt(r)]=r;const B6="function"===typeof ArrayBuffer,F6=(e,t)=>{if("string"!==typeof e)return{type:"message",data:$6(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:U6(e.substring(1),t)};return P6[r]?e.length>1?{type:P6[r],data:e.substring(1)}:{type:P6[r]}:O6},U6=(e,t)=>{if(B6){const r=(e=>{let t,r,n,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l})(e);return $6(r,t)}return{base64:!0,data:e}},$6=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,H6=String.fromCharCode(30);let V6;function q6(e){if(e)return function(e){for(var t in q6.prototype)e[t]=q6.prototype[t];return e}(e)}q6.prototype.on=q6.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},q6.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},q6.prototype.off=q6.prototype.removeListener=q6.prototype.removeAllListeners=q6.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})}const G6=K6.setTimeout,Y6=K6.clearTimeout;function Z6(e,t){t.useNativeTimers?(e.setTimeoutFn=G6.bind(K6),e.clearTimeoutFn=Y6.bind(K6)):(e.setTimeoutFn=K6.setTimeout.bind(K6),e.clearTimeoutFn=K6.clearTimeout.bind(K6))}class X6 extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class J6 extends q6{constructor(e){super(),this.writable=!1,Z6(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new X6(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=F6(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}const Q6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),e8=64,t8={};let r8,n8=0,i8=0;function o8(e){let t="";do{t=Q6[e%e8]+t,e=Math.floor(e/e8)}while(e>0);return t}function a8(){const e=o8(+new Date);return e!==r8?(n8=0,r8=e):e+"."+o8(n8++)}for(;i8{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(Mde){return void this.setTimeoutFn((()=>{this.onError(Mde)}),0)}"undefined"!==typeof document&&(this.index=h8.requestsCount++,h8.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=u8,e)try{this.xhr.abort()}catch(Mde){}"undefined"!==typeof document&&delete h8.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(h8.requestsCount=0,h8.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",f8);else if("function"===typeof addEventListener){addEventListener("onpagehide"in K6?"pagehide":"unload",f8,!1)}function f8(){for(let e in h8.requests)h8.requests.hasOwnProperty(e)&&h8.requests[e].abort()}const p8="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),m8=K6.WebSocket||K6.MozWebSocket;r(4240).Buffer;const g8="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function v8(e,t){return"message"===e.type&&"string"!==typeof e.data&&t[0]>=48&&t[0]<=54}const y8={websocket:class extends J6{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=g8?{}:W6(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=g8?new m8(e,t,r):t?new m8(e,t):new m8(e)}catch(Lde){return this.emitReserved("error",Lde)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(Mde){}n&&p8((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=a8()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!m8}},webtransport:class extends J6{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let r;this.writer=e.writable.getWriter();const n=()=>{t.read().then((({done:e,value:t})=>{e||(r||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,r){V6||(V6=new TextDecoder);const n=t||e[0]<48||e[0]>54;return F6(n?e:V6.decode(e),r)}(t,r,"arraybuffer")),r=!1):r=!0,n())})).catch((e=>{}))};n();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{v8(r,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{n&&p8((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends J6{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=d8&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(H6),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,o)=>{R6(e,!1,(e=>{n[o]=e,++i===r&&t(n.join(H6))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=a8()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h8(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},b8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,w8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x8(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=b8.exec(e||""),o={},a=14;for(;a--;)o[w8[a]]=i[a]||"";return-1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,o.query),o}class _8 extends q6{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=x8(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=x8(t.host).host),Z6(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new y8[e](r)}open(){let e;if(this.opts.rememberUpgrade&&_8.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(Mde){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),r=!1;_8.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;_8.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){r||(r=!0,l(),t.close(),t=null)}const o=e=>{const r=new Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",_8.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}var t;return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"===typeof t&&(n=t,t=void 0),"function"===typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){_8.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,E8=Object.prototype.toString,A8="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===E8.call(Blob),P8="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===E8.call(File);function O8(e){return S8&&(e instanceof ArrayBuffer||k8(e))||A8&&e instanceof Blob||P8&&e instanceof File}function T8(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{t.push(((e,t)=>r?e?i(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:N8.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case N8.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case N8.EVENT:case N8.BINARY_EVENT:this.onevent(e);break;case N8.ACK:case N8.BINARY_ACK:this.onack(e);break;case N8.DISCONNECT:this.ondisconnect();break;case N8.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:N8.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:N8.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}V8.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},V8.prototype.reset=function(){this.attempts=0},V8.prototype.setMin=function(e){this.ms=e},V8.prototype.setMax=function(e){this.max=e},V8.prototype.setJitter=function(e){this.jitter=e};class q8 extends q6{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Z6(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new V8({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new _8(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=U8(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=U8(t,"error",i);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(U8(e,"ping",this.onping.bind(this)),U8(e,"data",this.ondata.bind(this)),U8(e,"error",this.onerror.bind(this)),U8(e,"close",this.onclose.bind(this)),U8(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(Mde){this.onclose("parse error",Mde)}}ondecoded(e){p8((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new H8(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const K8={};function W8(e,t){"object"===typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!==typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof r?r.protocol+"//"+e:"https://"+e),n=x8(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,i=r.id,o=r.path,a=K8[i]&&o in K8[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new q8(n,t):(K8[i]||(K8[i]=new q8(n,t)),s=K8[i]),r.query&&!t.query&&(t.query=r.queryKey),s.socket(r.path,t)}Object.assign(W8,{Manager:q8,Socket:H8,io:W8,connect:W8});var G8=r(6652),Y8=r.n(G8),Z8=r(4240).Buffer;const X8=new Qs.ec("secp256k1"),J8=r.g.crypto||r.g.msCrypto||{},Q8=J8.subtle||J8.webkitSubtle,e9=Z8.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),t9=Z8.alloc(32,0);function r9(e,t){if(!e)throw new Error(t||"Assertion failed")}function n9(e){return!!function(e){return Z8.isBuffer(e)&&32===e.length}(e)&&(e.compare(t9)>0&&e.compare(e9)<0)}function i9(e){const t=new Uint8Array(e);return"undefined"===typeof J8.getRandomValues?Z8.from(Y8().randomBytes(e)):(J8.getRandomValues(t),Z8.from(t))}async function o9(e){if(Q8){const t=await Q8.digest("SHA-512",e);return new Uint8Array(t)}const t=Y8().createHash("sha512").update(e).digest();return new Uint8Array(t)}function a9(e){return async function(t,r,n){if(Q8){const i={name:"AES-CBC"},o=await Q8.importKey("raw",r,i,!1,[e]),a={name:"AES-CBC",iv:t},s=await Q8[e](a,o,n);return Z8.from(new Uint8Array(s))}if("encrypt"===e){const e=Y8().createCipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return Z8.concat([i,o])}if("decrypt"===e){const e=Y8().createDecipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return Z8.concat([i,o])}throw new Error(`Unsupported operation: ${e}`)}}const s9=a9("encrypt"),c9=a9("decrypt");async function l9(e,t){if(Q8){const r={name:"HMAC",hash:{name:"SHA-256"}},n=await Q8.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),i=await Q8.sign("HMAC",n,t);return Z8.from(new Uint8Array(i))}const r=Y8().createHmac("sha256",Z8.from(e));r.update(t);return r.digest()}const u9=function(){let e=i9(32);for(;!n9(e);)e=i9(32);return e},d9=function(e){return r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),Z8.from(X8.keyFromPrivate(e).getPublic("array"))},h9=async function(e,t){return r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),r9(t.length>0,"Message should not be empty"),r9(t.length<=32,"Message is too long"),Z8.from(X8.sign(t,e,{canonical:!0}).toDER())},f9=async function(e,t){r9(Z8.isBuffer(e),"Bad private key"),r9(Z8.isBuffer(t),"Bad public key"),r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),r9(65===t.length||33===t.length,"Bad public key"),65===t.length&&r9(4===t[0],"Bad public key"),33===t.length&&r9(2===t[0]||3===t[0],"Bad public key");const r=X8.keyFromPrivate(e),n=X8.keyFromPublic(t),i=r.derive(n.getPublic());return Z8.from(i.toArray())},p9=async function(e,t){r9(Z8.isBuffer(e),"Bad private key"),r9(Z8.isBuffer(t),"Bad public key"),r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),r9(65===t.length||33===t.length,"Bad public key"),65===t.length&&r9(4===t[0],"Bad public key"),33===t.length&&r9(2===t[0]||3===t[0],"Bad public key");const r=X8.keyFromPrivate(e),n=X8.keyFromPublic(t),i=r.derive(n.getPublic());return Z8.from(i.toString(16,64),"hex")},m9=async function(e,t,r){let n=(r=r||{}).ephemPrivateKey||i9(32);for(;!n9(n);)n=r.ephemPrivateKey||i9(32);const i=d9(n),o=await f9(n,e),a=await o9(o),s=r.iv||i9(16),c=a.slice(0,32),l=a.slice(32),u=await s9(s,Z8.from(c),t),d=Z8.concat([s,i,u]);return{iv:s,ephemPublicKey:i,ciphertext:u,mac:await l9(Z8.from(l),d)}},g9=async function(e,t,r){const n=null!==r&&void 0!==r&&r,i=n?p9:f9,o=await i(e,t.ephemPublicKey),a=await o9(o),s=a.slice(0,32),c=a.slice(32),l=Z8.concat([t.iv,t.ephemPublicKey,t.ciphertext]),u=await async function(e,t,r){return function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n0||e._addEL.internal.length>0}function W9(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&K9(e)){var t=function(t){e._addEL[t.type].forEach((function(r){var n=1e5,i=r.time-n;(t.time>=i||"server"===e.method.type)&&r.fn(t.data)}))},r=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,r)})):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function G9(e,t,r){e._addEL[t]=e._addEL[t].filter((function(e){return e!==r})),function(e){if(e._iL&&!K9(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}function Y9(e){this.message=e}V9._pubkey=!0,V9.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return q9(this,"message",e)},postInternal:function(e){return q9(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};G9(this,"message",this._onML),e&&"function"===typeof e?(this._onML=t,W9(this,"message",t)):this._onML=null},addEventListener:function(e,t){W9(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){G9(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){$9.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Z4;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}},Y9.prototype=new Error,Y9.prototype.name="InvalidCharacterError";var Z9="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Y9("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,i=0,o=0,a="";n=t.charAt(o++);~n&&(r=i%4?64*r+n:n,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function X9(e){this.message=e}X9.prototype=new Error,X9.prototype.name="InvalidTokenError";const J9=function(e,t){if("string"!=typeof e)throw new X9("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Z9(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return Z9(t)}}(e.split(".")[r]))}catch(e){throw new X9("Invalid token specified: "+e.message)}},Q9={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},e7={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_TESTNET:"sapphire_testnet",SAPPHIRE_MAINNET:"sapphire_mainnet"},t7=[Q9.AQUA,Q9.CELESTE,Q9.CYAN],r7={[Q9.AQUA]:{migrationCompleted:!1,networkIdentifier:"aqua",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.CELESTE]:{migrationCompleted:!1,networkIdentifier:"celeste",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.CYAN]:{migrationCompleted:!1,networkIdentifier:"cyan",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.MAINNET]:{migrationCompleted:!1,networkIdentifier:"mainnet",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.TESTNET]:{migrationCompleted:!0,networkIdentifier:"teal",networkMigratedTo:e7.SAPPHIRE_TESTNET}},n7={[Q9.MAINNET]:"https://signer.tor.us",[Q9.TESTNET]:"https://signer.tor.us",[Q9.CYAN]:"https://signer-polygon.tor.us",[Q9.AQUA]:"https://signer-polygon.tor.us",[Q9.CELESTE]:"https://signer-polygon.tor.us"},i7={[e7.SAPPHIRE_DEVNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[e7.SAPPHIRE_TESTNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[e7.SAPPHIRE_MAINNET]:["https://sapphire-1.auth.network","https://sapphire-2.auth.network","https://sapphire-3.auth.network","https://sapphire-4.auth.network","https://sapphire-5.auth.network"]},o7=(e,t)=>{const r=i7[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=r7[t];return r.map((e=>n&&n.networkIdentifier?`${e}/sss/${n.networkIdentifier}/jrpc`:`${e}/sss/jrpc`))},a7=(e,t)=>{const r=i7[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=r7[t];return r.map((e=>n&&n.networkIdentifier?`${e}/rss/${n.networkIdentifier}`:`${e}/rss`))},s7=(e,t)=>{const r=i7[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=r7[t];return r.map((e=>n&&n.networkIdentifier?`${e}/tss/${n.networkIdentifier}`:`${e}/tss`))},c7={currentEpoch:"19",torusNodeEndpoints:["https://torus-19.torusnode.com/jrpc","https://torus-node.ens.domains/jrpc","https://torus-node.matic.network/jrpc","https://torus.zilliqa.network/jrpc","https://torus-mainnet.cosmos.network/jrpc","https://torus2.etherscan.com/jrpc","https://torus-node-v2.skalelabs.com/jrpc","https://torus-node.binancex.dev/jrpc","https://torusnode.ont.io/jrpc"],torusIndexes:[1,2,3,4,5,6,7,8,9],torusNodePub:[{X:"bbe83c64177c3775550e6ba6ac2bc059f6847d644c9e4894e42c60d7974d8c2b",Y:"82b49a7caf70def38cdad2740af45c1e4f969650105c5019a29bb18b21a9acb5"},{X:"c208cac4ef9a47d386097a9c915b28e9cb89213abee8d26a17198ee261201b0d",Y:"c7db2fe4631109f40833de9dc78d07e35706549ee48fa557b33e4e75e1047873"},{X:"ca1766bb426d4ca5582818a0c5439d560ea64f5baa060793ab29dd3d0ceacfe",Y:"d46c1d08c40e1306e1bca328c2287b8268166b11a1ba4b8442ea2ad0c5e32152"},{X:"c3934dd2f6f4b3d2e1e398cc501e143c1e1a381b52feb6d1525af34d16253768",Y:"71f5141a5035799099f5ea3e241e66946bc55dc857ac3bd7d6fcdb8dcd3eeeef"},{X:"22e66f1929631d00bf026227581597f085fd94fd952fc0dca9f0833398b5c064",Y:"6088b3912e10a1e9d50355a609c10db7d188f16a2e2fd7357e51bf4f6a74f0a1"},{X:"9dc9fa410f3ce9eb70df70cdea00a49f2c4cc7a31c08c0dab5f863ed35ff5139",Y:"627a291cb87a75c61da3f65d6818e1e05e360217179817ed27e8c73bca7ec122"},{X:"118b9fc07e97b096d899b9f6658463ce6a8caa64038e37fc969df4e6023dd8c6",Y:"baf9fa4e51770f4796ea165dd03a769b8606681a38954a0a92c4cbffd6609ce9"},{X:"8a6d8b925da15a273dec3d8f8395ec35cd6878f274b2b180e4e106999db64043",Y:"96f67f870c157743da0b1eb84d89bf30500d74dc84c11f501ee1cb013acc8c46"},{X:"39cecb62e863729f572f7dfc46c24867981bf04bb405fed0df39e33984bfade5",Y:"61c2364434012e68a2be2e9952805037e52629d7762fafc8e10e9fb5bad8f790"}]},l7={[e7.SAPPHIRE_MAINNET]:[{X:"e0925898fee0e9e941fdca7ee88deec99939ae9407e923535c4d4a3a3ff8b052",Y:"54b9fea924e3f3e40791f9987f4234ae4222412d65b74068032fa5d8b63375c1"},{X:"9124cf1e280aab32ba50dffd2de81cecabc13d82d2c1fe9de82f3b3523f9b637",Y:"fca939a1ceb42ce745c55b21ef094f543b457630cb63a94ef4f1afeee2b1f107"},{X:"555f681a63d469cc6c3a58a97e29ebd277425f0e6159708e7c7bf05f18f89476",Y:"606f2bcc0884fa5b64366fc3e8362e4939841b56acd60d5f4553cf36b891ac4e"},{X:"2b5f58d8e340f1ab922e89b3a69a68930edfe51364644a456335e179bc130128",Y:"4b4daa05939426e3cbe7d08f0e773d2bf36f64c00d04620ee6df2a7af4d2247"},{X:"3ecbb6a68afe72cf34ec6c0a12b5cb78a0d2e83ba402983b6adbc5f36219861a",Y:"dc1031c5cc8f0472bd521a62a64ebca9e163902c247bf05937daf4ae835091e4"}],[e7.SAPPHIRE_TESTNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}],[e7.SAPPHIRE_DEVNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}]},u7=(e,t)=>({currentEpoch:"1",torusNodeEndpoints:o7(e,t),torusNodeSSSEndpoints:o7(e,t),torusNodeRSSEndpoints:a7(e,t),torusNodeTSSEndpoints:s7(e,t),torusIndexes:[1,2,3,4,5],torusNodePub:l7[e]});const d7=C4().getLogger("fnd");class h7{constructor(){let{network:e=e7.SAPPHIRE_MAINNET,fndServerEndpoint:t,enableLogging:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A4(this,"fndServerEndpoint","https://fnd.tor.us/node-details"),A4(this,"_currentEpoch","1"),A4(this,"_torusNodeEndpoints",[]),A4(this,"_torusNodeRSSEndpoints",[]),A4(this,"_torusNodeSSSEndpoints",[]),A4(this,"_torusNodeTSSEndpoints",[]),A4(this,"_torusNodePub",[]),A4(this,"_torusIndexes",[]),A4(this,"updated",void 0),A4(this,"network",void 0),this.network=e,this.updated=!1,t&&(this.fndServerEndpoint=t),r?d7.enableAll():d7.disableAll()}get _nodeDetails(){return{currentEpoch:this._currentEpoch,torusNodeEndpoints:this._torusNodeEndpoints,torusNodeSSSEndpoints:this._torusNodeSSSEndpoints,torusNodeRSSEndpoints:this._torusNodeRSSEndpoints,torusNodeTSSEndpoints:this._torusNodeTSSEndpoints,torusNodePub:this._torusNodePub,torusIndexes:this._torusIndexes,updated:this.updated}}async getNodeDetails(e){let{verifier:t,verifierId:r}=e;try{if(this.updated&&!t7.includes(this.network))return this._nodeDetails;try{const{nodeDetails:e}=await V4(`${this.fndServerEndpoint}?network=${this.network}&verifier=${t}&verifierId=${r}`);return this.setNodeDetails(e),this._nodeDetails}catch(n){d7.error("Failed to fetch node details from server, using local.",n)}const e=function(e){if(Object.values(e7).includes(e))return u7(e);if(Object.values(Q9).includes(e)){const t=r7[e];if(t.migrationCompleted)return u7(t.networkMigratedTo,e);if(e===Q9.MAINNET)return c7}}(this.network);if(!e)throw new Error("Failed to fetch node details");return this.setNodeDetails(e),this._nodeDetails}catch(n){throw d7.error("Failed to fetch node details",n),n}}setNodeDetails(e){const{currentEpoch:t,torusNodeEndpoints:r,torusNodeSSSEndpoints:n,torusNodeRSSEndpoints:i,torusNodeTSSEndpoints:o,torusNodePub:a,torusIndexes:s}=e;this._torusNodeEndpoints=r,this._torusNodeSSSEndpoints=n||[],this._torusNodeRSSEndpoints=i||[],this._torusNodeTSSEndpoints=o||[],this._torusNodePub=a,this._torusIndexes=s,this._currentEpoch=t,this.updated=!0}}var f7=r(5628),p7=r.n(f7),m7=r(4240).Buffer;const g7="GetPubKeyOrKeyAssign",v7="CommitmentRequest",y7="ImportShare",b7="GetShareOrKeyAssign",w7="https://metadata.tor.us",x7=(e,t)=>{let r=e;if("number"===typeof r&&(r=Array.from({length:r},((e,t)=>t))),t>r.length||t<=0)return[];if(t===r.length)return[r];if(1===t)return r.reduce(((e,t)=>[...e,[t]]),[]);const n=[];let i=[];for(let o=0;o<=r.length-t+1;o+=1){i=x7(r.slice(o+1),t-1);for(let e=0;e{const r={};for(let n=0;n=8?o+=t[a].toUpperCase():o+=t[a];return o}function O7(e,t){const r=e.keyFromPrivate(t.toString("hex",64),"hex").getPublic().encode("hex",!1).slice(2);E7.info(r,"public key");return P7(`0x${A7(m7.from(r,"hex")).slice(26)}`)}function T7(e,t,r){const n=e.keyFromPublic({x:t.toString("hex",64),y:r.toString("hex",64)}),i=n.getPublic().encode("hex",!1).slice(2);E7.info(n.getPublic().encode("hex",!1),"public key");return P7(`0x${A7(m7.from(i,"hex")).slice(26)}`)}E7.disableAll();class C7{constructor(e,t,r){A4(this,"x",void 0),A4(this,"y",void 0),A4(this,"ecCurve",void 0),this.x=new(p7())(e,"hex"),this.y=new(p7())(t,"hex"),this.ecCurve=r}encode(e){switch(e){case"arr":return m7.concat([m7.from("0x04","hex"),m7.from(this.x.toString("hex"),"hex"),m7.from(this.y.toString("hex"),"hex")]);case"elliptic-compressed":{const e=this.ecCurve.keyFromPublic({x:this.x.toString("hex",64),y:this.y.toString("hex",64)},"hex");return m7.from(e.getPublic(!0,"hex"))}default:throw new Error("encoding doesn't exist in Point")}}}class j7{constructor(e,t){A4(this,"share",void 0),A4(this,"shareIndex",void 0),this.share=new(p7())(t,"hex"),this.shareIndex=new(p7())(e,"hex")}static fromJSON(e){const{share:t,shareIndex:r}=e;return new j7(r,t)}toJSON(){return{share:this.share.toString("hex"),shareIndex:this.shareIndex.toString("hex")}}}class R7{constructor(e,t){A4(this,"polynomial",void 0),A4(this,"ecCurve",void 0),this.polynomial=e,this.ecCurve=t}getThreshold(){return this.polynomial.length}polyEval(e){const t=new(p7())(e,"hex");let r=new(p7())(t),n=new(p7())(0);n=n.add(this.polynomial[0]);for(let i=1;i"number"===typeof e?new(p7())(e):e instanceof p7()?e:"string"===typeof e?new(p7())(e,"hex"):e)),r={};for(let n=0;ne.eq(t)))?I7(e):t}const M7=e=>Array.from({length:e},(()=>new(p7())(0))),L7=(e,t,r)=>{let n=M7(r.length);const i=((e,t,r)=>{let n=new(p7())(1);const i=r[t].x;for(let o=r.length-1;o>=0;o-=1)if(t!==o){let t=new(p7())(i);t=t.sub(r[o].x),t=t.umod(e.curve.n),n=n.mul(t),n=n.umod(e.curve.n)}return n})(e,t,r);if(0===i.cmp(new(p7())(0)))throw new Error("Denominator for interpolationPoly is 0");n[0]=i.invm(e.curve.n);for(let o=0;o=0;a-=1){i[a+1]=i[a+1].add(n[a]).umod(e.curve.n);let t=new(p7())(r[o].x);t=t.mul(n[a]).umod(e.curve.n),i[a]=i[a].sub(t).umod(e.curve.n)}n=i}}return n},N7=(e,t)=>{const r=(e=>{const t=[...e];return t.sort(((e,t)=>e.x.cmp(t.x))),t})(t),n=M7(r.length);for(let i=0;it)throw new Error("deterministicShares in generateRandomPolynomial should be less or equal than degree to ensure an element of randomness");const o={};n.forEach((t=>{o[t.shareIndex.toString("hex",64)]=new C7(t.shareIndex,t.share,e)}));for(let a=0;a2&&void 0!==arguments[2]?arguments[2]:{};try{const n=await q4(`${e}/get`,t,r,{useAPIKey:!0});return n&&n.message?new(p7())(n.message,16):new(p7())(0)}catch(n){return C4().error("get metadata error",n),new(p7())(0)}}async function H7(e,t,r,n,i,o){let a;const s=arguments.length>6&&void 0!==arguments[6]&&arguments[6]?"getNonce":"getOrSetNonce";return a=o?function(e,t,r,n){const i=e.keyFromPrivate(n.toString("hex",64)),o={data:r,timestamp:new(p7())(~~(t+Date.now()/1e3)).toString(16)},a=i.sign(A7(m7.from(b9()(o),"utf8")).slice(2));return{pub_key_X:i.getPublic().getX().toString("hex",64),pub_key_Y:i.getPublic().getY().toString("hex",64),set_data:o,signature:m7.from(a.r.toString(16,64)+a.s.toString(16,64)+new(p7())("").toString(16,2),"hex").toString("base64")}}(t,r,s,o):{pub_key_X:n,pub_key_Y:i,set_data:{data:s}},q4(`${e}/get_or_set_nonce`,a,void 0,{useAPIKey:!0})}async function V7(e,t,r,n,i,o){return H7(e,t,r,n,i,o,!0)}const q7={logRequestTracing:!1};class K7 extends Error{constructor(e){let{errors:t,responses:r,predicate:n}=e;super("Unable to resolve enough promises."),A4(this,"errors",void 0),A4(this,"responses",void 0),A4(this,"predicate",void 0),this.errors=t,this.responses=r,this.predicate=n}get message(){return`${super.message}. ${this.errors.length} errors: ${this.errors.map((e=>e.message||e)).join(", ")} and ${this.responses.length} responses: ${JSON.stringify(this.responses)}`}toString(){return this.message}}const W7=(e,t)=>new Promise(((r,n)=>{let i=0;const o={resolved:!1},a=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);let c;return e.forEach(((l,u)=>l.then((e=>{s[u]=e})).catch((e=>{a[u]=e})).finally((()=>{if(!o.resolved)return t(s.slice(0),o).then((e=>{o.resolved=!0,r(e)})).catch((e=>{c=e})).finally((()=>{if(i+=1,i===e.length){const e=Object.values(s.reduce(((e,t)=>{if(t){var r;const{id:i,error:o}=t;(null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.length)>0&&(o.data.startsWith("Error occurred while verifying params")?e[i]=(n=o.data).charAt(0).toUpperCase()+n.slice(1):e[i]=o.data)}var n;return e}),{}));if(e.length>0){const t=e.length>1?`\n${e.map((e=>`\u2022 ${e}`)).join("\n")}`:e[0];n(new Error(t))}else{var t;n(new K7({errors:a,responses:s,predicate:(null===(t=c)||void 0===t?void 0:t.message)||c}))}}}))}))))}));function G7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y7(e){for(var t=1;t0){if(h.length!==c.length)throw new Error("Invalid imported shares length");w=!0}for(let x=0;x{E7.error("commitment error",e)}));p.push(e)}return W7(p,(e=>{const t=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error));if(h.length>0&&t.length===c.length)return Promise.resolve(e);if(0===h.length&&t.length>=1+~~(3*c.length/4)){if(t.find((e=>{var t;return!(!e||"1"!==(null===(t=e.result)||void 0===t?void 0:t.nodeindex))})))return Promise.resolve(e)}return Promise.reject(new Error(`invalid ${JSON.stringify(e)}`))})).then((e=>{const t=[],r=[];for(let i=0;iE7.error("share req",e)));t.push(n)}else{const e=q4(c[i],K4(b7,{encrypted:"yes",use_temp:!0,item:[Y7(Y7({},u),{},{idtoken:d,nodesignatures:r,verifieridentifier:l},f)],one_key_flow:!0}),null,{logTracingHeader:q7.logRequestTracing}).catch((e=>E7.error("share req",e)));t.push(e)}}let n;return W7(t,(async(e,t)=>{const r=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error)),o=e.map((e=>{if(e&&e.result&&e.result.keys[0].public_key){if(!n&&!u.extended_verifier_id){var t,r;(null===(t=e.result.keys[0].nonce_data)||void 0===t||null===(r=t.pubNonce)||void 0===r?void 0:r.x)&&(n=e.result.keys[0].nonce_data)}return e.result.keys[0].public_key}})),s=_7(o,1+~~(c.length/2));if(!s)throw new Error("invalid result from nodes, threshold number of public key results are not matching");if(!n&&!u.extended_verifier_id&&!r7[a])throw new Error(`invalid metadata result from nodes, nonce metadata is empty for verifier: ${l} and verifierId: ${u.verifier_id}`);const d=h.length>0?c.length:1+~~(c.length/2);if(r.length>=d&&s&&(n||u.extended_verifier_id||r7[a])){const e=[],o=[],a=[],l=[],d=[];for(let t=0;t0)u&&null!==(f=u[0])&&void 0!==f&&f.ephemPublicKey?o.push(U7(u[0],c[0],m).catch((e=>E7.debug("session sig decryption",e)))):o.push(Promise.resolve(m7.from(c[0],"hex")));else o.push(Promise.resolve(void 0));if((null===i||void 0===i?void 0:i.length)>0)s&&null!==(p=s[0])&&void 0!==p&&p.ephemPublicKey?a.push(U7(s[0],i[0],m).catch((e=>E7.debug("session token sig decryption",e)))):a.push(Promise.resolve(m7.from(i[0],"base64")));else a.push(Promise.resolve(void 0));if((null===d||void 0===d?void 0:d.length)>0){const t=n.result.keys[0];l.push(new(p7())(t.node_index)),t.share_metadata&&e.push(U7(t.share_metadata,m7.from(t.share,"base64").toString("binary").padStart(64,"0"),m).catch((e=>E7.debug("share decryption",e))))}else l.push(void 0),e.push(Promise.resolve(void 0))}const h=await Promise.all(e.concat(o).concat(a)),g=h.slice(0,e.length),v=h.slice(e.length,e.length+o.length),y=h.slice(e.length+o.length,h.length),b=v.filter((e=>!!e)),w=1+~~(c.length/2);if(!u.extended_verifier_id&&b.length!!e));if(!u.extended_verifier_id&&x.length{e?d.push({token:e.toString("base64"),signature:v[t].toString("hex"),node_pubx:r[t].result.node_pubx,node_puby:r[t].result.node_puby}):d.push(void 0)})),t.resolved)return;const _=g.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(p7())(t)}),e)),[]),S=x7(_.length,1+~~(c.length/2));let k=null;for(let t=0;te.includes(r))),n=r.map((e=>e.value)),o=r.map((e=>e.index)),a=D7(i,n,o);if(!a)continue;const c=d9(m7.from(a.toString(16,64),"hex")).toString("hex"),l=c.slice(2,66),u=c.slice(66);if(0===new(p7())(l,16).cmp(new(p7())(s.X,16))&&0===new(p7())(u,16).cmp(new(p7())(s.Y,16))){k=a;break}}if(void 0===k||null===k)throw new Error("could not derive private key");return{privateKey:k,sessionTokenData:d,thresholdNonceData:n,nodeIndexes:l}}throw new Error("Invalid")}))})).then((async e=>{var o;const{privateKey:s,sessionTokenData:c,thresholdNonceData:l,nodeIndexes:d}=e;let h=l;if(!s)throw new Error("Invalid private key returned");const f=s,p=d9(m7.from(f.toString(16,64),"hex")).toString("hex"),g=p.slice(2,66),v=p.slice(66);let y,b,w=new(p7())(null!==(o=h)&&void 0!==o&&o.nonce?h.nonce.padStart(64,"0"):"0","hex"),x="v1";if(u.extended_verifier_id)x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic();else if(r7[a])if(n)h=await V7(t,i,r,g,v,f),w=new(p7())(h.nonce||"0",16),b={X:h.pubNonce.x,Y:h.pubNonce.y},x=h.typeOfUser,"v2"===x&&(y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()));else{x="v1",w=await $7(t,{pub_key_X:g,pub_key_Y:v});const e=f.add(w).umod(i.curve.n);y=i.keyFromPrivate(e.toString(16,64),"hex").getPublic()}else x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()),b={X:h.pubNonce.x,Y:h.pubNonce.y};const _=O7(i,f),S=T7(i,y.getX(),y.getY());E7.debug("> torus.js/retrieveShares",{finalEvmAddress:S});let k="";if("v1"===x||"v2"===x&&w.gt(new(p7())(0))){k=f.add(w).umod(i.curve.n).toString("hex",64)}let E=!1;return"v1"===x?E=null:"v2"===x&&(E=w.eq(new(p7())("0"))),{finalKeyData:{evmAddress:S,X:y.getX().toString(16,64),Y:y.getY().toString(16,64),privKey:k},oAuthKeyData:{evmAddress:_,X:g,Y:v,privKey:f.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:c,sessionAuthKey:m.toString("hex").padStart(64,"0")},metadata:{pubNonce:b,nonce:w,typeOfUser:x,upgraded:E},nodesData:{nodeIndexes:d.map((e=>e.toNumber()))}}}))}const X7=async(e,t,r)=>{const n=e.map((e=>q4(e,K4("VerifierLookupRequest",{verifier:t,verifier_id:r.toString()})).catch((e=>E7.error("lookup request failed",e)))));return W7(n,(t=>{const r=t.filter((e=>e)),n=_7(r.map((e=>e&&e.error)),1+~~(e.length/2)),i=_7(r.map((e=>e&&e.result)),1+~~(e.length/2));return i||n?Promise.resolve({keyResult:i,errorResult:n}):Promise.reject(new Error(`invalid results ${JSON.stringify(t)}`))}))},J7=async e=>{let t,r,{endpoints:n,torusNodePubs:i,lastPoint:o,firstPoint:a,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d}=e;if(void 0===o?(t=Math.floor(Math.random()*n.length),E7.info("keyassign",t,n[t]),r=t):t=o%n.length,t===a)throw new Error("Looped through all");void 0!==a&&(r=a);const h=K4("KeyAssign",{verifier:s,verifier_id:c.toString()});try{const e=await q4(l,h,{headers:{pubKeyX:i[t].X,pubKeyY:i[t].Y,network:u,clientId:d}},{useAPIKey:!0});return await q4(n[t],Y7(Y7({},h),e),{headers:{"Content-Type":"application/json; charset=utf-8"}})}catch(f){E7.error(f.status,f.message,f,"key assign error");const e=["Timed out","Failed to fetch","cancelled","NetworkError when attempting to fetch resource.","TypeError: Failed to fetch","TypeError: cancelled","TypeError: NetworkError when attempting to fetch resource."];if(502===(null===f||void 0===f?void 0:f.status)||504===(null===f||void 0===f?void 0:f.status)||401===(null===f||void 0===f?void 0:f.status)||e.includes(f.message)||e.some((e=>f.message.includes(e)))||f.message&&f.message.includes("reason: getaddrinfo EAI_AGAIN"))return J7({endpoints:n,torusNodePubs:i,lastPoint:t+1,firstPoint:r,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d});throw new Error(`Sorry, the Torus Network that powers Web3Auth is currently very busy.\n We will generate your key in time. Pls try again later. \n\n ${f.message||""}`)}};function Q7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eee(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0]?(E7.enableAll(),q7.logRequestTracing=!0):E7.disableAll()}static setAPIKey(e){F4(e)}static setEmbedHost(e){B4(e)}static isGetOrSetNonceError(e){return e instanceof k7}static getPostboxKey(e){return"v1"===e.metadata.typeOfUser&&e.finalKeyData.privKey||e.oAuthKeyData.privKey}async retrieveShares(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.isLegacyNetwork?this.legacyRetrieveShares(e,t,r,n,i,o):Z7({legacyMetadataHost:this.legacyMetadataHost,serverTimeOffset:this.serverTimeOffset,enableOneKey:this.enableOneKey,ecCurve:this.ec,allowHost:this.allowHost,network:this.network,clientId:this.clientId,endpoints:e,verifier:r,verifierParams:n,idToken:i,importedShares:[],extraParams:o})}async getPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=r;return this.isLegacyNetwork?this.getLegacyPublicAddress(e,t,{verifier:n,verifierId:i},this.enableOneKey):this.getNewPublicAddress(e,{verifier:n,verifierId:i,extendedVerifierId:o},this.enableOneKey)}async importPrivateKey(e,t,r,n,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(this.isLegacyNetwork)throw new Error("This function is not supported on legacy networks");if(e.length!==t.length)throw new Error("length of endpoints array must be same as length of nodeIndexes array");const c=1+~~(e.length/2)-1,l=[],u=this.ec.keyFromPrivate(a.padStart(64,"0"),"hex");for(const x of t)l.push(new(p7())(x));const d=u.getPrivate(),h=new(p7())(u9()),f=d.sub(h).umod(this.ec.curve.n),p=this.ec.keyFromPrivate(f.toString("hex").padStart(64,"0")).getPublic(),m=z7(this.ec,c,f).generateShares(l),g=this.generateNonceMetadataParams("getOrSetNonce",f,h),v=m7.from(b9()(g.set_data),"utf8").toString("base64"),y=[],b=[];for(let x=0;x5&&void 0!==arguments[5]?arguments[5]:{};const a=[];await V4(this.allowHost,{headers:{verifier:r,verifierId:n.verifier_id,network:this.network,clientId:this.clientId}},{useAPIKey:!0});const s=u9(),c=d9(s).toString("hex"),l=c.slice(2,66),u=c.slice(66),d=A7(m7.from(i,"utf8"));for(let h=0;h{E7.error("commitment",e)}));a.push(t)}return W7(a,(t=>{const r=t.filter((e=>!(!e||"object"!==typeof e)&&!e.error));return r.length>=3*~~(e.length/4)+1?Promise.resolve(t):Promise.reject(new Error(`invalid ${JSON.stringify(t)}`))})).then((a=>{const c=[],l=[];for(let e=0;eE7.error("share req",e)));c.push(a)}return W7(c,(async(r,n)=>{const i=r.filter((e=>e)),o=_7(r.map((e=>e&&e.result&&e.result.keys[0].PublicKey)),1+~~(e.length/2));if(i.length>=1+~~(e.length/2)&&o){const i=[],l=[];for(let e=0;e0){n.result.keys.sort(((e,t)=>new(p7())(e.Index,16).cmp(new(p7())(t.Index,16))));const e=n.result.keys[0];if(e.Metadata){const t={ephemPublicKey:m7.from(e.Metadata.ephemPublicKey,"hex"),iv:m7.from(e.Metadata.iv,"hex"),mac:m7.from(e.Metadata.mac,"hex")};i.push(g9(s,eee(eee({},t),{},{ciphertext:m7.from(m7.from(e.Share,"base64").toString("binary").padStart(64,"0"),"hex")})).catch((e=>E7.debug("share decryption",e))))}else i.push(Promise.resolve(m7.from(e.Share.padStart(64,"0"),"hex")))}else i.push(Promise.resolve(void 0));l.push(new(p7())(t[e],16))}const u=await Promise.all(i);if(n.resolved)return;const d=u.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(p7())(t)}),e)),[]),h=x7(d.length,1+~~(e.length/2));let f=null;for(let e=0;et.includes(r))),n=r.map((e=>e.value)),i=r.map((e=>e.index)),a=D7(this.ec,n,i);if(!a)continue;const s=d9(m7.from(a.toString(16,64),"hex")).toString("hex"),c=s.slice(2,66),l=s.slice(66);if(0===new(p7())(c,16).cmp(new(p7())(o.X,16))&&0===new(p7())(l,16).cmp(new(p7())(o.Y,16))){f=a;break}}if(void 0===f||null===f)throw new Error("could not derive private key");return f}throw new Error("invalid")}))})).then((async e=>{const t=e;if(!t)throw new Error("Invalid private key returned");const r=d9(m7.from(t.toString(16,64),"hex")).toString("hex"),n=r.slice(2,66),i=r.slice(66);let o,a,s,c="v1";if(this.enableOneKey){const e=await V7(this.legacyMetadataHost,this.ec,this.serverTimeOffset,n,i,t);o=new(p7())(e.nonce||"0",16),c=e.typeOfUser,"v2"===e.typeOfUser&&(a=this.ec.keyFromPublic({x:n,y:i}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),s={X:e.pubNonce.x,Y:e.pubNonce.y})}else{o=await $7(this.legacyMetadataHost,{pub_key_X:n,pub_key_Y:i});const e=t.add(o).umod(this.ec.curve.n);a=this.ec.keyFromPrivate(e.toString("hex"),"hex").getPublic()}const l=O7(this.ec,t),u=T7(this.ec,a.getX(),a.getY());E7.debug("> torus.js/retrieveShares",{finalEvmAddress:u});let d="";if("v1"===c||"v2"===c&&o.gt(new(p7())(0))){d=t.add(o).umod(this.ec.curve.n).toString("hex",64).padStart(64,"0")}let h=!1;return"v1"===c?h=null:"v2"===c&&(h=o.eq(new(p7())("0"))),{finalKeyData:{evmAddress:u,X:a?a.getX().toString(16,64):"",Y:a?a.getY().toString(16,64):"",privKey:d},oAuthKeyData:{evmAddress:l,X:n,Y:i,privKey:t.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:[],sessionAuthKey:""},metadata:{pubNonce:s,nonce:o,typeOfUser:c,upgraded:h},nodesData:{nodeIndexes:[]}}}))}async getLegacyPublicAddress(e,t,r,n){let i,{verifier:o,verifierId:a}=r;E7.debug("> torus.js/getPublicAddress",{endpoints:e,torusNodePubs:t,verifier:o,verifierId:a});let s=!1;const{keyResult:c,errorResult:l}=await X7(e,o,a)||{};if(l&&JSON.stringify(l).includes("Verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(l&&JSON.stringify(l).includes("Verifier + VerifierID has not yet been assigned")){await J7({endpoints:e,torusNodePubs:t,lastPoint:void 0,firstPoint:void 0,verifier:o,verifierId:a,signerHost:this.signerHost,network:this.network,clientId:this.clientId});const r=await((e,t,r,n)=>new Promise(((i,o)=>{setTimeout((()=>{X7(e,t,r).then(i).catch(o)}),n)})))(e,o,a,1e3);i=null===r||void 0===r?void 0:r.keyResult,s=!0}else{if(!c)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`);i=c}if(E7.debug("> torus.js/getPublicAddress",{finalKeyResult:i,isNewKey:s}),i)return this.formatLegacyPublicKeyData({finalKeyResult:i,isNewKey:s,enableOneKey:n});throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`)}generateNonceMetadataParams(e,t,r){const n=this.ec.keyFromPrivate(t.toString("hex",64)),i={operation:e,timestamp:new(p7())(~~(this.serverTimeOffset+Date.now()/1e3)).toString(16)};r&&(i.data=r.toString("hex",64));const o=n.sign(A7(m7.from(b9()(i),"utf8")).slice(2));return{pub_key_X:n.getPublic().getX().toString("hex",64),pub_key_Y:n.getPublic().getY().toString("hex",64),set_data:i,signature:m7.from(o.r.toString(16,64)+o.s.toString(16,64)+new(p7())("").toString(16,2),"hex").toString("base64")}}async getNewPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=t;E7.debug("> torus.js/getPublicAddress",{endpoints:e,verifier:n,verifierId:i});const a=await(async e=>{const{endpoints:t,network:r,verifier:n,verifierId:i,extendedVerifierId:o}=e,a=t.map((e=>q4(e,K4(g7,{verifier:n,verifier_id:i.toString(),extended_verifier_id:o,one_key_flow:!0,fetch_node_index:!0}),null,{logTracingHeader:q7.logRequestTracing}).catch((e=>E7.error(`${g7} request failed`,e)))));let s;const c=[],l=await W7(a,(e=>{const a=e.filter((e=>{if(e&&!e.error){var t,r,n;if(!s)(null===(t=e.result)||void 0===t||null===(r=t.keys[0].nonce_data)||void 0===r||null===(n=r.pubNonce)||void 0===n?void 0:n.x)&&(s=e.result.keys[0].nonce_data);return e}return!1})),l=_7(a.map((e=>e&&e.error)),1+~~(t.length/2)),u=_7(a.map((e=>e&&(e=>{const t={keys:[],is_new_key:e.is_new_key};return e&&e.keys&&e.keys.length>0&&(t.keys=e.keys.map((e=>({pub_key_X:e.pub_key_X,pub_key_Y:e.pub_key_Y,address:e.address})))),t})(e.result))),1+~~(t.length/2));return u&&(s||o||r7[r])||l?(u&&e.forEach((e=>{if(e&&e.result){const t=parseInt(e.result.node_index);t&&c.push(t)}})),Promise.resolve({keyResult:u,nodeIndexes:c,errorResult:l,nonceResult:s})):Promise.reject(new Error(`invalid public key result: ${JSON.stringify(e)} and nonce result:${JSON.stringify(s||{})} for verifier: ${n}, verifierId: ${i} and extendedVerifierId: ${o} `))}));return l})({endpoints:e,network:this.network,verifier:n,verifierId:i,extendedVerifierId:o}),{errorResult:s,keyResult:c,nodeIndexes:l=[]}=a,{nonceResult:u}=a;if(s&&JSON.stringify(s).toLowerCase().includes("verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(s)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(E7.debug("> torus.js/getPublicAddress",{keyResult:c}),null===c||void 0===c||!c.keys)throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(!u&&!o&&!r7[this.network])throw new k7("metadata nonce is missing in share response");const{pub_key_X:d,pub_key_Y:h}=c.keys[0];let f;const p=new(p7())((null===u||void 0===u?void 0:u.nonce)||"0",16);let m,g;if(o)g=this.ec.keyFromPublic({x:d,y:h}).getPublic(),m=g;else{if(r7[this.network])return this.formatLegacyPublicKeyData({isNewKey:c.is_new_key,enableOneKey:r,finalKeyResult:{keys:c.keys}});{const e=u;m=this.ec.keyFromPublic({x:d,y:h}).getPublic(),g=this.ec.keyFromPublic({x:d,y:h}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),f={X:e.pubNonce.x,Y:e.pubNonce.y}}}if(!m)throw new Error("Unable to derive oAuthPubKey");const v=m.getX().toString(16,64),y=m.getY().toString(16,64),b=T7(this.ec,m.getX(),m.getY());if(E7.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:v,Y:y,oAuthAddress:b,nonce:null===p||void 0===p?void 0:p.toString(16),pubNonce:f}),!g)throw new Error("Unable to derive finalPubKey");const w=g?g.getX().toString(16,64):"",x=g?g.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:b,X:v,Y:y},finalKeyData:{evmAddress:g?T7(this.ec,g.getX(),g.getY()):"",X:w,Y:x},metadata:{pubNonce:f,nonce:p,upgraded:(null===u||void 0===u?void 0:u.upgraded)||!1,typeOfUser:"v2"},nodesData:{nodeIndexes:l}}}async formatLegacyPublicKeyData(e){var t,r;const{finalKeyResult:n,enableOneKey:i,isNewKey:o}=e,{pub_key_X:a,pub_key_Y:s}=n.keys[0];let c,l,u,d,h;const f=this.ec.keyFromPublic({x:a,y:s}).getPublic();if(i){try{c=await H7(this.legacyMetadataHost,this.ec,this.serverTimeOffset,a,s,void 0,!o),l=new(p7())(c.nonce||"0",16),d=c.typeOfUser}catch{throw new k7}if("v1"===c.typeOfUser)u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());else{if("v2"!==c.typeOfUser)throw new Error("getOrSetNonce should always return typeOfUser.");u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPublic({x:c.pubNonce.x,y:c.pubNonce.y}).getPublic()),h={X:c.pubNonce.x,Y:c.pubNonce.y}}}else d="v1",l=await $7(this.legacyMetadataHost,{pub_key_X:a,pub_key_Y:s}),u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());if(!f)throw new Error("Unable to derive oAuthPubKey");const p=f.getX().toString(16,64),m=f.getY().toString(16,64),g=T7(this.ec,f.getX(),f.getY());if(E7.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:p,Y:m,oAuthAddress:g,nonce:null===(t=l)||void 0===t?void 0:t.toString(16),pubNonce:h}),"v2"===d&&!u)throw new Error("Unable to derive finalPubKey");const v=u?u.getX().toString(16,64):"",y=u?u.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:g,X:p,Y:m},finalKeyData:{evmAddress:u?T7(this.ec,u.getX(),u.getY()):"",X:v,Y:y},metadata:{pubNonce:h,nonce:l,upgraded:(null===(r=c)||void 0===r?void 0:r.upgraded)||!1,typeOfUser:d},nodesData:{nodeIndexes:[]}}}}var ree=r(5679),nee=r(4240).Buffer;function iee(e){return nee.from((0,w9.u6)(e))}const oee=new Qs.ec("secp256k1");function aee(e){return{iv:nee.from(e.iv,"hex"),ephemPublicKey:nee.from(e.ephemPublicKey,"hex"),ciphertext:nee.from(e.ciphertext,"hex"),mac:nee.from(e.mac,"hex")}}function see(e){return{iv:nee.from(e.iv).toString("hex"),ephemPublicKey:nee.from(e.ephemPublicKey).toString("hex"),ciphertext:nee.from(e.ciphertext).toString("hex"),mac:nee.from(e.mac).toString("hex")}}async function cee(e,t){const r=JSON.stringify(t),n=nee.from(r,"utf-8"),i=see(await m9(d9(nee.from(e,"hex")),n));return JSON.stringify(i)}async function lee(e,t){const r=aee(JSON.parse(t)),n=oee.keyFromPrivate(e),i=(await g9(nee.from(n.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8");return JSON.parse(i)}var uee=r(4240).Buffer;const dee="google",hee="facebook",fee="reddit",pee="discord",mee="twitch",gee="apple",vee="github",yee="linkedin",bee="twitter",wee="weibo",xee="line",_ee="email_password",See="passwordless",kee="jwt",Eee="webauthn",Aee="single_id_verifier",Pee={POPUP:"popup",REDIRECT:"redirect"},Oee="localStorage",Tee="server",Cee="triggerLogin",jee="triggerAggregateLogin",Ree="triggerHybridAggregateLogin",Iee="fetchNodeDetails",Mee="pubAddressLookup",Lee="fetchShares";var Nee=C4().getLogger("customauth");const Dee={[gee]:"apple",[vee]:"github",[yee]:"linkedin",[bee]:"twitter",[wee]:"weibo",[xee]:"line",[_ee]:"Username-Password-Authentication",[See]:"email"},zee=e=>e.href.endsWith("/")?e.href:`${e.href}/`,Bee={webWorkerSupport:!1};function Fee(e,t){return t?e:e.toLowerCase()}const Uee=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{name:i,sub:o}=e;if(r)return Fee(e[r],n);switch(t){case See:case _ee:return Fee(i,n);case wee:case vee:case bee:case gee:case yee:case xee:case kee:return Fee(o,n);default:throw new Error("Invalid login type")}},$ee=(e,t)=>{const r=e.split("&").reduce(((e,t)=>{const[r,n]=t.split("=");return e[r]=n,e}),{});Nee.info(r,t);let n={},i="";return Object.keys(r).length>0&&r.state?(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(r.state))))||{},i=r.error_description||r.error||i):Object.keys(t).length>0&&t.state&&(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(t.state))))||{},t.error&&(i=t.error)),{error:i,instanceParameters:n,hashParameters:r}};function Hee(e){const{baseURL:t,query:r,hash:n}=e,i=new URL(t);if(r&&Object.keys(r).forEach((e=>{i.searchParams.append(e,r[e])})),n){const e=new URL(Hee({baseURL:t,query:n})).searchParams.toString();i.hash=e}return i.toString()}const Vee=e=>{try{return new URL(decodeURIComponent(e))}catch(t){throw new Error(`${(null===t||void 0===t?void 0:t.message)||""}, Note: Your jwt domain: (i.e ${e}) must have http:// or https:// prefix`)}};function qee(e){return e!==hee&&e!==xee||!function(){const e=Y4().getParser(navigator.userAgent).getPlatform();return e.type===Y4().PLATFORMS_MAP.tablet||e.type===Y4().PLATFORMS_MAP.mobile}()?1e4:6e4}class Kee extends rK.EventEmitter{constructor(e){let{url:t,target:r,features:n,timeout:i=3e4}=e;super(),A4(this,"url",void 0),A4(this,"target",void 0),A4(this,"features",void 0),A4(this,"window",void 0),A4(this,"windowTimer",void 0),A4(this,"iClosedWindow",void 0),A4(this,"timeout",void 0),this.url=t,this.target=r||"_blank",this.features=n||function(){const e=void 0!==window.screenLeft?window.screenLeft:window.screenX,t=void 0!==window.screenTop?window.screenTop:window.screenY,r=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,n=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,i=Math.abs((r-1200)/2/1+e);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=1200,top=${Math.abs((n-700)/2/1+t)},left=${i}`}(),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this.timeout=i,this._setupTimer()}_setupTimer(){this.window&&(this.windowTimer=Number(setInterval((()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),setTimeout((()=>{this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0}),this.timeout)),void 0===this.window&&clearInterval(this.windowTimer)}),500)))}open(){var e;return this.window=window.open(this.url.href,this.target,this.features),null!==(e=this.window)&&void 0!==e&&e.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(e){e?window.location.replace(this.url.href):window.location.href=this.url.href}}const Wee=["access_token","id_token"];function Gee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yee(e){for(var t=1;t{let n;const i=async t=>{try{const{error:i,data:o}=t,a=o||{},{instanceParams:s,hashParams:{access_token:c,id_token:l}}=a,u=W4(a.hashParams,Wee);if(i)return Nee.error(t),void r(new Error(`Error: ${i}. Info: ${JSON.stringify(t.data||{})}`));t.data&&s.verifier===this.verifier&&(Nee.info(t.data),!this.redirectToOpener&&n&&await n.postMessage({success:!0}),e(Yee(Yee({accessToken:c,idToken:l||""},u),{},{state:s})))}catch(i){Nee.error(i),r(i)}};if(this.redirectToOpener){const e=async r=>{if(!r.data)return;const n=r.data;n.channel===`redirect_channel_${this.nonce}`&&(window.removeEventListener("message",e),i(n),t.close())};window.addEventListener("message",e)}else n=new V9(`redirect_channel_${this.nonce}`,Bee),n.addEventListener("message",(async e=>{await i(e),n.close(),t.close()}));t.open(),t.once("close",(()=>{n&&n.close(),r(new Error("user closed popup"))}))})):(t.redirect(e.locationReplaceOnRedirect),null)}}class Xee extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","identify email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://discord.com/api/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://discord.com/api/users/@me",{headers:{Authorization:`Bearer ${t}`}}),{id:n,avatar:i,email:o="",username:a="",discriminator:s=""}=r;return{profileImage:null===i?`https://cdn.discordapp.com/embed/avatars/${Number(s)%5}.png`:`https://cdn.discordapp.com/avatars/${n}/${i}.png?size=2048`,name:`${a}#${s}`,email:o,verifierId:n,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}class Jee extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","public_profile email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.facebook.com/v15.0/dialog/oauth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://graph.facebook.com/me?fields=name,email,picture.type(large)",{headers:{Authorization:`Bearer ${t}`}}),{name:n="",id:i,picture:o,email:a=""}=r;return{email:a,name:n,profileImage:o.data.url||"",verifier:this.verifier,verifierId:i,typeOfLogin:this.typeOfLogin}}}class Qee extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token id_token"),A4(this,"SCOPE","profile email openid"),A4(this,"PROMPT","consent select_account"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://accounts.google.com/o/oauth2/v2/auth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,nonce:this.nonce},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://www.googleapis.com/userinfo/v2/me",{headers:{Authorization:`Bearer ${t}`}}),{picture:n="",email:i="",name:o=""}=r;return{email:i,name:o,profileImage:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}let ete=class extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"SCOPE","openid profile email"),A4(this,"RESPONSE_TYPE","token id_token"),A4(this,"PROMPT","login"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const{domain:e}=this.jwtParams,t=Vee(e);t.pathname+=t.pathname.endsWith("/")?"authorize":"/authorize";const r=JSON.parse(JSON.stringify(this.jwtParams));delete r.domain;const n=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,connection:Dee[this.typeOfLogin],nonce:this.nonce},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await V4(`${zee(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:Uee(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){C4().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=J9(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:Uee(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}};class tte extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=JSON.parse(JSON.stringify(this.jwtParams));delete e.domain;const t=O4()({state:this.state,client_id:this.clientId,nonce:this.nonce},e);this.finalURL=new URL(Hee({baseURL:this.redirect_uri,query:null,hash:t}))}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await V4(`${zee(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:Uee(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){C4().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=J9(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:Uee(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}handleLoginWindow(e){const{id_token:t,access_token:r}=this.jwtParams,n=new Kee({url:this.finalURL,features:e.popupFeatures});return this.uxMode!==Pee.REDIRECT?Promise.resolve({state:{},idToken:t,accessToken:r}):(n.redirect(e.locationReplaceOnRedirect),null)}}const rte=["access_token","id_token"];function nte(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ite(e){for(var t=1;t{if(this.redirectToOpener)return void t(new Error("Cannot use redirect to opener for passwordless"));const r=r=>{try{const{error:n,data:i}=r,o=i||{},{instanceParams:a,hashParams:{access_token:s,id_token:c}}=o,l=W4(o.hashParams,rte);if(n)return Nee.error(r.error),void t(new Error(n));r.data&&a.verifier===this.verifier&&(Nee.info(r.data),e(ite(ite({accessToken:s,idToken:c||""},l),{},{state:a})))}catch(n){Nee.error(n),t(n)}},n=new V9(`redirect_channel_${this.nonce}`,Bee);n.addEventListener("message",(async e=>{r(e),n.close()}));try{const{connection:e="email",login_hint:r}=this.jwtParams,n=O4()({client_id:this.clientId,connection:e,email:"email"===e?r:void 0,phone_number:"sms"===e?r:void 0,send:"link",authParams:{scope:this.SCOPE,state:this.state,response_type:this.RESPONSE_TYPE,redirect_uri:this.redirect_uri,nonce:this.nonce,prompt:this.PROMPT}},{authParams:this.jwtParams});q4(this.finalURL.href,JSON.parse(JSON.stringify(n))).then((e=>{Nee.info("posted",e)})).catch((e=>{Nee.error(e),t(e)}))}catch(i){Nee.error(i),t(i)}}))}}class ate extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","identity"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.reddit.com/api/v1/authorize"+(window.innerWidth<600?".compact":"")),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://oauth.reddit.com/api/v1/me",{headers:{Authorization:`Bearer ${t}`}}),{icon_img:n="",name:i=""}=r;return{email:"",name:i,profileImage:n.split("?").length>0?n.split("?")[0]:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}class ste extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","user:read:email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://id.twitch.tv/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE,force_verify:!0},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://api.twitch.tv/helix/users",{headers:{Authorization:`Bearer ${t}`,"Client-ID":this.clientId}}),[{profile_image_url:n="",display_name:i="",email:o="",id:a}]=r.data||[];return{profileImage:n,name:i,email:o,verifierId:a,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}const cte="https://api.webauthn.openlogin.com";class lte extends Zee{constructor(e,t,r,n,i,o,a,s,c){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"registerOnly",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.registerOnly=c,this.setFinalUrl()}setFinalUrl(){const{webauthnURL:e}=this.customState||{},t=e?new URL(e):new URL("https://webauthn.openlogin.com"),r=JSON.parse(JSON.stringify(this.jwtParams||{})),n=O4()({register_only:!!this.registerOnly,state:this.state,client_id:this.clientId,redirect_uri:this.redirect_uri},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,ref:r,extraParamsPassed:n,extraParams:i}=e;let o,a,s,c,l,u,d,h,f;if("true"===n){Nee.debug("extraParamsPassed is true, using extraParams passed through hashParams");try{({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=JSON.parse(atob(i)))}catch(p){Nee.warn("unable to parse extraParams",p),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await V4(`${cte}/signature/fetch/${t}`))}}else Nee.debug("extraParamsPassed is false, using extraParams passed through bridge server"),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await V4(`${cte}/signature/fetch/${t}`));if(a!==t)throw new Error("idtoken should be equal to signature");return{email:"",name:"WebAuthn Login",profileImage:"",verifier:this.verifier,verifierId:o,typeOfLogin:this.typeOfLogin,ref:r,registerOnly:this.registerOnly,extraVerifierParams:{signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}}}}const ute=e=>{let{clientId:t,redirect_uri:r,typeOfLogin:n,verifier:i,jwtParams:o,redirectToOpener:a,uxMode:s,customState:c,registerOnly:l}=e;if(!i||!n||!t)throw new Error("Invalid params");const{domain:u,login_hint:d,id_token:h,access_token:f}=o||{};switch(n){case dee:return new Qee(t,i,r,n,s,a,o,c);case hee:return new Jee(t,i,r,n,s,a,o,c);case mee:return new ste(t,i,r,n,s,a,o,c);case fee:return new ate(t,i,r,n,s,a,o,c);case pee:return new Xee(t,i,r,n,s,a,o,c);case See:if(!u||!d)throw new Error("Invalid params");return new ote(t,i,r,n,s,a,o,c);case gee:case vee:case yee:case bee:case wee:case xee:case _ee:case kee:if(h||f)return new tte(t,i,r,n,s,a,o,c);if(!u)throw new Error("Invalid params");return new ete(t,i,r,n,s,a,o,c);case Eee:return new lte(t,i,r,n,s,a,o,c,l);default:throw new Error("Invalid login type")}};class dte{constructor(e){A4(this,"sentry",null),this.sentry=e}startTransaction(e){if(this.sentry)return this.sentry.startTransaction(e)}finishTransaction(e){e&&e.finish()}}class hte{constructor(e){A4(this,"currentStorageMethod",Oee),A4(this,"isInitialized",!1),A4(this,"storageServerUrl","https://broadcast-server.tor.us"),this.storageServerUrl=e}init(){const e=function(){var e;const t=Y4().parse(navigator.userAgent);Nee.info(JSON.stringify(t),"current browser info");let r=!0;return null!==(e=navigator)&&void 0!==e&&e.brave&&(r=!1),t.engine.name!==Y4().ENGINE_MAP.WebKit&&t.engine.name!==Y4().ENGINE_MAP.Gecko||(r=!1),r}(),t=function(e){let t;try{t=window[e];const r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(Mde){return Mde&&(22===Mde.code||1014===Mde.code||"QuotaExceededError"===Mde.name||"NS_ERROR_DOM_QUOTA_REACHED"===Mde.name)&&t&&0!==t.length}}(Oee);this.currentStorageMethod=e&&t?Oee:Tee,this.isInitialized=!0}async storeLoginDetails(e,t){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===Tee){const r=iee(uee.from(t,"utf8")),n=r.toString("hex"),i=d9(r).toString("hex"),o=await cee(n,e),a=(await h9(r,iee(uee.from(o,"utf8")))).toString("hex");await q4(`${this.storageServerUrl}/store/set`,{key:i,data:o,signature:a})}else window.localStorage.setItem(`torus_login_${t}`,JSON.stringify(e))}async retrieveLoginDetails(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===Tee){const t=iee(uee.from(e,"utf8")),n=t.toString("hex"),i=d9(t).toString("hex");try{const e=await V4(`${this.storageServerUrl}/store/get?key=${i}`);if(e.message){return await lee(n,e.message)}}catch(r){if(404!==r.status)throw r;Nee.warn(r,"Session likely expired")}}const t=window.localStorage.getItem(`torus_login_${e}`);return JSON.parse(t||"{}")}clearLoginDetailsStorage(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");this.currentStorageMethod===Oee&&window.localStorage.removeItem(`torus_login_${e}`)}clearOrphanedLoginDetails(){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===Oee){Object.keys(window.localStorage).forEach((e=>{e.startsWith("torus_login_")&&window.localStorage.removeItem(e)}))}}}const fte=["access_token","id_token"],pte=["access_token","id_token"],mte=["access_token","id_token"],gte=["args","method"];function vte(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yte(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.storageHelper.init(),t)this.isInitialized=!0;else{if(!e){if(!(await fetch(`${this.config.baseUrl}sw.js`,{cache:"reload"})).ok)throw new Error("Service worker is not being served. Please serve it");try{return await(n=this.config.baseUrl,new Promise(((e,t)=>{const r=`${n}sw.js`;"serviceWorker"in window.navigator?(0,ree.s)(r,{ready(){Nee.info("App is being served from cache by a service worker.\n For more details, visit https://goo.gl/AFskqB"),e(void 0)},registered(){Nee.info("Service worker has been registered."),e(void 0)},cached(){Nee.info("Content has been cached for offline use."),e(void 0)},updatefound(){Nee.info("New content is downloading.")},updated(){Nee.info("New content is available; please refresh.")},offline(){Nee.info("No internet connection found. App is running in offline mode."),t(new Error("App is offline"))},error(e){Nee.error("Error during service worker registration:",e),t(e)}}):t(new Error("Service workers are not supported"))}))),void(this.isInitialized=!0)}catch(i){Nee.warn(i)}}var n;if(!r)return(()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent.toLowerCase().indexOf("firefox"))>-1||!1})()?void(this.isInitialized=!0):void await this.handlePrefetchRedirectUri();this.isInitialized=!0}}async triggerLogin(e){const{verifier:t,typeOfLogin:r,clientId:n,jwtParams:i,hash:o,queryParameters:a,customState:s,registerOnly:c}=e;if(Nee.info("Verifier: ",t),!this.isInitialized)throw new Error("Not initialized yet");if(c&&r!==Eee)throw new Error("registerOnly flag can only be passed for webauthn");const l=ute({typeOfLogin:r,clientId:n,verifier:t,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:i,uxMode:this.config.uxMode,customState:s,registerOnly:c});let u;if(o&&a){const{error:e,hashParameters:t,instanceParameters:r}=$ee(o,a);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;u=yte(yte({accessToken:n,idToken:i},W4(t,fte)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===Pee.REDIRECT&&await this.storageHelper.storeLoginDetails({method:Cee,args:e},l.nonce),u=await l.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===Pee.REDIRECT)return null;const d=await l.getUserInfo(u);if(c){const e=this.sentryHandler.startTransaction({name:Iee}),r=await this.nodeDetailManager.getNodeDetails({verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(e);const n=this.sentryHandler.startTransaction({name:Mee}),i=await this.torus.getPublicAddress(r.torusNodeEndpoints,r.torusNodePub,{verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(n);const o={userInfo:yte(yte({},d),u)};return yte(yte(yte({},o),i),{},{finalKeyData:yte(yte({},i.finalKeyData),{},{privKey:void 0}),oAuthKeyData:yte(yte({},i.finalKeyData),{},{privKey:void 0}),metadata:yte(yte({},i.metadata),{},{nonce:void 0}),sessionData:void 0})}return yte(yte({},await this.getTorusKey(t,d.verifierId,{verifier_id:d.verifierId},u.idToken||u.accessToken,d.extraVerifierParams)),{},{userInfo:yte(yte({},d),u)})}async triggerAggregateLogin(e){const{aggregateVerifierType:t,verifierIdentifier:r,subVerifierDetailsArray:n}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!t||!r||!Array.isArray(n))throw new Error("Invalid params");if(t===Aee&&1!==n.length)throw new Error("Single id verifier can only have one sub verifier");const i=[],o=[];for(const h of n){const{clientId:t,typeOfLogin:r,verifier:n,jwtParams:a,hash:s,queryParameters:c,customState:l}=h,u=ute({typeOfLogin:r,clientId:t,verifier:n,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=$ee(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=yte(yte({accessToken:n,idToken:i},W4(t,pte)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===Pee.REDIRECT&&await this.storageHelper.storeLoginDetails({method:jee,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===Pee.REDIRECT)return null;i.push(u.getUserInfo(d)),o.push(d)}const a=(await Promise.all(i)).map((e=>yte(yte({},e),{},{aggregateVerifier:r}))),s={verify_params:[],sub_verifier_ids:[],verifier_id:""},c=[];let l="",u={};for(let h=0;hyte(yte({},e),o[t])))})}async triggerHybridAggregateLogin(e){const{singleLogin:t,aggregateLoginParams:r}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!r.aggregateVerifierType||!r.verifierIdentifier||!Array.isArray(r.subVerifierDetailsArray))throw new Error("Invalid params");if(r.aggregateVerifierType===Aee&&1!==r.subVerifierDetailsArray.length)throw new Error("Single id verifier can only have one sub verifier");const{typeOfLogin:n,clientId:i,verifier:o,jwtParams:a,hash:s,queryParameters:c,customState:l}=t,u=ute({typeOfLogin:n,clientId:i,verifier:o,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=$ee(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=yte(yte({accessToken:n,idToken:i},W4(t,mte)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===Pee.REDIRECT&&await this.storageHelper.storeLoginDetails({method:Ree,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===Pee.REDIRECT)return null;const h=await u.getUserInfo(d),f=this.getTorusKey(o,h.verifierId,{verifier_id:h.verifierId},d.idToken||d.accessToken,h.extraVerifierParams),{verifierIdentifier:p,subVerifierDetailsArray:m}=r,g={verify_params:[],sub_verifier_ids:[],verifier_id:""},v=[];let y="";for(let S=0;S0&&void 0!==arguments[0]?arguments[0]:{};await this.init({skipInit:!0});const r=new URL(window.location.href),n=r.hash.substring(1),i={};if(r.searchParams.forEach(((e,t)=>{i[t]=e})),e){const e=window.location.origin+window.location.pathname;window.history.replaceState(yte(yte({},window.history.state),{},{as:e,url:e}),"",e)}if(!n&&0===Object.keys(i).length)throw new Error("Unable to fetch result from OAuth login");const{error:o,instanceParameters:a,hashParameters:s}=$ee(n,i),{instanceId:c}=a;Nee.info(c,"instanceId");const l=await this.storageHelper.retrieveLoginDetails(c),{args:u,method:d}=l,h=W4(l,gte);if(Nee.info(u,d),t&&this.storageHelper.clearLoginDetailsStorage(c),o)return{error:o,state:a||{},method:d,result:{},hashParameters:s,args:u};let f;try{if(d===Cee){const e=u;e.hash=n,e.queryParameters=i,f=await this.triggerLogin(e)}else if(d===jee){const e=u;e.subVerifierDetailsArray.forEach((e=>{e.hash=n,e.queryParameters=i})),f=await this.triggerAggregateLogin(e)}else if(d===Ree){const e=u;e.singleLogin.hash=n,e.singleLogin.queryParameters=i,f=await this.triggerHybridAggregateLogin(e)}}catch(Lde){return Nee.error(Lde),yte({error:`Could not get result from torus nodes \n ${(null===Lde||void 0===Lde?void 0:Lde.message)||""}`,state:a||{},method:d,result:{},hashParameters:s,args:u},h)}return yte(f?{method:d,result:f,state:a||{},hashParameters:s,args:u}:{error:"Unsupported method type",state:a||{},method:d,result:{},hashParameters:s,args:u},h)}async handlePrefetchRedirectUri(){return document?new Promise(((e,t)=>{const r=document.createElement("link");r.href=this.config.redirect_uri,window.location.origin!==new URL(this.config.redirect_uri).origin&&(r.crossOrigin="anonymous"),r.type="text/html",r.rel="prefetch";const n=()=>{this.isInitialized=!0,e()};try{r.relList&&r.relList.supports&&r.relList.supports("prefetch")?(r.onload=n,r.onerror=()=>{t(new Error(`Please serve redirect.html present in serviceworker folder of this package on ${this.config.redirect_uri}`))},document.head.appendChild(r)):n()}catch(Lde){n()}})):Promise.resolve()}}const wte=(e,t,r)=>Promise.race([e(),new Promise(((e,n)=>setTimeout((()=>{n(new Error(r||"The operation has timed out"))}),t)))]),xte=async()=>wte((async()=>{const e=new bte({web3AuthClientId:"BBHmFdLXgGDzSiizRVMWtyL_7Dsoxu5B8zep2Pns8sGELslgXDbktJewVDVDDBlknEKkMCtzISLjJtxk60SK2-g",baseUrl:"https://umamiwallet.com/auth/v2/",redirectPathName:"redirect.html",redirectToOpener:!0,uxMode:"popup",network:"mainnet"});await e.init({skipSw:!0});const t=await e.triggerAggregateLogin({verifierIdentifier:"tezos-google",aggregateVerifierType:"single_id_verifier",subVerifierDetailsArray:[{clientId:"1070572364808-d31nlkneam5ee6dr0tu28fjjbsdkfta5.apps.googleusercontent.com",typeOfLogin:"google",verifier:"umami"}]});return{secretKey:Oc(t.finalKeyData.privKey||t.oAuthKeyData.privKey,nc[Js.SPSK]),email:t.userInfo[0].email}}),6e4),_te=e=>{let t="Something went wrong";"object"===typeof e&&"message"in e?t=e.message:"string"===typeof e&&(t=e);let r="";return"object"===typeof e&&"stack"in e&&(r=e.stack),{timestamp:(new Date).toISOString(),description:t,stacktrace:r}},Ste=()=>{const[e,t]=(0,i.useState)(!1),r=lz(),n=FR(),o=async(i,o)=>{if(!e){t(!0);try{return await i()}catch(a){const e=_te(a);throw r({description:e.description,status:"error",..."function"===typeof o?o(a):o}),n(Yd.actions.add(e)),a}finally{t(!1)}}};return{isLoading:e,handleAsyncAction:async(e,t)=>o(e,t).catch((()=>{})),handleAsyncActionUnsafe:o}},kte=({onAuth:e})=>{const{isLoading:t,handleAsyncAction:r}=Ste();return(0,xn.jsx)(_4,{width:"48px",background:"white",borderRadius:"full",_disabled:{bg:LP.gray[900]},"aria-label":"Google SSO","data-testid":"google-auth-button",icon:(0,xn.jsx)(S4,{size:"24px"}),isLoading:t,onClick:async()=>r((async()=>{const{secretKey:t,email:r}=await xte();return e(t,r)}),{title:"Social login failed"}),size:"lg",variant:"outline"})},Ete=({children:e,...t})=>(0,xn.jsxs)(eU,{color:LP.orange,fontSize:"12px",...t,children:[(0,xn.jsx)(qA,{as:$j,marginRight:"6px"}),e]}),Ate=({inputName:e,label:t="Password",placeholder:r="Enter your password",required:n="Password is required",validate:o,...a})=>{const{register:s}=PU(),[c,l]=(0,i.useState)(!1);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)($$,{children:t}),(0,xn.jsxs)(W$,{marginTop:"12px",children:[(0,xn.jsx)(Z$,{"aria-label":t,autoComplete:"off",placeholder:r,type:c?"text":"password",...s(e,{required:n,minLength:{value:n?8:0,message:"Your password must be at least 8 characters long"},validate:o}),...a}),(0,xn.jsx)(eH,{children:(0,xn.jsx)(Gn,{onClick:()=>l((e=>!e)),tabIndex:-1,variant:"unstyled",children:c?(0,xn.jsx)(Kj,{"data-testid":"eye-slash-icon"}):(0,xn.jsx)(qj,{width:"16.5px","data-testid":"eye-icon"})})})]})]})},Pte=({signer:e,onSubmit:t,isLoading:r,isDisabled:n,text:i})=>{const o=L$({mode:"onBlur",defaultValues:{password:""}}),{handleSubmit:a,formState:{errors:s,isValid:c}}=o,l=U3(),u=F3(),d=lz(),{isLoading:h,handleAsyncAction:f}=Ste(),p=h||r,m=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await t3({type:"mnemonic",secretKey:n,network:l}))})),g=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await t3({type:"secret_key",secretKey:n,network:l}))})),v=async()=>f((async()=>{const{secretKey:e}=await xte();t(await t3({type:"social",secretKey:e,network:l}))})),y=async()=>f((async()=>(d({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info",duration:6e4,isClosable:!0}),t(await t3({type:"ledger",account:e,network:l})))));switch(e.type){case"secret_key":case"mnemonic":return(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsxs)(OU,{...o,children:[(0,xn.jsxs)(ZF,{isInvalid:!!s.password,marginY:"16px",children:[(0,xn.jsx)(Ate,{"data-testid":"password",inputName:"password"}),s.password&&(0,xn.jsx)(Ete,{children:s.password.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"8px",isDisabled:n||!c,isLoading:p,onClick:a("mnemonic"===e.type?m:g),size:"lg",type:"submit",children:i||"Submit Transaction"})]})});case"social":return(0,xn.jsx)(Gn,{width:"100%",isDisabled:n,isLoading:p,onClick:v,size:"lg",children:i||"Sign with Google"});case"ledger":return(0,xn.jsx)(Gn,{width:"100%",isDisabled:n,isLoading:p,onClick:y,size:"lg",children:i||"Sign with Ledger"})}},Ote=({request:e,onSuccess:t})=>{const r=Kq()(e.sourceAddress),n=lz();if(!r)return(0,xn.jsx)("div",{children:'"unknown account"'});return(0,xn.jsxs)(oF,{children:[(0,xn.jsxs)(sF,{marginBottom:"10px",children:["Sign payload request from ",e.appMetadata.name]}),(0,xn.jsx)(aF,{}),(0,xn.jsx)(uF,{children:e.payload}),(0,xn.jsx)(rU,{justifyContent:"center",display:"flex",children:(0,xn.jsx)(Pte,{onSubmit:async r=>{const i=await r.signer.sign(e.payload),o={type:qM.SignPayloadResponse,id:e.id,signingType:e.signingType,signature:i.prefixSig};await Zte.respond(o),n({description:"Successfully submitted Beacon operation",status:"success"}),t()},signer:r})})]})},Tte=e=>(0,xn.jsx)(qA,{width:"14px",height:"14px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13 1L7 7M13 1V4.375M13 1H9.625M12.25 7.375V10.6C12.25 11.4401 12.25 11.8601 12.0865 12.181C11.9427 12.4632 11.7132 12.6927 11.431 12.8365C11.1101 13 10.6901 13 9.85 13H3.4C2.55992 13 2.13988 13 1.81901 12.8365C1.53677 12.6927 1.3073 12.4632 1.16349 12.181C1 11.8601 1 11.4401 1 10.6V4.15C1 3.30992 1 2.88988 1.16349 2.56901C1.3073 2.28677 1.53677 2.0573 1.81901 1.91349C2.13988 1.75 2.55992 1.75 3.4 1.75H6.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Cte=({hash:e})=>{const t=`${U3().tzktExplorerUrl}/${e}`,{onClose:r}=(0,i.useContext)(EM),n=eT();return(0,xn.jsxs)(oF,{paddingY:"20px",children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{textAlign:"center",children:(0,xn.jsx)(Ln,{children:"Operation Submitted"})}),(0,xn.jsx)(uF,{children:(0,xn.jsx)(_n,{justifyContent:"center",marginTop:"10px",children:(0,xn.jsx)(lF,{color:"text.dark",textAlign:"center",size:"sm",children:"You can follow this operation's progress in the Operations section. It may take up to 30 seconds to appear."})})}),(0,xn.jsxs)(rU,{justifyContent:"center",flexDirection:"column",width:"100%",children:[(0,xn.jsx)(Gn,{width:"100%",onClick:()=>{r(),n("/operations")},size:"lg",children:"See all Operations"}),(0,xn.jsx)(PT,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,xn.jsx)(_n,{alignItems:"center",marginTop:"24px",children:(0,xn.jsxs)(Gn,{variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"View in Tzkt"}),(0,xn.jsx)(Tte,{stroke:"currentcolor"})]})})})]})]})},jte=(e,t)=>{const{onClose:r}=(0,i.useContext)(EM),[n,o]=(0,i.useState)(null),a=U3(),{isLoading:s,handleAsyncAction:c}=Ste(),{openWith:l}=(0,i.useContext)(EM),u=L$({mode:"onBlur",defaultValues:{signer:e.signer.address.pkh,sender:e.sender.address.pkh}});(0,i.useEffect)((()=>{c((async()=>{const t=await c3(e,a);o(t)}),(e=>(r(),{title:"Error",description:`Error while processing beacon request: ${e.message}`,status:"error"})))}),[a,e]);return{fee:n,form:u,isSigning:s,onSign:async r=>c((async()=>{const{opHash:n}=await D3(e,r);l((0,xn.jsx)(Cte,{hash:n})),t(n)}))}},Rte=({mutezAmount:e})=>(0,xn.jsxs)(_n,{alignItems:"center",height:"60px",padding:"15px",background:LP.gray[800],borderRadius:"4px",children:[(0,xn.jsx)(AR,{marginRight:"12px"}),(0,xn.jsx)(_n,{alignItems:"end",children:(0,xn.jsx)(l4,{number:G3(e)})})]}),Ite=({fee:e})=>(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Fee:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"fee",size:"sm",children:G3(e)})]}),Mte=wn(sF,{baseStyle:{padding:0,paddingBottom:"32px",textAlign:"center"}}),Lte=({title:e="Send",subTitle:t="Send one or insert into batch"})=>(0,xn.jsxs)(Mte,{children:[(0,xn.jsx)(Ln,{size:"2xl",children:e}),(0,xn.jsx)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:t}),(0,xn.jsx)(aF,{})]});function Nte(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,a=i.Children.toArray(e.path),s=v(((e,n)=>(0,xn.jsx)(qA,{ref:n,viewBox:t,...o,...e,children:a.length?a:(0,xn.jsx)("path",{fill:"currentColor",d:r})})));return s.displayName=n,s}var Dte=Nte({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});const zte=({onClick:e})=>(0,xn.jsx)(_4,{...XP,"aria-label":"Back","data-testid":"back-button",icon:(0,xn.jsx)(Dte,{width:"24px",height:"20px"}),onClick:e,size:"sm",variant:"ghost"}),Bte=(e,t)=>{let r;switch(e){case"implicit":r="batch"===t?"Submit":"Confirm";break;case"proposal":r="Propose"}switch(t){case"single":return`${r} Transaction`;case"batch":return`${r} Batch`}},Fte=e=>{switch(e.type){case"ledger":case"social":return;case"mnemonic":case"secret_key":return"Enter your password to confirm this transaction."}},Ute=({goBack:e,mode:t,operationsType:r,signer:n,title:i,description:o})=>(0,xn.jsxs)(Mte,{children:[e&&(0,xn.jsx)(zte,{onClick:e}),(0,xn.jsx)(Ln,{"data-testid":"sign-page-header",size:"2xl",children:i||Bte(r,t)}),(0,xn.jsx)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:o||Fte(n)}),(0,xn.jsx)(aF,{})]}),$te=({operation:e,onBeaconSuccess:t})=>{const{amount:r,contract:n,entrypoint:i,args:o}=e.operations[0],{isSigning:a,form:s,onSign:c,fee:l}=jte(e,t);return l?(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Rte,{mutezAmount:r}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,xn.jsx)(Ite,{fee:l})}),(0,xn.jsx)($$,{marginTop:"24px",children:"From "}),(0,xn.jsx)(d4,{address:e.sender.address}),(0,xn.jsx)($$,{marginTop:"24px",children:"To "}),(0,xn.jsx)(d4,{address:n}),(0,xn.jsx)($$,{marginTop:"24px",children:"Parameter"}),(0,xn.jsx)(DF,{allowToggle:!0,children:(0,xn.jsxs)(zF,{background:LP.gray[800],border:"none",borderRadius:"8px",children:[(0,xn.jsxs)(BF,{children:[(0,xn.jsx)(En,{flex:"1",textAlign:"left",children:"JSON"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(U$,{value:{entrypoint:i,values:o}})})]})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:a,onSubmit:c,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},Hte=({operation:e,onBeaconSuccess:t})=>{const{recipient:r}=e.operations[0],{isSigning:n,form:i,onSign:o,fee:a}=jte(e,t);return a?(0,xn.jsx)(OU,{...i,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:e.signer.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(Ite,{fee:a})})}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:r})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:n,onSubmit:o,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},Vte=({operation:e,onBeaconSuccess:t})=>{const{amount:r,recipient:n}=e.operations[0],{isSigning:i,form:o,onSign:a,fee:s}=jte(e,t);return s?(0,xn.jsx)(OU,{...o,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Rte,{mutezAmount:r}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,xn.jsx)(Ite,{fee:s})}),(0,xn.jsx)($$,{marginTop:"24px",children:"From "}),(0,xn.jsx)(d4,{address:e.sender.address}),(0,xn.jsx)($$,{marginTop:"24px",children:"To "}),(0,xn.jsx)(d4,{address:n})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:i,onSubmit:a,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},qte=({operation:e,onBeaconSuccess:t})=>{const{isSigning:r,form:n,onSign:i,fee:o}=jte(e,t);return o?(0,xn.jsx)(OU,{...n,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:e.signer.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,xn.jsx)(Ite,{fee:o})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:r,onSubmit:i,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},Kte=({operation:e,onBeaconSuccess:t})=>{switch(e.operations[0].type){case"tez":return(0,xn.jsx)(Vte,{onBeaconSuccess:t,operation:e});case"contract_call":return(0,xn.jsx)($te,{onBeaconSuccess:t,operation:e});case"delegation":return(0,xn.jsx)(Hte,{onBeaconSuccess:t,operation:e});case"undelegation":return(0,xn.jsx)(qte,{onBeaconSuccess:t,operation:e});case"fa1.2":case"fa2":case"contract_origination":throw new Error("Unsupported operation type")}},Wte=({message:e,onClose:t})=>{const r=Kq(),n=lz();switch(e.type){case qM.PermissionRequest:return(0,xn.jsx)(x4,{onSuccess:t,request:e});case qM.SignPayloadRequest:return(0,xn.jsx)(Ote,{onSuccess:t,request:e});case qM.OperationRequest:{const o=r(e.sourceAddress);if(!o)return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(aF,{}),"A request came through Beacon",(0,xn.jsx)("br",{}),"but the requested account is not in this wallet ",e.sourceAddress]});try{const r=Gte(e,o),i=async r=>{const i={type:qM.OperationResponse,id:e.id,transactionHash:r};try{await Zte.respond(i)}catch(o){console.warn("Failed to parse Beacon request",o),n({description:`Failed to confirm Beacon operation: ${o.message}`})}finally{t()}};return(0,xn.jsx)(Kte,{onBeaconSuccess:i,operation:r})}catch(i){return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(aF,{}),"Error handling Beacon operation request: ",i.message]})}}default:return(0,xn.jsxs)("div",{children:["Unsupported request: ",e.type]})}},Gte=({operationDetails:e},t)=>{if(0===e.length)throw new Error("Empty operation details!");if(e.length>1)throw new Error("Batch operation is not supported");const r=e[0],n=((e,t)=>{switch(e.kind){case GM.TRANSACTION:{const{destination:t,amount:r,parameters:n}=e;return nd(t)&&n?{type:"contract_call",amount:r,contract:od(t),entrypoint:n.entrypoint,args:n.value}:{type:"tez",amount:r,recipient:ad(e.destination)}}case GM.DELEGATION:{const{delegate:r}=e;return r?{type:"delegation",sender:t.address,recipient:ad(r)}:{type:"undelegation",sender:t.address}}default:return null}})(e[0],t);if(!n)throw new Error(`Unsupported operation: ${r.kind}`);return{type:"implicit",operations:[n],sender:t,signer:t}},Yte=Qu.object({id:Qu.string(),type:Qu.string(),name:Qu.string(),publicKey:Qu.string(),version:Qu.string(),icon:Qu.string().optional(),relayServer:Qu.string().optional()}).parse,Zte=new cz({name:"Umami",iconUrl:"",appUrl:"https://umamiwallet.com/"}),Xte="beaconPeers",Jte=()=>{const e=(0,Jn.useQueryClient)();return()=>e.refetchQueries(Xte)},Qte=()=>{const e=Jte(),t=(()=>{const e=Ei();return t=>e(Hd.actions.removeConnection({dAppId:t}))})();return r=>Zte.removePeer(r).then((()=>t(r.senderId))).then(e)},ere=()=>{const e=Jte(),t=lz();return r=>{(new ML).deserialize(r).then(Yte).then((t=>{Zte.addPeer(t).then(e)})).catch((e=>{t({description:"Beacon sync code in the clipboard is invalid. Please copy a beacon sync code from the dApp",status:"error"}),console.error(e)}))}},tre=({children:e})=>{const{openWith:t,onClose:r}=(0,i.useContext)(EM);return(0,i.useEffect)((()=>{Zte.init().then((()=>{Zte.connect((e=>{t((0,xn.jsx)(Wte,{message:e,onClose:r}))}))})).catch(console.error)}),[r,t]),(0,xn.jsx)(xn.Fragment,{children:e})},rre=1963879877,nre=-1890025422,ire=e=>({address:od(e.address),threshold:Number(e.storage.threshold),signers:e.storage.signers.map(ad),pendingOperationsBigmapId:e.storage.pending_ops}),ore=async(e,t)=>O3((async()=>{const r=await(e=>O3((async()=>{try{const t=`${e.tzktApiUrl}/v1/contracts?typeHash=1963879877&codeHash=-1890025422&includeStorage=true&limit=10000`,{data:r}=await xj.get(t);return r}catch(t){throw new Error(`Error fetching same contracts from tzkt: ${t.message}`)}})))(t);return r.filter((({storage:{signers:t}})=>{if(!(0,ts.every)(t,id))return!1;const r=t.filter((t=>e.has(t)));return r.length>0})).map(ire)})),are=e=>{const{bigmap:t,key:r,value:n}=e;if(null===r||null===n)throw new Error("parseMultisigOperation failed");return{id:r,bigmapId:t,rawActions:n.actions,approvals:n.approvals.map(ad)}},sre=async(e,t)=>0===e.length?[]:O3((async()=>{const r=e.map((e=>e.pendingOperationsBigmapId)),n=await((e,t)=>0===e.length?Promise.resolve([]):O3((async()=>{const r=`${t.tzktApiUrl}/v1/bigmaps/keys?active=true&bigmap.in=${e.join(",")}&limit=10000`,{data:n}=await xj.get(r);return n})))(r,t);return(0,ts.compact)(n.map(are))})),cre=async(e,t,r)=>{const n=await sre(r,t);e(Jd.setPendingOperations(n.flat()))},lre=async(e,t,r)=>{const n=await T3(r,t);e(Ld.updateTezBalance(n.flat()))},ure=async(e,t,r)=>{const n=await C3(r,t),i=n.flat().map((({token:e,lastLevel:t})=>({...e,lastLevel:t})));e(ih.addTokens({network:t,tokens:i})),e(Ld.updateTokenBalance(n.flat()))},dre=async e=>{const t=await(async()=>{const{data:{data:{priceUsd:e}}}=await xj.get("https://api.coincap.io/v2/assets/tezos");return null!==e&&void 0!==e?e:null})();e(Ld.updateConversionRate({rate:t}))},hre=()=>{const e=FR(),t=qq(),r=UR((e=>e.assets.refetchTrigger)),n=U3(),o=(0,Jn.useQueryClient)(),a=lz(),s=t.map((e=>e.address.pkh)),c=(0,i.useCallback)((t=>{e(Yd.actions.add(_te(t))),a({description:`Data fetching error: ${t.message}`,status:"error",isClosable:!0})}),[e,a]),l=(0,Jn.useQuery)("allAssets",{queryFn:()=>(async(e,t,r)=>{try{e(Ld.setIsLoading(!0));const n=await ore(new Set(r),t);e(Jd.setMultisigs(n));const i=[...r,...n.map((e=>e.address.pkh))];await Promise.all([cre(e,t,n),lre(e,t,i),ure(e,t,i)]),e(Ld.setLastTimeUpdated((new Date).toUTCString()))}finally{e(Ld.setIsLoading(!1))}})(e,n,s),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),u=(0,Jn.useQuery)("conversionRate",{queryFn:()=>dre(e),onError:c,refetchInterval:3e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),d=(0,Jn.useQuery)("blockNumber",{queryFn:()=>(async(e,t)=>{const r=await L3(t);e(Ld.updateBlockLevel(r))})(e,n),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),h=(0,Jn.useQuery)("bakers",{queryFn:()=>(async(e,t)=>{const r=(await N3(t)).map((({address:e,alias:t,stakingBalance:r})=>({address:e,stakingBalance:r,name:null!==t&&void 0!==t?t:"Unknown baker"})));e(Ld.updateBakers(r))})(e,n),onError:c,retry:!1,refetchInterval:72e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),f=(0,i.useRef)(u),p=(0,i.useRef)(d),m=(0,i.useRef)(l),g=(0,i.useRef)(h);(0,i.useEffect)((()=>{o.cancelQueries({queryKey:"allAssets"}),o.cancelQueries({queryKey:"conversionRate"}),o.cancelQueries({queryKey:"blockNumber"}),o.cancelQueries({queryKey:"bakers"}),f.current.refetch(),p.current.refetch(),m.current.refetch(),g.current.refetch()}),[n,r,o])},fre=()=>{const e=lz(),t=ere(),r=(0,i.useRef)(t),n=(0,i.useRef)(e),o=(e,t)=>{const i=t.replace(":///","://");if(i.startsWith("umami://auth/")){const e=(e=>{const t=e.replace("umami://auth/",""),r=new URLSearchParams(t),n={instanceParams:{insanceId:r.get("instanceId"),verifier:r.get("verifier"),typeOfLogin:r.get("typeOfLogin"),redirectToOpener:r.get("redirectToOpener")},hashParams:{state:r.get("state"),access_token:r.get("access_token"),token_type:r.get("token_type"),expires_in:r.get("expires_in"),scope:r.get("scope"),id_token:r.get("id_token"),authuser:r.get("authuser"),hd:r.get("hd"),prompt:r.get("prompt")}};return{channel:r.get("channel"),data:n,error:r.get("error")}})(i);window.postMessage(e)}else if(i.startsWith("umami://?type=tzip10&data=")){const e=new URL(i).searchParams.get("data");e?r.current(e):n.current({title:"Linkhandler",description:"Data Payload missing"})}else n.current({title:"Linkhandler",description:"Unsupported link type"})};(0,i.useEffect)((()=>{const e=window;return e&&e.electronAPI&&e.electronAPI.onDeeplink(o),()=>{}}),[])};var pre=v(((e,t)=>{var r;const{overflow:n,overflowX:i,className:o,...a}=e;return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-table__container",o),...a,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(r=null!=n?n:i)?r:"auto",overflowY:"hidden",maxWidth:"100%"}})})),[mre,gre]=Nn({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),vre=v(((e,t)=>{const r=Mn("Table",e),{className:n,layout:i,...o}=ft(e);return(0,xn.jsx)(mre,{value:r,children:(0,xn.jsx)(wn.table,{ref:t,__css:{tableLayout:i,...r.table},className:y("chakra-table",n),...o})})}));vre.displayName="Table";var yre=v(((e,t)=>{const r=gre();return(0,xn.jsx)(wn.tbody,{...e,ref:t,__css:r.tbody})})),bre=v(((e,t)=>{const r=gre();return(0,xn.jsx)(wn.tr,{...e,ref:t,__css:r.tr})})),wre=v((({isNumeric:e,...t},r)=>{const n=gre();return(0,xn.jsx)(wn.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}));function xre(e){return lR({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"}}]})(e)}function _re(e){return lR({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}}]})(e)}function Sre(e){return lR({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:"currentColor"}}]})(e)}function kre(e){return lR({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:"currentColor"}}]})(e)}const Ere="TOAST_ID",Are=({pkh:e,formatAddress:t=!0,copyable:r=!0,iconColor:n=LP.gray[600],...i})=>(0,xn.jsx)(Pre,{copyValue:r?e:void 0,displayText:t?Y3(e):e,iconColor:n,toastMessage:"Address copied to clipboard",...i}),Pre=({displayText:e,copyValue:t,toastMessage:r,iconColor:n,...i})=>{const o=lz();return(0,xn.jsxs)(_n,{alignItems:"center",...i,children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[400],size:"sm",children:e}),t&&(0,xn.jsx)(Xj,{stroke:LP.gray[450],_hover:{stroke:LP.green},cursor:"pointer",onClick:()=>(async()=>{t&&(await navigator.clipboard.writeText(t),r&&!o.isActive(Ere)&&o({id:Ere,render:()=>(0,xn.jsx)(Ore,{message:r,onClose:()=>{o.close(Ere)}})}))})()})]})},Ore=({message:e,onClose:t})=>(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",padding:2,borderRadius:"4px",backgroundColor:"white",children:[(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(qA,{as:xre,margin:1,color:LP.green}),(0,xn.jsx)(lF,{color:"black",children:e})]}),(0,xn.jsx)(qA,{as:kre,color:"black",_hover:{color:LP.gray[600]},cursor:"pointer",onClick:t})]}),Tre=({title:e,buttonText:t,contact:r})=>{const n=FR(),o=Zq(),{isOpen:a,onClose:s}=(0,i.useContext)(EM),{handleSubmit:c,formState:{isValid:l,errors:u},register:d,reset:h,getValues:f}=L$({mode:"onBlur",defaultValues:r}),p=void 0!==r,m=Wq(),{nameExistsInContacts:g,addressExistsInContacts:v}=Uq(),y=(0,i.useRef)(h);return(0,i.useEffect)((()=>{a&&y.current(r)}),[a,r]),(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:c((({name:e,pkh:t})=>{var r;r={name:e.trim(),pkh:t},o(r.pkh)||(n(Wd.upsert(r)),s()),h()})),children:[(0,xn.jsx)(sF,{textAlign:"center",children:e}),(0,xn.jsx)(aF,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!u.name,marginY:5,children:[(0,xn.jsx)($$,{children:"Name"}),(0,xn.jsx)(Z$,{type:"text",...d("name",{required:"Name is required",validate:e=>m.map((e=>e.label)).includes(e)?"Name already used in accounts":!g(e.trim())||"Name already registered"}),placeholder:"Enter contact's name"}),u.name&&(0,xn.jsx)(Ete,{children:u.name.message})]}),(0,xn.jsxs)(ZF,{isInvalid:!!u.pkh,marginY:5,children:[(0,xn.jsx)($$,{children:"Address"}),(0,xn.jsx)(Z$,{type:"text",...d("pkh",{required:"Address is required",validate:e=>rd(e)?p?f("name")!==r.name:o(e)?"Address already used in accounts":!v(e)||"Address already registered":"Invalid address"}),disabled:p,placeholder:"Enter contact\u2019s tz address",value:null===r||void 0===r?void 0:r.pkh,variant:p?"filled":void 0}),u.pkh&&(0,xn.jsx)(Ete,{children:u.pkh.message})]})]}),(0,xn.jsx)(rU,{padding:"16px 0 0 0",children:(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,isDisabled:!l,size:"lg",type:"submit",children:t})})})]})})},Cre=({contact:e})=>{const t=FR(),{onClose:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(sF,{marginBottom:"10px",textAlign:"center",children:"Delete Contact"}),(0,xn.jsx)(aF,{}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:[(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:"Are you sure you want to remove this contact?"}),(0,xn.jsxs)(En,{marginTop:5,children:[(0,xn.jsx)(Ln,{marginBottom:3,textAlign:"center",size:"md",children:e.name}),(0,xn.jsx)(Are,{pkh:e.pkh})]})]})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,onClick:()=>{t(Wd.remove(e.pkh)),r()},variant:"warning",children:"Delete"})})})]})};var jre=v((function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:i,borderRightWidth:o,borderWidth:a,borderStyle:s,borderColor:c,...l}=In("Divider",e),{className:u,orientation:d="horizontal",__css:h,...f}=ft(e),p={vertical:{borderLeftWidth:r||o||a||"1px",height:"100%"},horizontal:{borderBottomWidth:n||i||a||"1px",width:"100%"}};return(0,xn.jsx)(wn.hr,{ref:t,"aria-orientation":d,...f,__css:{...l,border:"0",borderColor:c,borderStyle:s,...p[d],...h},className:y("chakra-divider",u)})}));function Rre(e){const{isOpen:t,ref:r}=e,[n,o]=(0,i.useState)(t),[a,s]=(0,i.useState)(!1);(0,i.useEffect)((()=>{a||(o(t),s(!0))}),[t,a,n]),YV((()=>r.current),"animationend",(()=>{o(t)}));return{present:!(!t&&!n),onComplete(){var e;const t=function(e){var t,r;return null!=(r=null==(t=WB(e))?void 0:t.defaultView)?r:window}(r.current),n=new t.CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}jre.displayName="Divider";var Ire=()=>"undefined"!==typeof window;var Mre=e=>Ire()&&e.test(function(){var e;const t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),Lre=()=>Mre(/mac|iphone|ipad|ipod/i)&&(e=>Ire()&&e.test(navigator.vendor))(/apple/i);function Nre(e){const t=e.current;if(!t)return!1;const r=function(e){return WB(e).activeElement}(t);return!!r&&(!t.contains(r)&&!(!((n=r)&&KB(n)&&XB(n))||YB(n)));var n}function Dre(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;Eb((()=>{if(!o)return;if(Nre(e))return;const t=(null==i?void 0:i.current)||e.current;let r;return t?(r=requestAnimationFrame((()=>{t.focus({preventScroll:!0})})),()=>{cancelAnimationFrame(r)}):void 0}),[o,e,i])}var zre={preventScroll:!0,shouldFocus:!1};function Bre(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||(!!n||!("keepMounted"!==i||!t))}var Fre={click:"click",hover:"hover"};function Ure(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:o,returnFocusOnClose:a=!0,autoFocus:s=!0,arrowSize:c,arrowShadowColor:l,trigger:u=Fre.click,openDelay:d=200,closeDelay:h=200,isLazy:f,lazyBehavior:p="unmount",computePositionOnMount:m,...g}=e,{isOpen:v,onClose:y,onOpen:b,onToggle:w}=GV(e),x=(0,i.useRef)(null),_=(0,i.useRef)(null),S=(0,i.useRef)(null),k=(0,i.useRef)(!1),A=(0,i.useRef)(!1);v&&(A.current=!0);const[P,O]=(0,i.useState)(!1),[T,C]=(0,i.useState)(!1),j=(0,i.useId)(),R=null!=o?o:j,[I,M,L,N]=["popover-trigger","popover-content","popover-header","popover-body"].map((e=>`${e}-${R}`)),{referenceRef:D,getArrowProps:z,getPopperProps:B,getArrowInnerProps:F,forceUpdate:U}=KV({...g,enabled:v||!!m}),$=Rre({isOpen:v,ref:S});!function(e){const{ref:t,elements:r,enabled:n}=e,i=()=>{var e,r;return null!=(r=null==(e=t.current)?void 0:e.ownerDocument)?r:document};YV(i,"pointerdown",(e=>{if(!Lre()||!n)return;const o=e.target,a=(null!=r?r:[t]).some((e=>{const t="current"in e?e.current:e;return(null==t?void 0:t.contains(o))||t===o}));i().activeElement!==o&&a&&(e.preventDefault(),o.focus())}))}({enabled:v,ref:_}),Dre(S,{focusRef:_,visible:v,shouldFocus:a&&u===Fre.click}),function(e,t=zre){const{focusRef:r,preventScroll:n,shouldFocus:o,visible:a}=t,s="current"in e?e.current:e,c=o&&a,l=(0,i.useRef)(c),u=(0,i.useRef)(a);Oh((()=>{!u.current&&a&&(l.current=c),u.current=a}),[a,c]);const d=(0,i.useCallback)((()=>{if(a&&s&&l.current&&(l.current=!1,!s.contains(document.activeElement)))if(null==r?void 0:r.current)requestAnimationFrame((()=>{var e;null==(e=r.current)||e.focus({preventScroll:n})}));else{const e=tF(s);e.length>0&&requestAnimationFrame((()=>{e[0].focus({preventScroll:n})}))}}),[a,n,s,r]);Eb((()=>{d()}),[d]),YV(s,"transitionend",d)}(S,{focusRef:n,visible:v,shouldFocus:s&&u===Fre.click});const H=Bre({wasSelected:A.current,enabled:f,mode:p,isSelected:$.present}),V=(0,i.useCallback)(((e={},n=null)=>{const i={...e,style:{...e.style,transformOrigin:dH.transformOrigin.varRef,[dH.arrowSize.var]:c?`${c}px`:void 0,[dH.arrowShadowColor.var]:l},ref:Kn(S,n),children:H?e.children:null,id:M,tabIndex:-1,role:"dialog",onKeyDown:E(e.onKeyDown,(e=>{r&&"Escape"===e.key&&y()})),onBlur:E(e.onBlur,(e=>{const r=Hre(e),n=$re(S.current,r),i=$re(_.current,r);v&&t&&(!n&&!i)&&y()})),"aria-labelledby":P?L:void 0,"aria-describedby":T?N:void 0};return u===Fre.hover&&(i.role="tooltip",i.onMouseEnter=E(e.onMouseEnter,(()=>{k.current=!0})),i.onMouseLeave=E(e.onMouseLeave,(e=>{null!==e.nativeEvent.relatedTarget&&(k.current=!1,setTimeout((()=>y()),h))}))),i}),[H,M,P,L,T,N,u,r,y,v,t,h,l,c]),q=(0,i.useCallback)(((e={},t=null)=>B({...e,style:{visibility:v?"visible":"hidden",...e.style}},t)),[v,B]),K=(0,i.useCallback)(((e,t=null)=>({...e,ref:Kn(t,x,D)})),[x,D]),W=(0,i.useRef)(),G=(0,i.useRef)(),Y=(0,i.useCallback)((e=>{null==x.current&&D(e)}),[D]),Z=(0,i.useCallback)(((e={},r=null)=>{const n={...e,ref:Kn(_,r,Y),id:I,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":M};return u===Fre.click&&(n.onClick=E(e.onClick,w)),u===Fre.hover&&(n.onFocus=E(e.onFocus,(()=>{void 0===W.current&&b()})),n.onBlur=E(e.onBlur,(e=>{const r=Hre(e),n=!$re(S.current,r);v&&t&&n&&y()})),n.onKeyDown=E(e.onKeyDown,(e=>{"Escape"===e.key&&y()})),n.onMouseEnter=E(e.onMouseEnter,(()=>{k.current=!0,W.current=window.setTimeout((()=>b()),d)})),n.onMouseLeave=E(e.onMouseLeave,(()=>{k.current=!1,W.current&&(clearTimeout(W.current),W.current=void 0),G.current=window.setTimeout((()=>{!1===k.current&&y()}),h)}))),n}),[I,v,M,u,Y,w,b,t,y,d,h]);(0,i.useEffect)((()=>()=>{W.current&&clearTimeout(W.current),G.current&&clearTimeout(G.current)}),[]);const X=(0,i.useCallback)(((e={},t=null)=>({...e,id:L,ref:Kn(t,(e=>{O(!!e)}))})),[L]),J=(0,i.useCallback)(((e={},t=null)=>({...e,id:N,ref:Kn(t,(e=>{C(!!e)}))})),[N]);return{forceUpdate:U,isOpen:v,onAnimationComplete:$.onComplete,onClose:y,getAnchorProps:K,getArrowProps:z,getArrowInnerProps:F,getPopoverPositionerProps:q,getPopoverProps:V,getTriggerProps:Z,getHeaderProps:X,getBodyProps:J}}function $re(e,t){return e===t||(null==e?void 0:e.contains(t))}function Hre(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:r}var[Vre,qre]=Nn({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[Kre,Wre]=Nn({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "});function Gre(e){const t=Mn("Popover",e),{children:r,...n}=ft(e),i=Ure({...n,direction:On().direction});return(0,xn.jsx)(Vre,{value:i,children:(0,xn.jsx)(Kre,{value:t,children:x(r,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}function Yre(e){const t=i.Children.only(e.children),{getTriggerProps:r}=qre();return(0,i.cloneElement)(t,r(t.props,t.ref))}function Zre(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}Gre.displayName="Popover",Yre.displayName="PopoverTrigger";var Xre={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Jre=wn(FA.section),Qre=v((function(e,t){const{variants:r=Xre,...n}=e,{isOpen:i}=qre();return(0,xn.jsx)(Jre,{ref:t,variants:Zre(r),initial:!1,animate:i?"enter":"exit",...n})}));Qre.displayName="PopoverTransition";var ene=v((function(e,t){const{rootProps:r,motionProps:n,...i}=e,{getPopoverProps:o,getPopoverPositionerProps:a,onAnimationComplete:s}=qre(),c=Wre(),l={position:"relative",display:"flex",flexDirection:"column",...c.content};return(0,xn.jsx)(wn.div,{...a(r),__css:c.popper,className:"chakra-popover__popper",children:(0,xn.jsx)(Qre,{...n,...o(i,t),onAnimationComplete:A(s,i.onAnimationComplete),className:y("chakra-popover__content",e.className),__css:l})})}));ene.displayName="PopoverContent";var tne=v((function(e,t){const{getBodyProps:r}=qre(),n=Wre();return(0,xn.jsx)(wn.div,{...r(e,t),className:y("chakra-popover__body",e.className),__css:n.body})}));tne.displayName="PopoverBody";const rne=e=>{const{onOpen:t,onClose:r,isOpen:n}=YR();return(0,xn.jsxs)(Gre,{isOpen:n,onClose:r,onOpen:t,placement:"bottom-start",children:[(0,xn.jsx)(Yre,{children:(0,xn.jsx)(Gn,{minWidth:"24px",height:"24px",padding:"0",background:n?LP.green:LP.gray[500],border:"none",borderRadius:"full",_hover:{bg:n?LP.green:LP.gray[450]},"data-testid":"popover-cta",variant:"unstyled",children:(0,xn.jsx)(Sn,{children:(0,xn.jsx)(qA,{as:_re,display:"inline",color:LP.white})})})}),(0,xn.jsx)(ene,{width:"100px",background:LP.gray[700],children:(0,xn.jsx)(tne,{borderRadius:"lg",children:e.children})})]})},nne=({onRename:e,onRemove:t})=>(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(rne,{children:(0,xn.jsxs)(En,{paddingY:"0",children:[(0,xn.jsx)(Gn,{height:t?"24px":"28px",onClick:e,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Rename"}),(0,xn.jsx)(bR,{stroke:"inherit"})]})}),t&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{marginY:"4px"}),(0,xn.jsx)(Gn,{"data-testid":"popover-remove",onClick:t,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Remove"}),(0,xn.jsx)(jR,{stroke:"inherit"})]})})]})]})})}),ine=({onClick:e,...t})=>(0,xn.jsxs)(Gn,{width:"60px",onClick:e,variant:"specialCTA",...t,children:[(0,xn.jsx)(yR,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",children:"Send"})]}),one=({sender:e,operationType:t,isLoading:r,reEstimate:n})=>{switch(t){case"proposal":return(0,xn.jsx)(ZF,{marginTop:"24px","data-testid":"signer-selector",children:(0,xn.jsx)(w4,{account:e,inputName:"signer",isLoading:r,keepValid:!0,label:"Select Proposer",onUpdate:n})});case"implicit":return null}},ane=(e,t,r)=>{switch(e.type){case"ledger":case"mnemonic":case"social":case"secret_key":if(e.address.pkh!==t.address.pkh)throw new Error("Sender and Signer must be the same");return{type:"implicit",operations:r,signer:e,sender:e};case"multisig":return{type:"proposal",operations:r,sender:e,signer:t}}},sne=()=>{const e=FR(),t=U3();return r=>e(Ud.clear({pkh:r.address.pkh,network:t}))},cne=({isLoading:e,isValid:t,onSingleSubmit:r,onAddToBatch:n,showPreview:i=!0})=>(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsxs)(En,{width:"100%",children:[i&&(0,xn.jsx)(Gn,{width:"100%",marginBottom:"16px",isDisabled:!t,isLoading:e,onClick:r,size:"lg",type:"submit",children:"Preview"}),(0,xn.jsx)(Gn,{width:"100%",isDisabled:!t,isLoading:e,onClick:n,size:"lg",type:"submit",variant:"tertiary",children:"Insert Into Batch"})]})}),lne=({sender:e,form:t})=>t||(e?{sender:e.address.pkh}:{}),une=(e,t,r)=>{const[n,o]=(0,i.useState)(!1),a=(()=>{const e=Kq();return t=>e(t)})(),[s,c]=(0,i.useState)(e),[l,u]=(0,i.useState)(t),d=U3(),h=sne(),{isLoading:f,handleAsyncAction:p,handleAsyncActionUnsafe:m}=Ste(),{openWith:g}=(0,i.useContext)(EM),v=L$({mode:"onBlur",defaultValues:{signer:l.signer.address.pkh,sender:l.sender.address.pkh}}),y=v.watch("signer");return{fee:s,estimationFailed:n,operations:l,isLoading:f,form:v,signer:a(y),reEstimate:async e=>m((async()=>{const t={...l,signer:a(e)};c(await c3(l,d)),u(t),o(!1)}),{isClosable:!0,duration:null}).catch((()=>o(!0))),onSign:async e=>p((async()=>{const t=await D3(l,e);return"batch"===r&&h(l.sender),g((0,xn.jsx)(Cte,{hash:t.opHash})),t})),handleAsyncAction:p}},dne=e=>{const t=Xq(),r=eK();return n=>{const i=t(n.sender);return ane(i,r(i),[e(n)])}},hne=e=>{e<0&&(console.warn("Decimals cannot be negative"),e=0);return`${0===e?"":"0."+(0,ts.repeat)("0",e-1)}1`},fne=e=>t=>{if(t.includes(".")){if(t.split(".")[1].length>e)return`Please enter a value with up to ${e} decimal places`}return!0},pne=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=une(n,r,t),{amount:h,recipient:f}=o.operations[0];return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:o.type,signer:o.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Rte,{mutezAmount:h}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,xn.jsx)(Ite,{fee:i})}),(0,xn.jsx)($$,{marginTop:"24px",children:"From "}),(0,xn.jsx)(d4,{address:o.sender.address}),(0,xn.jsx)($$,{marginTop:"24px",children:"To "}),(0,xn.jsx)(d4,{address:f}),(0,xn.jsx)(one,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:Bte(o.type,t)})})]})})})},mne=(e,t)=>async r=>{await c3(e,t),r(Ud.add({operations:e,network:t}))},gne=({SignPage:e,signPageExtraData:t,FormPage:r,defaultFormPageProps:n,toOperation:o})=>{const{openWith:a}=(0,i.useContext)(EM),s=dne(o),c=U3();return async i=>{const o=s(i);a((0,xn.jsx)(e,{data:t,fee:await c3(o,c),goBack:()=>{a((0,xn.jsx)(r,{...n,form:i}))},mode:"single",operations:o}))}},vne=e=>{const{onClose:t}=(0,i.useContext)(EM),r=U3(),n=dne(e),o=FR(),a=lz();return async e=>{const i=n(e);await o(mne(i,r)),a({description:"Transaction added to batch!",status:"success"}),t()}},yne=e=>{const{handleAsyncAction:t,isLoading:r}=Ste();return{onFormSubmitActionHandlers:e.map((e=>async r=>t((()=>e(r))))),isLoading:r}},bne=({showPreview:e=!0,...t})=>{const r=gne({SignPage:pne,signPageExtraData:void 0,FormPage:bne,defaultFormPageProps:t,toOperation:wne}),n=vne(wne),{onFormSubmitActionHandlers:[i,o],isLoading:a}=yne([r,n]),s=L$({mode:"onBlur",defaultValues:lne(t)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!l.prettyAmount,children:[(0,xn.jsx)($$,{children:"Amount"}),(0,xn.jsxs)(W$,{children:[(0,xn.jsx)(Z$,{isDisabled:a,step:hne(6),type:"number",...u("prettyAmount",{required:"Amount is required",validate:fne(6)}),placeholder:"0.000000"}),(0,xn.jsx)(eH,{children:"\ua729"})]}),l.prettyAmount&&(0,xn.jsx)(Ete,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!!t.sender,label:"From"}),l.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:l.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,xn.jsx)(g4,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,xn.jsx)(Ete,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i),showPreview:e})})]})})})},wne=e=>({type:"tez",amount:K3(e.prettyAmount).toFixed(),recipient:td(e.recipient)}),xne=({contacts:e})=>{const{openWith:t}=(0,i.useContext)(EM);return(0,xn.jsx)(En,{overflow:"auto",background:LP.gray[900],borderRadius:"8px",paddingX:"30px",children:(0,xn.jsx)(pre,{overflowX:"unset",overflowY:"unset",children:(0,xn.jsx)(vre,{children:(0,xn.jsx)(yre,{children:e.map(((r,n)=>{const i=n===e.length-1?"transparent":LP.gray[700];return(0,xn.jsxs)(bre,{"data-testid":"contact-row",children:[(0,xn.jsx)(wre,{borderColor:i,"data-testid":"contact-row-name",paddingX:"0",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(En,{width:"150px",marginRight:"40px",children:(0,xn.jsx)(lF,{overflow:"hidden",fontWeight:600,whiteSpace:"nowrap",textOverflow:"ellipsis",children:r.name})}),(0,xn.jsx)(Are,{justifyContent:"space-between","data-testid":"contact-row-pkh",formatAddress:!1,iconColor:LP.gray[400],pkh:r.pkh})]})}),(0,xn.jsx)(wre,{borderColor:i,paddingX:"0",children:(0,xn.jsxs)(_n,{justifyContent:"end",children:[(0,xn.jsx)(ine,{marginRight:"20px",onClick:()=>t((0,xn.jsx)(bne,{form:{sender:"",recipient:r.pkh,prettyAmount:""}}))}),(0,xn.jsx)(nne,{onRemove:()=>{t((0,xn.jsx)(Cre,{contact:r}))},onRename:()=>{t((0,xn.jsx)(Tre,{buttonText:"Update",contact:r,title:"Edit contact"}))}})]})})]},r.pkh)}))})})})})},_ne=({href:e,children:t,...r})=>(0,xn.jsx)(Zn,{alignItems:"center",display:"flex",_hover:{textDecoration:"none"},href:e,rel:"noopener noreferrer",role:"link",target:"_blank",...r,children:t}),Sne={md:{heading:"xl",description:"md",button:"md"},lg:{heading:"3xl",description:"xl",button:"lg"}},kne=({title:e,description:t,children:r,size:n})=>(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:(0,xn.jsxs)(En,{padding:"30px","data-testid":"empty-state-message",children:[(0,xn.jsx)(Ln,{marginBottom:"10px",textAlign:"center",size:Sne[n].heading,children:e}),(0,xn.jsx)(lF,{marginBottom:"30px",color:LP.gray[400],textAlign:"center",size:Sne[n].description,children:t}),(0,xn.jsx)(Sn,{children:r})]})}),Ene=({size:e,withViewAllButton:t})=>(0,xn.jsx)(kne,{description:"Your operations history will appear here...",size:e,title:"No operations to show",children:t&&(0,xn.jsx)(PT,{"data-testid":"view-all-operations-button",to:"/operations",children:(0,xn.jsx)(Gn,{size:Sne[e].button,children:"View All Operations"})})}),Ane=({size:e})=>(0,xn.jsx)(kne,{description:"Your NFT collection will appear here...",size:e,title:"No NFTs to show",children:(0,xn.jsx)(_ne,{"data-testid":"buy-nft-button",href:"https://objkt.com",children:(0,xn.jsx)(Gn,{size:Sne[e].button,children:"Buy your first NFT"})})}),Pne=({size:e})=>(0,xn.jsx)(kne,{description:"All of your tokens will appear here...",size:e,title:"No tokens to show"}),One=({size:e="lg",onDelegate:t})=>(0,xn.jsx)(kne,{description:"Your delegation history will appear here...",size:e,title:"No delegations to show",children:(0,xn.jsx)(Gn,{"data-testid":"delegation-empty-state-button",onClick:t,size:Sne[e].button,children:"Delegate"})});function Tne(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=function({defer:e}={}){const[,t]=(0,i.useReducer)((e=>e+1),0);return Oh((()=>{e&&t()}),[e]),(0,i.useContext)(Rh)}(),a=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter((e=>null!=e));const[c,l]=(0,i.useState)((()=>a.map(((e,t)=>({media:e,matches:r?!!s[t]:o().matchMedia(e).matches})))));return(0,i.useEffect)((()=>{const e=o();l(a.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=a.map((t=>e.matchMedia(t))),r=e=>{l((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"===typeof e.addListener?e.addListener(r):e.addEventListener("change",r)})),()=>{t.forEach((e=>{"function"===typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)}))}}),[o]),c.map((e=>e.matches))}function Cne(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}function jne(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new e.constructor(+e):"number"===typeof e||"[object Number]"===t||"string"===typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Rne(e,t){return+jne(e)-+jne(t)}function Ine(e,t,r){const n=Rne(e,t)/1e3;return Cne(r?.roundingMethod)(n)}Math.pow(10,8);const Mne=6048e5,Lne=864e5,Nne=43200;function Dne(e,t,r){const n=Rne(e,t)/6e4;return Cne(r?.roundingMethod)(n)}function zne(e,t){const r=jne(e),n=jne(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Bne(e,t){const r=jne(e),n=jne(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}function Fne(e){const t=jne(e);return t.setHours(23,59,59,999),t}function Une(e){const t=jne(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function $ne(e){const t=jne(e);return+Fne(t)===+Une(t)}function Hne(e,t){const r=jne(e),n=jne(t),i=zne(r,n),o=Math.abs(Bne(r,n));let a;if(o<1)a=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);let t=zne(r,n)===-i;$ne(jne(e))&&1===o&&1===zne(e,n)&&(t=!1),a=i*(o-Number(t))}return 0===a?0:a}const Vne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function qne(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Kne={date:qne({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:qne({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:qne({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Wne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Gne(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Yne={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Gne({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Gne({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gne({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Gne({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Gne({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Zne(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;re.test(a))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const Xne={ordinalNumber:(Jne={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Jne.matchPattern);if(!r)return null;const n=r[0],i=e.match(Jne.parsePattern);if(!i)return null;let o=Jne.valueCallback?Jne.valueCallback(i[0]):i[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:Zne({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Zne({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Zne({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Zne({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Zne({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Jne;const Qne={code:"en-US",formatDistance:(e,t,r)=>{let n;const i=Vne[e];return n="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Kne,formatRelative:(e,t,r,n)=>Wne[e],localize:Yne,match:Xne,options:{weekStartsOn:0,firstWeekContainsDate:1}};let eie={};function tie(){return eie}function rie(e){const t=jne(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function nie(e,t,r){const n=tie(),i=r?.locale??n.locale??Qne,o=zne(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o});let s,c;o>0?(s=jne(t),c=jne(e)):(s=jne(e),c=jne(t));const l=Ine(c,s),u=(rie(c)-rie(s))/1e3,d=Math.round((l-u)/60);let h;if(d<2)return r?.includeSeconds?l<5?i.formatDistance("lessThanXSeconds",5,a):l<10?i.formatDistance("lessThanXSeconds",10,a):l<20?i.formatDistance("lessThanXSeconds",20,a):l<40?i.formatDistance("halfAMinute",0,a):l<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):0===d?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",d,a);if(d<45)return i.formatDistance("xMinutes",d,a);if(d<90)return i.formatDistance("aboutXHours",1,a);if(d<1440){const e=Math.round(d/60);return i.formatDistance("aboutXHours",e,a)}if(d<2520)return i.formatDistance("xDays",1,a);if(d{const t=U3(),r="mainnet"===t.name,n=r?"Buy Tez":"Request Tez from faucet",i=L$({mode:"onBlur",defaultValues:{address:e}}),{formState:{isValid:o,errors:a}}=i;let s=t.buyTezUrl;return t.buyTezUrl&&r&&(s+="/default/widget/"),(0,xn.jsx)(OU,{...i,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{action:s,rel:"noreferrer noopener",target:"_blank",children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{marginBottom:"10px",textAlign:"center",children:"Buy Tez"}),r&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)("input",{name:"commodity",type:"hidden",value:"XTZ:Tezos"}),(0,xn.jsx)(lF,{color:LP.gray[400],textAlign:"center",size:"sm",children:"Please select the recipient account."}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(ZF,{"data-testid":"buy-tez-selector",isInvalid:!!a.address,paddingY:5,children:[(0,xn.jsx)(v4,{allowUnknown:!1,inputName:"address",isDisabled:!!e,label:"Recipient Account"}),a.address&&(0,xn.jsx)(Ete,{children:a.address.message})]})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(En,{width:"100%","data-testid":"buy-tez-button",children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,isDisabled:!o,size:"lg",type:"submit",children:n})})})]})})})},oie=e=>(0,xn.jsx)(qA,{width:"15px",height:"11px",fill:"none",stroke:"white",viewBox:"0 0 15 11",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.16602 5.98371L5.06345 9.85408L13.8327 1.14575",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),aie=()=>{const e=FR(),t=UR((e=>e.assets.isLoading)),r=UR((e=>e.assets.lastTimeUpdated)),[n,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),[c]=Tne("(max-width: 1200px)");if((0,i.useEffect)((()=>{if(!r)return;if(Ine(new Date,new Date(r))>1)return;o(!0),s(!0);const e=setTimeout((()=>o(!1)),2e3),t=setTimeout((()=>s(!1)),3500);return()=>{clearTimeout(e),clearTimeout(t)}}),[r]),c||null===r)return null;const l=Dne(new Date,new Date(r))>=2,u={opacity:n?1:0,transition:"opacity 2s ease-in-out"};return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(lF,{display:"inline",color:LP.gray[400],size:"sm",style:a?u:void 0,children:[a&&"Updated just now",l&&`Updated ${nie(new Date(r),new Date)} ago`]}),(0,xn.jsx)(_4,{marginRight:"36px",marginLeft:"8px",_active:{color:"white",bg:LP.green},"aria-label":"refetch",backgroundColor:a?LP.green:LP.gray[500],"data-testid":"refetch-button",icon:a?(0,xn.jsx)(oie,{style:u}):(0,xn.jsx)(Yj,{color:"white"}),isLoading:t,onClick:()=>{e(Ld.refetch())},variant:"circle_without_hover_color"})]})},sie=({title:e,subtitle:t})=>{const{openWith:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(En,{children:[(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",height:"88px",children:[(0,xn.jsxs)(_n,{alignItems:"end",children:[(0,xn.jsx)(Ln,{marginRight:"6px",size:"xl",children:e}),(0,xn.jsx)(lF,{color:LP.gray[450],"data-testid":"nft-total-amount",size:"xs",children:t})]}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(aie,{}),(0,xn.jsx)(Gn,{onClick:()=>r((0,xn.jsx)(iie,{})),variant:"tertiary",children:"Buy Tez"}),(0,xn.jsx)(Gn,{marginLeft:4,onClick:()=>r((0,xn.jsx)(bne,{})),children:"Send"})]})]}),(0,xn.jsx)(jre,{})]})},cie=()=>{const{openWith:e}=(0,i.useContext)(EM);return(0,xn.jsxs)(Gn,{alignItems:"center",justifyContent:"end",marginTop:"16px",marginBottom:"16px",cursor:"pointer",onClick:()=>e((0,xn.jsx)(Tre,{buttonText:"Add to Contact",title:"Add contact"})),variant:"CTAWithIcon",children:[(0,xn.jsx)(kj,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:"Add contact"})]})},lie=()=>{const e=(()=>{const e=Fq();return Object.values(e).sort(((e,t)=>e.name.localeCompare(t.name)))})();return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Address Book"}),(0,xn.jsx)(_n,{flexDirection:"row-reverse",children:(0,xn.jsx)(cie,{})}),e.length>0?(0,xn.jsx)(xne,{contacts:e}):(0,xn.jsx)(kne,{description:"Your contacts will appear here...",size:"lg",title:"Your address book is empty"})]})};var uie=r(6712),die=r.n(uie);const hie=({account:{address:e},...t})=>{const r=Wq().find((t=>t.address.pkh===e.pkh)),n=n4()(e.pkh),i=o4(e);return r?(0,xn.jsxs)(_n,{alignItems:"space-between",cursor:"pointer","data-testid":"account-small-tile",...t,children:[(0,xn.jsx)(lq,{addressKind:i}),(0,xn.jsxs)(_n,{alignSelf:"center",height:"20px",marginLeft:"12px",children:[(0,xn.jsx)(Ln,{marginRight:"10px","data-testid":"account-small-tile-label",size:"sm",children:r.label}),(0,xn.jsx)(lF,{marginRight:"35px",color:LP.gray[300],"data-testid":"account-small-tile-pkh",size:"xs",children:Y3(e.pkh)}),n&&(0,xn.jsx)(Ln,{"data-testid":"account-small-tile-balance",size:"sm",children:G3(n)})]})]}):null},fie=({estimationResult:e})=>{if(!e)return null;const t=(0,ts.get)(e,"metadata.operation_result.status");if(!t)return null;let r,n,i;switch(t){case"applied":case"backtracked":n=LP.green,i="Estimated",r=(0,xn.jsx)(Tj,{height:"14.5px"});break;case"failed":n=LP.orange,i="Failed",r=(0,xn.jsx)(zR,{width:"12px",height:"13px",stroke:"currentcolor",marginX:"3px"});break;case"skipped":n=LP.orangeL,i="Not Estimated",r=(0,xn.jsx)($j,{stroke:"currentcolor",marginX:"3px"})}return(0,xn.jsx)(_n,{marginTop:"8px",color:n,"data-testid":"estimation-status",children:(0,xn.jsxs)(Sn,{children:[r,(0,xn.jsx)(lF,{marginLeft:"4px",size:"xs",children:i})]})})};function pie(e,t){var r;const n=e.target;if(n){if(!qR(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}var mie=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function gie(e){var t;const{bg:r,bgColor:n,backgroundColor:i,shadow:o,boxShadow:a,shadowColor:s}=e,{getArrowProps:c,getArrowInnerProps:l}=qre(),u=Wre(),d=null!=(t=null!=r?r:n)?t:i,h=null!=o?o:a;return(0,xn.jsx)(wn.div,{...c(),className:"chakra-popover__arrow-positioner",children:(0,xn.jsx)(wn.div,{className:y("chakra-popover__arrow",e.className),...l(e),__css:{"--popper-arrow-shadow-color":mie("colors",s),"--popper-arrow-bg":mie("colors",d),"--popper-arrow-shadow":mie("shadows",h),...u.arrow}})})}gie.displayName="PopoverArrow";const vie=({addressKind:{type:e},...t})=>{switch(e){case"multisig":return(0,xn.jsx)(nR,{"data-testid":`${e}-icon`,...t});case"fa1.2":return(0,xn.jsx)(Wj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"fa2":return(0,xn.jsx)(Gj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"baker":return(0,xn.jsx)(Aj,{"data-testid":`${e}-icon`,...t});case"contact":return(0,xn.jsx)(Mj,{"data-testid":`${e}-icon`,...t});case"unknown":case"implicit":return null}},yie=({addressKind:{type:e,pkh:t},addressPillMode:r,...n})=>{const{addressExistsInContacts:o}=Uq(),{openWith:a}=(0,i.useContext)(EM);if("removable"===r.type)return(0,xn.jsx)(BR,{cursor:"pointer",onClick:r.onRemove,...n});return["implicit","multisig","baker"].includes(e)||o(t)?null:(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsx)(kj,{"data-testid":"add-contact-icon",onClick:()=>{a((0,xn.jsx)(Tre,{buttonText:"Add to Contact",contact:{name:"",pkh:t},title:"Add contact"}))},...n})})},bie=({addressKind:{pkh:e,label:t},showPkh:r,alias:n,...i})=>{const o=$q(),a=Y3(e),s=o(e)||t||n;return r?(0,xn.jsx)(lF,{...i,children:a}):(0,xn.jsx)(lF,{...i,children:s?q3(s,21):a})},wie=e=>{const t=a4(e);if(!t)return null;const{pkh:r,label:n}=t;return{type:"multisig"===t.type?"multisig":"implicit",pkh:r,label:n}},xie=({pkh:e})=>{const t=(e=>{const t=UR((t=>t.tokens[e.name]));return e=>{if(!t||!(e in t))return;const r=t[e],n=Object.keys(r)[0];return n?r[n].type:void 0}})(U3()),r=t(e);if(!r)return null;switch(r){case"fa1.2":return{pkh:e,type:"fa1.2",label:null};case"fa2":case"nft":return{pkh:e,type:"fa2",label:null}}},_ie=({address:e,mode:t={type:"default"},...r})=>{const n=!("pkh"in e&&"type"in e),o=n?td(e.address):e,a=(e=>{const t=wie(e),r=xie(e),n=s4(e),i=c4(e);return t||r||n||i||{pkh:e.pkh,type:"unknown",label:null}})(o),s="no_icons"!==t.type,{onOpen:c,onClose:l,isOpen:u}=YR(),[d,h]=(0,i.useState)(!1),f=(0,i.useRef)(null);let p,m,g;return function(e){const{ref:t,handler:r,enabled:n=!0}=e,o=GR(r),a=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)((()=>{if(!n)return;const e=e=>{pie(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&pie(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&pie(e,t)&&(a.isPointerDown=!1,o(e))},c=qR(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",i,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",i,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,n])}({ref:f,handler:()=>{h(!1)}}),u?(p=LP.green,m=LP.gray[300],g="white"):d?(p=LP.gray[450],m=LP.gray[400],g=LP.gray[200]):(p=LP.gray[500],m=LP.gray[450],g=LP.gray[300]),(0,xn.jsx)(En,{maxWidth:"max-content","data-testid":"address-pill",...r,children:(0,xn.jsxs)(_n,{ref:f,alignItems:"center",background:p,borderRadius:"full",onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},paddingX:"4px",children:[s&&(0,xn.jsx)(vie,{marginLeft:"4px",stroke:m,addressKind:a,"data-testid":"address-pill-left-icon"}),(0,xn.jsxs)(Gre,{autoFocus:!1,isOpen:u,onOpen:async()=>{await navigator.clipboard.writeText(o.pkh),c(),setTimeout(l,1e3)},children:[(0,xn.jsx)(Yre,{children:(0,xn.jsx)(Gn,{height:"24px",_focus:{boxShadow:"none"},onClick:e=>e.stopPropagation(),variant:"unstyled",children:(0,xn.jsx)(bie,{color:g,cursor:"pointer",addressKind:a,alias:n&&e.alias?e.alias:void 0,"data-testid":"address-pill-text",marginX:"4px",showPkh:!s,size:"sm"})})}),(0,xn.jsxs)(ene,{maxWidth:"max-content",background:"white",children:[(0,xn.jsx)(gie,{background:"white !important"}),(0,xn.jsx)(tne,{children:(0,xn.jsx)(lF,{color:"black",size:"sm",children:"Copied!"})})]})]}),s&&(0,xn.jsx)(yie,{marginRight:"4px",stroke:LP.gray[300],cursor:"pointer",addressKind:a,addressPillMode:t,"data-testid":"address-pill-right-icon"})]})})},Sie=({operation:e})=>{let t;switch(e.type){case"undelegation":case"contract_origination":t=void 0;break;case"tez":case"fa1.2":case"fa2":case"delegation":t=e.recipient;break;case"contract_call":t=e.contract}return t?(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:t,"data-testid":"recipient"})]}):(0,xn.jsx)(lF,{color:LP.gray[500],"data-testid":"recipient",children:"N/A"})},kie=e=>null===e||void 0===e?void 0:e.replace("ipfs://","https://ipfs.io/ipfs/"),Eie=e=>(0,ts.orderBy)(e,["lastLevel","id","owner"],["desc"]),Aie=({operation:e})=>{const t=V3(),r=U3();switch(e.type){case"tez":return(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(yR,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:G3(e.amount)})]});case"fa1.2":case"fa2":{const n=t(e.contract.pkh,e.tokenId);return"nft"===(null===n||void 0===n?void 0:n.type)?(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(yR,{marginRight:"8px"}),Number(e.amount)>1&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(Ln,{color:LP.gray[450],size:"sm",children:["x",e.amount]}),"\xa0"]}),(0,xn.jsx)(Ln,{size:"sm",children:(0,xn.jsx)(tq,{padding:"8px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px",label:(0,xn.jsx)(hF,{width:"170px",height:"170px",ratio:1,children:(0,xn.jsx)(TR,{src:kie(xd(n))})}),openDelay:300,children:(0,xn.jsx)(Zn,{"data-testid":"link",href:kd(n,r),children:hd(n)})})})]}):(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(yR,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:(0,xn.jsx)(Zn,{"data-testid":"link",href:n?kd(n,r):void 0,children:Bie(n,e.amount)})})]})}case"delegation":return(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(Aj,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:"Delegate"})]});case"undelegation":return(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(Aj,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:"End Delegation"})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},Pie=({addressKind:e})=>{switch(e.type){case"secret_key":case"mnemonic":return(0,xn.jsx)(sq,{width:"48px",height:"48px",padding:"8px",address:e.pkh,identiconSize:32});case"social":case"contact":case"ledger":case"multisig":case"unknown":case"baker":{const t="social"===e.type?"white":LP.gray[500];return(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"center",padding:"4px",background:t,borderRadius:"4px",children:(0,xn.jsx)(lq,{addressKind:e,size:"md"})})}}},Oie=(0,i.createContext)({selectedAccount:null,selectAccount:()=>{}}),Tie=({icon:e,leftElement:t,rightElement:r,...n})=>(0,xn.jsxs)(_n,{alignItems:"center",height:90,marginBottom:4,padding:4,border:`1px solid ${LP.gray[800]}`,borderRadius:4,...n,children:[e,(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flex:1,children:[t,r]})]}),Cie=({label:e,pkh:t})=>(0,xn.jsxs)(En,{margin:4,"data-testid":"account-identifier",children:[e&&(0,xn.jsx)(Ln,{size:"md",children:e}),(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(lF,{color:"text.dark","data-testid":"short-address",size:"sm",children:Y3(t)})})]}),jie=({account:e,radius:t,left:r="0px",top:n="0px",mainBackgroundColor:i=LP.gray[900],opacity:o="60"})=>{let a;switch(e.type){case"mnemonic":case"secret_key":s=e.address.pkh,a=`#${nq()(s).slice(0,6)}`;break;case"ledger":case"multisig":a=LP.gray[450];break;case"social":a="#EA4335"}var s;return a+=o,`radial-gradient(circle farthest-side at ${r} ${n}, ${a} 0%, ${a} ${parseInt(t)/4}px, transparent ${t}), ${i}`},Rie=({account:e,balance:t})=>{const{selectedAccount:r,selectAccount:n}=(0,i.useContext)(Oie),o=(null===r||void 0===r?void 0:r.address.pkh)===e.address.pkh,a=o4(e.address),{address:{pkh:s}}=e,c=!!UR((e=>e.assets.delegationLevels))[s],l=e4(),u=Eie(l(s));return(0,xn.jsxs)(En,{zIndex:2,background:jie({left:"-10px",top:"-10px",account:e,radius:u.length>0?"120px":"100px"}),borderWidth:"1px",borderStyle:"solid",borderColor:o?LP.orangeL:LP.gray[900],borderRadius:"8px",_hover:{borderColor:o?LP.orangeL:LP.gray[700]},cursor:"pointer","data-testid":"account-tile-container",onClick:()=>n(e),paddingX:"21px",children:[(0,xn.jsx)(Tie,{align:"bottom",marginBottom:0,padding:0,border:"none","data-testid":`account-tile-${s}`+(o?"-selected":""),icon:(0,xn.jsx)(Pie,{addressKind:a}),leftElement:(0,xn.jsx)(Cie,{label:a.label,pkh:s}),rightElement:(0,xn.jsxs)(_n,{flexDirection:"column",children:[t&&(0,xn.jsx)(Ln,{alignSelf:"flex-end",size:"lg",children:G3(t)}),(0,xn.jsx)(lF,{align:"right",color:LP.gray[450],fontWeight:700,size:"sm",children:c?"Delegated":(0,xn.jsx)(xn.Fragment,{children:"\xa0"})})]})}),u.length>0&&(0,xn.jsxs)(_n,{flexDirection:"column","data-testid":"nfts-list",children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(_n,{marginY:"21px",children:u.slice(0,7).map(((e,t)=>{const r=kie(xd(e));return 6===t?(0,xn.jsx)(PT,{"data-testid":"show-more-nfts-link",to:`/nfts?accounts=${s}`,children:(0,xn.jsx)(En,{height:"32px",marginLeft:"4px",background:LP.gray[600],borderRadius:"4px",children:(0,xn.jsx)(lF,{align:"center",width:"32px",color:LP.gray[450],fontWeight:700,children:"..."})})},"last"):(0,xn.jsx)(PT,{"data-testid":"nft-link",to:`/home/${s}/${dd(e)}`,children:(0,xn.jsx)(hF,{width:"32px",height:"32px",marginLeft:t>0?"4px":0,ratio:1,children:(0,xn.jsx)(TR,{borderRadius:"4px",src:r})})},dd(e))}))})]})]})},Iie=({title:e,description:t,buttonLabel:r,onSubmit:n})=>{const{onClose:o}=(0,i.useContext)(EM);return(0,xn.jsxs)(oF,{children:[(0,xn.jsxs)(sF,{marginBottom:"10px",textAlign:"center",children:[(0,xn.jsx)(En,{children:(0,xn.jsx)(zR,{width:"40px",height:"40px",marginBottom:"16px"})}),(0,xn.jsx)(Ln,{children:e}),(0,xn.jsx)(aF,{})]}),t&&(0,xn.jsx)(uF,{children:(0,xn.jsx)(lF,{align:"center",color:LP.gray[400],"data-testid":"description",children:t})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",onClick:()=>{n(),o()},size:"lg",variant:"warning",children:r})})]})},Mie=({title:e,fee:t,transactionCount:r,signer:n})=>(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(Lte,{subTitle:Fte(n),title:e}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:n.address}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(lF,{marginRight:1,color:LP.gray[450],size:"sm",children:"Transactions:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"transaction-length",size:"sm",children:r})]}),(0,xn.jsx)(Ite,{fee:t})]})]})]}),Lie=({initialOperations:e,initialFee:t})=>{const{fee:r,operations:n,estimationFailed:i,isLoading:o,signer:a,form:s,reEstimate:c,onSign:l}=une(t,e,"batch"),u=Bte(n.type,"batch");return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Mie,{fee:r,signer:a,title:u,transactionCount:n.operations.length}),(0,xn.jsx)(one,{isLoading:o,operationType:n.type,reEstimate:c,sender:n.sender}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:i,isLoading:o,onSubmit:l,signer:a,text:u})})]})})})},Nie=({operations:e,onSubmit:t,isLoading:r})=>{const{type:n,sender:o,operations:a}=e,{openWith:s}=(0,i.useContext)(EM);return(0,xn.jsxs)(En,{alignItems:"center",justifyContent:"space-between","data-testid":"right-header",children:[(0,xn.jsx)(lF,{display:"inline-block",color:LP.gray[400],size:"sm",children:die()("transaction",a.length,!0)}),(0,xn.jsx)(Gn,{marginLeft:"30px",isLoading:r,onClick:t,variant:"primary",children:Bte(n,"batch")}),(0,xn.jsx)(_4,{marginLeft:"16px",borderRadius:"4px","aria-label":"remove-batch","data-testid":"remove-batch",icon:(0,xn.jsx)(jR,{stroke:LP.gray[300]}),onClick:()=>s((0,xn.jsx)(zie,{sender:o}),"sm"),variant:"circle"})]})},Die=e=>{switch(e.type){case"fa1.2":case"fa2":return"Token Transfer";case"undelegation":case"delegation":return"Delegation";case"tez":return"\ua729 Transfer";case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},zie=({sender:e})=>{const t=sne();return(0,xn.jsx)(Iie,{buttonLabel:"Delete Batch",description:"Are you sure you want to remove all transactions from the batch?",onSubmit:()=>t(e),title:"Delete Batch"})},Bie=(e,t)=>{if(!e)return`${t} Unknown Token`;const r=fd(e),n=bd(t,e,{showSymbol:!1}),i=r?void 0:md(e);return(0,ts.compact)([n,i,r]).join(" ")},Fie={metadata:{operation_result:{status:"applied"}}},Uie=({operations:e})=>{const{operations:t,sender:r}=e,n=t.length>9,o=(()=>{const e=FR(),t=U3();return(r,n)=>e(Ud.removeItem({pkh:r.address.pkh,index:n,network:t}))})(),{openWith:a}=(0,i.useContext)(EM),s=U3(),[c,l]=i.useState([]);(0,i.useEffect)((()=>{l([])}),[t.length]);const{isLoading:u,handleAsyncAction:d}=Ste(),h=(0,xn.jsx)(Nie,{isLoading:u,onSubmit:()=>d((async()=>{l([]);try{const r=await c3(e,s);l(t.map((e=>Fie))),a((0,xn.jsx)(Lie,{initialFee:r,initialOperations:e}))}catch(r){if(r instanceof p2){const e=r.operationsWithResults;e.length>t.length&&e.shift(),l(e)}throw r}})),operations:e});return(0,xn.jsxs)(En,{width:"100%",marginBottom:"16px","data-testid":`batch-table-${r.address.pkh}`,children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",padding:"20px 23px 20px 30px",background:jie({top:"-10px",left:"-10px",account:r,radius:"100px",opacity:"40",mainBackgroundColor:LP.gray[800]}),borderTopRadius:"8px","data-testid":"header",children:[(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(hie,{paddingLeft:0,account:r})}),h]}),(0,xn.jsx)(_n,{flexDirection:"column",background:LP.gray[900],borderBottomRadius:n?0:"8px",paddingX:"30px",paddingY:"20px",children:t.map(((e,n)=>{const i=c.at(n);return(0,xn.jsxs)(En,{"data-testid":"operation",children:[(0,xn.jsxs)(_n,{flexDirection:"column",height:i?"80px":"50px",children:[(0,xn.jsx)(_n,{children:(0,xn.jsx)(Aie,{operation:e})}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",width:"100%",marginTop:"8px",children:[(0,xn.jsxs)(_n,{flexDirection:"column",children:[(0,xn.jsx)(_n,{children:(0,xn.jsx)(Sie,{operation:e})}),(0,xn.jsx)(fie,{estimationResult:i})]}),(0,xn.jsxs)(_n,{alignSelf:"flex-end",children:[(0,xn.jsx)(lF,{alignSelf:"flex-end",color:LP.gray[450],size:"sm",children:Die(e)}),(0,xn.jsx)(_4,{width:"24px",marginLeft:"12px",borderRadius:"full","aria-label":"Remove",icon:(0,xn.jsx)(jR,{stroke:LP.gray[300]}),onClick:()=>o(r,n),size:"xs",variant:"circle"})]})]})]}),n{const n=t.filter((e=>e.length>0)),i=n.length;if(i<2||4{const e=U3(),t=lz(),r=V3(),n=FR(),o=Xq(),a=eK(),{onClose:s}=(0,i.useContext)(EM),{isLoading:c,handleAsyncAction:l}=Ste(),u=L$({mode:"onBlur"}),{handleSubmit:d,formState:{isValid:h,errors:f}}=u;return(0,xn.jsx)(OU,{...u,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:d((async({file:i,sender:c})=>l((async()=>{const l=o(c),u=await new Promise((e=>{Hie().parse(i[0],{skipEmptyLines:!0,complete:e})}));if(u.errors.length>0)throw new Error("Error loading csv file: "+u.errors.map((e=>e.message)).join(", "));const d=[];for(let e=0;e{const{openWith:e}=(0,i.useContext)(EM);return(0,xn.jsxs)(Gn,{onClick:()=>e((0,xn.jsx)(Kie,{})),variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"4px",size:"sm",children:"Load CSV file"}),(0,xn.jsx)(Zj,{stroke:"currentcolor"})]})},Gie=({batchPending:e})=>(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"24px",marginBottom:"24px",children:[(0,xn.jsxs)(Ln,{flex:1,color:LP.orangeL,size:"sm",children:[e," Pending"]}),(0,xn.jsx)(Wie,{}),(0,xn.jsx)(_ne,{marginLeft:"8px",href:"https://github.com/trilitech/umami-v1/blob/main/CSV_FILE_SPEC.md",children:(0,xn.jsxs)(Gn,{paddingRight:"0",variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"4px",size:"sm",children:"See file specs"}),(0,xn.jsx)(Vj,{stroke:"currentcolor"})]})})]}),Yie=()=>{const e=(()=>{const e=U3(),t=UR((t=>t.batches[e.name]));return t||[]})();return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Batch"}),(0,xn.jsx)(Gie,{batchPending:e.length}),(0,xn.jsx)(En,{overflowY:"auto",minHeight:"80%",children:e.length>0?e.map((e=>(0,xn.jsx)(Uie,{operations:e},e.sender.address.pkh))):(0,xn.jsx)(kne,{description:"There is no batch transactions to show...",size:"lg",title:"No batches to show"})})]})};var Zie=v((function(e,t){const{templateAreas:r,gap:n,rowGap:i,columnGap:o,column:a,row:s,autoFlow:c,autoRows:l,templateRows:u,autoColumns:d,templateColumns:h,...f}=e,p={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:i,gridColumnGap:o,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:c,gridAutoRows:l,gridTemplateRows:u,gridTemplateColumns:h};return(0,xn.jsx)(wn.div,{ref:t,__css:p,...f})}));function Xie(e){return dF(e,(e=>"auto"===e?"auto":`span ${e}/span ${e}`))}Zie.displayName="Grid";var Jie=v((function(e,t){const{area:r,colSpan:n,colStart:i,colEnd:o,rowEnd:a,rowSpan:s,rowStart:c,...l}=e,u=cF({gridArea:r,gridColumn:Xie(n),gridRow:Xie(s),gridColumnStart:i,gridColumnEnd:o,gridRowStart:c,gridRowEnd:a});return(0,xn.jsx)(wn.div,{ref:t,__css:u,...l})}));Jie.displayName="GridItem";const Qie=({onClick:e,children:t,isSelected:r,...n})=>(0,xn.jsx)(B$,{justifyContent:"center",height:"66px",marginBottom:"10px",padding:"24px",border:"1px solid",borderColor:r?` ${LP.orangeL}`:"transparent",borderRadius:"lg",_hover:{border:`1px solid ${LP.gray[500]}`,bg:LP.gray[800]},cursor:e?"pointer":void 0,backgroundColor:LP.gray[900],onClick:e,...n,children:(0,xn.jsx)(F$,{padding:0,children:t})}),eoe=({left:e,isSelected:t,onClick:r})=>(0,xn.jsx)(Qie,{isSelected:t,onClick:r,children:(0,xn.jsx)(_n,{alignItems:"center",height:"100%",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,xn.jsx)(Ln,{size:"sm",children:e}),(0,xn.jsx)(jj,{})]})})}),toe=()=>(0,xn.jsxs)(Zie,{gridGap:"1",gridTemplateRows:"0fr 1fr 1fr",gridTemplateColumns:"1fr 1fr",gridTemplateAreas:'\n "header header"\n "main main"\n "main main"\n ',height:"100%",children:[(0,xn.jsx)(Jie,{gridArea:"header",children:(0,xn.jsx)(sie,{title:"Help"})}),(0,xn.jsxs)(Jie,{gridArea:"main",marginTop:1,children:[(0,xn.jsx)(noe,{title:"Learn More",children:(0,xn.jsx)(roe,{about:"Browse Articles",externalLink:"https://medium.com/umamiwallet"})}),(0,xn.jsxs)(noe,{title:"Need Help?",children:[(0,xn.jsx)(roe,{about:"Contact our Support Team",externalLink:"mailto:umami-support@trili.tech",linkDescription:"umami-support@trili.tech"}),(0,xn.jsx)(roe,{about:"Get in touch with the Community",externalLink:"https://join.slack.com/t/tezos-dev/shared_invite/zt-1ur1ymxrp-G_X_bFHrvWXwoeiy53J8lg",linkDescription:"Slack #Umami"})]}),(0,xn.jsxs)(noe,{title:"Terms",children:[(0,xn.jsx)(roe,{about:"Read Terms of Service",externalLink:"https://umamiwallet.com/tos.html"}),(0,xn.jsx)(roe,{about:"Read Privacy Policy",externalLink:"https://umamiwallet.com/privacypolicy.html"})]})]})]}),roe=({about:e,externalLink:t,linkDescription:r})=>(0,xn.jsx)(PT,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,xn.jsx)(Qie,{cursor:"pointer",isSelected:!1,children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{size:"sm",children:e}),(0,xn.jsxs)(_n,{alignItems:"center",children:[r&&(0,xn.jsx)(lF,{marginRight:"4px",color:LP.gray[400],size:"sm",children:r}),(0,xn.jsx)(Vj,{})]})]})})}),noe=({title:e,children:t})=>(0,xn.jsx)(En,{"data-testid":"help-card",marginY:"10px",children:(0,xn.jsx)(_n,{children:(0,xn.jsxs)(En,{width:"550px",children:[(0,xn.jsx)(Ln,{marginBottom:"16px",size:"lg",children:e}),t]})})});var[ioe,ooe]=Nn(),aoe={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function soe(e){var t;const{isOpen:r,onClose:n,placement:i="right",children:o,...a}=e,s=On(),c=null==(t=s.components)?void 0:t.Drawer,l=function(e,t){var r,n;if(e)return null!=(n=null==(r=aoe[e])?void 0:r[t])?n:e}(i,s.direction);return(0,xn.jsx)(ioe,{value:{placement:l},children:(0,xn.jsx)(fI,{isOpen:r,onClose:n,styleConfig:c,...a,children:o})})}var coe={exit:{duration:.15,ease:pI.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},loe={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var i;const{exit:o}=bI({direction:e});return{...o,transition:null!=(i=null==t?void 0:t.exit)?i:_I(coe.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var i;const{enter:o}=bI({direction:e});return{...o,transition:null!=(i=null==r?void 0:r.enter)?i:xI(coe.enter,n),transitionEnd:null==t?void 0:t.enter}}},uoe=(0,i.forwardRef)((function(e,t){const{direction:r="right",style:n,unmountOnExit:i,in:o,className:a,transition:s,transitionEnd:c,delay:l,motionProps:u,...d}=e,h=bI({direction:r}),f=Object.assign({position:"fixed"},h.position,n),p=!i||o&&i,m=o||i?"enter":"exit",g={transitionEnd:c,transition:s,direction:r,delay:l};return(0,xn.jsx)(pP,{custom:g,children:p&&(0,xn.jsx)(FA.div,{...d,ref:t,initial:"exit",className:y("chakra-slide",a),animate:m,exit:"exit",custom:g,variants:loe,style:f,...u})})}));uoe.displayName="Slide";var doe=wn(uoe),hoe=v(((e,t)=>{const{className:r,children:n,motionProps:i,containerProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c,isOpen:l}=hI(),u=s(a,t),d=c(o),h=y("chakra-modal__content",r),f=uI(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:g}=ooe();return(0,xn.jsx)(iF,{children:(0,xn.jsx)(wn.div,{...d,className:"chakra-modal__content-container",__css:m,children:(0,xn.jsx)(doe,{motionProps:i,direction:g,in:l,className:h,...u,__css:p,children:n})})})}));hoe.displayName="DrawerContent";const foe=({onRemove:e,onCreate:t})=>(0,xn.jsx)(rne,{children:(0,xn.jsxs)(En,{paddingY:"0",children:[(0,xn.jsx)(Gn,{height:t?"24px":"28px","data-testid":"popover-remove",onClick:e,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Remove"}),(0,xn.jsx)(jR,{stroke:"inherit"})]})}),t&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{marginY:"4px"}),(0,xn.jsx)(Gn,{onClick:t,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Create"}),(0,xn.jsx)(wR,{width:"18px",height:"18px",stroke:"inherit"})]})})]})]})});var poe=e=>(0,xn.jsx)(wn.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});poe.displayName="StackItem";var moe=v(((e,t)=>{const{isInline:r,direction:n,align:o,justify:a,spacing:s="0.5rem",wrap:c,children:l,divider:u,className:d,shouldWrapChildren:h,...f}=e,p=r?"row":null!=n?n:"column",m=(0,i.useMemo)((()=>function(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":dF(r,(e=>n[e]))}}({spacing:s,direction:p})),[s,p]),g=!!u,v=!h&&!g,b=(0,i.useMemo)((()=>{const e=V$(l);return v?e:e.map(((t,r)=>{const n="undefined"!==typeof t.key?t.key:r,o=r+1===e.length,a=h?(0,xn.jsx)(poe,{children:t},n):t;if(!g)return a;const s=(0,i.cloneElement)(u,{__css:m}),c=o?null:s;return(0,xn.jsxs)(i.Fragment,{children:[a,c]},n)}))}),[u,m,g,v,h,l]),w=y("chakra-stack",d);return(0,xn.jsx)(wn.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:p,flexWrap:c,gap:g?void 0:s,className:w,...f,children:b})}));moe.displayName="Stack";var goe=v(((e,t)=>(0,xn.jsx)(moe,{align:"center",...e,direction:"column",ref:t})));goe.displayName="VStack";const voe=({icon:e,size:t,onClick:r=(()=>{})})=>(0,xn.jsx)(En,{width:t,height:t,margin:"auto",background:LP.gray[700],borderRadius:"full",onClick:r,children:(0,xn.jsx)(Sn,{height:"100%",children:e})}),yoe=({children:e,icon:t,title:r,subtitle:n})=>(0,xn.jsxs)(goe,{maxHeight:"83vh",spacing:0,children:[(0,xn.jsx)(En,{marginBottom:"20px",children:(0,xn.jsx)(voe,{icon:t,size:"48px"})}),(0,xn.jsxs)(Sn,{flexDirection:"column",marginBottom:"32px",children:[(0,xn.jsx)(Ln,{size:"xl",children:r}),n&&(0,xn.jsx)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:n})]}),e]}),boe=({onSubmit:e,isLoading:t})=>{const r=L$({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o}}=r;return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(pR,{}),subtitle:"Enter your master password for Umami.",title:"Umami Master Password",children:(0,xn.jsx)(OU,{...r,children:(0,xn.jsxs)("form",{onSubmit:n((t=>{e(t.password)})),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{isInvalid:!!i.password,children:[(0,xn.jsx)(Ate,{"data-testid":"password",inputName:"password"}),i.password&&(0,xn.jsx)(Ete,{children:i.password.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!o,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},woe=({onSubmit:e,title:t="Name Your Account",subtitle:r})=>{const{register:n,handleSubmit:i}=L$({mode:"onChange"});return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(Uj,{}),subtitle:r,title:t,children:(0,xn.jsxs)("form",{onSubmit:i(e),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{children:[(0,xn.jsx)($$,{children:"Account name"}),(0,xn.jsx)(Z$,{"data-testid":"name",type:"text",...n("accountName",{required:!1}),placeholder:"Optional"})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",size:"lg",type:"submit",children:"Continue"})]})})},xoe=e=>{const[t,r]=(0,i.useState)();return void 0===t?(0,xn.jsx)(woe,{onSubmit:e=>r(e.accountName),subtitle:e.subtitle,title:e.title}):(0,xn.jsx)(boe,{isLoading:e.isLoading,onSubmit:r=>e.onSubmit({name:t,password:r})})},_oe=e=>(0,xn.jsx)(En,{overflowY:"auto",height:"100%",children:e.children}),Soe=({goToStep:e})=>{const t=qq().length>0;return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(fR,{}),title:"Connect or Import Account",children:(0,xn.jsxs)(goe,{width:"100%",spacing:"16px",children:[(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.restoreMnemonic}),size:"lg",children:"Import with Seed Phrase"}),(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.restoreSecretKey}),size:"lg",variant:"tertiary",children:"Import with Secret Key"}),!t&&(0,xn.jsx)(Gn,{width:"100%",onClick:t=>{e({type:Iae.restoreBackup})},size:"lg",variant:"tertiary",children:"Restore from Backup"}),(0,xn.jsx)(Gn,{width:"100%",onClick:t=>{e({type:Iae.nameAccount,account:{type:"ledger"}})},size:"lg",variant:"tertiary",children:"Connect ledger"})]})})},koe=({secretKey:e,label:t,password:r})=>async n=>{const{account:i,encryptedSecretKey:o}=await(async({secretKey:e,label:t,password:r})=>{const{pk:n,pkh:i}=await r3(e),o=await $c(e,r);return{account:{type:"secret_key",pk:n,label:t,address:ad(i)},encryptedSecretKey:o}})({secretKey:e,label:t,password:r});n(Kc.actions.addAccount(i)),n(Kc.actions.addSecretKey({pkh:i.address.pkh,encryptedSecretKey:o}))},Eoe=e=>async t=>{t(Kc.actions.removeSecretKey(e)),t(Kc.actions.removeAccount(e))},{addAccount:Aoe,removeMnemonicAndAccounts:Poe,removeNonMnemonicAccounts:Ooe}=Kc.actions,Toe=()=>{const e=U3(),t=B3(),r=Ei();return async({mnemonic:n,password:i,derivationPath:o,label:a})=>{const s=await Q5(n),c=await t(n,e,o,a),l=await $c(n,i);r(Kc.actions.addMnemonicAccounts({seedFingerprint:s,accounts:c,encryptedMnemonic:l}))}},Coe=()=>{const e=FR();return(t,r,n,i)=>{e(Aoe({derivationPath:t,curve:"ed25519",type:"ledger",pk:r,address:{type:"implicit",pkh:n},label:i}))}},joe=({goToStep:e,closeModal:t})=>{const{handleAsyncAction:r}=Ste(),n=(()=>{const e=FR();return(t,r,n)=>{e(Aoe({type:"social",pk:t,address:{type:"implicit",pkh:r},idp:"google",label:n}))}})(),i=lz();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(DR,{}),title:"Connect or Create Account",children:(0,xn.jsxs)(goe,{width:"100%",spacing:"16px",children:[(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.notice}),size:"lg",children:"Create a new Account"}),(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.connectOptions}),size:"lg",variant:"tertiary",children:"I already have a wallet"}),(0,xn.jsxs)(_n,{width:"100%",paddingTop:"14px",paddingBottom:"6px",children:[(0,xn.jsx)(jre,{marginTop:"11px"}),(0,xn.jsx)(lF,{minWidth:"160px",color:LP.gray[400],textAlign:"center",noOfLines:1,size:"sm",children:"Continue with Google"}),(0,xn.jsx)(jre,{marginTop:"11px"})]}),(0,xn.jsx)(kte,{onAuth:(e,o)=>r((async()=>{const{pk:r,pkh:a}=await r3(e);n(r,a,o),i({description:`Successfully added ${o} account`,status:"success"}),t()}))})]})})},Roe=({selected:e,options:t,onChange:r})=>{const[n,o]=(0,i.useState)(e),[a,s]=(0,i.useState)(!1);return(0,xn.jsxs)(En,{children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",height:"48px",padding:"12px 15px 15px 15px",color:LP.gray[300],background:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],borderRadius:"4px",_hover:{borderColor:LP.gray[450]},cursor:"pointer","data-testid":"select-input",onClick:()=>s((e=>!e)),children:[(0,xn.jsx)(lF,{size:"sm",children:n.label}),(0,xn.jsx)(Cj,{marginTop:"2px"})]}),a&&(0,xn.jsx)(oH,{position:"absolute",zIndex:2,width:"100%",margin:0,marginTop:"8px",padding:"15px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px","data-testid":"select-options",listStyleType:"none",children:t.map((e=>(0,xn.jsx)(aH,{marginBottom:"5px",padding:"11px",color:LP.gray[300],background:"transparent",borderRadius:"4px",_hover:{background:LP.gray[500]},cursor:"pointer",onClick:()=>{s(!1),o(e),r(e.value)},children:(0,xn.jsx)(lF,{size:"sm",children:e.label})},e.value)))})]})},Ioe=({goToStep:e,account:t})=>{const{handleSubmit:r,setValue:n,formState:{errors:i}}=L$({mode:"onBlur",defaultValues:{derivationPath:Lq}});return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(SR,{}),subtitle:"Choose a custom derivation path or select the default derivation path and use the default key.",title:"Derivation Path",children:(0,xn.jsxs)("form",{onSubmit:r((async({derivationPath:r})=>{switch(t.type){case"ledger":e({type:Iae.restoreLedger,account:{...t,derivationPath:r}});break;case"mnemonic":e({type:Iae.masterPassword,account:{...t,derivationPath:r}})}})),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{marginBottom:"20px",children:[(0,xn.jsx)($$,{children:"Select Path"}),(0,xn.jsx)(Roe,{onChange:e=>n("derivationPath",e),options:Dq,selected:Nq}),i.derivationPath&&(0,xn.jsx)(Ete,{"data-testid":"error-message",children:i.derivationPath.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"12px",size:"lg",type:"submit",children:"Continue"}),(0,xn.jsx)(_ne,{display:"block",width:"100%",marginTop:"32px",textAlign:"center",href:"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki",children:(0,xn.jsx)(tq,{backgroundColor:"white",defaultIsOpen:!1,hasArrow:!0,label:"Derivation path is a set of directions that helps create different secret keys; it starts from a master key or seed.",children:(0,xn.jsx)(lF,{color:LP.blue,fontWeight:600,textDecoration:"underline",_hover:{textDecoration:"underline"},size:"sm",children:"What's a Derivation Path?"})})})]})})};var[Moe,Loe]=Nn({name:"CheckboxGroupContext",strict:!1});function Noe(e){return(0,xn.jsx)(wn.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,xn.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Doe(e){return(0,xn.jsx)(wn.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,xn.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function zoe(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?Doe:Noe;return r||t?(0,xn.jsx)(wn.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,xn.jsx)(i,{...n})}):null}var Boe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};var Foe=()=>"undefined"!==typeof document;var Uoe=!1,$oe=null,Hoe=!1,Voe=!1,qoe=new Set;function Koe(e,t){qoe.forEach((r=>r(e,t)))}var Woe="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Goe(e){Hoe=!0,function(e){return!(e.metaKey||!Woe&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($oe="keyboard",Koe("keyboard",e))}function Yoe(e){if($oe="pointer","mousedown"===e.type||"pointerdown"===e.type){Hoe=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Koe("pointer",e)}}function Zoe(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(Hoe=!0,$oe="virtual")}function Xoe(e){e.target!==window&&e.target!==document&&(Hoe||Voe||($oe="virtual",Koe("virtual",e)),Hoe=!1,Voe=!1)}function Joe(){Hoe=!1,Voe=!0}function Qoe(){return"pointer"!==$oe}function eae(){if(!Foe()||Uoe)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Hoe=!0,e.apply(this,t)},document.addEventListener("keydown",Goe,!0),document.addEventListener("keyup",Goe,!0),document.addEventListener("click",Zoe,!0),window.addEventListener("focus",Xoe,!0),window.addEventListener("blur",Joe,!1),"undefined"!==typeof PointerEvent?(document.addEventListener("pointerdown",Yoe,!0),document.addEventListener("pointermove",Yoe,!0),document.addEventListener("pointerup",Yoe,!0)):(document.addEventListener("mousedown",Yoe,!0),document.addEventListener("mousemove",Yoe,!0),document.addEventListener("mouseup",Yoe,!0)),Uoe=!0}function tae(e){eae(),e(Qoe());const t=()=>e(Qoe());return qoe.add(t),()=>{qoe.delete(t)}}function rae(e={}){const t=Y$(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:a,id:s,onBlur:c,onFocus:l,"aria-describedby":u}=t,{defaultChecked:d,isChecked:h,isFocusable:f,onChange:p,isIndeterminate:m,name:g,value:v,tabIndex:y,"aria-label":b,"aria-labelledby":w,"aria-invalid":x,..._}=e,k=function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),A=kb(p),P=kb(c),O=kb(l),[T,C]=(0,i.useState)(!1),[j,R]=(0,i.useState)(!1),[I,M]=(0,i.useState)(!1),[L,N]=(0,i.useState)(!1);(0,i.useEffect)((()=>tae(C)),[]);const D=(0,i.useRef)(null),[z,B]=(0,i.useState)(!0),[F,U]=(0,i.useState)(!!d),$=void 0!==h,H=$?h:F,V=(0,i.useCallback)((e=>{n||r?e.preventDefault():($||U(H?e.target.checked:!!m||e.target.checked),null==A||A(e))}),[n,r,H,$,m,A]);Oh((()=>{D.current&&(D.current.indeterminate=Boolean(m))}),[m]),Eb((()=>{r&&R(!1)}),[r,R]),Oh((()=>{const e=D.current;if(!(null==e?void 0:e.form))return;const t=()=>{U(!!d)};return e.form.addEventListener("reset",t),()=>{var r;return null==(r=e.form)?void 0:r.removeEventListener("reset",t)}}),[]);const q=r&&!f,K=(0,i.useCallback)((e=>{" "===e.key&&N(!0)}),[N]),W=(0,i.useCallback)((e=>{" "===e.key&&N(!1)}),[N]);Oh((()=>{if(!D.current)return;D.current.checked!==H&&U(D.current.checked)}),[D.current]);const G=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":S(L),"data-hover":S(I),"data-checked":S(H),"data-focus":S(j),"data-focus-visible":S(j&&T),"data-indeterminate":S(m),"data-disabled":S(r),"data-invalid":S(a),"data-readonly":S(n),"aria-hidden":!0,onMouseDown:E(e.onMouseDown,(e=>{j&&e.preventDefault(),N(!0)})),onMouseUp:E(e.onMouseUp,(()=>N(!1))),onMouseEnter:E(e.onMouseEnter,(()=>M(!0))),onMouseLeave:E(e.onMouseLeave,(()=>M(!1)))})),[L,H,r,j,T,I,m,a,n]),Y=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":S(L),"data-hover":S(I),"data-checked":S(H),"data-focus":S(j),"data-focus-visible":S(j&&T),"data-indeterminate":S(m),"data-disabled":S(r),"data-invalid":S(a),"data-readonly":S(n)})),[L,H,r,j,T,I,m,a,n]),Z=(0,i.useCallback)(((e={},t=null)=>({...k,...e,ref:Kn(t,(e=>{e&&B("LABEL"===e.tagName)})),onClick:E(e.onClick,(()=>{var e;z||(null==(e=D.current)||e.click(),requestAnimationFrame((()=>{var e;null==(e=D.current)||e.focus({preventScroll:!0})})))})),"data-disabled":S(r),"data-checked":S(H),"data-invalid":S(a)})),[k,r,H,a,z]),X=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(D,t),type:"checkbox",name:g,value:v,id:s,tabIndex:y,onChange:E(e.onChange,V),onBlur:E(e.onBlur,P,(()=>R(!1))),onFocus:E(e.onFocus,O,(()=>R(!0))),onKeyDown:E(e.onKeyDown,K),onKeyUp:E(e.onKeyUp,W),required:o,checked:H,disabled:q,readOnly:n,"aria-label":b,"aria-labelledby":w,"aria-invalid":x?Boolean(x):a,"aria-describedby":u,"aria-disabled":r,style:Boe})),[g,v,s,V,P,O,K,W,o,H,q,n,b,w,x,a,u,r,y]),J=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,onMouseDown:E(e.onMouseDown,nae),"data-disabled":S(r),"data-checked":S(H),"data-invalid":S(a)})),[H,r,a]);return{state:{isInvalid:a,isFocused:j,isChecked:H,isActive:L,isHovered:I,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Z,getCheckboxProps:G,getIndicatorProps:Y,getInputProps:X,getLabelProps:J,htmlProps:k}}function nae(e){e.preventDefault(),e.stopPropagation()}var iae={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},oae={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},aae=$n({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),sae=$n({from:{opacity:0},to:{opacity:1}}),cae=$n({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),lae=v((function(e,t){const r=Loe(),n=Mn("Checkbox",{...r,...e}),o=ft(e),{spacing:a="0.5rem",className:s,children:c,iconColor:l,iconSize:u,icon:d=(0,xn.jsx)(zoe,{}),isChecked:h,isDisabled:f=(null==r?void 0:r.isDisabled),onChange:p,inputProps:m,...g}=o;let v=h;(null==r?void 0:r.value)&&o.value&&(v=r.value.includes(o.value));let b=p;(null==r?void 0:r.onChange)&&o.value&&(b=A(r.onChange,p));const{state:w,getInputProps:x,getCheckboxProps:_,getLabelProps:S,getRootProps:k}=rae({...g,isDisabled:f,isChecked:v,onChange:b}),E=function(e){const[t,r]=(0,i.useState)(e),[n,o]=(0,i.useState)(!1);return e!==t&&(o(!0),r(e)),n}(w.isChecked),P=(0,i.useMemo)((()=>({animation:E?w.isIndeterminate?`${sae} 20ms linear, ${cae} 200ms linear`:`${aae} 200ms linear`:void 0,fontSize:u,color:l,...n.icon})),[l,u,E,w.isIndeterminate,n.icon]),O=(0,i.cloneElement)(d,{__css:P,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return(0,xn.jsxs)(wn.label,{__css:{...oae,...n.container},className:y("chakra-checkbox",s),...k(),children:[(0,xn.jsx)("input",{className:"chakra-checkbox__input",...x(m,t)}),(0,xn.jsx)(wn.span,{__css:{...iae,...n.control},className:"chakra-checkbox__control",..._(),children:O}),c&&(0,xn.jsx)(wn.span,{className:"chakra-checkbox__label",...S(),__css:{marginStart:a,...n.label},children:c})]})}));lae.displayName="Checkbox";const uae=({goToStep:e})=>{const[t,r]=i.useState(!1);return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(zj,{}),title:"Accept to Continue",children:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(lae,{paddingBottom:"24px",fontWeight:"600",onChange:e=>r(e.target.checked),children:["I confirm that I have read and agreed with the"," ",(0,xn.jsx)(Zn,{textDecoration:"underline",_hover:{color:LP.green},href:"https://umamiwallet.com/tos.html",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and the"," ",(0,xn.jsx)(Zn,{textDecoration:"underline",_hover:{color:LP.green},href:"https://umamiwallet.com/privacypolicy.html",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]}),(0,xn.jsx)(Gn,{width:"100%",isDisabled:!t,onClick:()=>{e({type:Iae.connectOrCreate})},size:"lg",children:"Continue"})]})})},dae=({onClose:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=L$({mode:"onBlur"}),i=Coe();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(DR,{}),title:"Add a Fake Account",children:(0,xn.jsxs)("form",{onSubmit:r((async({pkh:t,name:r})=>{const n=new jW(Nd.rpcUrl),o=await n.getManagerKey(t),a="string"===typeof o?o:o.key;i(Lq,a,t,r),e()})),style:{width:"100%"},children:[(0,xn.jsx)(lF,{children:"It will be restored as a ledger account"}),(0,xn.jsxs)(ZF,{isInvalid:!!n.pkh,children:[(0,xn.jsx)($$,{children:"Address"}),(0,xn.jsx)(Z$,{...t("pkh",{required:!0}),autoComplete:"off",placeholder:"Please enter the account address"})]}),(0,xn.jsxs)(ZF,{isInvalid:!!n.name,children:[(0,xn.jsx)($$,{children:"Name"}),(0,xn.jsx)(Z$,{...t("name",{required:!0}),autoComplete:"off",placeholder:"Please enter the account name"})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:2,size:"lg",type:"submit",children:"Add account"})]})})},hae=({onSubmit:e,isLoading:t})=>{const r=L$({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o},getValues:a}=r;return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(pR,{}),subtitle:"Please choose a master password for Umami. You will need to use this password in order to perform any operations within Umami.",title:"Umami Master Password",children:(0,xn.jsx)(OU,{...r,children:(0,xn.jsxs)("form",{onSubmit:n((async t=>{e(t.confirm)})),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{isInvalid:!!i.password,children:[(0,xn.jsx)(Ate,{"data-testid":"password",inputName:"password",placeholder:"Enter master password"}),i.password&&(0,xn.jsx)(Ete,{children:i.password.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!i.confirm,children:[(0,xn.jsx)(Ate,{"data-testid":"confirmation",inputName:"confirm",label:"Confirm Password",placeholder:"Confirm your password",required:"Confirmation is required",validate:e=>a("password")===e||"Your passwords do no match"}),i.confirm&&(0,xn.jsx)(Ete,{children:i.confirm.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!o||t,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},fae=({account:e,onClose:t})=>{const r=Toe(),n=(()=>{const e=FR();return(t,r,n)=>e(koe({secretKey:t,password:r,label:n}))})(),i=(()=>{const e=Vq(),t=Object.values(e)[0];return t?async e=>{await Hc(t,e)}:null})(),o=null!==i,{isLoading:a,handleAsyncAction:s}=Ste(),c=lz(),l=a=>s((async()=>{switch(o&&await i(a),e.type){case"secret_key":await n(e.secretKey,a,e.label);break;case"mnemonic":await r({...e,password:a})}c({description:"Account successfully created!",status:"success"}),t()}));return o?(0,xn.jsx)(boe,{isLoading:a,onSubmit:l}):(0,xn.jsx)(hae,{isLoading:a,onSubmit:l})},pae=({goToStep:e})=>(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(vR,{}),subtitle:"Please read the following before you continue to see your secret Seed Phrase.",title:"Important Notice",children:(0,xn.jsxs)(En,{children:[(0,xn.jsx)(iH,{spacing:"16px",variant:"onboardingNotice",children:[{content:"Write down your seed phrase and store it in a safe place."},{content:"Make sure there is no one around you or looking over your shoulder."},{content:"Do not copy and paste the Seed Phrase or store it on your device."},{content:"Do not take a screenshot of your Seed Phrase."}].map(((e,t)=>(0,xn.jsx)(aH,{fontSize:"16px",fontWeight:600,children:e.content},t)))}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"28px",onClick:()=>e({type:Iae.showSeedphrase,account:{type:"mnemonic",mnemonic:(0,dq.Ap)(256)}}),size:"lg",children:"I understand"}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"16px",onClick:()=>e({type:Iae.restoreMnemonic}),size:"lg",variant:"tertiary",children:"I already have a Seed Phrase"})]})}),mae=function(e,t,r){var n=r||!1,i=Bo(Za,Ya,t&&t.enhancer?t.enhancer:void 0),o=function(e){i.dispatch({type:Ca,key:e})},a=function(t,r,o){var a={type:Aa,payload:r,err:o,key:t};e.dispatch(a),i.dispatch(a),n&&s.getState().bootstrapped&&(n(),n=!1)},s=Wa({},i,{purge:function(){var t=[];return e.dispatch({type:Ta,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:Ea,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:Pa})},persist:function(){e.dispatch({type:Oa,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}(sh),gae=()=>{const e=L$({mode:"onBlur"}),{handleSubmit:t,register:r,formState:{errors:n,isValid:i}}=e,{handleAsyncAction:o}=Ste(),a=(()=>{const e=Toe();return async(t,r)=>{const n=t.recoveryPhrases,i=t.derivationPaths.map((e=>"m/"===e.slice(0,2)?e.slice(2):e));localStorage.clear();try{for(const[t,o]of n.entries()){const n=await Hc(o,r,"V1");await e({mnemonic:n,password:r,label:Lae,derivationPath:i[t]})}}catch(Mde){throw new Error("Invalid password.")}await mae.flush()}})();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(_R,{}),subtitle:"Select a JSON backup file and enter the password you used to encrypt it.",title:"Restore from Backup",children:(0,xn.jsx)(OU,{...e,children:(0,xn.jsx)("form",{onSubmit:t((({password:e,file:t})=>o((async()=>{const r=await t[0].text(),n=JSON.parse(r);if(n.recoveryPhrases&&n.derivationPaths)await a(n,e);else{if(!n["persist:accounts"])throw new Error("Invalid backup file.");await(async(e,t)=>{const r=e["persist:accounts"];if(!r)throw new Error("Invalid backup file.");const n=JSON.parse(r),i=JSON.parse(n.seedPhrases);try{for(const e of Object.values(i))await Hc(e,t,"V2")}catch(Mde){throw new Error("Invalid password.")}mae.pause(),localStorage.clear(),localStorage.setItem("persist:accounts",r),localStorage.setItem("persist:root",e["persist:root"]),mae.persist()})(n,e)}window.location.reload()})))),style:{width:"100%"},children:(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!n.file,children:[(0,xn.jsx)($$,{children:"Upload File"}),(0,xn.jsx)(_n,{children:(0,xn.jsx)(Z$,{padding:"2px","data-testid":"file-input",...r("file",{required:"File is required"}),accept:".json",type:"file",variant:"unstyled"})}),n.file&&(0,xn.jsx)(eU,{"data-testid":"file",children:n.file.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",children:[(0,xn.jsx)(Ate,{"data-testid":"password-input",inputName:"password",label:"Your password (if you have one)",required:!1}),n.password&&(0,xn.jsx)(eU,{"data-testid":"password",children:n.password.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!i,size:"lg",type:"submit",children:"Import Wallet"})]})})})})},vae=({closeModal:e,account:t})=>{const r=Coe(),n=lz(),{isLoading:i,handleAsyncAction:o}=Ste();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(IR,{}),subtitle:"Complete the steps to connect.",title:"Connect Ledger",children:(0,xn.jsxs)(goe,{overflowY:"auto",spacing:"24px",children:[(0,xn.jsx)(iH,{spacing:4,children:[{content:"Plug your Ledger into your computer using a USB cable."},{content:"Unlock your Ledger."},{content:"Make sure your Ledger has the latest firmware version."},{content:"Install and open the Tezos Wallet app on your Ledger."},{content:"Click the button below and confirm the action on your Ledger."}].map(((e,t)=>(0,xn.jsx)(aH,{children:e.content},t)))}),(0,xn.jsx)(Gn,{width:"100%",isLoading:i,onClick:()=>o((()=>wte((async()=>{const i=n({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info"}),o=zq(t.derivationPath,0),{pk:a,pkh:s}=await(async e=>{const t=await YK.create(),r=new aW(t,e,!0),n=await r.publicKey(),i=await r.publicKeyHash();return await t.close(),{pk:n,pkh:i}})(o);r(o,a,s,t.label),n.close(i),n({description:"Account successfully created!",status:"success"}),e()}),6e4)),(e=>"PublicKeyRetrievalError"===e.name?{description:"Request rejected. Please unlock your Ledger and open the Tezos app"}:"InvalidStateError"===e.name?{description:"Request pending. Check your ledger..."}:{description:`Ledger error. ${e.message||e.name}`})),size:"lg",children:"Export Public Key"})]})})};var yae=Nte({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),bae=v((function(e,t){const{children:r,placeholder:n,className:i,...o}=e;return(0,xn.jsxs)(wn.select,{...o,ref:t,className:y("chakra-select",i),children:[n&&(0,xn.jsx)("option",{value:"",children:n}),r]})}));bae.displayName="SelectField";var wae=v(((e,t)=>{var r;const n=Mn("Select",e),{rootProps:i,placeholder:o,icon:a,color:s,height:c,h:l,minH:u,minHeight:d,iconColor:h,iconSize:f,...p}=ft(e),[m,g]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(p,rt),v=G$(g),y={width:"100%",height:"fit-content",position:"relative",color:s},b={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...null==(r=n.field)?void 0:r._focus}};return(0,xn.jsxs)(wn.div,{className:"chakra-select__wrapper",__css:y,...m,...i,children:[(0,xn.jsx)(bae,{ref:t,height:null!=l?l:c,minH:null!=u?u:d,placeholder:o,...v,__css:b,children:e.children}),(0,xn.jsx)(Sae,{"data-disabled":S(v.disabled),...(h||s)&&{color:h||s},__css:n.icon,...f&&{fontSize:f},children:a})]})}));wae.displayName="Select";var xae=e=>(0,xn.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),_ae=wn("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Sae=e=>{const{children:t=(0,xn.jsx)(xae,{}),...r}=e,n=(0,i.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,xn.jsx)(_ae,{...r,className:"chakra-select__icon-wrapper",children:(0,i.isValidElement)(t)?n:null})};Sae.displayName="SelectIcon";const kae=({inputName:e,validate:t,inputProps:r,listProps:n})=>{const[o,a]=(0,i.useState)(!0),{register:s,setValue:c,watch:l}=PU(),u=l(e),d=dq.WM.EN.filter((e=>u&&e.startsWith(u))).sort(),h=!o&&d.length>0&&(d.length>1||d[0]!==u);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(Z$,{zIndex:0,autoComplete:"off","data-testid":"mnemonic-input",onFocus:()=>a(!1),placeholder:"Type here...",...s(e,{required:"Required",validate:t,onChange:()=>a(!1),onBlur:()=>a(!0)}),...r}),h&&(0,xn.jsx)(oH,{"data-testid":"suggestions",variant:"suggestions",...n,children:d.map((t=>(0,xn.jsx)(aH,{paddingTop:"2px",fontSize:"14px",fontWeight:600,"data-testid":"suggestion",onMouseDown:()=>c(e,t),paddingX:"7px",children:t},t)))})]})},Eae=[12,15,18,24],Aae=({goToStep:e})=>{const t=L$({mode:"onBlur"}),{handleSubmit:r,setValue:n,trigger:o,formState:{isValid:a}}=t,{handleAsyncAction:s}=Ste(),[c,l]=(0,i.useState)(24);return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(nR,{width:"24px",height:"24px",stroke:LP.gray[450]}),subtitle:"Please fill in the Seed Phrase in sequence.",title:"Import Seed Phrase",children:(0,xn.jsx)(En,{overflowX:"hidden",children:(0,xn.jsx)(OU,{...t,children:(0,xn.jsx)("form",{onSubmit:r((t=>s((async()=>{const r=Object.values(t).join(" ").trim();if(!(0,dq.oT)(r))throw new Error(`Invalid Mnemonic: "${r}"`);e({type:Iae.nameAccount,account:{type:"mnemonic",mnemonic:r}})})))),style:{width:"100%"},children:(0,xn.jsxs)(goe,{width:"100%",spacing:4,children:[(0,xn.jsx)(wae,{height:"48px",color:LP.gray[450],"data-testid":"select",icon:(0,xn.jsx)(yae,{}),onChange:e=>(e=>{const t=Number(e);Eae.includes(t)&&(l((e=>(e>t&&(0,ts.range)(t,Math.max(...Eae)).forEach((e=>{n(`word${e}`,void 0)})),t))),o())})(e.target.value),value:c,children:Eae.reverse().map((e=>(0,xn.jsxs)("option",{value:e,children:[e," Words"]},e)))}),(0,xn.jsx)(Zie,{gridGap:3,gridTemplateColumns:"repeat(3, 1fr)",paddingBottom:"20px",children:(0,ts.range)(c).map((e=>{const t=`word${e}`;return(0,xn.jsxs)(Jie,{display:"flex",height:"38px",padding:"4px",fontSize:"sm",background:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],borderRadius:"4px",children:[(0,xn.jsx)(Ln,{width:"18px",marginRight:"6px",paddingTop:"6px",color:LP.gray[400],textAlign:"right",size:"sm",children:e+1}),(0,xn.jsx)(kae,{inputName:t,inputProps:{onPaste:async e=>{e.preventDefault();(e=>{s((async()=>{const t=e.split(" ");if(!Eae.includes(t.length))throw new Error(`the mnemonic must be ${Eae.join(", ")} words long`);t.slice(0,c).forEach(((e,t)=>{n(`word${t}`,e)})),o()}))})(await navigator.clipboard.readText())},border:"none",size:"xsmall"},listProps:{width:"126px",marginTop:"38px",marginLeft:"-5px"}})]},e)}))}),(0,xn.jsx)(Gn,{width:"100%",isDisabled:!a,size:"lg",type:"submit",children:"Continue"})]})})})})})};var Pae=["h","minH","height","minHeight"],Oae=v(((e,t)=>{const r=In("Textarea",e),{className:n,rows:i,...o}=ft(e),a=G$(o),s=i?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(r,Pae):r;return(0,xn.jsx)(wn.textarea,{ref:t,rows:i,...a,className:y("chakra-textarea",n),__css:s})}));Oae.displayName="Textarea";const Tae=({goToStep:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=L$({mode:"onBlur"});return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(nR,{width:"24px",height:"24px",stroke:LP.gray[450]}),title:"Insert Secret Key",children:(0,xn.jsxs)("form",{onSubmit:r((({secretKey:t})=>e({type:Iae.nameAccount,account:{type:"secret_key",secretKey:t.trim()}}))),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{isInvalid:!!n.secretKey,children:[(0,xn.jsx)($$,{children:"Secret Key"}),(0,xn.jsx)(Oae,{minHeight:"130px","data-testid":"name",...t("secretKey",{required:"Secret key is required"}),placeholder:"Your secret key"}),n.secretKey&&(0,xn.jsx)(eU,{children:n.secretKey.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!!n.secretKey,size:"lg",type:"submit",children:"Continue"})]})})};var Cae=v((function(e,t){const{columns:r,spacingX:n,spacingY:i,spacing:o,minChildWidth:a,...s}=e,c=On(),l=a?function(e,t){return dF(e,(e=>{const r=Cn("sizes",e,function(e){return"number"===typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`}))}(a,c):dF(r,(e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,xn.jsx)(Zie,{ref:t,gap:o,columnGap:n,rowGap:i,templateColumns:l,...s})}));Cae.displayName="SimpleGrid";const jae=({goToStep:e,account:t})=>(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(nR,{width:"24px",height:"24px",stroke:LP.gray[450]}),subtitle:"Please record the following 24 words in sequence in order to restore it in the future.",title:"Record Seed Phrase",children:(0,xn.jsxs)(goe,{children:[(0,xn.jsx)(Cae,{columns:3,spacing:2,children:t.mnemonic.split(" ").map(((e,t)=>(0,xn.jsxs)(_n,{width:"126px",padding:"6px",border:"1px dashed",borderColor:LP.gray[500],borderRadius:"4px",children:[(0,xn.jsx)(Ln,{width:"18px",marginRight:"10px",paddingTop:"2px",color:LP.gray[450],textAlign:"right",size:"sm",children:t+1}),(0,xn.jsx)(lF,{"data-testid":`mnemonic-word-${t}`,size:"sm",children:e})]},t)))}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"20px",onClick:r=>{e({type:Iae.verifySeedphrase,account:t})},size:"lg",children:"OK, I've recorded it"})]})}),Rae=({goToStep:e,account:t})=>{const r=t.mnemonic.split(" "),n=L$({mode:"onBlur"}),{handleSubmit:o,formState:{errors:a,isValid:s}}=n,[c]=(0,i.useState)(((e,t)=>(0,ts.shuffle)(e.map(((e,t)=>({value:e,index:t})))).slice(0,t).sort(((e,t)=>e.index-t.index)))(r,5));return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(Bj,{}),subtitle:"To verify, please type in the word that corresponds to each sequence number.",title:"Verify Seed Phrase",children:(0,xn.jsx)(En,{overflowX:"hidden",overflowY:"auto",width:"100%",children:(0,xn.jsx)(OU,{...n,children:(0,xn.jsxs)("form",{onSubmit:o((()=>e({type:Iae.nameAccount,account:t}))),children:[c.map(((e,t)=>{const r=`${e.index}`,n=a[r];return(0,xn.jsxs)(ZF,{marginBottom:"12px",isInvalid:!!n,children:[(0,xn.jsx)(lF,{position:"absolute",zIndex:1,width:"26px",marginTop:"12px",marginLeft:"4px",textAlign:"right","data-testid":"mnemonic-index",children:e.index+1}),(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(kae,{inputName:r,inputProps:{paddingLeft:"36px",size:"md"},listProps:{marginTop:"6px"},validate:t=>{if(t!==e.value)return"Word doesn't match"}})}),(null===n||void 0===n?void 0:n.message)&&(0,xn.jsx)(Ete,{children:n.message})]},t)})),(0,xn.jsx)(Gn,{width:"100%",marginTop:"20px",isDisabled:!s,size:"lg",type:"submit",children:"Continue"})]})})})})};let Iae=function(e){return e.eula="eula",e.connectOrCreate="connectOrCreate",e.connectOptions="connectOptions",e.notice="notice",e.restoreMnemonic="restoreMnemonic",e.restoreSecretKey="restoreSecretKey",e.restoreLedger="restoreLedger",e.restoreBackup="restoreBackup",e.showSeedphrase="showSeedphrase",e.verifySeedphrase="verifySeedphrase",e.nameAccount="nameAccount",e.derivationPath="derivationPath",e.masterPassword="masterPassword",e.fakeAccount="fakeAccount",e}({});const Mae=e=>{const{isOpen:t,onOpen:r,onClose:n}=YR(),o=0!==qq().length,a=(e=>{const[t,r]=(0,i.useState)(e),[n,o]=(0,i.useState)([t]),a=1===n.length;return{reset:()=>{r(e),o([e])},goToStep:e=>{r(e),o([...n,e])},currentStep:t,goBack:()=>{if(a)return;n.pop();const e=n[n.length-1];o(n),r(e)},atInitialStep:a,fullHistory:n}})({type:o?Iae.connectOrCreate:Iae.eula}),{currentStep:s,goToStep:c}=a,l=()=>{a.reset(),e&&e(),n()};return{modalElement:(0,xn.jsxs)(fI,{autoFocus:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:t,onClose:l,children:[o&&(0,xn.jsx)(PI,{}),(0,xn.jsxs)(oF,{children:[!a.atInitialStep&&(0,xn.jsx)(zte,{onClick:a.goBack}),(0,xn.jsx)(aF,{onClick:l}),(()=>{switch(s.type){case Iae.eula:return(0,xn.jsx)(uae,{goToStep:c});case Iae.connectOrCreate:return(0,xn.jsx)(joe,{closeModal:l,goToStep:c});case Iae.connectOptions:return(0,xn.jsx)(Soe,{goToStep:c});case Iae.notice:return(0,xn.jsx)(pae,{goToStep:c});case Iae.restoreMnemonic:return(0,xn.jsx)(Aae,{goToStep:c});case Iae.restoreBackup:return(0,xn.jsx)(gae,{});case Iae.showSeedphrase:return(0,xn.jsx)(jae,{goToStep:c,...s});case Iae.verifySeedphrase:return(0,xn.jsx)(Rae,{goToStep:c,...s});case Iae.nameAccount:return(0,xn.jsx)(Nae,{goToStep:c,...s});case Iae.derivationPath:return(0,xn.jsx)(Ioe,{goToStep:c,...s});case Iae.restoreLedger:return(0,xn.jsx)(vae,{closeModal:l,...s});case Iae.masterPassword:return(0,xn.jsx)(fae,{onClose:l,...s});case Iae.fakeAccount:return(0,xn.jsx)(dae,{onClose:n});case Iae.restoreSecretKey:return(0,xn.jsx)(Tae,{goToStep:c})}})()]})]}),onOpen:r}},Lae="Account",Nae=({goToStep:e,account:t})=>{const r=Yq();return(0,xn.jsx)(woe,{onSubmit:n=>{const i=n.accountName.trim()||Lae,o=r(i)[0];switch(t.type){case"secret_key":return e({type:Iae.masterPassword,account:{...t,label:o}});case"ledger":return e({type:Iae.derivationPath,account:{...t,label:o}});case"mnemonic":return e({type:Iae.derivationPath,account:{...t,label:i}})}},subtitle:"Please choose a name for your first account. You can edit your account name later."})};var Dae=r(4776),zae=r.n(Dae);const Bae=e=>{const t=FR(),{openWith:r}=(0,i.useContext)(EM),{mode:n,operations:o,fee:a,data:{threshold:s,signers:c,name:l}}=e,{fee:u,operations:d,estimationFailed:h,isLoading:f,form:p,reEstimate:m,signer:g,onSign:v,handleAsyncAction:y}=une(a,o,n);return(0,xn.jsx)(OU,{...p,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,description:"Please review the details and then continue to submit contract.",operationsType:d.type,signer:g,title:"Review & Submit"}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(lF,{marginBottom:"24px",padding:"14px",color:LP.gray[50],background:LP.gray[800],borderRadius:"6px","data-testid":"contract-name",children:l}),(0,xn.jsx)($$,{children:"Approvers"}),(0,xn.jsx)(En,{marginBottom:"12px","data-testid":"approvers",children:c.map((e=>(0,xn.jsx)(d4,{address:td(e.val),"data-testid":`approver-${e.val}`},e.val)))}),(0,xn.jsx)(_n,{justifyContent:"flex-end",children:(0,xn.jsx)(Fae,{signersAmount:c.length,threshold:s})}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(ZF,{marginTop:"24px",marginBottom:"12px",children:(0,xn.jsx)(v4,{allowUnknown:!1,inputName:"signer",isLoading:f,keepValid:!0,label:"Creation Fee Payer",onUpdate:m})}),(0,xn.jsx)(_n,{justifyContent:"flex-end",children:(0,xn.jsx)(Ite,{fee:u})})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:h,isLoading:f,onSubmit:async e=>y((async()=>{const n=await v(e);if(!n)throw new Error("An error occurred during contract origination");const i=(await n.getOriginatedContractAddresses())[0];t(Jd.addMultisigLabel({pkh:i,label:l})),r((0,xn.jsx)(Cte,{hash:n.opHash}))})),signer:g,text:"Submit Contract"})})]})})})},Fae=({threshold:e,signersAmount:t})=>(0,xn.jsxs)(_n,{alignItems:"center","data-testid":"threshold",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"No. of approvals:"}),(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:`${e} out of ${t}`})]}),Uae=[{prim:"storage",args:[{prim:"pair",args:[{prim:"address",annots:["%owner"]},{prim:"pair",args:[{prim:"set",args:[{prim:"address"}],annots:["%signers"]},{prim:"pair",args:[{prim:"nat",annots:["%threshold"]},{prim:"pair",args:[{prim:"nat",annots:["%last_op_id"]},{prim:"pair",args:[{prim:"big_map",args:[{prim:"nat"},{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%actions"]},{prim:"set",args:[{prim:"address"}],annots:["%approvals"]}]}],annots:["%pending_ops"]},{prim:"big_map",args:[{prim:"string"},{prim:"bytes"}],annots:["%metadata"]}]}]}]}]}]}]},{prim:"parameter",args:[{prim:"or",args:[{prim:"or",args:[{prim:"or",args:[{prim:"bytes",annots:["%set_metadata_uri"]},{prim:"unit",annots:["%default"]}]},{prim:"or",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%propose"]},{prim:"nat",annots:["%approve"]}]}]},{prim:"nat",annots:["%execute"]}]}]},{prim:"code",args:[[{prim:"NIL",args:[{prim:"operation"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"UNPAIR"},{prim:"DIP",args:[{int:"1"},[{prim:"UNPAIR",args:[{int:"6"}]}]]},{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"DUP",args:[{int:"2"}]},{prim:"SENDER"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID_CALLER"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"SOME"},{prim:"PUSH",args:[{prim:"string"},{string:""}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"FUNDING BLOCKED SINCE PARAMS ARE INVALID"}]},{prim:"FAILWITH"}],[]]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}],[{prim:"IF_LEFT",args:[[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"3"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"nat"},{int:"1"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"ADD"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"4"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"4"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"KEY_EXISTS"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"EMPTY_SET",args:[{prim:"address"}]},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"DUP",args:[{int:"3"}]},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"7"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"5"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"5"}]}]]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP"},{prim:"CDR"},{prim:"SENDER"},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ALREADY APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"8"}]},{prim:"DUP",args:[{int:"4"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"UNPAIR"},{prim:"SWAP"},{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"9"}]},{prim:"DUP",args:[{int:"5"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CDR"},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"SWAP"},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"5"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"CDR"},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"NOT YET APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CAR"},{prim:"PUSH",args:[{prim:"unit"},{prim:"Unit"}]},{prim:"EXEC"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"8"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"8"}]},{prim:"DUP",args:[{int:"7"}]},{prim:"NONE",args:[{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}]},{prim:"set",args:[{prim:"address"}]}]}]},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],$ae=e=>{return{type:"contract_origination",sender:td(e.sender),code:Uae,storage:(t=e.sender,r=e.signers.map((e=>e.val)),n=String(e.threshold),{owner:t,signers:r,threshold:n,last_op_id:"0",pending_ops:[],metadata:[]})};var t,r,n},Hae=e=>{const t=L$({mode:"onBlur",defaultValues:{sender:e.sender.address.pkh,signers:[{val:""}],threshold:1,...lne(e)}}),{formState:{errors:r,isValid:n},control:o,register:a,handleSubmit:s,getValues:c,watch:l}=t,u=function(e){const t=PU(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[s,c]=i.useState(r._getFieldArray(n)),l=i.useRef(r._getFieldArray(n).map(FU)),u=i.useRef(s),d=i.useRef(n),h=i.useRef(!1);d.current=n,u.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),IU({next:({values:e,name:t})=>{if(t===d.current||!t){const t=mU(e,d.current);Array.isArray(t)&&(c(t),l.current=t.map(FU))}},subject:r._subjects.array});const f=i.useCallback((e=>{h.current=!0,r._updateFieldArray(n,e)}),[r,n]);return i.useEffect((()=>{if(r._state.action=!1,HU(n,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!$U(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((e=>{const t=mU(e.errors,n),i=mU(r._formState.errors,n);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?zU(r._formState.errors,n,t):f$(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=mU(r._fields,n);!e||!e._f||$U(r._options.reValidateMode).isOnSubmit&&$U(r._options.mode).isOnSubmit||o$(e,r._formValues,r._options.criteriaMode===yU.all,r._options.shouldUseNativeValidation,!0).then((e=>!CU(e)&&r._subjects.state.next({errors:qU(r._formState.errors,e,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&VU(r._fields,((e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1})),r._names.focus="",r._updateValid(),h.current=!1}),[s,n,r]),i.useEffect((()=>(!mU(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)})),[n,r,o,a]),{swap:i.useCallback(((e,t)=>{const i=r._getFieldArray(n);h$(i,e,t),h$(l.current,e,t),f(i),c(i),r._updateFieldArray(n,i,h$,{argA:e,argB:t},!1)}),[f,n,r]),move:i.useCallback(((e,t)=>{const i=r._getFieldArray(n);l$(i,e,t),l$(l.current,e,t),f(i),c(i),r._updateFieldArray(n,i,l$,{argA:e,argB:t},!1)}),[f,n,r]),prepend:i.useCallback(((e,t)=>{const i=RU(hU(e)),o=u$(r._getFieldArray(n),i);r._names.focus=UU(n,0,t),l.current=u$(l.current,i.map(FU)),f(o),c(o),r._updateFieldArray(n,o,u$,{argA:s$(e)})}),[f,n,r]),append:i.useCallback(((e,t)=>{const i=RU(hU(e)),o=a$(r._getFieldArray(n),i);r._names.focus=UU(n,o.length-1,t),l.current=a$(l.current,i.map(FU)),f(o),c(o),r._updateFieldArray(n,o,a$,{argA:s$(e)})}),[f,n,r]),remove:i.useCallback((e=>{const t=d$(r._getFieldArray(n),e);l.current=d$(l.current,e),f(t),c(t),r._updateFieldArray(n,t,d$,{argA:e})}),[f,n,r]),insert:i.useCallback(((e,t,i)=>{const o=RU(hU(t)),a=c$(r._getFieldArray(n),e,o);r._names.focus=UU(n,e,i),l.current=c$(l.current,e,o.map(FU)),f(a),c(a),r._updateFieldArray(n,a,c$,{argA:e,argB:s$(t)})}),[f,n,r]),update:i.useCallback(((e,t)=>{const i=hU(t),o=p$(r._getFieldArray(n),e,i);l.current=[...o].map(((t,r)=>t&&r!==e?l.current[r]:FU())),f(o),c([...o]),r._updateFieldArray(n,o,p$,{argA:e,argB:i},!0,!1)}),[f,n,r]),replace:i.useCallback((e=>{const t=RU(hU(e));l.current=t.map(FU),f([...t]),c([...t]),r._updateFieldArray(n,[...t],(e=>e),{},!0,!1)}),[f,n,r]),fields:i.useMemo((()=>s.map(((e,t)=>({...e,[o]:l.current[t]||FU()})))),[s,o])}}({control:o,name:"signers",rules:{minLength:1}}),d=l("signers").length,h=gne({SignPage:Bae,signPageExtraData:l(),FormPage:Hae,defaultFormPageProps:e,toOperation:$ae}),{onFormSubmitActionHandlers:[f],isLoading:p}=yne([h]),{openWith:m}=(0,i.useContext)(EM);return(0,xn.jsx)(OU,{...t,children:(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(zte,{onClick:()=>{var t;return m((0,xn.jsx)(Vae,{name:null===(t=e.form)||void 0===t?void 0:t.name}))}}),(0,xn.jsxs)("form",{onSubmit:s(f),children:[(0,xn.jsx)(Lte,{subTitle:"Select the participants of the contract and choose the minimum number of approvals.",title:"Select Approvers"}),(0,xn.jsxs)(uF,{children:[u.fields.map(((e,t)=>{var n;const i=r.signers&&r.signers[t],o=`${0===t?"Select ":""}${zae()(t+1)} approver`,a=d>1?"short":"default",s="short"===a?"368px":"100%";return(0,xn.jsxs)(ZF,{display:"inline-block",width:s,marginBottom:"8px","data-testid":`signer-input-${t}`,isInvalid:!!i,children:[(0,xn.jsx)(v4,{allowUnknown:!0,inputName:`signers.${t}.val`,label:o,size:a,style:{width:s},validate:e=>{if(!id(e))return"Signer must be valid TZ address";const t=c("signers").map((e=>e.val));return t.length>new Set(t).size?"Duplicate approver":void 0}}),d>1&&(0,xn.jsx)(_4,{position:"absolute",height:"24px",marginTop:"-36px",marginLeft:"374px",background:LP.gray[500],"aria-label":"Remove","data-testid":`remove-signer-${t}`,icon:(0,xn.jsx)(jR,{width:"12px",height:"14px",stroke:LP.gray[300]}),isRound:!0,onClick:()=>u.remove(t),size:"xs",variant:"tertiary"}),i&&(0,xn.jsx)(Ete,{"data-testid":`signer-${t}-error`,children:null===(n=i.val)||void 0===n?void 0:n.message})]},e.id)})),(0,xn.jsx)(Gn,{paddingLeft:0,onClick:()=>u.append({val:""}),variant:"specialCTA",children:"+ Add Approver"}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!r.threshold,children:[(0,xn.jsxs)($$,{display:"inline",children:["Min No. of approvals:",(0,xn.jsx)(W$,{display:"inline",marginLeft:"10px",children:(0,xn.jsx)(Z$,{width:"60px",color:"white","data-testid":"threshold-input",step:1,type:"number",...a("threshold",{valueAsNumber:!0,required:"No. of approvals is required",max:{value:d,message:`Max no. of approvals is ${d}`},min:{value:1,message:"Min no. of approvals is 1"}})})})]}),(0,xn.jsxs)(lF,{display:"inline","data-testid":"max-signers",children:["out of ",d]}),r.threshold&&(0,xn.jsx)(Ete,{"data-testid":"threshold-error",children:r.threshold.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!n,isLoading:p,size:"lg",type:"submit",children:"Review"})})]})]})})},Vae=({name:e})=>{const t=L$({mode:"onBlur",defaultValues:{name:e||""}}),{formState:{errors:r,isValid:n},register:o,handleSubmit:a}=t,s=qq(),c=tK(),{openWith:l}=(0,i.useContext)(EM),u=Gq();return(0,xn.jsx)(OU,{...t,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:a((({name:e})=>l((0,xn.jsx)(Hae,{form:{name:e.trim()},sender:c(s)})))),children:[(0,xn.jsx)(Lte,{subTitle:"Name your account. The account name will only appear in your local Umami app.",title:"Account Name"}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(ZF,{isInvalid:!!r.name,children:[(0,xn.jsx)($$,{children:"Account Name"}),(0,xn.jsx)(W$,{children:(0,xn.jsx)(Z$,{"data-testid":"multisig-account-name",type:"text",...o("name",{validate:e=>0==e.trim().length?"Name should not be empty":u(e.trim())?void 0:"Name must be unique across all accounts and contacts"}),placeholder:"Account Name"})}),r.name&&(0,xn.jsx)(Ete,{"data-testid":"name-error",children:r.name.message})]})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!n,size:"lg",type:"submit",children:"Continue"})})]})})})},qae=()=>{const{onOpen:e,modalElement:t}=Mae();return(0,xn.jsxs)(_n,{flexDirection:"row-reverse",marginTop:"12px",marginBottom:"16px",children:[(0,xn.jsxs)(Gn,{paddingRight:"0",onClick:e,variant:"CTAWithIcon",children:[(0,xn.jsx)(Sj,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:"Add Account"})]}),t]})},Kae=({groupLabel:e,accounts:t,balances:r})=>{const n=t[0],o="multisig"===n.type,a="mnemonic"===n.type,{openWith:s,onClose:c}=(0,i.useContext)(EM),l=(()=>{const e=FR();return t=>{e(Poe({fingerPrint:t}))}})(),u=(()=>{const e=FR();return t=>{e(Ooe({accountType:t}))}})(),d=qq().length===t.length;let h,f="Remove All";const p=Wae(n);d?(h="Removing all your accounts will off-board you from Umami. This will remove or reset all customised settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",f="Remove & Off-board"):h=a?`Are you sure you want to remove all accounts derived from ${p}?`:`Are you sure you want to remove all of your ${p}?`;return(0,xn.jsxs)(En,{"data-testid":`account-group-${e}`,children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{marginBottom:4,"data-testid":"account-group-title",size:"md",children:e}),!o&&(0,xn.jsx)(foe,{onCreate:a?()=>{if(!a)throw new Error("Can't derive a non mnemonic account!");s((0,xn.jsx)(Yae,{fingerprint:n.seedFingerPrint,onDone:c}))}:void 0,onRemove:()=>{s((0,xn.jsx)(Iie,{buttonLabel:f,description:h,onSubmit:()=>{a?l(n.seedFingerPrint):u(n.type),c()},title:"Remove All Accounts"}))}})]}),t.map((e=>(0,xn.jsx)(En,{marginBottom:"16px",children:(0,xn.jsx)(Rie,{account:e,balance:r[e.address.pkh]})},e.address.pkh)))]})},Wae=e=>{switch(e.type){case"mnemonic":return`Seedphrase ${e.seedFingerPrint}`;case"social":return"Social Accounts";case"ledger":return"Ledger Accounts";case"secret_key":return"Secret Key Accounts";case"multisig":return"Multisig Accounts"}},Gae=()=>{const e=Wq(),t=UR((e=>e.assets.balances.mutez)),r=(0,ts.groupBy)(e,Wae),{openWith:n}=(0,i.useContext)(EM),o=Object.entries(r).map((([e,r])=>(0,xn.jsx)(Kae,{accounts:r,balances:t,groupLabel:e},e)));return(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsx)(En,{height:"100%",marginRight:0,children:(0,xn.jsxs)(_oe,{children:[(0,ts.compact)(o),(0,xn.jsx)(Gn,{width:"100%",height:"90px",background:LP.black,border:"1px dashed",borderColor:LP.gray[500],onClick:()=>n((0,xn.jsx)(Vae,{})),variant:"outline",children:(0,xn.jsxs)(lF,{display:"block",width:"100%",margin:5,color:LP.gray[400],textAlign:"center",children:[(0,xn.jsx)(nR,{marginRight:1,stroke:LP.gray[450]}),"Create New Multisig"]})})]})})})},Yae=e=>{const{isLoading:t,handleAsyncAction:r}=Ste(),n=lz(),i=(()=>{const e=Vq(),t=qq(),r=Yq(),n=Ei();return async({fingerPrint:i,password:o,label:a})=>{const s=e[i];if(!s)throw new Error(`No seedphrase found with fingerprint: ${i}`);const c=await Hc(s,o),l=t.filter((e=>"mnemonic"===e.type&&e.seedFingerPrint===i)),u=l.length,d=l[0].derivationPathPattern,h=zq(d,u),{pk:f,pkh:p}=await z3(c,h),m=r(a,1)[0],g=Bq(f,p,h,d,i,m);n(Kc.actions.addAccount(g))}})();return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(xoe,{isLoading:t,onSubmit:({name:t,password:o})=>r((async()=>{await i({fingerPrint:e.fingerprint,password:o,label:t.trim()||Lae}),e.onDone(),n({description:`New account created! Successfully derived account from ${e.fingerprint}`})}),{title:"Failed to derive new account"}),subtitle:`Name the new account derived from ${e.fingerprint}`})]})},Zae=({onClose:e})=>(0,xn.jsx)(_n,{justifyContent:"flex-end",paddingBottom:"30px",cursor:"pointer",children:(0,xn.jsx)(Xae,{onClose:e})}),Xae=({onClose:e})=>(0,xn.jsxs)(Gn,{onClick:e,variant:"CTAWithIcon",children:[(0,xn.jsx)(Hj,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",children:"Close"})]});function Jae(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}function Qae(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:c,onClick:l,onKeyDown:u,onKeyUp:d,tabIndex:h,onMouseOver:f,onMouseLeave:p,...m}=e,[g,v]=(0,i.useState)(!0),[y,b]=(0,i.useState)(!1),w=function(){const e=(0,i.useRef)(new Map),t=e.current,r=(0,i.useCallback)(((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)}),[]),n=(0,i.useCallback)(((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)}),[]);return(0,i.useEffect)((()=>()=>{t.forEach(((e,t)=>{n(e.el,e.type,t,e.options)}))}),[n,t]),{add:r,remove:n}}(),x=g?h:h||0,_=r&&!n,k=(0,i.useCallback)((e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)}),[r,l]),E=(0,i.useCallback)((e=>{y&&Jae(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),w.remove(document,"keyup",E,!1))}),[y,w]),A=(0,i.useCallback)((e=>{if(null==u||u(e),r||e.defaultPrevented||e.metaKey)return;if(!Jae(e.nativeEvent)||g)return;const t=o&&"Enter"===e.key;if(a&&" "===e.key&&(e.preventDefault(),b(!0)),t){e.preventDefault();e.currentTarget.click()}w.add(document,"keyup",E,!1)}),[r,g,u,o,a,w,E]),P=(0,i.useCallback)((e=>{if(null==d||d(e),r||e.defaultPrevented||e.metaKey)return;if(!Jae(e.nativeEvent)||g)return;if(a&&" "===e.key){e.preventDefault(),b(!1);e.currentTarget.click()}}),[a,g,r,d]),O=(0,i.useCallback)((e=>{0===e.button&&(b(!1),w.remove(document,"mouseup",O,!1))}),[w]),T=(0,i.useCallback)((e=>{if(0!==e.button)return;if(r)return e.stopPropagation(),void e.preventDefault();g||b(!0);e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",O,!1),null==s||s(e)}),[r,g,s,w,O]),C=(0,i.useCallback)((e=>{0===e.button&&(g||b(!1),null==c||c(e))}),[c,g]),j=(0,i.useCallback)((e=>{r?e.preventDefault():null==f||f(e)}),[r,f]),R=(0,i.useCallback)((e=>{y&&(e.preventDefault(),b(!1)),null==p||p(e)}),[y,p]),I=Kn(t,(e=>{e&&"BUTTON"!==e.tagName&&v(!1)}));return g?{...m,ref:I,type:"button","aria-disabled":_?void 0:r,disabled:_,onClick:k,onMouseDown:s,onMouseUp:c,onKeyUp:d,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:I,role:"button","data-active":S(y),"aria-disabled":r?"true":void 0,tabIndex:_?void 0:x,onClick:k,onMouseDown:T,onMouseUp:C,onKeyUp:P,onKeyDown:A,onMouseOver:j,onMouseLeave:R}}var[ese,tse,rse,nse]=SF();var[ise,ose]=Nn({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});var[ase,sse]=Nn({});function cse(e,t){return`${e}--tab-${t}`}function lse(e,t){return`${e}--tabpanel-${t}`}var[use,dse]=Nn({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),hse=v((function(e,t){const r=Mn("Tabs",e),{children:n,className:o,...a}=ft(e),{htmlProps:s,descendants:c,...l}=function(e){var t;const{defaultIndex:r,onChange:n,index:o,isManual:a,isLazy:s,lazyBehavior:c="unmount",orientation:l="horizontal",direction:u="ltr",...d}=e,[h,f]=(0,i.useState)(null!=r?r:0),[p,m]=RF({defaultValue:null!=r?r:0,value:o,onChange:n});(0,i.useEffect)((()=>{null!=o&&f(o)}),[o]);const g=rse(),v=(0,i.useId)();return{id:`tabs-${null!=(t=e.id)?t:v}`,selectedIndex:p,focusedIndex:h,setSelectedIndex:m,setFocusedIndex:f,isManual:a,isLazy:s,lazyBehavior:c,orientation:l,descendants:g,direction:u,htmlProps:d}}(a),u=(0,i.useMemo)((()=>l),[l]),{isFitted:d,...h}=s,f={position:"relative",...r.root};return(0,xn.jsx)(ese,{value:c,children:(0,xn.jsx)(ise,{value:u,children:(0,xn.jsx)(use,{value:r,children:(0,xn.jsx)(wn.div,{className:y("chakra-tabs",o),ref:t,...h,__css:f,children:n})})})})}));hse.displayName="Tabs";var fse=v((function(e,t){const r=function(e){const{focusedIndex:t,orientation:r,direction:n}=ose(),o=tse(),a=(0,i.useCallback)((e=>{const i=()=>{var e;const r=o.nextEnabled(t);r&&(null==(e=r.node)||e.focus())},a=()=>{var e;const r=o.prevEnabled(t);r&&(null==(e=r.node)||e.focus())},s="horizontal"===r,c="vertical"===r,l=e.key,u={["ltr"===n?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===n?"ArrowRight":"ArrowLeft"]:()=>s&&i(),ArrowDown:()=>c&&i(),ArrowUp:()=>c&&a(),Home:()=>{var e;const t=o.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=o.lastEnabled();t&&(null==(e=t.node)||e.focus())}},d=u[l];d&&(e.preventDefault(),d(e))}),[o,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:E(e.onKeyDown,a)}}({...e,ref:t}),n={display:"flex",...dse().tablist};return(0,xn.jsx)(wn.div,{...r,className:y("chakra-tabs__tablist",e.className),__css:n})}));fse.displayName="TabList";var pse=v((function(e,t){const r=function(e){const t=ose(),{id:r,selectedIndex:n}=t,o=V$(e.children).map(((e,t)=>(0,i.createElement)(ase,{key:t,value:{isSelected:t===n,id:lse(r,t),tabId:cse(r,t),selectedIndex:n}},e)));return{...e,children:o}}(e),n=dse();return(0,xn.jsx)(wn.div,{...r,width:"100%",ref:t,className:y("chakra-tabs__tab-panels",e.className),__css:n.tabpanels})}));pse.displayName="TabPanels";var mse=v((function(e,t){const r=function(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:o}=ose(),{isSelected:a,id:s,tabId:c}=sse(),l=(0,i.useRef)(!1);return a&&(l.current=!0),{tabIndex:0,...r,children:Bre({wasSelected:l.current,isSelected:a,enabled:n,mode:o})?t:null,role:"tabpanel","aria-labelledby":c,hidden:!a,id:s}}({...e,ref:t}),n=dse();return(0,xn.jsx)(wn.div,{outline:"0",...r,className:y("chakra-tabs__tab-panel",e.className),__css:n.tabpanel})}));function gse(e){const t=jne(e);return t.setHours(0,0,0,0),t}mse.displayName="TabPanel";function vse(e,t){const r=gse(e),n=gse(t),i=+r-rie(r),o=+n-rie(n);return Math.round((i-o)/Lne)}function yse(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function bse(e){const t=jne(e),r=yse(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function wse(e){const t=jne(e);return vse(t,bse(t))+1}function xse(e,t){const r=tie(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=jne(e),o=i.getDay(),a=(o=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function kse(e){const t=Sse(e),r=yse(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),_se(r)}function Ese(e){const t=jne(e),r=+_se(t)-+kse(t);return Math.round(r/Mne)+1}function Ase(e,t){const r=jne(e),n=r.getFullYear(),i=tie(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=yse(e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=xse(a,t),c=yse(e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const l=xse(c,t);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function Pse(e,t){const r=tie(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=Ase(e,t),o=yse(e,0);o.setFullYear(i,0,n),o.setHours(0,0,0,0);return xse(o,t)}function Ose(e,t){const r=jne(e),n=+xse(r,t)-+Pse(r,t);return Math.round(n/Mne)+1}function Tse(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Cse={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Tse("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):Tse(r+1,2)},d:(e,t)=>Tse(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Tse(e.getHours()%12||12,t.length),H:(e,t)=>Tse(e.getHours(),t.length),m:(e,t)=>Tse(e.getMinutes(),t.length),s:(e,t)=>Tse(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return Tse(Math.trunc(n*Math.pow(10,r-3)),t.length)}},jse="midnight",Rse="noon",Ise="morning",Mse="afternoon",Lse="evening",Nse="night",Dse={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Cse.y(e,t)},Y:function(e,t,r,n){const i=Ase(e,n),o=i>0?i:1-i;if("YY"===t){return Tse(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):Tse(o,t.length)},R:function(e,t){return Tse(Sse(e),t.length)},u:function(e,t){return Tse(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Tse(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Tse(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Cse.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Tse(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=Ose(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):Tse(i,t.length)},I:function(e,t,r){const n=Ese(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Tse(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Cse.d(e,t)},D:function(e,t,r){const n=wse(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Tse(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Tse(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Tse(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return Tse(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?Rse:0===n?jse:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?Lse:n>=12?Mse:n>=4?Ise:Nse,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Cse.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Cse.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Tse(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Tse(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Cse.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Cse.s(e,t)},S:function(e,t){return Cse.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Bse(n);case"XXXX":case"XX":return Fse(n);default:return Fse(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Bse(n);case"xxxx":case"xx":return Fse(n);default:return Fse(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zse(n,":");default:return"GMT"+Fse(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zse(n,":");default:return"GMT"+Fse(n,":")}},t:function(e,t,r){return Tse(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return Tse(e.getTime(),t.length)}};function zse(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+Tse(o,2)}function Bse(e,t){if(e%60===0){return(e>0?"-":"+")+Tse(Math.abs(e)/60,2)}return Fse(e,t)}function Fse(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+Tse(Math.trunc(n/60),2)+t+Tse(n%60,2)}const Use=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},$se=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Hse={p:$se,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Use(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Use(n,t)).replace("{{time}}",$se(i,t))}},Vse=/^D+$/,qse=/^Y+$/,Kse=["D","DD","YY","YYYY"];function Wse(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Gse(e){if(!Wse(e)&&"number"!==typeof e)return!1;const t=jne(e);return!isNaN(Number(t))}const Yse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xse=/^'([^]*?)'?$/,Jse=/''/g,Qse=/[a-zA-Z]/;function ece(e,t,r){const n=tie(),i=r?.locale??n.locale??Qne,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=jne(e);if(!Gse(s))throw new RangeError("Invalid time value");let c=t.match(Zse).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Hse[t])(e,i.formatLong)}return e})).join("").match(Yse).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:tce(e)};if(Dse[t])return{isToken:!0,value:e};if(t.match(Qse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map((n=>{if(!n.isToken)return n.value;const o=n.value;(!r?.useAdditionalWeekYearTokens&&function(e){return qse.test(e)}(o)||!r?.useAdditionalDayOfYearTokens&&function(e){return Vse.test(e)}(o))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Kse.includes(e))throw new RangeError(n)}(o,t,String(e));return(0,Dse[o[0]])(s,o,i.localize,l)})).join("")}function tce(e){const t=e.match(Xse);return t?t[1].replace(Jse,"'"):e}function rce(e,t,r){const n=jne(e),i=jne(t),o=tie(),a=r?.locale??o.locale??Qne,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=vse(n,i);if(isNaN(c))throw new RangeError("Invalid time value");let l;l=c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other";return ece(n,a.formatRelative(l,n,i,{locale:a,weekStartsOn:s}),{locale:a,weekStartsOn:s})}const nce=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=une(n,r,t),h=o.operations[0].recipient;return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:o.type,signer:o.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:l.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(Ite,{fee:i})})}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:h}),(0,xn.jsx)(one,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:Bte(o.type,t)})})]})})})},ice=e=>{var t;const r=null===(t=e.form)||void 0===t?void 0:t.baker,n=gne({SignPage:nce,signPageExtraData:void 0,FormPage:ice,defaultFormPageProps:e,toOperation:oce}),i=vne(oce),{onFormSubmitActionHandlers:[o,a],isLoading:s}=yne([n,i]),c=L$({mode:"onBlur",defaultValues:lne(e)}),{formState:{isValid:l,errors:u},handleSubmit:d}=c;return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{"data-testid":"delegate-form",children:[(0,xn.jsxs)(Mte,{children:[(0,xn.jsx)(lF,{fontWeight:"600",size:"2xl",children:r?"Change Baker":"Delegate"}),(0,xn.jsx)(aF,{})]}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!u.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!!e.sender,label:"From"}),u.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:u.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px","data-testid":"baker",isInvalid:!!u.baker,children:[(0,xn.jsx)(b4,{allowUnknown:!0,inputName:"baker",label:"Baker"}),u.baker&&(0,xn.jsx)(Ete,{children:u.baker.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:s,isValid:l,onAddToBatch:d(a),onSingleSubmit:d(o)})})]})})})},oce=e=>({type:"delegation",sender:td(e.sender),recipient:ad(e.baker)}),ace=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=une(n,r,t);return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:o.type,signer:o.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:l.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,xn.jsx)(Ite,{fee:i})}),(0,xn.jsx)(one,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:Bte(o.type,t)})})]})})})},sce=e=>{var t;const{sender:r}=e,n=null===(t=e.form)||void 0===t?void 0:t.baker,i=gne({SignPage:ace,signPageExtraData:void 0,FormPage:sce,defaultFormPageProps:{sender:r},toOperation:cce}),o=vne(cce),{onFormSubmitActionHandlers:[a,s],isLoading:c}=yne([i,o]),l=L$({mode:"onBlur",defaultValues:lne({sender:r})}),{handleSubmit:u}=l;return(0,xn.jsx)(OU,{...l,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{subTitle:"Select preview to end delegation or insert this transaction into a Batch.",title:"End delegation"}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(ZF,{children:(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"})}),(0,xn.jsx)($$,{marginTop:"24px",children:"Baker"}),n&&(0,xn.jsx)(d4,{address:td(n)})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:c,isValid:!0,onAddToBatch:u(s),onSingleSubmit:u(a)})})]})})})},cce=e=>({type:"undelegation",sender:td(e.sender)}),lce=({label:e,value:t,...r})=>(0,xn.jsxs)(_n,{alignItems:"center",height:"50px",padding:"16px","data-testid":e,...r,children:[(0,xn.jsx)(En,{flex:1,children:(0,xn.jsx)(Ln,{color:LP.gray[400],size:"sm",children:e})}),(0,xn.jsx)(En,{flex:1,children:"string"===typeof t?(0,xn.jsx)(lF,{size:"sm",children:t}):t})]}),uce=({delegation:e,account:t})=>{const{openWith:r}=(0,i.useContext)(EM),n=Xq(),o=(()=>{const e=n4();return t=>{const r=e(t.sender),n=new Date;return{initialBalance:G3(t.amount),currentBalance:r&&G3(r),duration:`Since ${rce(new Date(t.timestamp),n)}`}}})();if(!e)return(0,xn.jsx)(One,{onDelegate:()=>{r((0,xn.jsx)(ice,{sender:t}))},size:"md"});const{currentBalance:a,duration:s,initialBalance:c}=o(e),{sender:l,delegate:{address:u}}=e,d=n(l);return(0,xn.jsxs)(En,{children:[(0,xn.jsx)(lce,{borderBottom:`1px solid ${LP.gray[700]}`,borderTopRadius:"8px",_odd:{bg:LP.gray[800]},label:"Initial Balance:",value:c}),a&&(0,xn.jsx)(lce,{_odd:{bg:LP.gray[800]},label:"Current Balance:",value:a}),(0,xn.jsx)(lce,{borderBottom:`1px solid ${LP.gray[700]}`,_odd:{bg:LP.gray[800]},label:"Duration:",value:s}),(0,xn.jsx)(lce,{borderBottomRadius:"8px",_odd:{bg:LP.gray[800]},label:"Baker:",value:(0,xn.jsx)(_ie,{address:td(e.delegate.address)})}),(0,xn.jsxs)(_n,{marginTop:"24px",children:[(0,xn.jsx)(Gn,{flex:1,marginRight:"16px",onClick:()=>r((0,xn.jsx)(sce,{form:{sender:l,baker:u},sender:d})),variant:"warning",children:"End Delegation"}),(0,xn.jsx)(Gn,{flex:1,onClick:()=>{r((0,xn.jsx)(ice,{form:{sender:l,baker:u},sender:d}))},variant:"tertiary",children:"Change Baker"})]})]})};function dce(e){return lR({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"}},{tag:"polyline",attr:{points:"7 7 17 7 17 17"}}]})(e)}const hce=({operation:e})=>{switch(e.type){case"delegation":return(0,xn.jsxs)(En,{margin:1,paddingLeft:5,"data-testid":"decoded-item-delegate",marginY:6,children:["Delegate to ",(0,xn.jsx)(_ie,{address:e.recipient})]});case"undelegation":return(0,xn.jsx)(En,{margin:1,paddingLeft:5,"data-testid":"decoded-item-undelegate",marginY:6,children:"End Delegation"});case"tez":case"fa1.2":case"fa2":return(0,xn.jsxs)(En,{marginY:6,children:[(0,xn.jsx)(fce,{operation:e}),(0,xn.jsxs)(_n,{alignItems:"center",margin:1,paddingLeft:5,children:[(0,xn.jsx)(Ln,{marginRight:2,color:LP.gray[400],size:"sm",children:"Send to :"}),(0,xn.jsx)(_ie,{address:e.recipient})]})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not suported yet`)}},fce=({operation:e})=>{const t=V3();switch(e.type){case"tez":return(0,xn.jsxs)(_n,{alignItems:"center","data-testid":"decoded-tez-amount",children:[(0,xn.jsx)(qA,{as:dce,width:5,height:5,color:LP.gray[400]}),(0,xn.jsxs)(lF,{marginLeft:1,textAlign:"center",children:["-",G3(e.amount)]})]});case"fa1.2":case"fa2":{const r=t(e.contract.pkh,e.tokenId);if(!r)return null;const n=hd(r),i="nft"===r.type;return(0,xn.jsxs)(_n,{alignItems:"center","data-testid":"decoded-fa-amount",children:[(0,xn.jsx)(qA,{as:dce,width:5,height:5,color:LP.gray[400]}),i?(0,xn.jsxs)(lF,{marginLeft:1,textAlign:"center",children:[e.amount," ",n]}):(0,xn.jsxs)(lF,{marginLeft:1,textAlign:"center",children:["-",bd(e.amount,r,{showSymbol:!0})]})]})}case"delegation":case"undelegation":case"contract_origination":case"contract_call":return null}},pce=e=>Qu.string().regex(new RegExp(`^${e}$`,"i")),mce=e=>Qu.object({prim:pce(e)}),gce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("key_hash")}),Qu.object({bytes:Qu.string()})])}),vce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("address")}),Qu.object({bytes:Qu.string()})])}),yce=(e,t)=>Qu.object({prim:Qu.literal("Pair"),args:Qu.tuple([e,t])}),bce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("mutez")}),Qu.object({int:Qu.literal("0")})])}),wce=[mce("TRANSFER_TOKENS"),mce("CONS")],xce=Qu.object({prim:Qu.literal("CONTRACT")}),_ce=Qu.tuple([Qu.object({prim:Qu.literal("DROP")}),Qu.object({prim:Qu.literal("NIL"),args:Qu.array(Qu.object({prim:Qu.literal("operation")}))})]),Sce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("mutez")}),Qu.object({int:Qu.string()})])}),kce=Qu.tuple([gce,mce("IMPLICIT_ACCOUNT"),Sce,mce("UNIT"),...wce]),Ece=Qu.tuple([vce,xce,mce("IF_NONE"),Sce,mce("UNIT"),...wce]),Ace=Qu.tuple([gce,mce("SOME"),mce("SET_DELEGATE"),mce("CONS")]),Pce=Qu.tuple([Qu.object({prim:Qu.literal("NONE"),args:Qu.tuple([Qu.object({prim:Qu.literal("key_hash")})])}),mce("SET_DELEGATE"),mce("CONS")]),Oce=Qu.tuple([vce,xce,Qu.tuple([mce("IF_NONE")]),bce,Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([mce("list"),Qu.array(yce(Qu.object({bytes:Qu.string({description:"from"})}),Qu.array(yce(Qu.object({bytes:Qu.string({description:"to"})}),yce(Qu.object({int:Qu.string({description:"token_id"})}),Qu.object({int:Qu.string({description:"amount"})}))))))])}),...wce]),Tce=Qu.tuple([vce,xce,Qu.tuple([mce("IF_NONE")]),bce,Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([mce("Pair"),yce(Qu.object({bytes:Qu.string({description:"from"})}),yce(Qu.object({bytes:Qu.string({description:"to"})}),Qu.object({int:Qu.string({description:"amount"})})))])}),...wce]);class Cce extends Error{}const jce=e=>(42===e.length&&(e="00"+e),Cc(e)),Rce=[{schema:kce,parsingFn:e=>{const t=kce.parse(e),r=t[0].args[1].bytes,n=t[2].args[1].int;return{type:"tez",recipient:ad(jce(r)),amount:n}}},{schema:Ece,parsingFn:e=>{const t=Ece.parse(e),r=t[0].args[1].bytes,n=t[3].args[1].int;return{type:"tez",recipient:od(jce(r)),amount:n}}},{schema:Oce,parsingFn:e=>{const t=Oce.parse(e),r=od(jce(t[0].args[1].bytes));return t[4].args[1].flatMap((e=>{const t=e.args[0].bytes;return e.args[1].map((e=>{const n=e.args[0].bytes,i=e.args[1].args[0].int,o=e.args[1].args[1].int;return{type:"fa2",contract:r,sender:td(jce(t)),recipient:td(jce(n)),tokenId:i,amount:o}}))}))}},{schema:Tce,parsingFn:e=>{const t=Tce.parse(e),r=t[0],n=t[4].args[1],i=n.args[0].bytes,o=n.args[1].args[0].bytes;return{type:"fa1.2",amount:n.args[1].args[1].int,contract:od(jce(r.args[1].bytes)),recipient:td(jce(o)),sender:td(jce(i)),tokenId:"0"}}},{schema:Ace,parsingFn:(e,t)=>{const r=Ace.parse(e);return{type:"delegation",sender:t.address,recipient:ad(jce(r[0].args[1].bytes))}}},{schema:Pce,parsingFn:(e,t)=>({type:"undelegation",sender:t.address})}],Ice=(e,t,r=[])=>{if(0===e.length)return r;for(let n=0;n((e=>{_ce.parse(e.slice(0,2))})(e),Ice(e.slice(2),t)),Lce=(e,t)=>{const r=JSON.parse(e);return Mce(r,t)},Nce=({rawActions:e,sender:t})=>{try{const r=Lce(e,t);return(0,xn.jsx)(En,{children:r.map(((e,t)=>(0,xn.jsx)(hce,{operation:e},t)))})}catch(Lde){return Lde instanceof Cce?(0,xn.jsx)(Dce,{unrecoginizedRawActions:e}):(0,xn.jsxs)(En,{children:["Invalid michelson code: ",Lde.message]})}},Dce=({unrecoginizedRawActions:e})=>(0,xn.jsx)(DF,{width:"70%",marginBottom:2,allowMultiple:!0,children:(0,xn.jsxs)(zF,{marginBottom:"2",background:"umami.gray.800",border:"none",borderRadius:"8px",children:[(0,xn.jsx)("h2",{children:(0,xn.jsxs)(BF,{children:[(0,xn.jsx)(En,{as:"span",flex:"1",paddingLeft:1,textAlign:"left",children:"Unrecognized operation"}),(0,xn.jsx)(FF,{})]})}),(0,xn.jsx)(qF,{overflowY:"scroll",height:"400px",paddingBottom:3,children:(0,xn.jsx)(U$,{space:1,value:JSON.parse(e)})})]})});function zce(e){return lR({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z",fill:"currentColor"}}]})(e)}const Bce=({icon:e,onClick:t=(()=>{}),label:r,iconWidth:n=4,iconHeight:i=4,textMargin:o="4px",iconColor:a,textFirst:s,...c})=>{const l=(0,xn.jsx)(qA,{as:e,width:n,height:i,color:a}),u=s?{mr:o}:{ml:o},d=(0,xn.jsx)(lF,{...u,fontSize:"sm",children:r});return(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",color:"text.dark",_hover:{color:LP.gray[300]},cursor:"pointer",onClick:t,role:"button",...c,children:[s?d:null,l,s?null:d]})},Fce=({onClickApproveExecute:e,isLoading:t=!1,signerState:r})=>{switch(r){case"awaitingApprovalByExternalSigner":return(0,xn.jsx)(Bce,{"data-testid":"multisig-signer-awaiting-approval",icon:zce,iconColor:LP.orange,iconHeight:5,iconWidth:5,label:"Awaiting Approval"});case"approved":return(0,xn.jsx)(Bce,{"data-testid":"multisig-signer-approved",icon:Sre,iconColor:LP.greenL,iconHeight:5,iconWidth:5,label:"Approved"});case"executable":return(0,xn.jsx)(Gn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Execute"});case"approvable":return(0,xn.jsx)(Gn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Approve"})}},Uce=({signer:e,fee:t,operation:r,actionType:n,transactionCount:o})=>{const{handleAsyncAction:a}=Ste(),{openWith:s}=(0,i.useContext)(EM),c=`${(0,ts.capitalize)(n)} transaction`;return(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Mie,{fee:t,signer:e,title:c,transactionCount:o}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{onSubmit:e=>a((async()=>{const{opHash:t}=await D3(r,e);s((0,xn.jsx)(Cte,{hash:t}))}),{title:`Failed ${n}`}),signer:e,text:c})})]})})},$ce=({pendingApprovals:e,sender:t,operation:r,signerAddress:n})=>{const o=o4(n),a=Kq(),{isLoading:s,handleAsyncAction:c}=Ste(),{openWith:l}=(0,i.useContext)(EM),u=U3(),d=a(n.pkh),h=0===e,f=Hce({approvals:r.approvals,signerAddress:n,operationIsExecutable:h,signerAccount:d});return(0,xn.jsx)(Tie,{icon:(0,xn.jsx)(Pie,{addressKind:o}),leftElement:(0,xn.jsx)(Cie,{label:o.label,pkh:o.pkh}),rightElement:(0,xn.jsx)(Fce,{isLoading:s,onClickApproveExecute:()=>c((async()=>{if(!d)throw new Error("Can't approve or execute with an account you don't own");const e=h?"execute":"approve",n=ane(d,d,[Y5(t.address,e,r.id)]),i=await c3(n,u),o=Lce(r.rawActions,t).length;l((0,xn.jsx)(Uce,{actionType:e,fee:i,operation:n,signer:d,transactionCount:o}))})),signerState:f})})},Hce=({signerAccount:e,operationIsExecutable:t,approvals:r,signerAddress:n})=>{const i=!!r.find((e=>e.pkh===n.pkh));return e?i&&!t?"approved":t?"executable":"approvable":i?"approved":"awaitingApprovalByExternalSigner"},Vce=({operation:e,sender:t})=>{const{signers:r,threshold:n}=t,i=Math.max(n-e.approvals.length,0);return(0,xn.jsx)(En,{padding:3,paddingBottom:0,background:LP.gray[800],borderRadius:6,"data-testid":"multisig-pending-operation-"+e.id,marginY:3,children:(0,xn.jsxs)(zF,{border:"none",borderRadius:"8px",children:[(0,xn.jsx)("h2",{children:(0,xn.jsxs)(BF,{flex:"1",marginBottom:0,paddingBottom:0,textAlign:"left",children:[(0,xn.jsxs)(Ln,{width:"100%",size:"sm",children:["Pending #",e.id]}),(0,xn.jsx)(FF,{})]})}),(0,xn.jsxs)(qF,{children:[(0,xn.jsxs)(_n,{alignItems:"end",justifyContent:"space-between",marginY:2,children:[(0,xn.jsx)(Nce,{rawActions:e.rawActions,sender:t}),(0,xn.jsxs)(_n,{alignItems:"center",marginBottom:"6",children:[(0,xn.jsx)(Ln,{marginRight:1,color:LP.gray[400],size:"sm",children:"Pending Approvals:"}),(0,xn.jsx)(lF,{color:"w","data-testid":"pending-approvals-count",children:i})]})]}),(0,xn.jsx)(En,{marginY:5,children:r.map((r=>(0,xn.jsx)($ce,{operation:e,pendingApprovals:i,sender:t,signerAddress:r},r.pkh)))})]})]})})},qce=({account:e})=>{const t=Hq()(e);return(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(DF,{allowMultiple:!0,defaultIndex:(0,ts.range)(t.length),children:t.map((t=>(0,xn.jsx)(Vce,{operation:t,sender:e},t.id)))})})},Kce=({to:e})=>(0,xn.jsx)(Sn,{children:(0,xn.jsxs)(Zn,{as:PT,color:LP.gray[300],stroke:LP.gray[450],_hover:{color:LP.green,stroke:LP.green},to:e,children:[(0,xn.jsx)(xR,{display:"inline",stroke:"inherit"}),(0,xn.jsx)(lF,{display:"inline",size:"sm",children:"\xa0View All"})]})}),Wce=({owner:e,nfts:t,...r})=>{if(0===t.length)return(0,xn.jsx)(Ane,{size:"md"});const n=Eie(t).slice(0,18);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(Cae,{marginBottom:"35px",spacing:"12px",...r,children:n.map((t=>{const r=kie(xd(t)),n={width:"100%",height:40,fallbackSrc:kie(t.displayUri),src:r};return(0,xn.jsx)(PT,{"data-testid":"nft-link",to:`/home/${e}/${dd(t)}`,children:(0,xn.jsx)(B$,{background:LP.gray[800],border:"1px solid transparent",_hover:{background:LP.gray[700],borderColor:LP.gray[500]},children:(0,xn.jsxs)(F$,{overflow:"hidden",padding:"8px",borderRadius:"6px",children:[(0,xn.jsx)(Sn,{children:(0,xn.jsxs)(En,{position:"relative",width:"100%",height:"100%",children:[(0,xn.jsx)(hF,{zIndex:2,width:"100%",opacity:"0",ratio:1,children:(0,xn.jsx)(TR,{...n,width:"100%",height:40})}),(0,xn.jsx)(hF,{position:"absolute",zIndex:0,top:"0",width:"100%",filter:"blur(20px)",ratio:1,children:(0,xn.jsx)(TR,{...n,width:"100%",height:40})}),(0,xn.jsx)(hF,{position:"absolute",zIndex:1,top:"0",width:"100%",ratio:1,children:(0,xn.jsx)(TR,{...n,width:"100%",height:40})})]})}),Number(t.balance)>1&&(0,xn.jsx)(lF,{position:"absolute",display:"inline",height:"20px",marginTop:"-24px",marginLeft:"4px",padding:"0 8px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",size:"xs",children:"x"+t.balance})]})})},`${e}:${dd(t)}`)}))}),t.length>18&&(0,xn.jsx)(Kce,{to:`/nfts?accounts=${e}`})]})},Gce=i.createContext({mode:"page"}),Yce=["bakerFee","storageFee","allocationFee"],Zce=({operation:e})=>{const t=(0,i.useContext)(Gce),r=Jq(e.sender.address);if("drawer"===t.mode)return null;if(!r)return null;const n=Yce.reduce(((t,r)=>r in e?t.plus((0,ts.get)(e,r)||0):t),Zs(0));return n.eq(0)?null:(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"md",children:"Fee:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"fee",children:G3(n)})]})},Xce=({level:e,status:t})=>{const r=Z3(e);return void 0===t||"applied"===t?r?(0,xn.jsx)(Tj,{"data-testid":"checkmark"}):(0,xn.jsx)(tR,{"data-testid":"hourglass"}):(0,xn.jsx)(Nj,{"data-testid":"crossed-circle"})},Jce=({children:e})=>"drawer"===(0,i.useContext)(Gce).mode?null:(0,xn.jsx)(lF,{marginRight:"4px",color:LP.gray[300],"data-testid":"operation-type",size:"sm",children:e});function Qce(e,t){const r=jne(e),n=jne(t),i=ele(r,n),o=Math.abs(vse(r,n));r.setDate(r.getDate()-i*o);const a=i*(o-Number(ele(r,n)===-i));return 0===a?0:a}function ele(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}const tle=({timestamp:e})=>e?(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"timestamp",size:"sm",children:rle(e)}):null,rle=e=>{const t=new Date,r=new Date(e);return Qce(t,r)<2?nie(r,t,{addSuffix:!0}):ece(r,"dd MMM yyyy")},nle=({hash:e,counter:t,transactionId:r,originationId:n,migrationId:i,children:o,...a})=>{const{tzktExplorerUrl:s}=U3();let c=s;return e?c=(0,ts.compact)([s,e,t]).join("/"):i?c=`${c}/migrations/${i}`:n?c=`${c}/originations/${n}`:r?c=`${c}/transactions/${r}`:console.warn("No id provided to TzktLink"),(0,xn.jsx)(Zn,{"data-testid":"tzkt-link",href:c,isExternal:!0,...a,children:o})},ile=e=>{const t=(0,i.useContext)(Gce);return!!e&&("page"===t.mode||t.selectedAddress.pkh!==e)},ole=({operation:e})=>{var t;const r=ile(e.target.address),n=ile(e.sender.address),i=!r&&!n;return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-contract-call",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Lj,{marginRight:"8px"}),(0,xn.jsx)(nle,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsxs)(Ln,{size:"md",children:["Contract Call: ",null===(t=e.parameter)||void 0===t?void 0:t.entrypoint]})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[r&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:e.target})]}),(n||i)&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:e.sender})]})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Contract Call"}),(0,xn.jsx)(Xce,{...e})]})]})})]})},ale=({operation:e})=>{const t=!!e.newDelegate,r=t?"Delegate":"Delegation Ended",n=ile(e.sender.address);return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-delegation",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Aj,{marginRight:"8px"}),(0,xn.jsx)(nle,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsx)(Ln,{size:"md",children:r})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[t&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:e.newDelegate})]}),n&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:e.sender})]}),!t&&!n&&(0,xn.jsx)(lF,{color:LP.gray[450],children:"N/A"})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:r}),(0,xn.jsx)(Xce,{...e})]})]})})]})},sle=({operation:e})=>{var t;const r=(null===(t=e.originatedContract)||void 0===t?void 0:t.codeHash)===nre&&e.originatedContract.typeHash===rre?"Multisig Account Created":"Contract Origination",n=ile(e.sender.address);return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-origination",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Lj,{marginRight:"8px"}),(0,xn.jsx)(nle,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsx)(Ln,{size:"md",children:r})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsx)(_n,{"data-testid":"from",children:n?(0,xn.jsxs)(_n,{marginRight:"15px",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:e.sender})]}):(0,xn.jsx)(lF,{color:LP.gray[450],children:"N/A"})}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Contract Origination"}),(0,xn.jsx)(Xce,{...e})]})]})})]})},cle=({isOutgoing:e,...t})=>e?(0,xn.jsx)(yR,{"data-testid":"outgoing-arrow",...t}):(0,xn.jsx)(rR,{"data-testid":"incoming-arrow",...t}),lle=({operation:e,tokenTransfer:t,token:r})=>{var n,i;const o=t.amount,a=ile(t.to.address),s=ile((null===(n=t.from)||void 0===n?void 0:n.address)||""),c=!a&&!s,l=Jq((null===(i=t.from)||void 0===i?void 0:i.address)||""),u="nft"===r.type,d=bd(o,r,{showSymbol:!0}),h=l?LP.orange:LP.green,f=u?"white":h,p=l?"-":"+",m=u?(0,xn.jsx)(tq,{padding:"8px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px","data-testid":"nft-tooltip",label:(0,xn.jsx)(hF,{width:"170px",height:"170px",ratio:1,children:(0,xn.jsx)(TR,{src:kie(xd(r))})}),openDelay:300,children:(0,xn.jsx)(_n,{children:(0,xn.jsxs)(nle,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:[(0,xn.jsxs)(lF,{display:"inline",color:h,fontWeight:"600",children:[p,d]}),(0,xn.jsxs)(lF,{display:"inline",fontWeight:"600",children:[" ",hd(r)]})]})})}):(0,xn.jsx)(nle,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:(0,xn.jsxs)(lF,{display:"inline",color:h,fontWeight:"600",children:[p,d]})});return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-token-transfer",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(cle,{marginRight:"8px",isOutgoing:l}),m,e&&(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:t.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[(a||c)&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:t.to})]}),s&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:t.from})]})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Token Transfer"}),(0,xn.jsx)(Xce,{level:t.level})]})]})})]})},ule=({operation:e})=>{const t=Jq(e.sender.address),r=G3(String(e.amount)),n=ile(e.target.address),i=ile(e.sender.address),o=!n&&!i,a=t?LP.orange:LP.green,s=t?"-":"+";return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-transaction",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(cle,{marginRight:"8px",isOutgoing:t}),(0,xn.jsx)(nle,{marginRight:"8px",color:a,counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsxs)(lF,{color:a,fontWeight:"600",children:[s," ",r]})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[(n||o)&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:td(e.target.address)})]}),i&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:td(e.sender.address)})]})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Transaction"}),(0,xn.jsx)(Xce,{...e})]})]})})]})},dle=({operation:e})=>{const t=(()=>{const e=UR((e=>e.assets.transfers.tokens));return t=>e[t]})();switch(e.type){case"token_transfer":{const t=ud(e.token);return t?(0,xn.jsx)(lle,{token:t,tokenTransfer:e}):(console.warn(`Could not parse token transfer ${e.id}`),null)}case"transaction":{const r=!!e.parameter,n=t(e.id);if(n){const t=ud(n.token);return t?(0,xn.jsx)(lle,{operation:e,token:t,tokenTransfer:n}):(0,xn.jsx)(ule,{operation:e})}return r?(0,xn.jsx)(ole,{operation:e}):(0,xn.jsx)(ule,{operation:e})}case"delegation":return(0,xn.jsx)(ale,{operation:e});case"origination":return(0,xn.jsx)(sle,{operation:e})}},hle=({owner:e,operations:t})=>{if(0===t.length)return(0,xn.jsx)(Ene,{size:"md",withViewAllButton:!0});const r=t.slice(0,20);return(0,xn.jsxs)(xn.Fragment,{children:[r.map(((e,t)=>(0,xn.jsxs)(En,{height:"90px",children:[(0,xn.jsx)(dle,{operation:e}),t20&&(0,xn.jsx)(Kce,{to:`/operations?accounts=${e}`})]})},fle=["KT1XnTn74bUtxHfDtBmm2bGZAQfhPbvKWR8o","KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV","KT1Ha4yFVeyzw6KRAdkzq6TxDHB97KG4pZe8","KT1JBNFcB5tiycHNdYGYCtR3kk6JaJysUCi8","KT1Xobej4mc6XgEjDoJoHtTKgbD1ELMvcQuL","KT1JVjgXPMMSaa6FkzeJcgb8q9cUaLmwaJUX","KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb","KT1LN4LPSqTMS7Sd2CJw4bbDGRkMv2t68Fy9","KT1914CUZ7EegAFPbfgQMRkw8Uz5mYkEz2ui","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT19ovJhcsUn4YU8Q5L3BGovKSixfbWcecEA","KT1TgmD7kXQzofpuc9VbTRMdZCS2e6JDuTtc","KT1F1mn2jbqQCJcsNgYKVAQjvenecNMY2oPK","KT1ErKVqEhG9jxXgUG2KGLW3bNM7zXHX8SDF","KT1A5P4ejnLix13jtadsfV9GCnXLMNnab8UT","KT1AM3PV1cwmGRw28DVTgsjjsjHvmL6z4rGh","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1SjXiUX63QvdNMcM2m492f7kuf8JxXRLp4","KT1MZg99PxMDEENwB4Fi64xkqAVh5d1rv8Z9","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1XTxpQvo7oRCqp85LikEZgAZ22uDxhbWJv","KT1VaEsVNiBoA56eToEK6n6BcPgh1tdx9eXi"],ple=({token:e,...t})=>{const r=fle.includes(e.contract);return(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lF,{...t,marginRight:"4px",children:hd(e)}),r&&(0,xn.jsx)(MR,{})]})},mle=({owner:e,tokens:t})=>{if(0===t.length)return(0,xn.jsx)(Pne,{size:"md"});const r=t.slice(0,20);return(0,xn.jsxs)(En,{children:[r.map((e=>(0,xn.jsx)(gle,{token:e},dd(e)))),t.length>20&&(0,xn.jsx)(Kce,{to:`/tokens?accounts=${e}`})]})},gle=({token:e})=>{const t=bd(e.balance,e,{showSymbol:!1});return(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-around",height:20,borderBottom:`1px solid ${LP.gray[800]}`,"data-testid":"token-tile",children:[(0,xn.jsxs)(_n,{alignItems:"center",flex:1,children:[(0,xn.jsx)(CR,{width:"38px",background:LP.gray[500],borderRadius:"4px",contract:e.contract}),(0,xn.jsx)(En,{marginLeft:"16px",children:(0,xn.jsx)(ple,{fontWeight:600,"data-testid":"token-name",token:e})})]}),(0,xn.jsx)(Ln,{"data-testid":"token-balance",size:"lg",children:t})]})},vle=(e,t)=>`${e.tzktExplorerUrl}/${t}`,yle=e=>{const t=U3(),[r,n]=(0,i.useState)([]),[o,a]=(0,i.useState)(!0),[s,c]=(0,i.useState)(!0),{isLoading:l,handleAsyncAction:u}=Ste(),[d,h]=(0,i.useState)(e),f=FR(),[p,m]=(0,i.useState)(0);(0,i.useEffect)((()=>{const e=setInterval((()=>{u((async()=>{var e;const i=null===(e=r[0])||void 0===e?void 0:e.id,o=await ble(f,t,d,{lastId:i,sort:"asc"});n((e=>(0,ts.uniqBy)([...o.reverse(),...e],(e=>e.id))))}))}),15e3);return()=>clearInterval(e)}),[p]);const g=d.join(",");(0,i.useEffect)((()=>{n([]),a(!0),u((async()=>{const e=await ble(f,t,g.split(","));n(e),a(e.length>0),m((e=>e+1))})).finally((()=>{c(!1)}))}),[t,g,f]);return{operations:wle(r),isFirstLoad:s,isLoading:l,hasMore:o,loadMore:async()=>{var e;const i=null===(e=r[r.length-1])||void 0===e?void 0:e.id;if(i)return u((async()=>{const e=await ble(f,t,d,{lastId:i});a(e.length>0),n((t=>[...t,...e]))}))},setAddresses:h}},ble=async(e,t,r,n)=>{const i=await(async(e,t,r)=>{var n;const i=(null===r||void 0===r?void 0:r.limit)||100,o=null!==(n=null===r||void 0===r?void 0:r.sort)&&void 0!==n?n:"desc",a={limit:i,offset:null!==r&&void 0!==r&&r.lastId?{cr:r.lastId}:void 0,sort:{[o]:"id"}},s=await Promise.all([R3(e,t,a),j3(e,t,a),I3(e,t,a),M3(e,t,a)]);return(0,ts.sortBy)(s.flat(),(e=>"asc"===o?e.id:-e.id)).slice(0,i)})(r,t,n),o=i.filter((e=>"transaction"===e.type)).map((e=>e.id)),a=await(async(e,t)=>0===e.length?[]:O3((()=>k3({transactionId:{in:[e.join(",")]}},{baseUrl:t.tzktApiUrl}))))(o,t),s=[...a,...i.filter((e=>"token_transfer"===e.type))];return e(Ld.updateTokenTransfers(s)),e(ih.addTokens({network:t,tokens:s.map((e=>e.token))})),i},wle=e=>{const t=[];for(let r=0;r{i(l)}))}),id:cse(a,l),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":lse(a,l),onFocus:t?void 0:E(e.onFocus,(()=>{s(l),!o&&(!t||!r)&&i(l)}))}}({...e,ref:t}),i={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,xn.jsx)(wn.button,{...n,className:y("chakra-tabs__tab",e.className),__css:i})}));xle.displayName="Tab";const _le=({children:e,...t})=>(0,xn.jsx)(xle,{...t,fontSize:"sm",paddingX:3,children:e}),Sle=({tokens:e,nfts:t,account:r,delegation:n})=>{const i=Hq(),o="multisig"===r.type&&i(r).length>0,a=U3(),{operations:s,isFirstLoad:c}=yle([r.address.pkh]);return(0,xn.jsxs)(hse,{flexDirection:"column",display:"flex",overflow:"hidden",width:"100%",marginTop:"60px","data-testid":"asset-panel",children:[(0,xn.jsxs)(fse,{justifyContent:"space-between","data-testid":"asset-panel-tablist",children:[(0,xn.jsxs)(_n,{children:[o&&(0,xn.jsxs)(_le,{"data-testid":"account-card-pending-tab",children:[(0,xn.jsx)(lF,{children:"Pending"}),(0,xn.jsx)(En,{width:"6px",height:"6px",marginTop:"-3px",marginLeft:"3px",borderRadius:"100%",backgroundColor:LP.orangeL})]}),(0,xn.jsx)(_le,{"data-testid":"account-card-operations-tab",children:"Operations"}),(0,xn.jsx)(_le,{"data-testid":"account-card-delegation-tab",children:"Delegation"}),(0,xn.jsx)(_le,{"data-testid":"account-card-nfts-tab",children:"NFTs"}),(0,xn.jsx)(_le,{"data-testid":"account-card-tokens-tab",children:"Tokens"})]}),(0,xn.jsx)(_ne,{href:vle(a,r.address.pkh),children:(0,xn.jsxs)(Gn,{paddingRight:0,variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"7px",size:"sm",children:"View on Tzkt"}),(0,xn.jsx)(Vj,{stroke:"currentcolor"})]})})]}),(0,xn.jsxs)(pse,{height:"100%",paddingBottom:"60px",children:[o&&(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-pending-tab-panel",paddingX:"0",children:(0,xn.jsx)(qce,{account:r})}),(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-operations-tab-panel",paddingX:"0",children:(0,xn.jsx)(Gce.Provider,{value:{mode:"drawer",selectedAddress:r.address},children:c?(0,xn.jsx)(lF,{color:LP.gray[500],textAlign:"center",children:"Loading..."}):(0,xn.jsx)(hle,{operations:s,owner:r.address.pkh})})}),(0,xn.jsx)(mse,{overflowX:"hidden",paddingTop:"24px","data-testid":"account-card-delegation-tab-panel",paddingX:"0",children:(0,xn.jsx)(uce,{account:r,delegation:n})}),(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-nfts-tab-panel",paddingX:"0",children:(0,xn.jsx)(Wce,{columns:3,nfts:t,owner:r.address.pkh})}),(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-tokens-tab-panel",paddingX:"0",children:(0,xn.jsx)(mle,{owner:r.address.pkh,tokens:e})})]})]})};var kle=v((function(e,t){const{spacing:r="0.5rem",spacingX:n,spacingY:o,children:a,justify:s,direction:c,align:l,className:u,shouldWrapChildren:d,...h}=e,f=(0,i.useMemo)((()=>d?i.Children.map(a,((e,t)=>(0,xn.jsx)(Ele,{children:e},t))):a),[a,d]);return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-wrap",u),...h,children:(0,xn.jsx)(wn.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:l,flexDirection:c,listStyleType:"none",gap:r,columnGap:n,rowGap:o,padding:"0"},children:f})})}));kle.displayName="Wrap";var Ele=v((function(e,t){const{className:r,...n}=e;return(0,xn.jsx)(wn.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:y("chakra-wrap__listitem",r),...n})}));Ele.displayName="WrapItem";const Ale=({signers:e})=>(0,xn.jsx)(En,{width:"100%",marginTop:"60px",padding:"15px",background:LP.gray[800],borderRadius:"8px",children:(0,xn.jsx)(DF,{allowToggle:!0,defaultIndex:0,children:(0,xn.jsxs)(zF,{background:LP.gray[800],border:"none",borderRadius:"8px",children:[(0,xn.jsx)("h2",{children:(0,xn.jsxs)(BF,{as:"span",flex:"1",textAlign:"left",children:[(0,xn.jsx)(Ln,{width:"100%",size:"sm",children:"Approvers"}),(0,xn.jsx)(FF,{cursor:"pointer"})]})}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(kle,{marginTop:"3","data-testid":"multisig-tag-section",children:e.map((e=>(0,xn.jsx)(Ele,{padding:"3px 8px",borderRadius:"100px",children:(0,xn.jsx)(_ie,{address:e})},e.pkh)))})})]})})}),Ple=({account:e})=>{const t=FR(),{onClose:r}=(0,i.useContext)(EM),n=({name:n})=>{t(((e,t)=>(r,n)=>{const{accounts:i,multisigs:o,contacts:a}=n(),s="multisig"===e.type,c=i.items.map((e=>e.label));[c,o.items.map((e=>e.label)),Object.values(a).map((e=>e.name))].flat().includes(t)||r(s?Xd.actions.setName({newName:t,account:e}):Kc.actions.renameAccount({newName:t,account:e}))})(e,n)),r()},{handleSubmit:o,formState:{isValid:a,errors:s},register:c,reset:l}=L$({mode:"onBlur",defaultValues:{name:e.label}}),u=Wq(),{nameExistsInContacts:d}=Uq();return(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:o((({name:e})=>{n({name:e.trim()}),l()})),children:[(0,xn.jsx)(Lte,{subTitle:"Edit your account name here.",title:"Edit Name"}),(0,xn.jsx)(aF,{}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(ZF,{isInvalid:!!s.name,marginY:"20px",children:[(0,xn.jsx)($$,{children:"Account name"}),(0,xn.jsx)(Z$,{type:"text",...c("name",{required:"Name is required",validate:e=>u.map((e=>e.label)).includes(e)?"Name already used in accounts":!d(e.trim())||"Name already registered in address book"}),placeholder:"Enter contact's name"}),s.name&&(0,xn.jsx)(eU,{"data-testid":"name-error",children:s.name.message})]})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:"8px",isDisabled:!a,size:"lg",type:"submit",children:"Save"})})]})})},Ole=({account:e})=>{const{openWith:t,onClose:r}=(0,i.useContext)(EM),n=FR(),o=eT(),a=1===qq().length;let s;switch(e.type){case"secret_key":s=Eoe;break;case"ledger":case"social":s=()=>Kc.actions.removeAccount(e)}let c="Are you sure you want to remove this account?",l="Remove Account";a&&(c="Removing your last account will off-board you from Umami. This will remove or reset all customized settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",l="Remove & Off-board");const u=s?()=>{t((0,xn.jsx)(Iie,{buttonLabel:l,description:c,onSubmit:()=>{n(s(e)),r(),o("/")},title:"Remove Account"}))}:void 0;return(0,xn.jsx)(nne,{onRemove:u,onRename:()=>t((0,xn.jsx)(Ple,{account:e}))})},Tle=e=>(0,xn.jsxs)(En,{textAlign:e.center?"center":"initial",children:[(0,xn.jsx)(Ln,{size:"md",children:G3(e.balance)}),null!==e.dollarBalance&&(0,xn.jsxs)(lF,{marginTop:"6px",color:LP.gray[400],size:"sm",children:["$",e.dollarBalance.toFixed(2)]})]}),Cle=({icon:e,label:t,onClick:r=(()=>{})})=>(0,xn.jsxs)(En,{className:"account-drawer-cta-button",color:LP.gray[300],textAlign:"center",_hover:{color:LP.green},cursor:"pointer",marginX:"24px",onClick:r,children:[(0,xn.jsx)(_4,{className:"account-drawer-cta-button-icon",marginBottom:"8px","aria-label":"button",icon:e,size:"lg",variant:"circle_without_color"}),(0,xn.jsx)(lF,{cursor:"pointer",size:"sm",children:t})]}),jle=({onSend:e,onReceive:t=(()=>{}),balance:r,dollarBalance:n,tokens:o,nfts:a,account:s})=>{const c="multisig"===s.type,{openWith:l}=(0,i.useContext)(EM),u=o4(s.address),d=U3(),[h,f]=(0,i.useState)(null),{handleAsyncAction:p}=Ste();return(0,i.useEffect)((()=>{p((async()=>{const e=await((e,t)=>j3([e],t,{limit:1,sort:{desc:"id"}}).then(ts.first))(s.address.pkh,d);e&&f((e=>{var t,r,n;const i=null===(t=e.sender)||void 0===t?void 0:t.address,o=null===(r=e.newDelegate)||void 0===r?void 0:r.address,a=e.timestamp,s=e.id,c=e.amount;return null==i||null==o||null==a||null==s||null==c?null:{sender:i,timestamp:a,id:s,amount:new Zs(c),delegate:{address:o,alias:(null===(n=e.newDelegate)||void 0===n?void 0:n.alias)||void 0}}})(e))}))}),[s.address.pkh,d]),(0,xn.jsxs)(_n,{zIndex:2,alignItems:"center",flexDirection:"column",height:"100%","data-testid":`account-card-${s.address.pkh}`,children:[(0,xn.jsx)(Pie,{addressKind:u}),(0,xn.jsx)(Ln,{marginTop:"24px",size:"md",children:s.label}),(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"8px",marginBottom:"30px",children:[(0,xn.jsx)(_ie,{marginRight:"4px",address:s.address,mode:{type:"no_icons"}}),(0,xn.jsx)(Ole,{account:s})]}),r&&(0,xn.jsx)(Tle,{balance:r,center:!0,dollarBalance:n}),(0,xn.jsxs)(Sn,{marginTop:"34px",children:[(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(yR,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Send",onClick:e}),(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(rR,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Receive",onClick:t}),!c&&(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(wR,{stroke:"currentcolor"}),label:"Buy tez",onClick:()=>{l((0,xn.jsx)(iie,{recipient:s.address.pkh}))}}),(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(Aj,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Delegate",onClick:()=>{l((0,xn.jsx)(ice,{form:h?{baker:h.delegate.address,sender:s.address.pkh}:void 0,sender:s}))}})]}),c&&(0,xn.jsx)(Ale,{signers:s.signers}),(0,xn.jsx)(Sle,{account:s,delegation:h,nfts:a,tokens:o})]})};var Rle=r(5508);const Ile=({pkh:e})=>{const t=Zq()(e);return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(Lte,{subTitle:"You can receive tez or other digital assets by scanning or sharing this QR code",title:"Receive"}),(0,xn.jsx)(uF,{children:(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:(0,xn.jsx)(En,{padding:"8px",background:"white",borderRadius:"8px",children:(0,xn.jsx)(Rle.QRCode,{size:232,value:e})})})}),(0,xn.jsx)(rU,{children:(0,xn.jsxs)(En,{width:"100%",children:[t&&(0,xn.jsx)(Ln,{textAlign:"center",marginY:2,children:t.label}),(0,xn.jsx)(_n,{justifyContent:"center",width:"100%",children:(0,xn.jsx)(_ie,{address:td(e),mode:{type:"no_icons"}})})]})})]})},Mle=({account:e})=>{const t=n4(),r=(()=>{const e=t4(),t=n4();return r=>{const n=t(r);if(null==n)return null;const i=W3(n);return e(i)}})(),n=Q3(),o=e4(),{openWith:a}=(0,i.useContext)(EM),s=t(e.address.pkh),c=r(e.address.pkh),l=n(e.address.pkh),u=Eie(o(e.address.pkh));return(0,xn.jsx)(jle,{account:e,balance:s,dollarBalance:c,nfts:u,onReceive:()=>{a((0,xn.jsx)(Ile,{pkh:e.address.pkh}))},onSend:()=>a((0,xn.jsx)(bne,{sender:e})),tokens:l})};var Lle=r(2080),Nle=r.n(Lle);const Dle=({nft:e,style:t})=>{const r=e.metadata.attributes;return r&&0!==r.length?(0,xn.jsxs)(zF,{background:LP.gray[800],"data-testid":"attributes-section",style:t,children:[(0,xn.jsxs)(BF,{paddingY:"16px",children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",size:"md",children:"Attributes"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(kle,{marginLeft:"0",spacing:"10px",children:r.map((e=>(0,xn.jsx)(Ele,{flex:"1","data-testid":"nft-attribute",children:(0,xn.jsx)(B$,{width:"160px",height:"128px",marginBottom:"2px",background:LP.gray[700],children:(0,xn.jsxs)(F$,{padding:"16px",children:[(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:e.name}),(0,xn.jsx)(Ln,{size:"md",children:e.value})]})})},e.name)))})})]}):null},zle=({text:e,maxLength:t})=>e.length<=t?(0,xn.jsx)(lF,{"data-testid":"truncated-text",children:e}):(0,xn.jsx)(tq,{label:e,children:(0,xn.jsx)(lF,{"data-testid":"truncated-text",children:q3(e,t)})}),Ble=({url:e,...t})=>(0,xn.jsx)("a",{"data-testid":"tzkt-link",href:e,rel:"noopener noreferrer",target:"_blank",children:(0,xn.jsx)(Tte,{...t})}),Fle=({nft:e})=>{if(!e.metadata.creators||0===e.metadata.creators.length)return(0,xn.jsx)(xn.Fragment,{children:"-"});const t=e.metadata.creators[0];return t.startsWith("tz")?(0,xn.jsx)(_ie,{marginRight:1,address:td(t)}):(0,xn.jsx)(zle,{maxLength:15,text:t})},Ule=({nft:e,style:t})=>{const r=(e=>{const t=e.metadata.royalties;if(!t)return[];const r=Math.pow(10,Number(t.decimals)),n=Object.entries(t.shares).map((([e,t])=>({address:e,share:100*Number(t)/r})));return n.sort(((e,t)=>e.sharee+t.share),0).toFixed(2),i=U3();return(0,xn.jsxs)(zF,{background:LP.gray[800],style:t,children:[(0,xn.jsxs)(BF,{paddingY:"16px",children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",size:"md",children:"Properties"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(pre,{children:(0,xn.jsx)(vre,{variant:"stripped",children:(0,xn.jsxs)(yre,{fontSize:"14px",children:[(0,xn.jsxs)(bre,{background:LP.gray[900],borderColor:LP.gray[700],borderBottomWidth:"1px",borderRadius:"8px",children:[(0,xn.jsx)(wre,{width:"20%",padding:"16px 0 16px 15px",paddingRight:"0",color:LP.gray[400],borderTopLeftRadius:"8px","data-testid":"nft-editions",children:"Editions:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px","data-testid":"nft-editions-value",children:e.totalSupply||"?"}),(0,xn.jsx)(wre,{width:"20%",padding:"16px 0 16px 15px",color:LP.gray[400],children:"Token ID:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px",borderTopRightRadius:"8px",children:e.tokenId})]}),(0,xn.jsxs)(bre,{background:LP.gray[800],borderColor:LP.gray[700],borderBottomWidth:"1px",children:[(0,xn.jsxs)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],"data-testid":"nft-royalty",children:["Royalties",r.length>1?" ("+r.length+")":"",":"]}),(0,xn.jsx)(wre,{padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px","data-testid":"nft-royalty-value",children:r.length>0?n+"%":"-"}),(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],"data-testid":"nft-mime",children:"MIME type:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px","data-testid":"nft-mime-value",children:_d(e)||"-"})]}),(0,xn.jsxs)(bre,{background:LP.gray[900],borderColor:LP.gray[700],borderBottomWidth:"1px",children:[(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],children:"Contract:"}),(0,xn.jsx)(wre,{padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px",children:(0,xn.jsx)(_ie,{marginRight:1,address:td(e.contract)})}),(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],children:"Metadata:"}),(0,xn.jsxs)(wre,{width:"30%",padding:"16px 0 16px 5px",children:["TzKT ",(0,xn.jsx)(Ble,{url:Sd(e,i)})]})]}),(0,xn.jsxs)(bre,{background:LP.gray[800],borderColor:LP.gray[700],borderBottomWidth:"1px",children:[(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],"data-testid":"nft-creator",children:"Creator:"}),(0,xn.jsx)(wre,{padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px","data-testid":"nft-creator-value",children:(0,xn.jsx)(Fle,{nft:e})}),(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],children:"License:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px",children:(0,xn.jsx)(zle,{maxLength:15,text:e.metadata.rights||"-"})})]})]})})})})]})},$le=({nft:e})=>{const t=e.metadata.tags;return t&&0!==t.length?(0,xn.jsx)(kle,{marginTop:"20px","data-testid":"tags-section",children:t.map((e=>(0,xn.jsx)(Ele,{padding:"3px 8px",background:LP.gray[600],borderRadius:"100px",children:(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-tag",children:e})},e)))}):null},Hle=({nft:e})=>{const t=kie(xd(e)),r=kie(e.displayUri);return(0,xn.jsx)(En,{width:"100%","aria-label":"nft",children:(0,xn.jsxs)(_n,{alignItems:"center",height:"60px",padding:3,background:LP.gray[800],borderRadius:"4px","data-testid":"nft-name",children:[(0,xn.jsx)(hF,{width:"30px",height:"30px",ratio:1,children:(0,xn.jsx)(TR,{fallbackSrc:r,src:t})}),e.metadata.name&&(0,xn.jsx)(Ln,{marginLeft:4,size:"sm",children:q3(e.metadata.name,45)})]})})},Vle=e=>{const{mode:t,operations:r,fee:n,data:{nft:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=une(n,r,t),{recipient:f}=a.operations[0];return(0,xn.jsx)(OU,{...l,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:a.type,signer:a.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(_n,{marginBottom:"12px",children:(0,xn.jsx)(Hle,{nft:i})}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Owned:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-owned",size:"sm",children:i.balance})]}),(0,xn.jsx)(Ite,{fee:o})]}),(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"12px",marginBottom:"24px",children:[(0,xn.jsx)(Ln,{marginRight:"12px",size:"md",children:"Quantity:"}),(0,xn.jsx)(Sn,{width:"100px",height:"48px",background:LP.gray[800],borderRadius:"4px",children:(0,xn.jsxs)(lF,{textAlign:"center",children:[a.operations[0].amount," out of ",i.balance]})})]}),(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{marginBottom:"24px",address:a.sender.address}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:f}),(0,xn.jsx)(one,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:Bte(a.type,t)})})]})})})},qle=e=>{const{nft:t}=e,r=gne({SignPage:Vle,signPageExtraData:{nft:t},FormPage:qle,defaultFormPageProps:e,toOperation:Kle(t)}),n=vne(Kle(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=yne([r,n]),s=L$({mode:"onBlur",defaultValues:{quantity:1,...lne(e)}}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(_n,{marginBottom:"12px",children:(0,xn.jsx)(Hle,{nft:e.nft})}),(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Owned:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-owned",size:"sm",children:t.balance})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.quantity,children:[(0,xn.jsx)($$,{children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"8px",size:"md",children:"Quantity:"}),(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(W$,{width:"75px",children:(0,xn.jsx)(Z$,{width:"60px",color:"white","data-testid":"quantity-input",step:1,type:"number",...u("quantity",{required:"Quantity is required",max:{value:t.balance,message:`Max quantity is ${t.balance}`},min:{value:1,message:"Min quantity is 1"}})})}),(0,xn.jsxs)(lF,{"data-testid":"out-of-nft",children:["out of ",t.balance]})]})]})}),l.quantity&&(0,xn.jsx)(Ete,{"data-testid":"quantity-error",children:l.quantity.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:l.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,xn.jsx)(g4,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,xn.jsx)(Ete,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},Kle=e=>t=>({type:"fa2",sender:td(t.sender),recipient:td(t.recipient),contract:od(e.contract),tokenId:e.tokenId,amount:t.quantity.toString()}),Wle=({nft:e,ownerPkh:t})=>{var r;const n=kie(wd(e)),o=kie(e.displayUri),a=Xq(),{openWith:s}=(0,i.useContext)(EM),c=null===(r=_d(e))||void 0===r?void 0:r.startsWith("video/"),l=fd(e),u={border:"none",borderRadius:"8px",marginBottom:"20px"};return(0,xn.jsxs)(En,{children:[(0,xn.jsx)(B$,{width:"534px",height:"534px",background:LP.gray[800],children:(0,xn.jsxs)(F$,{padding:"24px",children:[(0,xn.jsx)(En,{position:"relative",width:"486px",height:"486px",children:c?(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(En,{position:"absolute",zIndex:1,width:"486px",height:"486px",children:(0,xn.jsx)(Nle(),{width:"100%",height:"100%",loop:!0,playing:!0,url:n})}),(0,xn.jsx)(TR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,filter:"blur(20px)",src:o})]}):(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(TR,{position:"absolute",zIndex:1,width:"486px",height:"486px",objectFit:"contain",alt:l,fallbackSrc:o,src:n}),(0,xn.jsx)(TR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,"data-testid":"nft-image",fallbackSrc:o,filter:"blur(20px)",src:n})]})}),Number(e.balance)>1&&(0,xn.jsx)(lF,{position:"absolute",display:"inline",height:"24px",marginTop:"-38px",marginLeft:"16px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance})]})}),(0,xn.jsx)($le,{nft:e}),l&&(0,xn.jsx)(Ln,{marginTop:"16px",marginBottom:"14px","data-testid":"nft-name",size:"lg",children:l}),e.metadata.description&&(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-description",size:"sm",children:e.metadata.description}),(0,xn.jsx)(Gn,{marginTop:"20px",onClick:()=>{s((0,xn.jsx)(qle,{nft:e,sender:a(t)}))},children:"Send"}),(0,xn.jsxs)(DF,{marginTop:"32px",allowMultiple:!0,children:[(0,xn.jsx)(Dle,{nft:e,style:u}),(0,xn.jsx)(Ule,{nft:e,style:u}),(0,xn.jsxs)(zF,{background:LP.gray[800],style:u,children:[(0,xn.jsxs)(BF,{paddingY:"16px",children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",size:"md",children:"JSON"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(U$,{value:e})})]})]})]})},Gle=({ownerPkh:e,nft:t,onCloseDrawer:r})=>(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",paddingBottom:"22px",color:LP.gray[400],"data-testid":"nft-drawer-body",children:[(0,xn.jsx)(_ie,{address:td(e)}),(0,xn.jsx)(Xae,{onClose:r})]}),(0,xn.jsx)(Wle,{nft:t,ownerPkh:e})]}),Yle=()=>{const[e,t]=(0,i.useState)(null),{ownerPkh:r,nftId:n}=function(){let{matches:e}=i.useContext(YO),t=e[e.length-1];return t?t.params:{}}(),o=X3(),a=r&&(0,ts.get)(o,[r],[]).find((e=>dd(e)===n)),s=!!a,{isOpen:c,onOpen:l,onClose:u}=YR({defaultIsOpen:s}),{isOpen:d}=AM(),h=eT(),f=(0,i.useCallback)((()=>{t(null),u(),h("/home")}),[u,h]);(0,i.useEffect)((()=>{const e=e=>{"Escape"===e.key&&f()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[f]);const p=(0,i.useMemo)((()=>({selectedAccount:e,selectAccount:e=>{t(e),l()}})),[e,l]);return(0,xn.jsxs)(Oie.Provider,{value:p,children:[(0,xn.jsx)(Gae,{}),(0,xn.jsxs)(soe,{autoFocus:!1,blockScrollOnMount:!d,isOpen:c,onClose:f,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsxs)(hoe,{children:[s&&(0,xn.jsx)(uF,{children:(0,xn.jsx)(Gle,{nft:a,onCloseDrawer:f,ownerPkh:r})}),!s&&e&&(0,xn.jsxs)(uF,{overflow:"hidden",background:jie({account:e,radius:"350px",opacity:"35",mainBackgroundColor:"transparent",left:"300px",top:"-125px"}),children:[(0,xn.jsx)(Zae,{onClose:f}),(0,xn.jsx)(Mle,{account:e})]})]})]})]})},Zle=()=>(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Accounts"}),(0,xn.jsx)(_n,{flex:1,minHeight:1,children:(0,xn.jsxs)(_n,{flexDirection:"column",flex:1,marginRight:"12px",paddingBottom:"12px",children:[(0,xn.jsx)(qae,{}),(0,xn.jsx)(En,{flex:1,overflow:"hidden",borderRadius:"8px",children:(0,xn.jsx)(Yle,{})})]})})]}),Xle=(0,i.createContext)({selectedNFT:void 0,setSelectedNFT:e=>{}}),Jle=({nft:e})=>{const{selectedNFT:t,setSelectedNFT:r}=(0,i.useContext)(Xle),n=kie(xd(e)),o=kie(e.displayUri),a=e.metadata.name,s={width:"100%",minWidth:"242px",minHeight:"242px",objectFit:"contain",aspectRatio:"1",fallbackSrc:o,src:n},c=t&&dd(t)===dd(e)&&t.owner===e.owner;return(0,xn.jsx)(B$,{minWidth:"274px",borderRadius:"8px",cursor:"pointer","data-testid":"nft-card"+(c?"-selected":""),onClick:()=>r(e),children:(0,xn.jsxs)(F$,{padding:"16px",background:LP.gray[900],border:"1px solid",borderColor:c?LP.orangeL:"transparent",borderRadius:"8px",_hover:{background:LP.gray[700],borderColor:LP.gray[500]},children:[(0,xn.jsx)(Sn,{children:(0,xn.jsxs)(En,{position:"relative",width:"100%",children:[(0,xn.jsx)(TR,{...s,zIndex:2,opacity:"0"}),(0,xn.jsx)(TR,{...s,position:"absolute",zIndex:0,top:"0",filter:"blur(20px)"}),(0,xn.jsx)(TR,{...s,position:"absolute",zIndex:1,top:"0","data-testid":"nft-image"})]})}),Number(e.balance)>1&&(0,xn.jsx)(lF,{position:"absolute",display:"inline",height:"24px",marginTop:"-36px",marginLeft:"10px",paddingTop:"1px",fontSize:"14px",borderRadius:"full",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance}),(0,xn.jsx)(En,{overflow:"hidden","data-testid":"nft-card-name",children:(0,xn.jsx)(Ln,{overflow:"hidden",marginTop:"15px",marginBottom:"8px",fontSize:"sm",whiteSpace:"nowrap",textOverflow:"ellipsis",children:a})}),(0,xn.jsx)(_ie,{address:td(e.owner)})]})})},Qle=({nftsByOwner:e})=>{const t=Object.entries(e).flatMap((([e,t])=>(t||[]).map((t=>({owner:e,...t})))));let r="repeat(auto-fit, minmax(min(100%/2, max(274px, 100%/7)), 1fr))";return t.length<3&&(r=`repeat(auto-fit, min(100% / ${t.length} - 16px, 450px))`),(0,xn.jsx)(Cae,{gridTemplateColumns:r,marginBottom:"16px",minChildWidth:"340px",spacing:"16px",children:Eie(t).map((e=>(0,xn.jsx)(Jle,{nft:e},`${e.owner}:${dd(e)}`)))})};function eue(e={}){const{timeout:t=300,preventDefault:r=(()=>!0)}=e,[n,o]=(0,i.useState)([]),a=(0,i.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return(0,i.useEffect)((()=>s),[]),function(e){return i=>{if("Backspace"===i.key){const e=[...n];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(i)){const c=n.concat(i.key);r(i)&&(i.preventDefault(),i.stopPropagation()),o(c),e(c.join("")),s(),a.current=setTimeout((()=>{o([]),a.current=null}),t)}}}}function tue(e,t){var r;const n=e.target;if(n){if(!rue(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}function rue(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[nue,iue,oue,aue]=SF(),[sue,cue]=Nn({strict:!1,name:"MenuContext"});function lue(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function uue(e){return lue(e).activeElement===e}function due(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:c,defaultIsOpen:l,onClose:u,onOpen:d,placement:h="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...g}=e,v=(0,i.useRef)(null),y=(0,i.useRef)(null),b=oue(),w=(0,i.useCallback)((()=>{requestAnimationFrame((()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})}))}),[]),x=(0,i.useCallback)((()=>{const e=setTimeout((()=>{var e;if(o)null==(e=o.current)||e.focus();else{const e=b.firstEnabled();e&&C(e.index)}}));L.current.add(e)}),[b,o]),_=(0,i.useCallback)((()=>{const e=setTimeout((()=>{const e=b.lastEnabled();e&&C(e.index)}));L.current.add(e)}),[b]),S=(0,i.useCallback)((()=>{null==d||d(),a?x():w()}),[a,x,w,d]),{isOpen:k,onOpen:E,onClose:A,onToggle:P}=GV({isOpen:c,defaultIsOpen:l,onClose:u,onOpen:S});!function(e){const{ref:t,handler:r,enabled:n=!0}=e,o=kb(r),a=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)((()=>{if(!n)return;const e=e=>{tue(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&tue(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&tue(e,t)&&(a.isPointerDown=!1,o(e))},c=rue(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",i,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",i,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,n])}({enabled:k&&n,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||A()}});const O=KV({...g,enabled:k||m,placement:h,direction:p}),[T,C]=(0,i.useState)(-1);Eb((()=>{k||C(-1)}),[k]),Dre(v,{focusRef:y,visible:k,shouldFocus:!0});const j=Rre({isOpen:k,ref:v}),[R,I]=function(e,...t){const r=(0,i.useId)(),n=e||r;return(0,i.useMemo)((()=>t.map((e=>`${e}-${n}`))),[n,t])}(t,"menu-button","menu-list"),M=(0,i.useCallback)((()=>{E(),w()}),[E,w]),L=(0,i.useRef)(new Set([]));(0,i.useEffect)((()=>{const e=L.current;return()=>{e.forEach((e=>clearTimeout(e))),e.clear()}}),[]);const N=(0,i.useCallback)((()=>{E(),x()}),[x,E]),D=(0,i.useCallback)((()=>{E(),_()}),[E,_]),z=(0,i.useCallback)((()=>{var e,t;const r=lue(v.current),n=null==(e=v.current)?void 0:e.contains(r.activeElement);if(!(k&&!n))return;const i=null==(t=b.item(T))?void 0:t.node;null==i||i.focus({preventScroll:!0})}),[k,T,b]),B=(0,i.useRef)(null);return{openAndFocusMenu:M,openAndFocusFirstItem:N,openAndFocusLastItem:D,onTransitionEnd:z,unstable__animationState:j,descendants:b,popper:O,buttonId:R,menuId:I,forceUpdate:O.forceUpdate,orientation:"vertical",isOpen:k,onToggle:P,onOpen:E,onClose:A,menuRef:v,buttonRef:y,focusedIndex:T,closeOnSelect:r,closeOnBlur:n,autoSelect:a,setFocusedIndex:C,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:B}}function hue(e){var t;return function(e){var t;if(!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e))return!1;const r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function fue(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:c,isFocusable:l,closeOnSelect:u,type:d,...h}=e,f=cue(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:g,onClose:v,menuRef:y,isOpen:b,menuId:w,rafId:x}=f,_=(0,i.useRef)(null),S=`${w}-menuitem-${(0,i.useId)()}`,{index:k,register:E}=aue({disabled:c&&!l}),A=(0,i.useCallback)((e=>{null==r||r(e),c||p(k)}),[p,k,c,r]),P=(0,i.useCallback)((e=>{null==n||n(e),_.current&&!uue(_.current)&&A(e)}),[A,n]),O=(0,i.useCallback)((e=>{null==o||o(e),c||p(-1)}),[p,c,o]),T=(0,i.useCallback)((e=>{null==a||a(e),hue(e.currentTarget)&&(null!=u?u:g)&&v()}),[v,a,g,u]),C=(0,i.useCallback)((e=>{null==s||s(e),p(k)}),[p,s,k]),j=k===m,R=c&&!l;Eb((()=>{if(b)return j&&!R&&_.current?(x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame((()=>{var e;null==(e=_.current)||e.focus({preventScroll:!0}),x.current=null}))):y.current&&!uue(y.current)&&y.current.focus({preventScroll:!0}),()=>{x.current&&cancelAnimationFrame(x.current)}}),[j,R,y,b]);const I=Qae({onClick:T,onFocus:C,onMouseEnter:A,onMouseMove:P,onMouseLeave:O,ref:Kn(E,_,t),isDisabled:c,isFocusable:l});return{...h,...I,type:null!=d?d:I.type,id:S,role:"menuitem",tabIndex:j?0:-1}}var[pue,mue]=Nn({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),gue=e=>{const{children:t}=e,r=Mn("Menu",e),n=ft(e),{direction:o}=On(),{descendants:a,...s}=due({...n,direction:o}),c=(0,i.useMemo)((()=>s),[s]),{isOpen:l,onClose:u,forceUpdate:d}=c;return(0,xn.jsx)(nue,{value:a,children:(0,xn.jsx)(sue,{value:c,children:(0,xn.jsx)(pue,{value:r,children:x(t,{isOpen:l,onClose:u,forceUpdate:d})})})})};gue.displayName="Menu";var vue=v(((e,t)=>{const r=mue();return(0,xn.jsx)(wn.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})})),yue=v(((e,t)=>{const{children:r,as:n,...o}=e,a=function(e={},t=null){const r=cue(),{onToggle:n,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=r,c=(0,i.useCallback)((e=>{const t=e.key,r={Enter:a,ArrowDown:a,ArrowUp:s}[t];r&&(e.preventDefault(),e.stopPropagation(),r(e))}),[a,s]);return{...e,ref:Kn(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":S(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:E(e.onClick,n),onKeyDown:E(e.onKeyDown,c)}}(o,t),s=n||vue;return(0,xn.jsx)(s,{...a,className:y("chakra-menu__menu-button",e.className),children:(0,xn.jsx)(wn.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})}));yue.displayName="MenuButton";var bue={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},wue=wn(FA.div),xue=v((function(e,t){var r,n;const{rootProps:o,motionProps:a,...s}=e,{isOpen:c,onTransitionEnd:l,unstable__animationState:u}=cue(),d=function(e={},t=null){const r=cue();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:n,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:c,menuId:l,isLazy:u,lazyBehavior:d,unstable__animationState:h}=r,f=iue(),p=eue({preventDefault:e=>" "!==e.key&&hue(e.target)}),m=(0,i.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=e.key,r={Tab:e=>e.preventDefault(),Escape:c,ArrowDown:()=>{const e=f.nextEnabled(n);e&&o(e.index)},ArrowUp:()=>{const e=f.prevEnabled(n);e&&o(e.index)}},i=r[t];if(i)return e.preventDefault(),void i(e);const a=p((e=>{const t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));const i=e.filter((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));if(i.length>0){let t;return i.includes(n)?(t=i.indexOf(n)+1,t===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return n}(f.values(),e,(e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""}),f.item(n));if(t){const e=f.indexOf(t.node);o(e)}}));hue(e.target)&&a(e)}),[f,n,p,c,o]),g=(0,i.useRef)(!1);s&&(g.current=!0);const v=Bre({wasSelected:g.current,enabled:u,mode:d,isSelected:h.present});return{...e,ref:Kn(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:E(e.onKeyDown,m)}}(s,t),h=function(e={}){const{popper:t,isOpen:r}=cue();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}(o),f=mue();return(0,xn.jsx)(wn.div,{...h,__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=f.list)?void 0:r.zIndex},children:(0,xn.jsx)(wue,{variants:bue,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...f.list},...a,className:y("chakra-menu__menu-list",d.className),...d,onUpdate:l,onAnimationComplete:A(u.onComplete,d.onAnimationComplete)})})}));xue.displayName="MenuList";var _ue=v(((e,t)=>{const r=mue();return(0,xn.jsx)(wn.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})}));_ue.displayName="MenuCommand";var Sue=v(((e,t)=>{const{type:r,...n}=e,o=mue(),a=n.as||r?null!=r?r:void 0:"button",s=(0,i.useMemo)((()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item})),[o.item]);return(0,xn.jsx)(wn.button,{ref:t,type:a,...n,__css:s})})),kue=e=>{const{className:t,children:r,...n}=e,o=mue(),a=i.Children.only(r),s=(0,i.isValidElement)(a)?(0,i.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:y("chakra-menu__icon",a.props.className)}):null,c=y("chakra-menu__icon-wrapper",t);return(0,xn.jsx)(wn.span,{className:c,...n,__css:o.icon,children:s})};kue.displayName="MenuIcon";var Eue=v(((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:i,commandSpacing:o="0.75rem",children:a,...s}=e,c=fue(s,t),l=r||i?(0,xn.jsx)("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return(0,xn.jsxs)(Sue,{...c,className:y("chakra-menu__menuitem",c.className),children:[r&&(0,xn.jsx)(kue,{fontSize:"0.8em",marginEnd:n,children:r}),l,i&&(0,xn.jsx)(_ue,{marginStart:o,children:i})]})}));Eue.displayName="MenuItem";const Aue=({accounts:e,onSelect:t})=>(0,xn.jsx)(xue,{zIndex:"docked",overflowY:"scroll",maxHeight:"300px",padding:0,background:LP.gray[900],children:e.map((e=>(0,xn.jsx)(Eue,{width:"100%",minHeight:"48px",padding:"5px",background:LP.gray[700],"aria-label":e.label,onClick:()=>{t(e)},value:e.address.pkh,children:(0,xn.jsx)(d4,{width:"370px",height:"40px",padding:"5px",background:LP.gray[700],borderRadius:"4px",_hover:{background:LP.gray[500]},cursor:"pointer",address:e.address})},e.address.pkh)))}),Pue=()=>{const e=Wq(),[t,r]=CT(),n=t.getAll("accounts"),i=e.filter((e=>n.includes(e.address.pkh))),o=(0,ts.differenceBy)(e,i,(e=>e.address.pkh)),a=i.length===e.length;return{selectedAccounts:0===i.length?e:i,accountsFilter:(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(En,{alignSelf:"flex-start",children:(0,xn.jsxs)(gue,{children:[(0,xn.jsx)(yue,{as:Gn,maxHeight:"26px",paddingLeft:0,fontWeight:"normal",_hover:{bg:"none"},_active:{bg:"none"},"data-testid":"account-filter",isDisabled:a,marginY:"16px",rightIcon:(0,xn.jsx)(yae,{}),variant:"ghost",children:"Filter by Account"}),(0,xn.jsx)(Aue,{accounts:o,onSelect:e=>{r({...t,accounts:[...i,e].map((e=>e.address.pkh))})}})]})}),(0,xn.jsx)(kle,{width:"100%",children:i.map((e=>(0,xn.jsx)(_ie,{address:e.address,"data-testid":"account-pill",mode:{type:"removable",onRemove:()=>{r({...t,accounts:n.filter((t=>t!==e.address.pkh))})}}},e.address.pkh)))})]})}},Oue=()=>{const e=X3(),{isOpen:t}=AM(),{accountsFilter:r,selectedAccounts:n}=Pue(),[o,a]=(0,i.useState)(void 0);(0,i.useEffect)((()=>{const e=e=>{"Escape"===e.key&&a(void 0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const s=(0,ts.pick)(e,n.map((e=>e.address.pkh))),c=(0,ts.sumBy)(Object.values(s).flat(),(e=>Number((null===e||void 0===e?void 0:e.balance)||0))),l=(0,ts.every)(s,(e=>!e||0===e.length));return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{subtitle:`(${c})`,title:"NFTs"}),r,l?(0,xn.jsx)(Ane,{size:"lg"}):(0,xn.jsxs)(Xle.Provider,{value:{setSelectedNFT:a,selectedNFT:o},children:[(0,xn.jsx)(En,{overflowY:"scroll",children:(0,xn.jsx)(Qle,{nftsByOwner:s})}),(0,xn.jsxs)(soe,{autoFocus:!1,blockScrollOnMount:!t,isOpen:!!o,onClose:()=>a(void 0),placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsx)(uF,{children:o&&(0,xn.jsx)(Gle,{nft:o,onCloseDrawer:()=>a(void 0),ownerPkh:o.owner})})})]})]})]})},Tue=()=>{const{accountsFilter:e,selectedAccounts:t}=Pue(),{operations:r,loadMore:n,hasMore:o,setAddresses:a,isLoading:s}=yle(t.map((e=>e.address.pkh))),c=t.map((e=>e.address.pkh)).join(",");(0,i.useEffect)((()=>{a(c.split(","))}),[a,c]);const l=(0,xn.jsx)(lF,{color:LP.gray[500],textAlign:"center",paddingY:"20px",children:"Loading..."});return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Operations"}),e,0===r.length&&s&&l,0===r.length&&!s&&(0,xn.jsx)(Ene,{size:"lg"}),r.length>0&&(0,xn.jsx)(En,{overflowY:"scroll",marginBottom:"20px",background:LP.gray[900],borderRadius:"8px",onScroll:async e=>{if(!o||s)return;const t=e.target;t.scrollHeight-t.scrollTop-t.clientHeight<100&&n()},paddingX:"20px",children:(0,xn.jsxs)(Gce.Provider,{value:{mode:"page"},children:[r.map(((e,t)=>{const n=t===r.length-1;return(0,xn.jsxs)(En,{height:"90px",marginBottom:n?"10px":0,paddingY:"20px",children:[(0,xn.jsx)(dle,{operation:e}),!n&&(0,xn.jsx)(En,{children:(0,xn.jsx)(jre,{marginTop:"20px"})})]},e.id)})),s&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{}),l]})]})})]})},Cue=()=>{const{data:e}=(0,Jn.useQuery)(Xte,(()=>Zte.getPeers())),t=Qte(),[r,n]=(0,i.useState)([]);return(0,i.useEffect)((()=>{(async()=>{const t=await Promise.all((e||[]).map((async e=>({...e,senderId:await kL(e.publicKey)}))));n(t)})()}),[e]),0===r.length?(0,xn.jsxs)(En,{children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(lF,{marginTop:"31px",color:LP.gray[400],size:"lg",children:"Your dApps will appear here"})]}):(0,xn.jsx)(jue,{peerInfos:r,removePeer:t})},jue=({peerInfos:e,removePeer:t})=>(0,xn.jsx)(En,{children:e.map((e=>(0,xn.jsxs)(i.Fragment,{children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(Rue,{onRemove:()=>t(e),peerInfo:e})]},e.name)))}),Rue=({peerInfo:e,onRemove:t})=>(0,xn.jsxs)(_n,{justifyContent:"space-between",height:"106px","data-testid":"peer-row",paddingY:"30px",children:[(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(hF,{width:"48px",marginRight:"16px",ratio:1,children:(0,xn.jsx)(TR,{width:"100%",src:e.icon})}),(0,xn.jsxs)(Sn,{alignItems:"flex-start",flexDirection:"column",children:[(0,xn.jsx)(Ln,{marginBottom:"6px",size:"md",children:e.name}),(0,xn.jsx)(Iue,{peerInfo:e})]})]}),(0,xn.jsx)(Sn,{children:(0,xn.jsx)(_4,{"aria-label":"Remove Peer",icon:(0,xn.jsx)(jR,{}),onClick:t,size:"xs",variant:"circle"})})]}),Iue=({peerInfo:e})=>{const t=(e=>{const t=UR((e=>e.beacon));return t[e]})(e.senderId);return t?(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(_ie,{marginRight:"10px",address:td(t.accountPkh)}),(0,xn.jsx)(jre,{marginRight:"10px",orientation:"vertical"}),(0,xn.jsx)(lF,{marginTop:"2px",marginRight:"4px",color:LP.gray[450],fontWeight:650,size:"sm",children:"Network:"}),(0,xn.jsx)(lF,{marginTop:"2px",color:LP.white,"data-testid":"dapp-connection-network",size:"sm",children:(0,ts.capitalize)(t.networkType)})]}):null},Mue=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),{isOpen:n}=AM();return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(eoe,{left:"dApps",isSelected:e,onClick:r}),(0,xn.jsxs)(soe,{autoFocus:!1,blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Zae,{onClose:t}),(0,xn.jsx)(Lue,{})]})})]})]})},Lue=()=>{const e=ere();return(0,xn.jsxs)(En,{children:[(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"space-between",height:24,children:(0,xn.jsx)(Ln,{children:"dApps"})}),(0,xn.jsx)(Gn,{onClick:()=>navigator.clipboard.readText().then((t=>{e(t)})),children:"Connect with Pairing Request"}),(0,xn.jsx)(lF,{marginTop:"16px",marginBottom:"32px",color:"text.dark",children:"or open a deeplink from inside the dApp..."}),(0,xn.jsx)(Cue,{})]})};function Nue(e){return lR({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]})(e)}const Due=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),{isOpen:n}=AM();return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(eoe,{left:"Error Logs",isSelected:e,onClick:r}),(0,xn.jsxs)(soe,{blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Zae,{onClose:t}),(0,xn.jsx)(zue,{})]})})]})]})},zue=()=>{const e=[...UR((e=>e.errors))].reverse(),t=Ei();return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",height:"50px",marginBottom:"20px",children:[(0,xn.jsx)(Ln,{size:"xl",children:"Error Logs"}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)("a",{download:"UmamiErrorLogs.json",href:`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,children:(0,xn.jsx)(Gn,{variant:"tertiary",children:"Download error logs"})}),(0,xn.jsx)(Gn,{marginLeft:"8px",onClick:()=>{t(Yd.actions.reset())},variant:"warning",children:"Clear All"})]})]}),e.map((e=>(0,xn.jsx)(Bue,{errorLog:e},pa())))]})},Bue=({errorLog:e})=>(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{marginY:1}),(0,xn.jsx)(_n,{justifyContent:"space-between",paddingY:3,children:(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(qA,{as:Nue,marginTop:"1px",marginRight:2}),(0,xn.jsxs)(_n,{flexDirection:"column",children:[(0,xn.jsx)(Ln,{wordBreak:"break-all",size:"sm",children:e.description}),(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:e.timestamp})]})]})})]});function Fue(e={}){const{onChange:t,value:r,defaultValue:n,name:o,isDisabled:a,isFocusable:s,isNative:c,...l}=e,[u,d]=(0,i.useState)(n||""),h="undefined"!==typeof r,f=h?r:u,p=(0,i.useRef)(null),m=(0,i.useCallback)((()=>{const e=p.current;if(!e)return;let t="input:not(:disabled):checked";const r=e.querySelector(t);if(r)return void r.focus();t="input:not(:disabled)";const n=e.querySelector(t);null==n||n.focus()}),[]),g=(0,i.useId)(),v=o||`radio-${g}`,y=(0,i.useCallback)((e=>{const r=function(e){return e&&b(e)&&b(e.target)}(e)?e.target.value:e;h||d(r),null==t||t(String(r))}),[t,h]);return{getRootProps:(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(t,p),role:"radiogroup"})),[]),getRadioProps:(0,i.useCallback)(((e={},t=null)=>{const r=c?"checked":"isChecked";return{...e,ref:t,name:v,[r]:null!=f?e.value===f:void 0,onChange(e){y(e)},"data-radiogroup":!0}}),[c,v,y,f]),name:v,ref:p,focus:m,setValue:d,value:f,onChange:y,isDisabled:a,isFocusable:s,htmlProps:l}}var[Uue,$ue]=Nn({name:"RadioGroupContext",strict:!1}),Hue=v(((e,t)=>{const{colorScheme:r,size:n,variant:o,children:a,className:s,isDisabled:c,isFocusable:l,...u}=e,{value:d,onChange:h,getRootProps:f,name:p,htmlProps:m}=Fue(u),g=(0,i.useMemo)((()=>({name:p,size:n,onChange:h,colorScheme:r,value:d,variant:o,isDisabled:c,isFocusable:l})),[p,n,h,r,d,o,c,l]);return(0,xn.jsx)(Uue,{value:g,children:(0,xn.jsx)(wn.div,{...f(m,t),className:y("chakra-radio-group",s),children:a})})}));Hue.displayName="RadioGroup";var Vue={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function que(e){e.preventDefault(),e.stopPropagation()}var Kue=v(((e,t)=>{var r;const n=$ue(),{onChange:o,value:a}=e,s=Mn("Radio",{...n,...e}),c=ft(e),{spacing:l="0.5rem",children:u,isDisabled:d=(null==n?void 0:n.isDisabled),isFocusable:h=(null==n?void 0:n.isFocusable),inputProps:f,...p}=c;let m=e.isChecked;null!=(null==n?void 0:n.value)&&null!=a&&(m=n.value===a);let g=o;(null==n?void 0:n.onChange)&&null!=a&&(g=A(n.onChange,o));const v=null!=(r=null==e?void 0:e.name)?r:null==n?void 0:n.name,{getInputProps:y,getCheckboxProps:b,getLabelProps:w,getRootProps:x,htmlProps:_}=function(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:o,isReadOnly:a,isRequired:s,onChange:c,isInvalid:l,name:u,value:d,id:h,"data-radiogroup":f,"aria-describedby":p,...m}=e,g=`radio-${(0,i.useId)()}`,v=YF(),y=$ue();let b=!v||y||f?g:v.id;b=null!=h?h:b;const w=null!=o?o:null==v?void 0:v.isDisabled,x=null!=a?a:null==v?void 0:v.isReadOnly,_=null!=s?s:null==v?void 0:v.isRequired,A=null!=l?l:null==v?void 0:v.isInvalid,[P,O]=(0,i.useState)(!1),[T,C]=(0,i.useState)(!1),[j,R]=(0,i.useState)(!1),[I,M]=(0,i.useState)(!1),[L,N]=(0,i.useState)(Boolean(t)),D="undefined"!==typeof r,z=D?r:L;(0,i.useEffect)((()=>tae(O)),[]);const B=(0,i.useCallback)((e=>{x||w?e.preventDefault():(D||N(e.target.checked),null==c||c(e))}),[D,w,x,c]),F=(0,i.useCallback)((e=>{" "===e.key&&M(!0)}),[M]),U=(0,i.useCallback)((e=>{" "===e.key&&M(!1)}),[M]),$=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":S(I),"data-hover":S(j),"data-disabled":S(w),"data-invalid":S(A),"data-checked":S(z),"data-focus":S(T),"data-focus-visible":S(T&&P),"data-readonly":S(x),"aria-hidden":!0,onMouseDown:E(e.onMouseDown,(()=>M(!0))),onMouseUp:E(e.onMouseUp,(()=>M(!1))),onMouseEnter:E(e.onMouseEnter,(()=>R(!0))),onMouseLeave:E(e.onMouseLeave,(()=>R(!1)))})),[I,j,w,A,z,T,x,P]),{onFocus:H,onBlur:V}=null!=v?v:{},q=(0,i.useCallback)(((e={},t=null)=>{const r=w&&!n;return{...e,id:b,ref:t,type:"radio",name:u,value:d,onChange:E(e.onChange,B),onBlur:E(V,e.onBlur,(()=>C(!1))),onFocus:E(H,e.onFocus,(()=>C(!0))),onKeyDown:E(e.onKeyDown,F),onKeyUp:E(e.onKeyUp,U),checked:z,disabled:r,readOnly:x,required:_,"aria-invalid":k(A),"aria-disabled":k(r),"aria-required":k(_),"data-readonly":S(x),"aria-describedby":p,style:Vue}}),[w,n,b,u,d,B,V,H,F,U,z,x,_,A,p]);return{state:{isInvalid:A,isFocused:T,isChecked:z,isActive:I,isHovered:j,isDisabled:w,isReadOnly:x,isRequired:_},getCheckboxProps:$,getRadioProps:$,getInputProps:q,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:E(e.onMouseDown,que),"data-disabled":S(w),"data-checked":S(z),"data-invalid":S(A)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":S(w),"data-checked":S(z),"data-invalid":S(A)}),htmlProps:m}}({...p,isChecked:m,isFocusable:h,isDisabled:d,onChange:g,name:v}),[P,O]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(_,rt),T=b(O),C=y(f,t),j=w(),R=Object.assign({},P,x()),I={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},M={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},L={userSelect:"none",marginStart:l,...s.label};return(0,xn.jsxs)(wn.label,{className:"chakra-radio",...R,__css:I,children:[(0,xn.jsx)("input",{className:"chakra-radio__input",...C}),(0,xn.jsx)(wn.span,{className:"chakra-radio__control",...T,__css:M}),u&&(0,xn.jsx)(wn.span,{className:"chakra-radio__label",...j,__css:L,children:u})]})}));Kue.displayName="Radio";const Wue=({network:e})=>{const t=e?"edit":"create",{onClose:r}=(0,i.useContext)(EM),n=Ei(),o=$3(),{formState:{errors:a,isValid:s},register:c,handleSubmit:l}=L$({mode:"onBlur",defaultValues:e});return(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:l((e=>{n(th.upsertNetwork(e)),r()})),children:[(0,xn.jsxs)(sF,{textAlign:"center",children:["edit"===t?"Edit":"Add"," Network",(0,xn.jsx)(aF,{})]}),(0,xn.jsxs)(uF,{children:["create"===t&&(0,xn.jsxs)(ZF,{marginTop:"32px",marginBottom:"24px",isInvalid:!!a.name,children:[(0,xn.jsx)($$,{children:"Name"}),(0,xn.jsx)(Z$,{placeholder:"mainnet",...c("name",{required:"Name is required",validate:e=>{if(o.find((t=>t.name===e)))return"Network with this name already exists"}})}),a.name&&(0,xn.jsx)(Ete,{children:a.name.message})]}),(0,xn.jsxs)(ZF,{marginBottom:"24px",isInvalid:!!a.rpcUrl,children:[(0,xn.jsx)($$,{children:"RPC URL"}),(0,xn.jsx)(Z$,{placeholder:"https://prod.tcinfra.net/rpc/mainnet",...c("rpcUrl",{required:"RPC URL is required"})}),a.rpcUrl&&(0,xn.jsx)(Ete,{children:a.rpcUrl.message})]}),(0,xn.jsxs)(ZF,{marginBottom:"24px",isInvalid:!!a.tzktApiUrl,children:[(0,xn.jsx)($$,{children:"Tzkt API URL"}),(0,xn.jsx)(Z$,{placeholder:"https://api.ghostnet.tzkt.io",...c("tzktApiUrl",{required:"Tzkt API URL is required"})}),a.tzktApiUrl&&(0,xn.jsx)(Ete,{children:a.tzktApiUrl.message})]}),(0,xn.jsxs)(ZF,{marginBottom:"24px",isInvalid:!!a.tzktExplorerUrl,children:[(0,xn.jsx)($$,{children:"Tzkt Explorer URL"}),(0,xn.jsx)(Z$,{placeholder:"https://ghostnet.tzkt.io",...c("tzktExplorerUrl",{required:"Tzkt Explorer URL is required"})}),a.tzktExplorerUrl&&(0,xn.jsx)(Ete,{children:a.tzktExplorerUrl.message})]}),(0,xn.jsxs)(ZF,{children:[(0,xn.jsx)($$,{children:"Buy Tez URL"}),(0,xn.jsx)(Z$,{placeholder:"https://faucet.ghostnet.teztnets.xyz",...c("buyTezUrl")})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!s,onClick:()=>{},type:"submit",children:"edit"===t?"Save changes":"Add network"})})]})]})})},Gue=()=>{const{openWith:e}=(0,i.useContext)(EM),t=U3(),r=H3(),n=$3(),o=FR();return(0,xn.jsxs)(_n,{flexDirection:"column",children:[(0,xn.jsxs)(Sn,{justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{children:"Network Settings"}),(0,xn.jsxs)(Gn,{paddingRight:"0",onClick:()=>e((0,xn.jsx)(Wue,{})),variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{size:"sm",children:"Add Network"}),(0,xn.jsx)(wR,{width:"18px",height:"18px",marginLeft:"4px",stroke:"currentcolor"})]})]}),(0,xn.jsx)(Hue,{marginTop:"60px",onChange:r,value:t.name,children:(0,xn.jsx)(moe,{children:n.map((t=>(0,xn.jsxs)(i.Fragment,{children:[(0,xn.jsx)(jre,{borderColor:LP.gray[700]}),(0,xn.jsxs)(_n,{justifyContent:"space-between","data-testid":`network-${t.name}`,children:[(0,xn.jsx)(Kue,{height:"100px",value:t.name,variant:"primary",children:(0,xn.jsxs)(_n,{flexDirection:"column",marginLeft:"16px",children:[(0,xn.jsx)(Ln,{marginBottom:"4px",size:"sm",children:t.name}),(0,xn.jsx)(lF,{color:LP.gray[400],children:t.rpcUrl})]})}),!Dd(t)&&(0,xn.jsx)(Sn,{"data-testid":"popover-menu",children:(0,xn.jsxs)(rne,{children:[(0,xn.jsxs)(Gn,{onClick:()=>e((0,xn.jsx)(Wue,{network:t})),variant:"popover",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Edit"}),(0,xn.jsx)(bR,{stroke:"inherit"})]}),(0,xn.jsx)(jre,{marginTop:"4px"}),(0,xn.jsxs)(Gn,{onClick:()=>(e=>{o(th.removeNetwork(e))})(t),variant:"popover",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Remove"}),(0,xn.jsx)(jR,{stroke:"inherit"})]})]})})]})]},t.name)))})})]})},Yue=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),{isOpen:n}=(0,i.useContext)(EM);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(eoe,{left:"Network Settings",isSelected:e,onClick:r}),(0,xn.jsxs)(soe,{blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Zae,{onClose:t}),(0,xn.jsx)(Gue,{})]})})]})]})},Zue="2.0.0-beta1",Xue=()=>{const{onClose:e}=(0,i.useContext)(EM),t=L$({mode:"onBlur"}),r=lz(),n=FR(),{handleAsyncAction:o,isLoading:a}=Ste(),{handleSubmit:s,formState:{isValid:c,errors:l},getValues:u}=t;return(0,xn.jsx)(OU,{...t,children:(0,xn.jsx)(oF,{background:LP.gray[700],"data-testid":"change-password-modal",children:(0,xn.jsxs)("form",{onSubmit:s((async({currentPassword:t,newPassword:i,newPasswordConfirmation:a})=>{t!==i&&i===a&&o((async()=>{await n(Vc({currentPassword:t,newPassword:i})).unwrap(),r({description:"Password updated",status:"success"}),e()}))})),children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{textAlign:"center",children:(0,xn.jsx)(Ln,{children:"Change Password"})}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{marginTop:"32px",isInvalid:!!l.currentPassword,children:[(0,xn.jsx)(Ate,{"data-testid":"current-password",inputName:"currentPassword",label:"Current Password",placeholder:"Enter your current password",required:"Current password is required"}),l.currentPassword&&(0,xn.jsx)(Ete,{"data-testid":"current-password-error",children:l.currentPassword.message})]}),(0,xn.jsxs)(ZF,{isInvalid:!!l.newPassword,marginY:6,children:[(0,xn.jsx)(Ate,{"data-testid":"new-password",inputName:"newPassword",label:"New Password",placeholder:"Enter new password",required:"New password is required",validate:e=>u("currentPassword")!==e||"Cannot be the same as old password"}),l.newPassword&&(0,xn.jsx)(Ete,{"data-testid":"new-password-error",children:l.newPassword.message})]}),(0,xn.jsxs)(ZF,{marginTop:3,isInvalid:!!l.newPasswordConfirmation,children:[(0,xn.jsx)(Ate,{"data-testid":"new-password-confirmation",inputName:"newPasswordConfirmation",label:"Confirm New Password",placeholder:"Confirm new password",required:"Confirmation is required",validate:e=>u("newPassword")===e||"Your new passwords do no match"}),l.newPasswordConfirmation&&(0,xn.jsx)(Ete,{"data-testid":"new-password-confirmation-error",children:l.newPasswordConfirmation.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!c,isLoading:a,size:"lg",type:"submit",children:"Update Password"})})]})})})},Jue="wasabi",Que=()=>{const e=()=>{localStorage.clear(),window.location.reload()},t=L$({mode:"onBlur"}),{register:r,handleSubmit:n,formState:{isValid:i,errors:o},getValues:a}=t;return(0,xn.jsx)(OU,{...t,children:(0,xn.jsxs)("form",{onSubmit:n((()=>{a("check")&&a("confirmationCode")===Jue&&e()})),children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{marginBottom:"10px",textAlign:"center",children:(0,xn.jsxs)(En,{children:[(0,xn.jsx)(zR,{width:10,height:10,marginBottom:5}),(0,xn.jsx)(Ln,{children:"Off-board Wallet"})]})}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(lF,{marginBottom:2,color:LP.gray[400],fontWeight:"bold",textAlign:"center",size:"sm",children:"This will permanently remove any data from this computer."}),(0,xn.jsxs)(lF,{color:LP.gray[400],textAlign:"center",size:"sm",children:["Please enter \xab ",Jue," \xbb to confirm. The accounts are still available to be imported in the future; in order to regain access to your accounts, please make sure that you keep the recovery phrase."]}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(jre,{borderColor:LP.gray[700],marginY:5}),(0,xn.jsx)(ZF,{isInvalid:!!o.check,children:(0,xn.jsx)(lae,{...r("check",{required:!0}),children:(0,xn.jsx)(lF,{marginLeft:2,fontWeight:"bold",children:"I have read the warning and I am certain I want to remove my private keys locally. I also made sure to keep my recovery phrase."})})}),(0,xn.jsx)(jre,{borderColor:LP.gray[700],marginY:5}),(0,xn.jsxs)(ZF,{isInvalid:!!o.confirmationCode,paddingY:5,children:[(0,xn.jsx)(Z$,{type:"text",...r("confirmationCode",{required:"Confirmation is required",validate:e=>e===Jue||"Confirmation code does not match"}),placeholder:"Enter code word to confirm"}),o.confirmationCode&&(0,xn.jsx)(Ete,{children:o.confirmationCode.message})]})]})]}),(0,xn.jsx)(rU,{padding:0,children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,isDisabled:!i,size:"lg",type:"submit",variant:"warning",children:"Confirm"})})]})})},ede=()=>(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Settings"}),(0,xn.jsxs)(En,{overflowY:"scroll",children:[(0,xn.jsx)(En,{marginTop:"16px",children:(0,xn.jsx)(tde,{})}),(0,xn.jsx)(rde,{}),(0,xn.jsx)(ide,{}),(0,xn.jsx)(ode,{})]})]}),tde=()=>(0,xn.jsxs)(ade,{title:"General",children:[(0,xn.jsx)(Yue,{}),(0,xn.jsx)(Due,{})]}),rde=()=>null,nde=()=>{const e={version:Zue,"persist:accounts":localStorage.getItem("persist:accounts"),"persist:root":localStorage.getItem("persist:root")},t=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,r=document.createElement("a");r.href=t,r.download="UmamiV2Backup.json",r.click()},ide=()=>(0,xn.jsx)(ade,{title:"Backup",children:(0,xn.jsx)(Qie,{isSelected:!1,onClick:nde,children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{size:"sm",children:"Download backup file"}),(0,xn.jsx)(Gn,{onClick:nde,variant:"unstyled",children:(0,xn.jsx)(Fj,{cursor:"pointer"})})]})})}),ode=()=>{const{modalElement:e,onOpen:t}=(()=>{const{isOpen:e,onOpen:t,onClose:r}=YR();return{modalElement:(0,xn.jsxs)(fI,{isCentered:!0,isOpen:e,onClose:r,children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(oF,{background:LP.gray[900],children:(0,xn.jsx)(Que,{})})]}),onOpen:t}})(),{openWith:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(ade,{title:"Advanced Settings",children:[(0,xn.jsx)(Mue,{}),(0,xn.jsx)(eoe,{left:"Off-board Wallet",isSelected:!1,onClick:t}),(0,xn.jsx)(eoe,{left:"Change Password",isSelected:!1,onClick:()=>r((0,xn.jsx)(Xue,{}))}),e]})},ade=({title:e,children:t})=>(0,xn.jsx)(En,{marginTop:"8px",children:(0,xn.jsx)(_n,{children:(0,xn.jsxs)(En,{width:"550px",children:[(0,xn.jsx)(Ln,{marginBottom:"16px",size:"lg",children:e}),t]})})}),sde=({token:e,amount:t,...r})=>{const{contract:n}=e,i=bd(t,e),o=pd(e);return(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"start",width:"400px",padding:"15px",background:LP.gray[800],borderRadius:"4px","data-testid":"token-tile",...r,children:[(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(hF,{width:"30px",height:"30px",marginRight:"12px",ratio:1,children:(0,xn.jsx)(CR,{padding:"6.25px",background:LP.gray[500],borderRadius:"4px",contract:n})})}),(0,xn.jsx)(l4,{number:i}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:o})]})},cde=e=>{const{mode:t,operations:r,fee:n,data:{token:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=une(n,r,t),{amount:f,recipient:p}=a.operations[0];return(0,xn.jsx)(OU,{...l,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:a.type,signer:a.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(sde,{amount:f,token:i}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,xn.jsx)(_n,{children:(0,xn.jsx)(Ite,{fee:o})})}),(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{marginBottom:"24px",address:a.sender.address}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:p}),(0,xn.jsx)(one,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:Bte(a.type,t)})})]})})})},lde=e=>{const{token:t}=e,r=gne({SignPage:cde,signPageExtraData:{token:t},FormPage:lde,defaultFormPageProps:e,toOperation:ude(t)}),n=vne(ude(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=yne([r,n]),s=L$({mode:"onBlur",defaultValues:lne(e)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s,h=gd(t),f=yd(t.balance,h),p=hne(Number(h));return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!l.prettyAmount,children:[(0,xn.jsx)($$,{children:"Amount"}),(0,xn.jsxs)(W$,{children:[(0,xn.jsx)(Z$,{isDisabled:a,step:p,type:"number",...u("prettyAmount",{required:"Amount is required",max:{value:f.toString(),message:`Max amount is ${f}`},validate:fne(Number(h))}),placeholder:p}),(0,xn.jsx)(eH,{paddingRight:"12px","data-testid":"token-symbol",children:pd(t)})]}),l.prettyAmount&&(0,xn.jsx)(Ete,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:l.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,xn.jsx)(g4,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,xn.jsx)(Ete,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},ude=e=>t=>{const r={type:"fa2",sender:td(t.sender),recipient:td(t.recipient),contract:od(e.contract),tokenId:e.tokenId,amount:vd(e,t.prettyAmount)};return"fa2"===e.type?r:{...r,type:"fa1.2",tokenId:"0"}},dde=({account:e})=>{const{address:t,label:r}=e,n=o4(t);return(0,xn.jsxs)(_n,{alignItems:"center",height:"78px",background:jie({left:"-10px",top:"-10px",account:e,radius:"100px",mainBackgroundColor:LP.gray[800]}),borderTopRadius:"8px","data-testid":"header",paddingX:"30px",children:[(0,xn.jsx)(lq,{addressKind:n,identiconSize:35,size:"lg"}),(0,xn.jsxs)(_n,{justifyContent:"space-between",flex:1,children:[(0,xn.jsxs)(En,{marginLeft:"16px","data-testid":"account-identifier",children:[(0,xn.jsx)(Ln,{marginBottom:"4px",size:"md",children:r}),(0,xn.jsx)(lF,{color:LP.gray[300],size:"sm",children:Y3(t.pkh)})]}),(0,xn.jsx)(_n,{flexDirection:"column-reverse",children:(0,xn.jsx)(u4,{verticalAlign:"bottom",address:e.address.pkh})})]})]})},hde=({account:e,tokens:t})=>{const{openWith:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(B$,{overflowX:"auto",marginBottom:"16px",borderBottomRadius:"8px",backgroundColor:LP.gray[900],children:[(0,xn.jsx)(dde,{account:e}),(0,xn.jsx)(pre,{paddingX:"30px",children:(0,xn.jsx)(vre,{children:(0,xn.jsx)(yre,{children:t.map(((n,i)=>{const o=i===t.length-1?"transparent":LP.gray[700];return(0,xn.jsxs)(bre,{"data-testid":"token-tile",children:[(0,xn.jsx)(wre,{width:"20%",minWidth:"240px",borderColor:o,paddingX:"0",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(CR,{display:"inline-block",width:"38px",contract:n.contract}),(0,xn.jsx)(Ln,{display:"inline-block",marginLeft:"16px",size:"sm",children:(0,xn.jsx)(ple,{token:n})})]})}),(0,xn.jsx)(wre,{width:"20%",minWidth:"200px",borderColor:o,paddingX:"0",children:(0,xn.jsx)(_ie,{address:od(n.contract)})}),(0,xn.jsx)(wre,{width:"15%",minWidth:"160px",borderColor:o,paddingX:"0",children:(0,xn.jsx)(Ln,{size:"sm",children:bd(n.balance,n,{showSymbol:!1})})}),(0,xn.jsx)(wre,{textAlign:"right",borderColor:o,paddingX:"0",children:(0,xn.jsx)(ine,{onClick:()=>{r((0,xn.jsx)(lde,{sender:e,token:n}))}})})]},dd(n))}))})})})]})},fde=()=>{const{accountsFilter:e,selectedAccounts:t}=Pue(),r=Q3(),n=t.map((e=>[e,r(e.address.pkh)])).filter((([,e])=>e.length>0));return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Tokens"}),e,0===n.length?(0,xn.jsx)(Pne,{size:"lg"}):(0,xn.jsx)(En,{overflowY:"auto",children:n.map((([e,t])=>(0,xn.jsx)(hde,{account:e,tokens:t},e.address.pkh)))})]})},pde=({isCollapsed:e,...t})=>{const r=e?Zue:`Umami v${Zue}`;return(0,xn.jsx)(lF,{color:LP.gray[450],...t,children:r})},mde=({toggle:e,...t})=>(0,xn.jsx)(Sn,{width:"44px",height:"44px",marginRight:"-14px",borderRadius:"4px",_hover:{background:LP.gray[800]},cursor:"pointer","data-testid":"collapse-menu-button",onClick:e,...t,children:(0,xn.jsx)(Oj,{})}),gde=e=>{const t=U3();return(0,xn.jsx)(gR,{background:"white",borderRadius:"8px","data-testid":"maki-logo",fishColor:"mainnet"===t.name?"#F74F18":"black",...e})},vde=()=>{const e=U3(),t=$3(),r=H3(),{onOpen:n,onClose:o,isOpen:a}=YR();return(0,xn.jsxs)(Gre,{isOpen:a,onClose:o,onOpen:n,placement:"bottom-end",children:[(0,xn.jsx)(Yre,{children:(0,xn.jsxs)(Gn,{marginTop:"4px",color:LP.green,"data-testid":"network-selector",variant:"unstyled",children:[(0,ts.capitalize)(e.name),a?(0,xn.jsx)(Rj,{marginTop:"-2px",stroke:"currentcolor"}):(0,xn.jsx)(Cj,{marginTop:"-2px",stroke:"currentcolor"})]})}),(0,xn.jsx)(ene,{width:"100px",marginTop:"-10px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],children:(0,xn.jsx)(tne,{padding:"4px 12px",children:(0,xn.jsx)(_n,{flexDirection:"column",children:t.map(((n,a)=>(0,xn.jsxs)(i.Fragment,{children:[(0,xn.jsx)(Gn,{height:"34px",color:n.name===e.name?LP.green:LP.gray[300],fontSize:"14px",fontWeight:400,textAlign:"right",_hover:{color:LP.greenL},onClick:()=>{r(n.name),o()},variant:"unstyled",children:(0,ts.capitalize)(n.name)}),a{const[e,t]=(0,i.useState)(!1),r=window;(0,i.useEffect)((()=>{r&&r.electronAPI&&r.electronAPI.onAppUpdateDownloaded((e=>t(!0)))}),[r]);return e?(0,xn.jsx)(En,{marginTop:"24px",marginBottom:"6px",children:(0,xn.jsxs)(Gn,{justifyContent:"flex-start",width:"100%",height:"32px",paddingTop:"7px",paddingRight:"8px",paddingBottom:"7px",paddingLeft:"8px",color:LP.black,background:LP.green,_hover:{color:LP.black,background:LP.greenL},onClick:()=>{r&&r.electronAPI&&r.electronAPI.installAppUpdateAndQuit()},children:[(0,xn.jsx)(Jj,{}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:"Update Umami"})]})}):null},bde=()=>{const{isCollapsed:e,toggle:t}=(()=>{const[e,t]=(0,i.useState)(!1),r=(0,i.useCallback)((()=>{t((e=>!e))}),[]);return{isCollapsed:e,toggle:r}})(),r=(0,xn.jsx)(mde,{marginTop:e?0:"2px",marginRight:e?0:"-14px",toggle:t});return(0,xn.jsxs)(_n,{alignItems:e?"center":"normal",flexDirection:"column",width:e?"80px":"236px",padding:e?"30px 20px":"30px",background:LP.gray[900],"data-testid":"side-navbar"+(e?"-collapsed":""),children:[(0,xn.jsxs)(En,{children:[(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"space-between",height:"30px",children:e?r:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(gde,{width:"38px",height:"38px"}),(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(vde,{}),r]})]})}),(0,xn.jsx)(jre,{marginTop:"28px"})]}),(0,xn.jsxs)(_n,{justifyContent:"space-between",flexDirection:"column",flex:1,children:[(0,xn.jsxs)(En,{alignItems:e?"center":"normal",justifyContent:e?"space-around":"normal",display:e?"flex":"block",height:"100%",children:[!e&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(yde,{}),(0,xn.jsx)(xde,{})]}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(wde,{icon:(0,xn.jsx)(_j,{}),isCollapsed:e,label:"Accounts",to:"/home"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Dj,{}),isCollapsed:e,label:"NFTs",to:"/nfts"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(xR,{width:"24px",height:"24px"}),isCollapsed:e,label:"Operations",to:"/operations"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Ij,{}),isCollapsed:e,label:"Tokens",to:"/tokens"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Pj,{}),isCollapsed:e,label:"Batch",to:"/batch"})]})]}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(wde,{marginTop:"22px",icon:(0,xn.jsx)(Ej,{}),isCollapsed:e,label:"Address Book",to:"/address-book"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Qj,{}),isCollapsed:e,label:"Settings",to:"/settings"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(eR,{}),isCollapsed:e,label:"Help",to:"/help"}),(0,xn.jsx)(pde,{marginTop:"24px",fontSize:"14px",textAlign:e?"center":"left",isCollapsed:e})]})]})]})},wde=({icon:e,label:t,to:r,isCollapsed:n,...i})=>{const o=JO().pathname.startsWith(r);return(0,xn.jsx)(PT,{to:r,children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"flex-start",width:n?"44px":"176px",marginBottom:"8px",padding:"10px",background:o?LP.gray[600]:"transparent",borderRadius:"4px",_hover:{background:o?LP.gray[600]:LP.gray[800]},cursor:"pointer",...i,children:[e,!n&&(0,xn.jsx)(lF,{marginLeft:"10px",size:"sm",children:t})]})})},xde=()=>{const e=r4(),[t]=Tne("(max-height: 900px)");return(0,xn.jsxs)(En,{marginTop:"24px",marginBottom:t?"30px":"100px","data-testid":"total-balance",children:[(0,xn.jsx)(lF,{marginBottom:"4px",size:"sm",children:"Balance"}),e&&(0,xn.jsx)(Tle,{balance:e.mutez,dollarBalance:e.usd})]})},_de=e=>(0,xn.jsxs)(_n,{height:"100vh",children:[(0,xn.jsx)(bde,{}),(0,xn.jsx)(En,{flex:1,overflowX:"hidden",height:"100%",background:"linear-gradient(180deg, rgba(0, 231, 182, 0.35) -41.53%, rgba(0, 231, 182, 0.00) 34.71%)",paddingX:6,children:e})]}),Sde=r.p+"static/media/accounts.5f47a2af4c8394165d1e.png",kde=r.p+"static/media/background_image.a833e862a22ad4910526.png",Ede=r.p+"static/media/batch.5ba4eb38fa8c4e1ed39b.png",Ade=r.p+"static/media/multisig.3ab2bbc3bda7df25ea83.png";var Pde=r(340);const Ode=({children:e})=>{const t={background:LP.gray[400],width:"10px",height:"10px",display:"inline-block",margin:"0 4px 60px 4px",borderRadius:"5px"};return(0,xn.jsx)(En,{backgroundImage:"linear-gradient(180deg, rgba(18, 18, 18, 0.00) 36.43%, rgba(18, 18, 18, 0.50) 53.65%, #121212 76.24%)",borderRightRadius:"30px",backgroundColor:"#323131",children:(0,xn.jsx)(Pde.ER,{autoPlay:!0,dynamicHeight:!1,infiniteLoop:!0,interval:5e3,renderIndicator:(e,r,n)=>r?(0,xn.jsx)("li",{style:{...t,background:"#00C39A",width:"24px"}}):(0,xn.jsx)("li",{onClick:e,onKeyDown:e,role:"button",style:t,tabIndex:0,value:n},n),showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:1e3,children:e})})},Tde=({item:e})=>(0,xn.jsx)(En,{height:"730px",paddingTop:"500px",paddingBottom:"35px",backgroundImage:e.image,backgroundSize:"cover",backgroundRepeat:"no-repeat","data-testid":`slide-${e.id}`,children:(0,xn.jsxs)(Sn,{flexDirection:"column",paddingBottom:"50px",children:[(0,xn.jsx)(voe,{icon:e.icon,size:"58px"}),(0,xn.jsx)(lF,{width:"400px",margin:"16px 50px 0 50px",children:e.text})]})}),Cde=()=>{const[e,t]=(0,i.useState)(!0),{onOpen:r,modalElement:n}=Mae((()=>t(!0))),o=[{id:1,text:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{as:"span",fontWeight:600,size:"md",children:"Streamline asset management:\xa0"}),(0,xn.jsx)(lF,{as:"span",size:"md",children:"one mnemonic, multiple accounts, full control."})]}),icon:(0,xn.jsx)(kR,{}),image:Sde},{id:2,text:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{as:"span",size:"md",children:"Enhance security with\xa0"}),(0,xn.jsx)(lF,{as:"span",fontWeight:600,size:"md",children:"Multi-sig"}),(0,xn.jsx)(lF,{as:"span",size:"md",children:", requiring multiple signatures for transaction executions."})]}),icon:(0,xn.jsx)(nR,{width:"32px",height:"32px",stroke:LP.gray[450],strokeWidth:"0.9"}),image:Ade},{id:3,text:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{as:"span",size:"md",children:"Utilize the\xa0"}),(0,xn.jsx)(lF,{as:"span",fontWeight:600,size:"md",children:"Batch\xa0"}),(0,xn.jsx)(lF,{as:"span",size:"md",children:"feature to bundle transactions, improving efficiency and reducing costs."})]}),icon:(0,xn.jsx)(Pj,{width:"32px",height:"32px",strokeWidth:"0.9"}),image:Ede}];return(0,xn.jsxs)(Sn,{height:"100vh",padding:"60px",backgroundImage:kde,backgroundSize:"cover",children:[e&&(0,xn.jsxs)(Cae,{boxShadow:"0px 0px 30px rgba(0, 0, 0, 0.30)",columns:[1,1,2],children:[(0,xn.jsx)(Sn,{width:"100%",maxWidth:"660px",background:LP.gray[800],borderLeftRadius:"30px",children:(0,xn.jsxs)(goe,{maxWidth:"400px",padding:"32px",spacing:"0",children:[(0,xn.jsx)(gde,{width:"48px",height:"48px",marginBottom:"24px"}),(0,xn.jsx)(Ln,{marginBottom:"16px",size:"3xl",children:"Welcome to Umami"}),(0,xn.jsx)(jre,{maxWidth:"400px",marginBottom:"16px"}),(0,xn.jsx)(lF,{marginBottom:"32px",color:LP.gray[450],children:"A powerful Tezos wallet"}),(0,xn.jsx)(Gn,{width:"100%",marginBottom:"24px",onClick:()=>{t(!1),r()},size:"lg",children:"Get started"}),(0,xn.jsx)(pde,{fontSize:"13px"})]})}),(0,xn.jsx)(En,{maxWidth:"660px",children:(0,xn.jsx)(Ode,{children:o.map((e=>(0,xn.jsx)(Tde,{item:e},e.id)))})})]}),n]})},jde=()=>{fre();return qq().length>0?(0,xn.jsx)(Rde,{}):(0,xn.jsx)(Ide,{})},Rde=()=>{hre();const e=AM();return(0,xn.jsx)(kT,{children:(0,xn.jsx)(EM.Provider,{value:e,children:(0,xn.jsxs)(tre,{children:[(0,xn.jsx)($R,{}),(0,xn.jsxs)(vT,{children:[(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Zle,{})),path:"/home"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Zle,{})),path:"/home/:ownerPkh/:nftId"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Oue,{})),path:"/nfts"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Tue,{})),path:"/operations"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(fde,{})),path:"/tokens"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(lie,{})),path:"/address-book"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(ede,{})),path:"/settings"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(toe,{})),path:"/help"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Yie,{})),path:"/batch"}),(0,xn.jsx)(mT,{element:(0,xn.jsx)(pT,{to:"/home"}),path:"/*"})]}),e.content]})})})},Ide=()=>{const e=(()=>{const e=Ei();return()=>e(Hd.actions.reset())})();return(0,i.useEffect)((()=>{(async()=>{await Zte.removeAllAccounts(),await Zte.removeAllAppMetadata(),await Zte.removeAllPeers(),await Zte.removeAllPermissions()})().then(e)}),[e]),(0,xn.jsx)(kT,{children:(0,xn.jsxs)(vT,{children:[(0,xn.jsx)(mT,{element:(0,xn.jsx)(pT,{to:"/welcome"}),path:"/*"}),(0,xn.jsx)(mT,{element:(0,xn.jsx)(Cde,{}),path:"/welcome"})]})})};a.createRoot(document.getElementById("root")).render((0,xn.jsx)(i.StrictMode,{children:(0,xn.jsx)(aO,{children:(0,xn.jsx)(ch,{children:(0,xn.jsx)(g,{loading:null,persistor:mae,children:(0,xn.jsx)(l,{fallback:(0,xn.jsx)(Xn,{}),onError:(e,t)=>{const r={..._te(e),stacktrace:String(t.componentStack)};sh.dispatch(Yd.actions.add(r))},children:(0,xn.jsx)(ei,{children:(0,xn.jsx)(jde,{})})})})})})}))})()})(); -//# sourceMappingURL=main.efd035ef.js.map \ No newline at end of file + `}),[fh,ph]=Nn({strict:!1,name:"PortalManagerContext"});function mh(e){const{children:t,zIndex:r}=e;return(0,xn.jsx)(fh,{value:{zIndex:r},children:t})}function gh(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=(0,i.createContext)(void 0);return o.displayName=n,[o.Provider,function e(){var n;const a=(0,i.useContext)(o);if(!a&&t){const t=new Error(r);throw t.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,t,e),t}return a},o]}function vh(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=(0,i.useMemo)((()=>Qe(r)),[r]);return(0,xn.jsxs)(Xr,{theme:o,children:[(0,xn.jsx)(yh,{root:t}),n]})}function yh({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,xn.jsx)(Fn,{styles:e=>({[t]:e.__cssVars})})}mh.displayName="PortalManager";var[bh,wh]=gh({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function xh(){const{colorMode:e}=yt();return(0,xn.jsx)(Fn,{styles:t=>{const r=_t(bt(t,"styles.global"),{theme:t,colorMode:e});if(!r)return;return lt(r)(t)}})}var _h={light:"chakra-ui-light",dark:"chakra-ui-dark"};var Sh="chakra-ui-color-mode";var kh,Eh=(kh=Sh,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(kh)||e}catch(r){}return t||e},set(e){try{localStorage.setItem(kh,e)}catch(t){}}});function Ah(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function Ph(e,t){return{ssr:!!t,type:"cookie",get:r=>t?Ah(t,e):(null==globalThis?void 0:globalThis.document)&&Ah(document.cookie,e)||r,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}Ph(Sh);var Oh=Boolean(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:i.useEffect,Th=()=>{};function Ch(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function jh(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=Eh}=e,c="dark"===o?"dark":"light",[l,u]=(0,i.useState)((()=>Ch(s,c))),[d,h]=(0,i.useState)((()=>Ch(s))),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:g}=(0,i.useMemo)((()=>function(e={}){const{preventTransition:t=!0}=e,r={setDataset:e=>{const n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?_h.dark:_h.light),document.body.classList.remove(e?_h.light:_h.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"===typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"===typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame((()=>{requestAnimationFrame((()=>{document.head.removeChild(e)}))}))}}};return r}({preventTransition:a})),[a]),v="system"!==o||l?l:d,y=(0,i.useCallback)((e=>{const t="system"===e?f():e;u(t),p("dark"===t),m(t),s.set(t)}),[s,f,p,m]);Oh((()=>{"system"===o&&h(f())}),[]),(0,i.useEffect)((()=>{const e=s.get();y(e||("system"!==o?c:"system"))}),[s,c,o,y]);const b=(0,i.useCallback)((()=>{y("dark"===v?"light":"dark")}),[v,y]);(0,i.useEffect)((()=>{if(n)return g(y)}),[n,g,y]);const w=(0,i.useMemo)((()=>({colorMode:null!=t?t:v,toggleColorMode:t?Th:b,setColorMode:t?Th:y,forced:void 0!==t})),[v,b,y,t]);return(0,xn.jsx)(vt.Provider,{value:w,children:r})}jh.displayName="ColorModeProvider";var Rh=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function Ih(e){const{children:t,environment:r,disabled:n}=e,o=(0,i.useRef)(null),a=(0,i.useMemo)((()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=o.current)?void 0:e.ownerDocument.defaultView)?t:window}}),[r]),s=!n||!r;return(0,xn.jsxs)(Rh.Provider,{value:a,children:[t,s&&(0,xn.jsx)("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Rh.displayName="EnvironmentContext",Ih.displayName="EnvironmentProvider";var Mh=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:c,disableEnvironment:l,disableGlobalStyle:u}=e,d=(0,xn.jsx)(Ih,{environment:s,disabled:l,children:t});return(0,xn.jsx)(vh,{theme:a,cssVarsRoot:c,children:(0,xn.jsxs)(jh,{colorModeManager:r,options:a.config,children:[o?(0,xn.jsx)(hh,{scope:i}):(0,xn.jsx)(dh,{}),!u&&(0,xn.jsx)(xh,{}),n?(0,xn.jsx)(mh,{zIndex:n,children:d}):d]})})},Lh={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},Nh={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Dh={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},zh={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Bh={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Fh={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Uh={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},$h={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Hh={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Vh={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},qh={...Vh,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Kh={breakpoints:zh,zIndices:Nh,radii:Fh,blur:$h,colors:Bh,...Hh,sizes:qh,shadows:Uh,space:Vh,borders:Dh,transition:Lh},{defineMultiStyleConfig:Wh,definePartsStyle:Gh}=ut(["stepper","step","title","description","indicator","separator","icon","number"]),Yh=Ae("stepper-indicator-size"),Zh=Ae("stepper-icon-size"),Xh=Ae("stepper-title-font-size"),Jh=Ae("stepper-description-font-size"),Qh=Ae("stepper-accent-color"),ef=Gh((({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Qh.variable]:`colors.${e}.500`,_dark:{[Qh.variable]:`colors.${e}.200`}},title:{fontSize:Xh.reference,fontWeight:"medium"},description:{fontSize:Jh.reference,color:"chakra-subtle-text"},number:{fontSize:Xh.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Zh.reference,height:Zh.reference},indicator:{flexShrink:0,borderRadius:"full",width:Yh.reference,height:Yh.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Qh.reference},"&[data-status=complete]":{bg:Qh.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Qh.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Yh.reference} - 8px)`,top:`calc(${Yh.reference} + 4px)`,insetStart:`calc(${Yh.reference} / 2 - 1px)`}}}))),tf=Wh({baseStyle:ef,sizes:{xs:Gh({stepper:{[Yh.variable]:"sizes.4",[Zh.variable]:"sizes.3",[Xh.variable]:"fontSizes.xs",[Jh.variable]:"fontSizes.xs"}}),sm:Gh({stepper:{[Yh.variable]:"sizes.6",[Zh.variable]:"sizes.4",[Xh.variable]:"fontSizes.sm",[Jh.variable]:"fontSizes.xs"}}),md:Gh({stepper:{[Yh.variable]:"sizes.8",[Zh.variable]:"sizes.5",[Xh.variable]:"fontSizes.md",[Jh.variable]:"fontSizes.sm"}}),lg:Gh({stepper:{[Yh.variable]:"sizes.10",[Zh.variable]:"sizes.6",[Xh.variable]:"fontSizes.lg",[Jh.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function rf(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of i)t[e]=n(e);return rf(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return rf(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.selector])));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.className])));return e},get keys(){return Object.keys(t)},__type:{}}}var nf=rf("accordion").parts("root","container","button","panel").extend("icon"),of=rf("alert").parts("title","description","container").extend("icon","spinner"),af=rf("avatar").parts("label","badge","container").extend("excessLabel","group"),sf=rf("breadcrumb").parts("link","item","container").extend("separator"),cf=(rf("button").parts(),rf("checkbox").parts("control","icon","container").extend("label")),lf=(rf("progress").parts("track","filledTrack").extend("label"),rf("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),uf=rf("editable").parts("preview","input","textarea"),df=rf("form").parts("container","requiredIndicator","helperText"),hf=rf("formError").parts("text","icon"),ff=rf("input").parts("addon","field","element","group"),pf=rf("list").parts("container","item","icon"),mf=rf("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),gf=rf("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),vf=rf("numberinput").parts("root","field","stepperGroup","stepper"),yf=(rf("pininput").parts("field"),rf("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),bf=rf("progress").parts("label","filledTrack","track"),wf=rf("radio").parts("container","control","label"),xf=rf("select").parts("field","icon"),_f=rf("slider").parts("container","track","thumb","filledTrack","mark"),Sf=rf("stat").parts("container","label","helpText","number","icon"),kf=rf("switch").parts("container","track","thumb","label"),Ef=rf("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Af=rf("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Pf=rf("tag").parts("container","label","closeButton"),Of=rf("card").parts("container","header","body","footer");rf("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Tf(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Cf(e,t){return`var(${Tf(e)}${t?`, ${t}`:""})`}function jf(e,t=""){return`--${function(e,t=""){return[t,Tf(e)].filter(Boolean).join("-")}(e,t)}`}function Rf(e,t){const r=jf(e,null==t?void 0:t.prefix);return{variable:r,reference:Cf(r,If(null==t?void 0:t.fallback))}}function If(e){return"string"===typeof e?e:null==e?void 0:e.reference}function Mf(e){return b(e)&&e.reference?e.reference:String(e)}var Lf=(e,...t)=>t.map(Mf).join(` ${e} `).replace(/calc/g,""),Nf=(...e)=>`calc(${Lf("+",...e)})`,Df=(...e)=>`calc(${Lf("-",...e)})`,zf=(...e)=>`calc(${Lf("*",...e)})`,Bf=(...e)=>`calc(${Lf("/",...e)})`,Ff=e=>{const t=Mf(e);return null==t||Number.isNaN(parseFloat(t))?zf(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Uf=Object.assign((e=>({add:(...t)=>Uf(Nf(e,...t)),subtract:(...t)=>Uf(Df(e,...t)),multiply:(...t)=>Uf(zf(e,...t)),divide:(...t)=>Uf(Bf(e,...t)),negate:()=>Uf(Ff(e)),toString:()=>e.toString()})),{add:Nf,subtract:Df,multiply:zf,divide:Bf,negate:Ff}),{defineMultiStyleConfig:$f,definePartsStyle:Hf}=ut(kf.keys),Vf=Rf("switch-track-width"),qf=Rf("switch-track-height"),Kf=Rf("switch-track-diff"),Wf=Uf.subtract(Vf,qf),Gf=Rf("switch-thumb-x"),Yf=Rf("switch-bg"),Zf=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Vf.reference],height:[qf.reference],transitionProperty:"common",transitionDuration:"fast",[Yf.variable]:"colors.gray.300",_dark:{[Yf.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Yf.variable]:`colors.${t}.500`,_dark:{[Yf.variable]:`colors.${t}.200`}},bg:Yf.reference}},Xf={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[qf.reference],height:[qf.reference],_checked:{transform:`translateX(${Gf.reference})`}},Jf=$f({baseStyle:Hf((e=>({container:{[Kf.variable]:Wf,[Gf.variable]:Kf.reference,_rtl:{[Gf.variable]:Uf(Kf).negate().toString()}},track:Zf(e),thumb:Xf}))),sizes:{sm:Hf({container:{[Vf.variable]:"1.375rem",[qf.variable]:"sizes.3"}}),md:Hf({container:{[Vf.variable]:"1.875rem",[qf.variable]:"sizes.4"}}),lg:Hf({container:{[Vf.variable]:"2.875rem",[qf.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Qf(e,t){return r=>"dark"===r.colorMode?t:e}function ep(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:tp,definePartsStyle:rp}=ut(Ef.keys),np=rp({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),ip={"&[data-is-numeric=true]":{textAlign:"end"}},op=rp((e=>{const{colorScheme:t}=e;return{th:{color:Qf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},td:{borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},caption:{color:Qf("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),ap=rp((e=>{const{colorScheme:t}=e;return{th:{color:Qf("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},td:{borderBottom:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e),...ip},caption:{color:Qf("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Qf(`${t}.100`,`${t}.700`)(e)},td:{background:Qf(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}})),sp=tp({baseStyle:np,variants:{simple:op,striped:ap,unstyled:{}},sizes:{sm:rp({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:rp({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:rp({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function cp(e,t,r){return Math.min(Math.max(e,r),t)}class lp extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var up=lp;function dp(e){if("string"!==typeof e)throw new up(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=bp.test(e)?function(e){const t=e.toLowerCase().trim(),r=fp[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new up(e);return`#${r}`}(e):e;const r=mp.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(pp(e,2),16))),parseInt(pp(e[3]||"f",2),16)/255]}const n=gp.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const i=vp.exec(t);if(i){const e=Array.from(i).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const o=yp.exec(t);if(o){const[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(cp(0,100,r)!==r)throw new up(e);if(cp(0,100,n)!==n)throw new up(e);return[...xp(t,r,n),Number.isNaN(i)?1:i]}throw new up(e)}const hp=e=>parseInt(e.replace(/_/g,""),36),fp="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const r=hp(t.substring(0,3)),n=hp(t.substring(3)).toString(16);let i="";for(let o=0;o<6-n.length;o++)i+="0";return e[r]=`${i}${n}`,e}),{});const pp=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),mp=new RegExp(`^#${pp("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gp=new RegExp(`^#${pp("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),vp=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pp(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),yp=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,bp=/^[a-z]+$/i,wp=e=>Math.round(255*e),xp=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(wp);const i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1));let s=0,c=0,l=0;i>=0&&i<1?(s=o,c=a):i>=1&&i<2?(s=a,c=o):i>=2&&i<3?(c=o,l=a):i>=3&&i<4?(c=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);const u=n-o/2;return[s+u,c+u,l+u].map(wp)};function _p(e,t,r,n){return`rgba(${cp(0,255,e).toFixed()}, ${cp(0,255,t).toFixed()}, ${cp(0,255,r).toFixed()}, ${parseFloat(cp(0,1,n).toFixed(3))})`}function Sp(e,t){const[r,n,i,o]=dp(e);return _p(r,n,i,o-t)}var kp=(e,t,r)=>{const n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n{const t=cp(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},Ep=e=>t=>{const r=(e=>{const[t,r,n]=dp(e);return(299*t+587*r+114*n)/1e3})(kp(t,e));return r<128?"dark":"light"},Ap=(e,t)=>r=>Sp(kp(r,e),1-t);function Pp(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n 45deg,\n ${t} 25%,\n transparent 25%,\n transparent 50%,\n ${t} 50%,\n ${t} 75%,\n transparent 75%,\n transparent\n )`,backgroundSize:`${e} ${e}`}}function Op(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let n=0;n>8*n&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var r}var Tp=Ae("tabs-color"),Cp=Ae("tabs-bg"),jp=Ae("tabs-border-color"),{defineMultiStyleConfig:Rp,definePartsStyle:Ip}=ut(Af.keys),Mp=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Lp=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Np=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}},Dp={p:4},zp=Ip((e=>({root:Mp(e),tab:Lp(e),tablist:Np(e),tabpanel:Dp}))),Bp={sm:Ip({tab:{py:1,px:4,fontSize:"sm"}}),md:Ip({tab:{fontSize:"md",py:2,px:4}}),lg:Ip({tab:{fontSize:"lg",py:3,px:4}})},Fp=Ip((e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[Tp.variable]:`colors.${t}.600`,_dark:{[Tp.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Cp.variable]:"colors.gray.200",_dark:{[Cp.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Tp.reference,bg:Cp.reference}}})),Up=Ip((e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[jp.variable]:"transparent",_selected:{[Tp.variable]:`colors.${t}.600`,[jp.variable]:"colors.white",_dark:{[Tp.variable]:`colors.${t}.300`,[jp.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:jp.reference},color:Tp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),$p=Ip((e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Cp.variable]:"colors.gray.50",_dark:{[Cp.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Cp.variable]:"colors.white",[Tp.variable]:`colors.${t}.600`,_dark:{[Cp.variable]:"colors.gray.800",[Tp.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Tp.reference,bg:Cp.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Hp=Ip((e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:kp(r,`${t}.700`),bg:kp(r,`${t}.100`)}}}})),Vp=Ip((e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Tp.variable]:"colors.gray.600",_dark:{[Tp.variable]:"inherit"},_selected:{[Tp.variable]:"colors.white",[Cp.variable]:`colors.${t}.600`,_dark:{[Tp.variable]:"colors.gray.800",[Cp.variable]:`colors.${t}.300`}},color:Tp.reference,bg:Cp.reference}}})),qp=Rp({baseStyle:zp,sizes:Bp,variants:{line:Fp,enclosed:Up,"enclosed-colored":$p,"soft-rounded":Hp,"solid-rounded":Vp,unstyled:Ip({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Kp=function(e,t){const r={};for(const n of t)if(Array.isArray(n)){const[t,i]=n;r[t]=Ae(`${e}-${t}`,i)}else r[n]=Ae(`${e}-${n}`);return r}("badge",["bg","color","shadow"]),Wp=e=>{const{colorScheme:t,theme:r}=e,n=Ap(`${t}.500`,.6)(r);return{[Kp.bg.variable]:`colors.${t}.500`,[Kp.color.variable]:"colors.white",_dark:{[Kp.bg.variable]:n,[Kp.color.variable]:"colors.whiteAlpha.800"}}},Gp=e=>{const{colorScheme:t,theme:r}=e,n=Ap(`${t}.200`,.16)(r);return{[Kp.bg.variable]:`colors.${t}.100`,[Kp.color.variable]:`colors.${t}.800`,_dark:{[Kp.bg.variable]:n,[Kp.color.variable]:`colors.${t}.200`}}},Yp=e=>{const{colorScheme:t,theme:r}=e,n=Ap(`${t}.200`,.8)(r);return{[Kp.color.variable]:`colors.${t}.500`,_dark:{[Kp.color.variable]:n},[Kp.shadow.variable]:`inset 0 0 0px 1px ${Kp.color.reference}`}},Zp={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Kp.bg.reference,color:Kp.color.reference,boxShadow:Kp.shadow.reference},variants:{solid:Wp,subtle:Gp,outline:Yp},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Xp,definePartsStyle:Jp}=ut(Pf.keys),Qp=Ae("tag-bg"),em=Ae("tag-color"),tm=Ae("tag-shadow"),rm=Ae("tag-min-height"),nm=Ae("tag-min-width"),im=Ae("tag-font-size"),om=Ae("tag-padding-inline"),am=Jp({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[em.variable]:Kp.color.reference,[Qp.variable]:Kp.bg.reference,[tm.variable]:Kp.shadow.reference,color:em.reference,bg:Qp.reference,boxShadow:tm.reference,borderRadius:"md",minH:rm.reference,minW:nm.reference,fontSize:im.reference,px:om.reference,_focusVisible:{[tm.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),sm={sm:Jp({container:{[rm.variable]:"sizes.5",[nm.variable]:"sizes.5",[im.variable]:"fontSizes.xs",[om.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Jp({container:{[rm.variable]:"sizes.6",[nm.variable]:"sizes.6",[im.variable]:"fontSizes.sm",[om.variable]:"space.2"}}),lg:Jp({container:{[rm.variable]:"sizes.8",[nm.variable]:"sizes.8",[im.variable]:"fontSizes.md",[om.variable]:"space.3"}})},cm={subtle:Jp((e=>{var t;return{container:null==(t=Zp.variants)?void 0:t.subtle(e)}})),solid:Jp((e=>{var t;return{container:null==(t=Zp.variants)?void 0:t.solid(e)}})),outline:Jp((e=>{var t;return{container:null==(t=Zp.variants)?void 0:t.outline(e)}}))},lm=Xp({variants:cm,baseStyle:am,sizes:sm,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:um,defineMultiStyleConfig:dm}=ut(ff.keys),hm=Ae("input-height"),fm=Ae("input-font-size"),pm=Ae("input-padding"),mm=Ae("input-border-radius"),gm=um({addon:{height:hm.reference,fontSize:fm.reference,px:pm.reference,borderRadius:mm.reference},field:{width:"100%",height:hm.reference,fontSize:fm.reference,px:pm.reference,borderRadius:mm.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),vm={lg:{[fm.variable]:"fontSizes.lg",[pm.variable]:"space.4",[mm.variable]:"radii.md",[hm.variable]:"sizes.12"},md:{[fm.variable]:"fontSizes.md",[pm.variable]:"space.4",[mm.variable]:"radii.md",[hm.variable]:"sizes.10"},sm:{[fm.variable]:"fontSizes.sm",[pm.variable]:"space.3",[mm.variable]:"radii.sm",[hm.variable]:"sizes.8"},xs:{[fm.variable]:"fontSizes.xs",[pm.variable]:"space.2",[mm.variable]:"radii.sm",[hm.variable]:"sizes.6"}},ym={lg:um({field:vm.lg,group:vm.lg}),md:um({field:vm.md,group:vm.md}),sm:um({field:vm.sm,group:vm.sm}),xs:um({field:vm.xs,group:vm.xs})};function bm(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Qf("blue.500","blue.300")(e),errorBorderColor:r||Qf("red.500","red.300")(e)}}var wm,xm,_m,Sm,km,Em,Am,Pm,Om,Tm,Cm,jm=um((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=bm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Qf("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kp(t,n),boxShadow:`0 0 0 1px ${kp(t,n)}`},_focusVisible:{zIndex:1,borderColor:kp(t,r),boxShadow:`0 0 0 1px ${kp(t,r)}`}},addon:{border:"1px solid",borderColor:Qf("inherit","whiteAlpha.50")(e),bg:Qf("gray.100","whiteAlpha.300")(e)}}})),Rm=um((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=bm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Qf("gray.100","whiteAlpha.50")(e),_hover:{bg:Qf("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kp(t,n)},_focusVisible:{bg:"transparent",borderColor:kp(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Qf("gray.100","whiteAlpha.50")(e)}}})),Im=um((e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=bm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:kp(t,n),boxShadow:`0px 1px 0px 0px ${kp(t,n)}`},_focusVisible:{borderColor:kp(t,r),boxShadow:`0px 1px 0px 0px ${kp(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),Mm=dm({baseStyle:gm,sizes:ym,variants:{outline:jm,filled:Rm,flushed:Im,unstyled:um({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),Lm={...null==(wm=Mm.baseStyle)?void 0:wm.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Nm={outline:e=>{var t,r;return null!=(r=null==(t=Mm.variants)?void 0:t.outline(e).field)?r:{}},flushed:e=>{var t,r;return null!=(r=null==(t=Mm.variants)?void 0:t.flushed(e).field)?r:{}},filled:e=>{var t,r;return null!=(r=null==(t=Mm.variants)?void 0:t.filled(e).field)?r:{}},unstyled:null!=(_m=null==(xm=Mm.variants)?void 0:xm.unstyled.field)?_m:{}},Dm={baseStyle:Lm,sizes:{xs:null!=(km=null==(Sm=Mm.sizes)?void 0:Sm.xs.field)?km:{},sm:null!=(Am=null==(Em=Mm.sizes)?void 0:Em.sm.field)?Am:{},md:null!=(Om=null==(Pm=Mm.sizes)?void 0:Pm.md.field)?Om:{},lg:null!=(Cm=null==(Tm=Mm.sizes)?void 0:Tm.lg.field)?Cm:{}},variants:Nm,defaultProps:{size:"md",variant:"outline"}},zm=Rf("tooltip-bg"),Bm=Rf("tooltip-fg"),Fm=Rf("popper-arrow-bg"),Um={baseStyle:{bg:zm.reference,color:Bm.reference,[zm.variable]:"colors.gray.700",[Bm.variable]:"colors.whiteAlpha.900",_dark:{[zm.variable]:"colors.gray.300",[Bm.variable]:"colors.gray.900"},[Fm.variable]:zm.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:$m,definePartsStyle:Hm}=ut(bf.keys),Vm=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=Qf(Pp(),Pp("1rem","rgba(0,0,0,0.1)"))(e),a=Qf(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n to right,\n transparent 0%,\n ${kp(r,a)} 50%,\n transparent 100%\n )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}},qm={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Km=e=>({bg:Qf("gray.100","whiteAlpha.300")(e)}),Wm=e=>({transitionProperty:"common",transitionDuration:"slow",...Vm(e)}),Gm=Hm((e=>({label:qm,filledTrack:Wm(e),track:Km(e)}))),Ym=$m({sizes:{xs:Hm({track:{h:"1"}}),sm:Hm({track:{h:"2"}}),md:Hm({track:{h:"3"}}),lg:Hm({track:{h:"4"}})},baseStyle:Gm,defaultProps:{size:"md",colorScheme:"blue"}});function Zm(e,...t){return(e=>"function"===typeof e)(e)?e(...t):e}var Xm,Jm,Qm,eg,tg,rg,ng,ig,og,{definePartsStyle:ag,defineMultiStyleConfig:sg}=ut(cf.keys),cg=Ae("checkbox-size"),lg=e=>{const{colorScheme:t}=e;return{w:cg.reference,h:cg.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Qf(`${t}.500`,`${t}.200`)(e),borderColor:Qf(`${t}.500`,`${t}.200`)(e),color:Qf("white","gray.900")(e),_hover:{bg:Qf(`${t}.600`,`${t}.300`)(e),borderColor:Qf(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Qf("gray.200","transparent")(e),bg:Qf("gray.200","whiteAlpha.300")(e),color:Qf("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Qf(`${t}.500`,`${t}.200`)(e),borderColor:Qf(`${t}.500`,`${t}.200`)(e),color:Qf("white","gray.900")(e)},_disabled:{bg:Qf("gray.100","whiteAlpha.100")(e),borderColor:Qf("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Qf("red.500","red.300")(e)}}},ug={_disabled:{cursor:"not-allowed"}},dg={userSelect:"none",_disabled:{opacity:.4}},hg={transitionProperty:"transform",transitionDuration:"normal"},fg=sg({baseStyle:ag((e=>({icon:hg,container:ug,control:Zm(lg,e),label:dg}))),sizes:{sm:ag({control:{[cg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ag({control:{[cg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ag({control:{[cg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:pg,definePartsStyle:mg}=ut(wf.keys),gg=e=>{var t;const r=null==(t=Zm(fg.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},vg=mg((e=>{var t,r,n,i;return{label:null==(r=(t=fg).baseStyle)?void 0:r.call(t,e).label,container:null==(i=(n=fg).baseStyle)?void 0:i.call(n,e).container,control:gg(e)}})),yg=pg({baseStyle:vg,sizes:{md:mg({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:mg({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:mg({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bg,definePartsStyle:wg}=ut(xf.keys),xg=Ae("select-bg"),_g={paddingInlineEnd:"8"},Sg=bg({baseStyle:wg({field:{...null==(Xm=Mm.baseStyle)?void 0:Xm.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:xg.reference,[xg.variable]:"colors.white",_dark:{[xg.variable]:"colors.gray.700"},"> option, > optgroup":{bg:xg.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(Jm=Mm.sizes)?void 0:Jm.lg,field:{...null==(Qm=Mm.sizes)?void 0:Qm.lg.field,..._g}},md:{...null==(eg=Mm.sizes)?void 0:eg.md,field:{...null==(tg=Mm.sizes)?void 0:tg.md.field,..._g}},sm:{...null==(rg=Mm.sizes)?void 0:rg.sm,field:{...null==(ng=Mm.sizes)?void 0:ng.sm.field,..._g}},xs:{...null==(ig=Mm.sizes)?void 0:ig.xs,field:{...null==(og=Mm.sizes)?void 0:og.xs.field,..._g},icon:{insetEnd:"1"}}},variants:Mm.variants,defaultProps:Mm.defaultProps}),kg=Ae("skeleton-start-color"),Eg=Ae("skeleton-end-color"),Ag={baseStyle:{[kg.variable]:"colors.gray.100",[Eg.variable]:"colors.gray.400",_dark:{[kg.variable]:"colors.gray.800",[Eg.variable]:"colors.gray.600"},background:kg.reference,borderColor:Eg.reference,opacity:.7,borderRadius:"sm"}},Pg=Ae("skip-link-bg"),Og={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Pg.variable]:"colors.white",_dark:{[Pg.variable]:"colors.gray.700"},bg:Pg.reference}}},{defineMultiStyleConfig:Tg,definePartsStyle:Cg}=ut(_f.keys),jg=Ae("slider-thumb-size"),Rg=Ae("slider-track-size"),Ig=Ae("slider-bg"),Mg=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ep({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Lg=e=>({...ep({orientation:e.orientation,horizontal:{h:Rg.reference},vertical:{w:Rg.reference}}),overflow:"hidden",borderRadius:"sm",[Ig.variable]:"colors.gray.200",_dark:{[Ig.variable]:"colors.whiteAlpha.200"},_disabled:{[Ig.variable]:"colors.gray.300",_dark:{[Ig.variable]:"colors.whiteAlpha.300"}},bg:Ig.reference}),Ng=e=>{const{orientation:t}=e;return{...ep({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:jg.reference,h:jg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},Dg=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Ig.variable]:`colors.${t}.500`,_dark:{[Ig.variable]:`colors.${t}.200`},bg:Ig.reference}},zg=Tg({baseStyle:Cg((e=>({container:Mg(e),track:Lg(e),thumb:Ng(e),filledTrack:Dg(e)}))),sizes:{lg:Cg({container:{[jg.variable]:"sizes.4",[Rg.variable]:"sizes.1"}}),md:Cg({container:{[jg.variable]:"sizes.3.5",[Rg.variable]:"sizes.1"}}),sm:Cg({container:{[jg.variable]:"sizes.2.5",[Rg.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Bg=Rf("spinner-size"),Fg={baseStyle:{width:[Bg.reference],height:[Bg.reference]},sizes:{xs:{[Bg.variable]:"sizes.3"},sm:{[Bg.variable]:"sizes.4"},md:{[Bg.variable]:"sizes.6"},lg:{[Bg.variable]:"sizes.8"},xl:{[Bg.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Ug,definePartsStyle:$g}=ut(Sf.keys),Hg=Ug({baseStyle:$g({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:$g({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Vg=Ae("kbd-bg"),qg={baseStyle:{[Vg.variable]:"colors.gray.100",_dark:{[Vg.variable]:"colors.whiteAlpha.100"},bg:Vg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},Kg={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},{defineMultiStyleConfig:Wg,definePartsStyle:Gg}=ut(pf.keys),Yg=Wg({baseStyle:Gg({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:Zg,definePartsStyle:Xg}=ut(mf.keys),Jg=Ae("menu-bg"),Qg=Ae("menu-shadow"),ev=Zg({baseStyle:Xg({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[Jg.variable]:"#fff",[Qg.variable]:"shadows.sm",_dark:{[Jg.variable]:"colors.gray.700",[Qg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Jg.reference,boxShadow:Qg.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Jg.variable]:"colors.gray.100",_dark:{[Jg.variable]:"colors.whiteAlpha.100"}},_active:{[Jg.variable]:"colors.gray.200",_dark:{[Jg.variable]:"colors.whiteAlpha.200"}},_expanded:{[Jg.variable]:"colors.gray.100",_dark:{[Jg.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Jg.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:tv,definePartsStyle:rv}=ut(gf.keys),nv=Ae("modal-bg"),iv=Ae("modal-shadow"),ov={bg:"blackAlpha.600",zIndex:"modal"},av=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},sv=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[nv.variable]:"colors.white",[iv.variable]:"shadows.lg",_dark:{[nv.variable]:"colors.gray.700",[iv.variable]:"shadows.dark-lg"},bg:nv.reference,boxShadow:iv.reference}},cv={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},lv={position:"absolute",top:"2",insetEnd:"3"},uv=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},dv={px:"6",py:"4"};function hv(e){return rv("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var fv=tv({baseStyle:rv((e=>({overlay:ov,dialogContainer:Zm(av,e),dialog:Zm(sv,e),header:cv,closeButton:lv,body:Zm(uv,e),footer:dv}))),sizes:{xs:hv("xs"),sm:hv("sm"),md:hv("md"),lg:hv("lg"),xl:hv("xl"),"2xl":hv("2xl"),"3xl":hv("3xl"),"4xl":hv("4xl"),"5xl":hv("5xl"),"6xl":hv("6xl"),full:hv("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:pv,definePartsStyle:mv}=ut(vf.keys),gv=Rf("number-input-stepper-width"),vv=Rf("number-input-input-padding"),yv=Uf(gv).add("0.5rem").toString(),bv=Rf("number-input-bg"),wv=Rf("number-input-color"),xv=Rf("number-input-border-color"),_v={[gv.variable]:"sizes.6",[vv.variable]:yv},Sv=e=>{var t,r;return null!=(r=null==(t=Zm(Mm.baseStyle,e))?void 0:t.field)?r:{}},kv={width:gv.reference},Ev={borderStart:"1px solid",borderStartColor:xv.reference,color:wv.reference,bg:bv.reference,[wv.variable]:"colors.chakra-body-text",[xv.variable]:"colors.chakra-border-color",_dark:{[wv.variable]:"colors.whiteAlpha.800",[xv.variable]:"colors.whiteAlpha.300"},_active:{[bv.variable]:"colors.gray.200",_dark:{[bv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Av=mv((e=>{var t;return{root:_v,field:null!=(t=Zm(Sv,e))?t:{},stepperGroup:kv,stepper:Ev}}));function Pv(e){var t,r,n;const i=null==(t=Mm.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=Hh.fontSizes[a];return mv({field:{...i.field,paddingInlineEnd:vv.reference,verticalAlign:"top"},stepper:{fontSize:Uf(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Ov,Tv,Cv,jv=pv({baseStyle:Av,sizes:{xs:Pv("xs"),sm:Pv("sm"),md:Pv("md"),lg:Pv("lg")},variants:Mm.variants,defaultProps:Mm.defaultProps}),Rv={...null==(Ov=Mm.baseStyle)?void 0:Ov.field,textAlign:"center"},Iv={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},Mv={outline:e=>{var t,r,n;return null!=(n=null==(r=Zm(null==(t=Mm.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}},flushed:e=>{var t,r,n;return null!=(n=null==(r=Zm(null==(t=Mm.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}},filled:e=>{var t,r,n;return null!=(n=null==(r=Zm(null==(t=Mm.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}},unstyled:null!=(Cv=null==(Tv=Mm.variants)?void 0:Tv.unstyled.field)?Cv:{}},Lv={baseStyle:Rv,sizes:Iv,variants:Mv,defaultProps:Mm.defaultProps},{defineMultiStyleConfig:Nv,definePartsStyle:Dv}=ut(yf.keys),zv=Rf("popper-bg"),Bv=Rf("popper-arrow-bg"),Fv=Rf("popper-arrow-shadow-color"),Uv=Nv({baseStyle:Dv({popper:{zIndex:10},content:{[zv.variable]:"colors.white",bg:zv.reference,[Bv.variable]:zv.reference,[Fv.variable]:"colors.gray.200",_dark:{[zv.variable]:"colors.gray.700",[Fv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:$v,defineMultiStyleConfig:Hv}=ut(lf.keys),Vv=Ae("drawer-bg"),qv=Ae("drawer-box-shadow");function Kv(e){return $v("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Wv={bg:"blackAlpha.600",zIndex:"modal"},Gv={display:"flex",zIndex:"modal",justifyContent:"center"},Yv=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Vv.variable]:"colors.white",[qv.variable]:"shadows.lg",_dark:{[Vv.variable]:"colors.gray.700",[qv.variable]:"shadows.dark-lg"},bg:Vv.reference,boxShadow:qv.reference}},Zv={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Xv={position:"absolute",top:"2",insetEnd:"3"},Jv={px:"6",py:"2",flex:"1",overflow:"auto"},Qv={px:"6",py:"4"},ey=Hv({baseStyle:$v((e=>({overlay:Wv,dialogContainer:Gv,dialog:Zm(Yv,e),header:Zv,closeButton:Xv,body:Jv,footer:Qv}))),sizes:{xs:Kv("xs"),sm:Kv("md"),md:Kv("lg"),lg:Kv("2xl"),xl:Kv("4xl"),full:Kv("full")},defaultProps:{size:"xs"}}),{definePartsStyle:ty,defineMultiStyleConfig:ry}=ut(uf.keys),ny=ry({baseStyle:ty({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:iy,defineMultiStyleConfig:oy}=ut(df.keys),ay=Ae("form-control-color"),sy=oy({baseStyle:iy({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[ay.variable]:"colors.red.500",_dark:{[ay.variable]:"colors.red.300"},color:ay.reference},helperText:{mt:"2",[ay.variable]:"colors.gray.600",_dark:{[ay.variable]:"colors.whiteAlpha.600"},color:ay.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:cy,defineMultiStyleConfig:ly}=ut(hf.keys),uy=Ae("form-error-color"),dy=ly({baseStyle:cy({text:{[uy.variable]:"colors.red.500",_dark:{[uy.variable]:"colors.red.300"},color:uy.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[uy.variable]:"colors.red.500",_dark:{[uy.variable]:"colors.red.300"},color:uy.reference}})}),hy={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},fy={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},{defineMultiStyleConfig:py,definePartsStyle:my}=ut(sf.keys),gy=Ae("breadcrumb-link-decor"),vy=py({baseStyle:my({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:gy.reference,[gy.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[gy.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),yy=e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:Qf("gray.800","whiteAlpha.900")(e),_hover:{bg:Qf("gray.100","whiteAlpha.200")(e)},_active:{bg:Qf("gray.200","whiteAlpha.300")(e)}};const n=Ap(`${t}.200`,.12)(r),i=Ap(`${t}.200`,.24)(r);return{color:Qf(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Qf(`${t}.50`,n)(e)},_active:{bg:Qf(`${t}.100`,i)(e)}}},by=e=>{const{colorScheme:t}=e,r=Qf("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Zm(yy,e)}},wy={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},xy=e=>{var t;const{colorScheme:r}=e;if("gray"===r){const t=Qf("gray.100","whiteAlpha.200")(e);return{bg:t,color:Qf("gray.800","whiteAlpha.900")(e),_hover:{bg:Qf("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Qf("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=wy[r])?t:{},s=Qf(n,`${r}.200`)(e);return{bg:s,color:Qf(i,"gray.800")(e),_hover:{bg:Qf(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:Qf(a,`${r}.400`)(e)}}},_y=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Qf(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Qf(`${t}.700`,`${t}.500`)(e)}}},Sy={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:yy,outline:by,solid:xy,link:_y,unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ky,defineMultiStyleConfig:Ey}=ut(Of.keys),Ay=Ae("card-bg"),Py=Ae("card-padding"),Oy=Ae("card-shadow"),Ty=Ae("card-radius"),Cy=Ae("card-border-width","0"),jy=Ae("card-border-color"),Ry=ky({container:{[Ay.variable]:"colors.chakra-body-bg",backgroundColor:Ay.reference,boxShadow:Oy.reference,borderRadius:Ty.reference,color:"chakra-body-text",borderWidth:Cy.reference,borderColor:jy.reference},body:{padding:Py.reference,flex:"1 1 0%"},header:{padding:Py.reference},footer:{padding:Py.reference}}),Iy={sm:ky({container:{[Ty.variable]:"radii.base",[Py.variable]:"space.3"}}),md:ky({container:{[Ty.variable]:"radii.md",[Py.variable]:"space.5"}}),lg:ky({container:{[Ty.variable]:"radii.xl",[Py.variable]:"space.7"}})},My=Ey({baseStyle:Ry,variants:{elevated:ky({container:{[Oy.variable]:"shadows.base",_dark:{[Ay.variable]:"colors.gray.700"}}}),outline:ky({container:{[Cy.variable]:"1px",[jy.variable]:"colors.chakra-border-color"}}),filled:ky({container:{[Ay.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Py.variable]:0},header:{[Py.variable]:0},footer:{[Py.variable]:0}}},sizes:Iy,defaultProps:{variant:"elevated",size:"md"}}),Ly=Rf("close-button-size"),Ny=Rf("close-button-bg"),Dy={baseStyle:{w:[Ly.reference],h:[Ly.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ny.variable]:"colors.blackAlpha.100",_dark:{[Ny.variable]:"colors.whiteAlpha.100"}},_active:{[Ny.variable]:"colors.blackAlpha.200",_dark:{[Ny.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ny.reference},sizes:{lg:{[Ly.variable]:"sizes.10",fontSize:"md"},md:{[Ly.variable]:"sizes.8",fontSize:"xs"},sm:{[Ly.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:zy,defaultProps:By}=Zp,Fy={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Kp.bg.reference,color:Kp.color.reference,boxShadow:Kp.shadow.reference},variants:zy,defaultProps:By},Uy={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},$y={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},{definePartsStyle:Hy,defineMultiStyleConfig:Vy}=ut(nf.keys),qy=Vy({baseStyle:Hy({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:Ky,defineMultiStyleConfig:Wy}=ut(of.keys),Gy=Ae("alert-fg"),Yy=Ae("alert-bg"),Zy=Ky({container:{bg:Yy.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Gy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Gy.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Xy(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:Ap(`${r}.200`,.16)(t)}}var Jy=Ky((e=>{const{colorScheme:t}=e,r=Xy(e);return{container:{[Gy.variable]:`colors.${t}.600`,[Yy.variable]:r.light,_dark:{[Gy.variable]:`colors.${t}.200`,[Yy.variable]:r.dark}}}})),Qy=Ky((e=>{const{colorScheme:t}=e,r=Xy(e);return{container:{[Gy.variable]:`colors.${t}.600`,[Yy.variable]:r.light,_dark:{[Gy.variable]:`colors.${t}.200`,[Yy.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Gy.reference}}})),eb=Ky((e=>{const{colorScheme:t}=e,r=Xy(e);return{container:{[Gy.variable]:`colors.${t}.600`,[Yy.variable]:r.light,_dark:{[Gy.variable]:`colors.${t}.200`,[Yy.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Gy.reference}}})),tb=Ky((e=>{const{colorScheme:t}=e;return{container:{[Gy.variable]:"colors.white",[Yy.variable]:`colors.${t}.600`,_dark:{[Gy.variable]:"colors.gray.900",[Yy.variable]:`colors.${t}.200`},color:Gy.reference}}})),rb=Wy({baseStyle:Zy,variants:{subtle:Jy,"left-accent":Qy,"top-accent":eb,solid:tb},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:nb,defineMultiStyleConfig:ib}=ut(af.keys),ob=Ae("avatar-border-color"),ab=Ae("avatar-bg"),sb=Ae("avatar-font-size"),cb=Ae("avatar-size"),lb={borderRadius:"full",border:"0.2em solid",borderColor:ob.reference,[ob.variable]:"white",_dark:{[ob.variable]:"colors.gray.800"}},ub={bg:ab.reference,fontSize:sb.reference,width:cb.reference,height:cb.reference,lineHeight:"1",[ab.variable]:"colors.gray.200",_dark:{[ab.variable]:"colors.whiteAlpha.400"}},db=e=>{const{name:t,theme:r}=e,n=t?Op({string:t}):"colors.gray.400",i=(e=>t=>"dark"===Ep(e)(t))(n)(r);let o="white";return i||(o="gray.800"),{bg:ab.reference,fontSize:sb.reference,color:o,borderColor:ob.reference,verticalAlign:"top",width:cb.reference,height:cb.reference,"&:not([data-loaded])":{[ab.variable]:n},[ob.variable]:"colors.white",_dark:{[ob.variable]:"colors.gray.800"}}},hb={fontSize:sb.reference,lineHeight:"1"};function fb(e){const t="100%"!==e?qh[e]:void 0;return nb({container:{[cb.variable]:null!=t?t:e,[sb.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[cb.variable]:null!=t?t:e,[sb.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var pb={Accordion:qy,Alert:rb,Avatar:ib({baseStyle:nb((e=>({badge:Zm(lb,e),excessLabel:Zm(ub,e),container:Zm(db,e),label:hb}))),sizes:{"2xs":fb(4),xs:fb(6),sm:fb(8),md:fb(12),lg:fb(16),xl:fb(24),"2xl":fb(32),full:fb("100%")},defaultProps:{size:"md"}}),Badge:Zp,Breadcrumb:vy,Button:Sy,Checkbox:fg,CloseButton:Dy,Code:Fy,Container:Uy,Divider:$y,Drawer:ey,Editable:ny,Form:sy,FormError:dy,FormLabel:hy,Heading:fy,Input:Mm,Kbd:qg,Link:Kg,List:Yg,Menu:ev,Modal:fv,NumberInput:jv,PinInput:Lv,Popover:Uv,Progress:Ym,Radio:yg,Select:Sg,Skeleton:Ag,SkipLink:Og,Slider:zg,Spinner:Fg,Stat:Hg,Switch:Jf,Table:sp,Tabs:qp,Tag:lm,Textarea:Dm,Tooltip:Um,Card:My,Stepper:tf},mb={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},gb={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},vb={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yb={semanticTokens:mb,direction:"ltr",...Kh,components:pb,styles:gb,config:vb},bb={semanticTokens:mb,direction:"ltr",components:{},...Kh,styles:gb,config:vb},wb=(e,t)=>e.find((e=>e.id===t));function xb(e,t){const r=_b(e,t);return{position:r,index:r?e[r].findIndex((e=>e.id===t)):-1}}function _b(e,t){for(const[r,n]of Object.entries(e))if(wb(n,t))return r}function Sb(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function kb(e,t=[]){const r=(0,i.useRef)(e);return(0,i.useEffect)((()=>{r.current=e})),(0,i.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function Eb(e,t){const r=(0,i.useRef)(!1),n=(0,i.useRef)(!1);(0,i.useEffect)((()=>{if(r.current&&n.current)return e();n.current=!0}),t),(0,i.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[])}const Ab=(0,i.createContext)(null);function Pb(){const e=(0,i.useContext)(Ab);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=(0,i.useId)();(0,i.useEffect)((()=>n(o)),[]);return!t&&r?[!1,()=>r&&r(o)]:[!0]}function Ob(){return function(e){return null===e||e.isPresent}((0,i.useContext)(Ab))}const Tb=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Cb=(0,i.createContext)({}),jb="undefined"!==typeof document,Rb=jb?i.useLayoutEffect:i.useEffect,Ib=(0,i.createContext)({strict:!1}),Mb=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Lb="data-"+Mb("framerAppearId"),Nb=!1,Db=!1;class zb{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Bb=["prepare","read","update","preRender","render","postRender"];function Fb(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Bb.reduce(((e,t)=>(e[t]=function(e){let t=new zb,r=new zb,n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const c=s&&i,l=c?t:r;return o&&a.add(e),l.add(e)&&c&&i&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:c=>{if(i)o=!0;else{if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;rr=!0)),e)),{}),a=e=>{o[e].process(i)},s=()=>{const o=Db?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,Bb.forEach(a),i.isProcessing=!1,r&&t&&(n=!1,e(s))},c=Bb.reduce(((t,a)=>{const c=o[a];return t[a]=(t,o=!1,a=!1)=>(r||(r=!0,n=!0,i.isProcessing||e(s)),c.schedule(t,o,a)),t}),{});return{schedule:c,cancel:e=>Bb.forEach((t=>o[t].cancel(e))),state:i,steps:o}}const{schedule:Ub,cancel:$b}=Fb(queueMicrotask,!1);function Hb(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Vb(e){return"string"===typeof e||Array.isArray(e)}function qb(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const Kb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wb=["initial",...Kb];function Gb(e){return qb(e.animate)||Wb.some((t=>Vb(e[t])))}function Yb(e){return Boolean(Gb(e)||e.variants)}function Zb(e){const{initial:t,animate:r}=function(e,t){if(Gb(e)){const{initial:t,animate:r}=e;return{initial:!1===t||Vb(t)?t:void 0,animate:Vb(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(Cb));return(0,i.useMemo)((()=>({initial:t,animate:r})),[Xb(t),Xb(r)])}function Xb(e){return Array.isArray(e)?e.join(" "):e}const Jb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qb={};for(const r in Jb)Qb[r]={isEnabled:e=>Jb[r].some((t=>!!e[t]))};const ew=(0,i.createContext)({}),tw=(0,i.createContext)({}),rw=Symbol.for("motionComponentSymbol");function nw({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&function(e){for(const t in e)Qb[t]={...Qb[t],...e[t]}}(e);const a=(0,i.forwardRef)((function(a,s){let c;const l={...(0,i.useContext)(Tb),...a,layoutId:iw(a)},{isStatic:u}=l,d=Zb(a),h=n(a,u);if(!u&&jb){d.visualElement=function(e,t,r,n){const{visualElement:o}=(0,i.useContext)(Cb),a=(0,i.useContext)(Ib),s=(0,i.useContext)(Ab),c=(0,i.useContext)(Tb).reducedMotion,l=(0,i.useRef)();n=n||a.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:c}));const u=l.current;(0,i.useInsertionEffect)((()=>{u&&u.update(r,s)}));const d=(0,i.useRef)(Boolean(r[Lb]&&!window.HandoffComplete));return Rb((()=>{u&&(Ub.postRender(u.render),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,i.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),u}(o,h,l,t);const r=(0,i.useContext)(tw),n=(0,i.useContext)(Ib).strict;d.visualElement&&(c=d.visualElement.loadFeatures(l,n,e,r))}return i.createElement(Cb.Provider,{value:d},c&&d.visualElement?i.createElement(c,{visualElement:d.visualElement,...l}):null,r(o,a,function(e,t,r){return(0,i.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"===typeof r?r(n):Hb(r)&&(r.current=n))}),[t])}(h,d.visualElement,s),h,u,d.visualElement))}));return a[rw]=o,a}function iw({layoutId:e}){const t=(0,i.useContext)(ew).id;return t&&void 0!==e?t+"-"+e:e}function ow(e){function t(t,r={}){return nw(e(t,r))}if("undefined"===typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const aw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sw(e){return"string"===typeof e&&!e.includes("-")&&!!(aw.indexOf(e)>-1||/[A-Z]/.test(e))}const cw={};const lw=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],uw=new Set(lw);function dw(e,{layout:t,layoutId:r}){return uw.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!cw[e]||"opacity"===e)}const hw=e=>Boolean(e&&e.getVelocity),fw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pw=lw.length;const mw=e=>t=>"string"===typeof t&&t.startsWith(e),gw=mw("--"),vw=mw("var(--"),yw=(e,t)=>t&&"number"===typeof e?t.transform(e):e,bw=(e,t,r)=>Math.min(Math.max(r,e),t),ww={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},xw={...ww,transform:e=>bw(0,1,e)},_w={...ww,default:1},Sw=e=>Math.round(1e5*e)/1e5,kw=/(-)?([\d]*\.?[\d])+/g,Ew=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Aw=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Pw(e){return"string"===typeof e}const Ow=e=>({test:t=>Pw(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Tw=Ow("deg"),Cw=Ow("%"),jw=Ow("px"),Rw=Ow("vh"),Iw=Ow("vw"),Mw={...Cw,parse:e=>Cw.parse(e)/100,transform:e=>Cw.transform(100*e)},Lw={...ww,transform:Math.round},Nw={borderWidth:jw,borderTopWidth:jw,borderRightWidth:jw,borderBottomWidth:jw,borderLeftWidth:jw,borderRadius:jw,radius:jw,borderTopLeftRadius:jw,borderTopRightRadius:jw,borderBottomRightRadius:jw,borderBottomLeftRadius:jw,width:jw,maxWidth:jw,height:jw,maxHeight:jw,size:jw,top:jw,right:jw,bottom:jw,left:jw,padding:jw,paddingTop:jw,paddingRight:jw,paddingBottom:jw,paddingLeft:jw,margin:jw,marginTop:jw,marginRight:jw,marginBottom:jw,marginLeft:jw,rotate:Tw,rotateX:Tw,rotateY:Tw,rotateZ:Tw,scale:_w,scaleX:_w,scaleY:_w,scaleZ:_w,skew:Tw,skewX:Tw,skewY:Tw,distance:jw,translateX:jw,translateY:jw,translateZ:jw,x:jw,y:jw,z:jw,perspective:jw,transformPerspective:jw,opacity:xw,originX:Mw,originY:Mw,originZ:jw,zIndex:Lw,fillOpacity:xw,strokeOpacity:xw,numOctaves:Lw};function Dw(e,t,r,n){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let c=!1,l=!1,u=!0;for(const d in t){const e=t[d];if(gw(d)){o[d]=e;continue}const r=Nw[d],n=yw(e,r);if(uw.has(d)){if(c=!0,a[d]=n,!u)continue;e!==(r.default||0)&&(u=!1)}else d.startsWith("origin")?(l=!0,s[d]=n):i[d]=n}if(t.transform||(c||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function Bw(e,t,r){for(const n in t)hw(t[n])||dw(n,r)||(e[n]=t[n])}function Fw(e,t,r){const n={};return Bw(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t,r){return(0,i.useMemo)((()=>{const n=zw();return Dw(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)}),[t])}(e,t,r)),n}function Uw(e,t,r){const n={},i=Fw(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const $w=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hw(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$w.has(e)}let Vw=e=>!Hw(e);try{(qw=require("@emotion/is-prop-valid").default)&&(Vw=e=>e.startsWith("on")?!Hw(e):qw(e))}catch(un){}var qw;function Kw(e,t,r){return"string"===typeof e?e:jw.transform(t+r*e)}const Ww={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gw={offset:"strokeDashoffset",array:"strokeDasharray"};function Yw(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:c=0,...l},u,d,h){if(Dw(e,l,u,h),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){return`${Kw(t,e.x,e.width)} ${Kw(r,e.y,e.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;const o=i?Ww:Gw;e[o.offset]=jw.transform(-n);const a=jw.transform(t),s=jw.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,c,!1)}const Zw=()=>({...zw(),attrs:{}}),Xw=e=>"string"===typeof e&&"svg"===e.toLowerCase();function Jw(e,t,r,n){const o=(0,i.useMemo)((()=>{const r=Zw();return Yw(r,t,{enableHardwareAcceleration:!1},Xw(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Bw(t,e.style,e),o.style={...t,...o.style}}return o}function Qw(e=!1){return(t,r,n,{latestValues:o},a)=>{const s=(sw(t)?Jw:Uw)(r,o,a,t),c=function(e,t,r){const n={};for(const i in e)"values"===i&&"object"===typeof e.values||(Vw(i)||!0===r&&Hw(i)||!t&&!Hw(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"===typeof t,e),l={...c,...s,ref:n},{children:u}=r,d=(0,i.useMemo)((()=>hw(u)?u.get():u),[u]);return(0,i.createElement)(t,{...l,children:d})}}function ex(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in r)e.style.setProperty(o,r[o])}const tx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rx(e,t,r,n){ex(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(tx.has(i)?i:Mb(i),t.attrs[i])}function nx(e,t){const{style:r}=e,n={};for(const i in r)(hw(r[i])||t.style&&hw(t.style[i])||dw(i,e))&&(n[i]=r[i]);return n}function ix(e,t){const r=nx(e,t);for(const n in e)if(hw(e[n])||hw(t[n])){r[-1!==lw.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function ox(e,t,r,n={},i={}){return"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}function ax(e){const t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}const sx=e=>Array.isArray(e),cx=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),lx=e=>sx(e)?e[e.length-1]||0:e;function ux(e){const t=hw(e)?e.get():e;return cx(t)?t.toValue():t}const dx=e=>(t,r)=>{const n=(0,i.useContext)(Cb),o=(0,i.useContext)(Ab),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:hx(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,n,o);return r?a():ax(a)};function hx(e,t,r,n){const i={},o=n(e,{});for(const h in o)i[h]=ux(o[h]);let{initial:a,animate:s}=e;const c=Gb(e),l=Yb(e);t&&l&&!c&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!==typeof d&&!qb(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const r=ox(e,t);if(!r)return;const{transitionEnd:n,transition:o,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in n)i[e]=n[e]}))}return i}const fx=e=>e,{schedule:px,cancel:mx,state:gx,steps:vx}=Fb("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:fx,!0),yx={useVisualState:dx({scrapeMotionValuesFromProps:ix,createRenderState:Zw,onMount:(e,t,{renderState:r,latestValues:n})=>{px.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),px.render((()=>{Yw(r,n,{enableHardwareAcceleration:!1},Xw(t.tagName),e.transformTemplate),rx(t,r)}))}})},bx={useVisualState:dx({scrapeMotionValuesFromProps:nx,createRenderState:zw})};function wx(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const xx=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function _x(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Sx=e=>t=>xx(t)&&e(t,_x(t));function kx(e,t,r,n){return wx(e,t,Sx(r),n)}const Ex=(e,t)=>r=>t(e(r)),Ax=(...e)=>e.reduce(Ex);function Px(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const Ox=Px("dragHorizontal"),Tx=Px("dragVertical");function Cx(e){let t=!1;if("y"===e)t=Tx();else if("x"===e)t=Ox();else{const e=Ox(),r=Tx();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function jx(){const e=Cx(!0);return!e||(e(),!1)}class Rx{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ix(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return kx(e.current,r,((r,i)=>{if("touch"===r.pointerType||jx())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&px.update((()=>o[n](r,i)))}),{passive:!e.getProps()[n]})}const Mx=(e,t)=>!!t&&(e===t||Mx(e,t.parentElement));function Lx(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,_x(r))}const Nx=new WeakMap,Dx=new WeakMap,zx=e=>{const t=Nx.get(e.target);t&&t(e)},Bx=e=>{e.forEach(zx)};function Fx(e,t,r){const n=function({root:e,...t}){const r=e||document;Dx.has(r)||Dx.set(r,{});const n=Dx.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Bx,{root:e,...t})),n[i]}(t);return Nx.set(e,r),n.observe(e),()=>{Nx.delete(e),n.unobserve(e)}}const Ux={some:0,all:1};const $x={inView:{Feature:class extends Rx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"===typeof n?n:Ux[n]};return Fx(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Rx{constructor(){super(...arguments),this.removeStartListeners=fx,this.removeEndListeners=fx,this.removeAccessibleListeners=fx,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=kx(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();px.update((()=>{i||Mx(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}))}),{passive:!(r.onTap||r.onPointerUp)}),i=kx(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ax(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=wx(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=wx(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Lx("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&px.update((()=>r(e,t)))}))})),Lx("down",((e,t)=>{this.startPress(e,t)}))})),t=wx(this.node.current,"blur",(()=>{this.isPressing&&Lx("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ax(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&px.update((()=>r(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!jx()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&px.update((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=kx(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=wx(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ax(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Rx{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ax(wx(this.node.current,"focus",(()=>this.onFocus())),wx(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Rx{mount(){this.unmount=Ax(Ix(this.node,!0),Ix(this.node,!1))}unmount(){}}}};function Hx(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[r]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,r)=>t[r]=e.getVelocity())),t}(e))}let qx=fx,Kx=fx;const Wx=e=>1e3*e,Gx=e=>e/1e3,Yx=!1,Zx=e=>Array.isArray(e)&&"number"===typeof e[0];function Xx(e){return Boolean(!e||"string"===typeof e&&Qx[e]||Zx(e)||Array.isArray(e)&&e.every(Xx))}const Jx=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Qx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jx([0,.65,.55,1]),circOut:Jx([.55,0,1,.45]),backIn:Jx([.31,.01,.66,-.59]),backOut:Jx([.33,1.53,.69,.99])};function e_(e){if(e)return Zx(e)?Jx(e):Array.isArray(e)?e.map(e_):Qx[e]}const t_=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,r_=1e-7,n_=12;function i_(e,t,r,n){if(e===t&&r===n)return fx;const i=t=>function(e,t,r,n,i){let o,a,s=0;do{a=t+(r-t)/2,o=t_(a,n,i)-e,o>0?r=a:t=a}while(Math.abs(o)>r_&&++s0===e||1===e?e:t_(i(e),t,n)}const o_=i_(.42,0,1,1),a_=i_(0,0,.58,1),s_=i_(.42,0,.58,1),c_=e=>Array.isArray(e)&&"number"!==typeof e[0],l_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,u_=e=>t=>1-e(1-t),d_=e=>1-Math.sin(Math.acos(e)),h_=u_(d_),f_=l_(d_),p_=i_(.33,1.53,.69,.99),m_=u_(p_),g_=l_(m_),v_={linear:fx,easeIn:o_,easeInOut:s_,easeOut:a_,circIn:d_,circInOut:f_,circOut:h_,backIn:m_,backInOut:g_,backOut:p_,anticipate:e=>(e*=2)<1?.5*m_(e):.5*(2-Math.pow(2,-10*(e-1)))},y_=e=>{if(Array.isArray(e)){Kx(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,i]=e;return i_(t,r,n,i)}return"string"===typeof e?(Kx(void 0!==v_[e],`Invalid easing type '${e}'`),v_[e]):e},b_=(e,t)=>r=>Boolean(Pw(r)&&Aw.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),w_=(e,t,r)=>n=>{if(!Pw(n))return n;const[i,o,a,s]=n.match(kw);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},x_={...ww,transform:e=>Math.round((e=>bw(0,255,e))(e))},__={test:b_("rgb","red"),parse:w_("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+x_.transform(e)+", "+x_.transform(t)+", "+x_.transform(r)+", "+Sw(xw.transform(n))+")"};const S_={test:b_("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:__.transform},k_={test:b_("hsl","hue"),parse:w_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Cw.transform(Sw(t))+", "+Cw.transform(Sw(r))+", "+Sw(xw.transform(n))+")"},E_={test:e=>__.test(e)||S_.test(e)||k_.test(e),parse:e=>__.test(e)?__.parse(e):k_.test(e)?k_.parse(e):S_.parse(e),transform:e=>Pw(e)?e:e.hasOwnProperty("red")?__.transform(e):k_.transform(e)},A_=(e,t,r)=>-r*e+r*t+e;function P_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const O_=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},T_=[S_,__,k_];function C_(e){const t=(e=>T_.find((t=>t.test(e))))(e);Kx(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===k_&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=P_(s,n,e+1/3),o=P_(s,n,e),a=P_(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}const j_=(e,t)=>{const r=C_(e),n=C_(t),i={...r};return e=>(i.red=O_(r.red,n.red,e),i.green=O_(r.green,n.green,e),i.blue=O_(r.blue,n.blue,e),i.alpha=A_(r.alpha,n.alpha,e),__.transform(i))};const R_={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:fx},I_={regex:Ew,countKey:"Colors",token:"${c}",parse:E_.parse},M_={regex:kw,countKey:"Numbers",token:"${n}",parse:ww.parse};function L_(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function N_(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&L_(r,R_),L_(r,I_),L_(r,M_),r}function D_(e){return N_(e).values}function z_(e){const{values:t,numColors:r,numVars:n,tokenised:i}=N_(e),o=t.length;return e=>{let t=i;for(let i=0;i"number"===typeof e?0:e;const F_={test:function(e){var t,r;return isNaN(e)&&Pw(e)&&((null===(t=e.match(kw))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(Ew))||void 0===r?void 0:r.length)||0)>0},parse:D_,createTransformer:z_,getAnimatableNone:function(e){const t=D_(e);return z_(e)(t.map(B_))}},U_=(e,t)=>r=>`${r>0?t:e}`;function $_(e,t){return"number"===typeof e?r=>A_(e,t,r):E_.test(e)?j_(e,t):e.startsWith("var(")?U_(e,t):q_(e,t)}const H_=(e,t)=>{const r=[...e],n=r.length,i=e.map(((e,r)=>$_(e,t[r])));return e=>{for(let t=0;t{const r={...e,...t},n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=$_(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}},q_=(e,t)=>{const r=F_.createTransformer(t),n=N_(e),i=N_(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Ax(H_(n.values,i.values),r):(qx(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),U_(e,t))},K_=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},W_=(e,t)=>r=>A_(e,t,r);function G_(e,t,r){const n=[],i=r||function(e){return"number"===typeof e?W_:"string"===typeof e?E_.test(e)?j_:q_:Array.isArray(e)?H_:"object"===typeof e?V_:W_}(e[0]),o=e.length-1;for(let a=0;at[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=G_(t,n,i),s=a.length,c=t=>{let r=0;if(s>1)for(;rc(bw(e[0],e[o-1],t)):c}function Z_(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=K_(0,t,n);e.push(A_(r,1,i))}}(t,e.length-1),t}function X_({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=c_(n)?n.map(y_):y_(n),o={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:Z_(t),e),s=Y_(a,t,{ease:Array.isArray(i)?i:(c=t,l=i,c.map((()=>l||s_)).splice(0,c.length-1))});var c,l;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function J_(e,t){return t?e*(1e3/t):0}const Q_=5;function eS(e,t,r){const n=Math.max(t-Q_,0);return J_(r-e(n),t-n)}const tS=.001,rS=.01,nS=10,iS=.05,oS=1;function aS({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;qx(e<=Wx(nS),"Spring duration must be 10 seconds or less");let a=1-t;a=bw(iS,oS,a),e=bw(rS,nS,Gx(e)),a<1?(i=t=>{const n=t*a,i=n*e,o=n-r,s=cS(t,a),c=Math.exp(-i);return tS-o/s*c},o=t=>{const n=t*a*e,o=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,c=Math.exp(-n),l=cS(Math.pow(t,2),a);return(-i(t)+tS>0?-1:1)*((o-s)*c)/l}):(i=t=>Math.exp(-t*e)*((t-r)*e+1)-tS,o=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let i=1;ivoid 0!==e[t]))}function hS({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:c,mass:l,duration:u,velocity:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!dS(e,uS)&&dS(e,lS)){const r=aS(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Gx(n.velocity||0)}),f=d||0,p=c/(2*Math.sqrt(s*l)),m=o-i,g=Gx(Math.sqrt(s/l)),v=Math.abs(m)<5;let y;if(r||(r=v?.01:2),t||(t=v?.005:.5),p<1){const e=cS(g,p);y=t=>{const r=Math.exp(-p*g*t);return o-r*((f+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>o-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const r=Math.exp(-p*g*t),n=Math.min(e*t,300);return o-r*((f+p*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&u||null,next:e=>{const n=y(e);if(h)a.done=e>=u;else{let i=f;0!==e&&(i=p<1?eS(y,e,n):0);const s=Math.abs(i)<=r,c=Math.abs(o-n)<=t;a.done=s&&c}return a.value=a.done?o:n,a}}}function fS({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=e=>void 0===s?c:void 0===c||Math.abs(s-e)-p*Math.exp(-e/n),y=e=>g+v(e),b=e=>{const t=v(e),r=y(e);h.done=Math.abs(t)<=l,h.value=h.done?g:r};let w,x;const _=e=>{(e=>void 0!==s&&ec)(h.value)&&(w=e,x=hS({keyframes:[h.value,f(h.value)],velocity:eS(y,e,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),_(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),h)}}}let pS;function mS(){pS=void 0}const gS={now:()=>(void 0===pS&&gS.set(gx.isProcessing||Db?gx.timestamp:performance.now()),pS),set:e=>{pS=e,queueMicrotask(mS)}},vS=e=>{const t=({timestamp:t})=>e(t);return{start:()=>px.update(t,!0),stop:()=>mx(t),now:()=>gx.isProcessing?gx.timestamp:gS.now()}},yS=2e4;function bS(e){let t=0;let r=e.next(t);for(;!r.done&&t=yS?1/0:t}const wS={decay:fS,inertia:fS,tween:X_,keyframes:X_,spring:hS};function xS({autoplay:e=!0,delay:t=0,driver:r=vS,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:c,onStop:l,onComplete:u,onUpdate:d,...h}){let f,p,m=1,g=!1;const v=()=>{p=new Promise((e=>{f=e}))};let y;v();const b=wS[i]||X_;let w;b!==X_&&"number"!==typeof n[0]&&(w=Y_([0,100],n,{clamp:!1}),n=[0,100]);const x=b({...h,keyframes:n});let _;"mirror"===s&&(_=b({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let S="idle",k=null,E=null,A=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=bS(x));const{calculatedDuration:P}=x;let O=1/0,T=1/0;null!==P&&(O=P+a,T=O*(o+1)-a);let C=0;const j=e=>{if(null===E)return;m>0&&(E=Math.min(E,e)),m<0&&(E=Math.min(e-T/m,E)),C=null!==k?k:Math.round(e-E)*m;const r=C-t*(m>=0?1:-1),i=m>=0?r<0:r>T;C=Math.max(r,0),"finished"===S&&null===k&&(C=T);let c=C,l=x;if(o){const e=Math.min(C,T)/O;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,o+1);Boolean(t%2)&&("reverse"===s?(r=1-r,a&&(r-=a/O)):"mirror"===s&&(l=_)),c=bw(0,1,r)*O}const u=i?{done:!1,value:n[0]}:l.next(c);w&&(u.value=w(u.value));let{done:h}=u;i||null===P||(h=m>=0?C>=T:C<=0);const f=null===k&&("finished"===S||"running"===S&&h);return d&&d(u.value),f&&M(),u},R=()=>{y&&y.stop(),y=void 0},I=()=>{S="idle",R(),f(),v(),E=A=null},M=()=>{S="finished",u&&u(),R(),f()},L=()=>{if(g)return;y||(y=r(j));const e=y.now();c&&c(),null!==k?E=e-k:E&&"finished"!==S||(E=e),"finished"===S&&v(),A=E,k=null,S="running",y.start()};e&&L();const N={then:(e,t)=>p.then(e,t),get time(){return Gx(C)},set time(e){e=Wx(e),C=e,null===k&&y&&0!==m?E=y.now()-e/m:k=e},get duration(){const e=null===x.calculatedDuration?bS(x):x.calculatedDuration;return Gx(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,N.time=Gx(C))},get state(){return S},play:L,pause:()=>{S="paused",k=C},stop:()=>{g=!0,"idle"!==S&&(S="idle",l&&l(),I())},cancel:()=>{null!==A&&j(A),I()},complete:()=>{S="finished"},sample:e=>(E=0,j(e))};return N}const _S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),SS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function kS(e,t,{onUpdate:r,onComplete:n,...i}){if(!(_S()&&SS.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,a,s=!1,c=!1;const l=()=>{a=new Promise((e=>{o=e}))};l();let{keyframes:u,duration:d=300,ease:h,times:f}=i;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Xx(t.ease))(t,i)){const e=xS({...i,repeat:0,delay:0});let t={done:!1,value:u[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;f=void 0,u=r,d=n-10,h="linear"}const p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:c}={}){const l={[t]:r};c&&(l.offset=c);const u=e_(s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...i,duration:d,ease:h,times:f}),m=()=>{c=!1,p.cancel()},g=()=>{c=!0,px.update(m),o(),l()};p.onfinish=()=>{c||(e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2===1?0:e.length-1]}(u,i)),n&&n(),g())};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,fx),get time(){return Gx(p.currentTime||0)},set time(e){p.currentTime=Wx(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return Gx(d)},play:()=>{s||(p.play(),mx(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const r=xS({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}g()},complete:()=>{c||p.finish()},cancel:g}}const ES={type:"spring",stiffness:500,damping:25,restSpeed:10},AS={type:"keyframes",duration:.8},PS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OS=(e,{keyframes:t})=>t.length>2?AS:uw.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ES:PS,TS=(e,t)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!F_.test(t)&&"0"!==t||t.startsWith("url("))),CS=new Set(["brightness","contrast","saturate","opacity"]);function jS(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(kw)||[];if(!n)return e;const i=r.replace(n,"");let o=CS.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const RS=/([a-z-]*)\(.*?\)/g,IS={...F_,getAnimatableNone:e=>{const t=e.match(RS);return t?t.map(jS).join(" "):e}},MS={...Nw,color:E_,backgroundColor:E_,outlineColor:E_,fill:E_,stroke:E_,borderColor:E_,borderTopColor:E_,borderRightColor:E_,borderBottomColor:E_,borderLeftColor:E_,filter:IS,WebkitFilter:IS},LS=e=>MS[e];function NS(e,t){let r=LS(e);return r!==IS&&(r=F_),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const DS=e=>/^0[^.\s]+$/.test(e);function zS(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||DS(e):void 0}function BS(e,t){return e[t]||e.default||e}const FS=(e,t,r,n={})=>i=>{const o=BS(n,e)||{},a=o.delay||n.delay||0;let{elapsed:s=0}=n;s-=Wx(a);const c=function(e,t,r,n){const i=TS(t,r);let o;o=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const c=[];for(let l=0;l{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}(o)||(f={...f,...OS(e,f)}),f.duration&&(f.duration=Wx(f.duration)),f.repeatDelay&&(f.repeatDelay=Wx(f.repeatDelay)),!d||!h||Yx||!1===o.type||Nb)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:fx,pause:fx,stop:fx,then:e=>(e(),Promise.resolve()),cancel:fx,complete:fx});return t?xS({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(Yx?{...f,delay:0}:f);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=kS(t,e,f);if(r)return r}return xS(f)};function US(e){return Boolean(hw(e)&&e.add)}const $S=e=>/^\-?\d*\.?\d+$/.test(e);function HS(e,t){-1===e.indexOf(t)&&e.push(t)}function VS(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class qS{constructor(){this.subscriptions=[]}add(e){return HS(this.subscriptions,e),()=>VS(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i{const r=gS.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=gS.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new qS);const r=this.events[e].add(t);return"change"===e?()=>{r(),px.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return KS.current&&KS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=gS.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return J_(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function GS(e,t){return new WS(e,t)}const YS=e=>t=>t.test(e),ZS=[ww,jw,Cw,Tw,Iw,Rw,{test:e=>"auto"===e,parse:e=>e}],XS=e=>ZS.find(YS(e)),JS=[...ZS,E_,F_],QS=e=>JS.find(YS(e));function ek(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,GS(r))}function tk(e,t){const r=Vx(e,t);let{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const a in o){ek(e,a,lx(o[a]))}}function rk(e,t){if(!t)return;return(t[e]||t.default||t).from}function nk({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function ik(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let n=0;nc.remove(d)))),l.push(h)}return a&&Promise.all(l).then((()=>{a&&tk(e,a)})),l}function ak(e,t,r={}){const n=Vx(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const o=n?()=>Promise.all(ok(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*n,c=1===i?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(sk).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(ak(e,t,{...o,delay:r+c(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then((()=>t()))}return Promise.all([o(),a(r.delay)])}function sk(e,t){return e.sortNodePosition(t)}const ck=[...Kb].reverse(),lk=Kb.length;function uk(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>ak(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=ak(e,t,r);else{const i="function"===typeof t?Vx(e,t,r.custom):t;n=Promise.all(ok(e,i,r))}return n.then((()=>e.notify("AnimationComplete",t)))}(e,t,r))))}function dk(e){let t=uk(e);const r={animate:fk(!0),whileInView:fk(),whileHover:fk(),whileTap:fk(),whileDrag:fk(),whileFocus:fk(),exit:fk()};let n=!0;const i=(t,r)=>{const n=Vx(e,r);if(n){const{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){const s=e.getProps(),c=e.getVariantContext(!0)||{},l=[],u=new Set;let d={},h=1/0;for(let t=0;th&&g,w=!1;const x=Array.isArray(m)?m:[m];let _=x.reduce(i,{});!1===v&&(_={});const{prevResolvedValues:S={}}=p,k={...S,..._},E=e=>{b=!0,u.has(e)&&(w=!0,u.delete(e)),p.needsAnimating[e]=!0};for(const e in k){const t=_[e],r=S[e];if(d.hasOwnProperty(e))continue;let n=!1;n=sx(t)&&sx(r)?!Hx(t,r):t!==r,n?void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=_,p.isActive&&(d={...d,..._}),n&&e.blockInitialAnimation&&(b=!1),!b||y&&!w||l.push(...x.map((e=>({animation:e,options:{type:f,...o}}))))}if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)})),l.push({animation:t})}let f=Boolean(l.length);return!n||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const s=o(i,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function hk(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Hx(t,e)}function fk(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let pk=0;const mk={animation:{Feature:class extends Rx{constructor(e){super(e),e.animationState||(e.animationState=dk(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),qb(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Rx{constructor(){super(...arguments),this.id=pk++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!==r&&void 0!==r?r:this.node.getProps().custom});t&&!e&&i.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},gk=(e,t)=>Math.abs(e-t);class vk{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=wk(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=gk(e.x,t.x),n=gk(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:i}=gx;this.history.push({...n,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=yk(t,this.transformPagePoint),px.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=wk("pointercancel"===e.type?this.lastMoveEventInfo:yk(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!xx(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const o=yk(_x(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=gx;this.history=[{...a,timestamp:s}];const{onSessionStart:c}=t;c&&c(e,wk(o,this.history)),this.removeListeners=Ax(kx(this.contextWindow,"pointermove",this.handlePointerMove),kx(this.contextWindow,"pointerup",this.handlePointerUp),kx(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),mx(this.updatePoint)}}function yk(e,t){return t?{point:t(e.point)}:e}function bk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wk({point:e},t){return{point:e,delta:bk(e,_k(t)),offset:bk(e,xk(t)),velocity:Sk(t,.1)}}function xk(e){return e[0]}function _k(e){return e[e.length-1]}function Sk(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=_k(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Wx(t)));)r--;if(!n)return{x:0,y:0};const o=Gx(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function kk(e){return e.max-e.min}function Ek(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ak(e,t,r,n=.5){e.origin=n,e.originPoint=A_(t.min,t.max,e.origin),e.scale=kk(r)/kk(t),(Ek(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=A_(r.min,r.max,e.origin)-e.originPoint,(Ek(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Pk(e,t,r,n){Ak(e.x,t.x,r.x,n?n.originX:void 0),Ak(e.y,t.y,r.y,n?n.originY:void 0)}function Ok(e,t,r){e.min=r.min+t.min,e.max=e.min+kk(t)}function Tk(e,t,r){e.min=t.min-r.min,e.max=e.min+kk(t)}function Ck(e,t,r){Tk(e.x,t.x,r.x),Tk(e.y,t.y,r.y)}function jk(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Rk(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Dk=()=>({x:{min:0,max:0},y:{min:0,max:0}});function zk(e){return[e("x"),e("y")]}function Bk({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Fk(e){return void 0===e||1===e}function Uk({scale:e,scaleX:t,scaleY:r}){return!Fk(e)||!Fk(t)||!Fk(r)}function $k(e){return Uk(e)||Hk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hk(e){return Vk(e.x)||Vk(e.y)}function Vk(e){return e&&"0%"!==e}function qk(e,t,r){return r+t*(e-r)}function Kk(e,t,r,n,i){return void 0!==i&&(e=qk(e,i,n)),qk(e,r,n)+t}function Wk(e,t=0,r=1,n,i){e.min=Kk(e.min,t,r,n,i),e.max=Kk(e.max,t,r,n,i)}function Gk(e,{x:t,y:r}){Wk(e.x,t.translate,t.scale,t.originPoint),Wk(e.y,r.translate,r.scale,r.originPoint)}function Yk(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Zk(e,t){e.min=e.min+t,e.max=e.max+t}function Xk(e,t,[r,n,i]){const o=void 0!==t[i]?t[i]:.5,a=A_(e.min,e.max,o);Wk(e,t[r],t[n],a,t.scale)}const Jk=["x","scaleX","originX"],Qk=["y","scaleY","originY"];function eE(e,t){Xk(e.x,t,Jk),Xk(e.y,t,Qk)}function tE(e,t){return Bk(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const rE=({current:e})=>e?e.ownerDocument.defaultView:null,nE=new WeakMap;class iE{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Dk(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new vk(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(_x(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Cx(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zk((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cw.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=kk(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&px.update((()=>i(e,t)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>zk((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:rE(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&px.update((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!oE(e,n,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&er&&(e=n?A_(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&Hb(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:i}){return{x:jk(e.x,r,i),y:jk(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Ik){return!1===e?e=0:!0===e&&(e=Ik),{x:Mk(e,"left","right"),y:Mk(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zk((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Hb(e))return!1;const r=e.current;Kx(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=function(e,t,r){const n=tE(e,r),{scroll:i}=t;return i&&(Zk(n.x,i.offset.x),Zk(n.y,i.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Rk(e.x,t.x),y:Rk(e.y,t.y)}}(n.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=Bk(e))}return o}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},c=zk((a=>{if(!oE(a,t,this.currentDirection))return;let c=s&&s[a]||{};o&&(c={min:0,max:0});const l=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(a,d)}));return Promise.all(c).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(FS(e,r,0,t))}stopAnimation(){zk((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){zk((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){zk((t=>{const{drag:r}=this.getProps();if(!oE(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-A_(r,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Hb(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};zk((e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=kk(e),i=kk(t);return i>n?r=K_(t.min,t.max-n,e.min):n>i&&(r=K_(e.min,e.max-i,t.min)),bw(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zk((t=>{if(!oE(t,e,null))return;const r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(A_(i,o,n[t]))}))}addListeners(){if(!this.visualElement.current)return;nE.set(this.visualElement,this);const e=kx(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Hb(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const i=wx(window,"resize",(()=>this.scalePositionWithinConstraints())),o=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(zk((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),e(),n(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=Ik,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function oE(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}const aE=e=>(t,r)=>{e&&px.update((()=>e(t,r)))};const sE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lE={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!jw.test(e))return e;e=parseFloat(e)}return`${cE(e,t.target.x)}% ${cE(e,t.target.y)}%`}},uE={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=F_.parse(e);if(i.length>5)return n;const o=F_.createTransformer(e),a="number"!==typeof i[0]?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=c;const l=A_(s,c,.5);return"number"===typeof i[2+a]&&(i[2+a]/=l),"number"===typeof i[3+a]&&(i[3+a]/=l),o(i)}};class dE extends i.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;var o;o=fE,Object.assign(cw,o),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),sE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o?(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||px.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ub.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function hE(e){const[t,r]=Pb(),n=(0,i.useContext)(ew);return i.createElement(dE,{...e,layoutGroup:n,switchLayoutGroup:(0,i.useContext)(tw),isPresent:t,safeToRemove:r})}const fE={borderRadius:{...lE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lE,borderTopRightRadius:lE,borderBottomLeftRadius:lE,borderBottomRightRadius:lE,boxShadow:uE},pE=["TopLeft","TopRight","BottomLeft","BottomRight"],mE=pE.length,gE=e=>"string"===typeof e?parseFloat(e):e,vE=e=>"number"===typeof e||jw.test(e);function yE(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const bE=xE(0,.5,h_),wE=xE(.5,.95,fx);function xE(e,t,r){return n=>nt?1:r(K_(e,t,n))}function _E(e,t){e.min=t.min,e.max=t.max}function SE(e,t){_E(e.x,t.x),_E(e.y,t.y)}function kE(e,t,r,n,i){return e=qk(e-=t,1/r,n),void 0!==i&&(e=qk(e,1/i,n)),e}function EE(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){Cw.test(t)&&(t=parseFloat(t),t=A_(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=A_(o.min,o.max,n);e===o&&(s-=t),e.min=kE(e.min,t,r,s,i),e.max=kE(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}const AE=["x","scaleX","originX"],PE=["y","scaleY","originY"];function OE(e,t,r,n){EE(e.x,t,AE,r?r.x:void 0,n?n.x:void 0),EE(e.y,t,PE,r?r.y:void 0,n?n.y:void 0)}function TE(e){return 0===e.translate&&1===e.scale}function CE(e){return TE(e.x)&&TE(e.y)}function jE(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function RE(e){return kk(e.x)/kk(e.y)}class IE{constructor(){this.members=[]}add(e){HS(this.members,e),e.scheduleRender()}remove(e){if(VS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let n=t;n>=0;n--){const e=this.members[n];if(!1!==e.isPresent){r=e;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ME(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}const LE=(e,t)=>e.depth-t.depth;class NE{constructor(){this.children=[],this.isDirty=!1}add(e){HS(this.children,e),this.isDirty=!0}remove(e){VS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(LE),this.isDirty=!1,this.children.forEach(e)}}const DE=["","X","Y","Z"],zE={visibility:"hidden"};let BE=0;const FE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function UE({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=(null===t||void 0===t?void 0:t())){this.id=BE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,FE.totalNodes=FE.resolvedTargetDeltas=FE.recalculatedProjection=0,this.nodes.forEach(VE),this.nodes.forEach(XE),this.nodes.forEach(JE),this.nodes.forEach(qE),e=FE,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=gS.now(),n=({timestamp:i})=>{const o=i-r;o>=t&&(mx(n),e(o-t))};return px.read(n,!0),()=>mx(n)}(n,250),sE.hasAnimatedSinceResize&&(sE.hasAnimatedSinceResize=!1,this.nodes.forEach(ZE))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||a.getDefaultTransition()||iA,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),c=!this.targetLayout||!jE(this.targetLayout,n)||r,l=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);const t={...BS(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ZE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,mx(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(QE),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;ithis.update())))}clearAllSnapshots(){this.nodes.forEach(KE),this.sharedNodes.forEach(eA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,px.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){px.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let r=0;r{const r=t/1e3;tA(o.x,e.x,r),tA(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ck(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){rA(e.x,t.x,r.x,n),rA(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Dk()),SE(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,r,n,i,o){i?(e.opacity=A_(0,void 0!==r.opacity?r.opacity:1,bE(n)),e.opacityExit=A_(void 0!==t.opacity?t.opacity:1,0,wE(n))):o&&(e.opacity=A_(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let a=0;a{sE.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=hw(e)?e:GS(e);return n.start(FS("",n,t,r)),n.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&cA(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Dk();const t=kk(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=kk(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}SE(t,r),eE(t,i),Pk(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new IE);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let i=0;i{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(WE),this.root.sharedNodes.clear()}}}function $E(e){e.updateLayout()}function HE(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?zk((e=>{const n=o?r.measuredBox[e]:r.layoutBox[e],i=kk(n);n.min=t[e].min,n.max=n.min+i})):cA(i,r.layoutBox,t)&&zk((n=>{const i=o?r.measuredBox[n]:r.layoutBox[n],a=kk(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=Nk();Pk(a,t,r.layoutBox);const s=Nk();o?Pk(s,e.applyTransform(n,!0),r.measuredBox):Pk(s,t,r.layoutBox);const c=!CE(a);let l=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:o}=n;if(i&&o){const a=Dk();Ck(a,r.layoutBox,i.layoutBox);const s=Dk();Ck(s,t,o.layoutBox),jE(a,s)||(l=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function VE(e){FE.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KE(e){e.clearSnapshot()}function WE(e){e.clearMeasurements()}function GE(e){e.isLayoutDirty=!1}function YE(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function XE(e){e.resolveTargetDelta()}function JE(e){e.calcProjection()}function QE(e){e.resetRotation()}function eA(e){e.removeLeadSnapshot()}function tA(e,t,r){e.translate=A_(t.translate,0,r),e.scale=A_(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function rA(e,t,r,n){e.min=A_(t.min,r.min,n),e.max=A_(t.max,r.max,n)}function nA(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const iA={duration:.45,ease:[.4,0,.1,1]},oA=e=>"undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().includes(e),aA=oA("applewebkit/")&&!oA("chrome/")?Math.round:fx;function sA(e){e.min=aA(e.min),e.max=aA(e.max)}function cA(e,t,r){return"position"===e||"preserve-aspect"===e&&!Ek(RE(t),RE(r),.2)}const lA=UE({attachResizeListener:(e,t)=>wx(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uA={current:void 0},dA=UE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uA.current){const e=new lA({});e.mount(window),e.setOptions({layoutScroll:!0}),uA.current=e}return uA.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),hA={pan:{Feature:class extends Rx{constructor(){super(...arguments),this.removePointerDownListener=fx}onPointerDown(e){this.session=new vk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:aE(e),onStart:aE(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&px.update((()=>n(e,t)))}}}mount(){this.removePointerDownListener=kx(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Rx{constructor(e){super(e),this.removeGroupControls=fx,this.removeListeners=fx,this.controls=new iE(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fx}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:dA,MeasureLayout:hE}},fA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const pA=4;function mA(e,t,r=1){Kx(r<=pA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,i]=function(e){const t=fA.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const e=o.trim();return $S(e)?parseFloat(e):e}return vw(i)?mA(i,t,r+1):i}const gA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vA=e=>gA.has(e),yA=e=>e===ww||e===jw,bA=(e,t)=>parseFloat(e.split(", ")[t]),wA=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return bA(i[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?bA(t[1],e):0}},xA=new Set(["x","y","z"]),_A=lw.filter((e=>!xA.has(e)));const SA={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:wA(4,13),y:wA(5,14)};SA.translateX=SA.x,SA.translateY=SA.y;const kA=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(vA);let o=[],a=!1;const s=[];if(i.forEach((i=>{const c=e.getValue(i);if(!e.hasValue(i))return;let l=r[i],u=XS(l);const d=t[i];let h;if(sx(d)){const e=d.length,t=null===d[0]?1:0;l=d[t],u=XS(l);for(let r=t;r{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],c.jump(d))})),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach((e=>{s[e]=SA[e](n,o)})),t.render();const c=t.measureViewportBox();return r.forEach((r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=SA[r](c,o)})),e})(t,e,s);return o.length&&o.forEach((([t,r])=>{e.getValue(t).set(r)})),e.render(),jb&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}return{target:t,transitionEnd:n}};function EA(e,t,r,n){return(e=>Object.keys(e).some(vA))(t)?kA(e,t,r,n):{target:t,transitionEnd:n}}const AA=(e,t,r,n)=>{const i=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach((e=>{const t=e.get();if(!vw(t))return;const r=mA(t,n);r&&e.set(r)}));for(const i in t){const e=t[i];if(!vw(e))continue;const o=mA(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return EA(e,t=i.target,r,n=i.transitionEnd)},PA={current:null},OA={current:!1};const TA=new WeakMap,CA=Object.keys(Qb),jA=CA.length,RA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],IA=Wb.length;class MA{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>px.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Gb(t),this.isVariantNode=Yb(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(t,{});for(const u in l){const e=l[u];void 0!==a[u]&&hw(e)&&(e.set(a[u],!1),US(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,TA.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),OA.current||function(){if(OA.current=!0,jb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>PA.current=e.matches;e.addListener(t),t()}else PA.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||PA.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){TA.delete(this.current),this.projection&&this.projection.unmount(),mx(this.notifyUpdate),mx(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=uw.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&px.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),i()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let s=0;sthis.scheduleRender(),animationType:"string"===typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:c})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Dk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let r=0;rt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=GS(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"===typeof r||"object"===typeof r?null===(t=ox(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||hw(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new qS),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class LA extends MA{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},n){const i=function(e,t,r){const n={};for(const i in e){const e=rk(i,t);if(void 0!==e)n[i]=e;else{const e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n){!function(e,t,r){var n,i;const o=Object.keys(t).filter((t=>!e.hasValue(t))),a=o.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,r,n){ex(e,t,r,n)}}class DA extends LA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(uw.has(t)){const e=LS(t);return e&&e.default||0}return t=tx.has(t)?t:Mb(t),e.getAttribute(t)}measureInstanceViewportBox(){return Dk()}scrapeMotionValuesFromProps(e,t){return ix(e,t)}build(e,t,r,n){Yw(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){rx(e,t,0,n)}mount(e){this.isSVGTag=Xw(e.tagName),super.mount(e)}}const zA=(e,t)=>sw(e)?new DA(t,{enableHardwareAcceleration:!1}):new NA(t,{enableHardwareAcceleration:!0}),BA={...mk,...$x,...hA,...{layout:{ProjectionNode:dA,MeasureLayout:hE}}},FA=ow(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...sw(e)?yx:bx,preloadedFeatures:r,useRender:Qw(t),createVisualElement:n,Component:e}}(e,t,BA,zA)));var UA={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},$A=(0,i.memo)((e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:c=5e3,containerStyle:l,motionVariants:u=UA,toastSpacing:d="0.5rem"}=e,[h,f]=(0,i.useState)(c),p=Ob();Eb((()=>{p||null==n||n()}),[p]),Eb((()=>{f(c)}),[c]);const m=()=>{p&&o()};(0,i.useEffect)((()=>{p&&a&&o()}),[p,a,o]),function(e,t){const r=kb(e);(0,i.useEffect)((()=>{if(null==t)return;let e=null;return e=window.setTimeout((()=>{r()}),t),()=>{e&&window.clearTimeout(e)}}),[t,r])}(m,h);const g=(0,i.useMemo)((()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...l})),[l,d]),v=(0,i.useMemo)((()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s)),[s]);return(0,xn.jsx)(FA.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(c),custom:{position:s},style:v,children:(0,xn.jsx)(wn.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:x(r,{id:t,onClose:m})})})}));function HA(e,t){var r;const n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}$A.displayName="ToastComponent";var VA={path:(0,xn.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,xn.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,xn.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,xn.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},qA=v(((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:o=!1,children:a,className:s,__css:c,...l}=e,u={ref:t,focusable:o,className:y("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...In("Icon",e)}},d=null!=n?n:VA.viewBox;if(r&&"string"!==typeof r)return(0,xn.jsx)(wn.svg,{as:r,...u,...l});const h=null!=a?a:VA.path;return(0,xn.jsx)(wn.svg,{verticalAlign:"middle",viewBox:d,...u,...l,children:h})}));qA.displayName="Icon";function KA(e){return(0,xn.jsx)(qA,{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[WA,GA]=Nn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[YA,ZA]=Nn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),XA={info:{icon:function(e){return(0,xn.jsx)(qA,{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:KA,colorScheme:"orange"},success:{icon:function(e){return(0,xn.jsx)(qA,{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:KA,colorScheme:"red"},loading:{icon:Vn,colorScheme:"blue"}};var JA=v((function(e,t){var r;const{status:n="info",addRole:i=!0,...o}=ft(e),a=null!=(r=e.colorScheme)?r:function(e){return XA[e].colorScheme}(n),s=Mn("Alert",{...e,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,xn.jsx)(WA,{value:{status:n},children:(0,xn.jsx)(YA,{value:s,children:(0,xn.jsx)(wn.div,{"data-status":n,role:i?"alert":void 0,ref:t,...o,className:y("chakra-alert",e.className),__css:c})})})}));function QA(e){const{status:t}=GA(),r=function(e){return XA[e].icon}(t),n=ZA(),i="loading"===t?n.spinner:n.icon;return(0,xn.jsx)(wn.span,{display:"inherit","data-status":t,...e,className:y("chakra-alert__icon",e.className),__css:i,children:e.children||(0,xn.jsx)(r,{h:"100%",w:"100%"})})}JA.displayName="Alert",QA.displayName="AlertIcon";var eP=v((function(e,t){const r=ZA(),{status:n}=GA();return(0,xn.jsx)(wn.div,{ref:t,"data-status":n,...e,className:y("chakra-alert__title",e.className),__css:r.title})}));eP.displayName="AlertTitle";var tP=v((function(e,t){const r=ZA(),{status:n}=GA(),i={display:"inline",...r.description};return(0,xn.jsx)(wn.div,{ref:t,"data-status":n,...e,className:y("chakra-alert__desc",e.className),__css:i})}));function rP(e){return(0,xn.jsx)(qA,{focusable:"false","aria-hidden":!0,...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}tP.displayName="AlertDescription";var nP=v((function(e,t){const r=In("CloseButton",e),{children:n,isDisabled:i,__css:o,...a}=ft(e);return(0,xn.jsx)(wn.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...o},...a,children:n||(0,xn.jsx)(rP,{width:"1em",height:"1em"})})}));nP.displayName="CloseButton";var iP=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach((e=>e()))};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n((()=>e)),r.delete(t)}),removeToast:(e,t)=>{n((r=>({...r,[t]:r[t].filter((t=>t.id!=e))})))},notify:(e,t)=>{const r=function(e,t={}){var r,n;oP+=1;const i=null!=(r=t.id)?r:oP,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>iP.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:i,id:o}=r;return n((e=>{var t,n;const o=i.includes("top")?[r,...null!=(t=e[i])?t:[]]:[...null!=(n=e[i])?n:[],r];return{...e,[i]:o}})),o},update:(e,t)=>{e&&n((r=>{const n={...r},{position:i,index:o}=xb(n,e);return i&&-1!==o&&(n[i][o]={...n[i][o],...t,message:sP(t)}),n}))},closeAll:({positions:e}={})=>{n((t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce(((e,r)=>(e[r]=t[r].map((e=>({...e,requestClose:!0}))),e)),{...t})))},close:e=>{n((t=>{const r=_b(t,e);return r?{...t,[r]:t[r].map((t=>t.id==e?{...t,requestClose:!0}:t))}:t}))},isActive:e=>Boolean(xb(iP.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var oP=0;var aP=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:o,onClose:a,description:s,colorScheme:c,icon:l}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,xn.jsxs)(JA,{addRole:!1,status:t,variant:r,id:null==u?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[(0,xn.jsx)(QA,{children:l}),(0,xn.jsxs)(wn.div,{flex:"1",maxWidth:"100%",children:[i&&(0,xn.jsx)(eP,{id:null==u?void 0:u.title,children:i}),s&&(0,xn.jsx)(tP,{id:null==u?void 0:u.description,display:"block",children:s})]}),o&&(0,xn.jsx)(nP,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function sP(e={}){const{render:t,toastComponent:r=aP}=e;return n=>"function"===typeof t?t({...n,...e}):(0,xn.jsx)(r,{...n,...e})}function cP(){const e=(0,i.useRef)(!1);return Rb((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class lP extends i.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function uP({children:e,isPresent:t}){const r=(0,i.useId)(),n=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0,top:0,left:0});return(0,i.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!n.current||!e||!i)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),i.createElement(lP,{isPresent:t,childRef:n,sizeRef:o},i.cloneElement(e,{ref:n}))}const dP=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:s})=>{const c=ax(hP),l=(0,i.useId)(),u=(0,i.useMemo)((()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:e=>{c.set(e,!0);for(const t of c.values())if(!t)return;n&&n()},register:e=>(c.set(e,!1),()=>c.delete(e))})),a?void 0:[r]);return(0,i.useMemo)((()=>{c.forEach(((e,t)=>c.set(t,!1)))}),[r]),i.useEffect((()=>{!r&&!c.size&&n&&n()}),[r]),"popLayout"===s&&(e=i.createElement(uP,{isPresent:r},e)),i.createElement(Ab.Provider,{value:u},e)};function hP(){return new Map}const fP=e=>e.key||"";const pP=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Kx(!o,"Replace exitBeforeEnter with mode='wait'");const c=(0,i.useContext)(ew).forceRender||function(){const e=cP(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,i.useCallback)((()=>px.postRender(n)),[n]),t]}()[0],l=cP(),u=function(e){const t=[];return i.Children.forEach(e,(e=>{(0,i.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const h=(0,i.useRef)(new Map).current,f=(0,i.useRef)(d),p=(0,i.useRef)(new Map).current,m=(0,i.useRef)(!0);var g;if(Rb((()=>{m.current=!1,function(e,t){e.forEach((e=>{const r=fP(e);t.set(r,e)}))}(u,p),f.current=d})),g=()=>{m.current=!0,p.clear(),h.clear()},(0,i.useEffect)((()=>()=>g()),[]),m.current)return i.createElement(i.Fragment,null,d.map((e=>i.createElement(dP,{key:fP(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},e))));d=[...d];const v=f.current.map(fP),y=u.map(fP),b=v.length;for(let i=0;i{if(-1!==y.indexOf(r))return;const o=p.get(r);if(!o)return;const m=v.indexOf(r);let g=e;if(!g){const e=()=>{h.delete(r);const e=Array.from(p.keys()).filter((e=>!y.includes(e)));if(e.forEach((e=>p.delete(e))),f.current=u.filter((t=>{const n=fP(t);return n===r||e.includes(n)})),!h.size){if(!1===l.current)return;c(),n&&n()}};g=i.createElement(dP,{key:fP(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:a,mode:s},o),h.set(r,g)}d.splice(m,0,g)})),d=d.map((e=>{const t=e.key;return h.has(t)?e:i.createElement(dP,{key:fP(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)})),i.createElement(i.Fragment,null,h.size?d:d.map((e=>(0,i.cloneElement)(e))))};var[mP,gP]=Nn({strict:!1,name:"PortalContext"}),vP="chakra-portal",yP=e=>(0,xn.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),bP=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=(0,i.useState)(null),a=(0,i.useRef)(null),[,s]=(0,i.useState)({});(0,i.useEffect)((()=>s({})),[]);const c=gP(),l=ph();Oh((()=>{if(!n)return;const e=n.ownerDocument,r=t&&null!=c?c:e.body;if(!r)return;a.current=e.createElement("div"),a.current.className=vP,r.appendChild(a.current),s({});const i=a.current;return()=>{r.contains(i)&&r.removeChild(i)}}),[n]);const u=(null==l?void 0:l.zIndex)?(0,xn.jsx)(yP,{zIndex:null==l?void 0:l.zIndex,children:r}):r;return a.current?(0,ni.createPortal)((0,xn.jsx)(mP,{value:a.current,children:u}),a.current):(0,xn.jsx)("span",{ref:e=>{e&&o(e)}})},wP=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,a=null!=o?o:"undefined"!==typeof window?document.body:void 0,s=(0,i.useMemo)((()=>{const e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=vP),e}),[o]),[,c]=(0,i.useState)({});return Oh((()=>c({})),[]),Oh((()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}}),[s,a]),a&&s?(0,ni.createPortal)((0,xn.jsx)(mP,{value:n?s:null,children:t}),s):null};function xP(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,xn.jsx)(wP,{containerRef:r,...n}):(0,xn.jsx)(bP,{...n})}xP.className=vP,xP.selector=".chakra-portal",xP.displayName="Portal";var[_P,SP]=Nn({name:"ToastOptionsContext",strict:!1}),kP=e=>{const t=(0,i.useSyncExternalStore)(iP.subscribe,iP.getState,iP.getState),{motionVariants:r,component:n=$A,portalProps:o}=e,a=Object.keys(t).map((e=>{const i=t[e];return(0,xn.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:Sb(e),children:(0,xn.jsx)(pP,{initial:!1,children:i.map((e=>(0,xn.jsx)(n,{motionVariants:r,...e},e.id)))})},e)}));return(0,xn.jsx)(xP,{...o,children:a})},EP=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,xn.jsxs)(Mh,{theme:r,...i,children:[(0,xn.jsx)(_P,{value:null==n?void 0:n.defaultOptions,children:t}),(0,xn.jsx)(kP,{...n})]})},AP=EP(yb),PP=(EP(bb),new Set(["dark","light","system"]));function OP(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,i=function(e){let t=e;return PP.has(t)||(t="light"),t}(t);return`!${"cookie"===r?`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();\n `:`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();\n `}`.trim()}function TP(e={}){const{nonce:t}=e;return(0,xn.jsx)("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:OP(e)}})}var CP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function jP(e){return"function"===typeof e}var RP=e=>function(...t){let r=[...t],n=t[t.length-1];var i;return b(i=n)&&CP.every((e=>Object.prototype.hasOwnProperty.call(i,e)))&&r.length>1?r=r.slice(0,r.length-1):n=e,function(...e){return t=>e.reduce(((e,t)=>t(e)),t)}(...r.map((e=>t=>jP(e)?e(t):function(...e){return P({},...e,MP)}(t,e))))(n)},IP=RP(yb);RP(bb);function MP(e,t,r,n){if((jP(e)||jP(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{const n=jP(e)?e(...r):e,i=jP(t)?t(...r):t;return P({},n,i,MP)}}const LP={orange:"#FB4F57",orangeL:"#FC7884",blue:"#0D99FF",blueL:"#4FA2FF",green:"#00C39A",greenL:"#00E7B6",black:"#000000",white:"#FFFFFF",gray:{900:"#121212",800:"#181818",700:"#282828",600:"#2C2B2B",500:"#414141",450:"#707070",400:"#C2C2C2",300:"#D6D6D6",200:"#EBEBEB",100:"#F0F0F0",50:"#F5F5F5"}},NP={borderRadius:"full",bg:LP.gray[600],_disabled:{bg:LP.gray[700],color:LP.gray[450]},_hover:{color:LP.green,bg:LP.gray[500],_disabled:{bg:LP.gray[700],color:LP.gray[450]}}},DP={sizes:{md:{height:"38px",fontSize:"14px",minWidth:"38px"},lg:{height:"48px",fontSize:"16px",minWidth:"48px"}},variants:{primary:{bg:LP.blue,_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1},_hover:{_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1},bg:LP.blueL}},secondary:{border:"1px solid",borderColor:LP.green,_disabled:{color:LP.gray[450],borderColor:LP.gray[500],opacity:1},_hover:{bg:LP.green,_disabled:{color:LP.gray[450],borderColor:LP.gray[500],opacity:1}}},tertiary:{bg:"transparent",border:"1px solid",borderColor:LP.gray[500],_disabled:{color:LP.gray[450],opacity:1},_hover:{border:"1px solid",borderColor:LP.gray[600],bg:LP.gray[600],_disabled:{borderColor:LP.gray[500],color:LP.gray[450],opacity:1}}},warning:{bg:LP.orange,_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1},_hover:{bg:LP.orangeL,_disabled:{bg:LP.gray[500],color:LP.gray[450],opacity:1}}},circle_without_hover_color:{...NP,_hover:{color:LP.green,_disabled:{bg:LP.gray[700],color:LP.gray[450]}}},circle_without_color:NP,circle:{...NP,color:LP.gray[300]},specialCTA:{color:LP.greenL,_hover:{color:LP.green}},CTAWithIcon:{padding:"8px 7px",color:LP.gray[300],_hover:{color:LP.green},_disabled:{color:LP.gray[450]}},popover:{color:LP.gray[300],stroke:LP.gray[450],width:"100%",padding:0,height:"24px",justifyContent:"end",_hover:{color:LP.green,stroke:LP.green}}},defaultProps:{variant:"primary",size:"md"}},{definePartsStyle:zP,defineMultiStyleConfig:BP}=ut(cf.keys),FP=BP({baseStyle:zP({icon:{color:"white"},control:{marginTop:"-20px",width:"20px",height:"20px",borderWidth:"2px",borderColor:LP.gray[400],borderRadius:"2px",_checked:{borderColor:LP.green,bg:LP.green,color:LP.white,_hover:{bg:LP.green,borderColor:LP.green}}}})}),{definePartsStyle:UP,defineMultiStyleConfig:$P}=ut(lf.keys),HP=$P({baseStyle:UP((e=>({body:{padding:"18px 30px 30px 30px",borderLeft:`1px solid ${LP.gray[800]}`},dialog:{bg:LP.gray[900]}}))),sizes:{md:{dialog:{maxW:"594px"}}},defaultProps:{size:"md"}}),{definePartsStyle:VP,defineMultiStyleConfig:qP}=ut(pf.keys),KP=qP({variants:{onboardingNotice:VP({item:{"&::marker":{color:LP.gray[400]}}}),suggestions:VP({item:{_hover:{background:LP.gray[500]},background:LP.gray[700],borderRadius:"4px",cursor:"pointer",height:"28px",listStyleType:"none"},container:{background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px",listStyleType:"none",marginLeft:"0 !important",overflowX:"hidden",padding:"10px",position:"absolute",width:"100%",zIndex:2,maxHeight:"130px"}})}}),{definePartsStyle:WP,defineMultiStyleConfig:GP}=ut(gf.keys),YP={top:"10px",position:"absolute",color:LP.gray[400],borderRadius:"18px"},ZP={...YP,insetEnd:"10px"},XP={...YP,insetStart:"10px"},JP=GP({baseStyle:WP({dialog:{padding:"40px",_dark:{bg:LP.gray[900],border:"1px solid",borderColor:LP.gray[700],borderRadius:"8px"}},overlay:{_dark:{bg:"rgba(0, 0, 0, 0.85)"}},closeButton:ZP,body:{padding:0},footer:{padding:"32px 0 0 0"},header:{padding:0}}),sizes:{md:{dialog:{maxW:"482px"}}}}),{definePartsStyle:QP,defineMultiStyleConfig:eO}=ut(wf.keys),tO=eO({variants:{primary:QP({control:{height:"16px",width:"16px",_dark:{borderColor:LP.gray[400]},_checked:{backgroundColor:LP.green,borderColor:LP.green,border:"none",color:"white"}}})}}),{definePartsStyle:rO,defineMultiStyleConfig:nO}=ut(Af.keys),iO={xs:{fontSize:"12px"},sm:{fontSize:"14px"},md:{fontSize:"16px"},lg:{fontSize:"18px"},xl:{fontSize:"20px"},"2xl":{fontSize:"24px"},"3xl":{fontSize:"30px"},"4xl":{fontSize:"36px"},"5xl":{fontSize:"48px"},"6xl":{fontSize:"69px"}},oO=IP({components:{Tabs:nO({baseStyle:rO({tab:{_selected:{fontWeight:600,color:LP.white,borderColor:LP.orange,borderBottom:`2px solid ${LP.orange}`}}})}),Text:{baseStyle:{fontWeight:"400"},sizes:iO},Heading:{baseStyle:{fontWeight:"600"},sizes:iO},Checkbox:FP,Input:{sizes:{md:{field:{height:"48px"}}},defaultProps:{variant:"filled"},variants:{filled:{field:{bg:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],_invalid:{borderColor:LP.orange},_hover:{bg:LP.gray[800]},_focusVisible:{bg:LP.gray[800],borderColor:LP.gray[450]}}}}},Button:DP,FormLabel:{baseStyle:{fontWeight:"600",marginBottom:"12px",size:"md"},sizes:iO},Modal:JP,Drawer:HP,Radio:tO,List:KP},config:{initialColorMode:"dark",useSystemColorMode:!1},colors:{umami:LP,text:{dark:LP.gray[400]}},styles:{global:{body:{bg:LP.black,color:LP.white}}}}),aO=e=>(0,xn.jsxs)(AP,{theme:oO,children:[(0,xn.jsx)(TP,{initialColorMode:oO.config.initialColorMode}),e.children]});function sO(){return sO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function gO(e,t,r,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=cO.Pop,c=null,l=u();function u(){return(a.state||{idx:null}).idx}function d(){s=cO.Pop;let e=u(),t=null==e?null:e-l;l=e,c&&c({action:s,location:f.location,delta:t})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,r="string"===typeof e?e:pO(e);return uO(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==l&&(l=0,a.replaceState(sO({},a.state,{idx:l}),""));let f={get action(){return s},get location(){return e(i,a)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(lO,d),c=e,()=>{i.removeEventListener(lO,d),c=null}},createHref:e=>t(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=cO.Push;let n=fO(f.location,e,t);r&&r(n,e),l=u()+1;let d=hO(n,l),h=f.createHref(n);try{a.pushState(d,"",h)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(h)}o&&c&&c({action:s,location:f.location,delta:1})},replace:function(e,t){s=cO.Replace;let n=fO(f.location,e,t);r&&r(n,e),l=u();let i=hO(n,l),d=f.createHref(n);a.replaceState(i,"",d),o&&c&&c({action:s,location:f.location,delta:0})},go:e=>a.go(e)};return f}var vO;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(vO||(vO={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function yO(e,t,r){void 0===r&&(r="/");let n=RO(("string"===typeof t?mO(t):t).pathname||"/",r);if(null==n)return null;let i=bO(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let a=0;null==o&&a{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(uO(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let s=DO([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(uO(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),bO(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:OO(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of wO(e.path))i(e,t,n);else i(e,t)})),t}function wO(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=wO(n.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const xO=/^:[\w-]+$/,_O=3,SO=2,kO=1,EO=10,AO=-2,PO=e=>"*"===e;function OO(e,t){let r=e.split("/"),n=r.length;return r.some(PO)&&(n+=AO),t&&(n+=SO),r.filter((e=>!PO(e))).reduce(((e,t)=>e+(xO.test(t)?_O:""===t?kO:EO)),n)}function TO(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let a=0;a(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),c=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if("*"===n){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[r];return e[n]=i&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return dO(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c||"",n),e}),{});return{params:c,pathname:o,pathnameBase:a,pattern:e}}function jO(e){try{return decodeURI(e)}catch(t){return dO(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function RO(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function IO(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function MO(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function LO(e,t){let r=MO(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function NO(e,t,r,n){let i;void 0===n&&(n=!1),"string"===typeof e?i=mO(e):(i=sO({},e),uO(!i.pathname||!i.pathname.includes("?"),IO("?","pathname","search",i)),uO(!i.pathname||!i.pathname.includes("#"),IO("#","pathname","hash",i)),uO(!i.search||!i.search.includes("#"),IO("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"===typeof e?mO(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:BO(n),hash:FO(i)}}(i,o),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}const DO=e=>e.join("/").replace(/\/\/+/g,"/"),zO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BO=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",FO=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function UO(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const $O=["post","put","patch","delete"],HO=(new Set($O),["get",...$O]);new Set(HO),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function VO(){return VO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{r.current=!0}));let n=i.useCallback((function(n,i){void 0===i&&(i={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,VO({fromRouteId:t},i)))}),[e,t]);return n}():function(){XO()||uO(!1);let e=i.useContext(qO),{basename:t,future:r,navigator:n}=i.useContext(WO),{matches:o}=i.useContext(YO),{pathname:a}=JO(),s=JSON.stringify(LO(o,r.v7_relativeSplatPath)),c=i.useRef(!1);QO((()=>{c.current=!0}));let l=i.useCallback((function(r,i){if(void 0===i&&(i={}),!c.current)return;if("number"===typeof r)return void n.go(r);let o=NO(r,JSON.parse(s),a,"path"===i.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:DO([t,o.pathname])),(i.replace?n.replace:n.push)(o,i.state,i)}),[t,n,s,a,e]);return l}()}function tT(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(WO),{matches:o}=i.useContext(YO),{pathname:a}=JO(),s=JSON.stringify(LO(o,n.v7_relativeSplatPath));return i.useMemo((()=>NO(e,JSON.parse(s),a,"path"===r)),[e,s,a,r])}function rT(e,t,r,n){XO()||uO(!1);let{navigator:o}=i.useContext(WO),{matches:a}=i.useContext(YO),s=a[a.length-1],c=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=JO();if(t){var h;let e="string"===typeof t?mO(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||uO(!1),u=e}else u=d;let f=u.pathname||"/",p=yO(e,{pathname:"/"===l?f:f.slice(l.length)||"/"});let m=sT(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:DO([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:DO([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,n);return t&&m?i.createElement(GO.Provider,{value:{location:VO({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cO.Pop}},m):m}function nT(){let e=function(){var e;let t=i.useContext(ZO),r=dT(lT.UseRouteError),n=hT(lT.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[n]}(),t=UO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,null)}const iT=i.createElement(nT,null);class oT extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(YO.Provider,{value:this.props.routeContext},i.createElement(ZO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aT(e){let{routeContext:t,match:r,children:n}=e,o=i.useContext(qO);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(YO.Provider,{value:t},n)}function sT(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var a;if(null==(a=r)||!a.errors)return null;e=r.matches}let s=e,c=null==(o=r)?void 0:o.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||uO(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let i=0;i=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,n,o)=>{let a,d=!1,h=null,f=null;r&&(a=c&&n.route.id?c[n.route.id]:void 0,h=n.route.errorElement||iT,l&&(u<0&&0===o?(!function(e,t,r){t||fT[e]||(fT[e]=!0)}("route-fallback",!1),d=!0,f=null):u===o&&(d=!0,f=n.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,o+1)),m=()=>{let t;return t=a?h:d?f:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(aT,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?i.createElement(oT,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}var cT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cT||{}),lT=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(lT||{});function uT(e){let t=i.useContext(qO);return t||uO(!1),t}function dT(e){let t=i.useContext(KO);return t||uO(!1),t}function hT(e){let t=function(e){let t=i.useContext(YO);return t||uO(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||uO(!1),r.route.id}const fT={};o.startTransition;function pT(e){let{to:t,replace:r,state:n,relative:o}=e;XO()||uO(!1);let{future:a,static:s}=i.useContext(WO),{matches:c}=i.useContext(YO),{pathname:l}=JO(),u=eT(),d=NO(t,LO(c,a.v7_relativeSplatPath),l,"path"===o),h=JSON.stringify(d);return i.useEffect((()=>u(JSON.parse(h),{replace:r,state:n,relative:o})),[u,h,o,r,n]),null}function mT(e){uO(!1)}function gT(e){let{basename:t="/",children:r=null,location:n,navigationType:o=cO.Pop,navigator:a,static:s=!1,future:c}=e;XO()&&uO(!1);let l=t.replace(/^\/*/,"/"),u=i.useMemo((()=>({basename:l,navigator:a,static:s,future:VO({v7_relativeSplatPath:!1},c)})),[l,c,a,s]);"string"===typeof n&&(n=mO(n));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:m="default"}=n,g=i.useMemo((()=>{let e=RO(d,l);return null==e?null:{location:{pathname:e,search:h,hash:f,state:p,key:m},navigationType:o}}),[l,d,h,f,p,m,o]);return null==g?null:i.createElement(WO.Provider,{value:u},i.createElement(GO.Provider,{children:r,value:g}))}function vT(e){let{children:t,location:r}=e;return rT(yT(t),r)}new Promise((()=>{}));i.Component;function yT(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,((e,n)=>{if(!i.isValidElement(e))return;let o=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,yT(e.props.children,o));e.type!==mT&&uO(!1),e.props.index&&e.props.children&&uO(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=yT(e.props.children,o)),r.push(a)})),r}function bT(){return bT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}function xT(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const _T=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(Mde){}new Map;const ST=o.startTransition;ii.flushSync,o.useId;function kT(e){let{basename:t,children:r,future:n,window:o}=e,a=i.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),gO((function(e,t){let{pathname:r="/",search:n="",hash:i=""}=mO(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),fO("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"===typeof t?t:pO(t))}),(function(e,t){dO("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:o,v5Compat:!0}));let s=a.current,[c,l]=i.useState({action:s.action,location:s.location}),{v7_startTransition:u}=n||{},d=i.useCallback((e=>{u&&ST?ST((()=>l(e))):l(e)}),[l,u]);return i.useLayoutEffect((()=>s.listen(d)),[s,d]),i.createElement(gT,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:s,future:n})}const ET="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,AT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PT=i.forwardRef((function(e,t){let r,{onClick:n,relative:o,reloadDocument:a,replace:s,state:c,target:l,to:u,preventScrollReset:d,unstable_viewTransition:h}=e,f=wT(e,_T),{basename:p}=i.useContext(WO),m=!1;if("string"===typeof u&&AT.test(u)&&(r=u,ET))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=RO(t.pathname,p);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(Mde){}let g=function(e,t){let{relative:r}=void 0===t?{}:t;XO()||uO(!1);let{basename:n,navigator:o}=i.useContext(WO),{hash:a,pathname:s,search:c}=tT(e,{relative:r}),l=s;return"/"!==n&&(l="/"===s?n:DO([n,s])),o.createHref({pathname:l,search:c,hash:a})}(u,{relative:o}),v=function(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c}=void 0===t?{}:t,l=eT(),u=JO(),d=tT(e,{relative:s});return i.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==n?n:pO(u)===pO(d);l(e,{replace:r,state:o,preventScrollReset:a,relative:s,unstable_viewTransition:c})}}),[u,l,d,n,o,r,e,a,s,c])}(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:h});return i.createElement("a",bT({},f,{href:r||g,onClick:m||a?n:function(e){n&&n(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var OT,TT;function CT(e){let t=i.useRef(xT(e)),r=i.useRef(!1),n=JO(),o=i.useMemo((()=>function(e,t){let r=xT(e);return t&&t.forEach(((e,n)=>{r.has(n)||t.getAll(n).forEach((e=>{r.append(n,e)}))})),r}(n.search,r.current?null:t.current)),[n.search]),a=eT(),s=i.useCallback(((e,t)=>{const n=xT("function"===typeof e?e(o):e);r.current=!0,a("?"+n,t)}),[a,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(OT||(OT={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(TT||(TT={}));function jT(e,t){return function(){return e.apply(t,arguments)}}const{toString:RT}=Object.prototype,{getPrototypeOf:IT}=Object,MT=(e=>t=>{const r=RT.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),LT=e=>(e=e.toLowerCase(),t=>MT(t)===e),NT=e=>t=>typeof t===e,{isArray:DT}=Array,zT=NT("undefined");const BT=LT("ArrayBuffer");const FT=NT("string"),UT=NT("function"),$T=NT("number"),HT=e=>null!==e&&"object"===typeof e,VT=e=>{if("object"!==MT(e))return!1;const t=IT(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qT=LT("Date"),KT=LT("File"),WT=LT("Blob"),GT=LT("FileList"),YT=LT("URLSearchParams");function ZT(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let n,i;if("object"!==typeof e&&(e=[e]),DT(e))for(n=0,i=e.length;n0;)if(n=r[i],t===n.toLowerCase())return n;return null}const JT="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,QT=e=>!zT(e)&&e!==JT;const eC=(tC="undefined"!==typeof Uint8Array&&IT(Uint8Array),e=>tC&&e instanceof tC);var tC;const rC=LT("HTMLFormElement"),nC=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),iC=LT("RegExp"),oC=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ZT(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},aC="abcdefghijklmnopqrstuvwxyz",sC="0123456789",cC={DIGIT:sC,ALPHA:aC,ALPHA_DIGIT:aC+aC.toUpperCase()+sC};const lC=LT("AsyncFunction"),uC={isArray:DT,isArrayBuffer:BT,isBuffer:function(e){return null!==e&&!zT(e)&&null!==e.constructor&&!zT(e.constructor)&&UT(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||UT(e.append)&&("formdata"===(t=MT(e))||"object"===t&&UT(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&BT(e.buffer),t},isString:FT,isNumber:$T,isBoolean:e=>!0===e||!1===e,isObject:HT,isPlainObject:VT,isUndefined:zT,isDate:qT,isFile:KT,isBlob:WT,isRegExp:iC,isFunction:UT,isStream:e=>HT(e)&&UT(e.pipe),isURLSearchParams:YT,isTypedArray:eC,isFileList:GT,forEach:ZT,merge:function e(){const{caseless:t}=QT(this)&&this||{},r={},n=(n,i)=>{const o=t&&XT(r,i)||i;VT(r[o])&&VT(n)?r[o]=e(r[o],n):VT(n)?r[o]=e({},n):DT(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i(ZT(t,((t,n)=>{r&&UT(t)?e[n]=jT(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&IT(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:MT,kindOfTest:LT,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(DT(e))return e;let t=e.length;if(!$T(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:rC,hasOwnProperty:nC,hasOwnProp:nC,reduceDescriptors:oC,freezeMethods:e=>{oC(e,((t,r)=>{if(UT(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];UT(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return DT(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:XT,global:JT,isContextDefined:QT,ALPHABET:cC,generateString:(e=16,t=cC.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&UT(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(HT(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=DT(e)?[]:{};return ZT(e,((e,t)=>{const o=r(e,n+1);!zT(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:lC,isThenable:e=>e&&(HT(e)||UT(e))&&UT(e.then)&&UT(e.catch)};function dC(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}uC.inherits(dC,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:uC.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hC=dC.prototype,fC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{fC[e]={value:e}})),Object.defineProperties(dC,fC),Object.defineProperty(hC,"isAxiosError",{value:!0}),dC.from=(e,t,r,n,i,o)=>{const a=Object.create(hC);return uC.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),dC.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const pC=dC;var mC=r(4240).Buffer;function gC(e){return uC.isPlainObject(e)||uC.isArray(e)}function vC(e){return uC.endsWith(e,"[]")?e.slice(0,-2):e}function yC(e,t,r){return e?e.concat(t).map((function(e,t){return e=vC(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const bC=uC.toFlatObject(uC,{},null,(function(e){return/^is[A-Z]/.test(e)}));const wC=function(e,t,r){if(!uC.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=uC.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!uC.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&uC.isSpecCompliantForm(t);if(!uC.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(uC.isDate(e))return e.toISOString();if(!s&&uC.isBlob(e))throw new pC("Blob is not supported. Use a Buffer instead.");return uC.isArrayBuffer(e)||uC.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):mC.from(e):e}function l(e,r,i){let s=e;if(e&&!i&&"object"===typeof e)if(uC.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(uC.isArray(e)&&function(e){return uC.isArray(e)&&!e.some(gC)}(e)||(uC.isFileList(e)||uC.endsWith(r,"[]"))&&(s=uC.toArray(e)))return r=vC(r),s.forEach((function(e,n){!uC.isUndefined(e)&&null!==e&&t.append(!0===a?yC([r],n,o):null===a?r:r+"[]",c(e))})),!1;return!!gC(e)||(t.append(yC(i,r,o),c(e)),!1)}const u=[],d=Object.assign(bC,{defaultVisitor:l,convertValue:c,isVisitable:gC});if(!uC.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!uC.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),uC.forEach(r,(function(r,o){!0===(!(uC.isUndefined(r)||null===r)&&i.call(t,r,uC.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t};function xC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _C(e,t){this._pairs=[],e&&wC(e,this,t)}const SC=_C.prototype;SC.append=function(e,t){this._pairs.push([e,t])},SC.toString=function(e){const t=e?function(t){return e.call(this,t,xC)}:xC;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const kC=_C;function EC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AC(e,t,r){if(!t)return e;const n=r&&r.encode||EC,i=r&&r.serialize;let o;if(o=i?i(t,r):uC.isURLSearchParams(t)?t.toString():new kC(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const PC=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){uC.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TC={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:kC,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},CC="undefined"!==typeof window&&"undefined"!==typeof document,jC=(RC="undefined"!==typeof navigator&&navigator.product,CC&&["ReactNative","NativeScript","NS"].indexOf(RC)<0);var RC;const IC="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,MC={...e,...TC};const LC=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&uC.isArray(n)?n.length:o,s)return uC.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&uC.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&uC.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n{t(function(e){return uC.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const NC={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=uC.isObject(e);i&&uC.isHTMLForm(e)&&(e=new FormData(e));if(uC.isFormData(e))return n?JSON.stringify(LC(e)):e;if(uC.isArrayBuffer(e)||uC.isBuffer(e)||uC.isStream(e)||uC.isFile(e)||uC.isBlob(e))return e;if(uC.isArrayBufferView(e))return e.buffer;if(uC.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return wC(e,new MC.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return MC.isNode&&uC.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=uC.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return wC(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(uC.isString(e))try{return(t||JSON.parse)(e),uC.trim(e)}catch(Mde){if("SyntaxError"!==Mde.name)throw Mde}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||NC.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&uC.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(Mde){if(r){if("SyntaxError"===Mde.name)throw pC.from(Mde,pC.ERR_BAD_RESPONSE,this,null,this.response);throw Mde}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:MC.classes.FormData,Blob:MC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};uC.forEach(["delete","get","head","post","put","patch"],(e=>{NC.headers[e]={}}));const DC=NC,zC=uC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),BC=Symbol("internals");function FC(e){return e&&String(e).trim().toLowerCase()}function UC(e){return!1===e||null==e?e:uC.isArray(e)?e.map(UC):String(e)}function $C(e,t,r,n,i){return uC.isFunction(n)?n.call(this,t,r):(i&&(t=r),uC.isString(t)?uC.isString(n)?-1!==t.indexOf(n):uC.isRegExp(n)?n.test(t):void 0:void 0)}class HC{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=FC(t);if(!i)throw new Error("header name must be a non-empty string");const o=uC.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=UC(e))}const o=(e,t)=>uC.forEach(e,((e,r)=>i(e,r,t)));return uC.isPlainObject(e)||e instanceof this.constructor?o(e,t):uC.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&zC[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=FC(e)){const r=uC.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(uC.isFunction(t))return t.call(this,e,r);if(uC.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=FC(e)){const r=uC.findKey(this,e);return!(!r||void 0===this[r]||t&&!$C(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=FC(e)){const i=uC.findKey(r,e);!i||t&&!$C(0,r[i],i,t)||(delete r[i],n=!0)}}return uC.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!$C(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return uC.forEach(this,((n,i)=>{const o=uC.findKey(r,i);if(o)return t[o]=UC(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=UC(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return uC.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&uC.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[BC]=this[BC]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=FC(e);t[n]||(!function(e,t){const r=uC.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return uC.isArray(e)?e.forEach(n):n(e),this}}HC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),uC.reduceDescriptors(HC.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),uC.freezeMethods(HC);const VC=HC;function qC(e,t){const r=this||DC,n=t||r,i=VC.from(n.headers);let o=n.data;return uC.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function KC(e){return!(!e||!e.__CANCEL__)}function WC(e,t,r){pC.call(this,null==e?"canceled":e,pC.ERR_CANCELED,t,r),this.name="CanceledError"}uC.inherits(WC,pC,{__CANCEL__:!0});const GC=WC;const YC=MC.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];uC.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),uC.isString(n)&&a.push("path="+n),uC.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ZC(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const XC=MC.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=uC.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const JC=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];i||(i=c),r[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s);r=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const ej="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=VC.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(uC.isFormData(n))if(MC.hasStandardBrowserEnv||MC.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const d=ZC(e.baseURL,e.url);function h(){if(!u)return;const n=VC.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new pC("Request failed with status code "+r.status,[pC.ERR_BAD_REQUEST,pC.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),AC(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new pC("Request aborted",pC.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new pC("Network Error",pC.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||OC;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new pC(t,n.clarifyTimeoutError?pC.ETIMEDOUT:pC.ECONNABORTED,e,u)),u=null},MC.hasStandardBrowserEnv&&(c&&uC.isFunction(c)&&(c=c(e)),c||!1!==c&&XC(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&YC.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in u&&uC.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),uC.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",QC(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",QC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(r(!t||t.type?new GC(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===MC.protocols.indexOf(f)?r(new pC("Unsupported protocol "+f+":",pC.ERR_BAD_REQUEST,e)):u.send(n||null)}))},tj={http:null,xhr:ej};uC.forEach(tj,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Mde){}Object.defineProperty(e,"adapterName",{value:t})}}));const rj=e=>`- ${e}`,nj=e=>uC.isFunction(e)||null===e||!1===e,ij=e=>{e=uC.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(rj).join("\n"):" "+rj(e[0]):"as no adapter specified";throw new pC("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function oj(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new GC(null,e)}function aj(e){oj(e),e.headers=VC.from(e.headers),e.data=qC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ij(e.adapter||DC.adapter)(e).then((function(t){return oj(e),t.data=qC.call(e,e.transformResponse,t),t.headers=VC.from(t.headers),t}),(function(t){return KC(t)||(oj(e),t&&t.response&&(t.response.data=qC.call(e,e.transformResponse,t.response),t.response.headers=VC.from(t.response.headers))),Promise.reject(t)}))}const sj=e=>e instanceof VC?e.toJSON():e;function cj(e,t){t=t||{};const r={};function n(e,t,r){return uC.isPlainObject(e)&&uC.isPlainObject(t)?uC.merge.call({caseless:r},e,t):uC.isPlainObject(t)?uC.merge({},t):uC.isArray(t)?t.slice():t}function i(e,t,r){return uC.isUndefined(t)?uC.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!uC.isUndefined(t))return n(void 0,t)}function a(e,t){return uC.isUndefined(t)?uC.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(sj(e),sj(t),!0)};return uC.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,a=o(e[n],t[n],n);uC.isUndefined(a)&&o!==s||(r[n]=a)})),r}const lj="1.6.7",uj={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{uj[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const dj={};uj.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new pC(n(i," has been removed"+(t?" in "+t:"")),pC.ERR_DEPRECATED);return t&&!dj[i]&&(dj[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const hj={assertOptions:function(e,t,r){if("object"!==typeof e)throw new pC("options must be an object",pC.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new pC("option "+o+" must be "+r,pC.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new pC("Unknown option "+o,pC.ERR_BAD_OPTION)}},validators:uj},fj=hj.validators;class pj{constructor(e){this.defaults=e,this.interceptors={request:new PC,response:new PC}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}throw r}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=cj(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&hj.assertOptions(r,{silentJSONParsing:fj.transitional(fj.boolean),forcedJSONParsing:fj.transitional(fj.boolean),clarifyTimeoutError:fj.transitional(fj.boolean)},!1),null!=n&&(uC.isFunction(n)?t.paramsSerializer={serialize:n}:hj.assertOptions(n,{encode:fj.function,serialize:fj.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&uC.merge(i.common,i[t.method]);i&&uC.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=VC.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[aj.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new GC(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new gj((function(t){e=t}));return{token:t,cancel:e}}}const vj=gj;const yj={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yj).forEach((([e,t])=>{yj[t]=e}));const bj=yj;const wj=function e(t){const r=new mj(t),n=jT(mj.prototype.request,r);return uC.extend(n,mj.prototype,r,{allOwnKeys:!0}),uC.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(cj(t,r))},n}(DC);wj.Axios=mj,wj.CanceledError=GC,wj.CancelToken=vj,wj.isCancel=KC,wj.VERSION=lj,wj.toFormData=wC,wj.AxiosError=pC,wj.Cancel=wj.CanceledError,wj.all=function(e){return Promise.all(e)},wj.spread=function(e){return function(t){return e.apply(null,t)}},wj.isAxiosError=function(e){return uC.isObject(e)&&!0===e.isAxiosError},wj.mergeConfig=cj,wj.AxiosHeaders=VC,wj.formToJSON=e=>LC(uC.isHTMLForm(e)?new FormData(e):e),wj.getAdapter=ij,wj.HttpStatusCode=bj,wj.default=wj;const xj=wj,_j=e=>(0,xn.jsxs)(qA,{width:"24px",height:"24px",fill:"none",textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,xn.jsx)("path",{d:"M14 5.6C14 5.03995 14 4.75992 14.109 4.54601C14.2049 4.35785 14.3578 4.20487 14.546 4.10899C14.7599 4 15.0399 4 15.6 4H18.4C18.9601 4 19.2401 4 19.454 4.10899C19.6422 4.20487 19.7951 4.35785 19.891 4.54601C20 4.75992 20 5.03995 20 5.6V8.4C20 8.96005 20 9.24008 19.891 9.45399C19.7951 9.64215 19.6422 9.79513 19.454 9.89101C19.2401 10 18.9601 10 18.4 10H15.6C15.0399 10 14.7599 10 14.546 9.89101C14.3578 9.79513 14.2049 9.64215 14.109 9.45399C14 9.24008 14 8.96005 14 8.4V5.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M4 5.6C4 5.03995 4 4.75992 4.10899 4.54601C4.20487 4.35785 4.35785 4.20487 4.54601 4.10899C4.75992 4 5.03995 4 5.6 4H8.4C8.96005 4 9.24008 4 9.45399 4.10899C9.64215 4.20487 9.79513 4.35785 9.89101 4.54601C10 4.75992 10 5.03995 10 5.6V8.4C10 8.96005 10 9.24008 9.89101 9.45399C9.79513 9.64215 9.64215 9.79513 9.45399 9.89101C9.24008 10 8.96005 10 8.4 10H5.6C5.03995 10 4.75992 10 4.54601 9.89101C4.35785 9.79513 4.20487 9.64215 4.10899 9.45399C4 9.24008 4 8.96005 4 8.4V5.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M4 15.6C4 15.0399 4 14.7599 4.10899 14.546C4.20487 14.3578 4.35785 14.2049 4.54601 14.109C4.75992 14 5.03995 14 5.6 14H8.4C8.96005 14 9.24008 14 9.45399 14.109C9.64215 14.2049 9.79513 14.3578 9.89101 14.546C10 14.7599 10 15.0399 10 15.6V18.4C10 18.9601 10 19.2401 9.89101 19.454C9.79513 19.6422 9.64215 19.7951 9.45399 19.891C9.24008 20 8.96005 20 8.4 20H5.6C5.03995 20 4.75992 20 4.54601 19.891C4.35785 19.7951 4.20487 19.6422 4.10899 19.454C4 19.2401 4 18.9601 4 18.4V15.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M14 15.6C14 15.0399 14 14.7599 14.109 14.546C14.2049 14.3578 14.3578 14.2049 14.546 14.109C14.7599 14 15.0399 14 15.6 14H18.4C18.9601 14 19.2401 14 19.454 14.109C19.6422 14.2049 19.7951 14.3578 19.891 14.546C20 14.7599 20 15.0399 20 15.6V18.4C20 18.9601 20 19.2401 19.891 19.454C19.7951 19.6422 19.6422 19.7951 19.454 19.891C19.2401 20 18.9601 20 18.4 20H15.6C15.0399 20 14.7599 20 14.546 19.891C14.3578 19.7951 14.2049 19.6422 14.109 19.454C14 19.2401 14 18.9601 14 18.4V15.6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Sj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M8.25 13.5H4.65C3.80992 13.5 3.38988 13.5 3.06901 13.3365C2.78677 13.1927 2.5573 12.9632 2.41349 12.681C2.25 12.3601 2.25 11.9401 2.25 11.1V5.4C2.25 4.55992 2.25 4.13988 2.41349 3.81901C2.5573 3.53677 2.78677 3.3073 3.06901 3.16349C3.38988 3 3.80992 3 4.65 3H13.35C14.1901 3 14.6101 3 14.931 3.16349C15.2132 3.3073 15.4427 3.53677 15.5865 3.81901C15.75 4.13988 15.75 4.55992 15.75 5.4V8.25M2.25 6H15.75M13.5 15V10.5M15.75 12.7506L11.25 12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kj=e=>(0,xn.jsx)(qA,{fill:"none",viewBox:"0 0 13 17",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13 12.5L10.75 12.5M10.75 12.5L8.5 12.5M10.75 12.5V10.25M10.75 12.5V14.75M6.25 14.75H1C1 11.8505 3.35051 9.5 6.25 9.5C6.77123 9.5 7.27472 9.57596 7.75 9.71741M9.25 4.25C9.25 5.90685 7.90685 7.25 6.25 7.25C4.59315 7.25 3.25 5.90685 3.25 4.25C3.25 2.59315 4.59315 1.25 6.25 1.25C7.90685 1.25 9.25 2.59315 9.25 4.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ej=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13.5 15.5C13.2164 14.3589 11.981 13.5 10.5 13.5C9.019 13.5 7.78364 14.3589 7.5 15.5M21 5V7M21 11V13M21 17V19M6.2 21H14.8C15.9201 21 16.4802 21 16.908 20.782C17.2843 20.5903 17.5903 20.2843 17.782 19.908C18 19.4802 18 18.9201 18 17.8V6.2C18 5.0799 18 4.51984 17.782 4.09202C17.5903 3.71569 17.2843 3.40973 16.908 3.21799C16.4802 3 15.9201 3 14.8 3H6.2C5.0799 3 4.51984 3 4.09202 3.21799C3.71569 3.40973 3.40973 3.71569 3.21799 4.09202C3 4.51984 3 5.07989 3 6.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21ZM11.5 9.5C11.5 10.0523 11.0523 10.5 10.5 10.5C9.94772 10.5 9.5 10.0523 9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5C11.0523 8.5 11.5 8.94772 11.5 9.5Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Aj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],"data-testid":"baker-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.74946 5.25V8.25M7.49946 1.5V4.5M13.4995 12V15M2.24946 6.75H5.24946M5.99946 3H8.99946M11.9995 13.5H14.9995M10.4995 5.25L12.6208 7.37132M14.6369 2.80959L15.0612 3.23385C15.3582 3.53086 15.5067 3.67937 15.5624 3.85062C15.6113 4.00125 15.6113 4.16351 15.5624 4.31414C15.5067 4.48539 15.3582 4.6339 15.0612 4.93091L4.89356 15.0985C4.59655 15.3955 4.44804 15.5441 4.2768 15.5997C4.12617 15.6486 3.9639 15.6486 3.81327 15.5997C3.64203 15.5441 3.49352 15.3955 3.19651 15.0985L2.77224 14.6743C2.47523 14.3773 2.32672 14.2288 2.27108 14.0575C2.22214 13.9069 2.22214 13.7446 2.27108 13.594C2.32672 13.4227 2.47523 13.2742 2.77224 12.9772L12.9399 2.80959C13.2369 2.51258 13.3854 2.36407 13.5566 2.30843C13.7073 2.25948 13.8695 2.25948 14.0202 2.30843C14.1914 2.36407 14.3399 2.51258 14.6369 2.80959Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Pj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",strokeWidth:"1.2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M10 4V20M14 4V20M4 8C4 8.92997 4 9.39496 4.10222 9.77646C4.37962 10.8117 5.18827 11.6204 6.22354 11.8978C6.60504 12 7.07003 12 8 12H16C16.93 12 17.395 12 17.7765 11.8978C18.8117 11.6204 19.6204 10.8117 19.8978 9.77646C20 9.39496 20 8.92997 20 8M4 8C4 7.07003 4 6.60504 4.10222 6.22354C4.37962 5.18827 5.18827 4.37962 6.22354 4.10222C6.60504 4 7.07003 4 8 4H16C16.93 4 17.395 4 17.7765 4.10222C18.8117 4.37962 19.6204 5.18827 19.8978 6.22354C20 6.60504 20 7.07003 20 8M4 8V16C4 16.93 4 17.395 4.10222 17.7765C4.37962 18.8117 5.18827 19.6204 6.22354 19.8978C6.60504 20 7.07003 20 8 20H16C16.93 20 17.395 20 17.7765 19.8978C18.8117 19.6204 19.6204 18.8117 19.8978 17.7765C20 17.395 20 16.93 20 16V8M10 16H8C7.07003 16 6.60504 16 6.22354 15.8978C5.18827 15.6204 4.37962 14.8117 4.10222 13.7765C4 13.395 4 12.93 4 12M14 16H16C16.93 16 17.395 16 17.7765 15.8978C18.8117 15.6204 19.6204 14.8117 19.8978 13.7765C20 13.395 20 12.93 20 12M7 8H7.01M17 8H17.01",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round"})}),Oj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],textAlign:"center",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4 6H20M4 12H20M4 18H20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Tj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M6 9.25L7.84615 11.25L12 6.75M15.75 9C15.75 12.7279 12.7279 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 5.27208 5.27208 2.25 9 2.25C12.7279 2.25 15.75 5.27208 15.75 9Z",stroke:"#00C39A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Cj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4.5 6.75L9 11.25L13.5 6.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),jj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M7 14L11.5 9.5L7 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Rj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4.5 11.25L9 6.75L13.5 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Ij=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12 10V14M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Mj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none","data-testid":"contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.75 15.75C3.75 12.8505 6.10051 10.5 9 10.5C11.8995 10.5 14.25 12.8505 14.25 15.75M12 5.25C12 6.90685 10.6569 8.25 9 8.25C7.34315 8.25 6 6.90685 6 5.25C6 3.59315 7.34315 2.25 9 2.25C10.6569 2.25 12 3.59315 12 5.25Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Lj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M7.5 12.75L6 11.25L7.5 9.75M10.5 9.75L12 11.25L10.5 12.75M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V6C9.75 6.41421 10.0858 6.75 10.5 6.75H14.25",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Nj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13.773 13.773C14.9945 12.5515 15.75 10.864 15.75 9C15.75 5.27208 12.7279 2.25 9 2.25C7.13604 2.25 5.44854 3.00552 4.22703 4.22703M13.773 13.773C12.5515 14.9945 10.864 15.75 9 15.75C5.27208 15.75 2.25 12.7279 2.25 9C2.25 7.13604 3.00552 5.44854 4.22703 4.22703M13.773 13.773L4.22703 4.22703",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Dj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.125 9H20.875M12 3L8 9L12 20.6667L16 9L12 3ZM12.64 20.1467L20.64 9.48C20.7691 9.30787 20.8336 9.22181 20.8585 9.12728C20.8805 9.04385 20.8805 8.95615 20.8585 8.87272C20.8336 8.77819 20.7691 8.69213 20.64 8.52L16.74 3.32C16.652 3.20267 16.608 3.144 16.5522 3.10169C16.5028 3.06421 16.4469 3.03625 16.3873 3.01922C16.32 3 16.2467 3 16.1 3H7.9C7.75333 3 7.68 3 7.61269 3.01922C7.55308 3.03625 7.49715 3.06421 7.44776 3.10169C7.392 3.144 7.348 3.20267 7.26 3.32L3.36 8.52C3.2309 8.69213 3.16635 8.77819 3.14147 8.87271C3.11951 8.95615 3.11951 9.04385 3.14147 9.12728C3.16635 9.2218 3.2309 9.30787 3.36 9.48L11.36 20.1467C11.5771 20.4362 11.6857 20.5809 11.8188 20.6327C11.9353 20.678 12.0647 20.678 12.1812 20.6327C12.3143 20.5809 12.4229 20.4362 12.64 20.1467Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),zj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9 17H13M9 13H13M9 9H10M17 18V21M17 15H17.01M13 3H8.2C7.0799 3 6.51984 3 6.09202 3.21799C5.71569 3.40973 5.40973 3.71569 5.21799 4.09202C5 4.51984 5 5.0799 5 6.2V17.8C5 18.9201 5 19.4802 5.21799 19.908C5.40973 20.2843 5.71569 20.5903 6.09202 20.782C6.51984 21 7.0799 21 8.2 21H13M13 3L19 9M13 3V7.4C13 7.96005 13 8.24008 13.109 8.45399C13.2049 8.64215 13.3578 8.79513 13.546 8.89101C13.7599 9 14.0399 9 14.6 9H19M19 9V11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Bj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4 14L9 19L20 8M6 8.88889L9.07692 12L16 5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Fj=e=>(0,xn.jsx)(qA,{width:"16px",height:"16px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M5 7.25L8 10.25M8 10.25L11 7.25M8 10.25V1.25M14.75 7.25V12.3494C14.75 13.1895 14.75 13.6095 14.5865 13.9304C14.4427 14.2126 14.2132 14.4421 13.931 14.5859C13.6101 14.7494 13.1901 14.7494 12.35 14.7494H3.65C2.80992 14.7494 2.38988 14.7494 2.06901 14.5859C1.78677 14.4421 1.5573 14.2126 1.41349 13.9304C1.25 13.6095 1.25 13.1895 1.25 12.3494V7.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Uj=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M8.5 21H4C4 17.134 7.13401 14 11 14C11.1681 14 11.3348 14.0059 11.5 14.0176M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7ZM12.5898 21L14.6148 20.595C14.7914 20.5597 14.8797 20.542 14.962 20.5097C15.0351 20.4811 15.1045 20.4439 15.1689 20.399C15.2414 20.3484 15.3051 20.2848 15.4324 20.1574L19.5898 16C20.1421 15.4477 20.1421 14.5523 19.5898 14C19.0376 13.4477 18.1421 13.4477 17.5898 14L13.4324 18.1574C13.3051 18.2848 13.2414 18.3484 13.1908 18.421C13.1459 18.4853 13.1088 18.5548 13.0801 18.6279C13.0478 18.7102 13.0302 18.7985 12.9948 18.975L12.5898 21Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),$j=e=>(0,xn.jsx)(qA,{width:"12px",height:"12px",fill:"none",stroke:LP.orange,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M6 3.66667V6.58333M6 8.33333H6.00583M11.25 6C11.25 8.89949 8.89949 11.25 6 11.25C3.1005 11.25 0.75 8.89949 0.75 6C0.75 3.1005 3.1005 0.75 6 0.75C8.89949 0.75 11.25 3.1005 11.25 6Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Hj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15 3V15M3 9H12M12 9L9 6M12 9L9 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Vj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15 3L9 9M15 3V6.375M15 3H11.625M14.25 9.375V12.6C14.25 13.4401 14.25 13.8601 14.0865 14.181C13.9427 14.4632 13.7132 14.6927 13.431 14.8365C13.1101 15 12.6901 15 11.85 15H5.4C4.55992 15 4.13988 15 3.81901 14.8365C3.53677 14.6927 3.3073 14.4632 3.16349 14.181C3 13.8601 3 13.4401 3 12.6V6.15C3 5.30992 3 4.88988 3.16349 4.56901C3.3073 4.28677 3.53677 4.0573 3.81901 3.91349C4.13988 3.75 4.55992 3.75 5.4 3.75H8.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),qj=e=>(0,xn.jsxs)(qA,{width:"16px",height:"12px",fill:"none",viewBox:"0 0 16 12",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,xn.jsx)("path",{d:"M10.2501 6C10.2501 7.24264 9.2427 8.25 8.00006 8.25C6.75742 8.25 5.75006 7.24264 5.75006 6C5.75006 4.75736 6.75742 3.75 8.00006 3.75C9.2427 3.75 10.2501 4.75736 10.2501 6Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M8.00039 0.75C4.64217 0.75 1.79946 2.95716 0.84375 5.99997C1.79944 9.04282 4.64217 11.25 8.00041 11.25C11.3586 11.25 14.2013 9.04284 15.157 6.00003C14.2014 2.95719 11.3586 0.75 8.00039 0.75Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),Kj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M2.25024 2.25L15.7502 15.75M7.38345 7.43523C6.99147 7.84016 6.75024 8.39191 6.75024 9C6.75024 10.2426 7.7576 11.25 9.00024 11.25C9.6171 11.25 10.176 11.0018 10.5824 10.5997M4.87524 4.98536C3.45076 5.92525 2.36577 7.33796 1.84375 8.99997C2.79944 12.0428 5.64217 14.25 9.00041 14.25C10.4921 14.25 11.882 13.8145 13.0501 13.0638M8.25024 3.78705C8.49697 3.76254 8.74722 3.75 9.00039 3.75C12.3586 3.75 15.2014 5.95719 16.157 9.00003C15.9465 9.67048 15.6443 10.3004 15.2651 10.875",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Wj=e=>(0,xn.jsx)(qA,{width:"30px",height:"15px",fill:LP.gray[450],viewBox:"1 1 30 15",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.2429 13V4.27273H7.02131V5.79403H3.08807V7.87358H6.63778V9.39489H3.08807V13H1.2429ZM8.67685 13H6.69957L9.71236 4.27273H12.0902L15.0987 13H13.1214L10.9354 6.26705H10.8672L8.67685 13ZM8.55327 9.5696H13.2237V11.0099H8.55327V9.5696ZM19.4847 4.27273V13H17.6396V6.02415H17.5884L15.5898 7.27699V5.64062L17.7504 4.27273H19.4847ZM22.1683 13.1108C21.8871 13.1108 21.6456 13.0114 21.4439 12.8125C21.245 12.6108 21.1456 12.3693 21.1456 12.0881C21.1456 11.8097 21.245 11.571 21.4439 11.3722C21.6456 11.1733 21.8871 11.0739 22.1683 11.0739C22.4411 11.0739 22.6797 11.1733 22.8842 11.3722C23.0888 11.571 23.1911 11.8097 23.1911 12.0881C23.1911 12.2756 23.1428 12.4474 23.0462 12.6037C22.9524 12.7571 22.8288 12.8807 22.6754 12.9744C22.522 13.0653 22.353 13.1108 22.1683 13.1108ZM24.6644 13V11.6705L27.771 8.79403C28.0352 8.53835 28.2567 8.30824 28.4357 8.10369C28.6175 7.89915 28.7553 7.69886 28.8491 7.50284C28.9428 7.30398 28.9897 7.08949 28.9897 6.85938C28.9897 6.60369 28.9315 6.38352 28.815 6.19886C28.6985 6.01136 28.5394 5.8679 28.3377 5.76847C28.136 5.66619 27.9073 5.61506 27.6516 5.61506C27.3846 5.61506 27.1516 5.66903 26.9528 5.77699C26.7539 5.88494 26.6005 6.03977 26.4925 6.24148C26.3846 6.44318 26.3306 6.68324 26.3306 6.96165H24.5792C24.5792 6.39062 24.7085 5.89489 24.967 5.47443C25.2255 5.05398 25.5877 4.72869 26.0536 4.49858C26.5195 4.26847 27.0565 4.15341 27.6644 4.15341C28.2894 4.15341 28.8335 4.2642 29.2965 4.4858C29.7624 4.70455 30.1246 5.00852 30.3832 5.39773C30.6417 5.78693 30.771 6.23295 30.771 6.7358C30.771 7.06534 30.7056 7.39062 30.5749 7.71165C30.4471 8.03267 30.2184 8.3892 29.8888 8.78125C29.5593 9.17045 29.0948 9.63778 28.4954 10.1832L27.2212 11.4318V11.4915H30.886V13H24.6644Z"})}),Gj=e=>(0,xn.jsx)(qA,{width:"23px",height:"18px",fill:LP.gray[450],viewBox:"0 0 23 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.0261 13V4.27273H6.80451V5.79403H2.87127V7.87358H6.42099V9.39489H2.87127V13H1.0261ZM8.46005 13H6.48278L9.49556 4.27273H11.8734L14.8819 13H12.9047L10.7186 6.26705H10.6504L8.46005 13ZM8.33647 9.5696H13.0069V11.0099H8.33647V9.5696ZM15.8812 13V11.6705L18.9877 8.79403C19.252 8.53835 19.4735 8.30824 19.6525 8.10369C19.8343 7.89915 19.9721 7.69886 20.0659 7.50284C20.1596 7.30398 20.2065 7.08949 20.2065 6.85938C20.2065 6.60369 20.1483 6.38352 20.0318 6.19886C19.9153 6.01136 19.7562 5.8679 19.5545 5.76847C19.3528 5.66619 19.1241 5.61506 18.8684 5.61506C18.6014 5.61506 18.3684 5.66903 18.1696 5.77699C17.9707 5.88494 17.8173 6.03977 17.7093 6.24148C17.6014 6.44318 17.5474 6.68324 17.5474 6.96165H15.796C15.796 6.39062 15.9252 5.89489 16.1838 5.47443C16.4423 5.05398 16.8045 4.72869 17.2704 4.49858C17.7363 4.26847 18.2733 4.15341 18.8812 4.15341C19.5062 4.15341 20.0502 4.2642 20.5133 4.4858C20.9792 4.70455 21.3414 5.00852 21.6 5.39773C21.8585 5.78693 21.9877 6.23295 21.9877 6.7358C21.9877 7.06534 21.9224 7.39062 21.7917 7.71165C21.6639 8.03267 21.4352 8.3892 21.1056 8.78125C20.7761 9.17045 20.3116 9.63778 19.7122 10.1832L18.438 11.4318V11.4915H22.1028V13H15.8812Z"})}),Yj=e=>(0,xn.jsx)(qA,{width:"19px",height:"19px",fill:"none",stroke:LP.gray[400],viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15.7842 10.2916C15.8165 10.0323 15.8332 9.76807 15.8332 9.49996C15.8332 6.00216 12.9976 3.16663 9.49984 3.16663C7.52021 3.16663 5.75273 4.07488 4.59135 5.49742M3.2155 8.70829C3.18316 8.96764 3.1665 9.23185 3.1665 9.49996C3.1665 12.9978 6.00203 15.8333 9.49984 15.8333C11.3914 15.8333 13.0893 15.004 14.2498 13.6892M11.8748 13.4583H14.2498V13.6892M4.59135 3.16663V5.49742M4.59135 5.49742V5.54157L6.96635 5.54163M14.2498 15.8333V13.6892",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Zj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9 8.25V12.75M9 12.75L7.5 11.25M9 12.75L10.5 11.25M9.75 2.25H6.15C5.30992 2.25 4.88988 2.25 4.56901 2.41349C4.28677 2.5573 4.0573 2.78677 3.91349 3.06901C3.75 3.38988 3.75 3.80992 3.75 4.65V13.35C3.75 14.1901 3.75 14.6101 3.91349 14.931C4.0573 15.2132 4.28677 15.4427 4.56901 15.5865C4.88988 15.75 5.30992 15.75 6.15 15.75H11.85C12.6901 15.75 13.1101 15.75 13.431 15.5865C13.7132 15.4427 13.9427 15.2132 14.0865 14.931C14.25 14.6101 14.25 14.1901 14.25 13.35V6.75M9.75 2.25L14.25 6.75M9.75 2.25V5.55C9.75 5.97004 9.75 6.18006 9.83175 6.34049C9.90365 6.48161 10.0184 6.59635 10.1595 6.66825C10.3199 6.75 10.53 6.75 10.95 6.75H14.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Xj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M11.25 2.25V4.8C11.25 5.22004 11.25 5.43006 11.3317 5.59049C11.4037 5.73161 11.5184 5.84635 11.6595 5.91825C11.8199 6 12.03 6 12.45 6H15M7.5 6H4.5C3.67157 6 3 6.67157 3 7.5V14.25C3 15.0784 3.67157 15.75 4.5 15.75H9C9.82843 15.75 10.5 15.0784 10.5 14.25V12M12 2.25H9.9C9.05992 2.25 8.63988 2.25 8.31901 2.41349C8.03677 2.5573 7.8073 2.78677 7.66349 3.06901C7.5 3.38988 7.5 3.80992 7.5 4.65V9.6C7.5 10.4401 7.5 10.8601 7.66349 11.181C7.8073 11.4632 8.03677 11.6927 8.31901 11.8365C8.63988 12 9.05992 12 9.9 12H12.6C13.4401 12 13.8601 12 14.181 11.8365C14.4632 11.6927 14.6927 11.4632 14.8365 11.181C15 10.8601 15 10.4401 15 9.6V5.25L12 2.25Z",strokeLinejoin:"round",strokeWidth:"1.2"})}),Jj=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M2.95314 5.997C4.05824 3.77605 6.35091 2.25 9 2.25C12.4718 2.25 15.3314 4.87105 15.708 8.24231M2.2912 9.74998C2.66427 13.125 5.52558 15.75 9 15.75C11.6496 15.75 13.9427 14.2234 15.0475 12.0017M2.25 3V6.375H5.625M15.75 15.375V12H12.375M8.625 6.75L7.5 9H10.5L9.375 11.25",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Qj=e=>(0,xn.jsxs)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,xn.jsx)("path",{d:"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"}),(0,xn.jsx)("path",{d:"M12.9046 3.06005C12.6988 3 12.4659 3 12 3C11.5341 3 11.3012 3 11.0954 3.06005C10.7942 3.14794 10.5281 3.32808 10.3346 3.57511C10.2024 3.74388 10.1159 3.96016 9.94291 4.39272C9.69419 5.01452 9.00393 5.33471 8.36857 5.123L7.79779 4.93281C7.3929 4.79785 7.19045 4.73036 6.99196 4.7188C6.70039 4.70181 6.4102 4.77032 6.15701 4.9159C5.98465 5.01501 5.83376 5.16591 5.53197 5.4677C5.21122 5.78845 5.05084 5.94882 4.94896 6.13189C4.79927 6.40084 4.73595 6.70934 4.76759 7.01551C4.78912 7.2239 4.87335 7.43449 5.04182 7.85566C5.30565 8.51523 5.05184 9.26878 4.44272 9.63433L4.16521 9.80087C3.74031 10.0558 3.52786 10.1833 3.37354 10.3588C3.23698 10.5141 3.13401 10.696 3.07109 10.893C3 11.1156 3 11.3658 3 11.8663C3 12.4589 3 12.7551 3.09462 13.0088C3.17823 13.2329 3.31422 13.4337 3.49124 13.5946C3.69158 13.7766 3.96395 13.8856 4.50866 14.1035C5.06534 14.3261 5.35196 14.9441 5.16236 15.5129L4.94721 16.1584C4.79819 16.6054 4.72367 16.829 4.7169 17.0486C4.70875 17.3127 4.77049 17.5742 4.89587 17.8067C5.00015 18.0002 5.16678 18.1668 5.5 18.5C5.83323 18.8332 5.99985 18.9998 6.19325 19.1041C6.4258 19.2295 6.68733 19.2913 6.9514 19.2831C7.17102 19.2763 7.39456 19.2018 7.84164 19.0528L8.36862 18.8771C9.00393 18.6654 9.6942 18.9855 9.94291 19.6073C10.1159 20.0398 10.2024 20.2561 10.3346 20.4249C10.5281 20.6719 10.7942 20.8521 11.0954 20.94C11.3012 21 11.5341 21 12 21C12.4659 21 12.6988 21 12.9046 20.94C13.2058 20.8521 13.4719 20.6719 13.6654 20.4249C13.7976 20.2561 13.8841 20.0398 14.0571 19.6073C14.3058 18.9855 14.9961 18.6654 15.6313 18.8773L16.1579 19.0529C16.605 19.2019 16.8286 19.2764 17.0482 19.2832C17.3123 19.2913 17.5738 19.2296 17.8063 19.1042C17.9997 18.9999 18.1664 18.8333 18.4996 18.5001C18.8328 18.1669 18.9994 18.0002 19.1037 17.8068C19.2291 17.5743 19.2908 17.3127 19.2827 17.0487C19.2759 16.8291 19.2014 16.6055 19.0524 16.1584L18.8374 15.5134C18.6477 14.9444 18.9344 14.3262 19.4913 14.1035C20.036 13.8856 20.3084 13.7766 20.5088 13.5946C20.6858 13.4337 20.8218 13.2329 20.9054 13.0088C21 12.7551 21 12.4589 21 11.8663C21 11.3658 21 11.1156 20.9289 10.893C20.866 10.696 20.763 10.5141 20.6265 10.3588C20.4721 10.1833 20.2597 10.0558 19.8348 9.80087L19.5569 9.63416C18.9478 9.26867 18.6939 8.51514 18.9578 7.85558C19.1262 7.43443 19.2105 7.22383 19.232 7.01543C19.2636 6.70926 19.2003 6.40077 19.0506 6.13181C18.9487 5.94875 18.7884 5.78837 18.4676 5.46762C18.1658 5.16584 18.0149 5.01494 17.8426 4.91583C17.5894 4.77024 17.2992 4.70174 17.0076 4.71872C16.8091 4.73029 16.6067 4.79777 16.2018 4.93273L15.6314 5.12287C14.9961 5.33464 14.3058 5.0145 14.0571 4.39272C13.8841 3.96016 13.7976 3.74388 13.6654 3.57511C13.4719 3.32808 13.2058 3.14794 12.9046 3.06005Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})]}),eR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M18.3795 5.65166L14.1055 9.86303M9.89445 14.137L5.63994 18.3679M5.63408 5.63799L9.89445 9.86303M14.1056 14.137L18.364 18.364M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:LP.gray[450],strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),tR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M15 2.25H3M15 15.75H3M3.75 2.25C3.75 4.13267 4.65921 5.89944 6.1912 6.99371L11.8088 11.0063C13.3408 12.1006 14.25 13.8673 14.25 15.75M14.25 2.25C14.25 4.13267 13.3408 5.89944 11.8088 6.99371L6.1912 11.0063C4.65921 12.1006 3.75 13.8673 3.75 15.75",stroke:"#FB4F57",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),rR=e=>(0,xn.jsx)(yR,{css:{rotate:"180deg"},...e}),nR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none","data-testid":"key-icon",strokeWidth:"1.2",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9.24092 8.01389L3 14.25L4.5 15.75M5.25 12L6.75 13.5M15 5.625C15 7.48896 13.489 9 11.625 9C9.76104 9 8.25 7.48896 8.25 5.625C8.25 3.76104 9.76104 2.25 11.625 2.25C13.489 2.25 15 3.76104 15 5.625Z",strokeLinecap:"round",strokeLinejoin:"round"})});var iR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},oR=i.createContext&&i.createContext(iR),aR=function(){return aR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(0,xn.jsx)(qA,{as:dR,width:"18px",height:"18px","data-testid":"ledger-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e}),fR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M9.16586 17.6508C8.9261 17.8747 8.74055 18.0245 8.55093 18.134C7.62273 18.6699 6.47914 18.6699 5.55093 18.134C5.20889 17.9365 4.88009 17.6077 4.22251 16.9501C3.56492 16.2925 3.23612 15.9637 3.03864 15.6217C2.50274 14.6935 2.50274 13.5499 3.03864 12.6217C3.23612 12.2797 3.56492 11.9509 4.2225 11.2933L7.05093 8.46484C7.70852 7.80725 8.03732 7.47846 8.37936 7.28098C9.30756 6.74508 10.4512 6.74508 11.3794 7.28098C11.7214 7.47846 12.0502 7.80725 12.7078 8.46484C13.3654 9.12243 13.6942 9.45123 13.8916 9.79327C14.4275 10.7215 14.4275 11.8651 13.8916 12.7933C13.7822 12.9829 13.6323 13.1684 13.4085 13.4082M10.5929 10.5926C10.369 10.8323 10.2192 11.0179 10.1097 11.2075C9.57381 12.1357 9.57381 13.2793 10.1097 14.2075C10.3072 14.5495 10.636 14.8783 11.2936 15.5359C11.9512 16.1935 12.28 16.5223 12.622 16.7198C13.5502 17.2557 14.6938 17.2557 15.622 16.7198C15.964 16.5223 16.2928 16.1935 16.9504 15.5359L19.7789 12.7075C20.4364 12.0499 20.7652 11.7211 20.9627 11.3791C21.4986 10.4509 21.4986 9.30726 20.9627 8.37906C20.7652 8.03701 20.4364 7.70822 19.7789 7.05063C19.1213 6.39304 18.7925 6.06425 18.4504 5.86677C17.5222 5.33087 16.3786 5.33087 15.4504 5.86677C15.2608 5.97625 15.0753 6.12608 14.8355 6.34992",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),pR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12 14.5V16.5M7 10.0288C7.47142 10 8.05259 10 8.8 10H15.2C15.9474 10 16.5286 10 17 10.0288M7 10.0288C6.41168 10.0647 5.99429 10.1455 5.63803 10.327C5.07354 10.6146 4.6146 11.0735 4.32698 11.638C4 12.2798 4 13.1198 4 14.8V16.2C4 17.8802 4 18.7202 4.32698 19.362C4.6146 19.9265 5.07354 20.3854 5.63803 20.673C6.27976 21 7.11984 21 8.8 21H15.2C16.8802 21 17.7202 21 18.362 20.673C18.9265 20.3854 19.3854 19.9265 19.673 19.362C20 18.7202 20 17.8802 20 16.2V14.8C20 13.1198 20 12.2798 19.673 11.638C19.3854 11.0735 18.9265 10.6146 18.362 10.327C18.0057 10.1455 17.5883 10.0647 17 10.0288M7 10.0288V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10.0288",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),mR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:"black",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12.182 5.81859C13.9393 7.57595 13.9393 10.4252 12.182 12.1825M5.81802 12.1825C4.06066 10.4252 4.06066 7.57592 5.81802 5.81856M3.6967 14.3039C0.767767 11.3749 0.767767 6.6262 3.6967 3.69727M14.3033 3.6973C17.2322 6.62623 17.2322 11.375 14.3033 14.3039M10.5 9.00057C10.5 9.82899 9.82843 10.5006 9 10.5006C8.17157 10.5006 7.5 9.82899 7.5 9.00057C7.5 8.17214 8.17157 7.50057 9 7.50057C9.82843 7.50057 10.5 8.17214 10.5 9.00057Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),gR=({fishColor:e,...t})=>(0,xn.jsxs)(qA,{width:"38px",height:"38px",fill:"none",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",...t,children:[(0,xn.jsx)("path",{d:"M34.9985 26.2751C34.6599 26.8629 34.2436 27.4106 33.7512 27.9032C32.2815 29.3727 30.3277 30.1819 28.2496 30.1819H24.8477V34.9996H26.8032H28.2497C30.0524 34.9996 31.7472 34.2976 33.022 33.0229C34.2967 31.7481 34.9986 30.0533 34.9985 28.2507V26.2751Z",fill:"black"}),(0,xn.jsx)("path",{d:"M34.9989 20.9441C34.6603 21.5318 34.2439 22.0796 33.7514 22.572C32.2819 24.0416 30.328 24.8509 28.2499 24.8509H18.9983C17.8104 24.8511 16.8477 25.814 16.8477 27.0019C16.8477 28.1898 17.8104 29.1528 18.9983 29.153H28.25C30.0526 29.153 31.7474 28.4511 33.0222 27.1763C34.2965 25.902 34.9986 24.2076 34.9989 22.4054V20.9441ZM18.9988 27.8361C18.5381 27.8361 18.1645 27.4626 18.1645 27.0018C18.1645 26.5412 18.5381 26.1675 18.9988 26.1675C19.4596 26.1675 19.8331 26.5412 19.8331 27.0018C19.8331 27.4626 19.4596 27.8361 18.9988 27.8361Z",fill:"black"}),(0,xn.jsx)("path",{d:"M35 9.74895C35 6.02751 31.9724 3 28.2509 3H9.74908C6.02761 3 3 6.02751 3 9.74895V28.2511C3 31.9725 6.02761 35 9.74899 35H23.8176V30.1824H18.9995C17.2418 30.1824 15.8171 28.7576 15.8171 27.0001C15.8171 25.2426 17.2418 23.8179 18.9995 23.8179H23.8176V18.9998H9.74899C6.5911 18.9998 4.03113 16.4402 4.03113 13.2824V9.74905C4.03113 6.59127 6.5911 4.03131 9.74899 4.03131H28.2508C31.4087 4.03131 33.9686 6.59127 33.9686 9.74905V13.2824C33.9686 16.4403 31.4089 19.0001 28.251 19.0001L24.8491 18.9998V23.8179H28.2511C30.0539 23.8179 31.7487 23.1159 33.0233 21.8411C34.2977 20.5668 34.9997 18.8725 35 17.0703V9.74895Z",fill:"black"}),(0,xn.jsx)("path",{d:"M28.251 4.03174C31.4088 4.03174 33.9687 6.59167 33.9687 9.74952V13.2828C33.9687 16.4406 31.4089 19.0005 28.2511 19.0005L9.74908 19.0003C6.59124 19.0003 4.03125 16.4406 4.03125 13.2829V9.74954C4.03125 6.59167 6.5912 4.03174 9.74908 4.03174H28.251Z",fill:"white"}),(0,xn.jsx)("path",{d:"M28.2511 6.73267C29.611 6.73267 30.7641 7.6364 31.1394 8.87525C31.1926 9.05118 31.0527 9.22558 30.869 9.21814C28.2867 9.11348 25.877 8.32896 23.8154 7.038C23.6751 6.95014 23.739 6.73267 23.9045 6.73267H28.2511Z",fill:e}),(0,xn.jsx)("path",{d:"M21.9973 7.02488C24.4283 8.9081 27.4326 10.0842 30.7 10.2428C31.0172 10.2581 31.2679 10.5166 31.2679 10.8342V12.8702C31.2674 12.9124 31.2661 13.0446 31.2638 13.1857C31.2603 13.4148 31.069 13.5949 30.8401 13.5876C25.3913 13.4117 20.5215 10.9067 17.1937 7.03888C17.0905 6.91878 17.175 6.73267 17.3334 6.73267H21.1443C21.4533 6.73267 21.753 6.83569 21.9973 7.02488Z",fill:e}),(0,xn.jsx)("path",{d:"M15.9653 7.17305C19.4649 11.5395 24.7681 14.4013 30.735 14.6156C30.8376 14.6193 30.9004 14.7309 30.8481 14.8191C30.3219 15.7056 29.3544 16.3012 28.2505 16.3012H23.1255C22.9317 16.3012 22.7392 16.2646 22.5603 16.1899C18.0848 14.3242 14.3146 11.0926 11.7745 7.01866C11.6968 6.89417 11.7878 6.73267 11.9345 6.73267H15.0503C15.4065 6.73267 15.7426 6.89513 15.9653 7.17305Z",fill:e}),(0,xn.jsx)("path",{d:"M9.75058 6.73267H10.1145C10.294 6.73267 10.4589 6.82889 10.5496 6.98379C12.776 10.7844 16.0081 13.9276 19.8791 16.0439C20.0039 16.1122 19.9556 16.3012 19.8134 16.3012H15.1194C14.5651 16.3012 14.0261 16.1087 13.6043 15.7491C11.1433 13.6507 9.05479 11.1267 7.45371 8.29236C7.34983 8.10846 7.3762 7.87733 7.51835 7.72112C8.07107 7.11383 8.86658 6.73267 9.75058 6.73267Z",fill:e}),(0,xn.jsx)("path",{d:"M12.3071 15.9829C12.4313 16.0951 12.3514 16.3013 12.184 16.3013H9.71437C8.06547 16.2829 6.73047 14.9363 6.73047 13.2836V9.7504L6.73065 9.54576C6.73077 9.42446 6.89048 9.37962 6.95305 9.48354C8.41152 11.9061 10.2194 14.096 12.3071 15.9829Z",fill:e})]}),vR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12 8H12.01M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),yR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],"data-testid":"outgoing-arrow-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M5.25 12.75L12.75 5.25M12.75 5.25H6M12.75 5.25V12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),bR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M11.3348 4.66483L13.2208 6.55082M3 15L3.03164 14.7785C3.1436 13.9948 3.19958 13.6029 3.32692 13.2371C3.43992 12.9124 3.59428 12.6037 3.78619 12.3185C4.00247 11.9971 4.28237 11.7172 4.84218 11.1574L12.609 3.3906C13.1298 2.8698 13.9742 2.8698 14.495 3.3906C15.0158 3.9114 15.0158 4.75578 14.495 5.27658L6.58565 13.1859C6.07779 13.6938 5.82386 13.9477 5.53462 14.1497C5.27789 14.3289 5.001 14.4774 4.70965 14.5921C4.3814 14.7213 4.02937 14.7923 3.32535 14.9344L3 15Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),wR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[300],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4 12H20M12 4V20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),xR=e=>(0,xn.jsx)(qA,{width:"18",height:"18",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3 9C3 12.3137 5.68629 15 9 15C12.3137 15 15 12.3137 15 9C15 5.68629 12.3137 3 9 3C7.20796 3 5.59942 3.78563 4.5 5.03126C4.43696 5.10268 4.3756 5.17562 4.31597 5.25M9 6V9L10.875 10.875M4.31543 3.00293V5.25293H6.56543",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),_R=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],"data-testid":"rotate-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M12.5 18.5C17.1944 18.5 21 14.6944 21 10C21 5.30558 17.1944 1.5 12.5 1.5C7.80558 1.5 4 5.30558 4 10C4 11.5433 4.41128 12.9905 5.13022 14.238M1.5 13L5.13022 14.238M6.82531 10.3832L5.47107 14.3542L5.13022 14.238",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),SR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M16 3L8 21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),kR=e=>(0,xn.jsx)(qA,{width:"32px",height:"32px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M16 7.33333C16 9.17428 14.5076 10.6667 12.6667 10.6667C10.8257 10.6667 9.33333 9.17428 9.33333 7.33333M16 7.33333C16 5.49238 14.5076 4 12.6667 4C10.8257 4 9.33333 5.49238 9.33333 7.33333M16 7.33333H28M9.33333 7.33333H4M25.3333 16C25.3333 17.8409 23.8409 19.3333 22 19.3333C20.1591 19.3333 18.6667 17.8409 18.6667 16M25.3333 16C25.3333 14.1591 23.8409 12.6667 22 12.6667C20.1591 12.6667 18.6667 14.1591 18.6667 16M25.3333 16H28M18.6667 16H4M13.3333 24.6667C13.3333 26.5076 11.8409 28 10 28C8.15905 28 6.66667 26.5076 6.66667 24.6667M13.3333 24.6667C13.3333 22.8257 11.8409 21.3333 10 21.3333C8.15905 21.3333 6.66667 22.8257 6.66667 24.6667M13.3333 24.6667H28M6.66667 24.6667H4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),ER=e=>(0,xn.jsx)(qA,{width:"28px",height:"28px",fill:"none",stroke:"transparent","data-testid":"social-icon",viewBox:"0 0 28 28",...e,children:(0,xn.jsx)("g",{id:"Group 40429",children:(0,xn.jsx)("g",{id:"Group 40428",children:(0,xn.jsxs)("g",{id:"Group 39769",children:[(0,xn.jsx)("path",{d:"M27.4398 14.3177C27.4398 13.325 27.3507 12.3705 27.1852 11.4541H14V16.8695H21.5344C21.2099 18.6194 20.2235 20.1021 18.7408 21.0949V24.6075H23.2653C25.9125 22.1703 27.4398 18.5813 27.4398 14.3177Z",fill:"#4285F4",clipRule:"evenodd",fillRule:"evenodd",id:"Shape"}),(0,xn.jsx)("path",{d:"M14.0009 28C17.7809 28 20.9499 26.7464 23.2663 24.6082L18.7418 21.0955C17.4882 21.9355 15.8846 22.4319 14.0009 22.4319C10.3546 22.4319 7.26832 19.9692 6.16743 16.6602H1.49023V20.2874C3.79383 24.8628 8.5283 28 14.0009 28Z",fill:"#34A853",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_2"}),(0,xn.jsx)("path",{d:"M6.16627 16.66C5.88627 15.82 5.72718 14.9228 5.72718 14.0001C5.72718 13.0774 5.88627 12.1801 6.16627 11.3401V7.71289H1.48907C0.5409 9.60286 0 11.741 0 14.0001C0 16.2591 0.5409 18.3973 1.48907 20.2872L6.16627 16.66Z",fill:"#FBBC05",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_3"}),(0,xn.jsx)("path",{d:"M14.0009 5.56809C16.0564 5.56809 17.9018 6.27445 19.3527 7.6617L23.3681 3.64631C20.9436 1.38725 17.7745 0 14.0009 0C8.5283 0 3.79383 3.13722 1.49023 7.7126L6.16743 11.3398C7.26832 8.03078 10.3546 5.56809 14.0009 5.56809Z",fill:"#EA4335",clipRule:"evenodd",fillRule:"evenodd",id:"Shape_4"})]})})})}),AR=e=>(0,xn.jsxs)(qA,{width:"30px",height:"30px",fill:"none","data-testid":"tez-icon",viewBox:"0 0 30 30",...e,children:[(0,xn.jsx)("rect",{width:"30",height:"30",fill:"white",rx:"4"}),(0,xn.jsx)("rect",{width:"30",height:"30",fill:"url(#pattern0)",rx:"4"}),(0,xn.jsxs)("defs",{children:[(0,xn.jsx)("pattern",{width:"1",height:"1",id:"pattern0",patternContentUnits:"objectBoundingBox",children:(0,xn.jsx)("use",{transform:"translate(0.1753 0.101557) scale(0.00532296)",xlinkHref:"#image0_2912_38337"})}),(0,xn.jsx)("image",{width:"122",height:"150",id:"image0_2912_38337",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHoAAACWCAYAAAAR35wdAAAMP2lDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkEBooUsJvQkiNYCUEFrovdkISYBQYgwEFXtZVHDtogI2dFVEwQqIBUUUC4ti74sFFWVdLNiVNymg677yvfm+ufPff87858y5M/feAUDtBEckykPVAcgXForjQgLoKalpdNJTQAS6gAyUgTOHWyBixsREAFiG2r+Xd9cBIm2vOEi1/tn/X4sGj1/ABQCJgTiDV8DNh/ggAHgVVyQuBIAo5c2nFIqkGFagJYYBQrxIirPkuEqKM+R4r8wmIY4FcRsASiocjjgLANVLkKcXcbOghmo/xE5CnkAIgBodYt/8/Ek8iNMhtoE2Ioil+oyMH3Sy/qaZMazJ4WQNY/lcZEUpUFAgyuNM+z/T8b9Lfp5kyIcVrCrZ4tA46Zxh3m7mTgqXYhWI+4QZUdEQa0L8QcCT2UOMUrIloYlye9SQW8CCOQM6EDvxOIHhEBtCHCzMi4pQ8BmZgmA2xHCFoFMFhewEi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053S12GWaF6bwYh3QQgcAdq+CLk+0zGd/V6ArCgkaleejGhI7J/dVTQAZfikaYPer0vvprAQ6jWOpUGRt8gsa4nlmTR0fHSJe0aMAZNENWgGghysnxukpgGzsV3WsBFqc+4Fdk1fLGoklqR0NH+2ZL9l0vfiiC4WdksKLb/HClO5YVJDYThcp0fZBhExn74WlQQ+jGFdReM7mJN1ZrNPse1pMrGjBHPo1KIWugLwqiyW6WaK4fi+TpZM7mtl/ugMNPFgN9KRJvDJdRi+g1fo1aV05fQ7Dt2HN2cK2ZvaMNH0Igsum8W/hmIkrEdVMEQtPTmdprGmQhSpWAy0EFMt7IeRKSHqEeFe6doIuNsU/Bfq1qK/WtjSyd1R44cSCcViBejGqFvHzSd17slV4+WngyY2ZcrSwi7Rh33qghTHEZECS0Z9RLJo+u/N9sF8PI4ti8kMAtx4AYjnWzgvG2R2lwgG4749vByJULAEye3H6CKN4kzAg8iezjPO5lQTQQmTxI544ouI3ALsuX4XSfUMGezTDaEqu8VlkNUoGaM8OWOt9LrxuId6V+6cer7juKCVexwjg7Pb57KGoZCg5oIVhRCOts4xmQvjrUKSOiMpYuukA4Ocx534fTjxYpMtLlr4kgfaU7Pp5g+vhHT+AIuqDEx7D4tzXA+AW/DW1N7K1xUmiMNeSBtpTT6w1Sw3H6cCM6vF3lhce1x2gbsF+sHbxMwkYltWdpDGixoAA2m+JCdP4wdhwNxaAnwBjn4678mS9n2+hZzSsVsGYTwPclbaA65d5wAHtV048i58ArNyB80UTdCReD0Wr/QiAcggUPwqZoN/6HfG2gmYD/jaCbgM8dSMyj3jfANqP8P4yqo230aj6J8KsvgY80IWsf0kd36M8QRXo5lSk8Ic+bQV60jtM/ARRobTdd2cBZwFnAWcBZwFnAWeB/wO9yrSXP8OnPQAAAABJRU5ErkJggg=="})]})]});var PR=v((function(e,t){const{htmlWidth:r,htmlHeight:n,alt:i,...o}=e;return(0,xn.jsx)("img",{width:r,height:n,ref:t,alt:i,...o})}));PR.displayName="NativeImage";function OR(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var TR=v((function(e,t){const{fallbackSrc:r,fallback:n,src:o,srcSet:a,align:s,fit:c,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:h="beforeLoadOrError",referrerPolicy:f,...p}=e,m=null!=l||u||!(void 0!==r||void 0!==n),g=function(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:a,crossOrigin:s,sizes:c,ignoreFallback:l}=e,[u,d]=(0,i.useState)("pending");(0,i.useEffect)((()=>{d(r?"loading":"pending")}),[r]);const h=(0,i.useRef)(),f=(0,i.useCallback)((()=>{if(!r)return;p();const e=new Image;e.src=r,s&&(e.crossOrigin=s),n&&(e.srcset=n),c&&(e.sizes=c),t&&(e.loading=t),e.onload=e=>{p(),d("loaded"),null==o||o(e)},e.onerror=e=>{p(),d("failed"),null==a||a(e)},h.current=e}),[r,s,n,c,o,a,t]),p=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return Oh((()=>{if(!l)return"loading"===u&&f(),()=>{p()}}),[u,f,l]),l?"loaded":u}({...e,crossOrigin:d,ignoreFallback:m}),v=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,h),y={ref:t,objectFit:c,objectPosition:s,...m?p:OR(p,["onError","onLoad"])};return v?n||(0,xn.jsx)(wn.img,{as:PR,className:"chakra-image__placeholder",src:r,...y}):(0,xn.jsx)(wn.img,{as:PR,src:o,srcSet:a,crossOrigin:d,loading:l,referrerPolicy:f,className:"chakra-image",...y})}));TR.displayName="Image";const CR=({contract:e,...t})=>{const r=`https://services.tzkt.io/v1/avatars/${e}`;return(0,xn.jsx)(TR,{fallbackSrc:"/static/media/coin-front.svg",src:r,...t})},jR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3 4.5H15M12 4.5L11.797 3.89105C11.6003 3.30094 11.502 3.00588 11.3195 2.78774C11.1584 2.5951 10.9516 2.44599 10.7179 2.35408C10.4532 2.25 10.1422 2.25 9.52018 2.25H8.47982C7.85779 2.25 7.54677 2.25 7.28213 2.35408C7.04844 2.44599 6.84156 2.5951 6.68047 2.78774C6.49804 3.00588 6.39969 3.30094 6.20298 3.89105L6 4.5M13.5 4.5V12.15C13.5 13.4101 13.5 14.0402 13.2548 14.5215C13.039 14.9448 12.6948 15.289 12.2715 15.5048C11.7902 15.75 11.1601 15.75 9.9 15.75H8.1C6.83988 15.75 6.20982 15.75 5.72852 15.5048C5.30516 15.289 4.96095 14.9448 4.74524 14.5215C4.5 14.0402 4.5 13.4101 4.5 12.15V4.5M10.5 7.5V12.75M7.5 7.5V12.75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),RR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none","data-testid":"unknown-contact-icon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M3.16602 15.5625C3.16602 12.7435 5.45123 10.4583 8.27018 10.4583C8.51775 10.4583 8.7612 10.476 8.99935 10.51M13.3722 13.375C14.1014 12.6458 14.8305 12.3575 14.8305 11.5521C14.8305 10.7467 14.1776 10.0938 13.3722 10.0938C12.6927 10.0938 12.1217 10.5585 11.9598 11.1875M13.3722 15.5625H13.3795M11.1868 5.35417C11.1868 6.965 9.88101 8.27083 8.27018 8.27083C6.65935 8.27083 5.35352 6.965 5.35352 5.35417C5.35352 3.74334 6.65935 2.4375 8.27018 2.4375C9.88101 2.4375 11.1868 3.74334 11.1868 5.35417Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),IR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M20.5 11L18.7396 7.60473C18.253 6.65855 18.0097 6.18545 17.6514 5.84012C17.3346 5.5347 16.9544 5.30272 16.5379 5.16065C16.067 5 15.535 5 14.471 5H9.52901C8.46503 5 7.93304 5 7.46209 5.16065C7.04558 5.30272 6.66542 5.5347 6.34859 5.84012C5.99034 6.18545 5.74703 6.65855 5.26042 7.60473L3.5 11M20.5 11C20.6981 11.3853 20.7658 11.5446 20.8357 11.747C20.8977 11.9267 20.9426 12.1119 20.9696 12.3002C21 12.5121 21 12.7287 21 13.162V14.2C21 15.8802 21 16.7202 20.673 17.362C20.3854 17.9265 19.9265 18.3854 19.362 18.673C18.7202 19 17.8802 19 16.2 19H7.8C6.11984 19 5.27976 19 4.63803 18.673C4.07354 18.3854 3.6146 17.9265 3.32698 17.362C3 16.7202 3 15.8802 3 14.2V13.162C3 12.7287 3 12.5121 3.03041 12.3002C3.05741 12.1119 3.10225 11.9267 3.16432 11.747C3.23421 11.5446 3.30186 11.3853 3.5 11M20.5 11H3.5M15 15H17",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),MR=()=>(0,xn.jsxs)(_n,{position:"relative",alignItems:"center",justifyContent:"center","data-testid":"verified-icon",children:[(0,xn.jsx)(LR,{}),(0,xn.jsx)(_n,{position:"absolute",alignItems:"center",justifyContent:"center",children:(0,xn.jsx)(NR,{})})]}),LR=e=>(0,xn.jsx)(qA,{width:"14px",height:"14px",fill:LP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M6.51019 0.479749C6.78233 0.213196 7.21767 0.213195 7.48981 0.479749L8.86158 1.82333C8.99061 1.94972 9.16351 2.02134 9.34412 2.02321L11.2642 2.04314C11.6451 2.04709 11.9529 2.35492 11.9569 2.73584L11.9768 4.65588C11.9787 4.83649 12.0503 5.00939 12.1767 5.13842L13.5203 6.51019C13.7868 6.78233 13.7868 7.21767 13.5203 7.48981L12.1767 8.86158C12.0503 8.99061 11.9787 9.16351 11.9768 9.34412L11.9569 11.2642C11.9529 11.6451 11.6451 11.9529 11.2642 11.9569L9.34412 11.9768C9.16351 11.9787 8.99061 12.0503 8.86158 12.1767L7.48981 13.5203C7.21767 13.7868 6.78233 13.7868 6.51019 13.5203L5.13842 12.1767C5.00939 12.0503 4.83649 11.9787 4.65588 11.9768L2.73584 11.9569C2.35492 11.9529 2.04709 11.6451 2.04314 11.2642L2.02321 9.34412C2.02134 9.16351 1.94972 8.99061 1.82333 8.86158L0.479749 7.48981C0.213196 7.21767 0.213195 6.78233 0.479749 6.51019L1.82333 5.13842C1.94972 5.00939 2.02134 4.83649 2.02321 4.65588L2.04314 2.73584C2.04709 2.35492 2.35492 2.04709 2.73584 2.04314L4.65588 2.02321C4.83649 2.02134 5.00939 1.94972 5.13842 1.82333L6.51019 0.479749Z",strokeLinecap:"square",strokeLinejoin:"round"})}),NR=e=>(0,xn.jsx)(qA,{width:"7px",height:"5px",fill:"none",stroke:"white",viewBox:"0 0 7 5",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.66699 2.19314L3.0281 3.55425L5.75033 0.832031",strokeLinecap:"square",strokeLinejoin:"round"})}),DR=e=>(0,xn.jsx)(qA,{width:"24px",height:"24px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M10 16V14.0003M10 14.0003V12M10 14.0003L12 14.0005M10 14.0003L8 14M21 12V11.2C21 10.0799 21 9.51984 20.782 9.09202C20.5903 8.7157 20.2843 8.40973 19.908 8.21799C19.4802 8 18.9201 8 17.8 8H3M21 12V16M21 12H19C17.8954 12 17 12.8954 17 14C17 15.1046 17.8954 16 19 16H21M21 16V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8V8M18 8V7.2C18 6.0799 18 5.51984 17.782 5.09202C17.5903 4.71569 17.2843 4.40973 16.908 4.21799C16.4802 4 15.9201 4 14.8 4H6.2C5.07989 4 4.51984 4 4.09202 4.21799C3.71569 4.40973 3.40973 4.71569 3.21799 5.09202C3 5.51984 3 6.0799 3 7.2V8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),zR=e=>(0,xn.jsx)(qA,{width:"36px",height:"32px",fill:"none",stroke:LP.orangeL,viewBox:"0 0 36 32",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M18.0004 24.3332H18.0171M18.0004 12.6665V19.3332M8.68719 30.9999H27.3136C30.2831 30.9999 31.7678 30.9999 32.6386 30.3754C33.3985 29.8305 33.8946 28.9915 34.0058 28.0631C34.1333 26.9991 33.4178 25.6982 31.9868 23.0963L22.6736 6.16318C21.1499 3.39292 20.3881 2.00779 19.3814 1.54954C18.5041 1.15015 17.4968 1.15015 16.6194 1.54954C15.6127 2.00779 14.8509 3.39292 13.3273 6.16317L4.01404 23.0963C2.58301 25.6982 1.8675 26.9991 1.99498 28.0631C2.10622 28.9915 2.6023 29.8305 3.36219 30.3754C4.23304 30.9999 5.71776 30.9999 8.68719 30.9999Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),BR=e=>(0,xn.jsx)(qA,{width:"18px",height:"18px",fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5","data-testid":"xmark-icon-path",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),FR=Ei,UR=gi,$R=()=>{const{html:e,seen:t}=UR((e=>e.announcement)),r=FR();return(0,i.useEffect)((()=>{const e=()=>{xj.get("https://storage.googleapis.com/umami-artifacts/announcement.html").then((e=>{r(Qa.actions.setCurrent(e.data))})).catch((e=>{}))};e();const t=setInterval(e,36e5);return()=>clearInterval(t)}),[r]),t||!e?null:(0,xn.jsx)(JA,{className:"announcement-banner",color:"black",background:LP.orangeL,"data-testid":"announcement",paddingX:"30px",children:(0,xn.jsxs)(_n,{justifyContent:"space-between",width:"100%",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(mR,{marginRight:"4px"}),(0,xn.jsx)(tP,{fontSize:"14px",dangerouslySetInnerHTML:{__html:e}})]}),(0,xn.jsx)(nP,{"data-testid":"close",onClick:()=>r(Qa.actions.setSeen())})]})})};function HR(e,t){const r=(0,i.useId)();return(0,i.useMemo)((()=>e||[t,r].filter(Boolean).join("-")),[e,t,r])}function VR(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function qR(e){var t;return VR(e)&&null!=(t=e.ownerDocument)?t:document}function KR(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var WR=KR()?i.useLayoutEffect:i.useEffect;function GR(e,t=[]){const r=(0,i.useRef)(e);return WR((()=>{r.current=e})),(0,i.useCallback)(((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)}),t)}function YR(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=GR(r),s=GR(t),[c,l]=(0,i.useState)(e.defaultIsOpen||!1),[u,d]=function(e,t){const r=void 0!==e;return[r,r&&"undefined"!==typeof e?e:t]}(n,c),h=HR(o,"disclosure"),f=(0,i.useCallback)((()=>{u||l(!1),null==s||s()}),[u,s]),p=(0,i.useCallback)((()=>{u||l(!0),null==a||a()}),[u,a]),m=(0,i.useCallback)((()=>{(d?f:p)()}),[d,p,f]);return{isOpen:!!d,onOpen:p,onClose:f,onToggle:m,isControlled:u,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":h,onClick:St(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:h})}}var ZR=Object.defineProperty,XR=(e,t,r)=>(((e,t,r)=>{t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),JR=new class{constructor(){XR(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function QR(e,t){const[r,n]=(0,i.useState)(0);return(0,i.useEffect)((()=>{const r=e.current;if(r){if(t){const e=JR.add(r);n(e)}return()=>{JR.remove(r),n(0)}}}),[t,e]),r}var eI=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tI=new WeakMap,rI=new WeakMap,nI={},iI=0,oI=function(e){return e&&(e.host||oI(e.parentNode))},aI=function(e,t,r,n){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=oI(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);nI[r]||(nI[r]=new WeakMap);var o=nI[r],a=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(n),i=null!==t&&"false"!==t,c=(tI.get(e)||0)+1,l=(o.get(e)||0)+1;tI.set(e,c),o.set(e,l),a.push(e),1===c&&i&&rI.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}}))};return u(t),s.clear(),iI++,function(){a.forEach((function(e){var t=tI.get(e)-1,i=o.get(e)-1;tI.set(e,t),o.set(e,i),t||(rI.has(e)||e.removeAttribute(n),rI.delete(e)),i||e.removeAttribute(r)})),--iI||(tI=new WeakMap,tI=new WeakMap,rI=new WeakMap,nI={})}},sI=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||eI(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),aI(n,i,r,"aria-hidden")):function(){return null}};function cI(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:c,onEsc:l}=e,u=(0,i.useRef)(null),d=(0,i.useRef)(null),[h,f,p]=function(e,...t){const r=(0,i.useId)(),n=e||r;return(0,i.useMemo)((()=>t.map((e=>`${e}-${n}`))),[n,t])}(n,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){const r=e.current;(0,i.useEffect)((()=>{if(e.current&&t)return sI(e.current)}),[t,e,r])}(u,t&&s);const m=QR(u,t),g=(0,i.useRef)(null),v=(0,i.useCallback)((e=>{g.current=e.target}),[]),y=(0,i.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==r||r()),null==l||l())}),[a,r,l]),[b,w]=(0,i.useState)(!1),[x,_]=(0,i.useState)(!1),S=(0,i.useCallback)(((e={},t=null)=>({role:"dialog",...e,ref:Kn(t,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?f:void 0,"aria-describedby":x?p:void 0,onClick:E(e.onClick,(e=>e.stopPropagation()))})),[p,x,h,f,b]),k=(0,i.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&JR.isTopModal(u.current)&&(o&&(null==r||r()),null==c||c())}),[r,o,c]),A=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(t,d),onClick:E(e.onClick,k),onKeyDown:E(e.onKeyDown,y),onMouseDown:E(e.onMouseDown,v)})),[y,v,k]);return{isOpen:t,onClose:r,headerId:f,bodyId:p,setBodyMounted:_,setHeaderMounted:w,dialogRef:u,overlayRef:d,getDialogProps:S,getDialogContainerProps:A,index:m}}var[lI,uI]=Nn({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[dI,hI]=Nn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),fI=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:n,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f,onCloseComplete:p}=t,m=Mn("Modal",t),g={...cI(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:h,lockFocusAcrossFrames:f};return(0,xn.jsx)(dI,{value:g,children:(0,xn.jsx)(lI,{value:m,children:(0,xn.jsx)(pP,{onExitComplete:p,children:g.isOpen&&(0,xn.jsx)(xP,{...r,children:n})})})})};fI.displayName="Modal";var pI={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},mI={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},gI={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},vI={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},yI={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function bI(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return gI;case"left":return mI;case"bottom":return yI;case"top":return vI}}var wI={enter:{duration:.2,ease:pI.easeOut},exit:{duration:.1,ease:pI.easeIn}},xI=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.enter}),_I=(e,t)=>({...e,delay:"number"===typeof t?t:null==t?void 0:t.exit}),SI={enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:xI(wI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:_I(wI.exit,r),transitionEnd:null==t?void 0:t.exit}}},kI={initial:"exit",animate:"enter",exit:"exit",variants:SI},EI=(0,i.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,className:i,transition:o,transitionEnd:a,delay:s,...c}=e,l=n||r?"enter":"exit",u=!r||n&&r,d={transition:o,transitionEnd:a,delay:s};return(0,xn.jsx)(pP,{custom:d,children:u&&(0,xn.jsx)(FA.div,{ref:t,className:y("chakra-fade",i),custom:d,...kI,animate:l,...c})})}));EI.displayName="Fade";var AI=wn(FA.div),PI=v(((e,t)=>{const{className:r,transition:n,motionProps:i,...o}=e,a=y("chakra-modal__overlay",r),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...uI().overlay},{motionPreset:c}=hI(),l=i||("none"===c?{}:kI);return(0,xn.jsx)(AI,{...l,__css:s,ref:t,className:a,...o})}));PI.displayName="ModalOverlay";var OI=function(e,t){return OI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},OI(e,t)};function TI(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}OI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var CI=function(){return CI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function LI(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function NI(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof DI?Promise.resolve(e.value.v).then(c,l):u(o[0][2],e)}(i[e](t))}catch(Mde){u(o[0][3],Mde)}}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function BI(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=MI(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}Object.create;"function"===typeof SuppressedError&&SuppressedError;var FI="right-scroll-bar-position",UI="width-before-scroll-bar";function $I(e,t){return function(e,t){var r=(0,i.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=t,r.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function HI(e){return e}function VI(e,t){void 0===t&&(t=HI);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}};return i}function qI(e,t){return void 0===t&&(t=HI),VI(e,t)}function KI(e){void 0===e&&(e={});var t=VI(null);return t.options=CI({async:!0,ssr:!1},e),t}var WI=KI(),GI=function(){},YI=i.forwardRef((function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:GI,onWheelCapture:GI,onTouchMoveCapture:GI}),o=n[0],a=n[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=jI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,_=$I([r,t]),S=CI(CI({},w),o);return i.createElement(i.Fragment,null,d&&i.createElement(x,{sideCar:WI,removeScrollBar:u,shards:h,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:b}),s?i.cloneElement(i.Children.only(c),CI(CI({},S),{ref:_})):i.createElement(y,CI({},S,{className:l,ref:_}),c))}));YI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},YI.classNames={fullWidth:UI,zeroRight:FI};var ZI,XI=function(e){var t=e.sideCar,r=jI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,CI({},r))};XI.isSideCarExport=!0;function JI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZI||r.nc;return t&&e.setAttribute("nonce",t),e}var QI=function(){var e=0,t=null;return{add:function(r){var n;0==e&&(t=JI())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),n=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(n)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eM=function(){var e=function(){var e=QI();return function(t,r){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}();return function(t){var r=t.styles,n=t.dynamic;return e(r,n),null}},tM={left:0,top:0,right:0,gap:0},rM=function(e){return parseInt(e||"",10)||0},nM=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return tM;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[rM(r),rM(n),rM(i)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},iM=eM(),oM=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(FI," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(UI," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(FI," .").concat(FI," {\n right: 0 ").concat(n,";\n }\n \n .").concat(UI," .").concat(UI," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},aM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n,a=i.useMemo((function(){return nM(o)}),[o]);return i.createElement(iM,{styles:oM(a,!t,o,r?"":"!important")})},sM=!1;if("undefined"!==typeof window)try{var cM=Object.defineProperty({},"passive",{get:function(){return sM=!0,!0}});window.addEventListener("test",cM,cM),window.removeEventListener("test",cM,cM)}catch(Lde){sM=!1}var lM=!!sM&&{passive:!1},uM=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},dM=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),hM(e,n)){var i=fM(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hM=function(e,t){return"v"===e?function(e){return uM(e,"overflowY")}(t):function(e){return uM(e,"overflowX")}(t)},fM=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},pM=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mM=function(e){return[e.deltaX,e.deltaY]},gM=function(e){return e&&"current"in e?e.current:e},vM=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},yM=0,bM=[];function wM(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xM=(_M=function(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),o=i.useState(yM++)[0],a=i.useState(eM)[0],s=i.useRef(e);i.useEffect((function(){s.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=NI([e.lockRef.current],(e.shards||[]).map(gM),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=pM(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-o[0],l="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=dM(d,u);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=dM(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(c||l)&&(n.current=i),!i)return!0;var f=n.current||i;return function(e,t,r,n,i){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,c=t.contains(s),l=!1,u=a>0,d=0,h=0;do{var f=fM(e,s),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&hM(e,s)&&(d+=m,h+=p),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&a>d)||!u&&(i&&Math.abs(h)<1||!i&&-a>h))&&(l=!0),l}(f,t,e,"h"===f?c:l,!0)}),[]),l=i.useCallback((function(e){var r=e;if(bM.length&&bM[bM.length-1]===a){var n="deltaY"in r?mM(r):pM(r),i=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,n)}))[0];if(i&&i.should)r.cancelable&&r.preventDefault();else if(!i){var o=(s.current.shards||[]).map(gM).filter(Boolean).filter((function(e){return e.contains(r.target)}));(o.length>0?c(r,o[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),u=i.useCallback((function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:wM(n)};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=i.useCallback((function(e){r.current=pM(e),n.current=void 0}),[]),h=i.useCallback((function(t){u(t.type,mM(t),t.target,c(t,e.lockRef.current))}),[]),f=i.useCallback((function(t){u(t.type,pM(t),t.target,c(t,e.lockRef.current))}),[]);i.useEffect((function(){return bM.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,lM),document.addEventListener("touchmove",l,lM),document.addEventListener("touchstart",d,lM),function(){bM=bM.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,lM),document.removeEventListener("touchmove",l,lM),document.removeEventListener("touchstart",d,lM)}}),[]);var p=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:vM(o)}):null,p?i.createElement(aM,{gapMode:e.gapMode}):null)},WI.useMedium(_M),XI);var _M,SM=i.forwardRef((function(e,t){return i.createElement(YI,CI({},e,{ref:t,sideCar:xM}))}));SM.classNames=YI.classNames;const kM=SM,EM=(0,i.createContext)({openWith:e=>Promise.resolve(),onClose:()=>{},isOpen:!1}),AM=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),[n,o]=(0,i.useState)(null),[a,s]=(0,i.useState)("md");return{isOpen:e,onClose:t,openWith:async(e,t="md")=>{s(t),o(e),r()},content:(0,xn.jsxs)(fI,{autoFocus:!1,blockScrollOnMount:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:e,motionPreset:localStorage.getItem("chakra-modal-motion-preset")||void 0,onClose:t,size:a,children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(kM,{enabled:e,children:n})]})}};function PM(e){return Object.keys(e)}var OM;!function(e){e.PENDING="pending",e.RESOLVED="resolved",e.REJECTED="rejected"}(OM||(OM={}));const TM=()=>{throw new Error("ExposedPromise not initialized yet.")};class CM{_promise;_resolve=TM;_reject=TM;_status=OM.PENDING;_promiseResult;_promiseError;get promise(){return this._promise}get resolve(){return this._resolve}get reject(){return this._reject}get status(){return this._status}get promiseResult(){return this._promiseResult}get promiseError(){return this._promiseError}constructor(){this._promise=new Promise(((e,t)=>{this._resolve=t=>{this.isSettled()||(this._promiseResult=t,e(t),this._status=OM.RESOLVED)},this._reject=e=>{this.isSettled()||(this._promiseError=e,t(e),this._status=OM.REJECTED)}}))}static resolve(e){const t=new CM;return t.resolve(e),t}static reject(e){const t=new CM;return t.reject(e),t}isPending(){return this.status===OM.PENDING}isResolved(){return this.status===OM.RESOLVED}isRejected(){return this.status===OM.REJECTED}isSettled(){return this.isResolved()||this.isRejected()}}var jM=r(6436),RM=r(6432),IM=r(8461),MM=r(3632),LM=r(8164),NM=r(4240).Buffer;function DM(e){return NM.from(e).toString("hex")}async function zM(e){return DM("string"===typeof e?(0,is.hash)((0,MM.OW)(e),32):(0,is.hash)(e,32))}async function BM(e){return(0,ns.Eh)((0,is.hash)((0,MM.OW)(e),32))}async function FM(e,t){const r=NM.from((0,IM.randomBytes)(24));return DM(NM.concat([r,NM.from((0,RM.secretBox)(t,r,NM.from(e,"utf8")))]))}async function UM(e,t){const r=e.slice(0,24),n=e.slice(24),i=(0,RM.openSecretBox)(t,r,n);if(!i)throw new Error("Decryption failed");return NM.from(i).toString("utf8")}function $M(e,t){return`@${e}:${t}`}var HM=r(4240).Buffer;async function VM(){const e=(0,IM.randomBytes)(16);return[e.slice(0,4),e.slice(4,6),e.slice(6,8),e.slice(8,10),e.slice(10,16)].map((function(e){return HM.from(e).toString("hex")})).join("-")}var qM,KM,WM,GM,YM,ZM,XM,JM,QM,eL;!function(e){e.BlockchainRequest="blockchain_request",e.PermissionRequest="permission_request",e.SignPayloadRequest="sign_payload_request",e.OperationRequest="operation_request",e.BroadcastRequest="broadcast_request",e.ChangeAccountRequest="change_account_request",e.BlockchainResponse="blockchain_response",e.PermissionResponse="permission_response",e.SignPayloadResponse="sign_payload_response",e.ProofOfEventChallengeRequest="proof_of_event_challenge_request",e.ProofOfEventChallengeResponse="proof_of_event_challenge_response",e.ProofOfEventChallengeRecorded="proof_of_event_challenge_recorded",e.OperationResponse="operation_response",e.BroadcastResponse="broadcast_response",e.Acknowledge="acknowledge",e.Disconnect="disconnect",e.Error="error"}(qM||(qM={})),function(e){e.SIGN="sign",e.OPERATION_REQUEST="operation_request",e.ENCRYPT="encrypt",e.NOTIFICATION="notification",e.THRESHOLD="threshold"}(KM||(KM={})),function(e){e.MAINNET="mainnet",e.GHOSTNET="ghostnet",e.WEEKLYNET="weeklynet",e.DAILYNET="dailynet",e.DELPHINET="delphinet",e.EDONET="edonet",e.FLORENCENET="florencenet",e.GRANADANET="granadanet",e.HANGZHOUNET="hangzhounet",e.ITHACANET="ithacanet",e.JAKARTANET="jakartanet",e.KATHMANDUNET="kathmandunet",e.LIMANET="limanet",e.MUMBAINET="mumbainet",e.NAIROBINET="nairobinet",e.OXFORDNET="oxfordnet",e.CUSTOM="custom"}(WM||(WM={})),function(e){e.ENDORSEMENT="endorsement",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.ACTIVATE_ACCOUNT="activate_account",e.PROPOSALS="proposals",e.BALLOT="ballot",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ORIGINATION="origination",e.DELEGATION="delegation"}(GM||(GM={})),function(e){e.WEBSITE="website",e.EXTENSION="extension",e.P2P="p2p",e.WALLETCONNECT="walletconnect"}(YM||(YM={})),function(e){e.BACKGROUND="toBackground",e.PAGE="toPage",e.EXTENSION="toExtension"}(ZM||(ZM={})),function(e){e.BROADCAST_ERROR="BROADCAST_ERROR",e.NETWORK_NOT_SUPPORTED="NETWORK_NOT_SUPPORTED",e.NO_ADDRESS_ERROR="NO_ADDRESS_ERROR",e.NO_PRIVATE_KEY_FOUND_ERROR="NO_PRIVATE_KEY_FOUND_ERROR",e.NOT_GRANTED_ERROR="NOT_GRANTED_ERROR",e.PARAMETERS_INVALID_ERROR="PARAMETERS_INVALID_ERROR",e.TOO_MANY_OPERATIONS="TOO_MANY_OPERATIONS",e.TRANSACTION_INVALID_ERROR="TRANSACTION_INVALID_ERROR",e.SIGNATURE_TYPE_NOT_SUPPORTED="SIGNATURE_TYPE_NOT_SUPPORTED",e.ABORTED_ERROR="ABORTED_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(XM||(XM={})),function(e){e.NOT_CONNECTED="NOT_CONNECTED",e.CONNECTING="CONNECTING",e.CONNECTED="CONNECTED"}(JM||(JM={})),function(e){e.CHROME_MESSAGE="chrome_message",e.WALLETCONNECT="walletconnect",e.POST_MESSAGE="post_message",e.LEDGER="ledger",e.P2P="p2p"}(QM||(QM={}));class tL{static isSupported(){return Promise.resolve(!1)}}!function(e){e.TRANSPORT_P2P_PEERS_DAPP="beacon:communication-peers-dapp",e.TRANSPORT_P2P_PEERS_WALLET="beacon:communication-peers-wallet",e.TRANSPORT_POSTMESSAGE_PEERS_DAPP="beacon:postmessage-peers-dapp",e.TRANSPORT_POSTMESSAGE_PEERS_WALLET="beacon:postmessage-peers-wallet",e.TRANSPORT_WALLETCONNECT_PEERS_DAPP="beacon:walletconnect-peers-dapp",e.LAST_SELECTED_WALLET="beacon:last-selected-wallet",e.ACCOUNTS="beacon:accounts",e.ACTIVE_ACCOUNT="beacon:active-account",e.PUSH_TOKENS="beacon:push-tokens",e.BEACON_SDK_SECRET_SEED="beacon:sdk-secret-seed",e.APP_METADATA_LIST="beacon:app-metadata-list",e.PERMISSION_LIST="beacon:permissions",e.ONGOING_PROOF_OF_EVENT_CHALLENGES="beacon:ongoing-proof-of-event-challenges",e.BEACON_SDK_VERSION="beacon:sdk_version",e.MATRIX_PRESERVED_STATE="beacon:sdk-matrix-preserved-state",e.MATRIX_PEER_ROOM_IDS="beacon:matrix-peer-rooms",e.MATRIX_SELECTED_NODE="beacon:matrix-selected-node",e.MULTI_NODE_SETUP_DONE="beacon:multi-node-setup",e.WC_2_CORE_PAIRING="wc@2:core:0.3//pairing",e.WC_2_CLIENT_SESSION="wc@2:client:0.3//session",e.WC_2_CORE_KEYCHAIN="wc@2:core:0.3//keychain",e.WC_2_CORE_MESSAGES="wc@2:core:0.3//messages",e.WC_2_CLIENT_PROPOSAL="wc@2:client:0.3//proposal",e.WC_2_CORE_SUBSCRIPTION="wc@2:core:0.3//subscription",e.WC_2_CORE_HISTORY="wc@2:core:0.3//history",e.WC_2_CORE_EXPIRER="wc@2:core:0.3//expirer"}(eL||(eL={}));const rL={[eL.TRANSPORT_P2P_PEERS_DAPP]:[],[eL.TRANSPORT_P2P_PEERS_WALLET]:[],[eL.TRANSPORT_POSTMESSAGE_PEERS_DAPP]:[],[eL.TRANSPORT_POSTMESSAGE_PEERS_WALLET]:[],[eL.TRANSPORT_WALLETCONNECT_PEERS_DAPP]:[],[eL.LAST_SELECTED_WALLET]:void 0,[eL.ACCOUNTS]:[],[eL.ACTIVE_ACCOUNT]:void 0,[eL.PUSH_TOKENS]:[],[eL.BEACON_SDK_SECRET_SEED]:void 0,[eL.APP_METADATA_LIST]:[],[eL.PERMISSION_LIST]:[],[eL.ONGOING_PROOF_OF_EVENT_CHALLENGES]:[],[eL.BEACON_SDK_VERSION]:void 0,[eL.MATRIX_PRESERVED_STATE]:{},[eL.MATRIX_PEER_ROOM_IDS]:{},[eL.MATRIX_SELECTED_NODE]:void 0,[eL.MULTI_NODE_SETUP_DONE]:void 0,[eL.WC_2_CLIENT_SESSION]:void 0,[eL.WC_2_CORE_PAIRING]:void 0,[eL.WC_2_CORE_KEYCHAIN]:void 0,[eL.WC_2_CORE_MESSAGES]:void 0,[eL.WC_2_CLIENT_PROPOSAL]:void 0,[eL.WC_2_CORE_SUBSCRIPTION]:void 0,[eL.WC_2_CORE_HISTORY]:void 0,[eL.WC_2_CORE_EXPIRER]:void 0};class nL{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class iL extends nL{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,a,s),this.senderId=o}}var oL,aL,sL;!function(e){e.RAW="raw",e.OPERATION="operation",e.MICHELINE="micheline"}(oL||(oL={}));class cL{type="p2p-pairing-request";relayServer;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.relayServer=i}}class lL{type="postmessage-pairing-request";id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o){this.id=e,this.name=t,this.icon=i,this.appUrl=o,this.publicKey=r,this.version=n}}class uL extends lL{senderId;constructor(e,t,r,n,i,o,a){super(e,t,r,n,o,a),this.senderId=i}}class dL{type="walletconnect-pairing-request";uri;id;name;icon;appUrl;publicKey;version;constructor(e,t,r,n,i,o,a){this.id=e,this.name=t,this.icon=o,this.appUrl=a,this.publicKey=r,this.version=n,this.uri=i}}class hL extends dL{senderId;constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,o,a,s),this.senderId=i}}!function(e){e.LIGHT="light",e.DARK="dark"}(aL||(aL={})),function(e){e.EUROPE_EAST="europe-east",e.EUROPE_WEST="europe-west",e.NORTH_AMERICA_EAST="north-america-east",e.NORTH_AMERICA_WEST="north-america-west",e.CENTRAL_AMERICA="central-america",e.SOUTH_AMERICA="south-america",e.ASIA_EAST="asia-east",e.ASIA_WEST="asia-west",e.AFRICA="africa",e.AUSTRALIA="australia"}(sL||(sL={}));const fL="https://beacon-notification-oracle.dev.gke.papers.tech",pL=[e=>{}];let mL={postMessage:(e,t)=>{console.log("GOT MOCK POST MESSAGE",e),pL.forEach((t=>{t({data:e})}))},addEventListener:(e,t)=>{pL.push(t)},removeEventListener:(e,t)=>{pL.splice(pL.indexOf((e=>e===t)),1)},location:{origin:"*"}};try{"undefined"!==typeof window&&(mL=window)}catch(Nde){console.log(`not defined: ${Nde}`)}class gL{track(e,t,r,n){}}class vL{name;iconUrl;appUrl;_beaconId=new CM;get beaconId(){return this._beaconId.promise}storage;analytics;_keyPair=new CM;get keyPair(){return this._keyPair.promise}constructor(e){if(!e.name)throw new Error("Name not set");if(!e.storage)throw new Error("Storage not set");this.name=e.name,this.iconUrl=e.iconUrl,this.appUrl=e.appUrl??mL.location.origin,this.storage=e.storage,this.analytics=e.analytics??new gL,mL.beaconCreatedClientInstance?console.error("[BEACON] It looks like you created multiple Beacon SDK Client instances. This can lead to problems. Only create one instance and re-use it everywhere."):mL.beaconCreatedClientInstance=!0,this.initSDK().catch(console.error)}async destroy(){await this.removeBeaconEntriesFromStorage(),mL.beaconCreatedClientInstance=!1}async initSDK(){return this.storage.set(eL.BEACON_SDK_VERSION,"4.1.2").catch(console.error),this.loadOrCreateBeaconSecret().catch(console.error),this.keyPair.then((e=>{this._beaconId.resolve(DM(e.publicKey))}))}async removeBeaconEntriesFromStorage(){const e=Object.values(eL);await Promise.all(e.map((e=>this.storage.delete(e))))}async loadOrCreateBeaconSecret(){const e=await this.storage.get(eL.BEACON_SDK_SECRET_SEED);if(e&&"string"===typeof e)this._keyPair.resolve(await BM(e));else{const e=await VM();await this.storage.set(eL.BEACON_SDK_SECRET_SEED,e),this._keyPair.resolve(await BM(e))}}}class yL{storage;storageKey;constructor(e,t){this.storage=e,this.storageKey=t}async getAll(){return await this.storage.get(this.storageKey)??[]}async getOne(e){return(await this.storage.get(this.storageKey)).find(e)}async addOne(e,t,r=!0){const n=await this.storage.get(this.storageKey);if(n.some(t)){if(r)for(let i=0;i!e(t)));return this.storage.set(this.storageKey,t)}async removeAll(){return this.storage.delete(this.storageKey)}}var bL=r(4240).Buffer;const wL=async(e,t)=>{const r=[e,t.type];t.name&&r.push(`name:${t.name}`),t.rpcUrl&&r.push(`rpc:${t.rpcUrl}`);const n=bL.from((0,is.hash)((0,MM.OW)(r.join("-")),10));return jM.encode(n)};class xL{static async hasPermission(e,t,r){switch(e.type){case qM.PermissionRequest:case qM.BroadcastRequest:return!0;case qM.OperationRequest:{const r=await wL(e.sourceAddress,e.network),n=await t(r);return!!n&&n.scopes.includes(KM.OPERATION_REQUEST)}case qM.SignPayloadRequest:{const t=(await r()).filter((t=>t.address===e.sourceAddress));return 0!==t.length&&t.some((e=>e.scopes.includes(KM.SIGN)))}default:throw new Error("Message not handled")}}}class _L{storageManager;constructor(e){this.storageManager=new yL(e,eL.ACCOUNTS)}async getAccounts(){return await this.storageManager.getAll()??[]}async getAccount(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addAccount(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier))}async updateAccount(e,t){const r=await this.getAccount(e);if(!r)return;const n={...r,...t};return await this.storageManager.addOne(n,(t=>t.accountIdentifier===e),!0),n}async removeAccount(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removeAccounts(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllAccounts(){return this.storageManager.removeAll()}async hasPermission(e){return xL.hasPermission(e,this.getAccount.bind(this),this.getAccounts.bind(this))}}var SL=r(4240).Buffer;const kL=async e=>{const t=SL.from((0,is.hash)(SL.from(e,"hex"),5));return jM.encode(t)};let EL=!!mL.beaconSdkDebugEnabled;EL&&console.log("[BEACON]: Debug mode is ON (turned on either by the developer or a browser extension)");class AL{name;constructor(e){this.name=e}debug(e,...t){PL.debug(this.name,e,t)}log(e,...t){PL.log(this.name,e,t)}warn(e,...t){PL.warn(this.name,e,t)}error(e,...t){PL.error(this.name,e,t)}time(e,t){PL.time(e,t)}timeLog(e,...t){PL.timeLog(e,t)}}new AL("");let PL=new class{constructor(){}debug(e,t,...r){this._log("debug",e,t,r)}log(e,t,...r){this._log("log",e,t,r)}warn(e,t,...r){this._log("warn",e,t,r)}error(e,t,...r){this._log("error",e,t,r)}time(e,t){e?console.time(t):console.timeEnd(t)}timeLog(e,t,...r){this._log("timeLog",e,t,r)}_log(e,t,r,n=[]){if(!EL)return;let i=`[BEACON] ${(new Date).toISOString()} [${t}](${r})`,o=n;switch(n[0]&&"string"===typeof n[0]&&(i+=` ${n[0]}`,o=n.slice(1)),e){case"error":console.group(i),console.error(...o);break;case"warn":console.group(i),console.warn(...o);break;case"debug":console.groupCollapsed(i),console.debug(...o);break;case"timeLog":console.group(i),console.timeLog(...o);break;default:console.group(i),console.log(...o)}console.groupEnd()}};const OL=new AL("Client");class TL extends vL{accountManager;handleResponse;rateLimit=2;rateLimitWindowInSeconds=5;requestCounter=[];matrixNodes;_transport=new CM;get transport(){return this._transport.promise}get connectionStatus(){return this._transport.promiseResult?.connectionStatus??JM.NOT_CONNECTED}get ready(){return this.transport.then((()=>{}))}constructor(e){super(e),this.accountManager=new _L(e.storage),this.matrixNodes=e.matrixNodes??{},this.handleResponse=(e,t)=>{throw new Error(`not overwritten${JSON.stringify(e)} - ${JSON.stringify(t)}`)}}async getAccounts(){return this.accountManager.getAccounts()}async getAccount(e){return this.accountManager.getAccount(e)}async removeAccount(e){return this.accountManager.removeAccount(e)}async removeAllAccounts(){return this.accountManager.removeAllAccounts()}async addRequestAndCheckIfRateLimited(){const e=(new Date).getTime();return this.requestCounter=this.requestCounter.filter((t=>t+1e3*this.rateLimitWindowInSeconds>e)),this.requestCounter.push(e),this.requestCounter.length>this.rateLimit}async init(e){return this._transport.status===OM.RESOLVED?(await this.transport).type:(await this.setTransport(e),e.type)}async getOwnAppMetadata(){return{senderId:await kL(await this.beaconId),name:this.name,icon:this.iconUrl}}async getPeers(){return(await this.transport).getPeers()}async addPeer(e){return(await this.transport).addPeer(e)}async destroy(){this._transport.status===OM.RESOLVED&&await(await this.transport).disconnect(),await super.destroy()}async setTransport(e){e?this._transport.isSettled()?this._transport=CM.resolve(e):this._transport.resolve(e):this._transport.isSettled()&&(this._transport=new CM)}async addListener(e){e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new ML).deserialize(e);this.handleResponse(r,t)}})).catch((e=>OL.error("addListener",e)))}async sendDisconnectToPeer(e,t){const r={id:await VM(),version:e.version,senderId:await kL(await this.beaconId),type:qM.Disconnect},n=await(new ML).serialize(r),i=t??await this.transport;await i.send(n,e)}}const CL=new AL("Transport");class jL{type=QM.POST_MESSAGE;name;_isConnected=JM.NOT_CONNECTED;peerManager;client;newPeerListener;setEventHandler(e,t){this.client.eventHandlers.set(e,t)}listeners=[];get connectionStatus(){return this._isConnected}constructor(e,t,r){this.name=e,this.client=t,this.peerManager=r}static async isAvailable(){return Promise.resolve(!1)}async connect(){CL.log("connect"),this._isConnected=JM.CONNECTED}async disconnect(){CL.log("disconnect"),this._isConnected=JM.NOT_CONNECTED}async send(e,t){if(t)return this.client.sendMessage(e,t);{const t=(await this.getPeers()).map((t=>this.client.sendMessage(e,t)));return(await Promise.all(t))[0]}}async addListener(e){CL.debug("addListener"),this.listeners.push(e)}async removeListener(e){CL.log("removeListener"),this.listeners=this.listeners.filter((t=>t!==e))}async getPeers(){return this.peerManager.getPeers()}async addPeer(e,t=!0){CL.log("addPeer","adding peer",e),await this.peerManager.addPeer(e),await this.listen(e.publicKey)}async removePeer(e){CL.log("removePeer","removing peer",e),await this.peerManager.removePeer(e.publicKey),this.client&&await this.client.unsubscribeFromEncryptedMessage(e.publicKey)}async removeAllPeers(){CL.log("removeAllPeers"),await this.peerManager.removeAllPeers(),this.client&&await this.client.unsubscribeFromEncryptedMessages()}async notifyListeners(e,t){0===this.listeners.length?CL.warn("notifyListeners","0 listeners notified!",this):CL.log("notifyListeners",`Notifying ${this.listeners.length} listeners`,this),this.listeners.forEach((r=>{r(e,t)}))}}class RL extends tL{prefix;constructor(e){super(),this.prefix=e}static async isSupported(){return Promise.resolve(Boolean("undefined"!==typeof window)&&Boolean(window.localStorage))}async get(e){const t=localStorage.getItem(this.getPrefixedKey(e));if(!t)return"object"===typeof rL[e]?JSON.parse(JSON.stringify(rL[e])):rL[e];try{return JSON.parse(t)}catch(r){return t}}async set(e,t){return"string"===typeof t?localStorage.setItem(this.getPrefixedKey(e),t):localStorage.setItem(this.getPrefixedKey(e),JSON.stringify(t))}async delete(e){return Promise.resolve(localStorage.removeItem(this.getPrefixedKey(e)))}async subscribeToStorageChanged(e){window.addEventListener("storage",(t=>{t.key?e({eventType:"entryModified",key:this.getPrefixedKey(t.key),oldValue:t.oldValue,newValue:t.newValue}):e({eventType:"storageCleared",key:null,oldValue:null,newValue:null})}),!1)}getPrefixedKey(e){return this.prefix?`${this.prefix}-${e}`:e}}new AL("STORAGE");var IL=r(4240).Buffer;class ML{async serialize(e){const t=JSON.stringify(e);return jM.encode(IL.from(t))}async deserialize(e){if("string"!==typeof e)throw new Error("Encoded payload needs to be a string");return JSON.parse(jM.decode(e).toString())}}class LL{storageManager;constructor(e){this.storageManager=new yL(e,eL.APP_METADATA_LIST)}async getAppMetadataList(){return await this.storageManager.getAll()??[]}async getAppMetadata(e){return this.storageManager.getOne((t=>t.senderId===e))}async addAppMetadata(e){return this.storageManager.addOne(e,(t=>t.senderId===e.senderId))}async removeAppMetadata(e){return this.storageManager.remove((t=>t.senderId===e))}async removeAppMetadatas(e){return this.storageManager.remove((t=>e.includes(t.senderId)))}async removeAllAppMetadata(){return this.storageManager.removeAll()}}class NL{storageManager;constructor(e){this.storageManager=new yL(e,eL.PERMISSION_LIST)}async getPermissions(){return await this.storageManager.getAll()??[]}async getPermission(e){return this.storageManager.getOne((t=>t.accountIdentifier===e))}async addPermission(e){return this.storageManager.addOne(e,(t=>t.accountIdentifier===e.accountIdentifier&&t.senderId===e.senderId))}async removePermission(e){return this.storageManager.remove((t=>t.accountIdentifier===e))}async removePermissions(e){return this.storageManager.remove((t=>e.includes(t.accountIdentifier)))}async removeAllPermissions(){return this.storageManager.removeAll()}async hasPermission(e){return xL.hasPermission(e,this.getPermission.bind(this),this.getPermissions.bind(this))}}class DL{storageManager;constructor(e,t){this.storageManager=new yL(e,t)}async hasPeer(e){return!!await this.getPeer(e)}async getPeers(){return await this.storageManager.getAll()??[]}async getPeer(e){return this.storageManager.getOne((t=>t.publicKey===e))}async addPeer(e){return this.storageManager.addOne(e,(t=>t.publicKey===e.publicKey))}async removePeer(e){return this.storageManager.remove((t=>t.publicKey===e))}async removePeers(e){return this.storageManager.remove((t=>e.includes(t.publicKey)))}async removeAllPeers(){return this.storageManager.removeAll()}}var zL=r(3376),BL=r(4240).Buffer;class FL{keyPair;constructor(e){this.keyPair=e}eventHandlers=new Map;async getPublicKey(){return DM(this.keyPair?.publicKey)}async getPublicKeyHash(){return zM(this.keyPair.publicKey)}async createCryptoBoxServer(e,t){return(0,zL.serverSessionKeys)({publicKey:(0,ns.am)(t.publicKey),secretKey:(0,ns.gL)(t.secretKey)},(0,ns.am)(BL.from(e,"hex")))}async createCryptoBoxClient(e,t){return(0,zL.clientSessionKeys)({publicKey:(0,ns.am)(t.publicKey),secretKey:(0,ns.gL)(t.secretKey)},(0,ns.am)(BL.from(e,"hex")))}async encryptMessageAsymmetric(e,t){return async function(e,t){const r=(0,ns.am)(NM.from(t)),n=(0,RM.generateKeyPair)(),i=new is.BLAKE2b(24).update(n.publicKey,32).update(r,32).digest(),o="string"===typeof e?(0,MM.OW)(e):e,a=(0,RM.box)(r,n.secretKey,i,o);return DM((0,LM.W)(n.publicKey,a))}(t,BL.from(e,"hex"))}}r(4240).Buffer;new AL("IndexedDBStorage");function UL(e,t){return function(){return e.apply(t,arguments)}}const{toString:$L}=Object.prototype,{getPrototypeOf:HL}=Object,VL=(e=>t=>{const r=$L.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qL=e=>(e=e.toLowerCase(),t=>VL(t)===e),KL=e=>t=>typeof t===e,{isArray:WL}=Array,GL=KL("undefined");const YL=qL("ArrayBuffer");const ZL=KL("string"),XL=KL("function"),JL=KL("number"),QL=e=>null!==e&&"object"===typeof e,eN=e=>{if("object"!==VL(e))return!1;const t=HL(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tN=qL("Date"),rN=qL("File"),nN=qL("Blob"),iN=qL("FileList"),oN=qL("URLSearchParams");function aN(e,t,{allOwnKeys:r=!1}={}){if(null===e||"undefined"===typeof e)return;let n,i;if("object"!==typeof e&&(e=[e]),WL(e))for(n=0,i=e.length;n0;)if(n=r[i],t===n.toLowerCase())return n;return null}const cN="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,lN=e=>!GL(e)&&e!==cN;const uN=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&HL(Uint8Array)),dN=qL("HTMLFormElement"),hN=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),fN=qL("RegExp"),pN=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};aN(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},mN="abcdefghijklmnopqrstuvwxyz",gN="0123456789",vN={DIGIT:gN,ALPHA:mN,ALPHA_DIGIT:mN+mN.toUpperCase()+gN};const yN=qL("AsyncFunction"),bN={isArray:WL,isArrayBuffer:YL,isBuffer:function(e){return null!==e&&!GL(e)&&null!==e.constructor&&!GL(e.constructor)&&XL(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||XL(e.append)&&("formdata"===(t=VL(e))||"object"===t&&XL(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&YL(e.buffer),t},isString:ZL,isNumber:JL,isBoolean:e=>!0===e||!1===e,isObject:QL,isPlainObject:eN,isUndefined:GL,isDate:tN,isFile:rN,isBlob:nN,isRegExp:fN,isFunction:XL,isStream:e=>QL(e)&&XL(e.pipe),isURLSearchParams:oN,isTypedArray:uN,isFileList:iN,forEach:aN,merge:function e(){const{caseless:t}=lN(this)&&this||{},r={},n=(n,i)=>{const o=t&&sN(r,i)||i;eN(r[o])&&eN(n)?r[o]=e(r[o],n):eN(n)?r[o]=e({},n):WL(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i(aN(t,((t,n)=>{r&&XL(t)?e[n]=UL(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&HL(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:VL,kindOfTest:qL,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(WL(e))return e;let t=e.length;if(!JL(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:dN,hasOwnProperty:hN,hasOwnProp:hN,reduceDescriptors:pN,freezeMethods:e=>{pN(e,((t,r)=>{if(XL(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];XL(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return WL(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:sN,global:cN,isContextDefined:lN,ALPHABET:vN,generateString:(e=16,t=vN.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&XL(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(QL(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=WL(e)?[]:{};return aN(e,((e,t)=>{const o=r(e,n+1);!GL(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:yN,isThenable:e=>e&&(QL(e)||XL(e))&&XL(e.then)&&XL(e.catch)};function wN(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}bN.inherits(wN,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:bN.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xN=wN.prototype,_N={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{_N[e]={value:e}})),Object.defineProperties(wN,_N),Object.defineProperty(xN,"isAxiosError",{value:!0}),wN.from=(e,t,r,n,i,o)=>{const a=Object.create(xN);return bN.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),wN.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const SN=wN;var kN=r(4240).Buffer;function EN(e){return bN.isPlainObject(e)||bN.isArray(e)}function AN(e){return bN.endsWith(e,"[]")?e.slice(0,-2):e}function PN(e,t,r){return e?e.concat(t).map((function(e,t){return e=AN(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const ON=bN.toFlatObject(bN,{},null,(function(e){return/^is[A-Z]/.test(e)}));const TN=function(e,t,r){if(!bN.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=bN.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!bN.isUndefined(t[e])}))).metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&bN.isSpecCompliantForm(t);if(!bN.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(bN.isDate(e))return e.toISOString();if(!s&&bN.isBlob(e))throw new SN("Blob is not supported. Use a Buffer instead.");return bN.isArrayBuffer(e)||bN.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):kN.from(e):e}function l(e,r,i){let s=e;if(e&&!i&&"object"===typeof e)if(bN.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(bN.isArray(e)&&function(e){return bN.isArray(e)&&!e.some(EN)}(e)||(bN.isFileList(e)||bN.endsWith(r,"[]"))&&(s=bN.toArray(e)))return r=AN(r),s.forEach((function(e,n){!bN.isUndefined(e)&&null!==e&&t.append(!0===a?PN([r],n,o):null===a?r:r+"[]",c(e))})),!1;return!!EN(e)||(t.append(PN(i,r,o),c(e)),!1)}const u=[],d=Object.assign(ON,{defaultVisitor:l,convertValue:c,isVisitable:EN});if(!bN.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!bN.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),bN.forEach(r,(function(r,o){!0===(!(bN.isUndefined(r)||null===r)&&i.call(t,r,bN.isString(o)?o.trim():o,n,d))&&e(r,n?n.concat(o):[o])})),u.pop()}}(e),t};function CN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function jN(e,t){this._pairs=[],e&&TN(e,this,t)}const RN=jN.prototype;RN.append=function(e,t){this._pairs.push([e,t])},RN.toString=function(e){const t=e?function(t){return e.call(this,t,CN)}:CN;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const IN=jN;function MN(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function LN(e,t,r){if(!t)return e;const n=r&&r.encode||MN,i=r&&r.serialize;let o;if(o=i?i(t,r):bN.isURLSearchParams(t)?t.toString():new IN(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const NN=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){bN.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},DN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zN={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:IN,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},BN="undefined"!==typeof window&&"undefined"!==typeof document,FN=(e=>BN&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),UN="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,$N={...t,...zN};const HN=function(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&bN.isArray(n)?n.length:o,s)return bN.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&bN.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&bN.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n{t(function(e){return bN.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const VN={transitional:DN,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=bN.isObject(e);i&&bN.isHTMLForm(e)&&(e=new FormData(e));if(bN.isFormData(e))return n&&n?JSON.stringify(HN(e)):e;if(bN.isArrayBuffer(e)||bN.isBuffer(e)||bN.isStream(e)||bN.isFile(e)||bN.isBlob(e))return e;if(bN.isArrayBufferView(e))return e.buffer;if(bN.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return TN(e,new $N.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return $N.isNode&&bN.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=bN.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return TN(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(bN.isString(e))try{return(t||JSON.parse)(e),bN.trim(e)}catch(Mde){if("SyntaxError"!==Mde.name)throw Mde}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||VN.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&bN.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(Mde){if(r){if("SyntaxError"===Mde.name)throw SN.from(Mde,SN.ERR_BAD_RESPONSE,this,null,this.response);throw Mde}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$N.classes.FormData,Blob:$N.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};bN.forEach(["delete","get","head","post","put","patch"],(e=>{VN.headers[e]={}}));const qN=VN,KN=bN.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),WN=Symbol("internals");function GN(e){return e&&String(e).trim().toLowerCase()}function YN(e){return!1===e||null==e?e:bN.isArray(e)?e.map(YN):String(e)}function ZN(e,t,r,n,i){return bN.isFunction(n)?n.call(this,t,r):(i&&(t=r),bN.isString(t)?bN.isString(n)?-1!==t.indexOf(n):bN.isRegExp(n)?n.test(t):void 0:void 0)}class XN{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=GN(t);if(!i)throw new Error("header name must be a non-empty string");const o=bN.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=YN(e))}const o=(e,t)=>bN.forEach(e,((e,r)=>i(e,r,t)));return bN.isPlainObject(e)||e instanceof this.constructor?o(e,t):bN.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&KN[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=GN(e)){const r=bN.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(bN.isFunction(t))return t.call(this,e,r);if(bN.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=GN(e)){const r=bN.findKey(this,e);return!(!r||void 0===this[r]||t&&!ZN(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=GN(e)){const i=bN.findKey(r,e);!i||t&&!ZN(0,r[i],i,t)||(delete r[i],n=!0)}}return bN.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!ZN(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return bN.forEach(this,((n,i)=>{const o=bN.findKey(r,i);if(o)return t[o]=YN(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=YN(n),r[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return bN.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&bN.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[WN]=this[WN]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=GN(e);t[n]||(!function(e,t){const r=bN.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return bN.isArray(e)?e.forEach(n):n(e),this}}XN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),bN.reduceDescriptors(XN.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),bN.freezeMethods(XN);const JN=XN;function QN(e,t){const r=this||qN,n=t||r,i=JN.from(n.headers);let o=n.data;return bN.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function eD(e){return!(!e||!e.__CANCEL__)}function tD(e,t,r){SN.call(this,null==e?"canceled":e,SN.ERR_CANCELED,t,r),this.name="CanceledError"}bN.inherits(tD,SN,{__CANCEL__:!0});const rD=tD;const nD=$N.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];bN.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),bN.isString(n)&&a.push("path="+n),bN.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function iD(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const oD=$N.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=bN.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const aD=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];i||(i=c),r[o]=s,n[o]=c;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,c=n(s);r=o;const l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const cD="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=JN.from(e.headers).normalize();let o,a,{responseType:s,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(bN.isFormData(n))if($N.hasStandardBrowserEnv||$N.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const d=iD(e.baseURL,e.url);function h(){if(!u)return;const n=JN.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new SN("Request failed with status code "+r.status,[SN.ERR_BAD_REQUEST,SN.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),LN(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(r(new SN("Request aborted",SN.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new SN("Network Error",SN.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||DN;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new SN(t,n.clarifyTimeoutError?SN.ETIMEDOUT:SN.ECONNABORTED,e,u)),u=null},$N.hasStandardBrowserEnv&&(c&&bN.isFunction(c)&&(c=c(e)),c||!1!==c&&oD(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&nD.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in u&&bN.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),bN.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",sD(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",sD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{u&&(r(!t||t.type?new rD(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===$N.protocols.indexOf(f)?r(new SN("Unsupported protocol "+f+":",SN.ERR_BAD_REQUEST,e)):u.send(n||null)}))},lD={http:null,xhr:cD};bN.forEach(lD,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Mde){}Object.defineProperty(e,"adapterName",{value:t})}}));const uD=e=>`- ${e}`,dD=e=>bN.isFunction(e)||null===e||!1===e,hD=e=>{e=bN.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(uD).join("\n"):" "+uD(e[0]):"as no adapter specified";throw new SN("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function fD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rD(null,e)}function pD(e){fD(e),e.headers=JN.from(e.headers),e.data=QN.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return hD(e.adapter||qN.adapter)(e).then((function(t){return fD(e),t.data=QN.call(e,e.transformResponse,t),t.headers=JN.from(t.headers),t}),(function(t){return eD(t)||(fD(e),t&&t.response&&(t.response.data=QN.call(e,e.transformResponse,t.response),t.response.headers=JN.from(t.response.headers))),Promise.reject(t)}))}const mD=e=>e instanceof JN?e.toJSON():e;function gD(e,t){t=t||{};const r={};function n(e,t,r){return bN.isPlainObject(e)&&bN.isPlainObject(t)?bN.merge.call({caseless:r},e,t):bN.isPlainObject(t)?bN.merge({},t):bN.isArray(t)?t.slice():t}function i(e,t,r){return bN.isUndefined(t)?bN.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!bN.isUndefined(t))return n(void 0,t)}function a(e,t){return bN.isUndefined(t)?bN.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(mD(e),mD(t),!0)};return bN.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=c[n]||i,a=o(e[n],t[n],n);bN.isUndefined(a)&&o!==s||(r[n]=a)})),r}const vD="1.6.5",yD={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{yD[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const bD={};yD.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.5] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new SN(n(i," has been removed"+(t?" in "+t:"")),SN.ERR_DEPRECATED);return t&&!bD[i]&&(bD[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};const wD={assertOptions:function(e,t,r){if("object"!==typeof e)throw new SN("options must be an object",SN.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new SN("option "+o+" must be "+r,SN.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new SN("Unknown option "+o,SN.ERR_BAD_OPTION)}},validators:yD},xD=wD.validators;class _D{constructor(e){this.defaults=e,this.interceptors={request:new NN,response:new NN}}request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=gD(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&wD.assertOptions(r,{silentJSONParsing:xD.transitional(xD.boolean),forcedJSONParsing:xD.transitional(xD.boolean),clarifyTimeoutError:xD.transitional(xD.boolean)},!1),null!=n&&(bN.isFunction(n)?t.paramsSerializer={serialize:n}:wD.assertOptions(n,{encode:xD.function,serialize:xD.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&bN.merge(i.common,i[t.method]);i&&bN.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=JN.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[pD.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new rD(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new kD((function(t){e=t}));return{token:t,cancel:e}}}const ED=kD;const AD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AD).forEach((([e,t])=>{AD[t]=e}));const PD=AD;const OD=function e(t){const r=new SD(t),n=UL(SD.prototype.request,r);return bN.extend(n,SD.prototype,r,{allOwnKeys:!0}),bN.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(gD(t,r))},n}(qN);OD.Axios=SD,OD.CanceledError=rD,OD.CancelToken=ED,OD.isCancel=eD,OD.VERSION=vD,OD.toFormData=TN,OD.AxiosError=SN,OD.Cancel=OD.CanceledError,OD.all=function(e){return Promise.all(e)},OD.spread=function(e){return function(t){return e.apply(null,t)}},OD.isAxiosError=function(e){return bN.isObject(e)&&!0===e.isAxiosError},OD.mergeConfig=gD,OD.AxiosHeaders=JN,OD.formToJSON=e=>HN(bN.isHTMLForm(e)?new FormData(e):e),OD.getAdapter=hD,OD.HttpStatusCode=PD,OD.default=OD;const TD=OD;var CD;!function(e){e.TEXT="m.text"}(CD||(CD={}));class jD{type;sender;content;timestamp;static from(e){if(ID(e))return new jD(e.content.msgtype,e.sender,e.content.body,e.origin_server_ts)}constructor(e,t,r,n){this.type=e,this.sender=t,this.content=r,this.timestamp=n}}const RD=e=>"m.room.message"===e.type,ID=e=>RD(e)&&e.content instanceof Object&&"msgtype"in e.content&&e.content.msgtype===CD.TEXT;var MD;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JOINED=1]="JOINED",e[e.INVITED=2]="INVITED",e[e.LEFT=3]="LEFT"}(MD||(MD={}));class LD{id;status;members;messages;static fromSync(e){if(!e)return[];function t(e,t){return Object.entries(e).map((([e,r])=>t(e,r)))}return[...t(e.join??{},LD.fromJoined),...t(e.invite??{},LD.fromInvited),...t(e.leave??{},LD.fromLeft)]}static from(e,t){return"string"===typeof e?new LD(e,t||MD.UNKNOWN):void 0!==t?new LD(e.id,t,e.members,e.messages):e}static merge(e,t){return t&&t.id===e.id?new LD(e.id,e.status,[...t.members,...e.members].filter(((e,t,r)=>r.indexOf(e)===t)),[...t.messages,...e.messages]):LD.from(e)}static fromJoined(e,t){const r=[...t.state.events,...t.timeline.events],n=LD.getMembersFromEvents(r),i=LD.getMessagesFromEvents(r);return new LD(e,MD.JOINED,n,i)}static fromInvited(e,t){const r=LD.getMembersFromEvents(t.invite_state.events);return new LD(e,MD.INVITED,r)}static fromLeft(e,t){const r=[...t.state.events,...t.timeline.events],n=LD.getMembersFromEvents(r),i=LD.getMessagesFromEvents(r);return new LD(e,MD.LEFT,n,i)}static getMembersFromEvents(e){return LD.getUniqueEvents(e.filter((e=>(e=>"m.room.create"===e.type&&e.content instanceof Object&&"creator"in e.content)(e)||(e=>"m.room.member"===e.type&&e.content instanceof Object&&"membership"in e.content&&"join"===e.content.membership)(e)))).map((e=>e.sender)).filter(((e,t,r)=>r.indexOf(e)===t))}static getMessagesFromEvents(e){return LD.getUniqueEvents(e.filter(RD)).map((e=>jD.from(e))).filter(Boolean)}static getUniqueEvents(e){const t={},r=[];return e.forEach(((e,n)=>{const i=e.event_id;void 0!==i&&i in t||(void 0!==i&&(t[i]=n),r.push(e))})),r}constructor(e,t=MD.UNKNOWN,r=[],n=[]){this.id=e,this.status=t,this.members=r,this.messages=n}}const ND=["syncToken","rooms"];class DD{storage;state={isRunning:!1,userId:void 0,deviceId:void 0,txnNo:0,accessToken:void 0,syncToken:void 0,pollingTimeout:void 0,pollingRetries:0,rooms:{}};onStateChangedListeners=new Map;waitReadyPromise;constructor(e){this.storage=e,this.waitReadyPromise=new Promise((async(e,t)=>{try{await this.initFromStorage(),e()}catch(r){t(r)}}))}get(e){return this.state[e]}getRoom(e){const t=LD.from(e,MD.UNKNOWN);return this.state.rooms[t.id]||t}async update(e){await this.waitReady();const t=Object.assign({},this.state);this.setState(e),this.updateStorage(e),this.notifyListeners(t,this.state,e)}onStateChanged(e,...t){t.length>0?t.forEach((t=>{this.onStateChangedListeners.set(t,e)})):this.onStateChangedListeners.set("all",e)}async waitReady(){return this.waitReadyPromise}async initFromStorage(){const e=await this.storage.get(eL.MATRIX_PRESERVED_STATE);this.setState(e)}prepareData(e){const t=["rooms"].some((t=>void 0!==e[t]))?JSON.parse(JSON.stringify(e)):e;return Object.values(t.rooms||{}).forEach((e=>{e.messages=[]})),t}updateStorage(e){const t=Object.entries(e).filter((([e,t])=>ND.includes(e)&&Boolean(t)));if(t.length>0){const e={};ND.forEach((t=>{e[t]=this.state[t]})),this.storage.set(eL.MATRIX_PRESERVED_STATE,this.prepareData(e))}}setState(e){this.state={isRunning:e.isRunning||this.state.isRunning,userId:e.userId||this.state.userId,deviceId:e.deviceId||this.state.deviceId,txnNo:e.txnNo||this.state.txnNo,accessToken:e.accessToken||this.state.accessToken,syncToken:e.syncToken||this.state.syncToken,pollingTimeout:e.pollingTimeout||this.state.pollingTimeout,pollingRetries:e.pollingRetries||this.state.pollingRetries,rooms:this.mergeRooms(this.state.rooms,e.rooms)}}mergeRooms(e,t){if(!t)return e;const r=Array.isArray(t)?t:Object.values(t),n=Object.assign({},e);return r.forEach((t=>{n[t.id]=LD.merge(t,e[t.id])})),n}notifyListeners(e,t,r){const n=this.onStateChangedListeners.get("all");n&&n(e,t,r),PM(r).filter((e=>void 0!==r[e])).forEach((n=>{const i=this.onStateChangedListeners.get(n);i&&i(e,t,r)}))}}const zD=new AL("MatrixHttpClient");class BD{baseUrl;cancelTokenSource;constructor(e){this.baseUrl=e,this.cancelTokenSource=TD.CancelToken.source()}async get(e,t,r){return this.send("GET",e,r,t)}async post(e,t,r,n){return this.send("POST",e,r,n,t)}async put(e,t,r,n){return this.send("PUT",e,r,n,t)}async cancelAllRequests(){return this.cancelTokenSource.cancel("Manually cancelled")}async send(e,t,r,n,i){const o=r?this.getHeaders(r):void 0,a=n?this.getParams(n):void 0;let s;try{s=await TD.request({method:e,url:t,baseURL:this.apiUrl("/_matrix/client/r0"),headers:o,data:i,params:a,cancelToken:this.cancelTokenSource.token})}catch(c){const e=c;throw zD.error("send",e.code,e.message,e.response.data),c.response.data}return s.data}getHeaders(e){const t={},r=[];if(e.accessToken&&r.push(["Authorization",`Bearer ${e.accessToken}`]),0!==r.length){for(const[e,n]of r)t[e]=n;return t}}getParams(e){if(!e)return;const t=Object.assign(e,{});return PM(t).forEach((e=>void 0===t[e]&&delete t[e])),t}apiUrl(...e){return[this.baseUrl.endsWith("/")?this.baseUrl.substr(0,this.baseUrl.length-1):this.baseUrl,...e.map((e=>e.startsWith("/")?e.substr(1):e))].join("/")}}class FD{httpClient;constructor(e){this.httpClient=e}async createRoom(e,t={}){return this.httpClient.post("/createRoom",t,{accessToken:e})}async inviteToRoom(e,t,r){return r.status!==MD.JOINED&&r.status!==MD.UNKNOWN?Promise.reject(`User is not a member of room ${r.id}.`):this.httpClient.post(`/rooms/${encodeURIComponent(r.id)}/invite`,{user_id:t},{accessToken:e})}async joinRoom(e,t){return t.status===MD.JOINED?Promise.resolve({room_id:t.id}):this.httpClient.post(`/rooms/${encodeURIComponent(t.id)}/join`,{},{accessToken:e})}async getJoinedRooms(e){return this.httpClient.get("/joined_rooms",void 0,{accessToken:e})}}class UD{httpClient;constructor(e){this.httpClient=e}async login(e,t,r){return this.httpClient.post("/login",{type:"m.login.password",identifier:{type:"m.id.user",user:e},password:t,device_id:r})}}class $D{httpClient;cachedPromises=new Map;constructor(e){this.httpClient=e}async sync(e,t){return this.withCache("sync",(()=>this.httpClient.get("/sync",{timeout:t?t.pollingTimeout:void 0,since:t?t.syncToken:void 0},{accessToken:e})))}async sendMessage(e,t,r,n){return new Promise(((i,o)=>this.scheduleEvent({accessToken:e,roomId:t,type:"m.room.message",content:r,txnId:n,onSuccess:i,onError:o})))}scheduleEvent(e){this.sendEvent(e)}async sendEvent(e){const{roomId:t,type:r,txnId:n,content:i,accessToken:o}=e;try{const a=await this.httpClient.put(`/rooms/${encodeURIComponent(t)}/send/${r}/${encodeURIComponent(n)}`,i,{accessToken:o});e.onSuccess(a)}catch(a){e.onError(a)}}withCache(e,t){let r=this.cachedPromises.get(e);return r||(r=t().finally((()=>{this.cachedPromises.delete(e)})),this.cachedPromises.set(e,r)),r}}class HD{events={};on(e,t){return"object"!==typeof this.events[e]&&(this.events[e]=[]),this.events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if("object"!==typeof this.events[e])return;if(!t)return void(this.events[e]=[]);const r=this.events[e].indexOf(t);r>-1&&this.events[e].splice(r,1)}removeAllListeners(){Object.keys(this.events).forEach((e=>this.events[e].splice(0,this.events[e].length)))}emit(e,...t){"object"===typeof this.events[e]&&[...this.events[e]].forEach((e=>e.apply(this,t)))}once(e,t){const r=this.on(e,((...e)=>{r(),t.apply(this,e)}));return r}}var VD;!function(e){e.INVITE="invite",e.MESSAGE="message"}(VD||(VD={}));class qD extends HD{eventEmitProviders=new Map([[VD.INVITE,()=>[this.isInvite,this.emitInvite.bind(this)]],[VD.MESSAGE,()=>[this.isMessage,this.emitMessage.bind(this)]]]);onStateChanged(e,t,r){for(const n of PM(VD))this.emitIfEvent(VD[n],r)}emitIfEvent(e,t){const r=this.eventEmitProviders.get(e);if(r){const[n,i]=r();n(t)&&i(e,t)}}emitClientEvent(e,t,r){this.emit(e,{type:e,content:t,timestamp:r})}isInvite(e){return!!e.rooms&&e.rooms.some((e=>e.status===MD.INVITED))}emitInvite(e,t){t.rooms.filter((e=>e.status===MD.INVITED)).map((e=>[e.id,e.members])).forEach((([t,r])=>{this.emitClientEvent(e,{roomId:t,members:r})}))}isMessage(e){return!!e.rooms&&e.rooms.some((e=>e.messages.length>0))}emitMessage(e,t){t.rooms.filter((e=>e.messages.length>0)).map((e=>e.messages.map((t=>[e.id,t,t.timestamp])))).reduce(((e,t)=>e.concat(t)),[]).forEach((([t,r,n])=>{this.emitClientEvent(e,{roomId:t,message:r},n)}))}}const KD=new AL("MatrixClient");class WD{store;eventEmitter;userService;roomService;eventService;httpClient;isActive=!0;_isReady=new CM;constructor(e,t,r,n,i,o){this.store=e,this.eventEmitter=t,this.userService=r,this.roomService=n,this.eventService=i,this.httpClient=o,this.store.onStateChanged(((e,t,r)=>{this.eventEmitter.onStateChanged(e,t,r)}),"rooms")}static create(e){const t=new DD(e.storage),r=new qD,n=new BD(e.baseUrl),i=new UD(n),o=new FD(n),a=new $D(n);return new WD(t,r,i,o,a,n)}get joinedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===MD.JOINED)))}))}get invitedRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===MD.INVITED)))}))}get leftRooms(){return new Promise((async e=>{await this.isConnected(),e(Object.values(this.store.get("rooms")).filter((e=>e.status===MD.LEFT)))}))}async start(e){const t=await this.userService.login(e.id,e.password,e.deviceId);await this.store.update({accessToken:t.access_token});const r=new Promise((async(e,t)=>{await this.poll(0,(async t=>{this.store.get("isRunning")||e(),await this.store.update({isRunning:!0,syncToken:t.next_batch,pollingTimeout:3e4,pollingRetries:0,rooms:LD.fromSync(t.rooms)})}),(async e=>{this.store.get("isRunning")||t(e),await this.store.update({isRunning:!1,pollingRetries:this.store.get("pollingRetries")+1})}))}));return r.then((()=>{this._isReady.resolve()})).catch(console.error),r}async isConnected(){return this._isReady.promise}async stop(){return KD.log("MATRIX CLIENT STOPPED"),this.isActive=!1,this._isReady=new CM,this.httpClient.cancelAllRequests()}subscribe(e,t){this.eventEmitter.on(e,t)}unsubscribe(e,t){t&&this.eventEmitter.removeListener(e,t)}unsubscribeAll(e){this.eventEmitter.removeListener(e)}async getRoomById(e){return await this.isConnected(),this.store.getRoom(e)}async createTrustedPrivateRoom(...e){return await this.isConnected(),this.requiresAuthorization("createRoom",(async t=>(await this.roomService.createRoom(t,{room_version:"5",invite:e,preset:"public_chat",is_direct:!0})).room_id))}async inviteToRooms(e,...t){await this.isConnected(),await this.requiresAuthorization("invite",(r=>Promise.all(t.map((t=>{const n=this.store.getRoom(t);this.roomService.inviteToRoom(r,e,n).catch((e=>KD.warn("inviteToRooms",e)))})))))}async joinRooms(...e){await this.isConnected(),await this.requiresAuthorization("join",(t=>Promise.all(e.map((e=>{const r=this.store.getRoom(e);return this.roomService.joinRoom(t,r)})))))}async sendTextMessage(e,t){await this.isConnected(),await this.requiresAuthorization("send",(async r=>{const n=await this.createTxnId();return this.eventService.sendMessage(r,e,{msgtype:"m.text",body:t},n)}))}async poll(e,t,r){const n=this.store,i=this.sync.bind(this),o=async(a,s)=>{let c=0;try{const e=await i();t(e)}catch(l){r(l),c=n.get("pollingRetries"),this.isActive&&KD.log(`Retry syncing... ${c} retries so far`)}finally{this.isActive?setTimeout((async()=>{await o(a,s)}),c>3?5e3+e:e):s(new Error("Syncing stopped manually."))}};return new Promise(o)}async sync(){return this.requiresAuthorization("sync",(async e=>this.eventService.sync(e,{pollingTimeout:this.store.get("pollingTimeout"),syncToken:this.store.get("syncToken")})))}async requiresAuthorization(e,t){const r=this.store.get("accessToken");return r?t(r):Promise.reject(`${e} requires authorization but no access token has been provided.`)}async createTxnId(){const e=(new Date).getTime(),t=this.store.get("txnNo");return await this.store.update({txnNo:t+1}),`m${e}.${t}`}}var GD=r(4240).Buffer;const YD=new AL("P2PCommunicationClient"),ZD={[sL.EUROPE_WEST]:["beacon-node-1.diamond.papers.tech","beacon-node-1.sky.papers.tech","beacon-node-2.sky.papers.tech","beacon-node-1.hope.papers.tech","beacon-node-1.hope-2.papers.tech","beacon-node-1.hope-3.papers.tech","beacon-node-1.hope-4.papers.tech","beacon-node-1.hope-5.papers.tech"],[sL.NORTH_AMERICA_EAST]:["beacon-node-1.beacon-server-1.papers.tech"],[sL.NORTH_AMERICA_WEST]:["beacon-node-1.beacon-server-2.papers.tech"],[sL.ASIA_EAST]:["beacon-node-1.beacon-server-3.papers.tech"],[sL.AUSTRALIA]:["beacon-node-1.beacon-server-4.papers.tech"]},XD=e=>new Promise((t=>setTimeout(t,e)));class JD extends FL{name;replicationCount;storage;iconUrl;appUrl;client=new CM;initialEvent;initialListener;selectedRegion;ENABLED_RELAY_SERVERS;relayServer;activeListeners=new Map;ignoredRooms=[];loginCounter=0;constructor(e,t,r,n,i,o,a){super(t),this.name=e,this.replicationCount=r,this.storage=n,this.iconUrl=o,this.appUrl=a,YD.log("constructor","P2PCommunicationClient created"),this.ENABLED_RELAY_SERVERS=ZD,i&&(this.ENABLED_RELAY_SERVERS={...ZD,...i})}async getPairingRequestInfo(){const e=new nL(await VM(),this.name,await this.getPublicKey(),"3",(await this.getRelayServer()).server);return this.iconUrl&&(e.icon=this.iconUrl),this.appUrl&&(e.appUrl=this.appUrl),e}async getPairingResponseInfo(e){const t=new cL(e.id,this.name,await this.getPublicKey(),e.version,(await this.getRelayServer()).server);return this.iconUrl&&(t.icon=this.iconUrl),this.appUrl&&(t.appUrl=this.appUrl),t}async findBestRegionAndGetServer(){if(this.selectedRegion)return this.relayServer?.promiseResult;const e=Object.keys(this.ENABLED_RELAY_SERVERS),t=[],r=new CM;let n=0;const i=new CM;e.forEach((e=>{const o=this.ENABLED_RELAY_SERVERS[e]??[];if(0===o.length)return;n+=2;const a=(o=!0)=>{const c=Date.now();Promise.race([this.getBeaconInfo(s),i.promise]).then((i=>{"boolean"!==typeof i&&(t.push({time:Date.now()-c,server:s,region:e,result:i}),t.length>=n&&r.resolve(void 0),o||a(!0))}))},s=o[Math.floor(Math.random()*o.length)];a(!1)})),await Promise.race([r.promise,XD(1e3)]);let o=0;for(;t.length<=0;){if(o>=100)throw new Error("No server responded.");await XD(50),o++}i.resolve(!0);const a=t.reduce(((e,t)=>e.time0){const t=await this.getBeaconInfo(e);return this.relayServer.resolve({server:e,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:e,timestamp:t.timestamp}}const t=await this.findBestRegionAndGetServer();if(!t)throw new Error("No servers found");return this.storage.set(eL.MATRIX_SELECTED_NODE,t.server).catch((e=>YD.log(e))),this.relayServer.resolve({server:t.server,timestamp:t.timestamp,localTimestamp:(new Date).getTime()}),{server:t.server,timestamp:t.timestamp}}async getBeaconInfo(e){return TD.get(`https://${e}/_synapse/client/beacon/info`).then((e=>({region:e.data.region,known_servers:e.data.known_servers,timestamp:Math.floor(e.data.timestamp)})))}async tryJoinRooms(e,t=1){try{await(await this.client.promise).joinRooms(e)}catch(r){t<=10&&"M_FORBIDDEN"===r.errcode?(YD.log("Retrying to join...",r),setTimeout((async()=>{await this.tryJoinRooms(e,t+1)}),200)):YD.log(`Failed to join after ${t} tries.`,r)}}async start(){YD.log("start","starting client"),YD.log("start","connecting to server");const e=await this.getRelayServer(),t=WD.create({baseUrl:`https://${e.server}`,storage:this.storage});if(this.initialListener=async e=>{this.initialEvent&&this.initialEvent.timestamp&&e&&e.timestamp?this.initialEvent.timestamp{let t;1===e.content.members.length&&(t=e.content.members[0]),await this.tryJoinRooms(e.content.roomId),t&&(await this.updateRelayServer(t),await this.updatePeerRoom(t,e.content.roomId))})),!e.timestamp)throw new Error("No timestamp received from relay server");const r=Math.floor(e.timestamp),n=`login:${Math.floor(r/300)}`;YD.log("start",`login ${n}, ${await this.getPublicKeyHash()} on ${e.server}`);const i=(0,is.hash)((0,MM.OW)(n),32),o=this.keyPair.secretKey??this.keyPair.privateKey,a=(0,ns.kq)(o,i);try{await t.start({id:await this.getPublicKeyHash(),password:`ed:${DM(a)}:${await this.getPublicKey()}`,deviceId:DM(this.keyPair.publicKey)})}catch(s){if(YD.error("start","Could not log in, retrying"),await this.reset(),!this.selectedRegion)throw new Error("No region selected.");if(this.loginCounter<=(this.ENABLED_RELAY_SERVERS[this.selectedRegion]??[]).length)return this.loginCounter++,void this.start();throw YD.error("start","Tried to log in to every known beacon node, but no login was successful."),new Error("Could not connect to any beacon nodes. Try again later.")}YD.log("start","login successful, client is ready"),this.client.resolve(t)}async stop(){YD.log("stop","stopping client"),this.client.isResolved()&&await(await this.client.promise).stop().catch((e=>YD.error(e))),await this.reset()}async reset(){YD.log("reset","resetting connection"),await this.storage.delete(eL.MATRIX_PEER_ROOM_IDS).catch((e=>YD.log(e))),await this.storage.delete(eL.MATRIX_PRESERVED_STATE).catch((e=>YD.log(e))),await this.storage.delete(eL.MATRIX_SELECTED_NODE).catch((e=>YD.log(e))),this.relayServer=void 0,this.client=new CM,this.initialEvent=void 0,this.initialListener=void 0}async listenForEncryptedMessage(e,t){if(this.activeListeners.has(e))return;YD.log("listenForEncryptedMessage",`start listening for encrypted messages from publicKey ${e}`);const r=await this.createCryptoBoxServer(e,this.keyPair),n=async n=>{if(this.isTextMessage(n.content)&&await this.isSender(n,e)){let o;await this.updateRelayServer(n.content.message.sender),await this.updatePeerRoom(n.content.message.sender,n.content.roomId);try{o=GD.from(n.content.message.content,"hex")}catch{}if(o&&o.length>=40)try{const n=await UM(o,r.receive);YD.log("listenForEncryptedMessage",`received a message from ${e}`,n),t(n)}catch(i){}}};this.activeListeners.set(e,n),(await this.client.promise).subscribe(VD.MESSAGE,n);const i=this.initialEvent;i&&i.timestamp&&(new Date).getTime()-i.timestamp<3e5?(YD.log("listenForEncryptedMessage","Handling previous event"),await n(i)):YD.log("listenForEncryptedMessage","No previous event found");const o=this.initialListener;o&&(await this.client.promise).unsubscribe(VD.MESSAGE,o),this.initialListener=void 0,this.initialEvent=void 0}async unsubscribeFromEncryptedMessage(e){const t=this.activeListeners.get(e);t&&((await this.client.promise).unsubscribe(VD.MESSAGE,t),this.activeListeners.delete(e))}async unsubscribeFromEncryptedMessages(){(await this.client.promise).unsubscribeAll(VD.MESSAGE),this.activeListeners.clear()}async sendMessage(e,t){const r=await this.createCryptoBoxClient(t.publicKey,this.keyPair),n=$M(await zM(GD.from(t.publicKey,"hex")),t.relayServer),i=await this.getRelevantRoom(n);await this.waitForJoin(i);const o=await FM(e,r.send);YD.log("sendMessage","sending encrypted message",t.publicKey,i,e),(await this.client.promise).sendTextMessage(i,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){YD.log("sendMessage","M_FORBIDDEN",i,e),await this.deleteRoomIdFromRooms(i);const t=await this.getRelevantRoom(n);YD.log("sendMessage","Old room deleted, new room created",t),(await this.client.promise).sendTextMessage(t,o).catch((async e=>{YD.log("sendMessage","inner error",t,e)}))}else YD.log("sendMessage","unexpected error",e)}))}async updatePeerRoom(e,t){YD.log("updatePeerRoom",e,t);const r=e.split(":");if(r.length<2||!r[0].startsWith("@"))throw new Error("Invalid sender");const n=await this.storage.get(eL.MATRIX_PEER_ROOM_IDS),i=n[e];i===t&&YD.debug("updatePeerRoom","rooms are the same, not updating"),YD.debug("updatePeerRoom","current room",i,"new room",t),i&&i[1]&&(YD.log("updatePeerRoom",`adding room "${i[1]}" to ignored array`),this.ignoredRooms.push(i[1])),n[e]=t,await this.storage.set(eL.MATRIX_PEER_ROOM_IDS,n)}async deleteRoomIdFromRooms(e){const t=await this.storage.get(eL.MATRIX_PEER_ROOM_IDS),r=Object.entries(t).filter((t=>t[1]!==e)).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{});await this.storage.set(eL.MATRIX_PEER_ROOM_IDS,r),this.ignoredRooms.push(e)}async listenForChannelOpening(e){YD.debug("listenForChannelOpening"),(await this.client.promise).subscribe(VD.MESSAGE,(async t=>{if(this.isTextMessage(t.content)&&await this.isChannelOpenMessage(t.content)){YD.log("listenForChannelOpening","channel opening received, trying to decrypt",JSON.stringify(t)),await this.updateRelayServer(t.content.message.sender),await this.updatePeerRoom(t.content.message.sender,t.content.roomId);const n=t.content.message.content.split(":"),i=GD.from(n[n.length-1],"hex");if(i.length>=40)try{const t=JSON.parse(await async function(e,t,r){const n=(0,ns.gL)(NM.from(r)),i=(0,ns.am)(NM.from(t)),o="string"===typeof e?(0,MM.OW)(e):e,a=o.slice(0,32),s=o.slice(32),c=new is.BLAKE2b(24).update(a,32).update(i,32).digest(),l=(0,RM.openBox)(a,n,c,s);if(!l)throw new Error("Decryption failed");return NM.from(l).toString()}(i,this.keyPair.publicKey,this.keyPair.secretKey));YD.log("listenForChannelOpening","channel opening received and decrypted",JSON.stringify(t)),e({...t,senderId:await kL(t.publicKey)})}catch(r){}}}))}async waitForJoin(e,t=0){const r=await(await this.client.promise).getRoomById(e);if(YD.log("waitForJoin",`Currently ${r.members.length} members, we need at least 2`),!(r.members.length>=2)){if(t<=200)return YD.log(`Waiting for join... Try: ${t}`),new Promise((r=>{setTimeout((()=>{r(this.waitForJoin(e,t+1))}),100*(t>50?10:1))}));throw new Error(`No one joined after ${t} tries.`)}}async sendPairingResponse(e){YD.log("sendPairingResponse");const t=$M(await zM(GD.from(e.publicKey,"hex")),e.relayServer),r=await(await this.client.promise).createTrustedPrivateRoom(t);YD.debug("sendPairingResponse",`Connecting to room "${r}"`),await this.updatePeerRoom(t,r),await this.waitForJoin(r),YD.debug("sendPairingResponse","Successfully joined room.");const n="undefined"===typeof e.version?await this.getPublicKey():JSON.stringify(await this.getPairingResponseInfo(e));YD.debug("sendPairingResponse","Sending pairing response",n);const i=await this.encryptMessageAsymmetric(e.publicKey,n),o=["@channel-open",t,i].join(":");(await this.client.promise).sendTextMessage(r,o).catch((async e=>{if("M_FORBIDDEN"===e.errcode){YD.log("sendPairingResponse","M_FORBIDDEN",r,e),await this.deleteRoomIdFromRooms(r);const n=await this.getRelevantRoom(t);YD.log("sendPairingResponse","Old room deleted, new room created",n),(await this.client.promise).sendTextMessage(n,o).catch((async e=>{YD.log("sendPairingResponse","inner error",n,e)}))}else YD.log("sendPairingResponse","unexpected error",e)}))}isTextMessage(e){return e.message.type===CD.TEXT}async updateRelayServer(e){YD.log("updateRelayServer",e);const t=e.split(":");if(t.length<2||!t[0].startsWith("@"))throw new Error("Invalid sender");const r=t.shift(),n=t.join(":"),i=localStorage.getItem("beacon:communication-peers-dapp")?new DL(this.storage,eL.TRANSPORT_P2P_PEERS_DAPP):new DL(this.storage,eL.TRANSPORT_P2P_PEERS_WALLET),o=(await i.getPeers()).map((async e=>{`@${await zM(GD.from(e.publicKey,"hex"))}`===r&&e.relayServer!==n&&(e.relayServer=n,await i.addPeer(e))}));await Promise.all(o)}async isChannelOpenMessage(e){return e.message.content.startsWith(`@channel-open:@${await zM(GD.from(await this.getPublicKey(),"hex"))}`)}async isSender(e,t){return e.content.message.sender.startsWith(`@${await zM(GD.from(t,"hex"))}`)}async getRelevantRoom(e){const t=await this.storage.get(eL.MATRIX_PEER_ROOM_IDS);let r=t[e];if(!r){YD.log("getRelevantRoom",`No room found for peer ${e}, checking joined ones.`);const n=await this.getRelevantJoinedRoom(e);r=n.id,t[e]=n.id,await this.storage.set(eL.MATRIX_PEER_ROOM_IDS,t)}return YD.log("getRelevantRoom",`Using room ${r}`),r}async getRelevantJoinedRoom(e){const t=await(await this.client.promise).joinedRooms;YD.log("checking joined rooms",t,e);const r=t.filter((e=>!this.ignoredRooms.some((t=>e.id===t)))).filter((t=>t.members.some((t=>t===e))));let n;if(0===r.length||this.ignoredRooms.length>0){YD.log("getRelevantJoinedRoom","no relevant rooms found, creating new one");const t=await(await this.client.promise).createTrustedPrivateRoom(e);n=await(await this.client.promise).getRoomById(t),YD.log("getRelevantJoinedRoom",`waiting for other party to join room: ${n.id}`),await this.waitForJoin(t),YD.log("getRelevantJoinedRoom",`new room created and peer invited: ${n.id}`)}else n=r[0],YD.log("getRelevantJoinedRoom",`channel already open, reusing room ${n.id}`);return n}}const QD=new AL("P2PTransport");class ez extends jL{type=QM.P2P;constructor(e,t,r,n,i,o,a){super(e,new JD(e,t,1,r,n,o,a),new DL(r,i))}static async isAvailable(){return Promise.resolve(!0)}async connect(){if(this._isConnected!==JM.NOT_CONNECTED)return;QD.log("connect"),this._isConnected=JM.CONNECTING,await this.client.start();const e=await this.getPeers();if(e.length>0){QD.log("connect",`connecting to ${e.length} peers`);const t=e.map((async e=>this.listen(e.publicKey)));Promise.all(t).catch((e=>QD.error("connect",e)))}return await this.startOpenChannelListener(),super.connect()}async disconnect(){return await this.client.stop(),super.disconnect()}async startOpenChannelListener(){}async getPairingRequestInfo(){return this.client.getPairingRequestInfo()}async listen(e){await this.client.listenForEncryptedMessage(e,(t=>{const r={origin:YM.P2P,id:e};this.notifyListeners(t,r).catch((e=>{throw e}))})).catch((e=>{throw e}))}}class tz extends ez{constructor(e,t,r,n,i,o){super(e,t,r,n,eL.TRANSPORT_P2P_PEERS_WALLET,i,o)}async addPeer(e,t=!0){await super.addPeer(e),t&&await this.client.sendPairingResponse(e)}}const rz=new AL("IncomingRequestInterceptor");class nz{static async intercept(e){rz.log("INTERCEPTING REQUEST",e.message),"2"===e.message.version?nz.handleV2Message(e):"3"===e.message.version&&nz.handleV3Message(e)}static async getAppMetadata(e,t){const r=await e.getAppMetadata(t);if(!r)throw new Error("AppMetadata not found");return r}static async handleV2Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e;switch(t.type){case qM.PermissionRequest:rz.log("PERMISSION REQUEST V*",t),t.appMetadata.beaconId&&!t.appMetadata.senderId&&(t.appMetadata.senderId=t.appMetadata.beaconId,delete t.appMetadata.beaconId),await n.addAppMetadata(t.appMetadata);i(t,r);break;case qM.OperationRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.SignPayloadRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.BroadcastRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.ProofOfEventChallengeRequest:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;case qM.ProofOfEventChallengeRecorded:i({appMetadata:await nz.getAppMetadata(n,t.senderId),...t},r);break;default:rz.log("intercept","Message not handled"),iz(t)}}static async handleV3Message(e){const{message:t,connectionInfo:r,appMetadataManager:n,interceptorCallback:i}=e,o=t,a=o.message;switch(a.type){case qM.PermissionRequest:await n.addAppMetadata({...a.blockchainData.appMetadata,senderId:t.senderId});i(o,r);break;case qM.BlockchainRequest:i({...o},r);break;default:rz.log("intercept","Message not handled"),iz(a)}}}function iz(e){throw new Error("Function not implemented.")}const oz=new AL("OutgoingResponseInterceptor");class az{static async intercept(e){"2"===e.request.version?az.handleV2Message(e):"3"===e.request.version&&az.handleV3Message(e)}static async handleV3Message(e){const{message:t,appMetadataManager:r,interceptorCallback:n}=e,i=t.message;oz.log("LOGGING OUTGOING V3",i,r),n(t)}static async handleV2Message(e){const{senderId:t,request:r,message:n,ownAppMetadata:i,permissionManager:o,appMetadataManager:a,interceptorCallback:s}=e;switch(n.type){case qM.Error:{const e={type:n.type,version:"2",senderId:t,id:n.id,errorType:n.errorType};if(n.errorType===XM.TRANSACTION_INVALID_ERROR&&n.errorData){const t=n.errorData;Array.isArray(t)&&t.every((e=>Boolean(e.kind)&&Boolean(e.id)))?e.errorData=n.errorData:oz.warn("ErrorData provided is not in correct format. It needs to be an array of RPC errors. It will not be included in the message sent to the dApp")}s(e);break}case qM.Acknowledge:s({type:n.type,version:"2",senderId:t,id:n.id});break;case qM.PermissionResponse:{const e={senderId:t,version:"2",appMetadata:i,...n};if(!e.address&&!e.publicKey)throw new Error("Address or PublicKey must be defined");const c=e.publicKey,l=e.address??await async function(e){const t={edpk:{length:54,prefix:NM.from(new Uint8Array([6,161,159]))},sppk:{length:55,prefix:NM.from(new Uint8Array([6,161,161]))},p2pk:{length:55,prefix:NM.from(new Uint8Array([6,161,164]))}};let r,n;if(64===e.length)r=t.edpk.prefix,n=e;else{const i=Object.entries(t);for(let t=0;t{if(!["tz1","tz2","tz3","tz4","KT1","txr1","sr1"].some((t=>e.toLowerCase().startsWith(t.toLowerCase()))))return!1;try{jM.decode(e)}catch(t){return!1}return!0})(l))throw new Error(`Invalid address: "${l}"`);if("abstracted_account"===n.walletType&&"KT1"!==l.substring(0,3))throw new Error(`Invalid abstracted account address "${l}", it should be a KT1 address`);const u=await a.getAppMetadata(r.senderId);if(!u)throw new Error("AppMetadata not found");const d={accountIdentifier:await wL(l,e.network),senderId:r.senderId,appMetadata:u,website:"",address:l,publicKey:c,network:e.network,scopes:e.scopes,connectedAt:(new Date).getTime()};o.addPermission(d).catch(console.error),s(e);break}case qM.OperationResponse:s({senderId:t,version:"2",...n});break;case qM.SignPayloadResponse:s({senderId:t,version:"2",...n});break;case qM.BroadcastResponse:s({senderId:t,version:"2",...n});break;case qM.ProofOfEventChallengeResponse:s({senderId:t,version:"2",...n});break;default:oz.log("intercept","Message not handled"),function(e){throw new Error("Function not implemented.")}()}}}const sz=new AL("WalletClient");class cz extends TL{_isConnected=new CM;get isConnected(){return this._isConnected.promise}permissionManager;appMetadataManager;pendingRequests=[];constructor(e){super({storage:e&&e.storage?e.storage:new RL,...e}),this.permissionManager=new NL(this.storage),this.appMetadataManager=new LL(this.storage)}async init(){const e=await this.keyPair,t=new tz(this.name,e,this.storage,this.matrixNodes,this.iconUrl,this.appUrl);return super.init(t)}async connect(e){return this.handleResponse=async(t,r)=>{if("3"===t.version){const n=t;if(n.message.type===qM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),await this.sendAcknowledgeResponse(n,r),await nz.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}else{const n=t;if(n.type===qM.Disconnect)return this.disconnect(n.senderId);this.pendingRequests.some((e=>e[0].id===t.id))||(this.pendingRequests.push([n,r]),"1"!==n.version&&await this.sendAcknowledgeResponse(n,r),await nz.intercept({message:n,connectionInfo:r,appMetadataManager:this.appMetadataManager,interceptorCallback:e}))}},this._connect()}async getRegisterPushChallenge(e,t,r=fL){const n=(await xj.get(`${r}/challenge`)).data,i=DM(["Tezos Signed Message: ",n.id,n.timestamp,t,e].join(" "));return{challenge:n,payloadToSign:"0501"+i.length.toString(16).padStart(8,"0")+i}}async registerPush(e,t,r,n,i,o,a=fL){const s=await this.storage.get(eL.PUSH_TOKENS),c=s.find((e=>e.publicKey===n&&e.backendUrl===r));if(c)return c;const l=(await xj.post(`${a}/register`,{name:this.name,challenge:e,accountPublicKey:n,signature:t,backendUrl:r,protocolIdentifier:i,deviceId:o})).data,u={publicKey:n,backendUrl:r,accessToken:l.accessToken,managementToken:l.managementToken};return s.push(u),await this.storage.set(eL.PUSH_TOKENS,s),u}async _connect(){const e=await this.transport;e.connectionStatus===JM.NOT_CONNECTED&&(await e.connect(),e.addListener((async(e,t)=>{if("string"===typeof e){const r=await(new ML).deserialize(e);this.handleResponse(r,t)}})).catch((e=>sz.log("_connect",e))),this._isConnected.resolve(!0))}async respond(e){sz.log("RESPONSE",e);const t=this.pendingRequests.find((t=>t[0].id===e.id));if(!t)throw new Error("No matching request found!");this.pendingRequests=this.pendingRequests.filter((t=>t[0].id!==e.id)),await az.intercept({senderId:await kL(await this.beaconId),request:t[0],message:e,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t[1])}})}async getAppMetadataList(){return this.appMetadataManager.getAppMetadataList()}async getAppMetadata(e){return this.appMetadataManager.getAppMetadata(e)}async removeAppMetadata(e){return this.appMetadataManager.removeAppMetadata(e)}async removeAllAppMetadata(){return this.appMetadataManager.removeAllAppMetadata()}async getPermissions(){return this.permissionManager.getPermissions()}async getPermission(e){return this.permissionManager.getPermission(e)}async removePermission(e){return this.permissionManager.removePermission(e)}async removeAllPermissions(){return this.permissionManager.removeAllPermissions()}async getPeerInfo(e){const t=await kL(e.publicKey);return e instanceof lL?new uL(e.id,e.name,e.publicKey,e.version,t):e instanceof nL?new iL(e.id,e.name,e.publicKey,e.version,e.relayServer,t):e instanceof hL?new hL(e.id,e.name,e.publicKey,e.version,t,e.uri):{...e,senderId:t}}async addPeer(e,t=!0){return(await this.transport).addPeer(await this.getPeerInfo(e),t)}async removePeer(e,t=!1){const r=(await this.transport).removePeer(e);return await this.removePermissionsForPeers([e]),t&&await this.sendDisconnectToPeer(e),r}async removeAllPeers(e=!1){const t=await(await this.transport).getPeers(),r=(await this.transport).removeAllPeers();if(await this.removePermissionsForPeers(t),e){const e=t.map((e=>this.sendDisconnectToPeer(e)));await Promise.all(e)}return r}async removePermissionsForPeers(e){const t=await this.permissionManager.getPermissions(),r=e.map((e=>e.senderId)),n=t.filter((e=>r.includes(e.appMetadata.senderId))).map((e=>e.accountIdentifier));await this.permissionManager.removePermissions(n)}async sendAcknowledgeResponse(e,t){const r={id:e.id,type:qM.Acknowledge};await az.intercept({senderId:await kL(await this.beaconId),request:e,message:r,ownAppMetadata:await this.getOwnAppMetadata(),permissionManager:this.permissionManager,appMetadataManager:this.appMetadataManager,interceptorCallback:async e=>{await this.respondToMessage(e,t)}})}async respondToMessage(e,t){const r=await(new ML).serialize(e);if(t){const e=(await this.getPeers()).find((e=>e.publicKey===t.id));await(await this.transport).send(r,e)}else await(await this.transport).send(r)}async disconnect(e){const t=await this.transport,r=(await t.getPeers()).find((t=>t.senderId===e));r&&await this.removePeer(r)}}function lz(e){const{theme:t}=Tn(),r=SP();return(0,i.useMemo)((()=>function(e,t){const r=r=>{var n;return{...t,...r,position:HA(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{const t=r(e),n=sP(t);return iP.notify(n,t)};return n.update=(e,t)=>{iP.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then((e=>n.update(r,{status:"success",duration:5e3,...x(t.success,e)}))).catch((e=>n.update(r,{status:"error",duration:5e3,...x(t.error,e)})))},n.closeAll=iP.closeAll,n.close=iP.close,n.isActive=iP.isActive,n}(t.direction,{...r,...e})),[e,t.direction,r])}var uz={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:null!=(o=null==r?void 0:r.exit)?o:_I(wI.exit,i),transitionEnd:null==n?void 0:n.exit}},enter:({transition:e,transitionEnd:t,delay:r})=>{var n;return{opacity:1,x:0,y:0,transition:null!=(n=null==e?void 0:e.enter)?n:xI(wI.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:i,delay:o})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==r?void 0:r.exit)?a:_I(wI.exit,o),...i?{...s,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{...s,...null==n?void 0:n.exit}}}}},dz={initial:"initial",animate:"enter",exit:"exit",variants:uz},hz=(0,i.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,className:o,offsetX:a=0,offsetY:s=8,transition:c,transitionEnd:l,delay:u,...d}=e,h=!r||n&&r,f=n||r?"enter":"exit",p={offsetX:a,offsetY:s,reverse:i,transition:c,transitionEnd:l,delay:u};return(0,xn.jsx)(pP,{custom:p,children:h&&(0,xn.jsx)(FA.div,{ref:t,className:y("chakra-offset-slide",o),custom:p,...dz,animate:f,...d})})}));hz.displayName="SlideFade";var fz={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:null==n?void 0:n.exit}:{transitionEnd:{scale:t,...null==n?void 0:n.exit}},transition:null!=(o=null==r?void 0:r.exit)?o:_I(wI.exit,i)}},enter:({transitionEnd:e,transition:t,delay:r})=>{var n;return{opacity:1,scale:1,transition:null!=(n=null==t?void 0:t.enter)?n:xI(wI.enter,r),transitionEnd:null==e?void 0:e.enter}}},pz={initial:"exit",animate:"enter",exit:"exit",variants:fz},mz=(0,i.forwardRef)((function(e,t){const{unmountOnExit:r,in:n,reverse:i=!0,initialScale:o=.95,className:a,transition:s,transitionEnd:c,delay:l,...u}=e,d=!r||n&&r,h=n||r?"enter":"exit",f={initialScale:o,reverse:i,transition:s,transitionEnd:c,delay:l};return(0,xn.jsx)(pP,{custom:f,children:d&&(0,xn.jsx)(FA.div,{ref:t,className:y("chakra-offset-slide",a),...pz,animate:h,custom:f,...u})})}));mz.displayName="ScaleFade";var gz={slideInBottom:{...dz,custom:{offsetY:16,reverse:!0}},slideInRight:{...dz,custom:{offsetX:16,reverse:!0}},slideInTop:{...dz,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...dz,custom:{offsetX:-16,reverse:!0}},scale:{...pz,custom:{initialScale:.95,reverse:!0}},none:{}},vz=wn(FA.section),yz=e=>gz[e||"none"],bz=(0,i.forwardRef)(((e,t)=>{const{preset:r,motionProps:n=yz(r),...i}=e;return(0,xn.jsx)(vz,{ref:t,...n,...i})}));function wz(){return wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0})).sort(Xz)},Qz=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),eB="".concat(Qz,", [data-focus-guard]"),tB=function(e,t){return Nz((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?eB:Qz)?[r]:[],tB(r))}),[])},rB=function(e,t){return e.reduce((function(e,r){var n,i=tB(r,t),o=(n=[]).concat.apply(n,i.map((function(e){return function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?rB([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(o,r.parentNode?Nz(r.parentNode.querySelectorAll(Qz)).filter((function(e){return e===r})):[])}),[])},nB=function(e,t){return Nz(e).filter((function(e){return $z(t,e)})).filter((function(e){return function(e){return!((qz(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},iB=function(e,t){return void 0===t&&(t=new Map),Nz(e).filter((function(e){return Hz(t,e)}))},oB=function(e,t,r){return Jz(nB(rB(e,r),t),!0,r)},aB=function(e,t){return Jz(nB(rB(e),t),!1)},sB=function(e,t){return nB(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return Nz(t).map((function(e){return rB([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},cB=function(e,t){return e.shadowRoot?cB(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||Nz(e.children).some((function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&cB(n,t)}return cB(e,t)}))},lB=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?lB(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(Mde){return}}((function(){return t.contentWindow.document}))?lB(t.contentWindow.document):t}},uB=function(e){return e.parentNode?uB(e.parentNode):e},dB=function(e){return Dz(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(xz);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}(Nz(uB(t).querySelectorAll("[".concat(xz,'="').concat(r,'"]:not([').concat(_z,'="disabled"])')))):[t]),e}),[])},hB=function(e,t){return void 0===t&&(t=lB(zz(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&dB(e).some((function(e){return cB(e,t)||function(e,t){return Boolean(Nz(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},fB=function(e,t){return Kz(e)&&e.name?function(e,t){return t.filter(Kz).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},pB=function(e){return e[0]&&e.length>1?fB(e[0],e):e[0]},mB=function(e,t){return e.length>1?e.indexOf(fB(e[t],e)):t},gB="NEW_FOCUS",vB=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=Gz(r);if(!(r&&e.indexOf(r)>=0)){var c=void 0!==r?t.indexOf(r):-1,l=n?t.indexOf(n):c,u=n?e.indexOf(n):-1,d=c-l,h=t.indexOf(o),f=t.indexOf(a),p=function(e){var t=new Set;return e.forEach((function(r){return t.add(fB(r,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==r?p.indexOf(r):-1)-(n?p.indexOf(n):c),g=mB(e,0),v=mB(e,i-1);return-1===c||-1===u?gB:!d&&u>=0?u:c<=h&&s&&Math.abs(d)>1?v:c>=f&&s&&Math.abs(d)>1?g:d&&Math.abs(m)>1?u:c<=h?v:c>f?g:d?Math.abs(d)>1?u:(i+u+d)%i:void 0}},yB=function(e,t,r){var n,i=e.map((function(e){return e.node})),o=iB(i.filter((n=r,function(e){var t,r=null===(t=Vz(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0})));return o&&o.length?pB(o):pB(iB(t))},bB=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&bB(e.parentNode.host||e.parentNode,t),t},wB=function(e,t){for(var r=bB(e),n=bB(t),i=0;i=0)return o}return!1},xB=function(e,t,r){var n=Dz(e),i=Dz(t),o=n[0],a=!1;return i.filter(Boolean).forEach((function(e){a=wB(a||e,e)||a,r.filter(Boolean).forEach((function(e){var t=wB(o,e);t&&(a=!a||cB(t,a)?t:wB(t,a))}))})),a},_B=function(e,t){var r=lB(Dz(e).length>0?document:zz(e).ownerDocument),n=dB(e).filter(Yz),i=xB(r||e,e,n),o=new Map,a=aB(n,o),s=oB(n,o).filter((function(e){var t=e.node;return Yz(t)}));if(s[0]||(s=a)[0]){var c=aB([i],o).map((function(e){return e.node})),l=function(e,t){var r=new Map;return t.forEach((function(e){return r.set(e.node,e)})),e.map((function(e){return r.get(e)})).filter(Zz)}(c,s),u=l.map((function(e){return e.node})),d=vB(u,c,r,t);if(d===gB){var h=yB(a,u,function(e,t){return e.reduce((function(e,r){return e.concat(sB(r,t))}),[])}(n,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:l[d]}},SB=0,kB=!1,EB=function(e,t,r){void 0===r&&(r={});var n,i,o=_B(e,t);if(!kB&&o){if(SB>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),kB=!0,void setTimeout((function(){kB=!1}),1);SB++,n=o.node,i=r.focusOptions,"focus"in n&&n.focus(i),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),SB--}};function AB(e){setTimeout(e,1)}var PB=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=lB(e);return!!t&&Nz(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return cB(e,t)}))}()},OB=null,TB=null,CB=null,jB=!1,RB=function(){return!0};function IB(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var MB=function(e){return e&&"current"in e?e.current:e},LB=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},NB=function(){var e,t=!1;if(OB){var r=OB,n=r.observed,i=r.persistentFocus,o=r.autoFocus,a=r.shards,s=r.crossFrame,c=r.focusOptions,l=n||CB&&CB.portaledElement,u=document&&document.activeElement;if(l){var d=[l].concat(a.map(MB).filter(Boolean));if(u&&!function(e){return(OB.whiteList||RB)(e)}(u)||(i||(s?Boolean(jB):"meanwhile"===jB)||!PB()||!TB&&o)&&(l&&!(hB(d)||u&&function(e,t){return t.some((function(t){return LB(e,t,t)}))}(u,d)||(e=u,CB&&CB.portaledElement===e))&&(document&&!TB&&u&&!o?(u.blur&&u.blur(),document.body.focus()):(t=EB(d,TB,{focusOptions:c}),CB={})),jB=!1,TB=document&&document.activeElement),document){var h=document&&document.activeElement,f=function(e){var t=dB(e).filter(Yz),r=xB(e,e,t),n=new Map,i=oB([r],n,!0),o=oB(t,n).filter((function(e){var t=e.node;return Yz(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Gz(t)}}))}(d),p=f.map((function(e){return e.node})).indexOf(h);p>-1&&(f.filter((function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),IB(p,f.length,1,f),IB(p,-1,-1,f))}}}return t},DB=function(e){NB()&&e&&(e.stopPropagation(),e.preventDefault())},zB=function(){return AB(NB)},BB=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||(CB={observerNode:r,portaledElement:t})},FB=function(){jB="just",AB((function(){jB="meanwhile"}))};Ez.assignSyncMedium(BB),Az.assignMedium(zB),Pz.assignMedium((function(e){return e({moveFocusInside:EB,focusInside:hB})}));const UB=Lz((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!OB&&(document.addEventListener("focusin",DB),document.addEventListener("focusout",zB),window.addEventListener("blur",FB));var r=OB,n=r&&t&&t.id===r.id;OB=t,r&&!n&&(r.onDeactivation(),e.filter((function(e){return e.id===r.id})).length||r.returnFocus(!t)),t?(TB=null,n&&r.observed===t.observed||t.onActivation(),NB(),AB(NB)):(document.removeEventListener("focusin",DB),document.removeEventListener("focusout",zB),window.removeEventListener("blur",FB),TB=null)}))((function(){return null}));var $B=i.forwardRef((function(e,t){return i.createElement(jz,wz({sideCar:UB,ref:t},e))})),HB=jz.propTypes||{};HB.sideCar,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r])}(HB,["sideCar"]);$B.propTypes={};const VB=$B;function qB(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function KB(e){var t;if(!qB(e))return!1;return e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function WB(e){return qB(e)?e.ownerDocument:document}var GB=e=>e.hasAttribute("tabindex"),YB=e=>GB(e)&&-1===e.tabIndex;function ZB(e){return!(!e.parentElement||!ZB(e.parentElement))||e.hidden}function XB(e){if(!KB(e)||ZB(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||GB(e)}var JB,QB=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),eF=e=>e.offsetWidth>0&&e.offsetHeight>0;function tF(e){const t=Array.from(e.querySelectorAll(QB));return t.unshift(e),t.filter((e=>XB(e)&&eF(e)))}var rF=null!=(JB=VB.default)?JB:VB,nF=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:a,isDisabled:s,autoFocus:c,persistentFocus:l,lockFocusAcrossFrames:u}=e,d=(0,i.useCallback)((()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==n?void 0:n.current){0===tF(n.current).length&&requestAnimationFrame((()=>{var e;null==(e=n.current)||e.focus()}))}}),[t,n]),h=(0,i.useCallback)((()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()}),[r]),f=o&&!r;return(0,xn.jsx)(rF,{crossFrame:u,persistentFocus:l,autoFocus:c,disabled:s,onActivation:d,onDeactivation:h,returnFocus:f,children:a})};nF.displayName="FocusLock";function iF(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:c,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:h}=hI(),[f,p]=Pb();(0,i.useEffect)((()=>{!f&&p&&setTimeout(p)}),[f,p]);const m=QR(n,h);return(0,xn.jsx)(nF,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:c,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:d,children:(0,xn.jsx)(kM,{removeScrollBar:!u,allowPinchZoom:s,enabled:1===m&&a,forwardProps:!0,children:e.children})})}var oF=v(((e,t)=>{const{className:r,children:n,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c}=hI(),l=s(a,t),u=c(i),d=y("chakra-modal__content",r),h=uI(),f={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:m}=hI();return(0,xn.jsx)(iF,{children:(0,xn.jsx)(wn.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:(0,xn.jsx)(bz,{preset:m,motionProps:o,className:d,...l,__css:f,children:n})})})}));oF.displayName="ModalContent";var aF=v(((e,t)=>{const{onClick:r,className:n,...i}=e,{onClose:o}=hI(),a=y("chakra-modal__close-btn",n),s=uI();return(0,xn.jsx)(nP,{ref:t,__css:s.closeButton,className:a,onClick:E(r,(e=>{e.stopPropagation(),o()})),...i})}));aF.displayName="ModalCloseButton";var sF=v(((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:a}=hI();(0,i.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=y("chakra-modal__header",r),c={flex:0,...uI().header};return(0,xn.jsx)(wn.header,{ref:t,className:s,id:o,...n,__css:c})}));function cF(e){const t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}sF.displayName="ModalHeader";var lF=v((function(e,t){const r=In("Text",e),{className:n,align:i,decoration:o,casing:a,...s}=ft(e),c=cF({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,xn.jsx)(wn.p,{ref:t,className:y("chakra-text",e.className),...c,...s,__css:r})}));lF.displayName="Text";var uF=v(((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:a}=hI();(0,i.useEffect)((()=>(a(!0),()=>a(!1))),[a]);const s=y("chakra-modal__body",r),c=uI();return(0,xn.jsx)(wn.div,{ref:t,className:s,id:o,...n,__css:c.body})}));uF.displayName="ModalBody";Object.freeze(["base","sm","md","lg","xl","2xl"]);function dF(e,t){return Array.isArray(e)?e.map((e=>null===e?null:t(e))):b(e)?Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n]),r)),{}):null!=e?t(e):null}var hF=v((function(e,t){const{ratio:r=4/3,children:n,className:o,...a}=e,s=i.Children.only(n),c=y("chakra-aspect-ratio",o);return(0,xn.jsx)(wn.div,{ref:t,position:"relative",className:c,_before:{height:0,content:'""',display:"block",paddingBottom:dF(r,(e=>1/e*100+"%"))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...a,children:s})}));hF.displayName="AspectRatio";var fF=Object.defineProperty,pF=(e,t,r)=>(((e,t,r)=>{t in e?fF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r);function mF(e){return e.sort(((e,t)=>{const r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function gF(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function vF(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var yF="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,bF=e=>e,wF=class{constructor(){pF(this,"descendants",new Map),pF(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),pF(this,"unregister",(e=>{this.descendants.delete(e);const t=mF(Array.from(this.descendants.keys()));this.assignIndex(t)})),pF(this,"destroy",(()=>{this.descendants.clear()})),pF(this,"assignIndex",(e=>{this.descendants.forEach((t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()}))})),pF(this,"count",(()=>this.descendants.size)),pF(this,"enabledCount",(()=>this.enabledValues().length)),pF(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),pF(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),pF(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),pF(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),pF(this,"first",(()=>this.item(0))),pF(this,"firstEnabled",(()=>this.enabledItem(0))),pF(this,"last",(()=>this.item(this.descendants.size-1))),pF(this,"lastEnabled",(()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)})),pF(this,"indexOf",(e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1})),pF(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),pF(this,"next",((e,t=!0)=>{const r=gF(e,this.count(),t);return this.item(r)})),pF(this,"nextEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=gF(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)})),pF(this,"prev",((e,t=!0)=>{const r=vF(e,this.count()-1,t);return this.item(r)})),pF(this,"prevEnabled",((e,t=!0)=>{const r=this.item(e);if(!r)return;const n=vF(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)})),pF(this,"registerNode",((e,t)=>{if(!e||this.descendants.has(e))return;const r=mF(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)}))}};var[xF,_F]=Nn({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function SF(){return[bF(xF),()=>bF(_F()),()=>function(){const e=(0,i.useRef)(new wF);return yF((()=>()=>e.current.destroy())),e.current}(),e=>function(e){const t=_F(),[r,n]=(0,i.useState)(-1),o=(0,i.useRef)(null);yF((()=>()=>{o.current&&t.unregister(o.current)}),[]),yF((()=>{if(!o.current)return;const e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||n(e)}));const a=bF(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:Kn(a,o)}}(e)]}var[kF,EF]=Nn({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[AF,PF]=Nn({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[OF,TF,CF,jF]=SF();function RF(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=((e,t)=>e!==t)}=e,a=kb(n),s=kb(o),[c,l]=(0,i.useState)(r),u=void 0!==t,d=u?t:c,h=kb((e=>{const t="function"===typeof e?e(d):e;s(d,t)&&(u||l(t),a(t))}),[u,a,d,s]);return[d,h]}function IF(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:o,allowToggle:a,...s}=e;!function(e){const t=e.index||e.defaultIndex,r=null!=t&&!Array.isArray(t)&&e.allowMultiple;w({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}(e),function(e){w({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);const c=CF(),[l,u]=(0,i.useState)(-1);(0,i.useEffect)((()=>()=>{u(-1)}),[]);const[d,h]=RF({value:n,defaultValue:()=>o?null!=r?r:[]:null!=r?r:-1,onChange:t});return{index:d,setIndex:h,htmlProps:s,getAccordionItemProps:e=>{let t=!1;null!==e&&(t=Array.isArray(d)?d.includes(e):d===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&Array.isArray(d)){const r=t?d.concat(e):d.filter((t=>t!==e));h(r)}else t?h(e):a&&h(-1)}}},focusedIndex:l,setFocusedIndex:u,descendants:c}}var[MF,LF]=Nn({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function NF(e){const{isDisabled:t,isFocusable:r,id:n,...o}=e,{getAccordionItemProps:a,setFocusedIndex:s}=LF(),c=(0,i.useRef)(null),l=(0,i.useId)(),u=null!=n?n:l,d=`accordion-button-${u}`,h=`accordion-panel-${u}`;!function(e){w({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);const{register:f,index:p,descendants:m}=jF({disabled:t&&!r}),{isOpen:g,onChange:v}=a(-1===p?null:p);!function(e){w({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:g,isDisabled:t});const y=(0,i.useCallback)((()=>{null==v||v(!g),s(p)}),[p,s,g,v]),b=(0,i.useCallback)((e=>{const t={ArrowDown:()=>{const e=m.nextEnabled(p);null==e||e.node.focus()},ArrowUp:()=>{const e=m.prevEnabled(p);null==e||e.node.focus()},Home:()=>{const e=m.firstEnabled();null==e||e.node.focus()},End:()=>{const e=m.lastEnabled();null==e||e.node.focus()}},r=t[e.key];r&&(e.preventDefault(),r(e))}),[m,p]),x=(0,i.useCallback)((()=>{s(p)}),[s,p]),_=(0,i.useCallback)((function(e={},r=null){return{...e,type:"button",ref:Kn(f,c,r),id:d,disabled:!!t,"aria-expanded":!!g,"aria-controls":h,onClick:E(e.onClick,y),onFocus:E(e.onFocus,x),onKeyDown:E(e.onKeyDown,b)}}),[d,t,g,y,x,b,h,f]),S=(0,i.useCallback)((function(e={},t=null){return{...e,ref:t,role:"region",id:h,"aria-labelledby":d,hidden:!g}}),[d,g,h]);return{isOpen:g,isDisabled:t,isFocusable:r,onOpen:()=>{null==v||v(!0)},onClose:()=>{null==v||v(!1)},getButtonProps:_,getPanelProps:S,htmlProps:o}}var DF=v((function({children:e,reduceMotion:t,...r},n){const o=Mn("Accordion",r),a=ft(r),{htmlProps:s,descendants:c,...l}=IF(a),u=(0,i.useMemo)((()=>({...l,reduceMotion:!!t})),[l,t]);return(0,xn.jsx)(OF,{value:c,children:(0,xn.jsx)(MF,{value:u,children:(0,xn.jsx)(kF,{value:o,children:(0,xn.jsx)(wn.div,{ref:n,...s,className:y("chakra-accordion",r.className),__css:o.root,children:e})})})})}));DF.displayName="Accordion";var zF=v((function(e,t){const{children:r,className:n}=e,{htmlProps:o,...a}=NF(e),s={...EF().container,overflowAnchor:"none"},c=(0,i.useMemo)((()=>a),[a]);return(0,xn.jsx)(AF,{value:c,children:(0,xn.jsx)(wn.div,{ref:t,...o,className:y("chakra-accordion__item",n),__css:s,children:"function"===typeof r?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})}));zF.displayName="AccordionItem";var BF=v((function(e,t){const{getButtonProps:r}=PF(),n=r(e,t),i={display:"flex",alignItems:"center",width:"100%",outline:0,...EF().button};return(0,xn.jsx)(wn.button,{...n,className:y("chakra-accordion__button",e.className),__css:i})}));function FF(e){const{isOpen:t,isDisabled:r}=PF(),{reduceMotion:n}=LF(),i=y("chakra-accordion__icon",e.className),o={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...EF().icon};return(0,xn.jsx)(qA,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}BF.displayName="AccordionButton",FF.displayName="AccordionIcon";var UF=e=>null!=e&&parseInt(e.toString(),10)>0,$F={exit:{height:{duration:.2,ease:pI.ease},opacity:{duration:.3,ease:pI.ease}},enter:{height:{duration:.3,ease:pI.ease},opacity:{duration:.4,ease:pI.ease}}},HF={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:UF(t)?1:0},height:t,transitionEnd:null==n?void 0:n.exit,transition:null!=(o=null==r?void 0:r.exit)?o:_I($F.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:null==n?void 0:n.enter,transition:null!=(o=null==r?void 0:r.enter)?o:xI($F.enter,i)}}},VF=(0,i.forwardRef)(((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:a=0,endingHeight:s="auto",style:c,className:l,transition:u,transitionEnd:d,...h}=e,[f,p]=(0,i.useState)(!1);(0,i.useEffect)((()=>{const e=setTimeout((()=>{p(!0)}));return()=>clearTimeout(e)}),[]),w({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(a.toString())>0,g={startingHeight:a,endingHeight:s,animateOpacity:o,transition:f?u:{enter:{duration:0}},transitionEnd:{enter:null==d?void 0:d.enter,exit:n?null==d?void 0:d.exit:{...null==d?void 0:d.exit,display:m?"block":"none"}}},v=!n||r,b=r||n?"enter":"exit";return(0,xn.jsx)(pP,{initial:!1,custom:g,children:v&&(0,xn.jsx)(FA.div,{ref:t,...h,className:y("chakra-collapse",l),style:{overflow:"hidden",display:"block",...c},custom:g,variants:HF,initial:!!n&&"exit",animate:b,exit:"exit"})})}));VF.displayName="Collapse";var qF=v((function(e,t){const{className:r,motionProps:n,...i}=e,{reduceMotion:o}=LF(),{getPanelProps:a,isOpen:s}=PF(),c=a(i,t),l=y("chakra-accordion__panel",r),u=EF();o||delete c.hidden;const d=(0,xn.jsx)(wn.div,{...c,__css:u.panel,className:l});return o?d:(0,xn.jsx)(VF,{in:s,...n,children:d})}));qF.displayName="AccordionPanel";var[KF,WF]=Nn({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[GF,YF]=Nn({strict:!1,name:"FormControlContext"});var ZF=v((function(e,t){const r=Mn("Form",e),n=ft(e),{getRootProps:o,htmlProps:a,...s}=function(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...s}=e,c=(0,i.useId)(),l=t||`field-${c}`,u=`${l}-label`,d=`${l}-feedback`,h=`${l}-helptext`,[f,p]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)(!1),b=(0,i.useCallback)(((e={},t=null)=>({id:h,...e,ref:Kn(t,(e=>{e&&g(!0)}))})),[h]),w=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-focus":S(v),"data-disabled":S(o),"data-invalid":S(n),"data-readonly":S(a),id:void 0!==e.id?e.id:u,htmlFor:void 0!==e.htmlFor?e.htmlFor:l})),[l,o,v,n,a,u]),x=(0,i.useCallback)(((e={},t=null)=>({id:d,...e,ref:Kn(t,(e=>{e&&p(!0)})),"aria-live":"polite"})),[d]),_=(0,i.useCallback)(((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":S(v),"data-disabled":S(o),"data-invalid":S(n),"data-readonly":S(a)})),[s,o,v,n,a]),k=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:g,id:l,labelId:u,feedbackId:d,helpTextId:h,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:x,getRootProps:_,getLabelProps:w,getRequiredIndicatorProps:k}}(n),c=y("chakra-form-control",e.className);return(0,xn.jsx)(GF,{value:s,children:(0,xn.jsx)(KF,{value:r,children:(0,xn.jsx)(wn.div,{...o({},t),className:c,__css:r.container})})})}));ZF.displayName="FormControl";var XF=v((function(e,t){const r=YF(),n=WF(),i=y("chakra-form__helper-text",e.className);return(0,xn.jsx)(wn.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}));XF.displayName="FormHelperText";var[JF,QF]=Nn({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),eU=v(((e,t)=>{const r=Mn("FormError",e),n=ft(e),i=YF();return(null==i?void 0:i.isInvalid)?(0,xn.jsx)(JF,{value:r,children:(0,xn.jsx)(wn.div,{...null==i?void 0:i.getErrorMessageProps(n,t),className:y("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null}));eU.displayName="FormErrorMessage";var tU=v(((e,t)=>{const r=QF(),n=YF();if(!(null==n?void 0:n.isInvalid))return null;const i=y("chakra-form__error-icon",e.className);return(0,xn.jsx)(qA,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:i,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}));tU.displayName="FormErrorIcon";var rU=v(((e,t)=>{const{className:r,...n}=e,i=y("chakra-modal__footer",r),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...uI().footer};return(0,xn.jsx)(wn.footer,{ref:t,...n,__css:o,className:i})}));rU.displayName="ModalFooter";var nU=e=>"checkbox"===e.type,iU=e=>e instanceof Date,oU=e=>null==e;const aU=e=>"object"===typeof e;var sU=e=>!oU(e)&&!Array.isArray(e)&&aU(e)&&!iU(e),cU=e=>sU(e)&&e.target?nU(e.target)?e.target.checked:e.target.value:e,lU=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),uU=e=>{const t=e.constructor&&e.constructor.prototype;return sU(t)&&t.hasOwnProperty("isPrototypeOf")},dU="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function hU(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(dU&&(e instanceof Blob||e instanceof FileList)||!r&&!sU(e))return e;if(t=r?[]:{},r||uU(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=hU(e[r]));else t=e}return t}var fU=e=>Array.isArray(e)?e.filter(Boolean):[],pU=e=>void 0===e,mU=(e,t,r)=>{if(!t||!sU(e))return r;const n=fU(t.split(/[,[\].]+?/)).reduce(((e,t)=>oU(e)?e:e[t]),e);return pU(n)||n===e?pU(e[t])?r:e[t]:n},gU=e=>"boolean"===typeof e;const vU={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yU={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bU="max",wU="min",xU="maxLength",_U="minLength",SU="pattern",kU="required",EU="validate",AU=i.createContext(null),PU=()=>i.useContext(AU),OU=e=>{const{children:t,...r}=e;return i.createElement(AU.Provider,{value:r},t)};var TU=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==yU.all&&(t._proxyFormState[i]=!n||yU.all),r&&(r[i]=!0),e[i]}});return i},CU=e=>sU(e)&&!Object.keys(e).length,jU=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return CU(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!n||yU.all)))},RU=e=>Array.isArray(e)?e:[e];function IU(e){const t=i.useRef(e);t.current=e,i.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}var MU=e=>"string"===typeof e,LU=(e,t,r,n,i)=>MU(e)?(n&&t.watch.add(e),mU(r,e,i)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),mU(r,e)))):(n&&(t.watchAll=!0),r);var NU=e=>/^\w*$/.test(e),DU=e=>fU(e.replace(/["|']|\]/g,"").split(/\.|\[/)),zU=(e,t,r)=>{let n=-1;const i=NU(t)?[t]:DU(t),o=i.length,a=o-1;for(;++nt?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},FU=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},UU=(e,t,r={})=>r.shouldFocus||pU(r.shouldFocus)?r.focusName||`${e}.${pU(r.focusIndex)?t:r.focusIndex}.`:"",$U=e=>({isOnSubmit:!e||e===yU.onSubmit,isOnBlur:e===yU.onBlur,isOnChange:e===yU.onChange,isOnAll:e===yU.all,isOnTouch:e===yU.onTouched}),HU=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const VU=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const r=mU(e,i);if(r){const{_f:e,...o}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;VU(o,t)}else sU(o)&&VU(o,t)}}};var qU=(e,t,r)=>{const n=fU(mU(e,r));return zU(n,"root",t[r]),zU(e,r,n),e},KU=e=>"file"===e.type,WU=e=>"function"===typeof e,GU=e=>{if(!dU)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},YU=e=>MU(e),ZU=e=>"radio"===e.type,XU=e=>e instanceof RegExp;const JU={value:!1,isValid:!1},QU={value:!0,isValid:!0};var e$=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!pU(e[0].attributes.value)?pU(e[0].value)||""===e[0].value?QU:{value:e[0].value,isValid:!0}:QU:JU}return JU};const t$={isValid:!1,value:null};var r$=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),t$):t$;function n$(e,t,r="validate"){if(YU(e)||Array.isArray(e)&&e.every(YU)||gU(e)&&!e)return{type:r,message:YU(e)?e:"",ref:t}}var i$=e=>sU(e)&&!XU(e)?e:{value:e,message:""},o$=async(e,t,r,n,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:l,min:u,max:d,pattern:h,validate:f,name:p,valueAsNumber:m,mount:g,disabled:v}=e._f,y=mU(t,p);if(!g||v)return{};const b=a?a[0]:o,w=e=>{n&&b.reportValidity&&(b.setCustomValidity(gU(e)?"":e||""),b.reportValidity())},x={},_=ZU(o),S=nU(o),k=_||S,E=(m||KU(o))&&pU(o.value)&&pU(y)||GU(o)&&""===o.value||""===y||Array.isArray(y)&&!y.length,A=BU.bind(null,p,r,x),P=(e,t,r,n=xU,i=_U)=>{const a=e?t:r;x[p]={type:e?n:i,message:a,ref:o,...A(e?n:i,a)}};if(i?!Array.isArray(y)||!y.length:s&&(!k&&(E||oU(y))||gU(y)&&!y||S&&!e$(a).isValid||_&&!r$(a).isValid)){const{value:e,message:t}=YU(s)?{value:!!s,message:s}:i$(s);if(e&&(x[p]={type:kU,message:t,ref:b,...A(kU,t)},!r))return w(t),x}if(!E&&(!oU(u)||!oU(d))){let e,t;const n=i$(d),i=i$(u);if(oU(y)||isNaN(y)){const r=o.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,c="week"==o.type;MU(n.value)&&y&&(e=s?a(y)>a(n.value):c?y>n.value:r>new Date(n.value)),MU(i.value)&&y&&(t=s?a(y)n.value),oU(i.value)||(t=r+e.value,i=!oU(t.value)&&y.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return w(x[p].message),x}if(h&&!E&&MU(y)){const{value:e,message:t}=i$(h);if(XU(e)&&!y.match(e)&&(x[p]={type:SU,message:t,ref:o,...A(SU,t)},!r))return w(t),x}if(f)if(WU(f)){const e=n$(await f(y,t),b);if(e&&(x[p]={...e,...A(EU,e.message)},!r))return w(e.message),x}else if(sU(f)){let e={};for(const n in f){if(!CU(e)&&!r)break;const i=n$(await f[n](y,t),b,n);i&&(e={...i,...A(n,i.message)},w(i.message),r&&(x[p]=e))}if(!CU(e)&&(x[p]={ref:b,...e},!r))return x}return w(!0),x},a$=(e,t)=>[...e,...RU(t)],s$=e=>Array.isArray(e)?e.map((()=>{})):void 0;function c$(e,t,r){return[...e.slice(0,t),...RU(r),...e.slice(t)]}var l$=(e,t,r)=>Array.isArray(e)?(pU(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],u$=(e,t)=>[...RU(t),...RU(e)];var d$=(e,t)=>pU(t)?[]:function(e,t){let r=0;const n=[...e];for(const i of t)n.splice(i-r,1),r++;return fU(n).length?n:[]}(e,RU(t).sort(((e,t)=>e-t))),h$=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function f$(e,t){const r=Array.isArray(t)?t:NU(t)?[t]:DU(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);var m$=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},g$=e=>oU(e)||!aU(e);function v$(e,t){if(g$(e)||g$(t))return e===t;if(iU(e)&&iU(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=t[i];if(iU(r)&&iU(e)||sU(r)&&sU(e)||Array.isArray(r)&&Array.isArray(e)?!v$(r,e):r!==e)return!1}}return!0}var y$=e=>"select-multiple"===e.type,b$=e=>ZU(e)||nU(e),w$=e=>GU(e)&&e.isConnected,x$=e=>{for(const t in e)if(WU(e[t]))return!0;return!1};function _$(e,t={}){const r=Array.isArray(e);if(sU(e)||r)for(const n in e)Array.isArray(e[n])||sU(e[n])&&!x$(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_$(e[n],t[n])):oU(e[n])||(t[n]=!0);return t}function S$(e,t,r){const n=Array.isArray(e);if(sU(e)||n)for(const i in e)Array.isArray(e[i])||sU(e[i])&&!x$(e[i])?pU(t)||g$(r[i])?r[i]=Array.isArray(e[i])?_$(e[i],[]):{..._$(e[i])}:S$(e[i],oU(t)?{}:t[i],r[i]):r[i]=!v$(e[i],t[i]);return r}var k$=(e,t)=>S$(e,t,_$(t)),E$=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>pU(e)?e:t?""===e?NaN:e?+e:e:r&&MU(e)?new Date(e):n?n(e):e;function A$(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return KU(t)?t.files:ZU(t)?r$(e.refs).value:y$(t)?[...t.selectedOptions].map((({value:e})=>e)):nU(t)?e$(e.refs).value:E$(pU(t.value)?e.ref.value:t.value,e)}var P$=(e,t,r,n)=>{const i={};for(const o of e){const e=mU(t,o);e&&zU(i,o,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},O$=e=>pU(e)?e:XU(e)?e.source:sU(e)?XU(e.value)?e.value.source:e.value:e,T$=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function C$(e,t,r){const n=mU(e,r);if(n||NU(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),o=mU(t,n),a=mU(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var j$=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e),R$=(e,t)=>!fU(mU(e,t)).length&&f$(e,t);const I$={mode:yU.onSubmit,reValidateMode:yU.onChange,shouldFocusError:!0};function M$(e={},t){let r,n={...I$,...e},i={submitCount:0,isDirty:!1,isLoading:WU(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},a=(sU(n.values)||sU(n.defaultValues))&&hU(n.values||n.defaultValues)||{},s=n.shouldUnregister?{}:hU(a),c={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:m$(),array:m$(),state:m$()},f=$U(n.mode),p=$U(n.reValidateMode),m=n.criteriaMode===yU.all,g=async e=>{if(d.isValid||e){const e=n.resolver?CU((await x()).errors):await _(o,!0);e!==i.isValid&&h.state.next({isValid:e})}},v=e=>d.isValidating&&h.state.next({isValidating:e}),y=(e,t,r,n)=>{const i=mU(o,e);if(i){const o=mU(s,e,pU(r)?mU(a,e):r);pU(o)||n&&n.defaultChecked||t?zU(s,e,t?o:A$(i._f)):E(e,o),c.mount&&g()}},b=(e,t,r,n,s)=>{let c=!1,l=!1;const u={name:e},f=!(!mU(o,e)||!mU(o,e)._f.disabled);if(!r||n){d.isDirty&&(l=i.isDirty,i.isDirty=u.isDirty=S(),c=l!==u.isDirty);const r=f||v$(mU(a,e),t);l=!(f||!mU(i.dirtyFields,e)),r||f?f$(i.dirtyFields,e):zU(i.dirtyFields,e,!0),u.dirtyFields=i.dirtyFields,c=c||d.dirtyFields&&l!==!r}if(r){const t=mU(i.touchedFields,e);t||(zU(i.touchedFields,e,r),u.touchedFields=i.touchedFields,c=c||d.touchedFields&&t!==r)}return c&&s&&h.state.next(u),c?u:{}},w=(t,n,o,a)=>{const s=mU(i.errors,t),c=d.isValid&&gU(n)&&i.isValid!==n;var l;if(e.delayError&&o?(l=()=>((e,t)=>{zU(i.errors,e,t),h.state.next({errors:i.errors})})(t,o),r=e=>{clearTimeout(u),u=setTimeout(l,e)},r(e.delayError)):(clearTimeout(u),r=null,o?zU(i.errors,t,o):f$(i.errors,t)),(o?!v$(s,o):s)||!CU(a)||c){const e={...a,...c&&gU(n)?{isValid:n}:{},errors:i.errors,name:t};i={...i,...e},h.state.next(e)}v(!1)},x=async e=>n.resolver(s,n.context,P$(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),_=async(e,t,r={valid:!0})=>{for(const o in e){const a=e[o];if(a){const{_f:e,...o}=a;if(e){const o=l.array.has(e.name),c=await o$(a,s,m,n.shouldUseNativeValidation&&!t,o);if(c[e.name]&&(r.valid=!1,t))break;!t&&(mU(c,e.name)?o?qU(i.errors,c,e.name):zU(i.errors,e.name,c[e.name]):f$(i.errors,e.name))}o&&await _(o,t,r)}}return r.valid},S=(e,t)=>(e&&t&&zU(s,e,t),!v$(j(),a)),k=(e,t,r)=>LU(e,l,{...c.mount?s:pU(t)?a:MU(e)?{[e]:t}:t},r,t),E=(e,t,r={})=>{const n=mU(o,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&zU(s,e,E$(t,r)),i=GU(r.ref)&&oU(t)?"":t,y$(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?nU(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):KU(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||h.values.next({name:e,values:{...s}})))}(r.shouldDirty||r.shouldTouch)&&b(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&C(e)},A=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=mU(o,a);!l.array.has(e)&&g$(i)&&(!s||s._f)||iU(i)?E(a,i,r):A(a,i,r)}},P=(e,r,n={})=>{const u=mU(o,e),f=l.array.has(e),p=hU(r);zU(s,e,p),f?(h.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&h.state.next({name:e,dirtyFields:k$(a,s),isDirty:S(e,p)})):!u||u._f||oU(p)?E(e,p,n):A(e,p,n),HU(e,l)&&h.state.next({...i}),h.values.next({name:e,values:{...s}}),!c.mount&&t()},O=async e=>{const t=e.target;let a=t.name,c=!0;const u=mU(o,a),y=e=>{c=Number.isNaN(e)||e===mU(s,a,e)};if(u){let S,k;const E=t.type?A$(u._f):cU(e),A=e.type===vU.BLUR||e.type===vU.FOCUS_OUT,P=!T$(u._f)&&!n.resolver&&!mU(i.errors,a)&&!u._f.deps||j$(A,mU(i.touchedFields,a),i.isSubmitted,p,f),O=HU(a,l,A);zU(s,a,E),A?(u._f.onBlur&&u._f.onBlur(e),r&&r(0)):u._f.onChange&&u._f.onChange(e);const T=b(a,E,A,!1),j=!CU(T)||O;if(!A&&h.values.next({name:a,type:e.type,values:{...s}}),P)return d.isValid&&g(),j&&h.state.next({name:a,...O?{}:T});if(!A&&O&&h.state.next({...i}),v(!0),n.resolver){const{errors:e}=await x([a]);if(y(E),c){const t=C$(i.errors,o,a),r=C$(e,o,t.name||a);S=r.error,a=r.name,k=CU(e)}}else S=(await o$(u,s,m,n.shouldUseNativeValidation))[a],y(E),c&&(S?k=!1:d.isValid&&(k=await _(o,!0)));c&&(u._f.deps&&C(u._f.deps),w(a,k,S,T))}},T=(e,t)=>{if(mU(i.errors,t)&&e.focus)return e.focus(),1},C=async(e,t={})=>{let r,a;const s=RU(e);if(v(!0),n.resolver){const t=await(async e=>{const{errors:t}=await x(e);if(e)for(const r of e){const e=mU(t,r);e?zU(i.errors,r,e):f$(i.errors,r)}else i.errors=t;return t})(pU(e)?e:s);r=CU(t),a=e?!s.some((e=>mU(t,e))):r}else e?(a=(await Promise.all(s.map((async e=>{const t=mU(o,e);return await _(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||i.isValid)&&g()):a=r=await _(o);return h.state.next({...!MU(e)||d.isValid&&r!==i.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:i.errors,isValidating:!1}),t.shouldFocus&&!a&&VU(o,T,e?s:l.mount),a},j=e=>{const t={...a,...c.mount?s:{}};return pU(e)?t:MU(e)?mU(t,e):e.map((e=>mU(t,e)))},R=(e,t)=>({invalid:!!mU((t||i).errors,e),isDirty:!!mU((t||i).dirtyFields,e),isTouched:!!mU((t||i).touchedFields,e),error:mU((t||i).errors,e)}),I=(e,t,r)=>{const n=(mU(o,e,{_f:{}})._f||{}).ref;zU(i.errors,e,{...t,ref:n}),h.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},M=(e,t={})=>{for(const r of e?RU(e):l.mount)l.mount.delete(r),l.array.delete(r),t.keepValue||(f$(o,r),f$(s,r)),!t.keepError&&f$(i.errors,r),!t.keepDirty&&f$(i.dirtyFields,r),!t.keepTouched&&f$(i.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&f$(a,r);h.values.next({values:{...s}}),h.state.next({...i,...t.keepDirty?{isDirty:S()}:{}}),!t.keepIsValid&&g()},L=({disabled:e,name:t,field:r,fields:n,value:i})=>{if(gU(e)){const o=e?void 0:pU(i)?A$(r?r._f:mU(n,t)._f):i;zU(s,t,o),b(t,o,!1,!1,!0)}},N=(e,t={})=>{let r=mU(o,e);const i=gU(t.disabled);return zU(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?L({field:r,disabled:t.disabled,name:e,value:t.value}):y(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:O$(t.min),max:O$(t.max),minLength:O$(t.minLength),maxLength:O$(t.maxLength),pattern:O$(t.pattern)}:{},name:e,onChange:O,onBlur:O,ref:i=>{if(i){N(e,t),r=mU(o,e);const n=pU(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,s=b$(n),c=r._f.refs||[];if(s?c.find((e=>e===n)):n===r._f.ref)return;zU(o,e,{_f:{...r._f,...s?{refs:[...c.filter(w$),n,...Array.isArray(mU(a,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),y(e,!1,void 0,n)}else r=mU(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!lU(l.array,e)||!c.action)&&l.unMount.add(e)}}},D=()=>n.shouldFocusError&&VU(o,T,l.mount),z=(e,t)=>async r=>{let a;r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let c=hU(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await x();i.errors=e,c=t}else await _(o);if(f$(i.errors,"root"),CU(i.errors)){h.state.next({errors:{}});try{await e(c,r)}catch(l){a=l}}else t&&await t({...i.errors},r),D(),setTimeout(D);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:CU(i.errors)&&!a,submitCount:i.submitCount+1,errors:i.errors}),a)throw a},B=(r,n={})=>{const u=r?hU(r):a,f=hU(u),p=r&&!CU(r)?f:a;if(n.keepDefaultValues||(a=u),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)mU(i.dirtyFields,e)?zU(p,e,mU(s,e)):P(e,mU(p,e));else{if(dU&&pU(r))for(const e of l.mount){const t=mU(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(GU(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}s=e.shouldUnregister?n.keepDefaultValues?hU(a):{}:hU(p),h.array.next({values:{...p}}),h.values.next({values:{...p}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&t(),c.mount=!d.isValid||!!n.keepIsValid||!!n.keepDirtyValues,c.watch=!!e.shouldUnregister,h.state.next({submitCount:n.keepSubmitCount?i.submitCount:0,isDirty:n.keepDirty?i.isDirty:!(!n.keepDefaultValues||v$(r,a)),isSubmitted:!!n.keepIsSubmitted&&i.isSubmitted,dirtyFields:n.keepDirtyValues?n.keepDefaultValues&&s?k$(a,s):i.dirtyFields:n.keepDefaultValues&&r?k$(a,r):{},touchedFields:n.keepTouched?i.touchedFields:{},errors:n.keepErrors?i.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1})},F=(e,t)=>B(WU(e)?e(s):e,t);return{control:{register:N,unregister:M,getFieldState:R,handleSubmit:z,setError:I,_executeSchema:x,_getWatch:k,_getDirty:S,_updateValid:g,_removeUnmounted:()=>{for(const e of l.unMount){const t=mU(o,e);t&&(t._f.refs?t._f.refs.every((e=>!w$(e))):!w$(t._f.ref))&&M(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],r,n,l=!0,u=!0)=>{if(n&&r){if(c.action=!0,u&&Array.isArray(mU(o,e))){const t=r(mU(o,e),n.argA,n.argB);l&&zU(o,e,t)}if(u&&Array.isArray(mU(i.errors,e))){const t=r(mU(i.errors,e),n.argA,n.argB);l&&zU(i.errors,e,t),R$(i.errors,e)}if(d.touchedFields&&u&&Array.isArray(mU(i.touchedFields,e))){const t=r(mU(i.touchedFields,e),n.argA,n.argB);l&&zU(i.touchedFields,e,t)}d.dirtyFields&&(i.dirtyFields=k$(a,s)),h.state.next({name:e,isDirty:S(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else zU(s,e,t)},_updateDisabledField:L,_getFieldArray:t=>fU(mU(c.mount?s:a,t,e.shouldUnregister?mU(a,t,[]):[])),_reset:B,_resetDefaultValues:()=>WU(n.defaultValues)&&n.defaultValues().then((e=>{F(e,n.resetOptions),h.state.next({isLoading:!1})})),_updateFormState:e=>{i={...i,...e}},_disableForm:e=>{gU(e)&&(h.state.next({disabled:e}),VU(o,((t,r)=>{let n=e;const i=mU(o,r);i&&gU(i._f.disabled)&&(n||(n=i._f.disabled)),t.disabled=n}),0,!1))},_subjects:h,_proxyFormState:d,_setErrors:e=>{i.errors=e,h.state.next({errors:i.errors,isValid:!1})},get _fields(){return o},get _formValues(){return s},get _state(){return c},set _state(e){c=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return i},set _formState(e){i=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:C,register:N,handleSubmit:z,watch:(e,t)=>WU(e)?h.values.subscribe({next:r=>e(k(void 0,t),r)}):k(e,t,!0),setValue:P,getValues:j,reset:F,resetField:(e,t={})=>{mU(o,e)&&(pU(t.defaultValue)?P(e,hU(mU(a,e))):(P(e,t.defaultValue),zU(a,e,hU(t.defaultValue))),t.keepTouched||f$(i.touchedFields,e),t.keepDirty||(f$(i.dirtyFields,e),i.isDirty=t.defaultValue?S(e,hU(mU(a,e))):S()),t.keepError||(f$(i.errors,e),d.isValid&&g()),h.state.next({...i}))},clearErrors:e=>{e&&RU(e).forEach((e=>f$(i.errors,e))),h.state.next({errors:e?i.errors:{}})},unregister:M,setError:I,setFocus:(e,t={})=>{const r=mU(o,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:R}}function L$(e={}){const t=i.useRef(),r=i.useRef(),[n,o]=i.useState({isDirty:!1,isValidating:!1,isLoading:WU(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:WU(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...M$(e,(()=>o((e=>({...e}))))),formState:n});const a=t.current.control;return a._options=e,IU({subject:a._subjects.state,next:e=>{jU(e,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),i.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),i.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==n.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,n.isDirty]),i.useEffect((()=>{e.values&&!v$(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o((e=>({...e})))):a._resetDefaultValues()}),[e.values,a]),i.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),i.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),i.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=TU(n,a),t.current}var N$,[D$,z$]=gh({name:`${N$="Card"}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${N$} />" `}),B$=v((function(e,t){const{className:r,children:n,direction:i="column",justify:o,align:a,...s}=ft(e),c=Mn("Card",e);return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:o,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...s,children:(0,xn.jsx)(D$,{value:c,children:n})})})),F$=v((function(e,t){const{className:r,...n}=e,i=z$();return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-card__body",r),__css:i.body,...n})}));const U$=({value:e,space:t=2})=>(0,xn.jsx)(B$,{background:LP.gray[700],borderRadius:"5px",children:(0,xn.jsx)(F$,{children:(0,xn.jsx)("pre",{style:{whiteSpace:"pre-wrap",fontSize:"12px",lineHeight:"18px"},children:JSON.stringify(e,null,t)})})});var $$=v((function(e,t){var r;const n=In("FormLabel",e),i=ft(e),{className:o,children:a,requiredIndicator:s=(0,xn.jsx)(H$,{}),optionalIndicator:c=null,...l}=i,u=YF(),d=null!=(r=null==u?void 0:u.getLabelProps(l,t))?r:{ref:t,...l};return(0,xn.jsxs)(wn.label,{...d,className:y("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...n},children:[a,(null==u?void 0:u.isRequired)?s:c]})}));$$.displayName="FormLabel";var H$=v((function(e,t){const r=YF(),n=WF();if(!(null==r?void 0:r.isRequired))return null;const i=y("chakra-form__required-indicator",e.className);return(0,xn.jsx)(wn.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,t),__css:n.requiredIndicator,className:i})}));function V$(e){return i.Children.toArray(e).filter((e=>(0,i.isValidElement)(e)))}H$.displayName="RequiredIndicator";var[q$,K$]=Nn({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),W$=v((function(e,t){const r=Mn("Input",e),{children:n,className:o,...a}=ft(e),s=y("chakra-input__group",o),c={},l=V$(n),u=r.field;l.forEach((e=>{var t,n;r&&(u&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=u.height)?t:u.h),u&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(n=u.height)?n:u.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))}));const d=l.map((t=>{var r,n;const o=cF({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?(0,i.cloneElement)(t,o):(0,i.cloneElement)(t,Object.assign(o,c,t.props))}));return(0,xn.jsx)(wn.div,{className:s,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:(0,xn.jsx)(q$,{value:r,children:d})})}));function G$(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:i,...o}=Y$(e);return{...o,disabled:t,readOnly:n,required:i,"aria-invalid":k(r),"aria-required":k(i),"aria-readonly":k(n)}}function Y$(e){var t,r,n;const i=YF(),{id:o,disabled:a,readOnly:s,required:c,isRequired:l,isInvalid:u,isReadOnly:d,isDisabled:h,onFocus:f,onBlur:p,...m}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==i?void 0:i.hasFeedbackText)&&(null==i?void 0:i.isInvalid)&&g.push(i.feedbackId),(null==i?void 0:i.hasHelpText)&&g.push(i.helpTextId),{...m,"aria-describedby":g.join(" ")||void 0,id:null!=o?o:null==i?void 0:i.id,isDisabled:null!=(t=null!=a?a:h)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(r=null!=s?s:d)?r:null==i?void 0:i.isReadOnly,isRequired:null!=(n=null!=c?c:l)?n:null==i?void 0:i.isRequired,isInvalid:null!=u?u:null==i?void 0:i.isInvalid,onFocus:E(null==i?void 0:i.onFocus,f),onBlur:E(null==i?void 0:i.onBlur,p)}}W$.displayName="InputGroup";var Z$=v((function(e,t){const{htmlSize:r,...n}=e,i=Mn("Input",n),o=G$(ft(n)),a=y("chakra-input",e.className);return(0,xn.jsx)(wn.input,{size:r,...o,__css:i.field,ref:t,className:a})}));Z$.displayName="Input",Z$.id="Input";var X$=wn("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),J$=v((function(e,t){var r,n;const{placement:i="left",...o}=e,a=K$(),s=a.field,c={["left"===i?"insetStart":"insetEnd"]:"0",width:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,height:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,xn.jsx)(X$,{ref:t,__css:c,...o})}));J$.id="InputElement",J$.displayName="InputElement";var Q$=v((function(e,t){const{className:r,...n}=e,i=y("chakra-input__left-element",r);return(0,xn.jsx)(J$,{ref:t,placement:"left",className:i,...n})}));Q$.id="InputLeftElement",Q$.displayName="InputLeftElement";var eH=v((function(e,t){const{className:r,...n}=e,i=y("chakra-input__right-element",r);return(0,xn.jsx)(J$,{ref:t,placement:"right",className:i,...n})}));eH.id="InputRightElement",eH.displayName="InputRightElement";var[tH,rH]=Nn({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),nH=v((function(e,t){const r=Mn("List",e),{children:n,styleType:i="none",stylePosition:o,spacing:a,...s}=ft(e),c=V$(n),l=a?{"& > *:not(style) ~ *:not(style)":{mt:a}}:{};return(0,xn.jsx)(tH,{value:r,children:(0,xn.jsx)(wn.ul,{ref:t,listStyleType:i,listStylePosition:o,role:"list",__css:{...r.container,...l},...s,children:c})})}));nH.displayName="List";var iH=v(((e,t)=>{const{as:r,...n}=e;return(0,xn.jsx)(nH,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})}));iH.displayName="OrderedList";var oH=v((function(e,t){const{as:r,...n}=e;return(0,xn.jsx)(nH,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})}));oH.displayName="UnorderedList";var aH=v((function(e,t){const r=rH();return(0,xn.jsx)(wn.li,{ref:t,...e,__css:r.item})}));aH.displayName="ListItem";var sH=v((function(e,t){const r=rH();return(0,xn.jsx)(qA,{ref:t,role:"presentation",...e,__css:r.icon})}));sH.displayName="ListIcon";var cH={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function lH(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:KB(e)&&function(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}(e)?e:lH(function(e){return"html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}(e))}var uH=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),dH={arrowShadowColor:uH("--popper-arrow-shadow-color"),arrowSize:uH("--popper-arrow-size","8px"),arrowSizeHalf:uH("--popper-arrow-size-half"),arrowBg:uH("--popper-arrow-bg"),transformOrigin:uH("--popper-transform-origin"),arrowOffset:uH("--popper-arrow-offset")};var hH={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},fH={scroll:!0,resize:!0};function pH(e){let t;return t="object"===typeof e?{enabled:!0,options:{...fH,...e}}:{enabled:e,options:fH},t}var mH={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},gH={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{vH(e)},effect:({state:e})=>()=>{vH(e)}},vH=e=>{var t;e.elements.popper.style.setProperty(dH.transformOrigin.var,(t=e.placement,hH[t]))},yH={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{bH(e)}},bH=e=>{var t;if(!e.placement)return;const r=wH(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:dH.arrowSize.varRef,height:dH.arrowSize.varRef,zIndex:-1});const t={[dH.arrowSizeHalf.var]:`calc(${dH.arrowSize.varRef} / 2 - 1px)`,[dH.arrowOffset.var]:`calc(${dH.arrowSizeHalf.varRef} * -1)`};for(const r in t)e.elements.arrow.style.setProperty(r,t[r])}},wH=e=>e.startsWith("top")?{property:"bottom",value:dH.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:dH.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:dH.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:dH.arrowOffset.varRef}:void 0,xH={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{_H(e)},effect:({state:e})=>()=>{_H(e)}},_H=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=(n=e.placement).includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":n.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0;var n;r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:dH.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},SH={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},kH={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function EH(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function AH(e){return e instanceof EH(e).Element||e instanceof Element}function PH(e){return e instanceof EH(e).HTMLElement||e instanceof HTMLElement}function OH(e){return"undefined"!==typeof ShadowRoot&&(e instanceof EH(e).ShadowRoot||e instanceof ShadowRoot)}var TH=Math.max,CH=Math.min,jH=Math.round;function RH(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function IH(){return!/^((?!chrome|android).)*safari/i.test(RH())}function MH(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&PH(e)&&(i=e.offsetWidth>0&&jH(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&jH(n.height)/e.offsetHeight||1);var a=(AH(e)?EH(e):window).visualViewport,s=!IH()&&r,c=(n.left+(s&&a?a.offsetLeft:0))/i,l=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function LH(e){var t=EH(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function NH(e){return e?(e.nodeName||"").toLowerCase():null}function DH(e){return((AH(e)?e.ownerDocument:e.document)||window.document).documentElement}function zH(e){return MH(DH(e)).left+LH(e).scrollLeft}function BH(e){return EH(e).getComputedStyle(e)}function FH(e){var t=BH(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function UH(e,t,r){void 0===r&&(r=!1);var n=PH(t),i=PH(t)&&function(e){var t=e.getBoundingClientRect(),r=jH(t.width)/e.offsetWidth||1,n=jH(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),o=DH(t),a=MH(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==NH(t)||FH(o))&&(s=function(e){return e!==EH(e)&&PH(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:LH(e);var t}(t)),PH(t)?((c=MH(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=zH(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function $H(e){var t=MH(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function HH(e){return"html"===NH(e)?e:e.assignedSlot||e.parentNode||(OH(e)?e.host:null)||DH(e)}function VH(e){return["html","body","#document"].indexOf(NH(e))>=0?e.ownerDocument.body:PH(e)&&FH(e)?e:VH(HH(e))}function qH(e,t){var r;void 0===t&&(t=[]);var n=VH(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=EH(n),a=i?[o].concat(o.visualViewport||[],FH(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(qH(HH(a)))}function KH(e){return["table","td","th"].indexOf(NH(e))>=0}function WH(e){return PH(e)&&"fixed"!==BH(e).position?e.offsetParent:null}function GH(e){for(var t=EH(e),r=WH(e);r&&KH(r)&&"static"===BH(r).position;)r=WH(r);return r&&("html"===NH(r)||"body"===NH(r)&&"static"===BH(r).position)?t:r||function(e){var t=/firefox/i.test(RH());if(/Trident/i.test(RH())&&PH(e)&&"fixed"===BH(e).position)return null;var r=HH(e);for(OH(r)&&(r=r.host);PH(r)&&["html","body"].indexOf(NH(r))<0;){var n=BH(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var YH="top",ZH="bottom",XH="right",JH="left",QH="auto",eV=[YH,ZH,XH,JH],tV="start",rV="end",nV="clippingParents",iV="viewport",oV="popper",aV="reference",sV=eV.reduce((function(e,t){return e.concat([t+"-"+tV,t+"-"+rV])}),[]),cV=[].concat(eV,[QH]).reduce((function(e,t){return e.concat([t,t+"-"+tV,t+"-"+rV])}),[]),lV=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uV(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function dV(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var hV={placement:"bottom",modifiers:[],strategy:"absolute"};function fV(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function wV(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?vV(i):null,a=i?yV(i):null,s=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case YH:t={x:s,y:r.y-n.height};break;case ZH:t={x:s,y:r.y+r.height};break;case XH:t={x:r.x+r.width,y:c};break;case JH:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var l=o?bV(o):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case tV:t[l]=t[l]-(r[u]/2-n[u]/2);break;case rV:t[l]=t[l]+(r[u]/2-n[u]/2)}}return t}const xV={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=wV({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var _V={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SV(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,g="function"===typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=JH,w=YH,x=window;if(l){var _=GH(r),S="clientHeight",k="clientWidth";if(_===EH(r)&&"static"!==BH(_=DH(r)).position&&"absolute"===s&&(S="scrollHeight",k="scrollWidth"),i===YH||(i===JH||i===XH)&&o===rV)w=ZH,m-=(d&&_===x&&x.visualViewport?x.visualViewport.height:_[S])-n.height,m*=c?1:-1;if(i===JH||(i===YH||i===ZH)&&o===rV)b=XH,f-=(d&&_===x&&x.visualViewport?x.visualViewport.width:_[k])-n.width,f*=c?1:-1}var E,A=Object.assign({position:s},l&&_V),P=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:jH(r*i)/i||0,y:jH(n*i)/i||0}}({x:f,y:m},EH(r)):{x:f,y:m};return f=P.x,m=P.y,c?Object.assign({},A,((E={})[w]=y?"0":"",E[b]=v?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},A,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}const kV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,c=void 0===s||s,l={placement:vV(t.placement),variation:yV(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,SV(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,SV(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const EV={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];PH(i)&&NH(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});PH(n)&&NH(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const AV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=cV.reduce((function(e,r){return e[r]=function(e,t,r){var n=vV(e),i=[JH,YH].indexOf(n)>=0?-1:1,o="function"===typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[JH,XH].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}};var PV={left:"right",right:"left",bottom:"top",top:"bottom"};function OV(e){return e.replace(/left|right|bottom|top/g,(function(e){return PV[e]}))}var TV={start:"end",end:"start"};function CV(e){return e.replace(/start|end/g,(function(e){return TV[e]}))}function jV(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&OH(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function RV(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IV(e,t,r){return t===iV?RV(function(e,t){var r=EH(e),n=DH(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var l=IH();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+zH(e),y:c}}(e,r)):AH(t)?function(e,t){var r=MH(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):RV(function(e){var t,r=DH(e),n=LH(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=TH(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=TH(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+zH(e),c=-n.scrollTop;return"rtl"===BH(i||r).direction&&(s+=TH(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(DH(e)))}function MV(e,t,r,n){var i="clippingParents"===t?function(e){var t=qH(HH(e)),r=["absolute","fixed"].indexOf(BH(e).position)>=0&&PH(e)?GH(e):e;return AH(r)?t.filter((function(e){return AH(e)&&jV(e,r)&&"body"!==NH(e)})):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce((function(t,r){var i=IV(e,r,n);return t.top=TH(i.top,t.top),t.right=CH(i.right,t.right),t.bottom=CH(i.bottom,t.bottom),t.left=TH(i.left,t.left),t}),IV(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function LV(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function NV(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function DV(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,c=void 0===s?nV:s,l=r.rootBoundary,u=void 0===l?iV:l,d=r.elementContext,h=void 0===d?oV:d,f=r.altBoundary,p=void 0!==f&&f,m=r.padding,g=void 0===m?0:m,v=LV("number"!==typeof g?g:NV(g,eV)),y=h===oV?aV:oV,b=e.rects.popper,w=e.elements[p?y:h],x=MV(AH(w)?w:w.contextElement||DH(e.elements.popper),c,u,a),_=MH(e.elements.reference),S=wV({reference:_,element:b,strategy:"absolute",placement:i}),k=RV(Object.assign({},b,S)),E=h===oV?k:_,A={top:x.top-E.top+v.top,bottom:E.bottom-x.bottom+v.bottom,left:x.left-E.left+v.left,right:E.right-x.right+v.right},P=e.modifiersData.offset;if(h===oV&&P){var O=P[i];Object.keys(A).forEach((function(e){var t=[XH,ZH].indexOf(e)>=0?1:-1,r=[YH,ZH].indexOf(e)>=0?"y":"x";A[e]+=O[r]*t}))}return A}const zV={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,p=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=vV(g),y=c||(v===g||!p?[OV(g)]:function(e){if(vV(e)===QH)return[];var t=OV(e);return[CV(e),t,CV(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat(vV(r)===QH?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=void 0===c?cV:c,u=yV(n),d=u?s?sV:sV.filter((function(e){return yV(e)===u})):eV,h=d.filter((function(e){return l.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,r){return t[r]=DV(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[vV(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:l,flipVariations:p,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,_=new Map,S=!0,k=b[0],E=0;E=0,C=T?"width":"height",j=DV(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:h,padding:l}),R=T?O?XH:JH:O?ZH:YH;w[C]>x[C]&&(R=OV(R));var I=OV(R),M=[];if(o&&M.push(j[P]<=0),s&&M.push(j[R]<=0,j[I]<=0),M.every((function(e){return e}))){k=A,S=!1;break}_.set(A,M)}if(S)for(var L=function(e){var t=b.find((function(t){var r=_.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=p?3:1;N>0;N--){if("break"===L(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function BV(e,t,r){return TH(e,CH(t,r))}const FV={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,h=r.tether,f=void 0===h||h,p=r.tetherOffset,m=void 0===p?0:p,g=DV(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),v=vV(t.placement),y=yV(t.placement),b=!y,w=bV(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(_){if(o){var T,C="y"===w?YH:JH,j="y"===w?ZH:XH,R="y"===w?"height":"width",I=_[w],M=I+g[C],L=I-g[j],N=f?-k[R]/2:0,D=y===tV?S[R]:k[R],z=y===tV?-k[R]:-S[R],B=t.elements.arrow,F=f&&B?$H(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[C],H=U[j],V=BV(0,S[R],F[R]),q=b?S[R]/2-N-V-$-A.mainAxis:D-V-$-A.mainAxis,K=b?-S[R]/2+N+V+H+A.mainAxis:z+V+H+A.mainAxis,W=t.elements.arrow&&GH(t.elements.arrow),G=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,Y=null!=(T=null==P?void 0:P[w])?T:0,Z=I+K-Y,X=BV(f?CH(M,I+q-Y-G):M,I,f?TH(L,Z):L);_[w]=X,O[w]=X-I}if(s){var J,Q="x"===w?YH:JH,ee="x"===w?ZH:XH,te=_[x],re="y"===x?"height":"width",ne=te+g[Q],ie=te-g[ee],oe=-1!==[YH,JH].indexOf(v),ae=null!=(J=null==P?void 0:P[x])?J:0,se=oe?ne:te-S[re]-k[re]-ae+A.altAxis,ce=oe?te+S[re]+k[re]-ae-A.altAxis:ie,le=f&&oe?function(e,t,r){var n=BV(e,t,r);return n>r?r:n}(se,te,ce):BV(f?se:ne,te,f?ce:ie);_[x]=le,O[x]=le-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]};const UV={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=vV(r.placement),c=bV(s),l=[JH,XH].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return LV("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:NV(e,eV))}(i.padding,r),d=$H(o),h="y"===c?YH:JH,f="y"===c?ZH:XH,p=r.rects.reference[l]+r.rects.reference[c]-a[c]-r.rects.popper[l],m=a[c]-r.rects.reference[c],g=GH(o),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,b=u[h],w=v-d[l]-u[f],x=v/2-d[l]/2+y,_=BV(b,x,w),S=c;r.modifiersData[n]=((t={})[S]=_,t.centerOffset=_-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&jV(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $V(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function HV(e){return[YH,XH,ZH,JH].some((function(t){return e[t]>=0}))}const VV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=DV(t,{elementContext:"reference"}),s=DV(t,{altBoundary:!0}),c=$V(a,n),l=$V(s,i,o),u=HV(c),d=HV(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var qV=pV({defaultModifiers:[gV,xV,kV,EV,AV,zV,FV,UV,VV]});function KV(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:c,gutter:l=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:h=!0,matchWidth:f,direction:p="ltr"}=e,m=(0,i.useRef)(null),g=(0,i.useRef)(null),v=(0,i.useRef)(null),y=function(e,t="ltr"){var r,n;const i=(null==(r=SH[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=kH[e])?n:i}(n,p),b=(0,i.useRef)((()=>{})),w=(0,i.useCallback)((()=>{var e;t&&m.current&&g.current&&(null==(e=b.current)||e.call(b),v.current=qV(m.current,g.current,{placement:y,modifiers:[xH,yH,gH,{...mH,enabled:!!f},{name:"eventListeners",...pH(s)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=c?c:[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:d}},...null!=r?r:[]],strategy:o}),v.current.forceUpdate(),b.current=v.current.destroy)}),[y,t,r,f,s,a,c,l,u,h,d,o]);(0,i.useEffect)((()=>()=>{var e;m.current||g.current||(null==(e=v.current)||e.destroy(),v.current=null)}),[]);const x=(0,i.useCallback)((e=>{m.current=e,w()}),[w]),_=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(x,t)})),[x]),S=(0,i.useCallback)((e=>{g.current=e,w()}),[w]),k=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(S,t),style:{...e.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}})),[o,S,f]),E=(0,i.useCallback)(((e={},t=null)=>{const{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:WV(e)}}),[]),A=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""})),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:dH.transformOrigin.varRef,referenceRef:x,popperRef:S,getPopperProps:k,getArrowProps:E,getArrowInnerProps:A,getReferenceProps:_}}function WV(e){const{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}function GV(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,a=kb(r),s=kb(t),[c,l]=(0,i.useState)(e.defaultIsOpen||!1),u=void 0!==n?n:c,d=void 0!==n,h=(0,i.useId)(),f=null!=o?o:`disclosure-${h}`,p=(0,i.useCallback)((()=>{d||l(!1),null==s||s()}),[d,s]),m=(0,i.useCallback)((()=>{d||l(!0),null==a||a()}),[d,a]),g=(0,i.useCallback)((()=>{u?p():m()}),[u,m,p]);return{isOpen:u,onOpen:m,onClose:p,onToggle:g,isControlled:d,getButtonProps:function(e={}){return{...e,"aria-expanded":u,"aria-controls":f,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),g()}}},getDisclosureProps:function(e={}){return{...e,hidden:!u,id:f}}}}function YV(e,t,r,n){const o=kb(r);return(0,i.useEffect)((()=>{const i="function"===typeof e?e():null!=e?e:document;if(r&&i)return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}}),[t,e,n,o,r]),()=>{const r="function"===typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,o,n)}}var ZV=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},XV=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window};function JV(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:a,closeOnPointerDown:s=o,closeOnEsc:c=!0,onOpen:l,onClose:u,placement:d,id:h,isOpen:f,defaultIsOpen:p,arrowSize:m=10,arrowShadowColor:g,arrowPadding:v,modifiers:y,isDisabled:b,gutter:w,offset:x,direction:_,...S}=e,{isOpen:k,onOpen:A,onClose:P}=GV({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:O,getPopperProps:T,getArrowInnerProps:C,getArrowProps:j}=KV({enabled:k,placement:d,arrowPadding:v,modifiers:y,gutter:w,offset:x,direction:_}),R=(0,i.useId)(),I=`tooltip-${null!=h?h:R}`,M=(0,i.useRef)(null),L=(0,i.useRef)(),N=(0,i.useCallback)((()=>{L.current&&(clearTimeout(L.current),L.current=void 0)}),[]),D=(0,i.useRef)(),z=(0,i.useCallback)((()=>{D.current&&(clearTimeout(D.current),D.current=void 0)}),[]),B=(0,i.useCallback)((()=>{z(),P()}),[P,z]),F=function(e,t){return(0,i.useEffect)((()=>{const r=ZV(e);return r.addEventListener(QV,t),()=>r.removeEventListener(QV,t)}),[t,e]),()=>{const t=ZV(e),r=XV(e);t.dispatchEvent(new r.CustomEvent(QV))}}(M,B),U=(0,i.useCallback)((()=>{if(!b&&!L.current){k&&F();const e=XV(M);L.current=e.setTimeout(A,t)}}),[F,b,k,A,t]),$=(0,i.useCallback)((()=>{N();const e=XV(M);D.current=e.setTimeout(B,r)}),[r,B,N]),H=(0,i.useCallback)((()=>{k&&n&&$()}),[n,$,k]),V=(0,i.useCallback)((()=>{k&&s&&$()}),[s,$,k]),q=(0,i.useCallback)((e=>{k&&"Escape"===e.key&&$()}),[k,$]);YV((()=>ZV(M)),"keydown",c?q:void 0),YV((()=>{if(!a)return null;const e=M.current;if(!e)return null;const t=lH(e);return"body"===t.localName?XV(M):t}),"scroll",(()=>{k&&a&&B()}),{passive:!0,capture:!0}),(0,i.useEffect)((()=>{b&&(N(),k&&P())}),[b,k,P,N]),(0,i.useEffect)((()=>()=>{N(),z()}),[N,z]),YV((()=>M.current),"pointerleave",$);const K=(0,i.useCallback)(((e={},t=null)=>{const r={...e,ref:Kn(M,t,O),onPointerEnter:E(e.onPointerEnter,(e=>{"touch"!==e.pointerType&&U()})),onClick:E(e.onClick,H),onPointerDown:E(e.onPointerDown,V),onFocus:E(e.onFocus,U),onBlur:E(e.onBlur,$),"aria-describedby":k?I:void 0};return r}),[U,$,V,k,I,H,O]),W=(0,i.useCallback)(((e={},t=null)=>T({...e,style:{...e.style,[dH.arrowSize.var]:m?`${m}px`:void 0,[dH.arrowShadowColor.var]:g}},t)),[T,m,g]),G=(0,i.useCallback)(((e={},t=null)=>{const r={...e.style,position:"relative",transformOrigin:dH.transformOrigin.varRef};return{ref:t,...S,...e,id:I,role:"tooltip",style:r}}),[S,I]);return{isOpen:k,show:U,hide:$,getTriggerProps:K,getTooltipProps:G,getTooltipPositionerProps:W,getArrowProps:j,getArrowInnerProps:C}}var QV="chakra-ui:close-tooltip";var eq=wn(FA.div),tq=v(((e,t)=>{var r,n;const o=In("Tooltip",e),a=ft(e),s=On(),{children:c,label:l,shouldWrapChildren:u,"aria-label":d,hasArrow:h,bg:f,portalProps:p,background:m,backgroundColor:g,bgColor:v,motionProps:y,...b}=a,w=null!=(n=null!=(r=null!=m?m:g)?r:f)?n:v;if(w){o.bg=w;const e=function(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}(s,"colors",w);o[dH.arrowBg.var]=e}const x=JV({...b,direction:s.direction});let _;if("string"===typeof c||u)_=(0,xn.jsx)(wn.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:c});else{const e=i.Children.only(c);_=(0,i.cloneElement)(e,x.getTriggerProps(e.props,e.ref))}const S=!!d,k=x.getTooltipProps({},t),E=S?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(k,["role","id"]):k,A=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(k,["role","id"]);return l?(0,xn.jsxs)(xn.Fragment,{children:[_,(0,xn.jsx)(pP,{children:x.isOpen&&(0,xn.jsx)(xP,{...p,children:(0,xn.jsx)(wn.div,{...x.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:(0,xn.jsxs)(eq,{variants:cH,initial:"exit",animate:"enter",exit:"exit",...y,...E,__css:o,children:[l,S&&(0,xn.jsx)(wn.span,{srOnly:!0,...A,children:d}),h&&(0,xn.jsx)(wn.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,xn.jsx)(wn.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):(0,xn.jsx)(xn.Fragment,{children:c})}));tq.displayName="Tooltip";var rq=r(488),nq=r.n(rq),iq=r(7584),oq=r.n(iq);const aq="default"in oq()?oq().default:oq(),sq=({address:e,identiconSize:t,...r})=>(0,xn.jsx)(En,{sx:{canvas:{borderRadius:"4px"}},zIndex:10,background:"white",borderRadius:"4px","data-testid":"identicon",...r,children:(0,xn.jsx)(aq,{background:"white",size:t,string:e,style:{borderRadius:4}})}),cq={stroke:LP.gray[400],borderRadius:"4px",padding:"5px",background:LP.gray[500]},lq=({addressKind:e,size:t="sm",identiconSize:r=20})=>{let n;switch(t){case"sm":n="30px";break;case"md":n="38.5px";break;case"lg":n="45.5px"}switch(e.type){case"secret_key":case"mnemonic":return(0,xn.jsx)(sq,{width:n,height:n,padding:"5px",address:e.pkh,identiconSize:r});case"social":return(0,xn.jsx)(ER,{width:n,height:n,...cq,stroke:"transparent",background:"white"});case"ledger":return(0,xn.jsx)(hR,{width:n,height:n,...cq,color:LP.gray[400]});case"multisig":return(0,xn.jsx)(nR,{width:n,height:n,...cq});case"contact":return(0,xn.jsx)(Mj,{width:n,height:n,...cq});case"unknown":return(0,xn.jsx)(RR,{width:n,height:n,...cq});case"baker":{const t=`https://services.tzkt.io/v1/avatars/${e.pkh}`;return(0,xn.jsx)(hF,{width:"30px",height:"30px",marginRight:"8px","data-testid":"baker-icon",ratio:1,children:(0,xn.jsx)(TR,{src:t})})}}};var uq=r(3664),dq=r(4192),hq=r(7995),fq=r(4024),pq=r(408),mq=r.n(pq);function gq(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(Mde){o(Mde)}}function s(e){try{c(n.throw(e))}catch(Mde){o(Mde)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;class vq{constructor(e,t,r){this.key=e;const n=e.substring(0,t?5:4);if(!sc(n))throw new _s(`${Sc(ac.NO_PREFIX_MATCHED)} expecting either '${Js.EDESK}' or '${Js.EDSK}'.`);if(this._key=r(Tc(this.key,nc[n])),this._publicKey=this._key.slice(32),!this._key)throw new _s("unable to decode");this.isInit=this.init()}init(){return gq(this,void 0,void 0,(function*(){if(64!==this._key.length){const{publicKey:e,secretKey:t}=(0,ns.Eh)(new Uint8Array(this._key));this._publicKey=e,this._key=t}return!0}))}sign(e,t){return gq(this,void 0,void 0,(function*(){yield this.isInit;const r=(0,ns.kq)(new Uint8Array(this._key),new Uint8Array(t)),n=rc()(r),i=e+Mc(n);return{bytes:e,sig:Oc(r,nc.sig),prefixSig:Oc(r,nc.edsig),sbytes:i}}))}publicKey(){return gq(this,void 0,void 0,(function*(){return yield this.isInit,Oc(this._publicKey,nc.edpk)}))}publicKeyHash(){return gq(this,void 0,void 0,(function*(){return yield this.isInit,Oc((0,is.hash)(new Uint8Array(this._publicKey),20),nc.tz1)}))}secretKey(){return gq(this,void 0,void 0,(function*(){yield this.isInit;let e=this._key;const{secretKey:t}=(0,ns.Eh)(new Uint8Array(e).slice(0,32));return e=rc()(t),Oc(e,nc.edsk)}))}}const yq={p256:{pk:nc.p2pk,sk:nc.p2sk,pkh:nc.tz3,sig:nc.p2sig},secp256k1:{pk:nc.sppk,sk:nc.spsk,pkh:nc.tz2,sig:nc.spsig}};class bq{constructor(e,t,r,n){this.curve=e,this.key=t;const i=t.substring(0,r?5:4);if(!sc(i))throw new _s(Sc(ac.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Js.SPSK}', '${Js.SPESK}', '${Js.P2SK}' or '${Js.P2ESK}'.`);this._key=n(Tc(this.key,nc[i]));const o=new(ec().ec)(this.curve).keyFromPrivate(this._key),a=o.getPublic().getY().toArray(),s=(a.length<32?a[a.length-1]:a[31])%2?3:2,c=new Array(32).fill(0);this._publicKey=rc()(new Uint8Array([s].concat(c.concat(o.getPublic().getX().toArray()).slice(-32))))}sign(e,t){return gq(this,void 0,void 0,(function*(){const r=new(ec().ec)(this.curve).keyFromPrivate(this._key).sign(t,{canonical:!0}),n=r.r.toString("hex",64)+r.s.toString("hex",64),i=e+n;return{bytes:e,sig:Oc(n,nc.sig),prefixSig:Oc(n,yq[this.curve].sig),sbytes:i}}))}publicKey(){return gq(this,void 0,void 0,(function*(){return Oc(this._publicKey,yq[this.curve].pk)}))}publicKeyHash(){return gq(this,void 0,void 0,(function*(){return Oc((0,is.hash)(new Uint8Array(this._publicKey),20),yq[this.curve].pkh)}))}secretKey(){return gq(this,void 0,void 0,(function*(){return Oc(this._key,yq[this.curve].sk)}))}}const wq=bq.bind(null,"p256"),xq=bq.bind(null,"secp256k1");function _q(e){const t=[];for(let r=0;r64)throw new Aq(o.length);if(!Object.prototype.hasOwnProperty.call(Tq,r))throw new Eq(`Unsupported curve "${r}" expecting either "p256" or "secp256k1"`);const a=new Qs.ec(r);if(256!==(null===(n=a.n)||void 0===n?void 0:n.bitLength()))throw new kq(`Invalid curve "${r}" with bit size "${null===(i=a.n)||void 0===i?void 0:i.bitLength()}" expecting bit size "256"`);const s=(new TextEncoder).encode(Tq[r]);let c=null,l=new Uint8Array,u=0;for(;0===u;){const e=new hq.UL(fq.SHA512,s).update(o).digest();c=new(mq())(e.subarray(0,32)),l=e.subarray(32),c.isZero()||c.cmp(a.n)>=0?o=e:u++}const d=a.keyPair({});return d.priv=c,new e(d,l)}derive(t){const r=new Uint8Array(37);0!==(t&jq)?r.set(this.keyPair.getPrivate().toArray(),1):r.set(this.keyPair.getPublic().encodeCompressed(),0),new DataView(r.buffer).setUint32(33,t);let n=new(mq())(0),i=new Uint8Array,o=0;for(;0===o;){const e=new hq.UL(fq.SHA512,this.chainCode).update(r).digest();n=new(mq())(e.subarray(0,32)),i=e.subarray(32),this.keyPair.ec.n&&n.cmp(this.keyPair.ec.n)<0&&(n=n.add(this.keyPair.getPrivate()).mod(this.keyPair.ec.n),n.isZero()||o++),r.set(i,1),r[0]=1}const a=this.keyPair.ec.keyPair({});return a.priv=n,new e(a,i)}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}bytes(){if(!this.keyPair.priv)throw new _s("missing private key");const e=this.keyPair.priv.toArray(),t=new Uint8Array(32);return t.set(e,t.length-e.length),t}};const jq=2147483648;class Rq extends Array{static from(e){return super.from(e).map((e=>e>>>0))}static fromString(e){if(0===e.length)return new Rq;let t=e.split("/");const r=[];"m"===t[0]&&(t=t.slice(1));for(let n of t){if(0===n.length)throw new ys(e,": Invalid BIP32 path");let t=0;const i=n[n.length-1];"'"!==i&&"h"!==i&&"H"!==i||(t=jq,n=n.slice(0,n.length-1));const o=(parseInt(n,10)|t)>>>0;r.push(o)}return Rq.from(r)}}class Iq{constructor(e,t){this.priv=e,this.chainCode=t}static fromSeed(e){const t="string"===typeof e?_q(e):e;if(t.length<16||t.length>64)throw new Aq(t.length);const r=(new TextEncoder).encode("ed25519 seed"),n=new hq.UL(fq.SHA512,r).update(t).digest();return new Iq((0,ns.Eh)(n.subarray(0,32)).secretKey,n.subarray(32))}seed(){return this.priv.subarray(0,32)}derive(e){if(0===(e&jq))throw new ys(e.toString(),": Non-hardened derivation path.");const t=new Uint8Array(37);t.set(this.seed(),1),new DataView(t.buffer).setUint32(33,e);const r=new hq.UL(fq.SHA512,this.chainCode).update(t).digest();return new Iq((0,ns.Eh)(r.subarray(0,32)).secretKey,r.subarray(32))}derivePath(e){let t=this;for(const r of e)t=t.derive(r);return t}}class Mq{static fromFundraiser(e,t,r){if(!dq.oT(r))throw new Sq(r);const n=Oc(dq.yW(r,`${e}${t}`).slice(0,32),nc.edsk2);return new Mq(n)}static fromSecretKey(e,t){return gq(this,void 0,void 0,(function*(){return new Mq(e,t)}))}static fromMnemonic({mnemonic:e,password:t="",derivationPath:r="44'/1729'/0'/0'",curve:n="ed25519"}){if(!dq.oT(e))throw new Sq(e);const i=((e,t,r)=>{const n=Rq.fromString(t);let i;switch(r){case"ed25519":return i=Iq.fromSeed(e).derivePath(n),Oc(i.seed().slice(0,32),nc.edsk2);case"secp256k1":case"p256":{const t="secp256k1"===r?nc.spsk:nc.p2sk;let i=Cq.fromSeed(e,r);return i=i.derivePath(n),Oc(new Uint8Array(i.keyPair.getPrivate().toArray()),t)}case"bip25519":throw new Pq;default:throw new Eq(`Unsupported curve "${r}" expecting one of the following "ed25519", "secp256k1", "p256"`)}})(dq.yW(e,t),r,n);return new Mq(i)}constructor(e,t){const r="e"===e.substring(2,3);let n=e=>e;if(r){if(!t)throw new Oq("No passphrase provided to decrypt encrypted key");n=e=>{const r=rc()(e.slice(0,8)),n=e.slice(8),i=uq.pbkdf2Sync(t,r,32768,32,"sha512");return(0,RM.openSecretBox)(new Uint8Array(i),new Uint8Array(24),new Uint8Array(n))}}switch(e.substring(0,4)){case"edes":case"edsk":this._key=new vq(e,r,n);break;case"spsk":case"spes":this._key=new xq(e,r,n);break;case"p2sk":case"p2es":this._key=new wq(e,r,n);break;default:throw new _s(`${Sc(ac.NO_PREFIX_MATCHED)} expecting one of the following '${Js.EDESK}', '${Js.EDSK}', '${Js.SPSK}', '${Js.SPESK}', '${Js.P2SK}' or '${Js.P2ESK}'.`)}}sign(e,t){return gq(this,void 0,void 0,(function*(){let r=Rc(e);"undefined"!==typeof t&&(r=Ic(t,r));const n=(0,is.hash)(r,32);return this._key.sign(e,n)}))}publicKey(){return gq(this,void 0,void 0,(function*(){return this._key.publicKey()}))}publicKeyHash(){return gq(this,void 0,void 0,(function*(){return this._key.publicKeyHash()}))}secretKey(){return gq(this,void 0,void 0,(function*(){return this._key.secretKey()}))}}const Lq="44'/1729'/?'/0'",Nq={label:"Default - m/44'/1729'/?'/0'",value:Lq},Dq=[Nq,{label:"m/44'/1729'/0'/?'",value:"44'/1729'/0'/?'"},{label:"m/44'/1729'/?'/0'/0'",value:"44'/1729'/?'/0'/0'"},{label:"m/44'/1729'/0'/0'/?'",value:"44'/1729'/0'/0'/?'"}],zq=(e,t)=>e.replace("?",t.toString()),Bq=(e,t,r,n,i,o)=>({curve:"ed25519",derivationPath:r,derivationPathPattern:n,pk:e,address:ad(t),seedFingerPrint:i,label:o,type:"mnemonic"}),Fq=()=>UR((e=>e.contacts)),Uq=()=>{const e=Fq();return{addressExistsInContacts:t=>t in e,nameExistsInContacts:t=>Vd(e,t)}},$q=()=>{const e=Fq();return t=>t in e?e[t].name:void 0},Hq=()=>{const e=UR((e=>e.multisigs.pendingOperations));return t=>{var r;return[...null!==(r=e[t.pendingOperationsBigmapId])&&void 0!==r?r:[]].sort(((e,t)=>Number(t.id)-Number(e.id)))}},Vq=()=>UR((e=>e.accounts.seedPhrases)),qq=()=>UR((e=>e.accounts.items)),Kq=()=>{const e=qq();return t=>e.find((e=>e.address.pkh===t))},Wq=()=>{const e=qq(),t=UR((e=>e.multisigs.items));return[...e,...t]},Gq=()=>{const e=Wq().map((e=>e.label)),t=Object.values(Fq()).map((e=>e.name));return r=>![...e,...t].includes(r)},Yq=()=>{const e=Gq();return(t,r=1)=>{const n=[];for(let i=1;n.length{const e=Wq();return t=>e.find((e=>e.address.pkh===t))},Xq=()=>{const e=Zq();return t=>{const r=e(t);if(!r)throw new Error(`You do not own account:${t}`);return r}},Jq=e=>Wq().map((e=>e.address.pkh)).includes(e),Qq=()=>{const e=(()=>{const e=qq();return t=>{const r=e.filter((e=>t.signers.some((t=>t.pkh===e.address.pkh))));return 0===r.length&&console.warn("Wallet doesn't own any signers for multisig contract "+t.address.pkh),r}})();return t=>{switch(t.type){case"ledger":case"mnemonic":case"social":case"secret_key":return[t];case"multisig":return e(t)}}},eK=()=>{const e=Qq(),t=tK();return r=>t(e(r))},tK=()=>{const e=n4();return t=>(0,ts.maxBy)(t,(t=>Number(e(t.address.pkh)||"0")))};var rK=r(3684),nK=r.n(rK);const iK={},oK={},aK=(e,t)=>{oK[e]=t},sK=e=>{class t extends Error{constructor(r,n,i){if(super(r||e,i),Object.setPrototypeOf(this,t.prototype),this.name=e,n)for(const e in n)this[e]=n[e];if(i&&function(e){return"object"===typeof e}(i)&&"cause"in i&&!("cause"in this)){const e=i.cause;this.cause=e,"stack"in e&&(this.stack=this.stack+"\nCAUSE: "+e.stack)}}}return iK[e]=t,t};sK("AccountNameRequired"),sK("AccountNotSupported"),sK("AmountRequired"),sK("BluetoothRequired"),sK("BtcUnmatchedApp"),sK("CantOpenDevice"),sK("CashAddrNotSupported"),sK("ClaimRewardsFeesWarning"),sK("CurrencyNotSupported"),sK("DeviceAppVerifyNotSupported"),sK("DeviceGenuineSocketEarlyClose"),sK("DeviceNotGenuine"),sK("DeviceOnDashboardExpected"),sK("DeviceOnDashboardUnexpected"),sK("DeviceInOSUExpected"),sK("DeviceHalted"),sK("DeviceNameInvalid"),sK("DeviceSocketFail"),sK("DeviceSocketNoBulkStatus"),sK("DeviceSocketNoBulkStatus"),sK("UnresponsiveDeviceError");const cK=sK("DisconnectedDevice"),lK=sK("DisconnectedDeviceDuringOperation"),uK=(sK("DeviceExtractOnboardingStateError"),sK("DeviceOnboardingStatePollingError"),sK("EnpointConfig"),sK("EthAppPleaseEnableContractData"),sK("FeeEstimationFailed"),sK("FirmwareNotRecognized"),sK("HardResetFail"),sK("InvalidXRPTag"),sK("InvalidAddress"),sK("InvalidNonce"),sK("InvalidAddressBecauseDestinationIsAlsoSource"),sK("LatestMCUInstalledError"),sK("UnknownMCU"),sK("LedgerAPIError"),sK("LedgerAPIErrorWithMessage"),sK("LedgerAPINotAvailable"),sK("ManagerAppAlreadyInstalled"),sK("ManagerAppRelyOnBTC"),sK("ManagerAppDepInstallRequired"),sK("ManagerAppDepUninstallRequired"),sK("ManagerDeviceLocked"),sK("ManagerFirmwareNotEnoughSpace"),sK("ManagerNotEnoughSpace"),sK("ManagerUninstallBTCDep"),sK("NetworkDown"),sK("NetworkError"),sK("NoAddressesFound"),sK("NotEnoughBalance"),sK("NotEnoughBalanceToDelegate"),sK("NotEnoughBalanceInParentAccount"),sK("NotEnoughSpendableBalance"),sK("NotEnoughBalanceBecauseDestinationNotCreated"),sK("NoAccessToCamera"),sK("NotEnoughGas"),sK("NotEnoughGasSwap"),sK("NotSupportedLegacyAddress"),sK("GasLessThanEstimate"),sK("PriorityFeeTooLow"),sK("PriorityFeeTooHigh"),sK("PriorityFeeHigherThanMaxFee"),sK("MaxFeeTooLow"),sK("PasswordsDontMatch"),sK("PasswordIncorrect"),sK("RecommendSubAccountsToEmpty"),sK("RecommendUndelegation"),sK("TimeoutTagged"),sK("UnexpectedBootloader"),sK("MCUNotGenuineToDashboard"),sK("RecipientRequired"),sK("UnavailableTezosOriginatedAccountReceive"),sK("UnavailableTezosOriginatedAccountSend"),sK("UpdateFetchFileFail"),sK("UpdateIncorrectHash"),sK("UpdateIncorrectSig"),sK("UpdateYourApp"),sK("UserRefusedDeviceNameChange"),sK("UserRefusedAddress"),sK("UserRefusedFirmwareUpdate"),sK("UserRefusedAllowManager"),sK("UserRefusedOnDevice"),sK("ExpertModeRequired"),sK("TransportOpenUserCancelled")),dK=sK("TransportInterfaceNotAvailable"),hK=sK("TransportRaceCondition"),fK=sK("TransportWebUSBGestureRequired");sK("TransactionHasBeenValidatedError"),sK("TransportExchangeTimeoutError"),sK("DeviceShouldStayInApp"),sK("WebsocketConnectionError"),sK("WebsocketConnectionFailed"),sK("WrongDeviceForAccount"),sK("WrongAppForCurrency"),sK("ETHAddressNonEIP"),sK("CantScanQRCode"),sK("FeeNotLoaded"),sK("FeeNotLoadedSwap"),sK("FeeRequired"),sK("FeeTooHigh"),sK("PendingOperation"),sK("SyncError"),sK("PairingFailed"),sK("PeerRemovedPairing"),sK("GenuineCheckFailed"),sK("LedgerAPI4xx"),sK("LedgerAPI5xx"),sK("FirmwareOrAppUpdateRequired"),sK("ReplacementTransactionUnderpriced"),sK("OpReturnSizeLimit"),sK("DustLimit"),sK("LanguageNotFound"),sK("NoDBPathGiven"),sK("DBWrongPassword"),sK("DBNotReset");var pK;!function(e){e.Unknown="Unknown",e.LocationServicesDisabled="LocationServicesDisabled",e.LocationServicesUnauthorized="LocationServicesUnauthorized",e.BluetoothScanStartFailed="BluetoothScanStartFailed"}(pK||(pK={}));Error;class mK extends Error{constructor(e,t){const r="TransportError";super(e||r),this.name=r,this.message=e,this.stack=new Error(e).stack,this.id=t}}aK("TransportError",(e=>new mK(e.message,e.id)));const gK={ACCESS_CONDITION_NOT_FULFILLED:38916,ALGORITHM_NOT_SUPPORTED:38020,CLA_NOT_SUPPORTED:28160,CODE_BLOCKED:38976,CODE_NOT_INITIALIZED:38914,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,CONDITIONS_OF_USE_NOT_SATISFIED:27013,CONTRADICTION_INVALIDATION:38928,CONTRADICTION_SECRET_CODE_STATUS:38920,CUSTOM_IMAGE_BOOTLOADER:26159,CUSTOM_IMAGE_EMPTY:26158,FILE_ALREADY_EXISTS:27273,FILE_NOT_FOUND:37892,GP_AUTH_FAILED:25344,HALTED:28586,INCONSISTENT_FILE:37896,INCORRECT_DATA:27264,INCORRECT_LENGTH:26368,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,DEVICE_NOT_ONBOARDED:27911,DEVICE_NOT_ONBOARDED_2:26129,INVALID_KCV:38021,INVALID_OFFSET:37890,LICENSING:28482,LOCKED_DEVICE:21781,MAX_VALUE_REACHED:38992,MEMORY_PROBLEM:37440,MISSING_CRITICAL_PARAMETER:26624,NO_EF_SELECTED:37888,NOT_ENOUGH_MEMORY_SPACE:27268,OK:36864,PIN_REMAINING_ATTEMPTS:25536,REFERENCED_DATA_NOT_FOUND:27272,SECURITY_STATUS_NOT_SATISFIED:27010,TECHNICAL_PROBLEM:28416,UNKNOWN_APDU:27906,USER_REFUSED_ON_DEVICE:21761,NOT_ENOUGH_SPACE:20738};class vK extends Error{constructor(e,{canBeMappedToChildError:t=!0}={}){const r=Object.keys(gK).find((t=>gK[t]===e))||"UNKNOWN_ERROR",n=function(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received";case 21781:return"Locked device"}if(28416<=e&&e<=28671)return"Internal error, please report"}(e)||r,i=`Ledger device: ${n} (0x${e.toString(16)})`;if(super(i),this.name="TransportStatusError",this.statusCode=e,this.statusText=r,t&&e===gK.LOCKED_DEVICE)return new yK(i)}}class yK extends vK{constructor(e){super(gK.LOCKED_DEVICE,{canBeMappedToChildError:!1}),e&&(this.message=e),this.name="LockedDeviceError"}}aK("TransportStatusError",(e=>new vK(e.statusCode)));let bK=0;const wK=[],xK=(e,t,r)=>{const n={type:e,id:String(++bK),date:new Date};t&&(n.message=t),r&&(n.data=r),kK(n)};class _K{constructor(e,t){this.type=e,this.context=t}trace(e,t){(({type:e,message:t,data:r,context:n})=>{const i={type:e,id:String(++bK),date:new Date};t&&(i.message=t),r&&(i.data=r),n&&(i.context=n),kK(i)})({type:this.type,message:e,data:t,context:this.context})}getContext(){return this.context}setContext(e){this.context=e}updateContext(e){this.context=Object.assign(Object.assign({},this.context),e)}getType(){return this.type}setType(e){this.type=e}withType(e){return new _K(e,this.context)}withContext(e){return new _K(this.type,e)}withUpdatedContext(e){return new _K(this.type,Object.assign(Object.assign({},this.context),e))}}const SK=e=>(wK.push(e),()=>{const t=wK.indexOf(e);-1!==t&&(wK[t]=wK[wK.length-1],wK.pop())});function kK(e){for(let t=0;tAK(this,void 0,void 0,(function*(){const s=this.tracer.withUpdatedContext({function:"send"});if(i.length>=256)throw s.trace("data.length exceeded 256 bytes limit",{dataLength:i.length}),new mK("data.length exceed 256 bytes limit. Got: "+i.length,"DataLengthTooBig");s.trace("Starting an exchange",{abortTimeoutMs:a});const c=yield this.exchange(EK.concat([EK.from([e,t,r,n]),EK.from([i.length]),i]),{abortTimeoutMs:a});s.trace("Received response from exchange");const l=c.readUInt16BE(c.length-2);if(!o.some((e=>e===l)))throw new vK(l);return c})),this._appAPIlock=null,this.tracer=new _K(null!==t&&void 0!==t?t:"transport",e)}exchange(e,{abortTimeoutMs:t}={}){throw new Error("exchange not implemented")}exchangeBulk(e,t){let r=!1;return(()=>AK(this,void 0,void 0,(function*(){if(!r)for(const n of e){const e=yield this.exchange(n);if(r)return;const i=e.readUInt16BE(e.length-2);if(i!==gK.OK)throw new vK(i);t.next(e)}})))().then((()=>!r&&t.complete()),(e=>!r&&t.error(e))),{unsubscribe:()=>{r=!0}}}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise(((r,n)=>{let i=!1;const o=this.listen({next:t=>{i=!0,o&&o.unsubscribe(),a&&clearTimeout(a),this.open(t.descriptor,e).then(r,n)},error:e=>{a&&clearTimeout(a),n(e)},complete:()=>{a&&clearTimeout(a),i||n(new mK(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),a=t?setTimeout((()=>{o.unsubscribe(),n(new mK(this.ErrorMessage_ListenTimeout,"ListenTimeout"))}),t):null}))}exchangeAtomicImpl(e){return AK(this,void 0,void 0,(function*(){const t=this.tracer.withUpdatedContext({function:"exchangeAtomicImpl",unresponsiveTimeout:this.unresponsiveTimeout});if(this.exchangeBusyPromise)throw t.trace("Atomic exchange is already busy"),new hK("An action was already pending on the Ledger device. Please deny or reconnect.");let r;const n=new Promise((e=>{r=e}));this.exchangeBusyPromise=n;let i=!1;const o=setTimeout((()=>{t.trace('Timeout reached, emitting Transport event "unresponsive"',{unresponsiveTimeout:this.unresponsiveTimeout}),i=!0,this.emit("unresponsive")}),this.unresponsiveTimeout);try{const r=yield e();return i&&(t.trace("Device was unresponsive, emitting responsive"),this.emit("responsive")),r}finally{t.trace("Finalize, clearing busy guard"),clearTimeout(o),r&&r(),this.exchangeBusyPromise=null}}))}decorateAppAPIMethods(e,t,r){for(const n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return(...i)=>AK(this,void 0,void 0,(function*(){const{_appAPIlock:o}=this;if(o)return Promise.reject(new mK("Ledger Device is busy (lock "+o+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),yield t.apply(r,i)}finally{this._appAPIlock=null}}))}setTraceContext(e){this.tracer=this.tracer.withContext(e)}updateTraceContext(e){this.tracer.updateContext(e)}getTraceContext(){return this.tracer.getContext()}}PK.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",PK.ErrorMessage_NoDeviceFound="No Ledger device found";const OK=PK;var TK=r(4240).Buffer;function CK(e){const t=TK.alloc(2);return t.writeUInt16BE(e,0),t}const jK={data:TK.alloc(0),dataLength:0,sequence:0},RK=(e,t)=>({makeBlocks(r){let n=TK.concat([CK(r.length),r]);const i=t-5,o=Math.ceil(n.length/i);n=TK.concat([n,TK.alloc(o*i-n.length+1).fill(0)]);const a=[];for(let t=0;ti&&(n=n.slice(0,i)),{data:n,dataLength:i,sequence:o}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}});var IK=r(3712),MK=r.n(IK);var LK;!function(e){e.blue="blue",e.nanoS="nanoS",e.nanoSP="nanoSP",e.nanoX="nanoX",e.stax="stax"}(LK||(LK={}));const NK={[LK.blue]:{id:LK.blue,productName:"Ledger\xa0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,masks:[822083584,822149120],getBlockSize:e=>4096},[LK.nanoS]:{id:LK.nanoS,productName:"Ledger\xa0Nano\xa0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,masks:[823132160],getBlockSize:e=>{var t;return MK().lt(null!==(t=MK().coerce(e))&&void 0!==t?t:"","2.0.0")?4096:2048}},[LK.nanoSP]:{id:LK.nanoSP,productName:"Ledger Nano S Plus",productIdMM:80,legacyUsbProductId:5,usbOnly:!0,memorySize:1572864,masks:[856686592],getBlockSize:e=>32},[LK.nanoX]:{id:LK.nanoX,productName:"Ledger\xa0Nano\xa0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,masks:[855638016],getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-0004-0003-4c6564676572"}]},[LK.stax]:{id:LK.stax,productName:"Ledger\xa0Stax",productIdMM:96,legacyUsbProductId:6,usbOnly:!1,memorySize:1572864,masks:[857735168],getBlockSize:e=>32,bluetoothSpec:[{serviceUuid:"13d63400-2c97-6004-0000-4c6564676572",notifyUuid:"13d63400-2c97-6004-0001-4c6564676572",writeUuid:"13d63400-2c97-6004-0002-4c6564676572",writeCmdUuid:"13d63400-2c97-6004-0003-4c6564676572"}]}},DK=(LK.blue,LK.nanoS,LK.nanoSP,LK.nanoX,LK.stax,Object.values(NK)),zK=11415,BK=e=>{const t=DK.find((t=>t.legacyUsbProductId===e));if(t)return t;const r=e>>8,n=DK.find((e=>e.productIdMM===r));return n},FK=[],UK={};for(const r in NK){const e=NK[r],{bluetoothSpec:t}=e;if(t)for(let r=0;re.vendorId===zK))}))}var KK=r(4240).Buffer,WK=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(Mde){o(Mde)}}function s(e){try{c(n.throw(e))}catch(Mde){o(Mde)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))};class GK extends OK{constructor(e,t){super(),this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.device=e,this.interfaceNumber=t,this.deviceModel=BK(e.productId)}static request(){return WK(this,void 0,void 0,(function*(){const e=yield VK();return GK.open(e)}))}static openConnected(){return WK(this,void 0,void 0,(function*(){const e=yield qK();return 0===e.length?null:GK.open(e[0])}))}static open(e){return WK(this,void 0,void 0,(function*(){yield e.open(),null===e.configuration&&(yield e.selectConfiguration(1)),yield ZK(e);const t=e.configurations[0].interfaces.find((({alternates:e})=>e.some((e=>255===e.interfaceClass))));if(!t)throw new dK("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");const r=t.interfaceNumber;try{yield e.claimInterface(r)}catch(Mde){throw yield e.close(),new dK(Mde.message)}const n=new GK(e,r),i=t=>{e===t.device&&(navigator.usb.removeEventListener("disconnect",i),n._emitDisconnect(new cK))};return navigator.usb.addEventListener("disconnect",i),n}))}close(){return WK(this,void 0,void 0,(function*(){yield this.exchangeBusyPromise,yield this.device.releaseInterface(this.interfaceNumber),yield ZK(this.device),yield this.device.close()}))}exchange(e){return WK(this,void 0,void 0,(function*(){const t=yield this.exchangeAtomicImpl((()=>WK(this,void 0,void 0,(function*(){const{channel:t,packetSize:r}=this;xK("apdu","=> "+e.toString("hex"));const n=RK(t,r),i=n.makeBlocks(e);for(let e=0;e{if(e&&e.message&&e.message.includes("disconnected"))throw this._emitDisconnect(e),new lK(e.message);throw e}));return t}))}setScrambleKey(){}}GK.isSupported=()=>Promise.resolve(!!navigator&&!!navigator.usb&&"function"===typeof navigator.usb.getDevices),GK.list=qK,GK.listen=e=>{let t=!1;return function(){return $K(this,void 0,void 0,(function*(){const e=yield qK();return e.length>0?e[0]:VK()}))}().then((r=>{if(!t){const t=BK(r.productId);e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}),(t=>{window.DOMException&&t instanceof window.DOMException&&18===t.code?e.error(new fK(t.message)):e.error(new uK(t.message))})),{unsubscribe:function(){t=!0}}};const YK=GK;function ZK(e){return WK(this,void 0,void 0,(function*(){try{yield e.reset()}catch(Lde){console.warn(Lde)}}))}var XK=r(4240).Buffer;function JK(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(Mde){o(Mde)}}function s(e){try{c(n.throw(e))}catch(Mde){o(Mde)}}function c(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}c((n=n.apply(e,t||[])).next())}))}"function"===typeof SuppressedError&&SuppressedError;function QK(e){const t=[];e.split("/").forEach((e=>{let r=parseInt(e,10);Number.isNaN(r)||(e.length>1&&"'"===e[e.length-1]&&(r+=2147483648),t.push(r))}));const r=XK.alloc(1+4*t.length);return r[0]=t.length,t.forEach(((e,t)=>{r.writeUInt32BE(e,1+4*t)})),r}function eW(e,t){const r=XK.alloc(32);r.fill(0);let n=t[e],i=e+1;return n>32&&(i+=n-32,n=32),t.copy(r,32-n,i,i+n),{buffer:r,idxValueStart:i,length:n}}class tW extends ls{constructor(e){super(),this.message=e,this.name="InvalidLedgerResponseError"}}class rW extends ls{constructor(e){super(),this.cause=e,this.name="PublicKeyRetrievalError",this.message="Unable to retrieve Public Key from Ledger"}}class nW extends ls{constructor(){super(),this.name="PublicKeyHashRetrievalError",this.message="Unable to retrieve Public Key Hash from Ledger"}}class iW extends us{constructor(e){super(),this.derivationType=e,this.name="InvalidDerivationTypeError",this.message=`Invalid derivation type ${e} expecting one of the following: DerivationType.ED25519, DerivationType.SECP256K1, DerivationType.P256 or DerivationType.BIP32_ED25519`}}var oW;!function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256",e[e.BIP32_ED25519=3]="BIP32_ED25519"}(oW||(oW={}));class aW{constructor(e,t="44'/1729'/0'/0'",r=!0,n=oW.ED25519){if(this.transport=e,this.path=t,this.prompt=r,this.derivationType=n,this.CLA=128,this.INS_GET_PUBLIC_KEY=2,this.INS_PROMPT_PUBLIC_KEY=3,this.INS_SIGN=4,this.FIRST_MESSAGE_SEQUENCE=0,this.LAST_MESSAGE_SEQUENCE=129,this.OTHER_MESSAGE_SEQUENCE=1,this.transport.setScrambleKey("XTZ"),!t.startsWith("44'/1729'"))throw new ys(t,`${Sc(ac.NO_PREFIX_MATCHED)} expecting prefix "44'/1729'".`);if(!Object.values(oW).includes(n))throw new iW(n.toString())}publicKeyHash(){return JK(this,void 0,void 0,(function*(){if(this._publicKeyHash||(yield this.publicKey()),this._publicKeyHash)return this._publicKeyHash;throw new nW}))}publicKey(){return JK(this,void 0,void 0,(function*(){if(this._publicKey)return this._publicKey;const e=yield this.getLedgerPublicKey(),t=e[0],r=function(e,t){return 0===t||3===t?e=e.slice(1):(e[0]=2+(1&e[64]),e=e.slice(0,33)),e}(e.slice(1,1+t),this.derivationType),n=this.getPrefixes(),i=Oc(r,n.prefPk),o=Oc((0,is.hash)(r,20),n.prefPkh);return this._publicKey=i,this._publicKeyHash=o,i}))}getLedgerPublicKey(){return JK(this,void 0,void 0,(function*(){try{let e=this.INS_PROMPT_PUBLIC_KEY;!1===this.prompt&&(e=this.INS_GET_PUBLIC_KEY);return yield this.transport.send(this.CLA,e,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,QK(this.path))}catch(e){throw new rW(e)}}))}secretKey(){return JK(this,void 0,void 0,(function*(){throw new Cs("Secret key cannot be exposed")}))}sign(e,t){return JK(this,void 0,void 0,(function*(){const r=function(e,t){let r=e;"undefined"!==typeof t&&(r=XK.from(t).toString("hex").concat(e));return r}(e,t),n=XK.from(r,"hex");let i=[];i.push(QK(this.path)),i=function(e,t){let r=0;for(;r!==t.length;){const n=r+230>=t.length?t.length-r:230,i=XK.alloc(n);t.copy(i,0,r,r+n),e.push(i),r+=n}return e}(i,n);const o=yield this.signWithLedger(i);let a;if(this.derivationType===oW.ED25519||this.derivationType===oW.BIP32_ED25519)a=o.slice(0,o.length-2).toString("hex");else{if(!function(e){let t=!0;49!==e[0]&&48!==e[0]&&(t=!1),e[1]+4!==e.length&&(t=!1),2!==e[2]&&(t=!1);const r=e[3];2!==e[4+r]&&(t=!1);const n=5+r;return n+1+e[n]+2!==e.length&&(t=!1),t}(o))throw new tW("Invalid signature return by ledger unable to parse the response");const e=eW(3,o),t=eW(e.idxValueStart+e.length+1,o);a=XK.concat([e.buffer,t.buffer]).toString("hex")}return{bytes:e,sig:Oc(a,nc[Js.SIG]),prefixSig:Oc(a,this.getPrefixes().prefSig),sbytes:e+a}}))}signWithLedger(e){return JK(this,void 0,void 0,(function*(){let t=yield this.transport.send(this.CLA,this.INS_SIGN,this.FIRST_MESSAGE_SEQUENCE,this.derivationType,e[0]);for(let r=1;r{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}));continue}t.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}const r=t.join("&");return r?`?${r}`:""}createRequest({url:e,method:t,timeout:r=this.timeout,query:n,headers:i={},json:o=!0},a){return lW(this,void 0,void 0,(function*(){const s=e+this.serialize(n);i["Content-Type"]||(i["Content-Type"]="application/json");const c=new AbortController,l=setTimeout((()=>c.abort()),r);try{const e=yield pW(s,{method:t,headers:i,body:JSON.stringify(a),signal:c.signal});if("undefined"===typeof e)throw new Error("Response is undefined");if(e.status>=400){const t=yield e.text();throw new dW(`Http error response: (${e.status}) ${t}`,e.status,e.statusText,t,s)}return o?e.json():e.text()}catch(Mde){throw Mde instanceof Error&&"AbortError"===Mde.name?new hW(r,s):Mde instanceof dW?Mde:new uW(String(t),s,Mde)}finally{clearTimeout(l)}}))}}function gW(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i{const r=e[t];let i;if("undefined"!==typeof r){if(Array.isArray(r))return i=wW(r),void(n[t]=i);i=new Xs(r),n[t]=i}})),n}!function(e){e.GET_BAKING_RIGHTS="getBakingRights",e.GET_BALLOTS="getBallots",e.GET_BALLOT_LIST="getBallotList",e.GET_BIG_MAP_KEY="getBigMapKey",e.GET_BIG_MAP_EXPR="getBigMapExpr",e.GET_BLOCK_HASH="getBlockHash",e.GET_BLOCK="getBlock",e.GET_BLOCK_HEADER="getBlockHeader",e.GET_BLOCK_METADATA="getBlockMetadata",e.GET_BALANCE="getBalance",e.GET_CHAIN_ID="getChainId",e.GET_CONSTANTS="getConstants",e.GET_CONTRACT="getContract",e.GET_CURRENT_PERIOD="getCurrentPeriod",e.GET_CURRENT_PROPOSAL="getCurrentProposal",e.GET_CURRENT_QUORUM="getCurrentQuorum",e.GET_DELEGATE="getDelegate",e.GET_DELEGATES="getDelegates",e.GET_VOTING_INFO="getVotingInfo",e.GET_ATTESTATION_RIGHTS="getAttestationRights",e.GET_ENDORSING_RIGHTS="getEndorsingRights",e.GET_ENTRYPOINTS="getEntrypoints",e.GET_LIVE_BLOCKS="getLiveBlocks",e.GET_MANAGER_KEY="getManagerKey",e.GET_NORMALIZED_SCRIPT="getNormalizedScript",e.GET_PROPOSALS="getProposals",e.GET_PROTOCOLS="getProtocols",e.GET_SAPLING_DIFF_BY_CONTRACT="getSaplingDiffByContract",e.GET_SAPLING_DIFF_BY_ID="getSaplingDiffById",e.GET_SCRIPT="getScript",e.GET_STORAGE="getStorage",e.GET_SUCCESSOR_PERIOD="getSuccessorPeriod",e.GET_VOTES_LISTINGS="getVotesListings",e.PACK_DATA="packData",e.GET_STORAGE_USED_SPACE="getStorageUsedSpace",e.GET_STORAGE_PAID_SPACE="getStoragePaidSpace",e.GET_TICKET_BALANCE="getTicketBalance",e.GET_ALL_TICKET_BALANCES="getAllTicketBalances",e.GET_PENDING_OPERATIONS="getPendingOperations"}(bW||(bW={}));var xW,_W,SW,kW,EW,AW,PW,OW,TW,CW;!function(e){e.TOO_LARGE="too large"}(xW||(xW={})),function(e){e.BAKING_BONUSES="baking bonuses",e.BAKING_REWARDS="baking rewards",e.BLOCK_FEES="block fees",e.BONDS="bonds",e.BOOTSTRAP="bootstrap",e.BURNED="burned",e.COMMITMENT="commitment",e.DELEGATE_DENOMINATOR="delegate_denominator",e.DELEGATOR_NUMERATOR="delegator_numerator",e.DEPOSITS="deposits",e.ENDORSING_REWARDS="endorsing rewards",e.INVOICE="invoice",e.LOST_ENDORSING_REWARDS="lost endorsing rewards",e.MINTED="minted",e.NONCE_REVELATION_REWARDS="nonce revelation rewards",e.PUNISHMENTS="punishments",e.SMART_ROLLUP_REFUTATION_PUNISHMENTS="smart_rollup_refutation_punishments",e.SMART_ROLLUP_REFUTATION_REWARDS="smart_rollup_refutation_rewards",e.STORAGE_FEES="storage fees",e.SUBSIDY="subsidy",e.UNSTAKED_DEPOSITS="unstaked_deposits"}(_W||(_W={})),function(e){e.WASM2="wasm_2_0_0",e.ARITH="arith",e.RISCV="riscv"}(SW||(SW={})),function(e){e.START="start",e.MOVE="move"}(kW||(kW={})),function(e){e.INBOX_PROOF="inbox_proof",e.REVEAL_PROOF="reveal_proof",e.FIRST_INPUT="first_input"}(EW||(EW={})),function(e){e.RAW_DATA_PROOF="raw_data_proof",e.METADATA_PROOF="metadata_proof",e.DAL_PAGE_PROOF="dal_page_proof"}(AW||(AW={})),function(e){e.ONGOING="ongoing",e.ENDED="ended"}(PW||(PW={})),function(e){e.LOSER="loser",e.DRAW="draw"}(OW||(OW={})),function(e){e.CONFLICT_RESOLVED="conflict_resolved",e.TIMEOUT="timeout"}(TW||(TW={})),function(e){e.ORIGINATION="origination",e.DELEGATION="delegation",e.REVEAL="reveal",e.TRANSACTION="transaction",e.ACTIVATION="activate_account",e.ATTESTATION="attestation",e.ENDORSEMENT="endorsement",e.PREATTESTATION="preattestation",e.PREENDORSEMENT="preendorsement",e.SET_DEPOSITS_LIMIT="set_deposits_limit",e.DOUBLE_PREATTESTATION_EVIDENCE="double_preattestation_evidence",e.DOUBLE_PREENDORSEMENT_EVIDENCE="double_preendorsement_evidence",e.ATTESTATION_WITH_SLOT="attestation_with_slot",e.ENDORSEMENT_WITH_SLOT="endorsement_with_slot",e.SEED_NONCE_REVELATION="seed_nonce_revelation",e.DOUBLE_ATTESTATION_EVIDENCE="double_attestation_evidence",e.DOUBLE_ENDORSEMENT_EVIDENCE="double_endorsement_evidence",e.DOUBLE_BAKING_EVIDENCE="double_baking_evidence",e.PROPOSALS="proposals",e.BALLOT="ballot",e.FAILING_NOOP="failing_noop",e.REGISTER_GLOBAL_CONSTANT="register_global_constant",e.TRANSFER_TICKET="transfer_ticket",e.INCREASE_PAID_STORAGE="increase_paid_storage",e.UPDATE_CONSENSUS_KEY="update_consensus_key",e.DRAIN_DELEGATE="drain_delegate",e.VDF_REVELATION="vdf_revelation",e.EVENT="event",e.TICKET_UPDATES="ticket_updates",e.SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message",e.SMART_ROLLUP_PUBLISH="smart_rollup_publish",e.SMART_ROLLUP_CEMENT="smart_rollup_cement",e.SMART_ROLLUP_RECOVER_BOND="smart_rollup_recover_bond",e.SMART_ROLLUP_REFUTE="smart_rollup_refute",e.SMART_ROLLUP_TIMEOUT="smart_rollup_timeout"}(CW||(CW={}));class jW{constructor(e,t="main",r=new mW){this.url=e,this.chain=t,this.httpBackend=r}createURL(e){let t=this.url;for(;t.endsWith("/");)t=t.slice(0,-1);return`${t}${e}`}validateAddress(e){const t=gc(e);if(t!==ac.VALID)throw new ms(e,Sc(t))}validateContract(e){const t=yc(e);if(t!==ac.VALID)throw new ks(e,Sc(t))}getBlockHash({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/hash`),method:"GET"})}))}getLiveBlocks({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/live_blocks`),method:"GET"})}))}getBalance(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/balance`),method:"GET"});return new Xs(r)}))}getStorage(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage`),method:"GET"})}))}getScript(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/script`),method:"GET"})}))}getNormalizedScript(e,t={unparsing_mode:"Readable"},{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.validateContract(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/script/normalized`),method:"POST"},t)}))}getContract(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}`),method:"GET"});return Object.assign(Object.assign({},r),{balance:new Xs(r.balance)})}))}getManagerKey(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/manager_key`),method:"GET"})}))}getDelegate(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){let r;this.validateAddress(e);try{r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/delegate`),method:"GET"})}catch(n){if(!(n instanceof dW&&n.status===sW.NOT_FOUND))throw n;r=null}return r}))}getBigMapKey(e,t,{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.validateAddress(e),this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/big_map_get`),method:"POST"},t)}))}getBigMapExpr(e,t,{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/big_maps/${e}/${t}`),method:"GET"})}))}getDelegates(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateAddress(e);const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}`),method:"GET"}),n=wW(r,["balance","full_balance","current_frozen_deposits","frozen_deposits","frozen_balance","frozen_deposits_limit","staking_balance","delegated_balance","voting_power","total_delegated_stake","staking_denominator"]);return Object.assign(Object.assign(Object.assign({},r),n),{frozen_balance_by_cycle:r.frozen_balance_by_cycle?r.frozen_balance_by_cycle.map((e=>{var{deposit:t,deposits:r,fees:n,rewards:i}=e,o=gW(e,["deposit","deposits","fees","rewards"]);const a=wW({deposit:t,deposits:r,fees:n,rewards:i},["deposit","deposits","fees","rewards"]);return Object.assign(Object.assign({},o),{deposit:a.deposit,deposits:a.deposits,fees:a.fees,rewards:a.rewards})})):void 0})}))}getVotingInfo(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.validateAddress(e),yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/delegates/${e}/voting_info`),method:"GET"})}))}getConstants({block:e}=yW){return vW(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/context/constants`),method:"GET"}),r=wW(t,["time_between_blocks","hard_gas_limit_per_operation","hard_gas_limit_per_block","proof_of_work_threshold","tokens_per_roll","seed_nonce_revelation_tip","block_security_deposit","endorsement_security_deposit","block_reward","endorsement_reward","cost_per_byte","hard_storage_limit_per_operation","test_chain_duration","baking_reward_per_endorsement","delay_per_missing_endorsement","minimal_block_delay","liquidity_baking_subsidy","cache_layout","baking_reward_fixed_portion","baking_reward_bonus_per_slot","endorsing_reward_per_slot","double_baking_punishment","delay_increment_per_round","tx_rollup_commitment_bond","vdf_difficulty","sc_rollup_stake_amount","minimal_stake"]);return Object.assign(Object.assign({},t),r)}))}getBlock({block:e,version:t}=yW){return vW(this,void 0,void 0,(function*(){const r={url:this.createURL(`/chains/${this.chain}/blocks/${e}`),method:"GET"};return void 0!==t&&(r.query={version:t}),yield this.httpBackend.createRequest(r)}))}getBlockHeader({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/header`),method:"GET"})}))}getBlockMetadata({block:e,version:t}=yW){return vW(this,void 0,void 0,(function*(){const r={url:this.createURL(`/chains/${this.chain}/blocks/${e}/metadata`),method:"GET"};return void 0!==t&&(r.query={version:t}),yield this.httpBackend.createRequest(r)}))}getBakingRights(e={},{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/baking_rights`),method:"GET",query:e})}))}getAttestationRights(e={},{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/attestation_rights`),method:"GET",query:e})}))}getEndorsingRights(e={},{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/endorsing_rights`),method:"GET",query:e})}))}getBallotList({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballot_list`),method:"GET"})}))}getBallots({block:e}=yW){return vW(this,void 0,void 0,(function*(){return wW(yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/ballots`),method:"GET"}),["yay","nay","pass"])}))}getCurrentProposal({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_proposal`),method:"GET"})}))}getCurrentQuorum({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_quorum`),method:"GET"})}))}getVotesListings({block:e}=yW){return vW(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/listings`),method:"GET"});return t.map((e=>(e.voting_power&&(e.voting_power=new Xs(e.voting_power)),e))),t}))}getProposals({block:e}=yW){return vW(this,void 0,void 0,(function*(){const t=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/proposals`),method:"GET"});return t.map((e=>e[1]=new Xs(e[1]))),t}))}forgeOperations(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/forge/operations`),method:"POST"},e)}))}injectOperation(e){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL("/injection/operation"),method:"POST"},e)}))}preapplyOperations(e,{block:t,version:r}=yW){return vW(this,void 0,void 0,(function*(){const n={url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/preapply/operations`),method:"POST"};return void 0!==r&&(n.query={version:r}),yield this.httpBackend.createRequest(n,e)}))}getEntrypoints(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){this.validateContract(e);return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/entrypoints`),method:"GET"})}))}runOperation(e,{block:t,version:r}=yW){return vW(this,void 0,void 0,(function*(){const n={url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_operation`),method:"POST"};return void 0!==r&&(n.query={version:r}),yield this.httpBackend.createRequest(n,e)}))}simulateOperation(e,{block:t,version:r}=yW){return vW(this,void 0,void 0,(function*(){const n={url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/simulate_operation`),method:"POST"};return void 0!==r&&(n.query={version:r}),yield this.httpBackend.createRequest(n,e)}))}runCode(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/run_code`),method:"POST"},e)}))}runScriptView(e,t){var{unparsing_mode:r="Readable"}=e,n=gW(e,["unparsing_mode"]),i=(void 0===t?yW:t).block;return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_script_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}runView(e,t){var{unparsing_mode:r="Readable"}=e,n=gW(e,["unparsing_mode"]),i=(void 0===t?yW:t).block;return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${i}/helpers/scripts/run_view`),method:"POST"},Object.assign({unparsing_mode:r},n))}))}getChainId(){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/chain_id`),method:"GET"})}))}packData(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){const r=yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/helpers/scripts/pack_data`),method:"POST"},e),{gas:n}=r,i=gW(r,["gas"]);let o=n;const a=new Xs(n||"");return a.isNaN()||(o=a),Object.assign({gas:o},i)}))}getRpcUrl(){return this.url}getCurrentPeriod({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/current_period`),method:"GET"})}))}getSuccessorPeriod({block:e}=yW){return vW(this,void 0,void 0,(function*(){return yield this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/votes/successor_period`),method:"GET"})}))}getSaplingDiffById(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/sapling/${e}/get_diff`),method:"GET"})}))}getSaplingDiffByContract(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/single_sapling_get_diff`),method:"GET"})}))}getProtocols({block:e}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${e}/protocols`),method:"GET"})}))}getStorageUsedSpace(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/used_space`),method:"GET"})}))}getStoragePaidSpace(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/storage/paid_space`),method:"GET"})}))}getTicketBalance(e,t,{block:r}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${r}/context/contracts/${e}/ticket_balance`),method:"POST"},t)}))}getAllTicketBalances(e,{block:t}=yW){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/blocks/${t}/context/contracts/${e}/all_ticket_balances`),method:"GET"})}))}getPendingOperations(e={}){return vW(this,void 0,void 0,(function*(){return this.httpBackend.createRequest({url:this.createURL(`/chains/${this.chain}/mempool/pending_operations`),method:"GET",query:e})}))}}function RW(e){return"function"===typeof e}function IW(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var MW=IW((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function LW(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var NW=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=MI(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(f){e={error:f}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(RW(c))try{c()}catch(Mde){i=Mde instanceof MW?Mde.errors:[Mde]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=MI(l),d=u.next();!d.done;d=u.next()){var h=d.value;try{BW(h)}catch(Lde){i=null!==i&&void 0!==i?i:[],Lde instanceof MW?i=NI(NI([],LI(i)),LI(Lde.errors)):i.push(Lde)}}}catch(p){r={error:p}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(i)throw new MW(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)BW(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&LW(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&LW(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),DW=NW.EMPTY;function zW(e){return e instanceof NW||e&&"closed"in e&&RW(e.remove)&&RW(e.add)&&RW(e.unsubscribe)}function BW(e){RW(e)?e():e.unsubscribe()}var FW={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},UW={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?DW:(this.currentObservers=null,o.push(e),new NW((function(){t.currentObservers=null,LW(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new oG;return e.source=this,e},t.create=function(e,t){return new lG(e,t)},t}(oG),lG=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return TI(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:DW},t}(cG),uG={now:function(){return(uG.delegate||Date).now()},delegate:void 0},dG=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=uG);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return TI(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i0&&d(i)}),void 0,void 0,(function(){(null===o||void 0===o?void 0:o.closed)||null===o||void 0===o||o.unsubscribe(),s=null}))),!l&&d(null!=n?"number"===typeof n?n:+n-c.now():i)}))}function pY(e){throw new hY(e)}function mY(e,t){return RW(t)?JG(e,t,1):JG(e,1)}function gY(){for(var e=[],t=0;t0&&(t=new JW({next:function(e){return m.next(e)},error:function(e){u=!0,d(),n=bY(h,i,e),m.error(e)},complete:function(){l=!0,d(),n=bY(h,a),m.complete()}}),SG(e).subscribe(t))}))(e)}}function bY(e,t){for(var r=[],n=2;n=2;return function(n){return n.pipe(e?xY((function(t,r){return e(t,r,n)})):nG,(o=1)<=0?function(){return AG}:IG((function(e,t){var r=0;e.subscribe(MG(t,(function(e){++r<=o&&(t.next(e),o<=r&&t.complete())})))})),r?function(e){return IG((function(t,r){var n=!1;t.subscribe(MG(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}(t):(void 0===(i=function(){return new _Y})&&(i=SY),IG((function(e,t){var r=!1;e.subscribe(MG(t,(function(e){r=!0,t.next(e)}),(function(){return r?t.complete():t.error(i())})))}))));var i,o}}function EY(e){return IG((function(t,r){var n,i=null,o=!1;i=t.subscribe(MG(r,void 0,void 0,(function(a){n=SG(e(a,EY(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0}))),o&&(i.unsubscribe(),i=null,n.subscribe(r))}))}function AY(e,t){return void 0===t&&(t=nG),e=null!==e&&void 0!==e?e:PY,IG((function(r,n){var i,o=!0;r.subscribe(MG(n,(function(r){var a=t(r);!o&&e(i,a)||(o=!1,i=a,n.next(r))})))}))}function PY(e,t){return e===t}function OY(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"===typeof e?e:{count:e}).count,n=void 0===r?1/0:r,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return n<=0?nG:IG((function(e,t){var r,o=0,s=function(){var c=!1;r=e.subscribe(MG(t,(function(e){a&&(o=0),t.next(e)}),void 0,(function(e){if(o++{r.set(t,e[t])})),r}typecheckKey(e){this.keySchema&&this.keySchema.Typecheck(e)}typecheckValue(e){this.valueSchema&&this.valueSchema.Typecheck(e)}assertTypecheckValue(e){try{this.typecheckValue(e)}catch(Mde){throw new UY(e,this.valueSchema,"value",Mde)}}assertTypecheckKey(e){try{this.typecheckKey(e)}catch(Mde){throw new UY(e,this.keySchema,"key",Mde)}}serializeDeterministically(e){return DY()(e)}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){for(const e of this.valueMap.keys())yield[this.keyMap.get(e),this.valueMap.get(e)]}get(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.valueMap.get(t)}set(e,t){this.assertTypecheckKey(e),this.assertTypecheckValue(t);const r=this.serializeDeterministically(e);this.keyMap.set(r,e),this.valueMap.set(r,t)}delete(e){this.assertTypecheckKey(e),this.keyMap.delete(this.serializeDeterministically(e)),this.valueMap.delete(this.serializeDeterministically(e))}has(e){this.assertTypecheckKey(e);const t=this.serializeDeterministically(e);return this.keyMap.has(t)&&this.valueMap.has(t)}clear(){this.keyMap.clear(),this.valueMap.clear()}get size(){return this.keyMap.size}forEach(e){for(const[t,r]of this.entries())e(r,t,this)}}LY=FY;class HY extends ls{constructor(e,t,r){super(),this.value=e,this.token=t,this.name="TokenValidationError";const n=this.token.annot(),i=n?`[${n}] `:"";this.message=`${i}${r}`}}class VY{constructor(e,t,r){this.val=e,this.idx=t,this.fac=r,this.createToken=this.fac}typeWithoutAnnotations(){const e=t=>{if("object"===typeof t){if(Array.isArray(t)){return t.map((t=>e(t)))}const r=t;return r.args?{prim:r.prim,args:r.args.map((t=>e(t)))}:{prim:r.prim}}return t};return(t=this.val).args?{prim:t.prim,args:t.args.map((t=>e(t)))}:{prim:t.prim};var t}annot(){return(Array.isArray(this.val.annots)&&this.val.annots.length>0?this.val.annots[0]:String(this.idx)).replace(/(%|:)(_Liq_entry_)?/,"")}hasAnnotations(){return Array.isArray(this.val.annots)&&this.val.annots.length}get tokenVal(){return this.val}ExtractSignature(){return[[this.ExtractSchema()]]}}class qY extends VY{compare(e,t){return e===t?0:ethis.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[WY.prim]?t[WY.prim](r,this.val):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}Execute(e,t){if(t&&t[WY.prim])return t[WY.prim](e,this.val);if(Array.isArray(e)){const t=new $Y(this.val);return e.forEach((e=>{t.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1]))})),t}if("int"in e)return e.int;throw new KY(e,this,`Big map is expecting either an array (Athens) or an object with an int property (Babylon). Got ${JSON.stringify(e)}`)}findAndReturnTokens(e,t){return WY.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}WY.prim="big_map";class GY extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="OrValidationError"}}class YY extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e[e.length-1],r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof YY&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if(String(r.annot())!==String(t)||r instanceof YY){if(String(i.annot())!==String(t)||i instanceof YY){if(r instanceof YY){const t=r.Encode(e);if(t)return{prim:"Left",args:[t]}}if(i instanceof YY){const t=i.Encode(e);if(t)return{prim:"Right",args:[t]}}return null}return e.pop(),{prim:"Right",args:[i.Encode(e)]}}return e.pop(),{prim:"Left",args:[r.Encode(e)]}}ExtractSignature(){const e=this.createToken(this.val.args[0],this.idx);let t=1;e instanceof YY&&(t=Object.keys(e.ExtractSchema()).length);const r=this.createToken(this.val.args[1],this.idx+t),n=[];if(e instanceof YY)n.push(...e.ExtractSignature());else for(const i of e.ExtractSignature())n.push([e.annot(),...i]);if(r instanceof YY)n.push(...r.ExtractSignature());else for(const i of r.ExtractSignature())n.push([r.annot(),...i]);return n}EncodeObject(e,t){this.validateJavascriptObject(e);const r=Object.keys(e)[0],n=this.createToken(this.val.args[0],this.idx);let i=1;n instanceof YY&&(i=Object.keys(n.ExtractSchema()).length);const o=this.createToken(this.val.args[1],this.idx+i);if(String(n.annot())!==String(r)||n instanceof YY){if(String(o.annot())!==String(r)||o instanceof YY){if(n instanceof YY){const r=n.EncodeObject(e,t);if(r)return{prim:"Left",args:[r]}}if(o instanceof YY){const r=o.EncodeObject(e,t);if(r)return{prim:"Right",args:[r]}}return null}return{prim:"Right",args:[o.EncodeObject(e[r],t)]}}return{prim:"Left",args:[n.EncodeObject(e[r],t)]}}validateJavascriptObject(e){if("object"!==typeof e||Array.isArray(e)||null===e||1!==Object.keys(e).length)throw new GY(e,this,`EncodeObject expects an object with a single key but got: ${JSON.stringify(e)}`)}Execute(e,t){const r=this.createToken(this.val.args[0],this.idx);let n=1;r instanceof YY&&(n=Object.keys(r.ExtractSchema()).length);const i=this.createToken(this.val.args[1],this.idx+n);if("Right"===e.prim)return i instanceof YY?i.Execute(e.args[0],t):{[i.annot()]:i.Execute(e.args[0],t)};if("Left"===e.prim)return r instanceof YY?r.Execute(e.args[0],t):{[r.annot()]:r.Execute(e.args[0],t)};throw new GY(e,this,`Was expecting Left or Right prim but got: ${JSON.stringify(e.prim)}`)}traversal(e,t,r){const n=this.createToken(this.val.args[0],this.idx);let i,o=1;n instanceof YY?(i=e(n),o=Object.keys(n.ExtractSchema()).length):i={[n.annot()]:e(n)};const a=this.createToken(this.val.args[1],this.idx+o);let s;s=a instanceof YY?t(a):{[a.annot()]:t(a)};return r(i,s)}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}generateSchema(){return{__michelsonType:YY.prim,schema:this.traversal((e=>e instanceof YY?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof YY?e.generateSchema().schema:e.generateSchema()),((e,t)=>Object.assign(Object.assign({},e),t)))}}findToken(e){const t=this.createToken(this.val.args[0],this.idx);let r=1;t instanceof YY&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(this.val.args[1],this.idx+r);if(String(t.annot())===String(e)&&!(t instanceof YY)&&t instanceof qY)return t;if(String(n.annot())===String(e)&&!(n instanceof YY)&&n instanceof qY)return n;if(t instanceof YY){const r=t.findToken(e);if(r)return r}if(n instanceof YY){const t=n.findToken(e);if(t)return t}return null}compare(e,t){const r=Object.keys(e)[0];if(r!==Object.keys(t)[0]){return JSON.stringify(this.EncodeObject(e))r.findAndReturnTokens(e,t)),(r=>r.findAndReturnTokens(e,t)),((e,t)=>Object.assign(Object.assign({},e),t))),t}}YY.prim="or";class ZY extends ls{constructor(e){super(e),this.message=e,this.name="TokenArgumentValidationError"}}class XY extends ls{constructor(e,t){super(),this.val1=e,this.val2=t,this.name="TokenComparisonError",this.message=`Tokens ${JSON.stringify(e)} and ${JSON.stringify(t)} are not comparable`}}function JY(e,t=QY.prim){if(Array.isArray(e))return JY({prim:t,args:e},t);if(void 0===e.args)throw new ZY(`The value ${JSON.stringify(e)} is an invalid PairToken with no arguments, a pair must have two or more arguments.`);return e.args.length>2?[e.args[0],{prim:t,args:e.args.slice(1)}]:[e.args[0],e.args[1]]}class QY extends qY{constructor(e,t,r){super(Array.isArray(e)?{prim:QY.prim,args:e}:e.prim?e:{prim:QY.prim,args:e},t,r)}args(){return JY(this.val)}tokens(){let e=0;return this.args().map((t=>{const r=this.createToken(t,this.idx+e);return r instanceof QY?e+=Object.keys(r.ExtractSchema()).length:e++,r}))}Encode(e){return{prim:"Pair",args:this.tokens().map((t=>t.Encode(e)))}}ExtractSignature(){const e=this.args(),t=this.createToken(e[0],this.idx);let r=1;t instanceof YY&&(r=Object.keys(t.ExtractSchema()).length);const n=this.createToken(e[1],this.idx+r),i=[];for(const o of t.ExtractSignature())for(const e of n.ExtractSignature())i.push([...o,...e]);return i}ToBigMapKey(e){return{key:this.EncodeObject(e),type:this.typeWithoutAnnotations()}}ToKey(e){return this.Execute(e)}EncodeObject(e,t){const[r,n]=this.tokens();let i,o;return i=r instanceof QY&&!r.hasAnnotations()?e:e[r.annot()],o=n instanceof QY&&!n.hasAnnotations()?e:e[n.annot()],{prim:"Pair",args:[r.EncodeObject(i,t),n.EncodeObject(o,t)]}}traversal(e,t){const r=this.args(),n=this.createToken(r[0],this.idx);let i,o=1;n instanceof QY&&!n.hasAnnotations()?(i=e(n),n instanceof QY&&(o=Object.keys(n.ExtractSchema()).length)):i={[n.annot()]:e(n)};const a=this.createToken(r[1],this.idx+o);let s;s=a instanceof QY&&!a.hasAnnotations()?t(a):{[a.annot()]:t(a)};return Object.assign(Object.assign({},i),s)}Execute(e,t){const r=JY(e,"Pair");return this.traversal((e=>e.Execute(r[0],t)),(e=>e.Execute(r[1],t)))}ExtractSchema(){return this.traversal((e=>e.ExtractSchema()),(e=>e.ExtractSchema()))}generateSchema(){return{__michelsonType:QY.prim,schema:this.traversal((e=>e instanceof QY&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()),(e=>e instanceof QY&&!e.hasAnnotations()?e.generateSchema().schema:e.generateSchema()))}}compare(e,t){const[r,n]=this.tokens(),i=(e,t)=>e instanceof QY&&!e.hasAnnotations()?t:t[e.annot()];if(r instanceof qY&&n instanceof qY){const o=r.compare(i(r,e),i(r,t));return 0===o?n.compare(i(n,e),i(n,t)):o}throw new XY(e,t)}findAndReturnTokens(e,t){return QY.prim===e&&t.push(this),this.tokens().map((r=>r.findAndReturnTokens(e,t))),t}}QY.prim="pair";class eZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NatValidationError"}}class tZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Xs(e[Object.keys(e)[0]])}Encode(e){const t=e.pop();return this.validate(t),{int:new Xs(t).toFixed()}}validate(e){const t=new Xs(e);if(t.isNaN())throw new eZ(e,this,`Value is not a number: ${JSON.stringify(e)}`);if(t.isNegative())throw new eZ(e,this,`Value cannot be negative: ${JSON.stringify(e)}`)}EncodeObject(e,t){return this.validate(e),t&&t[tZ.prim]?t[tZ.prim](e):{int:new Xs(e).toFixed()}}ExtractSchema(){return tZ.prim}generateSchema(){return{__michelsonType:tZ.prim,schema:tZ.prim}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:tZ.prim}}}ToKey({int:e}){return new Xs(e)}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:re.startsWith("tz"),n=r(e),i=r(t);return n&&!i?-1:i&&!n?1:super.compare(e,t)}findAndReturnTokens(e,t){return iZ.prim===e&&t.push(this),t}}iZ.prim="address";class oZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MapValidationError"}}class aZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get ValueSchema(){return this.createToken(this.val.args[1],0)}get KeySchema(){return this.createToken(this.val.args[0],0)}validate(e){if(!$Y.isMichelsonMap(e))throw new oZ(e,this,`Value ${JSON.stringify(e)} is not a valid MichelsonMap`)}Execute(e,t){const r=new $Y(this.val);return e.forEach((e=>{r.set(this.KeySchema.ToKey(e.args[0]),this.ValueSchema.Execute(e.args[1],t))})),r}objLitToMichelsonMap(e){return e instanceof $Y?e:"object"===typeof e?0===Object.keys(e).length?new $Y:$Y.fromLiteral(e):e}Encode(e){const t=this.objLitToMichelsonMap(e.pop());return this.validate(t),Array.from(t.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(t.get(e))]})))}EncodeObject(e,t){const r=this.objLitToMichelsonMap(e);return this.validate(r),t&&t[aZ.prim]?t[aZ.prim](r):Array.from(r.keys()).sort(((e,t)=>this.KeySchema.compare(e,t))).map((e=>({prim:"Elt",args:[this.KeySchema.EncodeObject(e),this.ValueSchema.EncodeObject(r.get(e))]})))}ExtractSchema(){return{map:{key:this.KeySchema.ExtractSchema(),value:this.ValueSchema.ExtractSchema()}}}generateSchema(){return{__michelsonType:aZ.prim,schema:{key:this.KeySchema.generateSchema(),value:this.ValueSchema.generateSchema()}}}findAndReturnTokens(e,t){return aZ.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),this.ValueSchema.findAndReturnTokens(e,t),t}}aZ.prim="map";class sZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return"true"===String(e.prim).toLowerCase()}Encode(e){return{prim:e.pop()?"True":"False"}}EncodeObject(e,t){return t&&t[sZ.prim]?t[sZ.prim](e):{prim:e?"True":"False"}}ExtractSchema(){return sZ.prim}generateSchema(){return{__michelsonType:sZ.prim,schema:sZ.prim}}ToBigMapKey(e){return{key:this.EncodeObject(e),type:{prim:sZ.prim}}}ToKey(e){return this.EncodeObject(e)}compare(e,t){return e&&t||!e&&!t?0:e?1:-1}findAndReturnTokens(e,t){return sZ.prim===e&&t.push(this),t}}sZ.prim="bool";class cZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ContractValidationError"}}class lZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(gc(e)!==ac.VALID)throw new cZ(e,this,`Value ${JSON.stringify(e)} is not a valid contract address.`);return null}Execute(e){if(e.string)return e.string;if(!e.bytes)throw new cZ(e,this,`Value ${JSON.stringify(e)} is not a valid contract address. must contain bytes or string.`);return Cc(e.bytes)}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[lZ.prim]?t[lZ.prim](e):{string:e}}ExtractSchema(){return lZ.prim}generateSchema(){const e=this.createToken(this.val.args[0],0);return{__michelsonType:lZ.prim,schema:{parameter:this.val.args[0]?e.generateSchema():{}}}}findAndReturnTokens(e,t){return lZ.prim===e&&t.push(this),t}}lZ.prim="contract";class uZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ListValidationError"}}class dZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueSchema(){return this.createToken(this.val.args[0],this.idx)}validate(e){if(!Array.isArray(e))throw new uZ(e,this,`Value ${JSON.stringify(e)} is not a valid array`)}Encode(e){const t=e.pop();this.validate(t);const r=this.createToken(this.val.args[0],0);return t.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}Execute(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),e.reduce(((e,n)=>[...e,r.Execute(n,t)]),[])}EncodeObject(e,t){const r=this.createToken(this.val.args[0],0);return this.validate(e),t&&t[dZ.prim]?t[dZ.prim](e):e.reduce(((e,t)=>[...e,r.EncodeObject(t)]),[])}ExtractSchema(){return{[dZ.prim]:this.valueSchema.ExtractSchema()}}generateSchema(){return{__michelsonType:dZ.prim,schema:this.valueSchema.generateSchema()}}findAndReturnTokens(e,t){return dZ.prim===e&&t.push(this),this.createToken(this.val.args[0],this.idx).findAndReturnTokens(e,t),t}}dZ.prim="list";class hZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="MutezValidationError"}}class fZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){return new Xs(e[Object.keys(e)[0]])}ExtractSchema(){return fZ.prim}generateSchema(){return{__michelsonType:fZ.prim,schema:fZ.prim}}validate(e){if(new Xs(e).isNaN())throw new hZ(e,this,`Value is not a number: ${e}`)}Encode(e){const t=e.pop();return this.validate(t),{int:String(t).toString()}}EncodeObject(e,t){return this.validate(e),t&&t[fZ.prim]?t[fZ.prim](e):{int:String(e).toString()}}ToBigMapKey(e){return{key:{int:String(e)},type:{prim:fZ.prim}}}ToKey({int:e}){return e}compare(e,t){const r=Number(e),n=Number(t);return r===n?0:rthis.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}Execute(e,t){return e.reduce(((e,r)=>[...e,this.KeySchema.Execute(r,t)]),[])}EncodeObject(e,t){return this.validate(e),t&&t[CZ.prim]?t[CZ.prim](e):e.sort(((e,t)=>this.KeySchema.compare(e,t))).reduce(((e,t)=>[...e,this.KeySchema.EncodeObject(t)]),[])}ExtractSchema(){return CZ.prim}generateSchema(){return{__michelsonType:CZ.prim,schema:this.KeySchema.generateSchema()}}findAndReturnTokens(e,t){return CZ.prim===e&&t.push(this),this.KeySchema.findAndReturnTokens(e,t),t}}CZ.prim="set";class jZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChainIDValidationError"}}class RZ extends qY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(vc(e)!==ac.VALID)throw new jZ(e,this,`Value ${JSON.stringify(e)} is not a valid ChainID`)}Execute(e){return e[Object.keys(e)[0]]}ExtractSchema(){return RZ.prim}generateSchema(){return{__michelsonType:RZ.prim,schema:RZ.prim}}Encode(e){const t=e.pop();return this.validate(t),{string:t}}EncodeObject(e,t){return this.validate(e),t&&t[RZ.prim]?t[RZ.prim](e):{string:e}}ToKey({string:e}){return e}ToBigMapKey(e){return{key:{string:e},type:{prim:RZ.prim}}}findAndReturnTokens(e,t){return RZ.prim===e&&t.push(this),t}}RZ.prim="chain_id";class IZ extends ls{constructor(){super(),this.name="TicketEncodeError",this.message="Tickets cannot be sent to the blockchain; they are created on-chain"}}const MZ={prim:"contract"},LZ={prim:"int"};class NZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new IZ}EncodeObject(e,t){if(t&&t[NZ.prim])return t[NZ.prim](e,this.val);throw new IZ}Execute(e,t){if(t&&t[NZ.prim])return t[NZ.prim](e,this.val);const r=this.createToken(MZ,this.idx),n=this.valueToken,i=this.createToken(LZ,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:lZ.prim,value:this.valueToken.ExtractSchema(),amount:bZ.prim}}generateSchema(){return{__michelsonType:NZ.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:lZ.prim,schema:lZ.prim},amount:{__michelsonType:bZ.prim,schema:bZ.prim}}}}findAndReturnTokens(e,t){return NZ.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}NZ.prim="ticket";class DZ extends ls{constructor(){super(),this.name="TicketDeprecatedEncodeError",this.message="Ticket_deprecated cannot be sent to the blockchain; they are created on-chain"}}const zZ={prim:"contract"},BZ={prim:"int"};class FZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}get valueToken(){return this.createToken(this.val.args[0],this.idx)}Encode(e){throw new DZ}EncodeObject(e,t){if(t&&t[FZ.prim])return t[FZ.prim](e,this.val);throw new DZ}Execute(e,t){if(t&&t[FZ.prim])return t[FZ.prim](e,this.val);const r=this.createToken(zZ,this.idx),n=this.valueToken,i=this.createToken(BZ,this.idx);return void 0===e.args[2]&&void 0!==e.args[1].args?{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1].args[0],t),amount:i.Execute(e.args[1].args[1],t)}:{ticketer:r.Execute(e.args[0],t),value:n.Execute(e.args[1],t),amount:i.Execute(e.args[2],t)}}ExtractSchema(){return{ticketer:lZ.prim,value:this.valueToken.ExtractSchema(),amount:bZ.prim}}generateSchema(){return{__michelsonType:FZ.prim,schema:{value:this.valueToken.generateSchema(),ticketer:{__michelsonType:lZ.prim,schema:lZ.prim},amount:{__michelsonType:bZ.prim,schema:bZ.prim}}}}findAndReturnTokens(e,t){return FZ.prim===e&&t.push(this),this.valueToken.findAndReturnTokens(e,t),t}}FZ.prim="ticket_deprecated";class UZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="NeverTokenError"}}class $Z extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Encode(e){const t=e.pop();throw new UZ(t,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(t)}.`)}EncodeObject(e,t){if(t&&t[$Z.prim])return t[$Z.prim](e);throw new UZ(e,this,`Assigning a value to the type never is forbidden. Trying to assign ${JSON.stringify(e)}.`)}Execute(e){throw new UZ(e,this,`There is no literal value for the type never. Trying to execute ${JSON.stringify(e)}.`)}ExtractSchema(){return $Z.prim}generateSchema(){return{__michelsonType:$Z.prim,schema:$Z.prim}}findAndReturnTokens(e,t){return $Z.prim===e&&t.push(this),t}}$Z.prim="never";class HZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingStateValidationError"}}class VZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}isValid(e){return"object"===typeof e&&0===Object.keys(e).length}Execute(e,t){if(t&&t[VZ.prim])return t[VZ.prim](e,this.val);if("int"in e)return e.int;throw new HZ(e,this,`Sapling state is expecting an object with an int property. Got ${JSON.stringify(e)}`)}Encode(e){const t=e.pop();if(this.isValid(t))return[];throw new HZ(t,this,`Invalid sapling_state. Received: ${JSON.stringify(t)} while expecting: {}`)}EncodeObject(e,t){if(t&&t[VZ.prim])return t[VZ.prim](e);if(this.isValid(e))return[];throw new HZ(e,this,`Invalid sapling_state. Received: ${JSON.stringify(e)} while expecting: {}`)}ExtractSchema(){return{[VZ.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:VZ.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return VZ.prim===e&&t.push(this),t}}VZ.prim="sapling_state";class qZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionValidationError"}}class KZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new qZ(e,this,`There is no literal value for the sapling_transaction type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new qZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[KZ.prim]?t[KZ.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[KZ.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:KZ.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return KZ.prim===e&&t.push(this),t}}KZ.prim="sapling_transaction";class WZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="SaplingTransactionDeprecatedValidationError"}}class GZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e){throw new WZ(e,this,`There is no literal value for the sapling_transaction_deprecated type. Got: ${JSON.stringify(e)}.`)}validateBytes(e){const t=/^(0x|0X)?([0-9a-fA-F]*$)/.exec(e);if(t&&t[2].length%2===0)return t[2];throw new WZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.validateBytes(this.convertUint8ArrayToHexString(t)),{bytes:String(t).toString()}}EncodeObject(e,t){return e=this.validateBytes(this.convertUint8ArrayToHexString(e)),t&&t[GZ.prim]?t[GZ.prim](e):{bytes:String(e).toString()}}ExtractSchema(){return{[GZ.prim]:{"memo-size":Number(this.val.args[0].int)}}}generateSchema(){return{__michelsonType:GZ.prim,schema:{memoSize:this.val.args[0].int}}}findAndReturnTokens(e,t){return GZ.prim===e&&t.push(this),t}}GZ.prim="sapling_transaction_deprecated";class YZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381frValidationError"}}class ZZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new YZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return"number"===typeof t?{int:t.toString()}:(t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t})}EncodeObject(e,t){return t&&t[ZZ.prim]?t[ZZ.prim](e):"number"===typeof e?{int:e.toString()}:(e=this.convertUint8ArrayToHexString(e),this.validate(e),{bytes:e})}Execute(e){return e.bytes}ExtractSchema(){return ZZ.prim}generateSchema(){return{__michelsonType:ZZ.prim,schema:ZZ.prim}}findAndReturnTokens(e,t){return ZZ.prim===e&&t.push(this),t}}ZZ.prim="bls12_381_fr";class XZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g1ValidationError"}}class JZ extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new XZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[JZ.prim]?t[JZ.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return JZ.prim}generateSchema(){return{__michelsonType:JZ.prim,schema:JZ.prim}}findAndReturnTokens(e,t){return JZ.prim===e&&t.push(this),t}}JZ.prim="bls12_381_g1";class QZ extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="Bls12381g2ValidationError"}}class eX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new QZ(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[eX.prim]?t[eX.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return eX.prim}generateSchema(){return{__michelsonType:eX.prim,schema:eX.prim}}findAndReturnTokens(e,t){return eX.prim===e&&t.push(this),t}}eX.prim="bls12_381_g2";class tX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestValidationError"}}class rX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!=0)throw new tX(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[rX.prim]?t[rX.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return rX.prim}generateSchema(){return{__michelsonType:rX.prim,schema:rX.prim}}findAndReturnTokens(e,t){return rX.prim===e&&t.push(this),t}}rX.prim="chest";class nX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="ChestKeyValidationError"}}class iX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}validate(e){if(!/^[0-9a-fA-F]*$/.test(e)||e.length%2!==0)throw new nX(e,this,`Invalid bytes: ${JSON.stringify(e)}`)}convertUint8ArrayToHexString(e){return e.constructor===Uint8Array?zY.from(e).toString("hex"):e}Encode(e){let t=e.pop();return t=this.convertUint8ArrayToHexString(t),this.validate(t),{bytes:t}}EncodeObject(e,t){return e=this.convertUint8ArrayToHexString(e),this.validate(e),t&&t[iX.prim]?t[iX.prim](e):{bytes:e}}Execute(e){return e.bytes}ExtractSchema(){return iX.prim}generateSchema(){return{__michelsonType:iX.prim,schema:iX.prim}}findAndReturnTokens(e,t){return iX.prim===e&&t.push(this),t}}iX.prim="chest_key";class oX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantEncodingError"}}class aX extends HY{constructor(e,t,r){super(e,t,r),this.value=e,this.token=t,this.name="GlobalConstantDecodingError"}}class sX extends VY{constructor(e,t,r){super(e,t,r),this.val=e,this.idx=t,this.fac=r}Execute(e,t){if(t&&t[sX.prim])return t[sX.prim](e,this.val);throw new aX(e,this,`Unable to decode a value represented by a global constants. Please provide an expanded script to the Michelson-Encoder or semantics for the decoding. The following global constant hash was encountered: ${this.val.args[0].string}.`)}Encode(e){throw new oX(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}EncodeObject(e,t){if(t&&t[sX.prim])return t[sX.prim](e);throw new oX(e,this,`Unable to encode a script containing global constants. Please provide an expanded script to the Michelson-Encoder. The following global constant hash was encountered: ${this.val.args[0].string}.`)}ExtractSchema(){return sX.prim}generateSchema(){return{__michelsonType:sX.prim,schema:{hash:this.val.args[0].string}}}findAndReturnTokens(e,t){return sX.prim===e&&t.push(this),t}}sX.prim="constant";const cX=[QY,tZ,rZ,WY,iZ,aZ,sZ,YY,lZ,dZ,fZ,mZ,gZ,vZ,bZ,wZ,_Z,kZ,AZ,PZ,OZ,CZ,RZ,NZ,FZ,$Z,VZ,KZ,GZ,ZZ,JZ,eX,rX,iX,sX];class lX extends ls{constructor(e,t){super(e),this.message=e,this.data=t,this.name="Invalid token error"}}function uX(e,t){if(Array.isArray(e))return new QY(e,t,uX);const r=cX.find((t=>t.prim===e.prim));if(!r)throw new lX(`Malformed data: ${JSON.stringify(e)}. Expected a value with a valid prim property`,e);return new r(e,t,uX)}class dX extends xs{constructor(e,t,r,n){super(e,t,r,n),this.viewName=e,this.sigs=t,this.args=r,this.cause=n,this.name="ParameterEncodingError",this.message=`Could not encode parameter ${JSON.stringify(r)} received for name "${e}" expecting one of the following signatures ${JSON.stringify(t)}`}}class hX extends ls{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidScriptError";let r="Invalid on-chain view found in the following script.";t&&(r+=` Reason: ${t}.`),r+=`Script: ${JSON.stringify(e)}`,this.message=r}}class fX extends ls{constructor(e,t){super(),this.script=e,this.reason=t,this.name="InvalidRpcResponseError";let r="Invalid RPC response passed as argument(s).";t&&(r+=` Reason: ${t}.`),r+=` Received: ${JSON.stringify(e)}`,this.message=r}}class pX extends ls{constructor(e){super(e),this.message=e,this.name="InvalidBigMapSchemaError"}}class mX extends ls{constructor(e,t){super(e),this.message=e,this.value=t,this.name="InvalidBigMapDiffError"}}class gX extends ls{constructor(e,t,r,n){super(),this.details=t,this.schema=r,this.value=n,this.name="BigMapEncodingError",this.message=`Unable to encode the big map ${e}. Schema is: ${JSON.stringify(r)}. The ${e} is: ${JSON.stringify(n)}. Error details: ${t}`}}class vX extends ls{constructor(e,t,r,n,i){super(),this.details=t,this.schema=r,this.value=n,this.semantics=i,this.name="StorageEncodingError",this.message=`Unable to encode ${e}. The schema is: ${JSON.stringify(r)}, the value is: ${JSON.stringify(n)}.${i?`And the semantic is: ${JSON.stringify(i)}`:""}. Error details: ${t}`}}class yX extends ls{constructor(e){super(e),this.message=e,this.name="MissingArgumentError"}}var bX;const wX=Symbol.for("taquito-schema-type-symbol");function xX(e,t=QY.prim){var r,n;if(Array.isArray(e))return xX({prim:t,args:e},t);const i=e;return i.prim===t&&i.args&&i.args.length>2?Object.assign(Object.assign({},i),{args:[null===(r=i.args)||void 0===r?void 0:r[0],{prim:t,args:null===(n=i.args)||void 0===n?void 0:n.slice(1)}]}):i}function _X(e,t){if(void 0===e||void 0===t)return e===t;const r=xX(e),n=xX(t);return r.prim===n.prim&&(void 0===r.args&&void 0===n.args||void 0!==r.args&&void 0!==n.args&&r.args.length===n.args.length&&r.args.every(((e,t)=>{var r,i;return _X(e,null!==(i=null===(r=n.args)||void 0===r?void 0:r[t])&&void 0!==i?i:{})})))&&(void 0===r.annots&&void 0===n.annots||void 0!==r.annots&&void 0!==n.annots&&r.annots.length===n.annots.length&&r.annots.every(((e,t)=>{var r;return e===(null===(r=n.annots)||void 0===r?void 0:r[t])})))}class SX{static isSchema(e){return e&&!0===e[wX]}static fromRPCResponse(e){if(!e)throw new fX(e,"the RPC response is empty");if(!e.script)throw new fX(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new fX(e,"The response.script.code should be an array");let t=e.script.code;for(;1===t.length&&Array.isArray(t[0]);)t=t[0];const r=t.find((e=>"prim"in e&&"storage"===e.prim));if(!r||!Array.isArray(r.args))throw new fX(e,'The response.script.code has an element of type {prim: "storage"}, but its args is not an array');return new SX(r.args[0])}isExpressionExtended(e){return"prim"in e&&Array.isArray(e.args)}constructor(e){if(this.val=e,this[bX]=!0,this.root=uX(e,0),this.root instanceof WY)this.bigMap=this.root;else if(this.isExpressionExtended(e)&&"pair"===e.prim){const t=e.args[0];this.isExpressionExtended(t)&&"big_map"===t.prim&&(this.bigMap=new WY(t,0,uX))}}removeTopLevelAnnotation(e){return(this.root instanceof QY||this.root instanceof YY)&&this.root.hasAnnotations()&&"object"===typeof e&&1===Object.keys(e).length?e[Object.keys(e)[0]]:e}Execute(e,t){const r=this.root.Execute(e,t);return this.removeTopLevelAnnotation(r)}Typecheck(e){this.root instanceof WY&&Number.isInteger(Number(e))||this.root instanceof NZ&&e.ticketer&&e.value&&e.amount||this.root instanceof FZ&&e.ticketer&&e.value&&e.amount||this.root instanceof aZ&&this.root.ValueSchema instanceof WY||this.root.EncodeObject(e)}ExecuteOnBigMapDiff(e,t){if(!this.bigMap)throw new pX("Big map schema is undefined");if(!Array.isArray(e))throw new mX(`Big map diff must be an array, got: ${JSON.stringify(e)}`,e);const r=e.map((({key:e,value:t})=>({args:[e,t]})));return this.bigMap.Execute(r,t)}ExecuteOnBigMapValue(e,t){if(!this.bigMap)throw new pX("Big map schema is undefined");return this.bigMap.ValueSchema.Execute(e,t)}EncodeBigMapKey(e){if(!this.bigMap)throw new pX("Big map schema is undefined");try{return this.bigMap.KeySchema.ToBigMapKey(e)}catch(t){throw new gX("key",t,this.bigMap.KeySchema,e)}}Encode(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof HY)throw r;throw new vX("storage object",r,this.root,e,t)}}ExtractSchema(){return this.removeTopLevelAnnotation(this.root.ExtractSchema())}generateSchema(){return this.removeTopLevelAnnotation(this.root.generateSchema())}ComputeState(e,t){if(!this.bigMap)throw new pX("Big map schema is undefined");const r=e.reduce(((e,t)=>Object.assign(Object.assign({},e),this.ExecuteOnBigMapDiff(t.contents[0].metadata.operation_result.big_map_diff))),{});return Object.assign(Object.assign({},this.Execute(t)),{[this.bigMap.annot()]:r})}FindFirstInTopLevelPair(e,t){return this.findValue(this.root.val,e,t)}findValue(e,t,r){if(_X(r,e))return t;if(Array.isArray(e)||"pair"===e.prim){const n=xX(e),i=xX(t,"Pair");if(void 0===n.args||void 0===i.args)throw new yX("Tokens have no arguments");if(n.args[0])return this.findValue(n.args[0],i.args[0],r)||this.findValue(n.args[1],i.args[1],r)}}findToken(e){return this.root.findAndReturnTokens(e,[])}}bX=wX;class kX{static fromRPCResponse(e){if(!e)throw new fX(e,"the RPC response is empty");if(!e.script)throw new fX(e,"the RPC response has no script");if(!Array.isArray(e.script.code))throw new fX(e,"The response.script.code should be an array");const t=e.script.code.find((e=>"prim"in e&&"parameter"===e.prim));if(!t)throw new fX(e,'The response.script.code should have an element of type {prim: "parameter"}');if(!Array.isArray(t.args))throw new fX(e,'The response.script.code has an element of type {prim: "parameter"}, but its args is not an array');return new kX(t.args[0])}get isMultipleEntryPoint(){return this.root instanceof YY||this.root instanceof gZ&&this.root.subToken()instanceof YY}get hasAnnotation(){return!this.isMultipleEntryPoint||"0"!==Object.keys(this.ExtractSchema())[0]}constructor(e){this.root=uX(e,0)}Execute(e,t){return this.root.Execute(e,t)}Encode(...e){try{return this.root.Encode(e.reverse())}catch(t){if(t instanceof HY)throw t;throw new dX("Unable to encode parameter",this.root,e,t)}}EncodeObject(e,t){try{return this.root.EncodeObject(e,t)}catch(r){if(r instanceof HY)throw r;throw new dX("Unable to encode parameter object",this.root,e,r)}}ExtractSchema(){return this.root.ExtractSchema()}generateSchema(){return this.root.generateSchema()}ExtractSignatures(){return this.root.ExtractSignature()}}class EX{static fromRPCResponse(e){const t=[],r=e&&e.script&&Array.isArray(e.script.code)&&e.script.code.filter((e=>"view"===e.prim));return r&&r.forEach((e=>{t.push(new EX(e.args))})),t}constructor(e){if(!e)throw new hX(e,"the args are not defined");if(4!==e.length)throw new hX(e,"there should be exactly 4 arguments");if(!("string"in e[0])||!e[0].string)throw new hX(e,"The first argument should be a string, representing the view name. It should be in the form: { string: 'viewName' }");this.viewName=e[0].string,this.viewArgsType=e[1],this.viewReturnType=e[2],this.instructions=e[3],this.rootArgsType=uX(this.viewArgsType,0),this.rootReturnType=uX(this.viewReturnType,0)}encodeViewArgs(e){try{return this.rootArgsType.EncodeObject(e)}catch(t){throw new dX(this.viewName,void 0,e,t)}}decodeViewResult(e,t){return this.rootReturnType.Execute(e,t)}extractArgsSchema(){return this.rootArgsType.ExtractSchema()}extractResultSchema(){return this.rootReturnType.ExtractSchema()}}class AX{constructor(e,t){this.tag=e,this.type=t}static fromMichelineValue(e){var t,r;return new AX(null===(t=e.annots)||void 0===t?void 0:t[0],null===(r=e.args)||void 0===r?void 0:r[0])}static fromRPCResponse(e){const t=[];return e.script.code.forEach((e=>{"prim"in e&&"code"===e.prim&&"args"in e&&e.args&&t.push(...AX.extractEventsRecursively(e.args))})),AX.removeDuplicates(t)}static removeDuplicates(e){const t=[];return e.forEach((e=>{const r=t.findIndex((t=>t.tag===e.tag&&_X(t.type,e.type)));-1===r&&t.push(e)})),t}static extractEventsRecursively(e){return Array.isArray(e)?e.flatMap((e=>AX.extractEventsRecursively(e))):"prim"in e?"EMIT"===e.prim?[AX.fromMichelineValue(e)]:"args"in e&&e.args?e.args.flatMap((e=>AX.extractEventsRecursively(e))):[]:[]}}const PX=Symbol(),OX=Symbol("source_reference");class TX extends ls{constructor(e,t,r){super(),this.src=e,this.idx=t,this.message=r,this.name="ScanError"}}var CX;!function(e){e[e.Comment=0]="Comment",e[e.Number=1]="Number",e[e.String=2]="String",e[e.Bytes=3]="Bytes",e[e.Ident=4]="Ident"}(CX||(CX={}));const jX=new RegExp("\\s"),RX=new RegExp("[:@%_A-Za-z]"),IX=new RegExp("[@%_\\.A-Za-z0-9]"),MX=new RegExp("[0-9]"),LX=new RegExp("[0-9a-fA-F]");function*NX(e,t=!1){let r=0;for(;r1&&"0x"===e.substring(r,r+2)){for(r+=2;r1&&"/*"===e.substring(r,r+2)){for(r+=2;r1&&"*/"===e.substring(r,r+2));)r++;if(r===e.length)throw new TX(e,r,"Unterminated C style comment");r+=2,t&&(yield{t:CX.Comment,v:e.slice(i,r),first:i,last:r})}else{if("("!==n&&")"!==n&&"{"!==n&&"}"!==n&&";"!==n)throw new TX(e,r,`Invalid character at offset ${r}: \`${n}'`);r++,yield{t:n,v:n,first:i,last:r}}}}const DX=Symbol("ref_contract");var zX;!function(e){e.Ps9mPmXa="Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P",e.PtCJ7pwo="PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY",e.PsYLVpVv="PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt",e.PsddFKi3="PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP",e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdoTez="PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangzH="PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakarta="PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProxfordY="ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(zX||(zX={}));const BX=zX.Psithaca2,FX={Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P:0,PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY:1,PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt:2,PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP:3,Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd:4,PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU:5,PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS:5,PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb:6,PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo:7,PtEdoTezd3RHSC31mpxxo1npxFjoWWcFgQtxapi51Z8TLu6v6Uq:8,PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA:8,PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i:9,PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV:10,PtHangzHogokSuiMHemCuowEavgYTP8J5qQ9fQS793MHYFpCY3r:11,PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx:11,PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP:12,Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A:12,PtJakartaiDz69SfDDLXJSiuZqTSeSKRDbKVZC8MNzJnvRjvnGw:13,PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY:13,PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg:14,PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW:15,PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc:16,PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1:16,PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf:17,ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH:19,ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK:20};function UX(e,t){return FX[e][e+1,t])),i+=s,o+=l;break}case"I":o!==r.length&&(a[1]=r[o++]);break;default:throw new $X(e,`${e.prim}: unexpected character: ${l}`)}return{r:n(s,c,[0,a]),n:i,an:o}}function WX(e,t,r,n){const i=t[0];switch(i){case"A":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CAR",annots:["@%%"]},WX(e,t.slice(1),[],n)]]},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%@","%@",...r]}]:n.a;case"D":return t.length>1?[{prim:"DUP"},{prim:"DIP",args:[[{prim:"CDR",annots:["@%%"]},WX(e,t.slice(1),[],n)]]},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%@",...r]}]:n.d;default:throw new $X(e,`${e.prim}: unexpected character: ${i}`)}}function GX(e,t){let r=e.length;for(;r>0&&e[r-1]===t;)r--;return e.slice(0,r)}function YX(e){const t=[],r=[];if(void 0!==e)for(const n of e)(0!==n.length&&"%"===n[0]?t:r).push(n);return{fields:t,rest:r}}function ZX({prim:e,annots:t,args:r}){return Object.assign(Object.assign({prim:e},t&&{annots:t}),r&&{args:r})}const XX=/^P[PAI]{3,}R$/,JX=/^UNP[PAI]{2,}R$/,QX=/^C[AD]{2,}R$/,eJ=/^SET_C[AD]+R$/,tJ=/^MAP_C[AD]+R$/,rJ=/^DI{2,}P$/,nJ=/^DU+P$/;class iJ extends ls{constructor(e,t){super(),this.token=e,this.message=t,this.name="MichelineParseError"}}class oJ extends ls{constructor(e,t){super(),this.node=e,this.message=t,this.name="JSONParseError"}}const aJ=new iJ(null,"Unexpected EOF");function sJ(e){return e.t===CX.Ident&&("@"===e.v[0]||"%"===e.v[0]||":"===e.v[0])}const cJ=new RegExp("^-?[0-9]+$"),lJ=new RegExp("^([0-9a-fA-F]{2})*$");class uJ{constructor(e){this.opt=e}expand(e){var t,r,n;if(void 0!==(null===(t=this.opt)||void 0===t?void 0:t.expandGlobalConstant)&&"constant"===e.prim){const t=function(e,t){return void 0!==e.args&&1===e.args.length&&"string"in e.args[0]&&e.args[0].string in t?t[e.args[0].string]:e}(e,this.opt.expandGlobalConstant);return t!==e&&(t[OX]=Object.assign(Object.assign({},e[OX]||{first:0,last:0}),{globalConstant:e})),t}if(void 0===(null===(r=this.opt)||void 0===r?void 0:r.expandMacros)||(null===(n=this.opt)||void 0===n?void 0:n.expandMacros)){const t=function(e,t){const r=(null===t||void 0===t?void 0:t.protocol)||BX;function n(e){return void 0!==e?[{prim:"RENAME",annots:e}]:[]}switch(e.prim){case"CMPEQ":case"CMPNEQ":case"CMPLT":case"CMPGT":case"CMPLE":case"CMPGE":if(HX(e,0))return[{prim:"COMPARE"},ZX({prim:e.prim.slice(3),annots:e.annots})];break;case"IFEQ":case"IFNEQ":case"IFLT":case"IFGT":case"IFLE":case"IFGE":if(HX(e,2))return[{prim:e.prim.slice(2)},ZX({prim:"IF",annots:e.annots,args:e.args})];break;case"IFCMPEQ":case"IFCMPNEQ":case"IFCMPLT":case"IFCMPGT":case"IFCMPLE":case"IFCMPGE":if(HX(e,2))return[{prim:"COMPARE"},{prim:e.prim.slice(5)},ZX({prim:"IF",annots:e.annots,args:e.args})];break;case"FAIL":if(HX(e,0)&&VX(e))return[{prim:"UNIT"},{prim:"FAILWITH"}];break;case"ASSERT":if(HX(e,0)&&VX(e))return[{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_EQ":case"ASSERT_NEQ":case"ASSERT_LT":case"ASSERT_GT":case"ASSERT_LE":case"ASSERT_GE":if(HX(e,0)&&VX(e))return[{prim:e.prim.slice(7)},{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_CMPEQ":case"ASSERT_CMPNEQ":case"ASSERT_CMPLT":case"ASSERT_CMPGT":case"ASSERT_CMPLE":case"ASSERT_CMPGE":if(HX(e,0)&&VX(e))return[[{prim:"COMPARE"},{prim:e.prim.slice(10)}],{prim:"IF",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_NONE":if(HX(e,0)&&VX(e))return[{prim:"IF_NONE",args:[[],[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_SOME":if(HX(e,0))return[{prim:"IF_NONE",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"ASSERT_LEFT":if(HX(e,0))return[{prim:"IF_LEFT",args:[n(e.annots),[[{prim:"UNIT"},{prim:"FAILWITH"}]]]}];break;case"ASSERT_RIGHT":if(HX(e,0))return[{prim:"IF_LEFT",args:[[[{prim:"UNIT"},{prim:"FAILWITH"}]],n(e.annots)]}];break;case"IF_SOME":if(HX(e,2))return[ZX({prim:"IF_NONE",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"IF_RIGHT":if(HX(e,2))return[ZX({prim:"IF_LEFT",annots:e.annots,args:[e.args[1],e.args[0]]})];break;case"CAR":case"CDR":if(void 0===e.args)return e;if(HX(e,1)&&qX(e,e.args[0])){const t=parseInt(e.args[0].int,10);return ZX({prim:"GET",args:[{int:"CAR"===e.prim?String(2*t+1):String(2*t)}],annots:e.annots})}}if(XX.test(e.prim)&&HX(e,0)){const{fields:t,rest:r}=YX(e.annots),{r:n}=KX(e,e.prim.slice(1),t,((e,t,r)=>[...e||[],...t||[],r]));return n.map((([e,t],i)=>{const o=[...GX(t,null).map((e=>null===e?"%":e)),...0===e&&i===n.length-1?r:[]],a=ZX({prim:"PAIR",annots:0!==o.length?o:void 0});return 0===e?a:{prim:"DIP",args:1===e?[[a]]:[{int:String(e)},[a]]}}))}if(JX.test(e.prim)){if(UX(r,zX.PtEdo2Zk)&&HX(e,0)){const{r:t}=KX(e,e.prim.slice(3),e.annots||[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e,t])=>{const r=[{prim:"DUP"},ZX({prim:"CAR",annots:null!==t[0]?[t[0]]:void 0}),{prim:"DIP",args:[[ZX({prim:"CDR",annots:null!==t[1]?[t[1]]:void 0})]]}];return 0===e?r:{prim:"DIP",args:1===e?[[r]]:[{int:String(e)},[r]]}}))}if("UNPAIR"===e.prim)return e;if(HX(e,0)){const{r:t}=KX(e,e.prim.slice(3),[],((e,t,r)=>[r,...t||[],...e||[]]));return t.map((([e])=>{const t=ZX({prim:"UNPAIR"});return 0===e?t:{prim:"DIP",args:1===e?[[t]]:[{int:String(e)},[t]]}}))}}if(QX.test(e.prim)&&HX(e,0)){const t=[...e.prim.slice(1,e.prim.length-1)];return t.map(((r,n)=>{const i=n===t.length-1?e.annots:void 0;switch(r){case"A":return ZX({prim:"CAR",annots:i});case"D":return ZX({prim:"CDR",annots:i});default:throw new $X(e,`unexpected character: ${r}`)}}))}if(eJ.test(e.prim)&&HX(e,0)){const{fields:t,rest:r}=YX(e.annots);if(t.length>1)throw new $X(e,`unexpected annotation on macro ${e.prim}: ${t}`);const n=0!==t.length?{a:[{prim:"DUP"},{prim:"CAR",annots:t},{prim:"DROP"},{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:[t[0],"%@"]}],d:[{prim:"DUP"},{prim:"CDR",annots:t},{prim:"DROP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",t[0]]}]}:{a:[{prim:"CDR",annots:["@%%"]},{prim:"SWAP"},{prim:"PAIR",annots:["%","%@"]}],d:[{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@","%"]}]};return WX(e,e.prim.slice(5,e.prim.length-1),r,n)}if(tJ.test(e.prim)&&HX(e,1)){const{fields:t}=YX(e.annots);if(t.length>1)throw new $X(e,`unexpected annotation on macro ${e.prim}: ${t}`);const r={a:[{prim:"DUP"},{prim:"CDR",annots:["@%%"]},{prim:"DIP",args:[[ZX({prim:"CAR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0]]]},{prim:"SWAP"},{prim:"PAIR",annots:[0!==t.length?t[0]:"%","%@"]}],d:[{prim:"DUP"},ZX({prim:"CDR",annots:0!==t.length?["@"+t[0].slice(1)]:void 0}),e.args[0],{prim:"SWAP"},{prim:"CAR",annots:["@%%"]},{prim:"PAIR",annots:["%@",0!==t.length?t[0]:"%"]}]};return WX(e,e.prim.slice(5,e.prim.length-1),[],r)}if(rJ.test(e.prim)&&HX(e,1)){let t=0;for(;"I"===e.prim[1+t];)t++;return ZX({prim:"DIP",args:[{int:String(t)},e.args[0]]})}if(nJ.test(e.prim)){let t=0;for(;"U"===e.prim[1+t];)t++;if(UX(r,zX.PtEdo2Zk)){if(1===t){if(void 0===e.args)return e;HX(e,1)&&qX(e,e.args[0])&&(t=parseInt(e.args[0].int,10))}else HX(e,0);return 1===t?[ZX({prim:"DUP",annots:e.annots})]:2===t?[{prim:"DIP",args:[[ZX({prim:"DUP",annots:e.annots})]]},{prim:"SWAP"}]:[{prim:"DIP",args:[{int:String(t-1)},[ZX({prim:"DUP",annots:e.annots})]]},{prim:"DIG",args:[{int:String(t)}]}]}if(1===t)return e;if(HX(e,0))return ZX({prim:"DUP",args:[{int:String(t)}],annots:e.annots})}return e}(e,this.opt);return t!==e&&(t[OX]=Object.assign(Object.assign({},e[OX]||{first:0,last:0}),{macro:e})),t}return e}parseListExpr(e,t){var r;const n={first:t.first,last:t.last},i="("===t.t;let o;if(i){if(o=e.next(),o.done)throw aJ;n.last=o.value.last}else o={value:t};if(o.value.t!==CX.Ident)throw new iJ(o.value,`not an identifier: ${o.value.v}`);const a={prim:o.value.v,[OX]:n};for(;;){const t=e.next();if(t.done){if(i)throw aJ;break}if(")"===t.value.t){if(!i)throw new iJ(t.value,"unexpected closing bracket");n.last=t.value.last;break}if(sJ(t.value))a.annots=a.annots||[],a.annots.push(t.value.v),n.last=t.value.last;else{a.args=a.args||[];const i=this.parseExpr(e,t.value);n.last=(null===(r=i[OX])||void 0===r?void 0:r.last)||n.last,a.args.push(i)}}return this.expand(a)}parseArgs(e,t){var r;const n={first:t.first,last:t.last},i={prim:t.v,[OX]:n};for(;;){const t=e.next();if(t.done||"}"===t.value.t||";"===t.value.t)return[i,t];if(sJ(t.value))n.last=t.value.last,i.annots=i.annots||[],i.annots.push(t.value.v);else{const o=this.parseExpr(e,t.value);n.last=(null===(r=o[OX])||void 0===r?void 0:r.last)||n.last,i.args=i.args||[],i.args.push(o)}}}parseSequenceExpr(e,t){var r,n;const i={first:t.first,last:t.last},o=[];o[OX]=i;const a="{"===t.t;let s="{"===t.t?null:{value:t};for(;;){if(null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done){if(a)throw aJ;return o}if("}"===s.value.t){if(a)return o;throw new iJ(s.value,"unexpected closing bracket")}if(s.value.t===CX.Ident){const[t,n]=this.parseArgs(e,s.value);i.last=(null===(r=t[OX])||void 0===r?void 0:r.last)||i.last,o.push(this.expand(t)),s=n}else{const t=this.parseExpr(e,s.value);i.last=(null===(n=t[OX])||void 0===n?void 0:n.last)||i.last,o.push(t),s=null}null===s&&(s=e.next(),s.done||(i.last=s.value.last)),s.done||";"!==s.value.t||(s=null)}}parseExpr(e,t){switch(t.t){case CX.Ident:return this.expand({prim:t.v,[OX]:{first:t.first,last:t.last}});case CX.Number:return{int:t.v,[OX]:{first:t.first,last:t.last}};case CX.String:return{string:JSON.parse(t.v),[OX]:{first:t.first,last:t.last}};case CX.Bytes:return{bytes:t.v.slice(2),[OX]:{first:t.first,last:t.last}};case"{":return this.parseSequenceExpr(e,t);default:return this.parseListExpr(e,t)}}parseSequence(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=NX(e),r=t.next();return r.done?null:this.parseSequenceExpr(t,r.value)}parseList(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=NX(e),r=t.next();return r.done?null:this.parseListExpr(t,r.value)}parseMichelineExpression(e){if("string"!==typeof e)throw new TypeError(`string type was expected, got ${typeof e} instead`);const t=NX(e),r=t.next();return r.done?null:this.parseExpr(t,r.value)}parseScript(e){return this.parseSequence(e)}parseData(e){return this.parseList(e)}parseJSON(e){if("object"!==typeof e)throw new TypeError(`object type was expected, got ${typeof e} instead`);if(Array.isArray(e)){const t=[];for(const r of e){if(null===r||"object"!==typeof r)throw new oJ(r,`unexpected sequence element: ${r}`);t.push(this.parseJSON(r))}return t}if("prim"in e){const t=e;if("string"===typeof t.prim&&(void 0===t.annots||Array.isArray(t.annots))&&(void 0===t.args||Array.isArray(t.args))){const e={prim:t.prim};if(void 0!==t.annots){for(const e of t.annots)if("string"!==typeof e)throw new oJ(e,`string expected: ${e}`);e.annots=t.annots}if(void 0!==t.args){e.args=[];for(const r of t.args){if(null===r||"object"!==typeof r)throw new oJ(r,`unexpected argument: ${r}`);e.args.push(this.parseJSON(r))}}return this.expand(e)}throw new oJ(e,`malformed prim expression: ${e}`)}if("string"in e){if("string"===typeof e.string)return{string:e.string};throw new oJ(e,`malformed string literal: ${e}`)}if("int"in e){if("string"===typeof e.int&&cJ.test(e.int))return{int:e.int};throw new oJ(e,`malformed int literal: ${e}`)}if("bytes"in e){if("string"===typeof e.bytes&&lJ.test(e.bytes))return{bytes:e.bytes};throw new oJ(e,`malformed bytes literal: ${e}`)}throw new oJ(e,`unexpected object: ${e}`)}}const dJ=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],hJ=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];class fJ extends ls{constructor(e){super(),this.message=e,this.name="Base58DecodingError"}}function pJ(e){const t=(e.length+9)%64,r=0===t?0:64-t;if(e.length>268435455)throw new ws("",`: Invalid length ${e.length} is too big -- SHA-256.`);const n=e.length<<3,i=[...e,128,...new Array(r).fill(0),0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n];function o(e,t){return e>>>t|e<<32-t}const a=[...dJ],s=new Array(64),c=new Array(8);for(let u=0;u>>3,r=o(s[t-2],17)^o(s[t-2],19)^s[t-2]>>>10;s[t]=(0|r)+s[t-7]+e+s[t-16]|0,t++}for(let r=0;r<8;r++)c[r]=a[r];for(let r=0;r<64;r++){const e=o(c[0],2)^o(c[0],13)^o(c[0],22),t=o(c[4],6)^o(c[4],11)^o(c[4],25),n=c[7]+t+(c[4]&c[5]^~c[4]&c[6])+hJ[r]+s[r]|0,i=e+(c[0]&c[1]^c[0]&c[2]^c[1]&c[2])|0;c[7]=c[6],c[6]=c[5],c[5]=c[4],c[4]=c[3]+n|0,c[3]=c[2],c[2]=c[1],c[1]=c[0],c[0]=n+i|0}for(let r=0;r<8;r++)a[r]=a[r]+c[r]|0}const l=[];for(const u of a)l.push(u>>24&255),l.push(u>>16&255),l.push(u>>8&255),l.push(255&u);return l}const mJ=[0,1,2,3,4,5,6,7,8,-1,-1,-1,-1,-1,-1,-1,9,10,11,12,13,14,15,16,-1,17,18,19,20,21,-1,22,23,24,25,26,27,28,29,30,31,32,-1,-1,-1,-1,-1,-1,33,34,35,36,37,38,39,40,41,42,43,-1,44,45,46,47,48,49,50,51,52,53,54,55,56,57];function gJ(e,t){const r=e.charCodeAt(t)-49;if(r>=mJ.length||-1===mJ[r])throw new fJ(`Unexpected character at position ${t}: ${e[t]}`);return mJ[r]}function vJ(e){const t=function(e){const t=[];let r=0;for(;r0;)t.push(0);return t.reverse()}(e);if(t.length<4)throw new fJ(`Data is too short ${t.length}`);const r=t.slice(0,t.length-4),n=t.slice(t.length-4),i=pJ(pJ(r));if(n[0]!==i[0]||n[1]!==i[1]||n[2]!==i[2]||n[3]!==i[3])throw new fJ("Invalid checksum");return r}class yJ extends us{constructor(e){super(),this.message=e,this.name="InvalidMichelsonError"}}class bJ extends us{constructor(e){super(),this.message=e,this.name="InvalidTypeExpressionError"}}class wJ extends us{constructor(e){super(),this.message=e,this.name="InvalidDataExpressionError"}}class xJ extends us{constructor(e){super(),this.entrypoint=e,this.name="InvalidEntrypointError",this.message=`Contract has no entrypoint named: "${e}"`}}class _J extends ls{constructor(e){super(),this.message=e,this.name="LongIntegerError"}}class SJ extends ls{constructor(e,t){super(),this.val=e,this.message=t,this.name="MichelsonError"}}class kJ extends SJ{constructor(e,t,r){super(e,t),this.val=e,this.message=t,this.name="MichelsonTypeError",void 0!==r&&(this.data=r)}}class EJ{append(e){let t=0;for(;0!==e||t57)throw new _J(`unexpected character in integer constant "${e[t]}"`);this.append(r-48)}}else e<0?(this.neg=!0,this.append(-e)):this.append(e)}cmp(e){if(this.neg!==e.neg)return(e.neg?1:0)-(this.neg?1:0);{let t=0;if(this.buf.length!==e.buf.length)t=this.buf.length=0&&this.buf[r]===e.buf[r];)r--;t=r<0?0:this.buf[r]=0}catch(un){return!1}}const TJ=/^(@%|@%%|%@|[@:%]([_0-9a-zA-Z][_0-9a-zA-Z.%@]*)?)$/;function CJ(e,t){if(Array.isArray(e))return{};let r,n,i;if(void 0!==e.annots)for(const o of e.annots)if(0!==o.length){if(!TJ.test(o)||!(null===t||void 0===t?void 0:t.specialVar)&&("@%"===o||"@%%"===o)||!(null===t||void 0===t?void 0:t.specialFields)&&"%@"===o)throw new SJ(e,`${e.prim}: unexpected annotation: ${o}`);switch(o[0]){case"%":((null===t||void 0===t?void 0:t.emptyFields)||o.length>1)&&(r=r||[],r.push(o));break;case":":o.length>1&&(n=n||[],n.push(o));break;case"@":((null===t||void 0===t?void 0:t.emptyVar)||o.length>1)&&(i=i||[],i.push(o))}}return{f:r,t:n,v:i}}const jJ={BlockHash:[32,[1,52]],OperationHash:[32,[5,116]],OperationListHash:[32,[133,233]],OperationListListHash:[32,[29,159,109]],ProtocolHash:[32,[2,170]],ContextHash:[32,[79,199]],ED25519PublicKeyHash:[20,[6,161,159]],SECP256K1PublicKeyHash:[20,[6,161,161]],P256PublicKeyHash:[20,[6,161,164]],ContractHash:[20,[2,90,121]],CryptoboxPublicKeyHash:[16,[153,103]],ED25519Seed:[32,[13,15,58,7]],ED25519PublicKey:[32,[13,15,37,217]],SECP256K1SecretKey:[32,[17,162,224,201]],P256SecretKey:[32,[16,81,238,189]],ED25519EncryptedSeed:[56,[7,90,60,179,41]],SECP256K1EncryptedSecretKey:[56,[9,237,241,174,150]],P256EncryptedSecretKey:[56,[9,48,57,115,171]],SECP256K1PublicKey:[33,[3,254,226,86]],P256PublicKey:[33,[3,178,139,127]],SECP256K1Scalar:[33,[38,248,136]],SECP256K1Element:[33,[5,92,0]],ED25519SecretKey:[64,[43,246,78,7]],ED25519Signature:[64,[9,245,205,134,18]],SECP256K1Signature:[64,[13,115,101,19,63]],P256Signature:[64,[54,240,44,52]],GenericSignature:[64,[4,130,43]],ChainID:[4,[87,82,0]],RollupAddress:[20,[1,128,120,31]]};function RJ(e,...t){const r=vJ(e);for(const n of t){const[e,t]=jJ[n];if(r.length===e+t.length){let e=0;for(;e0?XJ(e,1):XJ(e,0);break;default:throw new HJ(e,"instruction expected")}}return!0}function QJ(e){if(WJ(e))if(Array.isArray(e)||"pair"===e.prim||"or"===e.prim||"option"===e.prim)cQ(e,(e=>QJ(e)));else if(!Object.prototype.hasOwnProperty.call(UJ,e.prim))throw new HJ(e,`${e.prim}: type is not comparable`);return!0}function eQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim)throw new HJ(e,`${e.prim}: type can't be used inside PACK/UNPACK instructions`);cQ(e,(e=>eQ(e)))}return!0}function tQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim||"ticket"===e.prim||"contract"===e.prim)throw new HJ(e,`${e.prim}: type can't be pushed`);cQ(e,(e=>tQ(e)))}return!0}function rQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"operation"===e.prim||"contract"===e.prim)throw new HJ(e,`${e.prim}: type can't be used as part of a storage`);cQ(e,(e=>rQ(e)))}return!0}function nQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"operation"===e.prim)throw new HJ(e,`${e.prim}: type can't be used as part of a parameter`);cQ(e,(e=>nQ(e)))}return!0}function iQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim)||"big_map"===e.prim||"operation"===e.prim||"sapling_state"===e.prim)throw new HJ(e,`${e.prim}: type can't be used inside a big_map`);cQ(e,(e=>iQ(e)))}return!0}const oQ=new RegExp("^[a-zA-Z0-9_.%@]*$");function aQ(e){if(e.string.length>zJ)throw new HJ(e,`view name too long: ${e.string}`);if(!oQ.test(e.string))throw new HJ(e,`invalid character(s) in view name: ${e.string}`)}function sQ(e){if(WJ(e)&&VJ(e)){if(!Object.prototype.hasOwnProperty.call($J,e.prim))throw new HJ(e,"type expected");cQ(e,(e=>sQ(e)))}return!0}function cQ(e,t){if(Array.isArray(e)||"pair"===e.prim){const r=Array.isArray(e)?e:e.args;if(void 0===r||r.length<2)throw new HJ(e,"at least 2 arguments expected");return r.forEach((e=>{WJ(e)&&t(e)})),!0}switch(e.prim){case"option":case"list":XJ(e,1)&&WJ(e.args[0])&&t(e.args[0]);break;case"contract":XJ(e,1)&&nQ(e.args[0]);break;case"or":XJ(e,2)&&WJ(e.args[0])&&WJ(e.args[1])&&(t(e.args[0]),t(e.args[1]));break;case"lambda":XJ(e,2)&&(sQ(e.args[0]),sQ(e.args[1]));break;case"set":XJ(e,1)&&QJ(e.args[0]);break;case"map":XJ(e,2)&&WJ(e.args[0])&&WJ(e.args[1])&&(QJ(e.args[0]),t(e.args[1]));break;case"big_map":XJ(e,2)&&WJ(e.args[0])&&WJ(e.args[1])&&(QJ(e.args[0]),iQ(e.args[1]),t(e.args[1]));break;case"ticket":XJ(e,1)&&WJ(e.args[0])&&QJ(e.args[0]);break;case"sapling_state":case"sapling_transaction":XJ(e,1)&&YJ(e.args[0]);break;default:XJ(e,0)}return!0}function lQ(e){if("int"in e||"string"in e||"bytes"in e)return!0;if(Array.isArray(e)){let t=0;for(const r of e)VJ(r)&&"Elt"===r.prim?(XJ(r,2)&&(lQ(r.args[0]),lQ(r.args[1])),t++):lQ(r);if(0!==t&&t!==e.length)throw new HJ(e,"data entries and map elements can't be intermixed");return!0}if(!VJ(e))throw new HJ(e,"data entry expected");switch(e.prim){case"Unit":case"True":case"False":case"None":XJ(e,0);break;case"Pair":if(void 0===e.args||e.args.length<2)throw new HJ(e,"at least 2 arguments expected");for(const t of e.args)lQ(t);break;case"Left":case"Right":case"Some":XJ(e,1)&&lQ(e.args[0]);break;case"Lambda_rec":e.args&&JJ(e.args);break;default:if(!Object.prototype.hasOwnProperty.call(FJ,e.prim))throw new HJ(e,"data entry or instruction expected");JJ(e)}return!0}function uQ(e){if(KJ(e)){const t={},r={};for(const n of e)if(qJ(n)){if("view"!==n.prim){if(n.prim in t)throw new HJ(e,`duplicate contract section: ${n.prim}`);t[n.prim]=!0}switch(n.prim){case"code":XJ(n,1)&&KJ(n.args[0])&&JJ(n.args[0]);break;case"parameter":if(XJ(n,1)&&nQ(n.args[0]),n.annots)throw new HJ(n,"Annotation must be part of the parameter type");break;case"storage":XJ(n,1)&&rQ(n.args[0]);break;case"view":if(XJ(n,4)){if(ZJ(n.args[0])){const t=n.args[0];if(t.string in r)throw new HJ(e,`duplicate view name: ${t.string}`);r[t.string]=!0,aQ(t)}tQ(n.args[1]),tQ(n.args[2]),KJ(n.args[3])&&JJ(n.args[3])}break;default:throw new HJ(e,`unexpected contract section: ${n.prim}`)}}}return!0}function dQ(e){return Object.prototype.hasOwnProperty.call(FJ,e.prim)}function hQ(e){if(!Array.isArray(e))return!1;for(const t of e)if("prim"in t){if(dQ(t))throw new SJ(e,`Instruction outside of a lambda: ${JSON.stringify(e)}`);if("Elt"===t.prim)throw new SJ(e,`Elt item outside of a map literal: ${JSON.stringify(e)}`)}return!0}"function"===typeof SuppressedError&&SuppressedError;const fQ=["parameter","storage","code","False","Elt","Left","None","Pair","Right","Some","True","Unit","PACK","UNPACK","BLAKE2B","SHA256","SHA512","ABS","ADD","AMOUNT","AND","BALANCE","CAR","CDR","CHECK_SIGNATURE","COMPARE","CONCAT","CONS","CREATE_ACCOUNT","CREATE_CONTRACT","IMPLICIT_ACCOUNT","DIP","DROP","DUP","EDIV","EMPTY_MAP","EMPTY_SET","EQ","EXEC","FAILWITH","GE","GET","GT","HASH_KEY","IF","IF_CONS","IF_LEFT","IF_NONE","INT","LAMBDA","LE","LEFT","LOOP","LSL","LSR","LT","MAP","MEM","MUL","NEG","NEQ","NIL","NONE","NOT","NOW","OR","PAIR","PUSH","RIGHT","SIZE","SOME","SOURCE","SENDER","SELF","STEPS_TO_QUOTA","SUB","SWAP","TRANSFER_TOKENS","SET_DELEGATE","UNIT","UPDATE","XOR","ITER","LOOP_LEFT","ADDRESS","CONTRACT","ISNAT","CAST","RENAME","bool","contract","int","key","key_hash","lambda","list","map","big_map","nat","option","or","pair","set","signature","string","bytes","mutez","timestamp","unit","operation","address","SLICE","DIG","DUG","EMPTY_BIG_MAP","APPLY","chain_id","CHAIN_ID","LEVEL","SELF_ADDRESS","never","NEVER","UNPAIR","VOTING_POWER","TOTAL_VOTING_POWER","KECCAK","SHA3","PAIRING_CHECK","bls12_381_g1","bls12_381_g2","bls12_381_fr","sapling_state","sapling_transaction_deprecated","SAPLING_EMPTY_STATE","SAPLING_VERIFY_UPDATE","ticket","TICKET_DEPRECATED","READ_TICKET","SPLIT_TICKET","JOIN_TICKETS","GET_AND_UPDATE","chest","chest_key","OPEN_CHEST","VIEW","view","constant","SUB_MUTEZ","tx_rollup_l2_address","MIN_BLOCK_TIME","sapling_transaction","EMIT","Lambda_rec","LAMBDA_REC","TICKET","BYTES","NAT"];Object.assign({},...fQ.map(((e,t)=>({[e]:t}))));var pQ;!function(e){e[e.Int=0]="Int",e[e.String=1]="String",e[e.Sequence=2]="Sequence",e[e.Prim0=3]="Prim0",e[e.Prim0Annot=4]="Prim0Annot",e[e.Prim1=5]="Prim1",e[e.Prim1Annot=6]="Prim1Annot",e[e.Prim2=7]="Prim2",e[e.Prim2Annot=8]="Prim2Annot",e[e.Prim=9]="Prim",e[e.Bytes=10]="Bytes"}(pQ||(pQ={}));const mQ=new Error("bounds out of range");class gQ{constructor(e,t=0,r=e.length){this.buffer=e,this.idx=t,this.cap=r}get length(){return this.cap-this.idx}readBytes(e){if(this.cap-this.idx>>0}readUint16(){if(this.cap-this.idx<2)throw mQ;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readUint32(){if(this.cap-this.idx<4)throw mQ;return(this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++])>>>0}readInt8(){if(this.cap-this.idx<1)throw mQ;return this.buffer[this.idx++]<<24>>24}readInt16(){if(this.cap-this.idx<2)throw mQ;return(this.buffer[this.idx++]<<8|this.buffer[this.idx++])<<16>>16}readInt32(){if(this.cap-this.idx<4)throw mQ;return this.buffer[this.idx++]<<24|this.buffer[this.idx++]<<16|this.buffer[this.idx++]<<8|this.buffer[this.idx++]}}var vQ,yQ,bQ;function wQ(e){let t;const r=e.readUint8();switch(r){case yQ.ED25519:t="ED25519PublicKeyHash";break;case yQ.SECP256K1:t="SECP256K1PublicKeyHash";break;case yQ.P256:t="P256PublicKeyHash";break;default:throw new Error(`unknown public key hash tag: ${r}`)}return{type:t,hash:e.readBytes(20)}}function xQ(e){let t;const r=e.readUint8();switch(r){case vQ.Implicit:t=wQ(e);break;case vQ.Originated:t={type:"ContractHash",hash:e.readBytes(20)},e.readBytes(1);break;default:throw new Error(`unknown address tag: ${r}`)}if(0!==e.length){const r=new TextDecoder;t.entryPoint=r.decode(new Uint8Array(e.readBytes(e.length)))}return t}function _Q(e){let t,r;const n=e.readUint8();switch(n){case bQ.ED25519:r="ED25519PublicKey",t=32;break;case bQ.SECP256K1:r="SECP256K1PublicKey",t=33;break;case bQ.P256:r="P256PublicKey",t=33;break;default:throw new Error(`unknown public key tag: ${n}`)}return{type:r,publicKey:e.readBytes(t)}}!function(e){e[e.Implicit=0]="Implicit",e[e.Originated=1]="Originated"}(vQ||(vQ={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(yQ||(yQ={})),function(e){e[e.ED25519=0]="ED25519",e[e.SECP256K1=1]="SECP256K1",e[e.P256=2]="P256"}(bQ||(bQ={}));class SQ extends SJ{constructor(e,t,r){super(e,r),this.val=e,this.stackState=t,this.message=r,this.name="MichelsonInstructionError"}}function kQ(e){return Array.isArray(e)?"pair":e.prim}function EQ(e){return"prim"in e?e.args:e}function AQ(e,t,r=!1){if(kQ(e)!==kQ(t))throw new kJ(e,`types mismatch: ${kQ(e)} != ${kQ(t)}`,void 0);const n=[CJ(e),CJ(t)];if(n[0].t&&n[1].t&&n[0].t[0]!==n[1].t[0])throw new kJ(e,`${kQ(e)}: type names mismatch: ${n[0].t[0]} != ${n[1].t[0]}`,void 0);if(r&&n[0].f&&n[1].f&&n[0].f[0]!==n[1].f[0])throw new kJ(e,`${kQ(e)}: field names mismatch: ${n[0].f[0]} != ${n[1].f}`,void 0);if(MJ(e)){const r=IJ("pair",e),n=IJ("pair",t);return AQ(r.args[0],n.args[0],!0),void AQ(r.args[1],n.args[1],!0)}switch(e.prim){case"option":case"list":case"contract":case"set":case"ticket":AQ(e.args[0],t.args[0]);break;case"or":AQ(e.args[0],t.args[0],!0),AQ(e.args[1],t.args[1],!0);break;case"lambda":case"map":case"big_map":AQ(e.args[0],t.args[0]),AQ(e.args[1],t.args[1]);break;case"sapling_state":case"sapling_transaction":if(parseInt(e.args[0].int,10)!==parseInt(t.args[0].int,10))throw new kJ(e,`${kQ(e)}: type argument mismatch: ${e.args[0].int} != ${t.args[0].int}`,void 0)}}function PQ(e,t){if(e.length!==t.length)throw new kJ(e,`stack length mismatch: ${e.length} != ${t.length}`,void 0);for(let r=0;r1)throw new kJ(e,`${e.prim}: at most one type annotation allowed: ${e.annots}`,void 0);if(t){if(((null===(n=o.f)||void 0===n?void 0:n.length)||0)>1)throw new kJ(e,`${e.prim}: at most one field annotation allowed: ${e.annots}`,void 0)}else if(((null===(i=o.f)||void 0===i?void 0:i.length)||0)>0)throw new kJ(e,`${e.prim}: field annotations aren't allowed: ${e.annots}`,void 0)}if(MJ(e)){const t=EQ(e);for(const e of t)OQ(e,!0)}else switch(e.prim){case"option":case"list":case"contract":case"set":OQ(e.args[0]);break;case"or":for(const t of e.args)OQ(t,!0);break;case"lambda":case"map":case"big_map":OQ(e.args[0]),OQ(e.args[1])}}function TQ(e){if(!Array.isArray(e))return!1;for(const t of e)if(!(Array.isArray(t)&&TQ(t)||"prim"in t&&dQ(t)))return!1;return!0}function CQ(e,t,r){if(MJ(t)){if(LJ(e)){hQ(e);const n=IJ("Pair",e),i=IJ("pair",t);return CQ(n.args[0],i.args[0],r),void CQ(n.args[1],i.args[1],r)}throw new kJ(t,`pair expected: ${JSON.stringify(e)}`,e)}switch(t.prim){case"int":if("int"in e&&PJ(e.int))return;throw new kJ(t,`integer value expected: ${JSON.stringify(e)}`,e);case"nat":case"mutez":if("int"in e&&OJ(e.int))return;throw new kJ(t,`natural value expected: ${JSON.stringify(e)}`,e);case"string":if("string"in e)return;throw new kJ(t,`string value expected: ${JSON.stringify(e)}`,e);case"bytes":case"bls12_381_g1":case"bls12_381_g2":if("bytes"in e&&null!==AJ(e.bytes))return;throw new kJ(t,`bytes value expected: ${JSON.stringify(e)}`,e);case"bool":if("prim"in e&&("True"===e.prim||"False"===e.prim))return;throw new kJ(t,`boolean value expected: ${JSON.stringify(e)}`,e);case"key_hash":if("string"in e&&null!==RJ(e.string,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash"))return;if("bytes"in e)try{return void function(e){const t=AJ(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);wQ(new gQ(new Uint8Array(t)))}(e)}catch(Lde){}throw new kJ(t,`key hash expected: ${JSON.stringify(e)}`,e);case"timestamp":if(("string"in e||"int"in e)&&null!==DJ(e))return;throw new kJ(t,`timestamp expected: ${JSON.stringify(e)}`,e);case"address":if("string"in e){let t=e.string;const r=e.string.indexOf("%");if(r>=0&&(t=e.string.slice(0,r)),null!==RJ(t,"ED25519PublicKeyHash","SECP256K1PublicKeyHash","P256PublicKeyHash","ContractHash","RollupAddress"))return}else if("bytes"in e)try{return void function(e){const t=AJ(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);xQ(new gQ(new Uint8Array(t)))}(e)}catch(Lde){}throw new kJ(t,`address expected: ${JSON.stringify(e)}`,e);case"key":if("string"in e&&null!==RJ(e.string,"ED25519PublicKey","SECP256K1PublicKey","P256PublicKey"))return;if("bytes"in e)try{return void function(e){const t=AJ(e.bytes);if(null===t)throw new Error(`can't parse bytes: "${e.bytes}"`);_Q(new gQ(new Uint8Array(t)))}(e)}catch(Lde){}throw new kJ(t,`public key expected: ${JSON.stringify(e)}`,e);case"unit":if("prim"in e&&"Unit"===e.prim)return;throw new kJ(t,`unit value expected: ${JSON.stringify(e)}`,e);case"signature":if("bytes"in e||"string"in e&&null!==RJ(e.string,"ED25519Signature","SECP256K1Signature","P256Signature","GenericSignature"))return;throw new kJ(t,`signature expected: ${JSON.stringify(e)}`,e);case"chain_id":if("bytes"in e||"string"in e){if(null!==("string"in e?vJ(e.string):AJ(e.bytes)))return}throw new kJ(t,`chain id expected: ${JSON.stringify(e)}`,e);case"option":if("prim"in e){if("None"===e.prim)return;if("Some"===e.prim)return void CQ(e.args[0],t.args[0],r)}throw new kJ(t,`option expected: ${JSON.stringify(e)}`,e);case"list":case"set":if(hQ(e)){for(const n of e)CQ(n,t.args[0],r);return}throw new kJ(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"or":if("prim"in e){if("Left"===e.prim)return void CQ(e.args[0],t.args[0],r);if("Right"===e.prim)return void CQ(e.args[0],t.args[1],r)}throw new kJ(t,`union (or) expected: ${JSON.stringify(e)}`,e);case"lambda":if(TQ(e)){const n=jQ(e,[t.args[0]],r);if("failed"in n)throw new kJ(t,`function is failed with error type: ${n.failed}`,e);if(1!==n.length)throw new kJ(t,"function must return a value",e);return void AQ(t.args[1],n[0])}throw new kJ(t,`function expected: ${JSON.stringify(e)}`,e);case"map":case"big_map":if(Array.isArray(e)){for(const n of e){if(!("prim"in n)||"Elt"!==n.prim)throw new kJ(t,`map elements expected: ${JSON.stringify(e)}`,e);CQ(n.args[0],t.args[0],r),CQ(n.args[1],t.args[1],r)}return}throw new kJ(t,`${t.prim} expected: ${JSON.stringify(e)}`,e);case"bls12_381_fr":if("int"in e&&PJ(e.int)||"bytes"in e&&null!==AJ(e.bytes))return;throw new kJ(t,`BLS12-381 element expected: ${JSON.stringify(e)}`,e);case"sapling_state":if(Array.isArray(e))return;throw new kJ(t,`sapling state expected: ${JSON.stringify(e)}`,e);case"ticket":return void CQ(e,{prim:"pair",args:[{prim:"address"},t.args[0],{prim:"nat"}]},r);default:throw new kJ(t,`type ${kQ(t)} don't have Michelson literal representation`,e)}}function jQ(e,t,r){const n=(null===r||void 0===r?void 0:r.protocol)||BX;if(Array.isArray(e))return function(e,t,r){let n=t,i=t,o=0;for(const a of e){const e=jQ(a,i,r);if(n=e,"failed"in e)break;i=e,o++}if("failed"in n&&0==n.level&&(!("prim"in n.failed)||"never"!==n.failed.prim)&&o!==e.length-1)throw new SQ(e,n,"FAIL must appear in a tail position");if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const i={op:e,in:t,out:n};r.traceCallback(i)}return"failed"in n?{failed:n.failed,level:n.level+1}:n}(e,t,r);const i=e;function o(e,...r){if(t.length{try{return e(...r)}catch(Lde){throw Lde instanceof SJ?new SQ(i,t,Lde.message):Lde}}}function s(e){return r=>{try{return e(r)}catch(Lde){throw Lde instanceof SJ?new SQ(i,t,Lde.message):Lde}}}const c=a(CJ),l=a(PQ),u=a(AQ),d=s(QJ),h=s(eQ),f=s(rQ),p=s(tQ),m=s(iQ);function g(e,r){const n=c(i,Object.assign(Object.assign({},r),{emptyFields:void 0!==e.f&&e.f>1,emptyVar:void 0!==e.v&&e.v>1})),o=(e,r,n)=>{if(e&&e.length>(r||0))throw new SQ(i,t,`${i.prim}: at most ${r||0} ${n} annotations allowed`)};return o(n.f,e.f,"field"),o(n.t,e.t,"type"),o(n.v,e.v,"variable"),n}function v(e,t){const r=e,n=Array.isArray(r)?{prim:"pair",args:r}:r,i=c(n),o=void 0!==t.v||void 0!==t.t||void 0!==t.f?[...(null===t.v?i.v:t.v)||[],...(null===t.t?i.t:t.t)||[],...(null===t.f?i.f:t.f)||[]]:void 0,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i["@"+(e.v?e.v[0].slice(1)+".":"")+t];function k(e,t){return"failed"in e||"failed"in t?"failed"in e?t:e:(l(e,t),e)}const E=(e=>{var i,a,s,E,A;switch(e.prim){case"DUP":{const r=e.args?parseInt(e.args[0].int,10):1;if(0===r)throw new SQ(e,t,"DUP 0 is forbidden");const n=o(r-1,null)[0];if("ticket"===kQ(n))throw new SQ(e,t,"ticket can't be DUPed");return[n,...t]}case"SWAP":{const e=o(0,null,null);return g({}),[e[1],e[0],...t.slice(2)]}case"SOME":return[v({prim:"option",args:[o(0,null)[0]]},g({t:1,v:1})),...t.slice(1)];case"UNIT":return[v({prim:"unit"},g({v:1,t:1})),...t];case"PAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new SQ(e,t,`PAIR ${r} is forbidden`);const n=o(0,...new Array(r).fill(null)),i=g({f:r,t:1,v:1},{specialFields:!0}),a=e=>{const t=e.lastIndexOf(".");return e.slice(t>0?t+1:1)},s=n.map(((e,t)=>{var r;const n=c(e);return v(e,{v:null,t:null,f:i.f&&i.f.length>t&&"%"!==i.f[t]?"%@"===i.f[t]?n.v?["%"+a((null===(r=n.v)||void 0===r?void 0:r[0])||"")]:void 0:[i.f[t]]:void 0})}));return[v({prim:"pair",args:s},{t:i.t,v:i.v}),...t.slice(r)]}case"UNPAIR":{const r=e.args?parseInt(e.args[0].int,10):2;if(r<2)throw new SQ(e,t,`UNPAIR ${r} is forbidden`);const n=o(0,["pair"])[0],i=g({f:2,v:2},{specialVar:!0});return[...w(n,r).map(((e,t)=>b(n,e,i,t,0===t?"car":"cdr"))),...t.slice(1)]}case"CAR":case"CDR":{const r=IJ("pair",o(0,["pair"])[0]);return[b(r,r.args["CAR"===e.prim?0:1],g({f:1,v:1},{specialVar:!0}),0,e.prim.toLocaleLowerCase()),...t.slice(1)]}case"CONS":{const e=o(0,null,["list"]);return u(e[0],e[1].args[0]),[y({prim:"list",args:[e[1].args[0]]}),...t.slice(2)]}case"SIZE":return o(0,["string","list","set","map","bytes"]),[y({prim:"nat"}),...t.slice(1)];case"MEM":{const e=o(0,null,["set","map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"bool"}),...t.slice(2)]}case"GET":if(e.args){const r=parseInt(e.args[0].int,10);return[y(x(o(0,["pair"])[0],r)),...t.slice(1)]}{const e=o(0,null,["map","big_map"]);return d(e[0]),u(e[0],e[1].args[0]),[y({prim:"option",args:[e[1].args[1]]}),...t.slice(2)]}case"UPDATE":if(e.args){const r=parseInt(e.args[0].int,10),n=o(0,null,["pair"]);return[y(_(n[1],n[0],r)),...t.slice(2)]}{const e=o(0,null,["bool","option"]);if(d(e[0]),"bool"===e[1].prim){const r=o(2,["set"]);return u(e[0],r[0].args[0]),[y({prim:"set",args:[v(e[0],{t:null})]}),...t.slice(3)]}const r=o(2,["map","big_map"]);return u(e[0],r[0].args[0]),"map"===r[0].prim?[y({prim:"map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)]:(m(e[1].args[0]),[y({prim:"big_map",args:[v(e[0],{t:null}),v(e[1].args[0],{t:null})]}),...t.slice(3)])}case"GET_AND_UPDATE":{const e=g({v:2}),r=o(0,null,["option"],["map","big_map"]);d(r[0]),u(r[0],r[2].args[0]),u(r[1].args[0],r[2].args[1]);const n=null===(i=e.v)||void 0===i?void 0:i.map((e=>"@"!==e?[e]:void 0));return"map"===r[2].prim?[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)]:(m(r[1].args[0]),[v({prim:"option",args:[r[2].args[1]]},{v:null===n||void 0===n?void 0:n[0]}),v({prim:"big_map",args:[v(r[0],{t:null}),v(r[1].args[0],{t:null})]},{v:null===n||void 0===n?void 0:n[1]}),...t.slice(3)])}case"EXEC":{const e=o(0,null,["lambda"]);return u(e[0],e[1].args[0]),[y(e[1].args[1]),...t.slice(2)]}case"APPLY":{const r=o(0,null,["lambda"]);if(f(r[0]),p(r[0]),!MJ(r[1].args[0]))throw new SQ(e,t,`${e.prim}: function's argument must be a pair: ${kQ(r[1].args[0])}`);const n=r[1].args[0];return u(r[0],EQ(n)[0]),[y({prim:"lambda",args:[EQ(n)[1],r[1].args[1]]}),...t.slice(2)]}case"FAILWITH":{const e=o(0,null)[0];return UX(n,zX.PtEdo2Zk)||h(e),{failed:e,level:0}}case"NEVER":return o(0,["never"]),{failed:{prim:"never"},level:0};case"RENAME":return[y(o(0,null)[0]),...t.slice(1)];case"CONCAT":{const r=o(0,["string","list","bytes"]);if("list"===r[0].prim){if("string"!==kQ(r[0].args[0])&&"bytes"!==kQ(r[0].args[0]))throw new SQ(e,t,`${e.prim}: can't concatenate list of ${kQ(r[0].args[0])}'s`);return[y(r[0].args[0]),...t.slice(1)]}const n=o(1,["string","bytes"]);if(r[0].prim!==n[0].prim)throw new SQ(e,t,`${e.prim}: can't concatenate ${r[0].prim} with ${n[0].prim}`);return[y(n[0]),...t.slice(2)]}case"SLICE":return[y({prim:"option",args:[o(0,["nat"],["nat"],["string","bytes"])[2]]},"@slice"),...t.slice(3)];case"PACK":{const e=o(0,null)[0];return h(e),[y({prim:"bytes"},"@packed"),...t.slice(1)]}case"ADD":{const r=o(0,["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","timestamp","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("int"===r[0].prim&&"timestamp"===r[1].prim||"timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if(("int"===r[0].prim||"nat"===r[0].prim||"mutez"===r[0].prim||"bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't add ${r[0].prim} to ${r[1].prim}`)}case"SUB":{const r=UX(n,zX.PsiThaCa)?o(0,["nat","int","timestamp","mutez"],["nat","int","timestamp","mutez"]):o(0,["nat","int","timestamp"],["nat","int","timestamp"]);if(("nat"===r[0].prim||"int"===r[0].prim)&&("nat"===r[1].prim||"int"===r[1].prim)||"timestamp"===r[0].prim&&"timestamp"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("timestamp"===r[0].prim&&"int"===r[1].prim)return[y({prim:"timestamp"}),...t.slice(2)];if("mutez"===r[0].prim&&"mutez"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't subtract ${r[0].prim} from ${r[1].prim}`)}case"SUB_MUTEZ":return o(0,["mutez"],["mutez"]),[y({prim:"option",args:[{prim:"mutez"}]}),...t.slice(2)];case"MUL":{const r=o(0,["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"],["nat","int","mutez","bls12_381_g1","bls12_381_g2","bls12_381_fr"]);if("nat"===r[0].prim&&"int"===r[1].prim||"int"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"int"}),...t.slice(2)];if("nat"===r[0].prim&&"mutez"===r[1].prim||"mutez"===r[0].prim&&"nat"===r[1].prim)return[y({prim:"mutez"}),...t.slice(2)];if(("bls12_381_g1"===r[0].prim||"bls12_381_g2"===r[0].prim||"bls12_381_fr"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[0].prim||"int"===r[0].prim)&&r[0].prim===r[1].prim)return[y(r[0]),...t.slice(2)];if(("nat"===r[0].prim||"int"===r[0].prim)&&"bls12_381_fr"===r[1].prim||("nat"===r[1].prim||"int"===r[1].prim)&&"bls12_381_fr"===r[0].prim)return[y({prim:"bls12_381_fr"}),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't multiply ${r[0].prim} by ${r[1].prim}`)}case"EDIV":{const r=(e,t)=>({prim:"option",args:[{prim:"pair",args:[{prim:e},{prim:t}]}]}),n=o(0,["nat","int","mutez"],["nat","int","mutez"]);if("nat"===n[0].prim&&"nat"===n[1].prim)return[y(r("nat","nat")),...t.slice(2)];if(!("nat"!==n[0].prim&&"int"!==n[0].prim||"nat"!==n[1].prim&&"int"!==n[1].prim))return[y(r("int","nat")),...t.slice(2)];if("mutez"===n[0].prim&&"nat"===n[1].prim)return[y(r("mutez","mutez")),...t.slice(2)];if("mutez"===n[0].prim&&"mutez"===n[1].prim)return[y(r("nat","mutez")),...t.slice(2)];throw new SQ(e,t,`${e.prim}: can't euclideally divide ${n[0].prim} by ${n[1].prim}`)}case"ABS":return o(0,["int"]),[y({prim:"nat"}),...t.slice(1)];case"ISNAT":return o(0,["int"]),[y({prim:"option",args:[{prim:"nat"}]}),...t.slice(1)];case"INT":return o(0,["nat","bls12_381_fr","bytes"]),[y({prim:"int"}),...t.slice(1)];case"BYTES":return o(0,["nat","int"]),[y({prim:"bytes"}),...t.slice(1)];case"NAT":return o(0,["bytes"]),[y({prim:"nat"}),...t.slice(1)];case"NEG":{const e=o(0,["nat","int","bls12_381_g1","bls12_381_g2","bls12_381_fr"])[0];return"nat"===e.prim||"int"===e.prim?[y({prim:"int"}),...t.slice(1)]:[y(e),...t.slice(1)]}case"LSL":case"LSR":return o(0,["nat","bytes"],["nat","bytes"]),[y({prim:"nat"}),...t.slice(2)];case"OR":case"XOR":{const r=o(0,["nat","bytes","bool"],["nat","bytes","bool"]);if(r[0].prim!==r[1].prim)throw new SQ(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"AND":{const r=o(0,["nat","bytes","bool","int"],["nat","bytes","bool"]);if(("int"!==r[0].prim||"nat"!==r[1].prim)&&r[0].prim!==r[1].prim)throw new SQ(e,t,`${e.prim}: both arguments must be of the same type: ${r[0].prim}, ${r[1].prim}`);return[y(r[1]),...t.slice(2)]}case"NOT":return"bool"===o(0,["nat","bytes","bool","int"])[0].prim?[y({prim:"bool"}),...t.slice(1)]:[y({prim:"int"}),...t.slice(1)];case"COMPARE":{const e=o(0,null,null);return d(e[0]),d(e[1]),[y({prim:"int"}),...t.slice(2)]}case"EQ":case"NEQ":case"LT":case"GT":case"LE":case"GE":return o(0,["int"]),[y({prim:"bool"}),...t.slice(1)];case"SELF":{if(void 0===(null===r||void 0===r?void 0:r.contract))throw new SQ(e,t,`${e.prim}: contract required`);const n=g({f:1,v:1}),i=MQ(r.contract,null===(a=n.f)||void 0===a?void 0:a[0]);if(null===i)throw new SQ(e,t,`${e.prim}: contract has no entrypoint ${i}`);return[v({prim:"contract",args:[i]},{v:n.v?n.v:["@self"]}),...t]}case"TRANSFER_TOKENS":{const e=o(0,null,["mutez"],["contract"]);return u(e[0],e[2].args[0]),[y({prim:"operation"}),...t.slice(3)]}case"SET_DELEGATE":{const r=o(0,["option"])[0];if("key_hash"!==kQ(r.args[0]))throw new SQ(e,t,`${e.prim}: key hash expected: ${kQ(r.args[0])}`);return[y({prim:"operation"}),...t.slice(1)]}case"IMPLICIT_ACCOUNT":return o(0,["key_hash"]),[y({prim:"contract",args:[{prim:"unit"}]}),...t.slice(1)];case"NOW":return[y({prim:"timestamp"},"@now"),...t];case"AMOUNT":return[y({prim:"mutez"},"@amount"),...t];case"BALANCE":return[y({prim:"mutez"},"@balance"),...t];case"CHECK_SIGNATURE":return o(0,["key"],["signature"],["bytes"]),[y({prim:"bool"}),...t.slice(3)];case"BLAKE2B":case"SHA256":case"SHA512":case"KECCAK":case"SHA3":return o(0,["bytes"]),[y({prim:"bytes"}),...t.slice(1)];case"HASH_KEY":return o(0,["key"]),[y({prim:"key_hash"}),...t.slice(1)];case"SOURCE":return[y({prim:"address"},"@source"),...t];case"SENDER":return[y({prim:"address"},"@sender"),...t];case"ADDRESS":{const e=o(0,["contract"])[0],r=g({v:1});return[v({prim:"address",[DX]:e},{v:r.v?r.v:S(c(e),"address")}),...t.slice(1)]}case"SELF_ADDRESS":{const e={prim:"address"};return void 0!==(null===r||void 0===r?void 0:r.contract)&&(e[DX]={prim:"contract",args:[RQ(r.contract,"parameter").args[0]]}),[y(e,"@address"),...t]}case"CHAIN_ID":return[y({prim:"chain_id"}),...t];case"DROP":{g({});const r=void 0!==e.args?parseInt(e.args[0].int,10):1;return o(r-1,null),t.slice(r)}case"DIG":{g({});const r=parseInt(e.args[0].int,10);return[o(r,null)[0],...t.slice(0,r),...t.slice(r+1)]}case"DUG":{g({});const r=parseInt(e.args[0].int,10);return[...t.slice(1,r+1),o(0,null)[0],...t.slice(r+1)]}case"NONE":return OQ(e.args[0]),[v({prim:"option",args:[e.args[0]]},g({t:1,v:1})),...t];case"LEFT":case"RIGHT":{const r=o(0,null)[0],n=g({f:2,t:1,v:1},{specialFields:!0}),i=c(r),a=[v(r,{t:null,v:null,f:n.f&&n.f.length>0&&"%"!==n.f[0]?"%@"===n.f[0]?i.v?["%"+i.v[0].slice(1)]:void 0:n.f:void 0}),v(e.args[0],{t:null,f:n.f&&n.f.length>1&&"%"!==n.f[1]?n.f:void 0})];return[v({prim:"or",args:"LEFT"===e.prim?a:[a[1],a[0]]},{t:n.t,v:n.v}),...t.slice(1)]}case"NIL":return OQ(e.args[0]),[v({prim:"list",args:[e.args[0]]},g({t:1,v:1})),...t];case"UNPACK":return o(0,["bytes"]),OQ(e.args[0]),[y({prim:"option",args:[e.args[0]]},"@unpacked"),...t.slice(1)];case"CONTRACT":{const r=o(0,["address"])[0];OQ(e.args[0]);const n=g({v:1,f:1}),i=r[DX];if(void 0!==i){const r=MQ(i,null===(s=n.f)||void 0===s?void 0:s[0]);if(null===r)throw new SQ(e,t,`${e.prim}: contract has no entrypoint ${r}`);u(r,e.args[0])}return[v({prim:"option",args:[{prim:"contract",args:[e.args[0]]}]},{v:n.v?n.v:S(c(r),"contract")}),...t.slice(1)]}case"CAST":{g({});const r=o(0,null)[0];return OQ(e.args[0]),u(e.args[0],r),[e.args[0],...t.slice(1)]}case"IF_NONE":{g({});const n=o(0,["option"])[0],i=t.slice(1);return k(jQ(e.args[0],i,r),jQ(e.args[1],[v(n.args[0],{t:null,v:S(c(n),"some")}),...i],r))}case"IF_LEFT":{g({});const n=o(0,["or"])[0],i=c(n),a=c(n.args[0]),s=c(n.args[1]),l=t.slice(1);return k(jQ(e.args[0],[v(n.args[0],{t:null,v:S(i,a.f?a.f[0].slice(1):"left")}),...l],r),jQ(e.args[1],[v(n.args[1],{t:null,v:S(i,s.f?s.f[0].slice(1):"right")}),...l],r))}case"IF_CONS":{g({});const n=o(0,["list"])[0],i=c(n),a=t.slice(1);return k(jQ(e.args[0],[v(n.args[0],{t:null,v:S(i,"hd")}),v(n,{t:null,v:S(i,"tl")}),...a],r),jQ(e.args[1],a,r))}case"IF":{g({}),o(0,["bool"]);const n=t.slice(1);return k(jQ(e.args[0],n,r),jQ(e.args[1],n,r))}case"MAP":{const n=o(0,["list","map","option"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=jQ(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);if("failed"in s){if(!("prim"in s.failed)||"never"!==s.failed.prim)throw new SQ(e,t,`${e.prim}: FAIL is not allowed in MAP`);return{failed:s.failed,level:s.level+1}}if(s.length<1)throw new SQ(e,t,`${e.prim}: function must return a value`);return l(s.slice(1),i),"list"===n.prim?[y({prim:"list",args:[s[0]]}),...i]:"map"===n.prim?[y({prim:"map",args:[n.args[0],s[0]]}),...i]:[y({prim:"option",args:[s[0]]}),...i]}case"ITER":{g({});const n=o(0,["set","list","map"])[0],i=t.slice(1),a="map"===n.prim?{prim:"pair",args:n.args}:n.args[0],s=jQ(e.args[0],[v(a,{t:null,v:S(c(n),"elt")}),...i],r);return"failed"in s?{failed:s.failed,level:s.level+1}:(l(s,i),i)}case"LOOP":{g({}),o(0,["bool"]);const n=t.slice(1),i=jQ(e.args[0],n,r);return"failed"in i?{failed:i.failed,level:i.level+1}:(l(i,[{prim:"bool"},...n]),n)}case"LOOP_LEFT":{g({});const n=o(0,["or"])[0],i=t.slice(1),a=jQ(e.args[0],[v(n.args[0],{t:null,v:S(c(n),"left")}),...i],r);return"failed"in a?{failed:a.failed,level:a.level+1}:(l(a,[n,...i]),[v(n.args[1],{t:null,v:g({v:1}).v}),...i])}case"DIP":{g({});const n=2===e.args.length?parseInt(e.args[0].int,10):1;o(n-1,null);const i=t.slice(0,n),a=t.slice(n),s=2===e.args.length?jQ(e.args[1],a,r):jQ(e.args[0],a,r);return"failed"in s?{failed:s.failed,level:s.level+1}:[...i,...s]}case"CREATE_CONTRACT":{const r=g({v:2}),n=o(0,["option"],["mutez"],null);if("key_hash"!==kQ(n[0].args[0]))throw new SQ(e,t,`${e.prim}: key hash expected: ${kQ(n[0].args[0])}`);f(n[2])&&(NQ(e.args[0]),AQ(RQ(e.args[0],"storage").args[0],n[2]));const i=null===(E=r.v)||void 0===E?void 0:E.map((e=>"@"!==e?[e]:void 0));return[v({prim:"operation"},{v:null===i||void 0===i?void 0:i[0]}),v({prim:"address",[DX]:{prim:"contract",args:[RQ(e.args[0],"parameter").args[0]]}},{v:null===i||void 0===i?void 0:i[1]}),...t.slice(3)]}case"PUSH":return OQ(e.args[0]),CQ(e.args[1],e.args[0],Object.assign(Object.assign({},r),{contract:void 0})),[y(e.args[0]),...t];case"EMPTY_SET":return OQ(e.args[0]),d(e.args[0]),[v({prim:"set",args:e.args},g({t:1,v:1})),...t];case"EMPTY_MAP":return OQ(e.args[0]),d(e.args[0]),OQ(e.args[1]),[v({prim:"map",args:e.args},g({t:1,v:1})),...t];case"EMPTY_BIG_MAP":return OQ(e.args[0]),d(e.args[0]),OQ(e.args[1]),m(e.args[0]),[v({prim:"big_map",args:e.args},g({t:1,v:1})),...t];case"LAMBDA_REC":case"LAMBDA":{OQ(e.args[0]),OQ(e.args[1]);const n=[e.args[0]];"LAMBDA_REC"===e.prim&&n.push({prim:"lambda",args:[e.args[0],e.args[1]]});const i=jQ(e.args[2],n,Object.assign(Object.assign({},r),{contract:void 0}));if("failed"in i)return{failed:i.failed,level:i.level+1};if(1!==i.length)throw new SQ(e,t,`${e.prim}: function must return a value`);return u(e.args[1],i[0]),[y({prim:"lambda",args:[e.args[0],e.args[1]]}),...t]}case"LEVEL":return[y({prim:"nat"},"@level"),...t];case"TOTAL_VOTING_POWER":case"MIN_BLOCK_TIME":return[y({prim:"nat"}),...t];case"VOTING_POWER":return o(0,["key_hash"]),[y({prim:"nat"}),...t.slice(1)];case"TICKET":{const e=o(0,null,["nat"])[0];return d(e),UX(n,zX.PtLimaPtL)?[v({prim:"ticket",args:[e]},g({t:1,v:1})),...t.slice(2)]:[y({prim:"option",args:[v({prim:"ticket",args:[e]},g({t:1,v:1}))]}),...t.slice(2)]}case"JOIN_TICKETS":{const r=IJ("pair",o(0,["pair"])[0]);if("ticket"!==kQ(r.args[0]))throw new SQ(e,t,`${e.prim}: ticket expected: ${kQ(r.args[0])}`);return u(r.args[0],r.args[1]),[y({prim:"option",args:[v(r.args[0],{t:null})]}),...t.slice(1)]}case"SPLIT_TICKET":{const r=o(0,["ticket"],["pair"]),n=IJ("pair",r[1]);if("nat"!==kQ(n.args[0]))throw new SQ(e,t,`${e.prim}: nat expected: ${kQ(n.args[0])}`);return u(n.args[0],n.args[1]),[y({prim:"option",args:[{prim:"pair",args:[v(r[0],{t:null}),v(r[0],{t:null})]}]}),...t.slice(2)]}case"READ_TICKET":{const e=g({v:2}),r=o(0,["ticket"])[0],n=null===(A=e.v)||void 0===A?void 0:A.map((e=>"@"!==e?[e]:void 0));return[v({prim:"pair",args:[{prim:"address"},v(r.args[0],{t:null}),{prim:"nat"}]},{v:null===n||void 0===n?void 0:n[0]}),v(r,{v:null===n||void 0===n?void 0:n[1],t:null}),...t.slice(1)]}case"PAIRING_CHECK":{const r=o(0,["list"])[0].args[0];if(!MJ(r))throw new SQ(e,t,`${e.prim}: pair expected: ${kQ(r)}`);const n=IJ("pair",r);if("bls12_381_g1"!==kQ(n.args[0]))throw new SQ(e,t,`${e.prim}: bls12_381_g1 expected: ${kQ(n.args[0])}`);if("bls12_381_g2"!==kQ(n.args[1]))throw new SQ(e,t,`${e.prim}: bls12_381_g2 expected: ${kQ(n.args[1])}`);return[y({prim:"bool"}),...t.slice(1)]}case"SAPLING_EMPTY_STATE":return[v({prim:"sapling_state",args:[e.args[0]]},g({v:1,t:1})),...t];case"SAPLING_VERIFY_UPDATE":{const r=o(0,["sapling_transaction"],["sapling_state"]);if(parseInt(r[0].args[0].int,10)!==parseInt(r[1].args[0].int,10))throw new SQ(e,t,`${e.prim}: sapling memo size mismatch: ${r[0].args[0].int} != ${r[1].args[0].int}`);return UX(n,zX.PtJakarta)?[y({prim:"option",args:[{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}),...t.slice(2)]:[y({prim:"option",args:[{prim:"pair",args:[{prim:"bytes"},{prim:"pair",args:[{prim:"int"},v(r[1],{t:null})]}]}]}),...t.slice(2)]}case"OPEN_CHEST":return o(0,["chest_key"],["chest"],["nat"]),[y({prim:"or",args:[{prim:"bytes"},{prim:"bool"}]}),...t.slice(3)];case"VIEW":{const r=o(0,null,["address"]);return p(r[0]),[y({prim:"option",args:[e.args[1]]}),...t.slice(2)]}case"EMIT":{const r=g({f:1,t:1});if(e.args){const n=o(0,null);return u(n[0],e.args[0]),[v({prim:"operation"},r),...t.slice(1)]}return[v({prim:"operation"},r),...t.slice(1)]}default:throw new SJ(e,`unexpected instruction: ${e.prim}`)}})(i);if(void 0!==(null===r||void 0===r?void 0:r.traceCallback)){const e={op:i,in:t,out:E};r.traceCallback(e)}return E}function RQ(e,t){for(const r of e)if(r.prim===t)return r;throw new SJ(e,`missing contract section: ${t}`)}function IQ(e){if(Array.isArray(e))for(const t of e)if("prim"in t&&("parameter"===t.prim||"storage"===t.prim||"code"===t.prim))return!0;return!1}function MQ(e,t){t=t||"%default";const r=LQ(e).find((e=>e[0]===t));return void 0!==r?r[1]:"%default"===t?IQ(e)?RQ(e,"parameter").args[0]:e:null}function LQ(e){if(IQ(e)){const t=RQ(e,"parameter"),r=LQ(t.args[0]),n=CJ(t);return n.f?[[n.f[0],t.args[0]],...r]:r}if(function(e){return Array.isArray(e)||"or"===e.prim}(e)){const t=EQ(e),r=e=>{const r=CJ(t[e]);if("or"===kQ(t[e])){const n=LQ(t[e]);return r.f?[[r.f[0],t[e]],...n]:n}return r.f?[[r.f[0],t[e]]]:[]};return[...r(0),...r(1)]}return[]}function NQ(e,t){const r=(r,n,i,o)=>{OQ(r,!0),OQ(n);const a=jQ(o,[{prim:"pair",args:[Object.assign(Object.assign({},r),{annots:["@parameter"]}),Object.assign(Object.assign({},n),{annots:["@storage"]})]}],Object.assign(Object.assign({},t),{contract:e}));if("failed"in a)return a;try{PQ(a,[i])}catch(Lde){throw Lde instanceof SJ?new SQ(o,a,Lde.message):Lde}return a},n=RQ(e,"parameter").args[0],i=RQ(e,"storage").args[0],o=r(n,i,{prim:"pair",args:[{prim:"list",args:[{prim:"operation"}]},i]},RQ(e,"code").args[0]);for(const a of Object.values(function(e){const t={};for(const r of e)"view"===r.prim&&(t[r.args[0].string]=r);return t}(e)))r(a.args[1],i,a.args[2],a.args[3]);return o}function DQ(e,t,r){OQ(t),CQ(e,t,r||null)}class zQ{constructor(e,t){this.contract=e,this.ctx=Object.assign({contract:e},t),this.output=NQ(e,this.ctx)}static parse(e,t){const r=new uJ(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new yJ("empty Michelson");if(uQ(n))return new zQ(n,t)}static parseTypeExpression(e,t){const r=new uJ(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new bJ("empty type expression");if(sQ(n))return OQ(n),n}static parseDataExpression(e,t){const r=new uJ(t),n="string"===typeof e?r.parseScript(e):r.parseJSON(e);if(null===n)throw new wJ("empty data expression");if(lQ(n))return n;throw void 0}section(e){return RQ(this.contract,e)}entryPoints(){return LQ(this.contract)}entryPoint(e){return MQ(this.contract,e)}assertDataValid(e,t){DQ(e,t,this.ctx)}isDataValid(e,t){return function(e,t,r){try{return DQ(e,t,r),!0}catch(un){return!1}}(e,t,this.ctx)}assertParameterValid(e,t){const r=this.entryPoint(e||void 0);if(null===r)throw new xJ(null===e||void 0===e?void 0:e.toString());this.assertDataValid(t,r)}isParameterValid(e,t){try{return this.assertParameterValid(e,t),!0}catch(un){return!1}}functionType(e,t){return function(e,t,r){for(const n of t)OQ(n);if(void 0!==(null===r||void 0===r?void 0:r.contract))for(const n of["parameter","storage"])OQ(RQ(r.contract,n).args[0]);return jQ(e,t,r||null)}(e,t,this.ctx)}}new zQ([{prim:"parameter",args:[{prim:"unit"}]},{prim:"storage",args:[{prim:"unit"}]},{prim:"code",args:[[{prim:"CAR"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PAIR"}]]}]);var BQ=r(4240).Buffer;const FQ=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),UQ=(e,t=8)=>e.toString(16).padStart(t,"0");var $Q;!function(e){e.SECRET="secret",e.RAW="raw",e.TZ1="tz1",e.BRANCH="branch",e.ZARITH="zarith",e.PUBLIC_KEY="public_key",e.PKH="pkh",e.PKH_ARR="pkhArr",e.DELEGATE="delegate",e.SCRIPT="script",e.BALLOT_STATEMENT="ballotStmt",e.PROPOSAL="proposal",e.PROPOSAL_ARR="proposalArr",e.INT32="int32",e.INT16="int16",e.PARAMETERS="parameters",e.ADDRESS="address",e.SMART_CONTRACT_ADDRESS="smart_contract_address",e.SMART_ROLLUP_ADDRESS="smart_rollup_address",e.SMART_ROLLUP_COMMITMENT_HASH="smart_rollup_commitment_hash",e.VALUE="value",e.PADDED_BYTES="padded_bytes",e.SMART_ROLLUP_MESSAGE="smart_rollup_message",e.MANAGER="manager",e.BLOCK_PAYLOAD_HASH="blockPayloadHash",e.ENTRYPOINT="entrypoint",e.OPERATION="operation",e.OP_ACTIVATE_ACCOUNT="activate_account",e.OP_DELEGATION="delegation",e.OP_TRANSACTION="transaction",e.OP_ORIGINATION="origination",e.OP_BALLOT="ballot",e.OP_FAILING_NOOP="failing_noop",e.OP_ATTESTATION="attestation",e.OP_ENDORSEMENT="endorsement",e.OP_SEED_NONCE_REVELATION="seed_nonce_revelation",e.OP_REVEAL="reveal",e.OP_PROPOSALS="proposals",e.OP_REGISTER_GLOBAL_CONSTANT="register_global_constant",e.OP_TRANSFER_TICKET="transfer_ticket",e.BURN_LIMIT="burn_limit",e.OP_INCREASE_PAID_STORAGE="increase_paid_storage",e.OP_UPDATE_CONSENSUS_KEY="update_consensus_key",e.OP_DRAIN_DELEGATE="drain_delegate",e.DEPOSITS_LIMIT="deposits_limit",e.OP_SET_DEPOSITS_LIMIT="set_deposits_limit",e.OP_SMART_ROLLUP_ORIGINATE="smart_rollup_originate",e.PVM_KIND="pvm_kind",e.OP_SMART_ROLLUP_ADD_MESSAGES="smart_rollup_add_messages",e.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE="smart_rollup_execute_outbox_message"}($Q||($Q={}));const HQ={"00":"parameter","01":"storage","02":"code","03":"False","04":"Elt","05":"Left","06":"None","07":"Pair","08":"Right","09":"Some","0a":"True","0b":"Unit","0c":"PACK","0d":"UNPACK","0e":"BLAKE2B","0f":"SHA256",10:"SHA512",11:"ABS",12:"ADD",13:"AMOUNT",14:"AND",15:"BALANCE",16:"CAR",17:"CDR",18:"CHECK_SIGNATURE",19:"COMPARE","1a":"CONCAT","1b":"CONS","1c":"CREATE_ACCOUNT","1d":"CREATE_CONTRACT","1e":"IMPLICIT_ACCOUNT","1f":"DIP",20:"DROP",21:"DUP",22:"EDIV",23:"EMPTY_MAP",24:"EMPTY_SET",25:"EQ",26:"EXEC",27:"FAILWITH",28:"GE",29:"GET","2a":"GT","2b":"HASH_KEY","2c":"IF","2d":"IF_CONS","2e":"IF_LEFT","2f":"IF_NONE",30:"INT",31:"LAMBDA",32:"LE",33:"LEFT",34:"LOOP",35:"LSL",36:"LSR",37:"LT",38:"MAP",39:"MEM","3a":"MUL","3b":"NEG","3c":"NEQ","3d":"NIL","3e":"NONE","3f":"NOT",40:"NOW",41:"OR",42:"PAIR",43:"PUSH",44:"RIGHT",45:"SIZE",46:"SOME",47:"SOURCE",48:"SENDER",49:"SELF","4a":"STEPS_TO_QUOTA","4b":"SUB","4c":"SWAP","4d":"TRANSFER_TOKENS","4e":"SET_DELEGATE","4f":"UNIT",50:"UPDATE",51:"XOR",52:"ITER",53:"LOOP_LEFT",54:"ADDRESS",55:"CONTRACT",56:"ISNAT",57:"CAST",58:"RENAME",59:"bool","5a":"contract","5b":"int","5c":"key","5d":"key_hash","5e":"lambda","5f":"list",60:"map",61:"big_map",62:"nat",63:"option",64:"or",65:"pair",66:"set",67:"signature",68:"string",69:"bytes","6a":"mutez","6b":"timestamp","6c":"unit","6d":"operation","6e":"address","6f":"SLICE",70:"DIG",71:"DUG",72:"EMPTY_BIG_MAP",73:"APPLY",74:"chain_id",75:"CHAIN_ID",76:"LEVEL",77:"SELF_ADDRESS",78:"never",79:"NEVER","7a":"UNPAIR","7b":"VOTING_POWER","7c":"TOTAL_VOTING_POWER","7d":"KECCAK","7e":"SHA3","7f":"PAIRING_CHECK",80:"bls12_381_g1",81:"bls12_381_g2",82:"bls12_381_fr",83:"sapling_state",84:"sapling_transaction_deprecated",85:"SAPLING_EMPTY_STATE",86:"SAPLING_VERIFY_UPDATE",87:"ticket",88:"TICKET_DEPRECATED",89:"READ_TICKET","8a":"SPLIT_TICKET","8b":"JOIN_TICKETS","8c":"GET_AND_UPDATE","8d":"chest","8e":"chest_key","8f":"OPEN_CHEST",90:"VIEW",91:"view",92:"constant",93:"SUB_MUTEZ",94:"tx_rollup_l2_address",95:"MIN_BLOCK_TIME",96:"sapling_transaction",97:"EMIT",98:"Lambda_rec",99:"LAMBDA_REC","9a":"TICKET","9b":"BYTES","9c":"NAT"},VQ=(()=>{const e={};return Object.keys(HQ).forEach((t=>{e[HQ[t]]=t})),e})(),qQ={4:"activate_account",107:"reveal",110:"delegation",108:"transaction",109:"origination",6:"ballot",21:"attestation",1:"seed_nonce_revelation",5:"proposals",111:"register_global_constant",158:"transfer_ticket",112:"set_deposits_limit",113:"increase_paid_storage",114:"update_consensus_key",9:"drain_delegate",200:"smart_rollup_originate",201:"smart_rollup_add_messages",206:"smart_rollup_execute_outbox_message",17:"failing_noop"},KQ=(()=>{const e={};return Object.keys(qQ).forEach((t=>{const r="string"===typeof t?parseInt(t,10):t;e[qQ[r]]=UQ(r,2)})),e})(),WQ={"00":"default","01":"root","02":"do","03":"set_delegate","04":"remove_delegate","05":"deposit","06":"stake","07":"unstake","08":"finalize_unstake","09":"set_delegate_parameters"},GQ=(()=>{const e={};return Object.keys(WQ).forEach((t=>{e[WQ[t]]=t})),e})();class YQ extends us{constructor(e,t){super(),this.operation=e,this.errorDetail=t,this.name="InvalidOperationSchemaError",this.message="Invalid operation content recevied",t&&(this.message+=` ${t}.`)}}class ZQ extends us{constructor(e){super(),this.entrypoint=e,this.name="OversizedEntryPointError",this.message=`Invalid entrypoint length "${e.length}", maximum length is "31".`}}class XQ extends us{constructor(e){super(),this.ballotValue=e,this.name="InvalidBallotValueError",this.message=`Invalid ballot value "${e}" expecting one of the following: "yay", "nay", "pass".`}}class JQ extends us{constructor(e){super(),this.ballotValue=e,this.name="DecodeBallotValueError",this.message=`Invalid ballot value "${e}", cannot be decoded.`}}class QQ extends us{constructor(e){super(),this.value=e,this.name="UnexpectedMichelsonValueError",this.message=`Invalid Michelson value "${e}", unalbe to encode.`}}class e0 extends us{constructor(e){super(),this.message=e,this.name="OperationDecodingError"}}class t0 extends us{constructor(e){super(),this.message=e,this.name="OperationEncodingError"}}class r0 extends us{constructor(e){super(),this.op=e,this.name="UnsupportedOperationError",this.message=`Unsupported operation "${e}", can submit an issue on our github for feature request.`}}class n0 extends us{constructor(e){super(),this.pvm=e,this.name="UnsupportedPvmKindError",this.message=`Invalid Pvm kind "${e}" expecting either "arith" or "wasm_2_0_0".`}}class i0 extends us{constructor(e){super(),this.pvm=e,this.name="DecodePvmKindError",this.message=`Invalid Pvm kind "${e}", cannot be decoded.`}}class o0 extends us{constructor(e,t){super(),this.address=e,this.errorDetail=t,this.name="InvalidSmartRollupAddress",this.message=`Invalid smart rollup address "${e}"`,t&&(this.message+=` ${t}.`)}}class a0 extends us{constructor(e,t){super(),this.hash=e,this.errorDetail=t,this.name="InvalidSmartRollupCommitmentHashError",this.message=`Invalid smart rollup commitment hash "${e}"`,t&&(this.message+=` ${t}.`)}}class s0{static fromHexString(e){const t=e.toLowerCase();if(/^(([a-f]|\d){2})*$/.test(t)){const e=new Uint8Array((t.match(/([a-z]|\d){2}/g)||[]).map((e=>parseInt(e,16))));return new s0(e)}throw new bs(t)}constructor(e,t=0){this.arr=e,this.offset=t}consume(e){const t=this.arr.subarray(this.offset,this.offset+e);return this.offset+=e,t}get(e){return this.arr[this.offset+e]}length(){return this.arr.length-this.offset}slice(e,t){return new s0(this.arr.slice(e,t))}}const c0=e=>{if(Array.isArray(e)){const t=e.map((e=>c0(e))).join(""),r=t.length/2;return`02${UQ(r)}${t}`}if((e=>"prim"in e)(e))return v0(e);if((e=>"bytes"in e&&"string"===typeof e.bytes)(e))return d0(e);if((e=>"string"in e&&"string"===typeof e.string)(e))return f0(e);if((e=>"int"in e&&"string"===typeof e.int)(e))return m0(e);throw new QQ(JSON.stringify(e))},l0=e=>{const t=e.consume(1);switch(t[0]){case 10:return h0(e);case 1:return p0(e);case 0:return g0(e);case 2:{const t=new s0(u0(e)),r=[];for(;t.length()>0;)r.push(l0(t));return r}default:return y0(e,t)}},u0=(e,t=4)=>{const r=e.consume(t),n=parseInt(BQ.from(r).toString("hex"),16);return e.consume(n)},d0=e=>{if(!/^([A-Fa-f0-9]{2})*$/.test(e.bytes))throw new bs(e.bytes);const t=e.bytes.length/2;return`0a${UQ(t)}${e.bytes}`},h0=e=>{const t=u0(e);return{bytes:BQ.from(t).toString("hex")}},f0=e=>{const t=BQ.from(e.string,"utf8").toString("hex"),r=t.length/2;return`01${UQ(r)}${t}`},p0=e=>{const t=u0(e);return{string:BQ.from(t).toString("utf8")}},m0=({int:e})=>{const t=new Zs(e,10),r="-"===t.toString(2)[0]?"1":"0",n=t.toString(2).replace(/-/g,""),i=n.length<=6?6:(n.length-6)%7?n.length+7-(n.length-6)%7:n.length,o=n.padStart(i,"0").match(/\d{6,7}/g).reverse();o[0]=r+o[0];const a=o.map(((e,t)=>parseInt((t===o.length-1?"0":"1")+e,2).toString(16).padStart(2,"0")));return`00${a.join("")}`},g0=e=>{let t=e.consume(1)[0];const r=[];for(;128&t;)r.push(t),t=e.consume(1)[0];r.push(t);const n=!!(64&r[0]);r[0]=127&r[0];const i=r.map(((e,t)=>e.toString(2).slice(0===t?-6:-7).padStart(0===t?6:7,"0"))).reverse();let o=new Zs(i.join(""),2);return n&&(o=o.times(-1)),{int:o.toFixed()}},v0=e=>{const t=+Array.isArray(e.annots),r=Array.isArray(e.args)?e.args.length:0,n=UQ(Math.min(2*r+t+3,9),2),i=VQ[e.prim];let o=(e.args||[]).map((e=>c0(e))).join("");const a=Array.isArray(e.annots)?x0(e.annots):"";return"LAMBDA"!==e.prim&&"LAMBDA_REC"!==e.prim||!r||(o=UQ(o.length/2)+o+UQ(0)),("pair"===e.prim||"Pair"===e.prim)&&r>2&&(o=""===a?UQ(o.length/2)+o+UQ(0):UQ(o.length/2)+o),"view"===e.prim&&e.args&&(o=UQ(o.length/2)+o+UQ(0)),`${n}${i}${o}${a}`},y0=(e,t)=>{const r=(t[0]-3)%2===1;let n=Math.floor((t[0]-3)/2);const i=e.consume(1)[0].toString(16).padStart(2,"0"),o={prim:HQ[i]};if("LAMBDA"!==HQ[i]&&"LAMBDA_REC"!==HQ[i]||e.consume(4),"view"===HQ[i])return 0!=n?b0(e,o):o;let a,s;("pair"===HQ[i]||"Pair"===HQ[i])&&n>2&&(a=w0(e),n=0,s=_0(e));const c=new Array(n).fill(0).map((()=>l0(e)));return"LAMBDA"!==HQ[i]&&"LAMBDA_REC"!==HQ[i]||e.consume(4),a?o.args=a:c.length&&(o.args=c),s&&""!==s[0]?o.annots=s:r&&(o.annots=_0(e)),o},b0=(e,t)=>(e.consume(4),t.args=new Array(4).fill(0).map((()=>l0(e))),e.consume(4),t),w0=e=>{const t=new s0(u0(e)),r=[];for(;t.length()>0;)r.push(l0(t));return r},x0=e=>{const t=e.map((e=>BQ.from(e,"utf8").toString("hex"))).join("20"),r=t.length/2;return`${UQ(r)}${t}`},_0=e=>{const t=e.consume(4),r=parseInt(BQ.from(t).toString("hex"),16),n=e.consume(r);return BQ.from(n).toString("hex").split("20").map((e=>BQ.from(e,"hex").toString("utf8")))},S0=e=>t=>Mc(BQ.from(Tc(t,nc[e]))),k0=e=>t=>Oc(t.consume(ic[e]),nc[e]),E0=k0(Js.TZ1),A0=k0(Js.B),P0=e=>{const t=e.consume(1);return 0===t[0]?k0(Js.TZ1)(e):1===t[0]?k0(Js.TZ2)(e):2===t[0]?k0(Js.TZ3)(e):void 0},O0=S0(Js.B),T0=S0(Js.TZ1),C0=e=>e?"ff":"00",j0=e=>S0(Js.P)(e),R0=e=>k0(Js.P)(e),I0=e=>255===e.consume(1)[0],M0=e=>{switch(e.substring(0,3)){case Js.TZ1:return"00"+S0(Js.TZ1)(e);case Js.TZ2:return"01"+S0(Js.TZ2)(e);case Js.TZ3:return"02"+S0(Js.TZ3)(e);case Js.TZ4:return"03"+S0(Js.TZ4)(e);default:throw new As(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting one for the following "${Js.TZ1}", "${Js.TZ2}", "${Js.TZ3}" or "${Js.TZ4}".`)}},L0=e=>{const t=[];let r=new Xs(e,10);if(r.isNaN())throw new TypeError(`Invalid zarith number ${e}`);for(;;){if(r.lt(128)){r.lt(16)&&t.push("0"),t.push(r.toString(16));break}{let e=r.mod(128);r=r.minus(e),r=r.dividedBy(128),e=e.plus(128),t.push(e.toString(16))}}return t.join("")},N0=e=>{let t=0;for(;t=0;n-=1){const t=127&e.get(n);r=r.multipliedBy(128),r=r.plus(t)}return e.consume(t+1),new Xs(r).toString()},D0=S0(Js.VH),z0=k0(Js.VH),B0={branch:$Q.BRANCH,contents:[$Q.OPERATION]},F0={pkh:$Q.TZ1,secret:$Q.SECRET},U0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,public_key:$Q.PUBLIC_KEY},$0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,delegate:$Q.DELEGATE},H0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,amount:$Q.ZARITH,destination:$Q.ADDRESS,parameters:$Q.PARAMETERS},V0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,balance:$Q.ZARITH,delegate:$Q.DELEGATE,script:$Q.SCRIPT},q0={source:$Q.PKH,period:$Q.INT32,proposal:$Q.PROPOSAL,ballot:$Q.BALLOT_STATEMENT},K0={slot:$Q.INT16,level:$Q.INT32,round:$Q.INT32,block_payload_hash:$Q.BLOCK_PAYLOAD_HASH},W0={slot:$Q.INT16,level:$Q.INT32,round:$Q.INT32,block_payload_hash:$Q.BLOCK_PAYLOAD_HASH},G0={level:$Q.INT32,nonce:$Q.RAW},Y0={source:$Q.PKH,period:$Q.INT32,proposals:$Q.PROPOSAL_ARR},Z0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,value:$Q.VALUE},X0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,ticket_contents:$Q.VALUE,ticket_ty:$Q.VALUE,ticket_ticketer:$Q.ADDRESS,ticket_amount:$Q.ZARITH,destination:$Q.ADDRESS,entrypoint:$Q.ENTRYPOINT},J0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,amount:$Q.ZARITH,destination:$Q.SMART_CONTRACT_ADDRESS},Q0={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,pk:$Q.PUBLIC_KEY},e1={consensus_key:$Q.PKH,delegate:$Q.PKH,destination:$Q.PKH},t1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,limit:$Q.DEPOSITS_LIMIT},r1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,pvm_kind:$Q.PVM_KIND,kernel:$Q.PADDED_BYTES,parameters_ty:$Q.VALUE,whitelist:$Q.PKH_ARR},n1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,message:$Q.SMART_ROLLUP_MESSAGE},i1={source:$Q.PKH,fee:$Q.ZARITH,counter:$Q.ZARITH,gas_limit:$Q.ZARITH,storage_limit:$Q.ZARITH,rollup:$Q.SMART_ROLLUP_ADDRESS,cemented_commitment:$Q.SMART_ROLLUP_COMMITMENT_HASH,output_proof:$Q.PADDED_BYTES},o1={arbitrary:$Q.PADDED_BYTES},a1=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(r&&Array.isArray(o)){const t=e[o[0]],a=r[i];if(!Array.isArray(a))throw new t0(`Invalid operation value "${JSON.stringify(a)}" of key "${i}, expected value to be Array.`);return n+a.reduce(((e,r)=>e+t(r)),"")}return n+(0,e[o])(r[i])}),""),s1=e=>t=>r=>Object.keys(t).reduce(((n,i)=>{const o=t[i];if(Array.isArray(o)){const t=e[o[0]],a=[],s=r.length();for(;r.length()>0;)if(a.push(t(r)),s===r.length())throw new e0("Unable to decode value");return Object.assign(Object.assign({},n),{[i]:a})}{const t=(0,e[o])(r);return"undefined"!==typeof t?Object.assign(Object.assign({},n),{[i]:t}):Object.assign({},n)}}),{}),c1={[$Q.SECRET]:e=>FQ(e.consume(20)),[$Q.RAW]:e=>FQ(e.consume(32)),[$Q.TZ1]:E0,[$Q.BRANCH]:A0,[$Q.ZARITH]:N0,[$Q.PUBLIC_KEY]:e=>{switch(e.consume(1)[0]){case 0:return k0(Js.EDPK)(e);case 1:return k0(Js.SPPK)(e);case 2:return k0(Js.P2PK)(e);default:throw new Ss(e.toString(),Sc(ac.NO_PREFIX_MATCHED))}},[$Q.PKH]:P0,[$Q.PKH_ARR]:e=>{if(!I0(e))return;const t=[];for(e.consume(4);e.length()>0;)t.push(P0(e));return t},[$Q.DELEGATE]:e=>{if(I0(e))return P0(e)},[$Q.INT32]:e=>{const t=e.consume(4);let r=0;for(let n=0;n{const t=u0(e),r=u0(e);return{code:l0(new s0(t)),storage:l0(new s0(r))}},[$Q.BALLOT_STATEMENT]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"yay";case 1:return"nay";case 2:return"pass";default:throw new JQ(t[0].toString())}},[$Q.PROPOSAL]:R0,[$Q.PROPOSAL_ARR]:e=>{const t=[];for(e.consume(4);e.length()>0;)t.push(R0(e));return t},[$Q.PARAMETERS]:e=>{if(0!==e.consume(1)[0]){const t=(e=>{const t=UQ(e.consume(1)[0],2);if(t in WQ)return WQ[t];{const t=u0(e,1),r=BQ.from(t).toString("utf8");if(r.length>31)throw new ZQ(r);return r}})(e),r=u0(e);return{entrypoint:t,value:l0(new s0(r))}}},[$Q.ADDRESS]:e=>{switch(e.consume(1)[0]){case 0:return P0(e);case 1:{const t=k0(Js.KT1)(e);return e.consume(1),t}default:throw new ms(e.toString(),": Unable to decode.")}},[$Q.SMART_ROLLUP_ADDRESS]:e=>{const t=k0(Js.SR1)(e);if(t.substring(0,3)!==Js.SR1)throw new o0(t,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SR1}'.`);return t},[$Q.SMART_CONTRACT_ADDRESS]:e=>{if(1===e.consume(1)[0]){const t=k0(Js.KT1)(e);return e.consume(1),t}throw new ks(e.toString(),Sc(ac.NO_PREFIX_MATCHED))},[$Q.SMART_ROLLUP_COMMITMENT_HASH]:e=>{const t=k0(Js.SRC1)(e);if(t.substring(0,4)!==Js.SRC1)throw new a0(t,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SRC1}'`);return t},[$Q.VALUE]:e=>{const t=u0(e);return l0(new s0(t))},[$Q.INT16]:e=>{const t=e.consume(2);let r=0;for(let n=0;n{const t=u0(e);return BQ.from(t).toString("utf8")},[$Q.BURN_LIMIT]:e=>{const t=e.consume(1);if("00"!==BQ.from(t).toString("hex"))return N0(e)},[$Q.DEPOSITS_LIMIT]:e=>{const t=e.consume(1);if("00"!==BQ.from(t).toString("hex"))return N0(e)},[$Q.PVM_KIND]:e=>{const t=e.consume(1);switch(t[0]){case 0:return"arith";case 1:return"wasm_2_0_0";case 2:return"riscv";default:throw new i0(t[0].toString())}},[$Q.PADDED_BYTES]:e=>{const t=u0(e);return BQ.from(t).toString("hex")},[$Q.SMART_ROLLUP_MESSAGE]:e=>{const t=u0(e),r=((e,t=4)=>{const r=[];let n=e;for(;n.length();){const e=n.consume(t),i=parseInt(BQ.from(e).toString("hex"),16);r.push(n.consume(i)),n=n.slice(i+t)}return r})(new s0(t));return r.map((e=>BQ.from(e).toString("hex")))}};c1[$Q.OPERATION]=(e=>t=>{const r=t.consume(1),n=qQ[r[0]];if(void 0===n)throw new r0(r[0].toString());const i=e[n](t);if("object"!==typeof i)throw new e0("Invalid operation, cannot be decoded.");return Object.assign({kind:n},i)})(c1),c1[$Q.OP_ACTIVATE_ACCOUNT]=e=>s1(c1)(F0)(e),c1[$Q.OP_FAILING_NOOP]=e=>s1(c1)(o1)(e),c1[$Q.OP_DELEGATION]=e=>s1(c1)($0)(e),c1[$Q.OP_TRANSACTION]=e=>s1(c1)(H0)(e),c1[$Q.OP_ORIGINATION]=e=>s1(c1)(V0)(e),c1[$Q.OP_BALLOT]=e=>s1(c1)(q0)(e),c1[$Q.OP_ATTESTATION]=e=>s1(c1)(K0)(e),c1[$Q.OP_ENDORSEMENT]=e=>s1(c1)(W0)(e),c1[$Q.OP_SEED_NONCE_REVELATION]=e=>s1(c1)(G0)(e),c1[$Q.OP_PROPOSALS]=e=>s1(c1)(Y0)(e),c1[$Q.OP_REVEAL]=e=>s1(c1)(U0)(e),c1[$Q.OP_REGISTER_GLOBAL_CONSTANT]=e=>s1(c1)(Z0)(e),c1[$Q.OP_TRANSFER_TICKET]=e=>s1(c1)(X0)(e),c1[$Q.OP_INCREASE_PAID_STORAGE]=e=>s1(c1)(J0)(e),c1[$Q.OP_UPDATE_CONSENSUS_KEY]=e=>s1(c1)(Q0)(e),c1[$Q.OP_DRAIN_DELEGATE]=e=>s1(c1)(e1)(e),c1[$Q.OP_SMART_ROLLUP_ORIGINATE]=e=>s1(c1)(r1)(e),c1[$Q.OP_SMART_ROLLUP_ADD_MESSAGES]=e=>s1(c1)(n1)(e),c1[$Q.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE]=e=>s1(c1)(i1)(e),c1[$Q.MANAGER]=s1(c1)(B0),c1[$Q.OP_SET_DEPOSITS_LIMIT]=e=>s1(c1)(t1)(e);const l1={[$Q.SECRET]:e=>e,[$Q.RAW]:e=>e,[$Q.TZ1]:T0,[$Q.BRANCH]:O0,[$Q.ZARITH]:L0,[$Q.PUBLIC_KEY]:e=>{switch(e.substring(0,4)){case Js.EDPK:return"00"+S0(Js.EDPK)(e);case Js.SPPK:return"01"+S0(Js.SPPK)(e);case Js.P2PK:return"02"+S0(Js.P2PK)(e);default:throw new Ss(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting one of the following '${Js.EDPK}', '${Js.SPPK}', '${Js.P2PK}' or '${Js.BLPK}'.`)}},[$Q.PKH]:M0,[$Q.PKH_ARR]:e=>{if(!e)return C0(!1);if(0===e.length)return C0(!0)+UQ(0);const t=e.reduce(((e,t)=>e+M0(t)),"");return C0(!0)+UQ(t.length/2)+t},[$Q.DELEGATE]:e=>e?C0(!0)+M0(e):C0(!1),[$Q.SCRIPT]:e=>{const t=c0(e.code),r=c0(e.storage);return`${UQ(t.length/2,8)}${t}${UQ(r.length/2,8)}${r}`},[$Q.BALLOT_STATEMENT]:e=>{switch(e){case"yay":return"00";case"nay":return"01";case"pass":return"02";default:throw new XQ(e)}},[$Q.PROPOSAL]:j0,[$Q.PROPOSAL_ARR]:e=>UQ(32*e.length)+e.map((e=>j0(e))).join(""),[$Q.INT32]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<4;n++){const e=8*(4-(n+1));r.push((t&255<>e)}return BQ.from(r).toString("hex")},[$Q.PARAMETERS]:e=>{if(!e||"default"===e.entrypoint&&"prim"in e.value&&"Unit"===e.value.prim)return"00";const t=(e=>{if(e in GQ)return`${GQ[e]}`;if(e.length>31)throw new ZQ(e);return`ff${c0({string:e}).slice(8)}`})(e.entrypoint),r=c0(e.value);return`ff${t}${(r.length/2).toString(16).padStart(8,"0")}${r}`},[$Q.ADDRESS]:e=>{switch(e.substring(0,3)){case Js.TZ1:case Js.TZ2:case Js.TZ3:case Js.TZ4:return"00"+M0(e);case Js.KT1:return"01"+S0(Js.KT1)(e)+"00";default:throw new ms(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting one of the following prefix '${Js.TZ1}', ${Js.TZ2}', '${Js.TZ3}', '${Js.TZ4}' or '${Js.KT1}'.`)}},[$Q.SMART_ROLLUP_ADDRESS]:e=>{if(e.substring(0,3)!==Js.SR1)throw new o0(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SR1}'.`);return S0(Js.SR1)(e)},[$Q.SMART_CONTRACT_ADDRESS]:e=>{if(e.substring(0,3)===Js.KT1)return"01"+S0(Js.KT1)(e)+"00";throw new ks(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.KT1}'.`)},[$Q.SMART_ROLLUP_COMMITMENT_HASH]:e=>{if(e.substring(0,4)===Js.SRC1)return S0(Js.SRC1)(e);throw new a0(e,Sc(ac.NO_PREFIX_MATCHED)+` expecting prefix '${Js.SRC1}'`)},[$Q.VALUE]:e=>{const t=c0(e);return`${UQ(t.length/2)}${t}`},[$Q.INT16]:e=>{const t=parseInt(String(e),10),r=[];for(let n=0;n<2;n++){const e=8*(2-(n+1));r.push((t&255<>e)}return BQ.from(r).toString("hex")},[$Q.BLOCK_PAYLOAD_HASH]:D0,[$Q.ENTRYPOINT]:e=>`${c0({string:e}).slice(2)}`,[$Q.BURN_LIMIT]:e=>e?`ff${L0(e)}`:"00",[$Q.DEPOSITS_LIMIT]:e=>e?`ff${L0(e)}`:"00",[$Q.PVM_KIND]:e=>{switch(e){case"arith":return"00";case"wasm_2_0_0":return"01";case"riscv":return"02";default:throw new n0(e)}},[$Q.PADDED_BYTES]:(e,t=8)=>`${UQ(e.length/2,t)}${e}`,[$Q.SMART_ROLLUP_MESSAGE]:e=>{const t=e.reduce(((e,t)=>e+`${UQ(t.length/2)}${t}`),"");return`${UQ(t.length/2)}${t}`}};l1[$Q.OPERATION]=(e=>t=>{if(!(t.kind in e)||!(t.kind in KQ))throw new Os(t.kind);return KQ[t.kind]+e[t.kind](t)})(l1),l1[$Q.OP_ACTIVATE_ACCOUNT]=e=>a1(l1)(F0)(e),l1[$Q.OP_DELEGATION]=e=>a1(l1)($0)(e),l1[$Q.OP_TRANSACTION]=e=>a1(l1)(H0)(e),l1[$Q.OP_ORIGINATION]=e=>a1(l1)(V0)(e),l1[$Q.OP_BALLOT]=e=>a1(l1)(q0)(e),l1[$Q.OP_ATTESTATION]=e=>a1(l1)(K0)(e),l1[$Q.OP_ENDORSEMENT]=e=>a1(l1)(W0)(e),l1[$Q.OP_SEED_NONCE_REVELATION]=e=>a1(l1)(G0)(e),l1[$Q.OP_PROPOSALS]=e=>a1(l1)(Y0)(e),l1[$Q.OP_REVEAL]=e=>a1(l1)(U0)(e),l1[$Q.OP_REGISTER_GLOBAL_CONSTANT]=e=>a1(l1)(Z0)(e),l1[$Q.OP_TRANSFER_TICKET]=e=>a1(l1)(X0)(e),l1[$Q.OP_INCREASE_PAID_STORAGE]=e=>a1(l1)(J0)(e),l1[$Q.OP_UPDATE_CONSENSUS_KEY]=e=>a1(l1)(Q0)(e),l1[$Q.OP_DRAIN_DELEGATE]=e=>a1(l1)(e1)(e),l1[$Q.OP_SMART_ROLLUP_ORIGINATE]=e=>a1(l1)(r1)(e),l1[$Q.OP_SMART_ROLLUP_ADD_MESSAGES]=e=>a1(l1)(n1)(e),l1[$Q.OP_SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE]=e=>a1(l1)(i1)(e),l1[$Q.MANAGER]=a1(l1)(B0),l1[$Q.OP_SET_DEPOSITS_LIMIT]=e=>a1(l1)(t1)(e),l1[$Q.OP_FAILING_NOOP]=e=>a1(l1)(o1)(e);const u1={activate_account:F0,reveal:U0,delegation:$0,transaction:H0,origination:V0,ballot:q0,attestation:K0,endorsement:W0,seed_nonce_revelation:G0,proposals:Y0,register_global_constant:Z0,transfer_ticket:X0,increase_paid_storage:J0,update_consensus_key:Q0,drain_delegate:e1,set_deposits_limit:t1,smart_rollup_originate:r1,smart_rollup_add_messages:n1,smart_rollup_execute_outbox_message:i1,failing_noop:o1},d1=e=>{const t=e.kind,r=Object.keys(e),n=(i="kind",r.filter((e=>e!==i)));var i;const o=Object.keys(u1[t]);return a=n,o.filter((e=>!a.includes(e)));var a};var h1;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProxfordY="ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(h1||(h1={}));const f1=h1.ProxfordY;class p1{constructor(e=f1){var t;this.protocolHash=e,this.codec=(t=$Q.MANAGER,this.protocolHash,{encoder:l1[t],decoder:e=>{const r=s0.fromHexString(e);return c1[t](r)}})}forge(e){const t=function(e){return cc(e,pc)}(e.branch);if(t!==ac.VALID)throw new gs(e.branch,Sc(t));for(const i of e.contents){if(r=i.kind,!Object.keys(u1).includes(r))throw new Os(i.kind);const e=d1(i);if(1===e.length){if("delegation"===i.kind&&"delegate"===e[0])continue;if("origination"===i.kind&&"delegate"===e[0])continue;if("transaction"===i.kind&&"parameters"===e[0])continue;if("set_deposits_limit"===i.kind&&"limit"===e[0])continue;if("smart_rollup_originate"===i.kind&&"whitelist"===e[0])continue;throw new YQ(i,`missing properties "${e.join(", ")}"`)}if(e.length>1)throw new YQ(i,`missing properties "${e.join(", ")}"`)}var r;const n=this.codec.encoder(e).toLowerCase();return Promise.resolve(n)}parse(e){return Promise.resolve(this.codec.decoder(e))}}new p1;function m1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i(e.on("data",(e=>{t.next(e)})),e.on("error",(e=>{t.error(e)})),e.on("close",(()=>{t.complete()})),()=>{e.close()})))}const S1=10600,k1=10600,E1=10600,A1=1e3,P1=1e3,O1=2e3,T1=2e3,C1=1257,j1=1e4,R1=1e4,I1=374,M1=0,L1=257,N1=257,D1=0;var z1;!function(e){e.Pt24m4xi="Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",e.PsBABY5H="PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",e.PsBabyM1="PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",e.PsCARTHA="PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",e.PsDELPH1="PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",e.PtEdo2Zk="PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",e.PsFLorena="PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",e.PtGRANADs="PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",e.PtHangz2="PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",e.PsiThaCa="PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",e.Psithaca2="Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",e.PtJakart2="PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",e.PtKathman="PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",e.PtLimaPtL="PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",e.PtMumbaii="PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",e.PtMumbai2="PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",e.PtNairobi="PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",e.ProxfordY="ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",e.ProtoALpha="ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"}(z1||(z1={}));z1.Pt24m4xi,z1.PsBABY5H,z1.PsBabyM1,z1.PsCARTHA,z1.PsDELPH1,z1.PtEdo2Zk,z1.PsFLorena,z1.PtGRANADs,z1.PtHangz2,z1.PsiThaCa,z1.Psithaca2,z1.PtJakart2,z1.PtKathman,z1.PtLimaPtL,z1.PtMumbai2,z1.PtNairobi,z1.ProxfordY,z1.ProtoALpha;var B1;!function(e){e.MAINNET="NetXdQprcVkpaWU",e.CARTHAGENET="NetXjD3HPJJjmcd",e.DELPHINET="NetXm8tYqnMWky1",e.EDONET="NetXSgo1ZT2DRUG",e.FLORENCENET="NetXxkAx4woPLyu",e.GRANADANET="NetXz969SFaFn8k",e.HANGZHOUNET="NetXZSsxBpMQeAT",e.ITHACANET="NetXbhmtAbMukLc",e.ITHACANET2="NetXnHfVqm9iesp",e.JAKARTANET2="NetXLH1uAxK7CCh",e.KATHMANDUNET="NetXazhm4yetmff",e.LIMANET="NetXizpkH94bocH",e.MUMBAINET="NetXQw6nWSnrJ5t",e.MUMBAINET2="NetXgbcrNtXD2yA",e.NAIROBINET="NetXyuzvDo2Ugzb",e.OXFORDNET2="NetXxWsskGahzQB"}(B1||(B1={}));const F1=e=>Math.round(11*U1(e)/10),U1=e=>{switch(e.substring(0,3)){case"tz1":return A1;case"tz2":return P1;case"tz3":return O1;case"tz4":return T1;default:throw new Error(`Cannot estimate reveal gas limit for ${e}`)}};class $1 extends us{constructor(e,t,r){super(),this.smartContractMethodName=e,this.sigs=t,this.invalidParams=r,this.name="InvalidParameterError",this.message=`${e} Received ${r.length} arguments while expecting one of the following signatures (${JSON.stringify(t)})`}}class H1 extends us{constructor(e){super(),this.source=e,this.name="InvalidDelegationSource",this.message=`Since Babylon delegation source can no longer be a contract address ${e}. Please use the smart contract abstraction to set your delegate.`}}class V1 extends us{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidCodeParameter"}}class q1 extends us{constructor(e,t){super(),this.message=e,this.data=t,this.name="InvalidInitParameter"}}class K1 extends ds{constructor(e,t,r,n){super(),this.message=e,this.viewName=t,this.failWith=r,this.cause=n,this.name="ViewSimulationError"}}const W1=e=>{try{JSON.parse(e)}catch(Mde){return!1}return!0};class G1 extends us{constructor(e){super(),this.info=e,this.name="InvalidViewSimulationContext",this.message=`${e} Please configure the context of the view execution in the executeView method.`}}class Y1 extends ds{constructor(e){super(),this.message=e,this.name="RevealOperationError"}}class Z1 extends us{constructor(e){super(),this.message=e,this.name}}class X1 extends us{constructor(e){super(),this.message=e,this.name="InvalidBalanceError"}}const J1=({code:e,init:t,balance:r="0",delegate:n,storage:i,fee:o=j1,gasLimit:a=k1,storageLimit:s=L1,mutez:c=!1})=>g1(void 0,void 0,void 0,(function*(){if(void 0!==i&&void 0!==t)throw new Z1("Storage and Init cannot be set a the same time. Please either use storage or init but not both.");if(!Array.isArray(e))throw new V1("Wrong code parameter type, expected an array",e);let l;if(void 0!==i){const t=e.find((e=>"prim"in e&&"storage"===e.prim));if(void 0===(null===t||void 0===t?void 0:t.args))throw new V1("The storage section is missing from the script",e);l=new SX(t.args[0]).Encode(i)}else{if(void 0===t||"object"!==typeof t)throw new q1("Wrong init parameter type, expected JSON Michelson",t);l=t}const u={code:e,storage:l};if(isNaN(Number(r)))throw new X1(`Invalid Balance "${r}", cannot be converted to a number`);const d={kind:CW.ORIGINATION,fee:o,gas_limit:a,storage_limit:s,balance:c?r.toString():Pc("tz","mutez",r).toString(),script:u};return n&&(d.delegate=n),d})),Q1=({to:e,amount:t,parameter:r,fee:n=R1,gasLimit:i=E1,storageLimit:o=N1,mutez:a=!1})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.TRANSACTION,fee:n,gas_limit:i,storage_limit:o,amount:a?t.toString():Pc("tz","mutez",t).toString(),destination:e,parameters:r}})),e2=({delegate:e,source:t,fee:r=C1,gasLimit:n=S1,storageLimit:i=M1})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.DELEGATION,source:t,fee:r,gas_limit:n,storage_limit:i,delegate:e}})),t2=({fee:e=I1,gasLimit:t,storageLimit:r=D1},n,i)=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.REVEAL,fee:e,public_key:i,source:n,gas_limit:null!==t&&void 0!==t?t:F1(n),storage_limit:r}})),r2=({value:e,source:t,fee:r,gasLimit:n,storageLimit:i})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.REGISTER_GLOBAL_CONSTANT,value:e,fee:r,gas_limit:n,storage_limit:i,source:t}})),n2=({ticketContents:e,ticketTy:t,ticketTicketer:r,ticketAmount:n,destination:i,entrypoint:o,source:a,fee:s,gasLimit:c,storageLimit:l})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.TRANSFER_TICKET,fee:s,gas_limit:c,storage_limit:l,source:a,ticket_contents:e,ticket_ty:t,ticket_ticketer:r,ticket_amount:n,destination:i,entrypoint:o}})),i2=({source:e,fee:t,gasLimit:r,storageLimit:n,amount:i,destination:o})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.INCREASE_PAID_STORAGE,source:e,fee:t,gas_limit:r,storage_limit:n,amount:i,destination:o}})),o2=({source:e,fee:t,gasLimit:r,storageLimit:n,message:i})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.SMART_ROLLUP_ADD_MESSAGES,source:e,fee:t,gas_limit:r,storage_limit:n,message:i}})),a2=({source:e,fee:t,gasLimit:r,storageLimit:n,pvmKind:i,kernel:o,parametersType:a})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.SMART_ROLLUP_ORIGINATE,source:e,fee:t,gas_limit:r,storage_limit:n,pvm_kind:i,kernel:o,parameters_ty:a}})),s2=(e,t)=>Object.assign(Object.assign({},e),{kind:t}),c2=(e,t)=>{if(Array.isArray(e)){const r=e.find((e=>e.kind===t));if(r&&l2(r,t))return r}},l2=(e,t)=>e.kind===t,u2=e=>-1!==["transaction","delegation","origination","reveal","register_global_constant","increase_paid_storage","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),d2=e=>-1!==["transaction","delegation","origination","register_global_constant","increase_paid_storage","transfer_ticket","update_consensus_key","smart_rollup_add_messages","smart_rollup_originate"].indexOf(e.kind),h2=e=>"metadata"in e,f2=e=>h2(e)&&"operation_result"in e.metadata;class p2 extends ds{constructor(e,t,r){super(),this.errors=e,this.errorDetails=t,this.operationsWithResults=r,this.name="TezosOperationError",this.lastError=e[e.length-1],this.message=`(${this.kind}) ${this.id}`,(e=>"with"in e)(this.lastError)&&(this.lastError.with.string?this.message=this.lastError.with.string:this.lastError.with.int?this.message=this.lastError.with.int:this.message=JSON.stringify(this.lastError.with))}get id(){return this.lastError.id}get kind(){return this.lastError.kind}}class m2 extends Error{constructor(e){super(),this.result=e,this.name="TezosPreapplyFailureError",this.message="Preapply returned an unexpected result"}}const g2=e=>{const t=Array.isArray(e)?e:[e],r=[];for(let n=0;nr.push(e.result))))}return r},v2=(e,t="failed")=>{const r=Array.isArray(e)?e:[e];let n=[];for(let o=0;onew hG(e).pipe(fY({each:1e3*e.timeout,with:()=>fG((()=>new x2("Confirmation polling timed out")))})))),dY((()=>EG((()=>_1(this.context.stream.subscribeBlock("head")))).pipe(dY((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return PG(n+1,e.header.level-n-1).pipe(mY((e=>this.context.readProvider.getBlock(e))),gY(e))})),vY((e=>this.lastHead=e))))),wY({refCount:!0})),this.confirmed$=this.currentHead$.pipe(WG((e=>{for(let t=3;t>=0;t--)e.operations[t].forEach((t=>{t.hash===this.hash&&(this._foundAt=e.header.level)}));if(e.header.level-this._foundAt>=0)return this._foundAt})),xY((e=>void 0!==e)),kY(),wY()),this._foundAt=Number.POSITIVE_INFINITY,_c(this.hash)!==ac.VALID)throw new Ps(this.hash);this.confirmed$.pipe(kY(),EY((()=>UG(AG)))).subscribe()}get revealOperation(){return Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind))}get revealStatus(){return this.revealOperation?this.revealOperation.metadata.operation_result.status:"unknown"}get status(){return this.results.map((e=>f2(e)?e.metadata.operation_result.status:"unknown"))[0]||"unknown"}confirmation(e,t){return g1(this,void 0,void 0,(function*(){if("undefined"!==typeof e&&e<1)throw new w2(e);const{defaultConfirmationCount:r,confirmationPollingTimeoutSecond:n}=this.context.config;this._pollingConfig$.next({timeout:t||n});const i=void 0!==e?e:r;return new Promise(((e,t)=>{this.confirmed$.pipe(dY((()=>this.currentHead$)),xY((e=>e.header.level-this._foundAt>=i-1)),kY()).subscribe((t=>{e(this._foundAt+(i-1))}),t)}))}))}}class k2 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}getOriginatedContractAddresses(){const e=this.results.filter((e=>"origination"===e.kind));let t=[];for(const r of e)r.metadata.operation_result.originated_contracts&&(t=[...t,...r.metadata.operation_result.originated_contracts]);return t}get status(){return this.results.filter((e=>-1!==J2.indexOf(e.kind))).map((e=>{if(f2(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown"}get fee(){return this.sumProp(this.params,"fee")}get gasLimit(){return this.sumProp(this.params,"gas_limit")}get storageLimit(){return this.sumProp(this.params,"storage_limit")}get consumedGas(){return Xs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Xs.ROUND_UP}),new Xs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(g2({contents:this.results}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(g2({contents:this.results}),"paid_storage_size_diff"))}get errors(){return v2({contents:this.results})}}class E2{get rpc(){return this.context.rpc}get signer(){return this.context.signer}constructor(e){this.context=e}forge({opOb:{branch:e,contents:t,protocol:r},counter:n}){return g1(this,void 0,void 0,(function*(){return{opbytes:yield this.context.forger.forge({branch:e,contents:t}),opOb:{branch:e,contents:t,protocol:r},counter:n}}))}estimate(e,t){var{fee:r,gasLimit:n,storageLimit:i}=e,o=m1(e,["fee","gasLimit","storageLimit"]);return g1(this,void 0,void 0,(function*(){let e=r,a=n,s=i;if(e&&e%1!==0)throw new b2(`Fee value must not be a decimal: ${e}`);if(a&&a%1!==0)throw new b2(`Gas Limit value must not be a decimal: ${a}`);if(s&&s%1!==0)throw new b2(`Storage Limit value must not be a decimal: ${s}`);if(void 0===r||void 0===n||void 0===i){const c=yield t(Object.assign({fee:r,gasLimit:n,storageLimit:i},o));null!==e&&void 0!==e||(e=c.suggestedFeeMutez),null!==a&&void 0!==a||(a=c.gasLimit),null!==s&&void 0!==s||(s=c.storageLimit)}return{fee:e,gasLimit:a,storageLimit:s}}))}getRPCOp(e){return g1(this,void 0,void 0,(function*(){switch(e.kind){case CW.TRANSACTION:return Q1(Object.assign({},e));case CW.ORIGINATION:return J1(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case CW.DELEGATION:return e2(Object.assign({},e));case CW.REGISTER_GLOBAL_CONSTANT:return r2(Object.assign({},e));case CW.INCREASE_PAID_STORAGE:return i2(Object.assign({},e));case CW.TRANSFER_TICKET:return n2(Object.assign({},e));case CW.SMART_ROLLUP_ADD_MESSAGES:return o2(Object.assign({},e));case CW.SMART_ROLLUP_ORIGINATE:return a2(Object.assign({},e));default:throw new Os(e.kind)}}))}runOperation(e){return g1(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.runOperation(e),op:e,context:this.context.clone()}}))}simulate(e){return g1(this,void 0,void 0,(function*(){return{opResponse:yield this.rpc.simulateOperation(e),op:e,context:this.context.clone()}}))}isRevealOpNeeded(e,t){return g1(this,void 0,void 0,(function*(){return!(!(yield this.isAccountRevealRequired(t))||!this.isRevealRequiredForOpType(e))}))}isAccountRevealRequired(e){return g1(this,void 0,void 0,(function*(){return!(yield this.context.readProvider.isAccountRevealed(e,"head"))}))}isRevealRequiredForOpType(e){let t=!1;for(const r of e)d2(r)&&(t=!0);return t}signAndInject(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.sign(e.opbytes,new Uint8Array([3]));e.opbytes=t.sbytes,e.opOb.signature=t.prefixSig;const r=[],n=yield this.rpc.preapplyOperations([e.opOb]);if(!Array.isArray(n))throw new m2(n);for(let e=0;eg1(this,void 0,void 0,(function*(){return e}))));case CW.ORIGINATION:return this.walletProvider.mapOriginateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return this.context.parser.prepareCodeOrigination(Object.assign({},e))}))));case CW.DELEGATION:return this.walletProvider.mapDelegateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return e}))));case CW.INCREASE_PAID_STORAGE:return this.walletProvider.mapIncreasePaidStorageWalletParams((()=>g1(this,void 0,void 0,(function*(){return e}))));default:throw new Os(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case CW.TRANSACTION:this.withTransfer(t);break;case CW.ORIGINATION:this.withOrigination(t);break;case CW.DELEGATION:this.withDelegation(t);break;case CW.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;default:throw new Os(JSON.stringify(t.kind))}return this}send(){return g1(this,void 0,void 0,(function*(){const e=[];for(const r of this.operations)e.push(yield this.mapOperation(r));const t=yield this.walletProvider.sendOperations(e);return this.context.operationFactory.createBatchOperation(t)}))}}class P2{constructor(e){this.context=e,this.walletCommand=e=>({send:e})}get walletProvider(){return this.context.walletProvider}pkh({forceRefetch:e}={}){return g1(this,void 0,void 0,(function*(){return this._pkh&&!e||(this._pkh=yield this.walletProvider.getPKH()),this._pkh}))}pk({forceRefetch:e}={}){return g1(this,void 0,void 0,(function*(){return this._pk&&!e||(this._pk=yield this.walletProvider.getPK()),this._pk}))}originate(e){return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapOriginateParamsToWalletParams((()=>this.context.parser.prepareCodeOrigination(Object.assign({},e)))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createOriginationOperation(r)}))))}setDelegate(e){var t;const r=gc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&r!==ac.VALID)throw new ms(e.delegate,Sc(r));return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createDelegationOperation(r)}))))}signFailingNoop(e){return g1(this,void 0,void 0,(function*(){const t={kind:CW.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]});return{signature:yield this.walletProvider.sign(n,Uint8Array.from([3])),bytes:n,signedContent:{branch:r,contents:[{kind:CW.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}registerDelegate(){return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const e=yield this.walletProvider.mapDelegateParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return{delegate:yield this.pkh()}})))),t=yield this.walletProvider.sendOperations([e]);return this.context.operationFactory.createDelegationOperation(t)}))))}transfer(e){const t=gc(e.to);if(t!==ac.VALID)throw new ms(e.to,Sc(t));return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapTransferParamsToWalletParams((()=>g1(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createTransactionOperation(r)}))))}increasePaidStorage(e){const t=gc(e.destination);if(t!==ac.VALID)throw new ms(e.destination,Sc(t));return this.walletCommand((()=>g1(this,void 0,void 0,(function*(){const t=yield this.walletProvider.mapIncreasePaidStorageWalletParams((()=>g1(this,void 0,void 0,(function*(){return e})))),r=yield this.walletProvider.sendOperations([t]);return this.context.operationFactory.createIncreasePaidStorageOperation(r)}))))}batch(e){const t=new A2(this.walletProvider,this.context);return Array.isArray(e)&&t.with(e),t}at(e,t=(e=>e)){return g1(this,void 0,void 0,(function*(){const r=yc(e);if(r!==ac.VALID)throw new ks(e,Sc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new U2(e,o,this,this.context.contract,a,n,i);return t(s,this.context)}))}getPK(){return g1(this,void 0,void 0,(function*(){return yield this.pk()}))}}class O2 extends hs{constructor(){super(),this.name="ConfirmationUndefinedError",this.message="Default confirmation count can not be undefined"}}class T2 extends ps{constructor(e){super(),this.message=e,this.name="ObservableError"}}class C2{operationResults(){return g1(this,void 0,void 0,(function*(){return this._operationResult.pipe(kY()).toPromise()}))}receipt(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new T2("Unable to get operation results");return((e,{ALLOCATION_BURN:t,ORIGINATION_BURN:r}={ALLOCATION_BURN:257,ORIGINATION_BURN:257})=>{Xs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Xs.ROUND_UP});const n=g2({contents:e});let i=new Xs(0),o=new Xs(0),a=new Xs(0),s=new Xs(0),c=new Xs(0),l=new Xs(0);return n.forEach((e=>{a=a.plus(e.fee||0),s=s.plus(Array.isArray(e.originated_contracts)?e.originated_contracts.length*r:0),c=c.plus("allocated_destination_contract"in e?t:0),i=i.plus(e.consumed_milligas||0),l=l.plus("paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0)})),o=o.plus(c).plus(s).plus(l),{totalFee:a,totalMilliGas:i,totalGas:i.dividedBy(1e3),totalStorage:o,totalAllocationBurn:c,totalOriginationBurn:s,totalPaidStorageDiff:l,totalStorageBurn:new Xs(o.multipliedBy(250))}})(e)}))}constructor(e,t,r){if(this.opHash=e,this.context=t,this._newHead$=r,this._operationResult=new dG(1),this._includedInBlock=new dG(1),this._included=!1,this.newHead$=this._newHead$.pipe(dY((e=>{var t,r;const n=null!==(r=null===(t=this.lastHead)||void 0===t?void 0:t.header.level)&&void 0!==r?r:e.header.level-1;return PG(n+1,e.header.level-n-1).pipe(mY((e=>this.context.readProvider.getBlock(e))),gY(e))})),vY((e=>this.lastHead=e)),yY({connector:()=>new dG(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),this.confirmed$=this.newHead$.pipe(WG((e=>{for(const t of e.operations)for(const r of t)if(r.hash===this.opHash)return this._included=!0,this._includedInBlock.next(e),this._operationResult.next(r.contents),e})),xY((e=>"undefined"!==typeof e)),kY(),yY({connector:()=>new dG(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1})),_c(this.opHash)!==ac.VALID)throw new Ps(this.opHash);this.confirmed$.pipe(kY(),EY((()=>UG(void 0)))).subscribe()}getCurrentConfirmation(){return g1(this,void 0,void 0,(function*(){return this._included?ZG([this._includedInBlock,FG(this.context.readProvider.getBlock("head"))]).pipe(WG((([e,t])=>t.header.level-e.header.level+1)),kY()).toPromise():0}))}isInCurrentBranch(e="head"){return g1(this,void 0,void 0,(function*(){if(!this._included)return!0;const t=yield this.context.readProvider.getBlockLevel(e),r=yield this._includedInBlock.pipe(kY()).toPromise();if(!r)throw new T2("Inclusion block is undefined");const n=t-r.header.level;if(n<=0)return!0;const i=Math.min(r.header.level+n,r.header.level+60);return new Set(yield this.context.readProvider.getLiveBlocks(i)).has(r.hash)}))}confirmationObservable(e){if("undefined"!==typeof e&&e<1)throw new w2(e);const{defaultConfirmationCount:t}=this.context.config,r=void 0!==e?e:t;if(void 0===r)throw new O2;return ZG([this._includedInBlock,this.newHead$]).pipe(AY((([,e],[,t])=>e.hash===t.hash)),WG((([e,t])=>({block:t,expectedConfirmation:r,currentConfirmation:t.header.level-e.header.level+1,completed:t.header.level-e.header.level>=r-1,isInCurrentBranch:()=>this.isInCurrentBranch(t.hash)}))),(n=({completed:e})=>!e,void 0===(i=!0)&&(i=!1),IG((function(e,t){var r=0;e.subscribe(MG(t,(function(e){var o=n(e,r++);(o||i)&&t.next(e),!o&&t.complete()})))}))));var n,i}confirmation(e){return this.confirmationObservable(e).toPromise()}}class j2 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new T2("operationResult returned undefined");return e.find((e=>e.kind===CW.REVEAL))}))}transactionOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(!e)throw new T2("operationResult returned undefined");return e.find((e=>e.kind===CW.TRANSACTION))}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.transactionOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class R2 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}originationOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return c2(e,CW.ORIGINATION);throw new T2("Unable to fetch operation result")}))}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return c2(e,CW.REVEAL);throw new T2("Unable to fetch operation result")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.originationOperation();return e?e.metadata.operation_result.status:"unknown"}))}contract(){return g1(this,void 0,void 0,(function*(){const e=yield this.originationOperation(),t=((null===e||void 0===e?void 0:e.metadata.operation_result.originated_contracts)||[])[0];return this.context.wallet.at(t)}))}}class I2 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.REVEAL));throw new T2("Unable to fetch operation result")}))}delegationOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.DELEGATION));throw new T2("Unable to fetch operation result")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.delegationOperation();return e?e.metadata.operation_result.status:"unknown"}))}}class M2{constructor(e){this.context=e}getPKH(){return g1(this,void 0,void 0,(function*(){return this.context.signer.publicKeyHash()}))}getPK(){return g1(this,void 0,void 0,(function*(){return this.context.signer.publicKey()}))}mapTransferParamsToWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.TRANSACTION)}))}mapOriginateParamsToWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.ORIGINATION)}))}mapDelegateParamsToWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.DELEGATION)}))}mapIncreasePaidStorageWalletParams(e){return g1(this,void 0,void 0,(function*(){return s2(yield e(),CW.INCREASE_PAID_STORAGE)}))}sendOperations(e){return g1(this,void 0,void 0,(function*(){return(yield this.context.batch.batch(e).send()).hash}))}sign(e,t){return g1(this,void 0,void 0,(function*(){const{prefixSig:r}=yield this.context.signer.sign(e,t);return r}))}}class L2{constructor(e,t,r,n,i="unit",o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}getSignature(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}send(e={}){return this.provider instanceof P2?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:B2,value:this.isAnonymous?this.parameterSchema.EncodeObject({[this.name]:this.args}):this.parameterSchema.EncodeObject(this.args)}}}}class N2{constructor(e,t,r,n,i,o=!0,a=!1){this.provider=e,this.address=t,this.parameterSchema=r,this.name=n,this.args=i,this.isMultipleEntrypoint=o,this.isAnonymous=a}validateArgs(e,t,r){const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new $1(r,n,e)}get schema(){return this.isAnonymous?this.parameterSchema.ExtractSchema()[this.name]:this.parameterSchema.ExtractSchema()}getSignature(){if(!this.isAnonymous){const e=this.parameterSchema.ExtractSignatures();return 1==e.length?e[0]:e}{const e=this.parameterSchema.ExtractSignatures().find((e=>e[0]===this.name));if(e)return e.shift(),e}}send(e={}){return this.provider instanceof P2?this.provider.transfer(this.toTransferParams(e)).send():this.provider.transfer(this.toTransferParams(e))}toTransferParams({fee:e,gasLimit:t,storageLimit:r,source:n,amount:i=0,mutez:o=!1}={}){return{to:this.address,amount:i,fee:e,mutez:o,source:n,gasLimit:t,storageLimit:r,parameter:{entrypoint:this.isMultipleEntrypoint?this.name:B2,value:this.isAnonymous?this.parameterSchema.Encode(this.name,...this.args):this.parameterSchema.Encode(...this.args)}}}}class D2{constructor(e,t,r,n,i,o="Unit"){this._rpc=e,this._readProvider=t,this._contractAddress=r,this._smartContractViewSchema=n,this._contractStorageType=i,this._args=o}getSignature(){return{parameter:this._smartContractViewSchema.extractArgsSchema(),result:this._smartContractViewSchema.extractResultSchema()}}executeView(e){return g1(this,void 0,void 0,(function*(){this.verifyContextExecution(e);const t=yield this._readProvider.getChainId(),r=this.transformArgsToMichelson(),n={contract:this._contractAddress,view:this._smartContractViewSchema.viewName,input:r,chain_id:t,source:e.viewCaller};return e.source&&(n.payer=e.source),this.executeViewAndDecodeResult(n)}))}verifyContextExecution(e){if(e.source&&gc(e.source)!==ac.VALID)throw new G1(`The source account who initialized the view execution is invalid: ${e.source}.`);if(!e.viewCaller||gc(e.viewCaller)!==ac.VALID)throw new G1(`The contract which is the caller of view is invalid: ${e.viewCaller}.`)}transformArgsToMichelson(){try{return this._smartContractViewSchema.encodeViewArgs(this._args)}catch(e){throw new xs(this._smartContractViewSchema.viewName,this.getSignature(),this._args,e)}}adaptViewCodeToContext(e,t,r){const n={BALANCE:[{prim:"PUSH",args:[{prim:"mutez"},{int:r}]}],SENDER:[{prim:"PUSH",args:[{prim:"address"},{string:t}]}],SELF_ADDRESS:[{prim:"PUSH",args:[{prim:"address"},{string:this._contractAddress}]}],AMOUNT:[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]}]};return e.forEach(((i,o)=>{i.prim in n&&(e[o]=Object(n)[i.prim]),i.args&&0!==i.args.length?this.adaptViewCodeToContext(i.args,t,r):Array.isArray(i)&&this.adaptViewCodeToContext(i,t,r)})),e}executeViewAndDecodeResult(e){return g1(this,void 0,void 0,(function*(){let t;try{t=(yield this._rpc.runScriptView(e)).data}catch(r){const e=(e=>{if(W1(e.body)){const t=JSON.parse(e.body);if(Array.isArray(t)&&"with"in t[t.length-1])return t[t.length-1].with}})(r);throw e?new K1(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(e)}`,this._smartContractViewSchema.viewName,e,r):r}return this._smartContractViewSchema.decodeViewResult(t)}))}}class z2{constructor(e,t){this.provider=e,this.contractAddress=t}createContractMethodFlatParams(e,t,r,n=!0,i=!1){return new N2(this.provider,this.contractAddress,e,t,r,n,i)}createContractMethodObjectParam(e,t,r,n=!0,i=!1){return new L2(this.provider,this.contractAddress,e,t,r,n,i)}createContractViewObjectParam(e,t,r,n,i){return new D2(e,t,this.contractAddress,r,n,i)}}const B2="default";class F2{constructor(e,t,r,n,i,o,a){this.currentContract=e,this.name=t,this.callbackParametersSchema=r,this.parameterSchema=n,this.args=i,this.rpc=o,this.readProvider=a}read(e){return g1(this,void 0,void 0,(function*(){const t=vc(null!==e&&void 0!==e?e:"");if(yc(null!==e&&void 0!==e?e:"")==ac.VALID)throw new Ts("Since version 12, the lambda view no longer depends on a lambda contract. The read method no longer accepts a contract address as a parameter.");if(e&&t!==ac.VALID)throw new Es(e,Sc(t));const r=this.parameterSchema.Encode(...this.args),n=yield this.rpc.runView({contract:this.currentContract.address,entrypoint:this.name,input:r,chain_id:e||(yield this.readProvider.getChainId())});return this.callbackParametersSchema.Execute(n.data)}))}}class U2{constructor(e,t,r,n,i,o,a){this.address=e,this.script=t,this.storageProvider=n,this.entrypoints=i,this.rpc=o,this.readProvider=a,this.methods={},this.methodsObject={},this.views={},this.contractViews={},this.contractMethodFactory=new z2(r,e),this.schema=SX.fromRPCResponse({script:this.script}),this.parameterSchema=kX.fromRPCResponse({script:this.script}),this.viewSchema=EX.fromRPCResponse({script:this.script}),0!==this.viewSchema.length&&this._initializeOnChainViews(this,o,this.readProvider,this.viewSchema),this.eventSchema=AX.fromRPCResponse({script:this.script}),this._initializeMethods(this,this.entrypoints.entrypoints,this.rpc,this.readProvider)}_initializeMethods(e,t,r,n){const i=this.parameterSchema,o=Object.keys(t);if(i.isMultipleEntryPoint){o.forEach((i=>{const o=new kX(t[i]);if(this.methods[i]=function(...t){return e.contractMethodFactory.createContractMethodFlatParams(o,i,t)},this.methodsObject[i]=function(t){return e.contractMethodFactory.createContractMethodObjectParam(o,i,t)},(e=>{let t=!1;if("prim"in e&&"pair"===e.prim&&e.args){const r=e.args[e.args.length-1];"prim"in r&&"contract"===r.prim&&(t=!0)}return t})(t[i])){const o=function(...o){const a=t[i].args[0],s=new kX(a),c=t[i].args[1].args[0],l=new kX(c);return((e,t,r)=>{const n=t.ExtractSignatures();if(!n.find((t=>t.length===e.length)))throw new $1(r,n,e)})(o,s,i),new F2(e,i,l,s,o,r,n)};this.views[i]=o}}));const a=Object.keys(i.ExtractSchema()).filter((e=>-1===Object.keys(t).indexOf(e)));a.forEach((t=>{this.methods[t]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(i,t,r,!1,!0)},this.methodsObject[t]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(i,t,r,!1,!0)}}))}else{const t=this.parameterSchema;this.methods[B2]=function(...r){return e.contractMethodFactory.createContractMethodFlatParams(t,B2,r,!1)},this.methodsObject[B2]=function(r){return e.contractMethodFactory.createContractMethodObjectParam(t,B2,r,!1)}}}_initializeOnChainViews(e,t,r,n){const i=this.schema.val;n.forEach((n=>{this.contractViews[n.viewName]=function(o){return e.contractMethodFactory.createContractViewObjectParam(t,r,n,i,o)}}))}storage(){return this.storageProvider.getStorage(this.address,this.schema)}bigMap(e){return this.storageProvider.getBigMapKey(this.address,e,this.schema)}}const $2=e=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"SOME"},{prim:"SET_DELEGATE"},{prim:"CONS"}],H2=()=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"NONE",args:[{prim:"key_hash"}]},{prim:"SET_DELEGATE"},{prim:"CONS"}],V2=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"key_hash"},{string:e}]},{prim:"IMPLICIT_ACCOUNT"},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],q2=(e,t)=>[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]},{prim:"PUSH",args:[{prim:"address"},{string:e}]},{prim:"CONTRACT",args:[{prim:"unit"}]},{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:`${t}`}]},{prim:"UNIT"},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}];class K2{constructor(e,t){this.id=e,this.provider=t}getSaplingDiff(e){return g1(this,void 0,void 0,(function*(){return this.provider.getSaplingDiffByID(this.id.toString(),e)}))}getId(){return this.id.toString()}}class W2{constructor(e,t,r){this.id=e,this.schema=t,this.provider=r}get(e,t){return g1(this,void 0,void 0,(function*(){try{return yield this.provider.getBigMapKeyByID(this.id.toString(),e,this.schema,t)}catch(Mde){if(Mde instanceof dW&&Mde.status===sW.NOT_FOUND)return;throw Mde}}))}getMultipleValues(e,t,r=5){return g1(this,void 0,void 0,(function*(){return this.provider.getBigMapKeysByID(this.id.toString(),e,this.schema,t,r)}))}toJSON(){return this.id.toString()}toString(){return this.id.toString()}}const G2=e=>({big_map:(t,r)=>{if(t&&"int"in t&&void 0!==t.int){const n=new SX(r);return new W2(new Xs(t.int),n,e)}return{}},sapling_state:t=>t&&"int"in t&&void 0!==t.int?new K2(new Xs(t.int),e):{}});var Y2;const Z2=(e,t)=>{var r,n,i;return{fee:null!==(r=e.fee)&&void 0!==r?r:t.fee,gasLimit:null!==(n=e.gasLimit)&&void 0!==n?n:t.gasLimit,storageLimit:null!==(i=e.storageLimit)&&void 0!==i?i:t.storageLimit}};class X2 extends E2{constructor(e){super(e),this.context=e,Y2.set(this,void 0),y1(this,Y2,{},"f")}getBlockHash(e){return g1(this,void 0,void 0,(function*(){return this.context.readProvider.getBlockHash(null!==e&&void 0!==e?e:"head~2")}))}getProtocolHash(){return g1(this,void 0,void 0,(function*(){return this.context.readProvider.getNextProtocol("head")}))}getHeadCounter(e){var t;return g1(this,void 0,void 0,(function*(){return null!==(t=this.context.readProvider.getCounter(e,"head"))&&void 0!==t?t:"0"}))}adjustGasForBatchOperation(e,t,r){return Xs.min(t,e.div(r+1))}getAccountLimits(e,t,r){return g1(this,void 0,void 0,(function*(){const n=yield this.context.readProvider.getBalance(e,"head"),{hard_gas_limit_per_operation:i,hard_gas_limit_per_block:o,hard_storage_limit_per_operation:a,cost_per_byte:s}=t;return{fee:0,gasLimit:r?Math.floor(this.adjustGasForBatchOperation(o,i,r).toNumber()):i.toNumber(),storageLimit:Math.floor(Xs.min(n.dividedBy(s),a).toNumber())}}))}getFee(e,t,r){(!v1(this,Y2,"f")[t]||v1(this,Y2,"f")[t]{switch(e.kind){case CW.ACTIVATION:case CW.DRAIN_DELEGATE:return Object.assign({},e);case CW.ORIGINATION:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{balance:"undefined"!==typeof e.balance?`${e.balance}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.TRANSACTION:{const i=Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:"undefined"!==typeof e.amount?`${e.amount}`:"0"}),this.getSource(e,r,n)),this.getFee(e,r,t));if(i.source.toLowerCase().startsWith("kt1"))throw new Ts(`KT1 addresses are not supported as source since ${z1.PsBabyM1}`);return i}case CW.REVEAL:case CW.DELEGATION:case CW.REGISTER_GLOBAL_CONSTANT:case CW.UPDATE_CONSENSUS_KEY:case CW.SMART_ROLLUP_ADD_MESSAGES:case CW.SMART_ROLLUP_ORIGINATE:return Object.assign(Object.assign(Object.assign({},e),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.TRANSFER_TICKET:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{ticket_amount:`${e.ticket_amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.INCREASE_PAID_STORAGE:return Object.assign(Object.assign(Object.assign(Object.assign({},e),{amount:`${e.amount}`}),this.getSource(e,r,n)),this.getFee(e,r,t));case CW.BALLOT:case CW.PROPOSALS:if(void 0===i)throw new _2("Failed to get the current voting period index");return Object.assign(Object.assign({},e),{period:null===i||void 0===i?void 0:i.voting_period.index});default:throw new Os(e.kind)}}))}activate({pkh:e,secret:t}){return g1(this,void 0,void 0,(function*(){const r=yield(({pkh:e,secret:t})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.ACTIVATION,pkh:e,secret:t}})))({pkh:e,secret:t}),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();y1(this,Y2,{},"f");const a=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:i,contents:this.constructOpContents(n,a,e),protocol:o},counter:a}}))}reveal({fee:e,gasLimit:t,storageLimit:r}){return g1(this,void 0,void 0,(function*(){const{pkh:n,publicKey:i}=yield this.getKeys();if(!i)throw new js(n);const o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(n,o),s=Z2({fee:e,storageLimit:r,gasLimit:t},a),c=yield t2({fee:s.fee,gasLimit:s.gasLimit,storageLimit:s.storageLimit},n,i),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(n),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,n),protocol:d},counter:h}}))}originate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield J1(yield this.context.parser.prepareCodeOrigination(Object.assign(Object.assign({},o),Z2({fee:r,storageLimit:n,gasLimit:i},s)))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();y1(this,Y2,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}transaction(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield Q1(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}delegation(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield e2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}registerDelegate({fee:e,storageLimit:t,gasLimit:r},n){return g1(this,void 0,void 0,(function*(){const{pkh:i}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(i,o),s=Z2({fee:e,storageLimit:t,gasLimit:r},a),c=yield(({fee:e=C1,gasLimit:t=S1,storageLimit:r=M1},n)=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.DELEGATION,fee:e,gas_limit:t,storage_limit:r,delegate:n}})))({fee:s.fee,storageLimit:s.storageLimit,gasLimit:s.gasLimit},i),l=yield this.addRevealOperationIfNeeded(c,i),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();y1(this,Y2,{},"f");const f=parseInt(yield this.getHeadCounter(i),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,i,n),protocol:h},counter:f}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield r2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}updateConsensusKey(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),a=yield this.context.readProvider.getProtocolConstants("head"),s=yield this.getAccountLimits(e,a),c=yield(({source:e,fee:t,gasLimit:r,storageLimit:n,pk:i})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.UPDATE_CONSENSUS_KEY,source:e,fee:t,gas_limit:r,storage_limit:n,pk:i}})))(Object.assign(Object.assign({},o),Z2({fee:r,storageLimit:n,gasLimit:i},s))),l=yield this.addRevealOperationIfNeeded(c,e),u=this.convertIntoArray(l),d=yield this.getBlockHash(),h=yield this.getProtocolHash();y1(this,Y2,{},"f");const f=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:d,contents:this.constructOpContents(u,f,e,t),protocol:h},counter:f}}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield i2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}ballot(e){return g1(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposal:t,ballot:r})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.BALLOT,source:e,proposal:t,ballot:r}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();y1(this,Y2,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(Mde){throw new _2("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}proposals(e){return g1(this,void 0,void 0,(function*(){const{pkh:t}=yield this.getKeys(),r=yield(({source:e,proposals:t})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.PROPOSALS,source:e,proposals:t}})))(Object.assign({},e)),n=this.convertIntoArray(r),i=yield this.getBlockHash(),o=yield this.getProtocolHash();y1(this,Y2,{},"f");const a=parseInt(yield this.getHeadCounter(t),10);let s;try{s=yield this.rpc.getCurrentPeriod()}catch(Mde){throw new _2("Failed to get the current voting period index")}return{opOb:{branch:i,contents:this.constructOpContents(n,a,t,void 0,s),protocol:o},counter:a}}))}drainDelegate(e,t){return g1(this,void 0,void 0,(function*(){const{pkh:r}=yield this.getKeys(),n=yield(({consensus_key:e,delegate:t,destination:r})=>g1(void 0,void 0,void 0,(function*(){return{kind:CW.DRAIN_DELEGATE,consensus_key:e,delegate:t,destination:r}})))(Object.assign({},e)),i=this.convertIntoArray(n),o=yield this.getBlockHash(),a=yield this.getProtocolHash();y1(this,Y2,{},"f");const s=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:o,contents:this.constructOpContents(i,s,r,t),protocol:a},counter:s}}))}transferTicket(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield n2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupAddMessages(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield o2(Object.assign(Object.assign({},i),Z2({fee:t,storageLimit:r,gasLimit:n},a))),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}smartRollupOriginate(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const{pkh:e}=yield this.getKeys(),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.getAccountLimits(e,o),s=yield a2(Object.assign(Object.assign({},Z2({fee:t,storageLimit:r,gasLimit:n},a)),i)),c=yield this.addRevealOperationIfNeeded(s,e),l=this.convertIntoArray(c),u=yield this.getBlockHash(),d=yield this.getProtocolHash();y1(this,Y2,{},"f");const h=parseInt(yield this.getHeadCounter(e),10);return{opOb:{branch:u,contents:this.constructOpContents(l,h,e,i.source),protocol:d},counter:h}}))}batch(e,t){return g1(this,void 0,void 0,(function*(){const{pkh:r,publicKey:n}=yield this.getKeys(),i=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.getAccountLimits(r,i,e.length),a=yield this.isRevealOpNeeded(e,r),s=[];if(t)for(const d of e)if(u2(d)){const e=t.shift(),r=Z2(d,{fee:e.suggestedFeeMutez,storageLimit:e.storageLimit,gasLimit:e.gasLimit});s.push(yield this.getRPCOp(Object.assign(Object.assign({},d),r)))}else s.push(Object.assign({},d));else for(const t of e)if(u2(t)){const e=Z2(t,o);s.push(yield this.getRPCOp(Object.assign(Object.assign({},t),e)))}else s.push(Object.assign({},t));if(a){if(!n)throw new js(r);s.unshift(yield t2({fee:I1,storageLimit:D1,gasLimit:F1(r)},r,n))}const c=yield this.getBlockHash(),l=yield this.getProtocolHash();y1(this,Y2,{},"f");const u=parseInt(yield this.getHeadCounter(r),10);return{opOb:{branch:c,contents:this.constructOpContents(s,u,r),protocol:l},counter:u}}))}contractCall(e){var t,r,n;return g1(this,void 0,void 0,(function*(){const i=yield this.getBlockHash(),o=yield this.getProtocolHash(),{pkh:a}=yield this.getKeys();y1(this,Y2,{},"f");const s=parseInt(yield this.getHeadCounter(a),10),c=e.toTransferParams(),l=yield this.context.readProvider.getProtocolConstants("head"),u=yield this.getAccountLimits(a,l),d=Z2({fee:c.fee,storageLimit:c.storageLimit,gasLimit:c.gasLimit},u),h={kind:CW.TRANSACTION,fee:null!==(t=c.fee)&&void 0!==t?t:d.fee,gas_limit:null!==(r=c.gasLimit)&&void 0!==r?r:d.gasLimit,storage_limit:null!==(n=c.storageLimit)&&void 0!==n?n:d.storageLimit,amount:String(c.amount),destination:c.to,parameters:c.parameter},f=yield this.addRevealOperationIfNeeded(h,a),p=this.convertIntoArray(f);return{opOb:{branch:i,contents:this.constructOpContents(p,s,a),protocol:o},counter:s}}))}toPreapply(e){return g1(this,void 0,void 0,(function*(){const{opOb:{contents:t,branch:r,protocol:n}}=e,i=this.toForge(e),o=yield this.context.forger.forge(i);return[{contents:t,branch:r,protocol:n,signature:(yield this.context.signer.sign(o,new Uint8Array([3]))).prefixSig}]}))}toForge({opOb:{contents:e,branch:t}}){return{branch:t,contents:e}}}Y2=new WeakMap;const J2=[CW.ACTIVATION,CW.ORIGINATION,CW.TRANSACTION,CW.DELEGATION];class Q2 extends E2{constructor(e,t){super(e),this.estimator=t,this.operations=[],this.prepare=new X2(this.context)}withTransfer(e){const t=gc(e.to);if(e.amount<0)throw new vs(e.amount.toString());if(t!==ac.VALID)throw new ms(e.to,Sc(t));return this.operations.push(Object.assign({kind:CW.TRANSACTION},e)),this}withTransferTicket(e){const t=gc(e.destination);if(t!==ac.VALID)throw new ms(e.destination,Sc(t));return this.operations.push(Object.assign({kind:CW.TRANSFER_TICKET},e)),this}withContractCall(e,t={}){return this.withTransfer(e.toTransferParams(t))}withDelegation(e){var t;const r=gc(e.source);if(e.source&&r!==ac.VALID)throw new ms(e.source,Sc(r));const n=gc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==ac.VALID)throw new ms(e.delegate,Sc(n));return this.operations.push(Object.assign({kind:CW.DELEGATION},e)),this}withActivation({pkh:e,secret:t}){const r=bc(e);if(r!==ac.VALID)throw new As(e,Sc(r));return this.operations.push({kind:CW.ACTIVATION,pkh:e,secret:t}),this}withOrigination(e){return this.operations.push(Object.assign({kind:CW.ORIGINATION},e)),this}withRegisterGlobalConstant(e){return this.operations.push(Object.assign({kind:CW.REGISTER_GLOBAL_CONSTANT},e)),this}withIncreasePaidStorage(e){return this.operations.push(Object.assign({kind:CW.INCREASE_PAID_STORAGE},e)),this}withSmartRollupAddMessages(e){return this.operations.push(Object.assign({kind:CW.SMART_ROLLUP_ADD_MESSAGES},e)),this}withSmartRollupOriginate(e){return this.operations.push(Object.assign({kind:CW.SMART_ROLLUP_ORIGINATE},e)),this}getRPCOp(e){return g1(this,void 0,void 0,(function*(){switch(e.kind){case CW.TRANSACTION:return Q1(Object.assign({},e));case CW.ORIGINATION:return J1(yield this.context.parser.prepareCodeOrigination(Object.assign({},e)));case CW.DELEGATION:return e2(Object.assign({},e));case CW.REGISTER_GLOBAL_CONSTANT:return r2(Object.assign({},e));case CW.INCREASE_PAID_STORAGE:return i2(Object.assign({},e));case CW.TRANSFER_TICKET:return n2(Object.assign({},e));case CW.SMART_ROLLUP_ADD_MESSAGES:return o2(Object.assign({},e));case CW.SMART_ROLLUP_ORIGINATE:return a2(Object.assign({},e));default:throw new Os(JSON.stringify(e.kind))}}))}with(e){for(const t of e)switch(t.kind){case CW.TRANSACTION:this.withTransfer(t);break;case CW.ORIGINATION:this.withOrigination(t);break;case CW.DELEGATION:this.withDelegation(t);break;case CW.ACTIVATION:this.withActivation(t);break;case CW.REGISTER_GLOBAL_CONSTANT:this.withRegisterGlobalConstant(t);break;case CW.INCREASE_PAID_STORAGE:this.withIncreasePaidStorage(t);break;case CW.TRANSFER_TICKET:this.withTransferTicket(t);break;case CW.SMART_ROLLUP_ADD_MESSAGES:this.withSmartRollupAddMessages(t);break;case CW.SMART_ROLLUP_ORIGINATE:this.withSmartRollupOriginate(t);break;default:throw new Os(JSON.stringify(t.kind))}return this}send(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=e&&e.source||t,n=yield this.estimator.batch(this.operations);n.length!==this.operations.length&&n.shift();const i=yield this.prepare.batch(this.operations,n),o=yield this.forge(i),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new k2(a,i.opOb.contents,r,c,l,s)}))}}class e5{constructor(e,t){this.context=e,this.estimator=t}batch(e){const t=new Q2(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class t5 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t,this.getOriginatedContractAddresses=()=>g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e){const t=e.filter((e=>"origination"===e.kind));let r=[];for(const e of t)e.metadata.operation_result.originated_contracts&&(r=[...r,...e.metadata.operation_result.originated_contracts]);return r}throw new T2("Unable to fetch operation results")}))}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.REVEAL));throw new T2("Unable to fetch operation results")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.operationResults();if(e)return e.filter((e=>-1!==J2.indexOf(e.kind))).map((e=>{if(f2(e)){return e.metadata.operation_result.status}return"unknown"}))[0]||"unknown";throw new T2("Unable to fetch operation results")}))}}class r5 extends C2{constructor(e,t,r){super(e,t,r),this.opHash=e,this.context=t}revealOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.REVEAL));throw new T2("Unable to fetch operation result")}))}increasePaidStorageOperation(){return g1(this,void 0,void 0,(function*(){const e=yield this.operationResults();if(e)return e.find((e=>e.kind===CW.INCREASE_PAID_STORAGE));throw new T2("Unable to fetch operation result")}))}status(){return g1(this,void 0,void 0,(function*(){if(!this._included)return"pending";const e=yield this.increasePaidStorageOperation();return e?e.metadata.operation_result.status:"unknown"}))}}const n5=(e,t,r)=>{return e.pipe((n=1e3*t.config.confirmationPollingTimeoutSecond,function(e){return new hG(null).pipe(fY({each:n,with:()=>fG((()=>new x2("Confirmation polling timed out")))}),JG((()=>e)))}),yY({connector:()=>new dG(1),resetOnError:!1,resetOnComplete:!1,resetOnRefCountZero:!1}));var n};class i5{constructor(e){this.context=e,this.sharedHeadObs=EG((()=>_1(this.context.stream.subscribeBlock("head"))))}createNewHeadObservable(){return g1(this,void 0,void 0,(function*(){return n5(this.sharedHeadObs,this.context)}))}createPastBlockWalker(e,t=1){return FG(this.context.readProvider.getBlock(e)).pipe(dY((e=>1===t?UG(e):PG(e.header.level,t-1).pipe(function(){for(var e=[],t=0;tg1(this,void 0,void 0,(function*(){return this.context.readProvider.getBlock("number"===typeof e?e:e.header.level)}))))))))}createHeadObservableFromConfig({blockIdentifier:e}){return g1(this,void 0,void 0,(function*(){const t=[];return e&&t.push(this.createPastBlockWalker(e)),t.push(yield this.createNewHeadObservable()),eY(...t)}))}createOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new C2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createBatchOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new t5(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createTransactionOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new j2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createDelegationOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new I2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createOriginationOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new R2(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}createIncreasePaidStorageOperation(e,t={}){return g1(this,void 0,void 0,(function*(){return new r5(e,this.context.clone(),yield this.createHeadObservableFromConfig(t))}))}}class o5 extends E2{constructor(e){super(e),this.prepare=new X2(this.context)}getBalance(e){return g1(this,void 0,void 0,(function*(){const t=gc(e);if(t!==ac.VALID)throw new ms(e,Sc(t));return this.context.readProvider.getBalance(e,"head")}))}getDelegate(e){return g1(this,void 0,void 0,(function*(){const t=gc(e);if(t!==ac.VALID)throw new ms(e,Sc(t));return this.context.readProvider.getDelegate(e,"head")}))}activate(e,t){return g1(this,void 0,void 0,(function*(){const r=bc(e);if(r!==ac.VALID)throw new As(e,Sc(r));const n=yield this.prepare.activate({pkh:e,secret:t}),i=yield this.forge(n),o=`${i.opbytes}00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`;return new S2(yield this.rpc.injectOperation(o),Object.assign(Object.assign({},i),{opbytes:o}),[],this.context.clone())}))}}const a5=100;class s5{constructor(e,t,r,n,i=100){this._milligasLimit=e,this._storageLimit=t,this.opSize=r,this.minimalFeePerStorageByteMutez=n,this.baseFeeMutez=i}get burnFeeMutez(){return this.roundUp(Number(this.storageLimit)*Number(this.minimalFeePerStorageByteMutez))}get storageLimit(){const e=Math.max(Number(this._storageLimit),0);return e>0?e:0}get gasLimit(){return this.roundUp(Number(this._milligasLimit)/1e3+100)}get operationFeeMutez(){return.1*(Number(this._milligasLimit)/1e3+100)+1*Number(this.opSize)}roundUp(e){return Math.ceil(Number(e))}get minimalFeeMutez(){return this.roundUp(a5+this.operationFeeMutez)}get suggestedFeeMutez(){return this.roundUp(this.operationFeeMutez+200)}get usingBaseFeeMutez(){return Math.max(Number(this.baseFeeMutez),a5)+this.roundUp(this.operationFeeMutez)}get totalCost(){return this.minimalFeeMutez+this.burnFeeMutez}get consumedMilligas(){return Number(this._milligasLimit)}static createEstimateInstanceFromProperties(e){let t,r=0,n=0,i=0,o=0;return e.forEach((e=>{r+=e.milligasLimit,n+=e.storageLimit,i+=e.opSize,o=Math.max(e.minimalFeePerStorageByteMutez,o),e.baseFeeMutez&&(t=t?t+e.baseFeeMutez:e.baseFeeMutez)})),new s5(r,n,i,o,t)}static createArrayEstimateInstancesFromProperties(e){return e.map((e=>new s5(e.milligasLimit,e.storageLimit,e.opSize,e.minimalFeePerStorageByteMutez,e.baseFeeMutez)))}}class c5 extends ls{constructor(){super(),this.name="RevealEstimateError",this.message="Public key is unknown, unable to estimate the reveal operation in Wallet API."}}class l5 extends E2{constructor(){super(...arguments),this.ALLOCATION_STORAGE=257,this.ORIGINATION_STORAGE=257,this.OP_SIZE_REVEAL=128,this.prepare=new X2(this.context)}getKeys(){return g1(this,void 0,void 0,(function*(){const e=this.context.isAnySignerConfigured();return{publicKeyHash:e?yield this.signer.publicKeyHash():yield this.context.walletProvider.getPKH(),publicKey:e?yield this.signer.publicKey():void 0}}))}getEstimationPropertiesFromOperationContent(e,t,r){const n=g2({contents:[e]});let i=0,o=0;return n.forEach((e=>{o+="originated_contracts"in e&&"undefined"!==typeof e.originated_contracts?e.originated_contracts.length*this.ORIGINATION_STORAGE:0,o+="allocated_destination_contract"in e?this.ALLOCATION_STORAGE:0,i+=Number(e.consumed_milligas)||0,o+="paid_storage_size_diff"in e&&Number(e.paid_storage_size_diff)||0,o+="storage_size"in e&&"global_address"in e&&Number(e.storage_size)||0,o+="genesis_commitment_hash"in e?Number(e.size):0})),u2(e)?{milligasLimit:i||0,storageLimit:Number(o||0),opSize:t,minimalFeePerStorageByteMutez:r.toNumber()}:{milligasLimit:0,storageLimit:0,opSize:t,minimalFeePerStorageByteMutez:r.toNumber(),baseFeeMutez:0}}calculateEstimates(e,t){return g1(this,void 0,void 0,(function*(){const{opbytes:r,opOb:{branch:n,contents:i}}=yield this.forge(e),o={operation:{branch:n,contents:i},chain_id:yield this.context.readProvider.getChainId()},{opResponse:a}=yield this.simulate(o),{cost_per_byte:s}=t,c=[...v2(a,"backtracked"),...v2(a)];if(c.length)throw new p2(c,"Error occurred during estimation",a.contents);let l=1;return Array.isArray(e.opOb.contents)&&e.opOb.contents.length>1&&(l="reveal"===a.contents[0].kind?e.opOb.contents.length-1:e.opOb.contents.length),a.contents.map((e=>this.getEstimationPropertiesFromOperationContent(e,"reveal"===e.kind?this.OP_SIZE_REVEAL/2:r.length/2/l,s)))}))}originate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.prepare.originate(e),r=yield this.context.readProvider.getProtocolConstants("head"),n=yield this.calculateEstimates(t,r);return"reveal"===t.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}transfer(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=gc(o.to);if(e!==ac.VALID)throw new ms(o.to,Sc(e));const a=gc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==ac.VALID)throw new ms(o.source,Sc(a));if(o.amount<0)throw new vs(o.amount.toString());const s=yield this.prepare.transaction(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}transferTicket(e){var t,{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=gc(o.destination);if(e!==ac.VALID)throw new ms(o.destination,Sc(e));const a=gc(null!==(t=o.source)&&void 0!==t?t:"");if(o.source&&a!==ac.VALID)throw new ms(o.source,Sc(a));const s=yield this.context.readProvider.getProtocolConstants("head"),c=yield this.prepare.transferTicket(Object.assign({fee:r,storageLimit:n,gasLimit:i},o)),l=yield this.calculateEstimates(c,s);return"reveal"===c.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}setDelegate(e){var t,{fee:r,gasLimit:n,storageLimit:i}=e,o=m1(e,["fee","gasLimit","storageLimit"]);return g1(this,void 0,void 0,(function*(){const e=gc(o.source);if(o.source&&e!==ac.VALID)throw new ms(o.source,Sc(e));const a=gc(null!==(t=o.delegate)&&void 0!==t?t:"");if(o.delegate&&a!==ac.VALID)throw new ms(o.delegate,Sc(a));const s=yield this.prepare.delegation(Object.assign({fee:r,storageLimit:i,gasLimit:n},o)),c=yield this.context.readProvider.getProtocolConstants("head"),l=yield this.calculateEstimates(s,c);return"reveal"===s.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}batch(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.batch(e),n=yield this.calculateEstimates(r,t);return s5.createArrayEstimateInstancesFromProperties(n)}))}registerDelegate(e,t){var{fee:r,storageLimit:n,gasLimit:i}=e,o=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=(yield this.getKeys()).publicKeyHash,a=yield this.context.readProvider.getProtocolConstants("head"),s=t||e,c=yield this.prepare.registerDelegate(Object.assign({fee:r,storageLimit:n,gasLimit:i},o),s),l=yield this.calculateEstimates(c,a);return"reveal"===c.opOb.contents[0].kind&&l.shift(),s5.createEstimateInstanceFromProperties(l)}))}reveal(e){return g1(this,void 0,void 0,(function*(){const{publicKeyHash:t,publicKey:r}=yield this.getKeys();if(!r)throw new c5;if(yield this.isAccountRevealRequired(t)){const t=yield this.context.readProvider.getProtocolConstants("head"),r=e?yield this.prepare.reveal(e):yield this.prepare.reveal({}),n=yield this.calculateEstimates(r,t);return s5.createEstimateInstanceFromProperties(n)}}))}registerGlobalConstant(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){const e=yield this.prepare.registerGlobalConstant(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),o=yield this.context.readProvider.getProtocolConstants("head"),a=yield this.calculateEstimates(e,o);return"reveal"===e.opOb.contents[0].kind&&a.shift(),s5.createEstimateInstanceFromProperties(a)}))}increasePaidStorage(e){var{fee:t,storageLimit:r,gasLimit:n}=e,i=m1(e,["fee","storageLimit","gasLimit"]);return g1(this,void 0,void 0,(function*(){if(i.amount<0)throw new vs(i.amount.toString());const e=yield this.context.readProvider.getProtocolConstants("head"),o=yield this.prepare.increasePaidStorage(Object.assign({fee:t,storageLimit:r,gasLimit:n},i)),a=yield this.calculateEstimates(o,e);return"reveal"===o.opOb.contents[0].kind&&a.shift(),s5.createEstimateInstanceFromProperties(a)}))}updateConsensusKey(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.updateConsensusKey(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}smartRollupAddMessages(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupAddMessages(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}smartRollupOriginate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.smartRollupOriginate(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}contractCall(e){return g1(this,void 0,void 0,(function*(){const t=yield this.context.readProvider.getProtocolConstants("head"),r=yield this.prepare.contractCall(e),n=yield this.calculateEstimates(r,t);return"reveal"===r.opOb.contents[0].kind&&n.shift(),s5.createEstimateInstanceFromProperties(n)}))}}class u5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"delegation"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get delegate(){return this.params.delegate}get isRegisterOperation(){return this.delegate===this.source}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class d5 extends S2{constructor(e,t,r,n,i,o){super(e,r,n,i),this.params=t,this.contractProvider=o;const a=this.operationResults&&this.operationResults.originated_contracts;Array.isArray(a)&&(this.contractAddress=a[0])}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"origination"===e.kind)),t=e&&f2(e)&&e.metadata.operation_result;return t||void 0}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get storageDiff(){const e=this.operationResults&&this.operationResults.paid_storage_size_diff;return e||void 0}get storageSize(){const e=this.operationResults&&this.operationResults.storage_size;return e||void 0}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}contract(e,t){return g1(this,void 0,void 0,(function*(){if(!this.contractAddress)throw new y2("No contract was originated in this operation");return yield this.confirmation(e,t),this.contractProvider.at(this.contractAddress)}))}}class h5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r,this.globalConstantHash=this.operationResults&&this.operationResults.global_address}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"register_global_constant"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get registeredExpression(){return this.params.value}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class f5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"reveal"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get publicKey(){return this.params.public_key}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),new Zs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(g2({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(g2({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(g2({contents:this.operationResults}),"storage_size"))}get errors(){return v2({contents:this.operationResults})}}class p5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"transaction"===e.kind));return e?[e]:[]}get status(){const e=this.operationResults[0];return e?e.metadata.operation_result.status:"unknown"}get amount(){return new Xs(this.params.amount)}get destination(){return this.params.destination}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}sumProp(e,t){return e.reduce(((e,r)=>t in r?Number(r[t])+e:e),0)}get consumedGas(){return Xs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Xs.ROUND_UP}),new Xs(this.consumedMilliGas).dividedBy(1e3).toString()}get consumedMilliGas(){return String(this.sumProp(g2({contents:this.operationResults}),"consumed_milligas"))}get storageDiff(){return String(this.sumProp(g2({contents:this.operationResults}),"paid_storage_size_diff"))}get storageSize(){return String(this.sumProp(g2({contents:this.operationResults}),"storage_size"))}get errors(){return v2({contents:this.operationResults})}}class m5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"ballot"===e.kind));return e||void 0}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}get proposal(){return this.params.proposal}get ballot(){return this.params.ballot}}class g5 extends S2{constructor(e,t,r,n,i){super(e,r,n,i),this.params=t}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"drain_delegate"===e.kind)),t=e&&e.metadata&&e.metadata.balance_updates;return t||void 0}get consensusKey(){return this.params.consensus_key}get delegate(){return this.params.delegate}get destination(){return this.params.destination}}class v5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===CW.TRANSFER_TICKET)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedGas(){return Zs.config({DECIMAL_PLACES:0,ROUNDING_MODE:Zs.ROUND_UP}),this.consumedMilliGas?new Zs(this.consumedMilliGas).dividedBy(1e3).toString():void 0}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}}class y5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"increase_paid_storage"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get amount(){return this.params.amount}get destination(){return this.params.destination}}class b5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"proposals"===e.kind));return e||void 0}get proposals(){return this.params.proposals}get period(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.period}}class w5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"update_consensus_key"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get pk(){return this.params.pk}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class x5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>"smart_rollup_add_messages"===e.kind)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get message(){return this.params.message}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class _5 extends S2{constructor(e,t,r,n,i,o){super(e,n,i,o),this.params=t,this.source=r}get operationResults(){const e=Array.isArray(this.results)&&this.results.find((e=>e.kind===CW.SMART_ROLLUP_ORIGINATE)),t=e&&e.metadata&&e.metadata.operation_result;return t||void 0}get status(){var e,t;return null!==(t=null===(e=this.operationResults)||void 0===e?void 0:e.status)&&void 0!==t?t:"unknown"}get fee(){return Number(this.params.fee)}get gasLimit(){return Number(this.params.gas_limit)}get storageLimit(){return Number(this.params.storage_limit)}get consumedMilliGas(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.consumed_milligas}get pvmKind(){return this.params.pvm_kind}get kernel(){return this.params.kernel}get errors(){var e;return null===(e=this.operationResults)||void 0===e?void 0:e.errors}}class S5 extends E2{constructor(e,t){super(e),this.estimator=t,this.contractProviderTypeSymbol=Symbol.for("taquito-contract-provider-type-symbol"),this.prepare=new X2(this.context)}getStorage(e,t){return g1(this,void 0,void 0,(function*(){const r=yc(e);if(r!==ac.VALID)throw new ks(e,Sc(r));const n=yield this.context.readProvider.getScript(e,"head");let i;return t||(t=n),i=SX.isSchema(t)?t:SX.fromRPCResponse({script:t}),i.Execute(n.storage,G2(this))}))}getBigMapKey(e,t,r){return g1(this,void 0,void 0,(function*(){const n=yc(e);if(n!==ac.VALID)throw new ks(e,Sc(n));let i;r||(r=(yield this.rpc.getContract(e)).script),i=SX.isSchema(r)?r:SX.fromRPCResponse({script:r});const o=i.EncodeBigMapKey(t),a=yield this.rpc.getBigMapKey(e,o);return i.ExecuteOnBigMapValue(a)}))}getBigMapKeyByID(e,t,r,n){return g1(this,void 0,void 0,(function*(){const{key:i,type:o}=r.EncodeBigMapKey(t),{packed:a}=yield this.context.packer.packData({data:i,type:o}),s=function(e){return Oc(as().blake2b(Rc(e),void 0,32),nc.expr)}(a),c=n?yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},n):yield this.context.readProvider.getBigMapValue({id:e.toString(),expr:s},"head");return r.ExecuteOnBigMapValue(c,G2(this))}))}getBigMapKeysByID(e,t,r,n,i=5){return g1(this,void 0,void 0,(function*(){const o=yield this.getBlockForRequest(t,n),a=new $Y;let s=0,c=[];for(;sthis.getBigMapValueOrUndefined(t,e,r,o)));c=[...c,...yield Promise.all(n)],s+=i}for(let e=0;ee.kind===CW.ORIGINATION)),i=yield this.forge(r),{hash:o,context:a,forgedBytes:s,opResponse:c}=yield this.signAndInject(i);return new d5(o,n,s,c,a,this)}))}setDelegate(e){var t;return g1(this,void 0,void 0,(function*(){const r=gc(e.source);if(e.source&&r!==ac.VALID)throw new ms(e.source,Sc(r));const n=gc(null!==(t=e.delegate)&&void 0!==t?t:"");if(e.delegate&&n!==ac.VALID)throw new ms(e.delegate,Sc(n));if(/kt1/i.test(e.source))throw new H1(e.source);const i=yield this.signer.publicKeyHash(),o=e.source||i,a=yield this.estimate(e,this.estimator.setDelegate.bind(this.estimator)),s=yield this.prepare.delegation(Object.assign(Object.assign({},e),a)),c=s.opOb.contents.find((e=>e.kind===CW.DELEGATION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new u5(u,c,o,h,f,d)}))}registerDelegate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.estimate(e,this.estimator.registerDelegate.bind(this.estimator)),r=yield this.signer.publicKeyHash(),n=yield this.prepare.registerDelegate(Object.assign(Object.assign({},e),t)),i=n.opOb.contents.find((e=>e.kind===CW.DELEGATION)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new u5(a,i,r,c,l,s)}))}transfer(e){var t;return g1(this,void 0,void 0,(function*(){const r=gc(e.to);if(r!==ac.VALID)throw new ms(e.to,Sc(r));const n=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&n!==ac.VALID)throw new ms(e.source,Sc(n));if(e.amount<0)throw new vs(e.amount.toString());const i=yield this.signer.publicKeyHash(),o=yield this.estimate(e,this.estimator.transfer.bind(this.estimator)),a=e.source||i,s=yield this.prepare.transaction(Object.assign(Object.assign({},e),o)),c=s.opOb.contents.find((e=>e.kind===CW.TRANSACTION)),l=yield this.forge(s),{hash:u,context:d,forgedBytes:h,opResponse:f}=yield this.signAndInject(l);return new p5(u,c,a,h,f,d)}))}transferTicket(e){var t,r;return g1(this,void 0,void 0,(function*(){const n=gc(e.destination);if(n!==ac.VALID)throw new ms(e.destination,Sc(n));const i=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==ac.VALID)throw new ms(e.source,Sc(i));const o=yield this.signer.publicKeyHash(),a=null!==(r=e.source)&&void 0!==r?r:o,s=yield this.estimate(e,this.estimator.transferTicket.bind(this.estimator)),c=yield this.prepare.transferTicket(Object.assign(Object.assign({},e),s)),l=c.opOb.contents.find((e=>e.kind===CW.TRANSFER_TICKET)),u=yield this.forge(c),{hash:d,context:h,forgedBytes:f,opResponse:p}=yield this.signAndInject(u);return new v5(d,l,a,f,p,h)}))}reveal(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimator.reveal(e);if(r){const n=yield this.estimate(e,(()=>g1(this,void 0,void 0,(function*(){return r})))),i=yield this.prepare.reveal(Object.assign(Object.assign({},e),n)),o=i.opOb.contents.find((e=>e.kind===CW.REVEAL)),a=yield this.forge(i),{hash:s,context:c,forgedBytes:l,opResponse:u}=yield this.signAndInject(a);return new f5(s,o,t,l,u,c)}throw new Y1(`The publicKeyHash '${t}' has already been revealed.`)}))}registerGlobalConstant(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.registerGlobalConstant.bind(this.estimator)),n=yield this.prepare.registerGlobalConstant(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.REGISTER_GLOBAL_CONSTANT)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new h5(a,i,t,c,l,s)}))}increasePaidStorage(e){return g1(this,void 0,void 0,(function*(){if(e.amount<0)throw new vs(e.amount.toString());const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.increasePaidStorage.bind(this.estimator)),n=yield this.prepare.increasePaidStorage(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.INCREASE_PAID_STORAGE)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new y5(a,i,t,c,l,s)}))}drainDelegate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.prepare.drainDelegate(e),r=t.opOb.contents.find((e=>e.kind===CW.DRAIN_DELEGATE)),n=yield this.forge(t),{hash:i,context:o,forgedBytes:a,opResponse:s}=yield this.signAndInject(n);return new g5(i,r,a,s,o)}))}ballot(e){var t,r;return g1(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==ac.VALID)throw new ms(e.source,Sc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.ballot(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===CW.BALLOT)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new m5(l,s,n,d,h,u)}))}proposals(e){var t,r;return g1(this,void 0,void 0,(function*(){const n=yield this.signer.publicKeyHash(),i=gc(null!==(t=e.source)&&void 0!==t?t:"");if(e.source&&i!==ac.VALID)throw new ms(e.source,Sc(i));const o=null!==(r=e.source)&&void 0!==r?r:n,a=yield this.prepare.proposals(Object.assign(Object.assign({},e),{source:o})),s=a.opOb.contents.find((e=>e.kind===CW.PROPOSALS)),c=yield this.forge(a),{hash:l,context:u,forgedBytes:d,opResponse:h}=yield this.signAndInject(c);return new b5(l,s,n,d,h,u)}))}updateConsensusKey(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.updateConsensusKey.bind(this.estimator)),n=yield this.prepare.updateConsensusKey(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.UPDATE_CONSENSUS_KEY)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new w5(a,i,t,c,l,s)}))}smartRollupAddMessages(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupAddMessages.bind(this.estimator)),n=yield this.prepare.smartRollupAddMessages(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.SMART_ROLLUP_ADD_MESSAGES)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new x5(a,i,t,c,l,s)}))}smartRollupOriginate(e){return g1(this,void 0,void 0,(function*(){const t=yield this.signer.publicKeyHash(),r=yield this.estimate(e,this.estimator.smartRollupOriginate.bind(this.estimator)),n=yield this.prepare.smartRollupOriginate(Object.assign(Object.assign({},e),r)),i=n.opOb.contents.find((e=>e.kind===CW.SMART_ROLLUP_ORIGINATE)),o=yield this.forge(n),{hash:a,context:s,forgedBytes:c,opResponse:l}=yield this.signAndInject(o);return new _5(a,i,t,c,l,s)}))}failingNoop(e){return g1(this,void 0,void 0,(function*(){const t={kind:CW.FAILING_NOOP,arbitrary:e.arbitrary},r=yield this.context.readProvider.getBlockHash(e.basedOnBlock),n=yield this.context.forger.forge({branch:r,contents:[t]}),{prefixSig:i}=yield this.signer.sign(n,new Uint8Array([3]));return{signature:i,bytes:n,signedContent:{branch:r,contents:[{kind:CW.FAILING_NOOP,arbitrary:e.arbitrary}]}}}))}at(e,t=(e=>e)){return g1(this,void 0,void 0,(function*(){const r=yc(e);if(r!==ac.VALID)throw new ks(e,Sc(r));const n=this.context.withExtensions().rpc,i=this.context.withExtensions().readProvider,o=yield i.getScript(e,"head"),a=yield i.getEntrypoints(e),s=new U2(e,o,this,this,a,n,i);return t(s,this.context)}))}batch(e){const t=new Q2(this.context,this.estimator);return Array.isArray(e)&&t.with(e),t}}class k5{constructor(e){this.context=e}getNextProto(){return g1(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}parseScript(e){return g1(this,void 0,void 0,(function*(){return new uJ({protocol:yield this.getNextProto()}).parseScript(e)}))}parseMichelineExpression(e){return g1(this,void 0,void 0,(function*(){return new uJ({protocol:yield this.getNextProto()}).parseMichelineExpression(e)}))}parseJSON(e){return g1(this,void 0,void 0,(function*(){return new uJ({protocol:yield this.getNextProto()}).parseJSON(e)}))}prepareCodeOrigination(e){return g1(this,void 0,void 0,(function*(){const t=e;if(t.code=yield this.formatCodeParam(e.code),e.init)t.init=yield this.formatInitParam(e.init);else if(e.storage){const r=t.code.find((e=>"prim"in e&&"storage"===e.prim));if(!(null===r||void 0===r?void 0:r.args))throw new V1("The storage section is missing from the script",e.code);const n=new SX(r.args[0]),i=yield this.findGlobalConstantsHashAndValue(n);if(0!==Object.keys(i).length){const n=new uJ({expandGlobalConstant:i}).parseJSON(r.args[0]),o=new SX(n);t.init=o.Encode(e.storage)}else t.init=n.Encode(e.storage);delete t.storage}return t}))}formatCodeParam(e){return g1(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseScript(e);if(null===r)throw new V1("Unable to parse",e);t=r}else{const r=yield this.parseJSON(e),n=["parameter","storage","code"];t=r.sort(((e,t)=>n.indexOf(e.prim)-n.indexOf(t.prim)))}return t}))}formatInitParam(e){return g1(this,void 0,void 0,(function*(){let t;if("string"===typeof e){const r=yield this.parseMichelineExpression(e);if(null===r)throw new q1("Invalid init parameter",e);t=r}else t=yield this.parseJSON(e);return t}))}findGlobalConstantsHashAndValue(e){return g1(this,void 0,void 0,(function*(){const t=e.findToken("constant"),r={};if(0!==t.length)for(const e of t){const t=e.tokenVal.args;if(t){const e=t[0];if(e.string){const t=e.string,n=yield this.context.globalConstantsProvider.getGlobalConstantByHash(t);Object.assign(r,{[t]:n})}}}return r}))}}class E5{constructor(e){this.context=e}packData(e){return g1(this,void 0,void 0,(function*(){return this.context.rpc.packData(e)}))}}class A5 extends hs{constructor(){super(),this.name="UnconfiguredGlobalConstantsProviderError",this.message="No global constants provider has been configured. Please configure one by calling setGlobalConstantsProvider({globalConstantsProvider}) on your TezosToolkit instance."}}class P5{getGlobalConstantByHash(e){return g1(this,void 0,void 0,(function*(){throw new A5}))}}class O5{constructor(e){this.rpc=e}getBalance(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getBalance(e,{block:String(t)})}))}getDelegate(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getDelegate(e,{block:String(t)})}))}getNextProtocol(e){return g1(this,void 0,void 0,(function*(){return(yield this.rpc.getProtocols({block:String(e)})).next_protocol}))}getProtocolConstants(e){return g1(this,void 0,void 0,(function*(){const{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,smart_rollup_origination_size:s}=yield this.rpc.getConstants({block:String(e)});return{time_between_blocks:t,minimal_block_delay:r,hard_gas_limit_per_operation:n,hard_gas_limit_per_block:i,hard_storage_limit_per_operation:o,cost_per_byte:a,smart_rollup_origination_size:s}}))}getScript(e,t){return g1(this,void 0,void 0,(function*(){const{script:r}=yield this.rpc.getContract(e,{block:String(t)});return r}))}getStorage(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getStorage(e,{block:String(t)})}))}getBlockHash(e){return g1(this,void 0,void 0,(function*(){const{hash:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBlockLevel(e){return g1(this,void 0,void 0,(function*(){const{level:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getCounter(e,t){return g1(this,void 0,void 0,(function*(){const{counter:r}=yield this.rpc.getContract(e,{block:String(t)});return r||"0"}))}getBlockTimestamp(e){return g1(this,void 0,void 0,(function*(){const{timestamp:t}=yield this.rpc.getBlockHeader({block:String(e)});return t}))}getBigMapValue(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getBigMapExpr(e.id,e.expr,{block:String(t)})}))}getSaplingDiffById(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffById(e.id,{block:String(t)})}))}getSaplingDiffByContract(e,t){return g1(this,void 0,void 0,(function*(){return this.rpc.getSaplingDiffByContract(e,{block:String(t)})}))}getEntrypoints(e){return g1(this,void 0,void 0,(function*(){return this.rpc.getEntrypoints(e)}))}getChainId(){return g1(this,void 0,void 0,(function*(){return this.rpc.getChainId()}))}isAccountRevealed(e,t){return g1(this,void 0,void 0,(function*(){const r=yield this.rpc.getManagerKey(e,{block:String(t)});return r&&"object"===typeof r?!!r.key:!!r}))}getBlock(e){return g1(this,void 0,void 0,(function*(){return this.rpc.getBlock({block:String(e)})}))}getLiveBlocks(e){return this.rpc.getLiveBlocks({block:String(e)})}}class T5 extends us{constructor(e){super(),this.type=e,this.name="UnsupportedEventError",this.message=`Unsupported event type "${e}" expecting one of the "data", "error", or "close".`}}class C5 extends us{constructor(e){super(),this.invalidExpression=e,this.name="InvalidFilterExpressionError",this.message="Invalid filter expression expecting the object to contain either and/or property"}}const j5=(e,t)=>"opHash"in t?((e,t)=>e.hash===t.opHash)(e,t):"source"in t?((e,t)=>{switch(e.kind){case"attestation":case"endorsement":return"metadata"in e&&e.metadata.delegate===t.source;case"activate_account":return"metadata"in e&&e.pkh===t.source;default:return"source"in e&&e.source===t.source}})(e,t):"kind"in t?((e,t)=>"kind"in e&&e.kind===t.kind)(e,t):"destination"in t&&((e,t)=>{switch(e.kind){case"delegation":return e.delegate===t.destination;case"origination":if("metadata"in e&&"operation_result"in e.metadata&&"originated_contracts"in e.metadata.operation_result&&Array.isArray(e.metadata.operation_result.originated_contracts))return e.metadata.operation_result.originated_contracts.some((e=>e===t.destination));break;case"transaction":return e.destination===t.destination;default:return!1}})(e,t),R5=(e,t)=>{const r=[];return Array.isArray(t)?r.push(...t):r.push(t),r.every((t=>"and"in t||"or"in t?((e,t)=>{if(Array.isArray(t.and))return t.and.every((t=>R5(e,t)));if(Array.isArray(t.or))return t.or.some((t=>R5(e,t)));throw new C5(t)})(e,t):j5(e,t)))};class I5{constructor(e,t=!1,r=OY()){var n;this.shouldRetry=t,this.operatorFunction=r,this.errorListeners=[],this.messageListeners=[],this.closeListeners=[],this.completed$=new cG,e.pipe((n=this.completed$,IG((function(e,t){SG(n).subscribe(MG(t,(function(){return t.complete()}),HW)),!t.closed&&e.subscribe(t)}))),vY((e=>{this.call(this.messageListeners,e)}),(e=>{this.call(this.errorListeners,e)}),(()=>{this.call(this.closeListeners)})),this.shouldRetry?r:vY(),EY((()=>tY))).subscribe()}call(e,t){for(const n of e)try{n(t)}catch(r){console.error(r)}}remove(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}on(e,t){switch(e){case"data":this.messageListeners.push(t);break;case"error":this.errorListeners.push(t);break;case"close":this.closeListeners.push(t);break;default:throw new T5(e)}}off(e,t){switch(e){case"data":this.remove(this.messageListeners,t);break;case"error":this.remove(this.errorListeners,t);break;case"close":this.remove(this.closeListeners,t);break;default:throw new T5(e)}}close(){this.completed$.next()}}const M5={shouldObservableSubscriptionRetry:!1,observableSubscriptionRetryFunction:OY()},L5=e=>mY((t=>new oG((r=>{for(const s of t.operations)for(const c of s)for(const s of c.contents){const l=s.metadata.internal_operation_results;if(l)for(const s of l)n=s,i=null===e||void 0===e?void 0:e.address,o=null===e||void 0===e?void 0:e.tag,a=null===e||void 0===e?void 0:e.excludeFailedOperations,"event"!==n.kind||o&&n.tag!==o||i&&n.source!==i||a&&"applied"!==n.result.status||r.next(Object.assign({opHash:c.hash,blockHash:t.hash,level:t.header.level},s))}var n,i,o,a;r.complete()}))));class N5{constructor(e,t={}){this.context=e,this._config$=new hG(Object.assign(Object.assign({},M5),t)),this.timer$=this._config$.pipe(TY("pollingIntervalMilliseconds"),dY((e=>e?uY(0,e):FG(this.getConfirmationPollingInterval()).pipe(dY((e=>uY(0,e))))))),this.newBlock$=this.timer$.pipe(dY((()=>(e=>FG(e.rpc.getBlock()).pipe(kY()))(this.context))),function(e,t){return AY((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}("hash"),MY(),CY())}get config(){return this._config$.getValue()}getConfirmationPollingInterval(){return g1(this,void 0,void 0,(function*(){if(!this.config.pollingIntervalMilliseconds){const t=5e3,r=1e3;try{const e=yield this.context.readProvider.getProtocolConstants("head"),n=(e.minimal_block_delay?e.minimal_block_delay.multipliedBy(1e3):e.time_between_blocks?e.time_between_blocks[0].multipliedBy(1e3):new Xs(t)).dividedBy(3);this.config.pollingIntervalMilliseconds=0===n.toNumber()?r:n.toNumber()}catch(e){return t}}return this.config.pollingIntervalMilliseconds}))}subscribeBlock(e){return new I5(this.newBlock$,this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribe(e){return new I5(this.newBlock$.pipe(TY("hash")),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeOperation(e){return new I5(this.newBlock$.pipe((e=>mY((t=>new oG((r=>{for(const n of t.operations)for(const t of n)for(const n of t.contents)R5(Object.assign({hash:t.hash},n),e)&&r.next(Object.assign({hash:t.hash},n));r.complete()})))))(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}subscribeEvent(e){return new I5(this.newBlock$.pipe(L5(e)),this.config.shouldObservableSubscriptionRetry,this.config.observableSubscriptionRetryFunction)}}class D5{constructor(e){this.context=e}getNextProto(){return g1(this,void 0,void 0,(function*(){if(!this.context.proto){const e=yield this.context.readProvider.getNextProtocol("head");this.context.proto=e}return this.context.proto}))}forge({branch:e,contents:t}){return g1(this,void 0,void 0,(function*(){return new p1(yield this.getNextProto()).forge({branch:e,contents:t})}))}}const z5={defaultConfirmationCount:1,confirmationPollingTimeoutSecond:180};class B5{constructor(e,t=new x1,r,n=new hG(Object.assign({},z5)),i,o,a,s,c,l,u,d){this._rpc=e,this._signer=t,this._proto=r,this._config=n,this.providerDecorator=[],this.tz=new o5(this),this.estimate=new l5(this),this.contract=new S5(this,this.estimate),this.prepare=new X2(this),this.batch=new e5(this,this.estimate),this.wallet=new P2(this),this.withExtensions=()=>{let e=this.clone();return this.providerDecorator.forEach((t=>{e=t(e)})),e},"string"===typeof this._rpc?this._rpcClient=new jW(this._rpc):this._rpcClient=this._rpc,this._forger=i||new D5(this),this._injector=o||new b1(this),this.operationFactory=new i5(this),this._walletProvider=s||new M2(this),this._parser=c||new k5(this),this._packer=a||new E5(this),this._globalConstantsProvider=l||new P5,this._readProvider=u||new O5(this._rpcClient),this._stream=d||new N5(this)}get config(){return this._config.getValue()}set config(e){this._config.next(Object.assign({},e))}setPartialConfig(e){this._config.next(Object.assign(Object.assign({},this._config.getValue()),e))}get rpc(){return this._rpcClient}set rpc(e){this._rpcClient=e}get injector(){return this._injector}set injector(e){this._injector=e}get forger(){return this._forger}set forger(e){this._forger=e}get signer(){return this._signer}set signer(e){this._signer=e}get walletProvider(){return this._walletProvider}set walletProvider(e){this._walletProvider=e}set proto(e){this._proto=e}get proto(){return this._proto}get parser(){return this._parser}set parser(e){this._parser=e}get packer(){return this._packer}set packer(e){this._packer=e}get globalConstantsProvider(){return this._globalConstantsProvider}set globalConstantsProvider(e){this._globalConstantsProvider=e}get readProvider(){return this._readProvider}set readProvider(e){this._readProvider=e}get stream(){return this._stream}set stream(e){this._stream=e}isAnyProtocolActive(e=[]){return g1(this,void 0,void 0,(function*(){if(this._proto)return e.includes(this._proto);{const t=yield this.readProvider.getNextProtocol("head");return e.includes(t)}}))}isAnySignerConfigured(){return!(this.signer instanceof x1)}clone(){return new B5(this.rpc,this.signer,this.proto,this._config,this.forger,this._injector,this.packer,this._walletProvider,this._parser,this._globalConstantsProvider,this._readProvider,this._stream)}registerProviderDecorator(e){this.providerDecorator.push(e)}}const F5={commitHash:"13a12ab7cf442043526745db2bbf4ef3b089c34a",version:"19.0.2"};class U5{constructor(e){this._rpc=e,this._options={},this.format=Pc,"string"===typeof this._rpc?this._rpcClient=new jW(this._rpc):this._rpcClient=this._rpc,this._context=new B5(e),this._wallet=new P2(this._context),this.setProvider({rpc:this._rpcClient}),this.batch=this._context.batch.batch.bind(this._context.batch)}setProvider({rpc:e,stream:t,signer:r,protocol:n,config:i,forger:o,wallet:a,packer:s,globalConstantsProvider:c,readProvider:l,parserProvider:u,injectorProvider:d}){this.setRpcProvider(e),this.setStreamProvider(t),this.setSignerProvider(r),this.setForgerProvider(o),this.setWalletProvider(a),this.setPackerProvider(s),this.setGlobalConstantsProvider(c),this.setReadProvider(l),this.setParserProvider(u),this.setInjectorProvider(d),this._context.proto=n,i&&this._context.setPartialConfig(i)}setSignerProvider(e){this._options.signer||"undefined"!==typeof e?"undefined"!==typeof e&&(this._context.signer=e,this._options.signer=e):(this._context.signer=new x1,this._options.signer=e)}setRpcProvider(e){"string"===typeof e?this._rpcClient=new jW(e):void 0===e||(this._rpcClient=e),this._options.rpc=this._rpcClient,this._context.rpc=this._rpcClient}setForgerProvider(e){if("undefined"!==typeof e)this._options.forger=e,this._context.forger=e;else if(void 0===this._options.forger){const e=this.getFactory(D5)();this._options.forger=e,this._context.forger=e}}setStreamProvider(e){if("string"===typeof e){const t=new N5(new B5(new jW(e)));this._options.stream=t,this._context.stream=t}else if("undefined"!==typeof e)this._options.stream=e,this._context.stream=e;else if(void 0===this._options.stream){const e=this.getFactory(N5)();this._options.stream=e,this._context.stream=e}}setWalletProvider(e){if(this._options.wallet||"undefined"!==typeof e)"undefined"!==typeof e&&(this._options.wallet=e,this._context.walletProvider=e);else{const e=this.getFactory(M2)();this._options.wallet=e,this._context.walletProvider=e}}setPackerProvider(e){if(this._options.packer||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.packer=e,this._options.packer=e);else{const e=this.getFactory(E5)();this._context.packer=e,this._options.packer=e}}setGlobalConstantsProvider(e){if(this._options.globalConstantsProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e);else{const e=new P5;this._context.globalConstantsProvider=e,this._options.globalConstantsProvider=e}}setReadProvider(e){const t=e||new O5(this._context.rpc);this._options.readProvider=t,this._context.readProvider=t}setParserProvider(e){if(this._options.parserProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.parser=e,this._options.parserProvider=e);else{const e=new k5(this._context);this._context.parser=e,this._options.parserProvider=e}}setInjectorProvider(e){if(this._options.injectorProvider||"undefined"!==typeof e)"undefined"!==typeof e&&(this._context.injector=e,this._options.injectorProvider=e);else{const e=new b1(this._context);this._context.injector=e,this._options.injectorProvider=e}}get tz(){return this._context.tz}get contract(){return this._context.contract}get prepare(){return this._context.prepare}get wallet(){return this._wallet}get operation(){return this._context.operationFactory}get estimate(){return this._context.estimate}get stream(){return this._context.stream}get rpc(){return this._context.rpc}get signer(){return this._context.signer}get globalConstants(){return this._context.globalConstantsProvider}addExtension(e){Array.isArray(e)?e.forEach((e=>e.configureContext(this._context))):e.configureContext(this._context)}getFactory(e){return(...t)=>new e(this._context,...t)}getVersionInfo(){return F5}}class $5{constructor(e,t){this.pk=void 0,this.pkh=void 0,this.pk=e,this.pkh=t}async publicKey(){return this.pk}async publicKeyHash(){return this.pkh}async sign(){throw new Error("`sign` method not available")}async secretKey(){throw new Error("empty secret key")}}const H5={args:[{args:[{annots:["%from_"],prim:"address"},{annots:["%txs"],args:[{args:[{annots:["%to_"],prim:"address"},{args:[{annots:["%token_id"],prim:"nat"},{annots:["%amount"],prim:"nat"}],prim:"pair"}],prim:"pair"}],prim:"list"}],prim:"pair"}],prim:"list"},V5={args:[{annots:[":from"],prim:"address"},{args:[{annots:[":to"],prim:"address"},{annots:[":value"],prim:"nat"}],prim:"pair"}],prim:"pair"},q5=(e,t,r)=>[...K5,{prim:"PUSH",args:[{prim:"address"},{string:e.contract.pkh+"%"+r.entrypoint}]},{prim:"CONTRACT",args:[t]},[{prim:"IF_NONE",args:[[{prim:"UNIT"},{prim:"FAILWITH"}],[]]}],{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"PUSH",args:[t,r.value]},{prim:"TRANSFER_TOKENS"},{prim:"CONS"}],K5=[{prim:"DROP"},{prim:"NIL",args:[{prim:"operation"}]}],W5=e=>(0,ts.isEqual)(e.slice(0,2),K5)?e.slice(2):e,G5=e=>{const t=e.map((e=>(e=>{switch(e.type){case"tez":switch(e.recipient.type){case"implicit":return V2(e.recipient.pkh,Number(e.amount));case"contract":return q2(e.recipient.pkh,Number(e.amount))}case"fa1.2":return q5(e,V5,n3(e));case"fa2":return q5(e,H5,i3(e));case"delegation":return $2(e.recipient.pkh);case"undelegation":return H2();case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}})(e))).flatMap(W5);return[...K5,...t]},Y5=(e,t,r)=>X5(e,t,{int:r}),Z5=(e,t)=>{const r=G5(t);return X5(e,"propose",r)},X5=(e,t,r,n="0")=>({type:"contract_call",contract:e,entrypoint:t,args:r,amount:n}),J5=async(e,t)=>{try{const r=`${t.tzktApiUrl}/v1/accounts/${e}`,{data:{type:n}}=await xj.get(r);return"empty"!==n}catch(r){throw new Error(`Error fetching account from tzkt ${r.message}`)}},Q5=async e=>{const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,8);return n},e3=async e=>{switch(e.type){case"social":case"mnemonic":case"secret_key":return new Mq(e.secretKey);case"ledger":{const t=await YK.list();for(let e=0;e{switch(e){case"ed25519":return oW.ED25519;case"secp256k1":return oW.SECP256K1;case"p256":return oW.P256;case"bip25519":throw new Error("bip25519 is not supported in Tezos")}})(e.account.curve))}case"fake":return new $5(e.signer.pk,e.signer.address.pkh)}},t3=async e=>{const t=new U5(e.network.rpcUrl),r=await e3(e);return t.setSignerProvider(r),t},r3=async e=>{const t=new Mq(e);return{pk:await t.publicKey(),pkh:await t.publicKeyHash()}},n3=({sender:e,recipient:t,amount:r})=>({entrypoint:"transfer",value:{prim:"Pair",args:[{string:e.pkh},{prim:"Pair",args:[{string:t.pkh},{int:r}]}]}}),i3=({sender:e,recipient:t,tokenId:r,amount:n})=>({entrypoint:"transfer",value:[{prim:"Pair",args:[{string:e.pkh},[{prim:"Pair",args:[{string:t.pkh},{prim:"Pair",args:[{int:r},{int:n}]}]}]]}]}),o3=e=>{switch(e.type){case"tez":return{kind:CW.TRANSACTION,to:e.recipient.pkh,amount:parseInt(e.amount),mutez:!0};case"contract_call":return{kind:CW.TRANSACTION,to:e.contract.pkh,amount:parseInt(e.amount),mutez:!0,parameter:{entrypoint:e.entrypoint,value:e.args}};case"delegation":return{kind:CW.DELEGATION,source:e.sender.pkh,delegate:e.recipient.pkh};case"undelegation":return{kind:CW.DELEGATION,source:e.sender.pkh,delegate:void 0};case"fa1.2":return{kind:CW.TRANSACTION,amount:0,to:e.contract.pkh,parameter:n3(e)};case"fa2":return{kind:CW.TRANSACTION,amount:0,to:e.contract.pkh,parameter:i3(e)};case"contract_origination":return{kind:CW.ORIGINATION,...e}}},a3=({type:e,operations:t,sender:r})=>("implicit"===e?t:[Z5(r.address,t)]).map(o3),s3=a3,c3=async(e,t)=>{const r=await t3({type:"fake",signer:e.signer,network:t});try{const t=await r.estimate.batch(a3(e));return n=t.map((e=>Math.max(e.suggestedFeeMutez,e.totalCost).toString())),n.reduce(((e,t)=>e.plus(t)),new Xs(0))}catch(Lde){if(!await J5(e.signer.address.pkh,t))throw new Error(`Signer address is not revealed on the ${t.name}.`);throw Lde instanceof Error&&(Lde.message=l3(Lde)),Lde}var n},l3=e=>e.message.includes("subtraction_underflow")?"Insufficient balance, please make sure you have enough funds.":e.message.includes("contract.non_existing_contract")?"Contract does not exist, please check if the correct network is selected.":e.message;class u3{constructor(e){this.queue=void 0,this.maxConcurrent=void 0,this.count=void 0,this.queue=[],this.maxConcurrent=e,this.count=0}get canAcquire(){return this.countthis.queue.push(e)))}release(){const e=this.queue.shift();e?setTimeout(e,0):this.count--}}const d3="_default";const h3=[encodeURIComponent,encodeURIComponent];encodeURIComponent,encodeURI;function f3(e,t=","){return(r,...n)=>r.reduce(((r,i,o)=>`${r}${i}${((r,n)=>{const i=e[n%e.length];if("undefined"===typeof r)return"";if("object"===typeof r)return Array.isArray(r)?r.map(i).join(t):Object.entries(r).reduce(((e,t)=>[...e,...t]),[]).map(i).join(t);return i(String(r))})(n[o],o)}`),"")}function p3(e=","){return(t,r=h3)=>Object.entries(t).filter((([,e])=>void 0!==e)).map((([t,n])=>f3(r,e)`${t}=${n}`)).join("&")}function m3(...e){const t=e.filter(Boolean).join("&");return t&&`?${t}`}function g3(e,t=h3){const r=f3(t);return Object.entries(e).filter((([,e])=>void 0!==e)).map((([e,n])=>Array.isArray(n)?n.map((t=>r`${e}=${t}`)).join("&"):"object"===typeof n?g3(n,t):r`${e}=${n}`)).join("&")}const v3=p3();p3("|"),p3("%20");const y3=[200,201,202,204];async function b3(e){const t=await e;if(y3.some((e=>e==t.status)))return t.data;throw new w3(t.status,t.data)}class w3 extends Error{status;data;constructor(e,t){super(`Error: ${e}`),this.status=e,this.data=t}}const x3={jsonParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{if(!(n instanceof Object))throw new Error(`Expected ${e} value to be object, received ${typeof n}`);const{jsonPath:i,jsonValue:o}=n;if(void 0===o||null===o)throw new Error(`Expected jsonValue in ${e} -> ${t}, found: ${o}`);const a=[e,i,t].filter((e=>void 0!==e)).join(".");r[a]=o})),r},queryParameter:(e,t)=>{if(!t)return{};const r={};return Object.entries(t).forEach((([t,n])=>{r[`${e}.${t}`]=n})),r},anyofParameter:(e,t)=>{if(!t)return{};const{fields:r}=t;if(!(t=>{if(!Array.isArray(t))throw new Error(`Expected ${e} fields to be Array. Received ${typeof t}.`);return t.forEach((t=>{if("string"!==typeof t)throw new Error(`Expected ${e} fields to be strings. Received ${typeof t}`)})),!0})(r))return{};const n={},i=r.join(".");if(t.value){n[`${e}.${i}`]=t.value}for(const o of["in","eq","null"])if(t[o]){return n[`${e}.${i}.${o}`]=Array.isArray(t[o])?t[o].join(","):t[o],n}return n}},_3=x3,S3=function(e){async function t(e,t){const n=await r(e,t);let i;try{i=await n.text()}catch(Lde){}return{status:n.status,headers:n.headers,contentType:n.headers.get("content-type"),data:i}}async function r(t,r={}){const{baseUrl:n,headers:i,fetch:o,...a}={...e,...r},s=function(...e){return e.filter(Boolean).map(((e,t)=>0===t?e:e.replace(/^\/+/,""))).map(((e,t,r)=>t===r.length-1?e:e.replace(/\/+$/,""))).join("/")}(n,t);var c;return await(o||fetch)(s,{...a,headers:(c={...e.headers,...i},c&&JSON.parse(JSON.stringify(c)))})}return{ok:b3,fetchText:t,fetchJson:async function(e,r={}){const{status:n,headers:i,contentType:o,data:a}=await t(e,{...r,headers:{Accept:"application/json",...r.headers}});return!!o&&o.includes("json")?{status:n,headers:i,data:a?JSON.parse(a):null}:{status:n,headers:i,data:a}},fetchBlob:async function(e,t={}){const n=await r(e,t);let i;try{i=await n.blob()}catch(Lde){}return{status:n.status,headers:n.headers,data:i}},json:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:JSON.stringify(e)},headers:{...t,"Content-Type":"application/json"}}),form:({body:e,headers:t,...r})=>({...r,...null!=e&&{body:v3(e)},headers:{...t,"Content-Type":"application/x-www-form-urlencoded"}}),multipart({body:t,...r}){if(null==t)return r;const n=new(e.formDataConstructor||r.formDataConstructor||FormData);return Object.entries(t).forEach((([e,t])=>{n.append(e,t)})),{...r,body:n}}}}({baseUrl:"https://api.tzkt.io"});function k3({id:e,level:t,timestamp:r,tokenId:n,tokenContract:i,tokenTokenId:o,tokenStandard:a,tokenMetadata:s,tokenHasFilters:c,anyof:l,$from:u,to:d,amount:h,transactionId:f,originationId:p,migrationId:m,indexedAt:g,sort:v,offset:y,limit:b,select:w}={},x){return S3.ok(S3.fetchJson(`/v1/tokens/transfers${m3(g3({"token.HasFilters":c,limit:b,..._3.queryParameter("id",e),..._3.queryParameter("level",t),..._3.queryParameter("timestamp",r),..._3.queryParameter("token.id",n),..._3.queryParameter("token.contract",i),..._3.queryParameter("token.tokenId",o),..._3.queryParameter("token.standard",a),..._3.jsonParameter("token.metadata",s),..._3.anyofParameter("anyof",l),..._3.queryParameter("from",u),..._3.queryParameter("to",d),..._3.queryParameter("amount",h),..._3.queryParameter("transactionId",f),..._3.queryParameter("originationId",p),..._3.queryParameter("migrationId",m),..._3.queryParameter("indexedAt",g),..._3.queryParameter("sort",v),..._3.queryParameter("offset",y),..._3.queryParameter("select",w)}))}`,{...x}))}var E3=r(9196),A3=r.n(E3);const P3=new class{constructor(e=1){this.semaphoreInstances=void 0,this.maxConcurrent=void 0,this.semaphoreInstances={},this.maxConcurrent=e}hasSemaphoreInstance(e=d3){return Boolean(this.semaphoreInstances[e])}getSemaphoreInstance(e=d3){return this.hasSemaphoreInstance(e)||(this.semaphoreInstances[e]=new u3(this.maxConcurrent)),this.semaphoreInstances[e]}tidy(e=d3){this.hasSemaphoreInstance(e)&&0===this.getSemaphoreInstance(e).count&&delete this.semaphoreInstances[e]}canAcquire(e=d3){return this.getSemaphoreInstance(e).canAcquire}acquire(e=d3){return this.getSemaphoreInstance(e).acquire()}release(e=d3){this.getSemaphoreInstance(e).release(),this.tidy(e)}count(e=d3){return this.hasSemaphoreInstance(e)?this.getSemaphoreInstance(e).count:0}hasTasks(e=d3){return this.count(e)>0}async request(e,t=d3){try{return await this.acquire(t),await e()}finally{this.release(t)}}async requestIfAvailable(e,t=d3){return this.canAcquire(t)?this.request(e,t):null}}(10),O3=e=>P3.acquire().then((()=>A3()((t=>e().catch(t)),{retries:3,minTimeout:100}))).catch((e=>{if("status"in e&&"data"in e)throw new Error(`Fetching data from tzkt failed with: ${e.status}, ${e.data}`);throw e})).finally((()=>P3.release())),T3=async(e,t)=>O3((()=>function({id:e,address:t,$type:r,kind:n,delegate:i,balance:o,staked:a,lastActivity:s,select:c,sort:l,offset:u,limit:d}={},h){return S3.ok(S3.fetchJson(`/v1/accounts${m3(g3({limit:d,..._3.queryParameter("id",e),..._3.queryParameter("address",t),..._3.queryParameter("type",r),..._3.queryParameter("kind",n),..._3.queryParameter("delegate",i),..._3.queryParameter("balance",o),..._3.queryParameter("staked",a),..._3.queryParameter("lastActivity",s),..._3.queryParameter("select",c),..._3.queryParameter("sort",l),..._3.queryParameter("offset",u)}))}`,{...h}))}({address:{in:[e.join(",")]},select:{fields:["address,balance,delegationLevel"]}},{baseUrl:t.tzktApiUrl}))),C3=async(e,t)=>O3((()=>function({id:e,account:t,tokenId:r,tokenContract:n,tokenTokenId:i,tokenStandard:o,tokenMetadata:a,tokenHasFilters:s,balance:c,firstLevel:l,firstTime:u,lastLevel:d,lastTime:h,indexedAt:f,sort:p,offset:m,limit:g,select:v}={},y){return S3.ok(S3.fetchJson(`/v1/tokens/balances${m3(g3({"token.HasFilters":s,limit:g,..._3.queryParameter("id",e),..._3.queryParameter("account",t),..._3.queryParameter("token.id",r),..._3.queryParameter("token.contract",n),..._3.queryParameter("token.tokenId",i),..._3.queryParameter("token.standard",o),..._3.jsonParameter("token.metadata",a),..._3.queryParameter("balance",c),..._3.queryParameter("firstLevel",l),..._3.queryParameter("firstTime",u),..._3.queryParameter("lastLevel",d),..._3.queryParameter("lastTime",h),..._3.queryParameter("indexedAt",f),..._3.queryParameter("sort",p),..._3.queryParameter("offset",m),..._3.queryParameter("select",v)}))}`,{...y}))}({account:{in:[e.join(",")]},balance:{gt:"0"},limit:1e4},{baseUrl:t.tzktApiUrl}))),j3=async(e,t,r)=>O3((()=>function({anyof:e,initiator:t,sender:r,prevDelegate:n,newDelegate:i,level:o,timestamp:a,senderCodeHash:s,status:c,select:l,sort:u,offset:d,limit:h,quote:f}={},p){return S3.ok(S3.fetchJson(`/v1/operations/delegations${m3(g3({limit:h,quote:f,..._3.anyofParameter("anyof",e),..._3.queryParameter("initiator",t),..._3.queryParameter("sender",r),..._3.queryParameter("prevDelegate",n),..._3.queryParameter("newDelegate",i),..._3.queryParameter("level",o),..._3.queryParameter("timestamp",a),..._3.queryParameter("senderCodeHash",s),..._3.queryParameter("status",c),..._3.queryParameter("select",l),..._3.queryParameter("sort",u),..._3.queryParameter("offset",d)}))}`,{...p}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),R3=async(e,t,r)=>O3((()=>function({anyof:e,initiator:t,sender:r,target:n,amount:i,id:o,level:a,timestamp:s,senderCodeHash:c,targetCodeHash:l,codeHash:u,entrypoint:d,parameter:h,hasInternals:f,status:p,select:m,sort:g,offset:v,limit:y,micheline:b,quote:w}={},x){return S3.ok(S3.fetchJson(`/v1/operations/transactions${m3(g3({limit:y,micheline:b,quote:w,..._3.anyofParameter("anyof",e),..._3.queryParameter("initiator",t),..._3.queryParameter("sender",r),..._3.queryParameter("target",n),..._3.queryParameter("amount",i),..._3.queryParameter("id",o),..._3.queryParameter("level",a),..._3.queryParameter("timestamp",s),..._3.queryParameter("senderCodeHash",c),..._3.queryParameter("targetCodeHash",l),..._3.queryParameter("codeHash",u),..._3.queryParameter("entrypoint",d),..._3.jsonParameter("parameter",h),..._3.queryParameter("hasInternals",f),..._3.queryParameter("status",p),..._3.queryParameter("select",m),..._3.queryParameter("sort",g),..._3.queryParameter("offset",v)}))}`,{...x}))}({anyof:{fields:["sender","target","initiator"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),I3=async(e,t,r)=>O3((()=>function({anyof:e,initiator:t,sender:r,contractManager:n,contractDelegate:i,originatedContract:o,id:a,typeHash:s,codeHash:c,level:l,timestamp:u,senderCodeHash:d,anyCodeHash:h,status:f,select:p,sort:m,offset:g,limit:v,micheline:y,quote:b}={},w){return S3.ok(S3.fetchJson(`/v1/operations/originations${m3(g3({limit:v,micheline:y,quote:b,..._3.anyofParameter("anyof",e),..._3.queryParameter("initiator",t),..._3.queryParameter("sender",r),..._3.queryParameter("contractManager",n),..._3.queryParameter("contractDelegate",i),..._3.queryParameter("originatedContract",o),..._3.queryParameter("id",a),..._3.queryParameter("typeHash",s),..._3.queryParameter("codeHash",c),..._3.queryParameter("level",l),..._3.queryParameter("timestamp",u),..._3.queryParameter("senderCodeHash",d),..._3.queryParameter("anyCodeHash",h),..._3.queryParameter("status",f),..._3.queryParameter("select",p),..._3.queryParameter("sort",m),..._3.queryParameter("offset",g)}))}`,{...w}))}({sender:{in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl}))),M3=async(e,t,r)=>O3((async()=>(await k3({anyof:{fields:["from","to"],in:[e.join(",")]},...r},{baseUrl:t.tzktApiUrl})).map((e=>({...e,type:"token_transfer"}))))),L3=async e=>O3((async()=>{return await(t={baseUrl:e.tzktApiUrl},S3.ok(S3.fetchJson("/v1/blocks/count",{...t})));var t})),N3=async e=>O3((()=>function({active:e,lastActivity:t,select:r,sort:n,offset:i,limit:o}={},a){return S3.ok(S3.fetchJson(`/v1/delegates${m3(g3({limit:o,..._3.queryParameter("active",e),..._3.queryParameter("lastActivity",t),..._3.queryParameter("select",r),..._3.queryParameter("sort",n),..._3.queryParameter("offset",i)}))}`,{...a}))}({sort:{desc:"stakingBalance"},active:{eq:!0},limit:1e4,select:{fields:["address,alias,stakingBalance"]}},{baseUrl:e.tzktApiUrl}))),D3=async(e,t)=>{const r=s3(e);return t.wallet.batch(r).send()},z3=async(e,t)=>{const r=Mq.fromMnemonic({mnemonic:e,derivationPath:t,curve:"ed25519"});return{pkh:await r.publicKeyHash(),pk:await r.publicKey()}},B3=()=>{const e=Yq();return async(t,r,n,i)=>{const o=await(async(e,t,r)=>{const n=[];let i=0,o=await z3(e,zq(t,i));do{n.push(o),i+=1,o=await z3(e,zq(t,i))}while(await J5(o.pkh,r));return n})(t,n,r),a=await Q5(t),s=e(i,o.length);return o.map((({pk:e,pkh:t},r)=>Bq(e,t,zq(n,r),n,a,s[r])))}},F3=()=>{const e=UR((e=>e.accounts.seedPhrases)),t=UR((e=>e.accounts.secretKeys));return async(r,n)=>{if("secret_key"===r.type){const e=t[r.address.pkh];if(!e)throw new Error(`Missing secret key for account ${r.address.pkh}`);return Hc(e,n)}{const t=e[r.seedFingerPrint];if(!t)throw new Error(`Missing seedphrase for account ${r.address.pkh}`);return((e,t,r)=>Mq.fromMnemonic({mnemonic:e,derivationPath:t,curve:r}).secretKey())(await Hc(t,n),r.derivationPath,r.curve)}}},U3=()=>UR((e=>e.networks.current)),$3=()=>UR((e=>e.networks.available)),H3=()=>{const e=$3(),t=Ei();return r=>{const n=e.find((e=>e.name===r));n&&t(th.setCurrent(n))}},V3=()=>{const e=U3(),t=UR((t=>t.tokens[e.name]));return(e,r)=>(0,ts.get)(t,[e,r])},q3=(e,t)=>e.length>t?e.slice(0,t-3)+"...":e,K3=e=>Pc("tz","mutez",e),W3=e=>Pc("mutez","tz",e),G3=e=>{const t=Xs(W3(e)).toNumber();return`${new Intl.NumberFormat("en-US",{minimumFractionDigits:6,maximumFractionDigits:6}).format(t)} \ua729`},Y3=e=>`${e.slice(0,5)}...${e.slice(-5)}`,Z3=e=>{const t=UR((e=>e.assets.blockLevel));return null!==t?t-e>=2:null},X3=()=>{const e=e4(),t=UR((e=>e.assets.balances.tokens)),r=Object.keys(t);return(0,ts.fromPairs)(r.map((t=>[t,e(t)])))},J3=()=>{const e=V3(),t=UR((e=>e.assets.balances.tokens));return r=>{const n=t[r]||[];return(0,ts.compact)(n.map((({contract:t,tokenId:r,...n})=>{const i=e(t,r);return i&&{...i,...n}})))}},Q3=()=>{const e=(()=>{const e=J3();return t=>e(t).filter((e=>"fa1.2"===e.type))})(),t=(()=>{const e=J3();return t=>e(t).filter((e=>"fa2"===e.type))})();return r=>[...e(r),...t(r)]},e4=()=>{const e=J3();return t=>e(t).filter((e=>"nft"===e.type))},t4=()=>{const e=UR((e=>e.assets.conversionRate));return t=>null===e?null:new Zs(t).multipliedBy(e).decimalPlaces(2,Zs.ROUND_UP)},r4=()=>{const e=UR((e=>e.assets.balances.mutez)),t=t4(),r=(e=>{const t=(0,ts.compact)(Object.values(e));return 0===t.length?null:t.reduce(((e,t)=>e.plus(t)),new Xs(0))})(e);if(null==r)return null;const n=t(W3(r));return{mutez:r.toFixed(),usd:n}},n4=()=>{const e=UR((e=>e.assets.balances.mutez));return t=>e[t]},i4=()=>UR((e=>e.assets.bakers)),o4=e=>{const t=a4(e),r=s4(e),n=c4(e);return t||r||n||{pkh:e.pkh,type:"unknown",label:null}},a4=({pkh:e})=>{const t=Zq()(e);return t?{type:t.type,pkh:e,label:t.label}:null},s4=({pkh:e})=>{const t=(()=>{const e=i4();return t=>e.find((e=>e.address===t))})(),r=t(e);return r?{pkh:e,type:"baker",label:r.name}:null},c4=({pkh:e})=>{const t=$q()(e);return t?{pkh:e,type:"contact",label:t}:null},l4=({number:e,size:t="md"})=>{const r="md"===t?"md":"lg",n="md"===t?"sm":"md",{integer:i,decimal:o}=(e=>{const[t,r]=e.split(".");return{integer:t,decimal:r}})(e);return(0,xn.jsxs)(_n,{alignItems:"end","data-testid":"pretty-number",children:[(0,xn.jsx)(Ln,{size:r,children:i}),o&&(0,xn.jsxs)(Ln,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",size:n,children:[".",o]})]})},u4=({address:e,size:t,...r})=>{const n=n4()(e);if(!n)return null;const i=G3(n);return(0,xn.jsx)(En,{overflow:"hidden",textAlign:"right","data-testid":"account-balance",...r,children:(0,xn.jsx)(l4,{number:i,size:t})})},d4=({address:e,...t})=>{const r=o4(e);return(0,xn.jsx)(tq,{background:LP.white,hasArrow:!0,label:r.label,placement:"left",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",width:"400px",padding:"9px 10px",background:LP.gray[800],borderRadius:"4px","data-testid":"address-tile",...t,children:[(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lq,{addressKind:r}),"unknown"===r.type?(0,xn.jsx)(lF,{marginLeft:"10px",color:LP.gray[300],size:"sm",children:e.pkh}):(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(En,{overflow:"hidden",width:"102px",marginLeft:"12px",whiteSpace:"nowrap",children:(0,xn.jsx)(Ln,{overflow:"hidden",textOverflow:"ellipsis",size:"sm",children:r.label})}),(0,xn.jsx)(lF,{width:"89px",marginLeft:"10px",color:LP.gray[300],size:"xs",children:Y3(r.pkh)})]})]}),(0,xn.jsx)(u4,{overflow:"hidden",textAlign:"right",address:e.pkh})]})})},h4=({contacts:e,onChange:t})=>0===e.length?null:(0,xn.jsx)(oH,{position:"absolute",zIndex:2,overflowY:"auto",width:"100%",maxHeight:300,marginTop:"8px",marginLeft:0,background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px","data-testid":"suggestions-list",listStyleType:"none",children:e.map(((r,n)=>(0,xn.jsx)(En,{children:(0,xn.jsx)(aH,{marginBottom:n===e.length-1?"5px":0,padding:"5px 15px 0 5px",onMouseDown:()=>{t(r.name)},children:(0,xn.jsx)(d4,{width:"370px",height:"40px",padding:"10px 8px 10px 5px",background:LP.gray[700],borderRadius:"4px",_hover:{background:LP.gray[500]},cursor:"pointer",address:td(r.pkh)})})},r.pkh)))}),f4=(e,t)=>{if(""===e)return t;return t.filter((t=>t.name.toLowerCase().includes(e.trim().toLowerCase())))},p4=({contacts:e,isDisabled:t,isLoading:r=!1,allowUnknown:n,inputName:o,onUpdate:a,validate:s,label:c,keepValid:l,style:u,size:d})=>{const{register:h,setValue:f,formState:{defaultValues:p},getValues:m}=PU(),g=f,v=(0,i.useId)(),[y,b]=(0,i.useState)((()=>{var t;if(l||!p)return"";const r=(0,ts.get)(p,o);return r?(null===(t=e.find((e=>e.pkh===r)))||void 0===t?void 0:t.name)||r:""})),[w,x]=(0,i.useState)(!0),[_,S]=(0,i.useState)(f4("",e)),k=m(o),E=t=>{b(t),S(f4(t,e));const r=e.find((e=>e.name===t||e.pkh===t));let i;if(void 0!==r)i=r.pkh,x(!0);else if(n&&rd(t))i=t;else{if(l)return;i=""}g(o,i,{shouldValidate:!0}),a&&a(i)};let A="raw_input";r?A="selected_tile":t?A="disabled_tile":k&&(A="selected_tile");const P=()=>{E(""),x(!1)};return(0,xn.jsxs)(En,{"data-testid":`address-autocomplete-${o}`,children:[(0,xn.jsx)($$,{htmlFor:v,children:c}),"disabled_tile"===A&&(0,xn.jsx)(d4,{address:td(k)}),"selected_tile"===A&&(0,xn.jsx)(En,{height:"48px",background:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],borderRadius:"4px","data-testid":`selected-address-tile-${k}`,onClick:P,paddingY:0,children:(0,xn.jsxs)(Sn,{justifyContent:"space-between",cursor:"pointer","data-testid":"clear-selected-button",children:[(0,xn.jsx)(d4,{width:"short"===d?"338px":"365px",paddingTop:"8px",background:"transparent",address:td(k)}),l?(0,xn.jsx)(Cj,{marginRight:"12px","data-testid":"chevron-icon"}):(0,xn.jsx)(m4,{marginRight:"14px"})]})}),"raw_input"===A&&(0,xn.jsxs)(W$,{children:[(0,xn.jsx)(Z$,{...u,"aria-label":o,autoComplete:"off",id:v,onBlur:e=>{if(e.preventDefault(),x(!0),l&&k!==e.target.value)return E(k);E(e.target.value)},onChange:e=>E(e.target.value),onFocus:()=>x(!1),placeholder:"Enter address or contact name",value:y}),(0,xn.jsx)(eH,{children:y?(0,xn.jsx)(m4,{marginRight:"0px",onClick:P}):(0,xn.jsx)(Cj,{"data-testid":"chevron-icon"})})]}),(0,xn.jsx)(Z$,{...h(o,{required:"Invalid address or contact name",validate:s}),marginBottom:0,"data-testid":`real-address-input-${o}`,name:o,type:"hidden"}),!w&&(0,xn.jsx)(h4,{contacts:_,onChange:E})]})},m4=e=>(0,xn.jsx)(BR,{marginRight:"16px",stroke:LP.gray[450],cursor:"pointer","data-testid":"clear-input-button",...e}),g4=e=>{const t=Object.values(Fq()),r=Wq().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{...e,contacts:t.concat(r)})},v4=e=>{const t=qq().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{...e,contacts:t})},y4=e=>{const t=Wq().map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{...e,contacts:t})},b4=e=>{const t=i4().map((e=>({name:e.name,pkh:e.address})));return(0,xn.jsx)(p4,{...e,contacts:t})},w4=e=>{const t=Qq()(e.account).map((e=>({name:e.label,pkh:e.address.pkh})));return(0,xn.jsx)(p4,{allowUnknown:!1,contacts:t,isDisabled:1===t.length,...e})},x4=({request:e,onSuccess:t})=>{const r=(()=>{const e=Ei();return(t,r,n)=>e(Hd.actions.addConnection({dAppId:t,accountPkh:r,networkType:n}))})(),n=qq(),i=L$({mode:"onBlur"}),{getValues:o,formState:{errors:a,isValid:s}}=i;return(0,xn.jsxs)(oF,{children:[(0,xn.jsxs)(sF,{marginBottom:"24px",children:[(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"center",children:"Permission Request"}),(0,xn.jsxs)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:[e.appMetadata.name," is requesting permission to sign this operation."]}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"center",marginTop:"10px",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Network:"}),(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:e.network.type})]})]}),(0,xn.jsx)(aF,{}),(0,xn.jsxs)(uF,{"data-testid":"beacon-request-body",children:[e.appMetadata.icon&&(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"16px",padding:"15px",borderRadius:"4px",backgroundColor:LP.gray[800],children:[(0,xn.jsx)(hF,{width:"60px",marginRight:"12px",ratio:1,children:(0,xn.jsx)(TR,{borderRadius:"4px",src:e.appMetadata.icon})}),(0,xn.jsx)(Ln,{size:"sm",children:e.appMetadata.name})]}),(0,xn.jsx)(DF,{marginTop:"16px",allowToggle:!0,children:(0,xn.jsxs)(zF,{background:LP.gray[800],border:"none",borderRadius:"8px",children:[(0,xn.jsxs)(BF,{children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",marginY:"10px",size:"md",children:"Request Payload"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(U$,{value:e})})]})}),(0,xn.jsx)(OU,{...i,children:(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!a.address,children:[(0,xn.jsx)(v4,{allowUnknown:!1,inputName:"address",label:"Select Account"}),a.address&&(0,xn.jsx)(eU,{children:a.address.message})]})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!s,onClick:i=>(async()=>{const i=n.find((e=>e.address.pkh===o().address));if(!i)throw new Error("No account selected");const a={type:qM.PermissionResponse,network:{type:e.network.type},scopes:e.scopes,id:e.id,publicKey:i.pk,walletType:"implicit"};await Zte.respond(a),r(e.senderId,i.address.pkh,e.network.type),t()})(),size:"lg",children:"Grant"})})]})};var _4=v(((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":a,...s}=e,c=r||n,l=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,xn.jsx)(Gn,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":a,...s,children:l})}));function S4(e){return lR({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}}]})(e)}function k4(e){return k4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k4(e)}function E4(e){var t=function(e,t){if("object"!=k4(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=k4(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k4(t)?t:String(t)}function A4(e,t,r){return(t=E4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}_4.displayName="IconButton";var P4=r(2156),O4=r.n(P4),T4=r(2248),C4=r.n(T4);function j4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R4(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};const r={mode:"cors",headers:{}};(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).useAPIKey&&(r.headers=R4(R4({},r.headers),$4()));const n=O4()(r,t,{method:"GET"}),i=await U4(e,n);if(i.ok)return i.json();throw H4(i),i},q4=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(i.headers=R4(R4({},i.headers),$4()));const o=O4()(i,r,{method:"POST"});return n.isUrlEncodedData?(o.body=t,"application/json; charset=utf-8"===o.headers["Content-Type"]&&delete o.headers["Content-Type"]):o.body=JSON.stringify(t),((e,t)=>{const r=new Promise(((t,r)=>{const n=setTimeout((()=>{clearTimeout(n),r(new Error(`Timed out in ${e}ms`))}),e)}));return Promise.race([t,r])})(n.timeout||6e4,U4(e,o).then((e=>{if(n.logTracingHeader&&function(e){I4.info(`Request tracing with traceID=${e.headers.get("x-web3-correlation-id")}`)}(e),e.ok)return e.json();throw H4(e),e})))},K4=(e,t)=>({jsonrpc:"2.0",method:e,id:10,params:t});function W4(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var G4=r(2052),Y4=r.n(G4);Promise.resolve(!1),Promise.resolve(!0);var Z4=Promise.resolve();function X4(e,t){return e||(e=0),new Promise((function(r){return setTimeout((function(){return r(t)}),e)}))}function J4(){return Math.random().toString(36).substring(2)}var Q4=0,e6=0;function t6(){var e=(new Date).getTime();return e===Q4?1e3*e+ ++e6:(Q4=e,e6=0,1e3*e)}var r6=C4().getLogger("broadcast-channel");r6.setLevel("error");const n6={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),Z4}catch(Lde){return Promise.reject(Lde)}},canBeUsed:function(e){if("undefined"===typeof window)return!1;if(!e.support3PC)return!1;if("function"===typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1},type:"native",averageResponseTime:function(){return 150},microSeconds:t6};var i6=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this;this.map.set(e,o6()),this._to||(this._to=!0,setTimeout((function(){t._to=!1,function(e){var t=o6()-e.ttl,r=e.map[Symbol.iterator]();for(;;){var n=r.next().value;if(!n)return;var i=n[0];if(!(n[1]0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return"undefined"===typeof t.support3PC&&(t.support3PC=function(){if("undefined"===typeof navigator)return!1;var e=Y4().parse(navigator.userAgent);r6.info(JSON.stringify(e),"current browser info");var t=!0;return navigator.brave&&(t=!1),e.engine.name!==Y4().ENGINE_MAP.WebKit&&e.engine.name!==Y4().ENGINE_MAP.Gecko||(t=!1),t}()),"undefined"===typeof t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"===typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),t.server||(t.server={}),t.server.url||(t.server.url="https://broadcast-server.tor.us"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}var s6="pubkey.broadcast-channel-0-",c6="messages",l6={durability:"relaxed"};function u6(){if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof window){if("undefined"!==typeof window.mozIndexedDB)return window.mozIndexedDB;if("undefined"!==typeof window.webkitIndexedDB)return window.webkitIndexedDB;if("undefined"!==typeof window.msIndexedDB)return window.msIndexedDB}return!1}function d6(e){e.commit&&e.commit()}function h6(e,t){var r=e.transaction(c6,"readonly",l6),n=r.objectStore(c6),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(o);return new Promise((function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}}))}return new Promise((function(e,a){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}catch(Mde){return n.openCursor()}}();s.onerror=function(e){return a(e)},s.onsuccess=function(n){var o=n.target.result;o?o.value.ide.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return e.uuid!==t.uuid&&!t.eMIs.has(e.id)&&!(e.data.time{P6[A6[e]]=e}));const O6={type:"error",data:"parser error"},T6="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),C6="function"===typeof ArrayBuffer,j6=e=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,R6=({type:e,data:t},r,n)=>T6&&t instanceof Blob?r?n(t):I6(t,n):C6&&(t instanceof ArrayBuffer||j6(t))?r?n(t):I6(new Blob([t]),n):n(A6[e]+(t||"")),I6=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function M6(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let L6;function N6(e,t){return T6&&e.data instanceof Blob?e.data.arrayBuffer().then(M6).then(t):C6&&(e.data instanceof ArrayBuffer||j6(e.data))?t(M6(e.data)):void R6(e,!1,(e=>{L6||(L6=new TextEncoder),t(L6.encode(e))}))}const D6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z6="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let r=0;r<64;r++)z6[D6.charCodeAt(r)]=r;const B6="function"===typeof ArrayBuffer,F6=(e,t)=>{if("string"!==typeof e)return{type:"message",data:$6(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:U6(e.substring(1),t)};return P6[r]?e.length>1?{type:P6[r],data:e.substring(1)}:{type:P6[r]}:O6},U6=(e,t)=>{if(B6){const r=(e=>{let t,r,n,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t>4,u[c++]=(15&n)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l})(e);return $6(r,t)}return{base64:!0,data:e}},$6=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,H6=String.fromCharCode(30);let V6;function q6(e){if(e)return function(e){for(var t in q6.prototype)e[t]=q6.prototype[t];return e}(e)}q6.prototype.on=q6.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},q6.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},q6.prototype.off=q6.prototype.removeListener=q6.prototype.removeAllListeners=q6.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})}const G6=K6.setTimeout,Y6=K6.clearTimeout;function Z6(e,t){t.useNativeTimers?(e.setTimeoutFn=G6.bind(K6),e.clearTimeoutFn=Y6.bind(K6)):(e.setTimeoutFn=K6.setTimeout.bind(K6),e.clearTimeoutFn=K6.clearTimeout.bind(K6))}class X6 extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class J6 extends q6{constructor(e){super(),this.writable=!1,Z6(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new X6(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=F6(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}const Q6="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),e8=64,t8={};let r8,n8=0,i8=0;function o8(e){let t="";do{t=Q6[e%e8]+t,e=Math.floor(e/e8)}while(e>0);return t}function a8(){const e=o8(+new Date);return e!==r8?(n8=0,r8=e):e+"."+o8(n8++)}for(;i8{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(Mde){return void this.setTimeoutFn((()=>{this.onError(Mde)}),0)}"undefined"!==typeof document&&(this.index=h8.requestsCount++,h8.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=u8,e)try{this.xhr.abort()}catch(Mde){}"undefined"!==typeof document&&delete h8.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(h8.requestsCount=0,h8.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",f8);else if("function"===typeof addEventListener){addEventListener("onpagehide"in K6?"pagehide":"unload",f8,!1)}function f8(){for(let e in h8.requests)h8.requests.hasOwnProperty(e)&&h8.requests[e].abort()}const p8="function"===typeof Promise&&"function"===typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),m8=K6.WebSocket||K6.MozWebSocket;r(4240).Buffer;const g8="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();function v8(e,t){return"message"===e.type&&"string"!==typeof e.data&&t[0]>=48&&t[0]<=54}const y8={websocket:class extends J6{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=g8?{}:W6(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=g8?new m8(e,t,r):t?new m8(e,t):new m8(e)}catch(Lde){return this.emitReserved("error",Lde)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(Mde){}n&&p8((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=a8()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!m8}},webtransport:class extends J6{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=e.readable.getReader();let r;this.writer=e.writable.getWriter();const n=()=>{t.read().then((({done:e,value:t})=>{e||(r||1!==t.byteLength||54!==t[0]?(this.onPacket(function(e,t,r){V6||(V6=new TextDecoder);const n=t||e[0]<48||e[0]>54;return F6(n?e:V6.decode(e),r)}(t,r,"arraybuffer")),r=!1):r=!0,n())})).catch((e=>{}))};n();const i=this.query.sid?`0{"sid":"${this.query.sid}"}`:"0";this.writer.write((new TextEncoder).encode(i)).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{v8(r,e)&&this.writer.write(Uint8Array.of(54)),this.writer.write(e).then((()=>{n&&p8((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends J6{constructor(e){if(super(e),this.polling=!1,"undefined"!==typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!==typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=d8&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(H6),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,o)=>{R6(e,!1,(e=>{n[o]=e,++i===r&&t(n.join(H6))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=a8()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h8(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},b8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,w8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x8(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=b8.exec(e||""),o={},a=14;for(;a--;)o[w8[a]]=i[a]||"";return-1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,o.query),o}class _8 extends q6{constructor(e,t={}){super(),this.writeBuffer=[],e&&"object"===typeof e&&(t=e,e=null),e?(e=x8(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=x8(t.host).host),Z6(this,t),this.secure=null!=t.secure?t.secure:"undefined"!==typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new y8[e](r)}open(){let e;if(this.opts.rememberUpgrade&&_8.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(Mde){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),r=!1;_8.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;_8.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){r||(r=!0,l(),t.close(),t=null)}const o=e=>{const r=new Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function a(){o("transport closed")}function s(){o("socket closed")}function c(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",a),this.off("close",s),this.off("upgrading",c)};t.once("open",n),t.once("error",o),t.once("close",a),this.once("close",s),this.once("upgrading",c),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",_8.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}var t;return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"===typeof t&&(n=t,t=void 0),"function"===typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){_8.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,E8=Object.prototype.toString,A8="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===E8.call(Blob),P8="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===E8.call(File);function O8(e){return S8&&(e instanceof ArrayBuffer||k8(e))||A8&&e instanceof Blob||P8&&e instanceof File}function T8(e,t){if(!e||"object"!==typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{t.push(((e,t)=>r?e?i(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"===typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:N8.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case N8.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case N8.EVENT:case N8.BINARY_EVENT:this.onevent(e);break;case N8.ACK:case N8.BINARY_ACK:this.onack(e);break;case N8.DISCONNECT:this.ondisconnect();break;case N8.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"===typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:N8.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"===typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:N8.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}V8.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},V8.prototype.reset=function(){this.attempts=0},V8.prototype.setMin=function(e){this.ms=e},V8.prototype.setMax=function(e){this.max=e},V8.prototype.setJitter=function(e){this.jitter=e};class q8 extends q6{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"===typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,Z6(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new V8({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new _8(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=U8(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=U8(t,"error",i);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(U8(e,"ping",this.onping.bind(this)),U8(e,"data",this.ondata.bind(this)),U8(e,"error",this.onerror.bind(this)),U8(e,"close",this.onclose.bind(this)),U8(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(Mde){this.onclose("parse error",Mde)}}ondecoded(e){p8((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new H8(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const K8={};function W8(e,t){"object"===typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!==typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"===typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e="undefined"!==typeof r?r.protocol+"//"+e:"https://"+e),n=x8(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,i=r.id,o=r.path,a=K8[i]&&o in K8[i].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new q8(n,t):(K8[i]||(K8[i]=new q8(n,t)),s=K8[i]),r.query&&!t.query&&(t.query=r.queryKey),s.socket(r.path,t)}Object.assign(W8,{Manager:q8,Socket:H8,io:W8,connect:W8});var G8=r(6652),Y8=r.n(G8),Z8=r(4240).Buffer;const X8=new Qs.ec("secp256k1"),J8=r.g.crypto||r.g.msCrypto||{},Q8=J8.subtle||J8.webkitSubtle,e9=Z8.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),t9=Z8.alloc(32,0);function r9(e,t){if(!e)throw new Error(t||"Assertion failed")}function n9(e){return!!function(e){return Z8.isBuffer(e)&&32===e.length}(e)&&(e.compare(t9)>0&&e.compare(e9)<0)}function i9(e){const t=new Uint8Array(e);return"undefined"===typeof J8.getRandomValues?Z8.from(Y8().randomBytes(e)):(J8.getRandomValues(t),Z8.from(t))}async function o9(e){if(Q8){const t=await Q8.digest("SHA-512",e);return new Uint8Array(t)}const t=Y8().createHash("sha512").update(e).digest();return new Uint8Array(t)}function a9(e){return async function(t,r,n){if(Q8){const i={name:"AES-CBC"},o=await Q8.importKey("raw",r,i,!1,[e]),a={name:"AES-CBC",iv:t},s=await Q8[e](a,o,n);return Z8.from(new Uint8Array(s))}if("encrypt"===e){const e=Y8().createCipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return Z8.concat([i,o])}if("decrypt"===e){const e=Y8().createDecipheriv("aes-256-cbc",r,t),i=e.update(n),o=e.final();return Z8.concat([i,o])}throw new Error(`Unsupported operation: ${e}`)}}const s9=a9("encrypt"),c9=a9("decrypt");async function l9(e,t){if(Q8){const r={name:"HMAC",hash:{name:"SHA-256"}},n=await Q8.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),i=await Q8.sign("HMAC",n,t);return Z8.from(new Uint8Array(i))}const r=Y8().createHmac("sha256",Z8.from(e));r.update(t);return r.digest()}const u9=function(){let e=i9(32);for(;!n9(e);)e=i9(32);return e},d9=function(e){return r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),Z8.from(X8.keyFromPrivate(e).getPublic("array"))},h9=async function(e,t){return r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),r9(t.length>0,"Message should not be empty"),r9(t.length<=32,"Message is too long"),Z8.from(X8.sign(t,e,{canonical:!0}).toDER())},f9=async function(e,t){r9(Z8.isBuffer(e),"Bad private key"),r9(Z8.isBuffer(t),"Bad public key"),r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),r9(65===t.length||33===t.length,"Bad public key"),65===t.length&&r9(4===t[0],"Bad public key"),33===t.length&&r9(2===t[0]||3===t[0],"Bad public key");const r=X8.keyFromPrivate(e),n=X8.keyFromPublic(t),i=r.derive(n.getPublic());return Z8.from(i.toArray())},p9=async function(e,t){r9(Z8.isBuffer(e),"Bad private key"),r9(Z8.isBuffer(t),"Bad public key"),r9(32===e.length,"Bad private key"),r9(n9(e),"Bad private key"),r9(65===t.length||33===t.length,"Bad public key"),65===t.length&&r9(4===t[0],"Bad public key"),33===t.length&&r9(2===t[0]||3===t[0],"Bad public key");const r=X8.keyFromPrivate(e),n=X8.keyFromPublic(t),i=r.derive(n.getPublic());return Z8.from(i.toString(16,64),"hex")},m9=async function(e,t,r){let n=(r=r||{}).ephemPrivateKey||i9(32);for(;!n9(n);)n=r.ephemPrivateKey||i9(32);const i=d9(n),o=await f9(n,e),a=await o9(o),s=r.iv||i9(16),c=a.slice(0,32),l=a.slice(32),u=await s9(s,Z8.from(c),t),d=Z8.concat([s,i,u]);return{iv:s,ephemPublicKey:i,ciphertext:u,mac:await l9(Z8.from(l),d)}},g9=async function(e,t,r){const n=null!==r&&void 0!==r&&r,i=n?p9:f9,o=await i(e,t.ephemPublicKey),a=await o9(o),s=a.slice(0,32),c=a.slice(32),l=Z8.concat([t.iv,t.ephemPublicKey,t.ciphertext]),u=await async function(e,t,r){return function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n0||e._addEL.internal.length>0}function W9(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&K9(e)){var t=function(t){e._addEL[t.type].forEach((function(r){var n=1e5,i=r.time-n;(t.time>=i||"server"===e.method.type)&&r.fn(t.data)}))},r=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,r)})):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function G9(e,t,r){e._addEL[t]=e._addEL[t].filter((function(e){return e!==r})),function(e){if(e._iL&&!K9(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}function Y9(e){this.message=e}V9._pubkey=!0,V9.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return q9(this,"message",e)},postInternal:function(e){return q9(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};G9(this,"message",this._onML),e&&"function"===typeof e?(this._onML=t,W9(this,"message",t)):this._onML=null},addEventListener:function(e,t){W9(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){G9(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){$9.delete(this),this.closed=!0;var t=this._prepP?this._prepP:Z4;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}},Y9.prototype=new Error,Y9.prototype.name="InvalidCharacterError";var Z9="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Y9("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,i=0,o=0,a="";n=t.charAt(o++);~n&&(r=i%4?64*r+n:n,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function X9(e){this.message=e}X9.prototype=new Error,X9.prototype.name="InvalidTokenError";const J9=function(e,t){if("string"!=typeof e)throw new X9("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Z9(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return Z9(t)}}(e.split(".")[r]))}catch(e){throw new X9("Invalid token specified: "+e.message)}},Q9={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},e7={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_TESTNET:"sapphire_testnet",SAPPHIRE_MAINNET:"sapphire_mainnet"},t7=[Q9.AQUA,Q9.CELESTE,Q9.CYAN],r7={[Q9.AQUA]:{migrationCompleted:!1,networkIdentifier:"aqua",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.CELESTE]:{migrationCompleted:!1,networkIdentifier:"celeste",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.CYAN]:{migrationCompleted:!1,networkIdentifier:"cyan",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.MAINNET]:{migrationCompleted:!1,networkIdentifier:"mainnet",networkMigratedTo:e7.SAPPHIRE_MAINNET},[Q9.TESTNET]:{migrationCompleted:!0,networkIdentifier:"teal",networkMigratedTo:e7.SAPPHIRE_TESTNET}},n7={[Q9.MAINNET]:"https://signer.tor.us",[Q9.TESTNET]:"https://signer.tor.us",[Q9.CYAN]:"https://signer-polygon.tor.us",[Q9.AQUA]:"https://signer-polygon.tor.us",[Q9.CELESTE]:"https://signer-polygon.tor.us"},i7={[e7.SAPPHIRE_DEVNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[e7.SAPPHIRE_TESTNET]:["https://sapphire-dev-2-1.authnetwork.dev","https://sapphire-dev-2-2.authnetwork.dev","https://sapphire-dev-2-3.authnetwork.dev","https://sapphire-dev-2-4.authnetwork.dev","https://sapphire-dev-2-5.authnetwork.dev"],[e7.SAPPHIRE_MAINNET]:["https://sapphire-1.auth.network","https://sapphire-2.auth.network","https://sapphire-3.auth.network","https://sapphire-4.auth.network","https://sapphire-5.auth.network"]},o7=(e,t)=>{const r=i7[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=r7[t];return r.map((e=>n&&n.networkIdentifier?`${e}/sss/${n.networkIdentifier}/jrpc`:`${e}/sss/jrpc`))},a7=(e,t)=>{const r=i7[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=r7[t];return r.map((e=>n&&n.networkIdentifier?`${e}/rss/${n.networkIdentifier}`:`${e}/rss`))},s7=(e,t)=>{const r=i7[e];if(!r||0===r.length)throw new Error(`Unsupported network: ${e}`);const n=r7[t];return r.map((e=>n&&n.networkIdentifier?`${e}/tss/${n.networkIdentifier}`:`${e}/tss`))},c7={currentEpoch:"19",torusNodeEndpoints:["https://torus-19.torusnode.com/jrpc","https://torus-node.ens.domains/jrpc","https://torus-node.matic.network/jrpc","https://torus.zilliqa.network/jrpc","https://torus-mainnet.cosmos.network/jrpc","https://torus2.etherscan.com/jrpc","https://torus-node-v2.skalelabs.com/jrpc","https://torus-node.binancex.dev/jrpc","https://torusnode.ont.io/jrpc"],torusIndexes:[1,2,3,4,5,6,7,8,9],torusNodePub:[{X:"bbe83c64177c3775550e6ba6ac2bc059f6847d644c9e4894e42c60d7974d8c2b",Y:"82b49a7caf70def38cdad2740af45c1e4f969650105c5019a29bb18b21a9acb5"},{X:"c208cac4ef9a47d386097a9c915b28e9cb89213abee8d26a17198ee261201b0d",Y:"c7db2fe4631109f40833de9dc78d07e35706549ee48fa557b33e4e75e1047873"},{X:"ca1766bb426d4ca5582818a0c5439d560ea64f5baa060793ab29dd3d0ceacfe",Y:"d46c1d08c40e1306e1bca328c2287b8268166b11a1ba4b8442ea2ad0c5e32152"},{X:"c3934dd2f6f4b3d2e1e398cc501e143c1e1a381b52feb6d1525af34d16253768",Y:"71f5141a5035799099f5ea3e241e66946bc55dc857ac3bd7d6fcdb8dcd3eeeef"},{X:"22e66f1929631d00bf026227581597f085fd94fd952fc0dca9f0833398b5c064",Y:"6088b3912e10a1e9d50355a609c10db7d188f16a2e2fd7357e51bf4f6a74f0a1"},{X:"9dc9fa410f3ce9eb70df70cdea00a49f2c4cc7a31c08c0dab5f863ed35ff5139",Y:"627a291cb87a75c61da3f65d6818e1e05e360217179817ed27e8c73bca7ec122"},{X:"118b9fc07e97b096d899b9f6658463ce6a8caa64038e37fc969df4e6023dd8c6",Y:"baf9fa4e51770f4796ea165dd03a769b8606681a38954a0a92c4cbffd6609ce9"},{X:"8a6d8b925da15a273dec3d8f8395ec35cd6878f274b2b180e4e106999db64043",Y:"96f67f870c157743da0b1eb84d89bf30500d74dc84c11f501ee1cb013acc8c46"},{X:"39cecb62e863729f572f7dfc46c24867981bf04bb405fed0df39e33984bfade5",Y:"61c2364434012e68a2be2e9952805037e52629d7762fafc8e10e9fb5bad8f790"}]},l7={[e7.SAPPHIRE_MAINNET]:[{X:"e0925898fee0e9e941fdca7ee88deec99939ae9407e923535c4d4a3a3ff8b052",Y:"54b9fea924e3f3e40791f9987f4234ae4222412d65b74068032fa5d8b63375c1"},{X:"9124cf1e280aab32ba50dffd2de81cecabc13d82d2c1fe9de82f3b3523f9b637",Y:"fca939a1ceb42ce745c55b21ef094f543b457630cb63a94ef4f1afeee2b1f107"},{X:"555f681a63d469cc6c3a58a97e29ebd277425f0e6159708e7c7bf05f18f89476",Y:"606f2bcc0884fa5b64366fc3e8362e4939841b56acd60d5f4553cf36b891ac4e"},{X:"2b5f58d8e340f1ab922e89b3a69a68930edfe51364644a456335e179bc130128",Y:"4b4daa05939426e3cbe7d08f0e773d2bf36f64c00d04620ee6df2a7af4d2247"},{X:"3ecbb6a68afe72cf34ec6c0a12b5cb78a0d2e83ba402983b6adbc5f36219861a",Y:"dc1031c5cc8f0472bd521a62a64ebca9e163902c247bf05937daf4ae835091e4"}],[e7.SAPPHIRE_TESTNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}],[e7.SAPPHIRE_DEVNET]:[{X:"f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247",Y:"54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7"},{X:"bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a",Y:"ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a"},{X:"b56541684ea5fa40c8337b7688d502f0e9e092098962ad344c34e94f06d293fb",Y:"759a998cef79d389082f9a75061a29190eec0cac99b8c25ddcf6b58569dad55c"},{X:"7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767",Y:"336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b"},{X:"bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773",Y:"bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4"}]},u7=(e,t)=>({currentEpoch:"1",torusNodeEndpoints:o7(e,t),torusNodeSSSEndpoints:o7(e,t),torusNodeRSSEndpoints:a7(e,t),torusNodeTSSEndpoints:s7(e,t),torusIndexes:[1,2,3,4,5],torusNodePub:l7[e]});const d7=C4().getLogger("fnd");class h7{constructor(){let{network:e=e7.SAPPHIRE_MAINNET,fndServerEndpoint:t,enableLogging:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A4(this,"fndServerEndpoint","https://fnd.tor.us/node-details"),A4(this,"_currentEpoch","1"),A4(this,"_torusNodeEndpoints",[]),A4(this,"_torusNodeRSSEndpoints",[]),A4(this,"_torusNodeSSSEndpoints",[]),A4(this,"_torusNodeTSSEndpoints",[]),A4(this,"_torusNodePub",[]),A4(this,"_torusIndexes",[]),A4(this,"updated",void 0),A4(this,"network",void 0),this.network=e,this.updated=!1,t&&(this.fndServerEndpoint=t),r?d7.enableAll():d7.disableAll()}get _nodeDetails(){return{currentEpoch:this._currentEpoch,torusNodeEndpoints:this._torusNodeEndpoints,torusNodeSSSEndpoints:this._torusNodeSSSEndpoints,torusNodeRSSEndpoints:this._torusNodeRSSEndpoints,torusNodeTSSEndpoints:this._torusNodeTSSEndpoints,torusNodePub:this._torusNodePub,torusIndexes:this._torusIndexes,updated:this.updated}}async getNodeDetails(e){let{verifier:t,verifierId:r}=e;try{if(this.updated&&!t7.includes(this.network))return this._nodeDetails;try{const{nodeDetails:e}=await V4(`${this.fndServerEndpoint}?network=${this.network}&verifier=${t}&verifierId=${r}`);return this.setNodeDetails(e),this._nodeDetails}catch(n){d7.error("Failed to fetch node details from server, using local.",n)}const e=function(e){if(Object.values(e7).includes(e))return u7(e);if(Object.values(Q9).includes(e)){const t=r7[e];if(t.migrationCompleted)return u7(t.networkMigratedTo,e);if(e===Q9.MAINNET)return c7}}(this.network);if(!e)throw new Error("Failed to fetch node details");return this.setNodeDetails(e),this._nodeDetails}catch(n){throw d7.error("Failed to fetch node details",n),n}}setNodeDetails(e){const{currentEpoch:t,torusNodeEndpoints:r,torusNodeSSSEndpoints:n,torusNodeRSSEndpoints:i,torusNodeTSSEndpoints:o,torusNodePub:a,torusIndexes:s}=e;this._torusNodeEndpoints=r,this._torusNodeSSSEndpoints=n||[],this._torusNodeRSSEndpoints=i||[],this._torusNodeTSSEndpoints=o||[],this._torusNodePub=a,this._torusIndexes=s,this._currentEpoch=t,this.updated=!0}}var f7=r(5628),p7=r.n(f7),m7=r(4240).Buffer;const g7="GetPubKeyOrKeyAssign",v7="CommitmentRequest",y7="ImportShare",b7="GetShareOrKeyAssign",w7="https://metadata.tor.us",x7=(e,t)=>{let r=e;if("number"===typeof r&&(r=Array.from({length:r},((e,t)=>t))),t>r.length||t<=0)return[];if(t===r.length)return[r];if(1===t)return r.reduce(((e,t)=>[...e,[t]]),[]);const n=[];let i=[];for(let o=0;o<=r.length-t+1;o+=1){i=x7(r.slice(o+1),t-1);for(let e=0;e{const r={};for(let n=0;n=8?o+=t[a].toUpperCase():o+=t[a];return o}function O7(e,t){const r=e.keyFromPrivate(t.toString("hex",64),"hex").getPublic().encode("hex",!1).slice(2);E7.info(r,"public key");return P7(`0x${A7(m7.from(r,"hex")).slice(26)}`)}function T7(e,t,r){const n=e.keyFromPublic({x:t.toString("hex",64),y:r.toString("hex",64)}),i=n.getPublic().encode("hex",!1).slice(2);E7.info(n.getPublic().encode("hex",!1),"public key");return P7(`0x${A7(m7.from(i,"hex")).slice(26)}`)}E7.disableAll();class C7{constructor(e,t,r){A4(this,"x",void 0),A4(this,"y",void 0),A4(this,"ecCurve",void 0),this.x=new(p7())(e,"hex"),this.y=new(p7())(t,"hex"),this.ecCurve=r}encode(e){switch(e){case"arr":return m7.concat([m7.from("0x04","hex"),m7.from(this.x.toString("hex"),"hex"),m7.from(this.y.toString("hex"),"hex")]);case"elliptic-compressed":{const e=this.ecCurve.keyFromPublic({x:this.x.toString("hex",64),y:this.y.toString("hex",64)},"hex");return m7.from(e.getPublic(!0,"hex"))}default:throw new Error("encoding doesn't exist in Point")}}}class j7{constructor(e,t){A4(this,"share",void 0),A4(this,"shareIndex",void 0),this.share=new(p7())(t,"hex"),this.shareIndex=new(p7())(e,"hex")}static fromJSON(e){const{share:t,shareIndex:r}=e;return new j7(r,t)}toJSON(){return{share:this.share.toString("hex"),shareIndex:this.shareIndex.toString("hex")}}}class R7{constructor(e,t){A4(this,"polynomial",void 0),A4(this,"ecCurve",void 0),this.polynomial=e,this.ecCurve=t}getThreshold(){return this.polynomial.length}polyEval(e){const t=new(p7())(e,"hex");let r=new(p7())(t),n=new(p7())(0);n=n.add(this.polynomial[0]);for(let i=1;i"number"===typeof e?new(p7())(e):e instanceof p7()?e:"string"===typeof e?new(p7())(e,"hex"):e)),r={};for(let n=0;ne.eq(t)))?I7(e):t}const M7=e=>Array.from({length:e},(()=>new(p7())(0))),L7=(e,t,r)=>{let n=M7(r.length);const i=((e,t,r)=>{let n=new(p7())(1);const i=r[t].x;for(let o=r.length-1;o>=0;o-=1)if(t!==o){let t=new(p7())(i);t=t.sub(r[o].x),t=t.umod(e.curve.n),n=n.mul(t),n=n.umod(e.curve.n)}return n})(e,t,r);if(0===i.cmp(new(p7())(0)))throw new Error("Denominator for interpolationPoly is 0");n[0]=i.invm(e.curve.n);for(let o=0;o=0;a-=1){i[a+1]=i[a+1].add(n[a]).umod(e.curve.n);let t=new(p7())(r[o].x);t=t.mul(n[a]).umod(e.curve.n),i[a]=i[a].sub(t).umod(e.curve.n)}n=i}}return n},N7=(e,t)=>{const r=(e=>{const t=[...e];return t.sort(((e,t)=>e.x.cmp(t.x))),t})(t),n=M7(r.length);for(let i=0;it)throw new Error("deterministicShares in generateRandomPolynomial should be less or equal than degree to ensure an element of randomness");const o={};n.forEach((t=>{o[t.shareIndex.toString("hex",64)]=new C7(t.shareIndex,t.share,e)}));for(let a=0;a2&&void 0!==arguments[2]?arguments[2]:{};try{const n=await q4(`${e}/get`,t,r,{useAPIKey:!0});return n&&n.message?new(p7())(n.message,16):new(p7())(0)}catch(n){return C4().error("get metadata error",n),new(p7())(0)}}async function H7(e,t,r,n,i,o){let a;const s=arguments.length>6&&void 0!==arguments[6]&&arguments[6]?"getNonce":"getOrSetNonce";return a=o?function(e,t,r,n){const i=e.keyFromPrivate(n.toString("hex",64)),o={data:r,timestamp:new(p7())(~~(t+Date.now()/1e3)).toString(16)},a=i.sign(A7(m7.from(b9()(o),"utf8")).slice(2));return{pub_key_X:i.getPublic().getX().toString("hex",64),pub_key_Y:i.getPublic().getY().toString("hex",64),set_data:o,signature:m7.from(a.r.toString(16,64)+a.s.toString(16,64)+new(p7())("").toString(16,2),"hex").toString("base64")}}(t,r,s,o):{pub_key_X:n,pub_key_Y:i,set_data:{data:s}},q4(`${e}/get_or_set_nonce`,a,void 0,{useAPIKey:!0})}async function V7(e,t,r,n,i,o){return H7(e,t,r,n,i,o,!0)}const q7={logRequestTracing:!1};class K7 extends Error{constructor(e){let{errors:t,responses:r,predicate:n}=e;super("Unable to resolve enough promises."),A4(this,"errors",void 0),A4(this,"responses",void 0),A4(this,"predicate",void 0),this.errors=t,this.responses=r,this.predicate=n}get message(){return`${super.message}. ${this.errors.length} errors: ${this.errors.map((e=>e.message||e)).join(", ")} and ${this.responses.length} responses: ${JSON.stringify(this.responses)}`}toString(){return this.message}}const W7=(e,t)=>new Promise(((r,n)=>{let i=0;const o={resolved:!1},a=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);let c;return e.forEach(((l,u)=>l.then((e=>{s[u]=e})).catch((e=>{a[u]=e})).finally((()=>{if(!o.resolved)return t(s.slice(0),o).then((e=>{o.resolved=!0,r(e)})).catch((e=>{c=e})).finally((()=>{if(i+=1,i===e.length){const e=Object.values(s.reduce(((e,t)=>{if(t){var r;const{id:i,error:o}=t;(null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.length)>0&&(o.data.startsWith("Error occurred while verifying params")?e[i]=(n=o.data).charAt(0).toUpperCase()+n.slice(1):e[i]=o.data)}var n;return e}),{}));if(e.length>0){const t=e.length>1?`\n${e.map((e=>`\u2022 ${e}`)).join("\n")}`:e[0];n(new Error(t))}else{var t;n(new K7({errors:a,responses:s,predicate:(null===(t=c)||void 0===t?void 0:t.message)||c}))}}}))}))))}));function G7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y7(e){for(var t=1;t0){if(h.length!==c.length)throw new Error("Invalid imported shares length");w=!0}for(let x=0;x{E7.error("commitment error",e)}));p.push(e)}return W7(p,(e=>{const t=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error));if(h.length>0&&t.length===c.length)return Promise.resolve(e);if(0===h.length&&t.length>=1+~~(3*c.length/4)){if(t.find((e=>{var t;return!(!e||"1"!==(null===(t=e.result)||void 0===t?void 0:t.nodeindex))})))return Promise.resolve(e)}return Promise.reject(new Error(`invalid ${JSON.stringify(e)}`))})).then((e=>{const t=[],r=[];for(let i=0;iE7.error("share req",e)));t.push(n)}else{const e=q4(c[i],K4(b7,{encrypted:"yes",use_temp:!0,item:[Y7(Y7({},u),{},{idtoken:d,nodesignatures:r,verifieridentifier:l},f)],one_key_flow:!0}),null,{logTracingHeader:q7.logRequestTracing}).catch((e=>E7.error("share req",e)));t.push(e)}}let n;return W7(t,(async(e,t)=>{const r=e.filter((e=>!(!e||"object"!==typeof e)&&!e.error)),o=e.map((e=>{if(e&&e.result&&e.result.keys[0].public_key){if(!n&&!u.extended_verifier_id){var t,r;(null===(t=e.result.keys[0].nonce_data)||void 0===t||null===(r=t.pubNonce)||void 0===r?void 0:r.x)&&(n=e.result.keys[0].nonce_data)}return e.result.keys[0].public_key}})),s=_7(o,1+~~(c.length/2));if(!s)throw new Error("invalid result from nodes, threshold number of public key results are not matching");if(!n&&!u.extended_verifier_id&&!r7[a])throw new Error(`invalid metadata result from nodes, nonce metadata is empty for verifier: ${l} and verifierId: ${u.verifier_id}`);const d=h.length>0?c.length:1+~~(c.length/2);if(r.length>=d&&s&&(n||u.extended_verifier_id||r7[a])){const e=[],o=[],a=[],l=[],d=[];for(let t=0;t0)u&&null!==(f=u[0])&&void 0!==f&&f.ephemPublicKey?o.push(U7(u[0],c[0],m).catch((e=>E7.debug("session sig decryption",e)))):o.push(Promise.resolve(m7.from(c[0],"hex")));else o.push(Promise.resolve(void 0));if((null===i||void 0===i?void 0:i.length)>0)s&&null!==(p=s[0])&&void 0!==p&&p.ephemPublicKey?a.push(U7(s[0],i[0],m).catch((e=>E7.debug("session token sig decryption",e)))):a.push(Promise.resolve(m7.from(i[0],"base64")));else a.push(Promise.resolve(void 0));if((null===d||void 0===d?void 0:d.length)>0){const t=n.result.keys[0];l.push(new(p7())(t.node_index)),t.share_metadata&&e.push(U7(t.share_metadata,m7.from(t.share,"base64").toString("binary").padStart(64,"0"),m).catch((e=>E7.debug("share decryption",e))))}else l.push(void 0),e.push(Promise.resolve(void 0))}const h=await Promise.all(e.concat(o).concat(a)),g=h.slice(0,e.length),v=h.slice(e.length,e.length+o.length),y=h.slice(e.length+o.length,h.length),b=v.filter((e=>!!e)),w=1+~~(c.length/2);if(!u.extended_verifier_id&&b.length!!e));if(!u.extended_verifier_id&&x.length{e?d.push({token:e.toString("base64"),signature:v[t].toString("hex"),node_pubx:r[t].result.node_pubx,node_puby:r[t].result.node_puby}):d.push(void 0)})),t.resolved)return;const _=g.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(p7())(t)}),e)),[]),S=x7(_.length,1+~~(c.length/2));let k=null;for(let t=0;te.includes(r))),n=r.map((e=>e.value)),o=r.map((e=>e.index)),a=D7(i,n,o);if(!a)continue;const c=d9(m7.from(a.toString(16,64),"hex")).toString("hex"),l=c.slice(2,66),u=c.slice(66);if(0===new(p7())(l,16).cmp(new(p7())(s.X,16))&&0===new(p7())(u,16).cmp(new(p7())(s.Y,16))){k=a;break}}if(void 0===k||null===k)throw new Error("could not derive private key");return{privateKey:k,sessionTokenData:d,thresholdNonceData:n,nodeIndexes:l}}throw new Error("Invalid")}))})).then((async e=>{var o;const{privateKey:s,sessionTokenData:c,thresholdNonceData:l,nodeIndexes:d}=e;let h=l;if(!s)throw new Error("Invalid private key returned");const f=s,p=d9(m7.from(f.toString(16,64),"hex")).toString("hex"),g=p.slice(2,66),v=p.slice(66);let y,b,w=new(p7())(null!==(o=h)&&void 0!==o&&o.nonce?h.nonce.padStart(64,"0"):"0","hex"),x="v1";if(u.extended_verifier_id)x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic();else if(r7[a])if(n)h=await V7(t,i,r,g,v,f),w=new(p7())(h.nonce||"0",16),b={X:h.pubNonce.x,Y:h.pubNonce.y},x=h.typeOfUser,"v2"===x&&(y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()));else{x="v1",w=await $7(t,{pub_key_X:g,pub_key_Y:v});const e=f.add(w).umod(i.curve.n);y=i.keyFromPrivate(e.toString(16,64),"hex").getPublic()}else x="v2",y=i.keyFromPublic({x:g,y:v}).getPublic().add(i.keyFromPublic({x:h.pubNonce.x,y:h.pubNonce.y}).getPublic()),b={X:h.pubNonce.x,Y:h.pubNonce.y};const _=O7(i,f),S=T7(i,y.getX(),y.getY());E7.debug("> torus.js/retrieveShares",{finalEvmAddress:S});let k="";if("v1"===x||"v2"===x&&w.gt(new(p7())(0))){k=f.add(w).umod(i.curve.n).toString("hex",64)}let E=!1;return"v1"===x?E=null:"v2"===x&&(E=w.eq(new(p7())("0"))),{finalKeyData:{evmAddress:S,X:y.getX().toString(16,64),Y:y.getY().toString(16,64),privKey:k},oAuthKeyData:{evmAddress:_,X:g,Y:v,privKey:f.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:c,sessionAuthKey:m.toString("hex").padStart(64,"0")},metadata:{pubNonce:b,nonce:w,typeOfUser:x,upgraded:E},nodesData:{nodeIndexes:d.map((e=>e.toNumber()))}}}))}const X7=async(e,t,r)=>{const n=e.map((e=>q4(e,K4("VerifierLookupRequest",{verifier:t,verifier_id:r.toString()})).catch((e=>E7.error("lookup request failed",e)))));return W7(n,(t=>{const r=t.filter((e=>e)),n=_7(r.map((e=>e&&e.error)),1+~~(e.length/2)),i=_7(r.map((e=>e&&e.result)),1+~~(e.length/2));return i||n?Promise.resolve({keyResult:i,errorResult:n}):Promise.reject(new Error(`invalid results ${JSON.stringify(t)}`))}))},J7=async e=>{let t,r,{endpoints:n,torusNodePubs:i,lastPoint:o,firstPoint:a,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d}=e;if(void 0===o?(t=Math.floor(Math.random()*n.length),E7.info("keyassign",t,n[t]),r=t):t=o%n.length,t===a)throw new Error("Looped through all");void 0!==a&&(r=a);const h=K4("KeyAssign",{verifier:s,verifier_id:c.toString()});try{const e=await q4(l,h,{headers:{pubKeyX:i[t].X,pubKeyY:i[t].Y,network:u,clientId:d}},{useAPIKey:!0});return await q4(n[t],Y7(Y7({},h),e),{headers:{"Content-Type":"application/json; charset=utf-8"}})}catch(f){E7.error(f.status,f.message,f,"key assign error");const e=["Timed out","Failed to fetch","cancelled","NetworkError when attempting to fetch resource.","TypeError: Failed to fetch","TypeError: cancelled","TypeError: NetworkError when attempting to fetch resource."];if(502===(null===f||void 0===f?void 0:f.status)||504===(null===f||void 0===f?void 0:f.status)||401===(null===f||void 0===f?void 0:f.status)||e.includes(f.message)||e.some((e=>f.message.includes(e)))||f.message&&f.message.includes("reason: getaddrinfo EAI_AGAIN"))return J7({endpoints:n,torusNodePubs:i,lastPoint:t+1,firstPoint:r,verifier:s,verifierId:c,signerHost:l,network:u,clientId:d});throw new Error(`Sorry, the Torus Network that powers Web3Auth is currently very busy.\n We will generate your key in time. Pls try again later. \n\n ${f.message||""}`)}};function Q7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eee(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0]?(E7.enableAll(),q7.logRequestTracing=!0):E7.disableAll()}static setAPIKey(e){F4(e)}static setEmbedHost(e){B4(e)}static isGetOrSetNonceError(e){return e instanceof k7}static getPostboxKey(e){return"v1"===e.metadata.typeOfUser&&e.finalKeyData.privKey||e.oAuthKeyData.privKey}async retrieveShares(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.isLegacyNetwork?this.legacyRetrieveShares(e,t,r,n,i,o):Z7({legacyMetadataHost:this.legacyMetadataHost,serverTimeOffset:this.serverTimeOffset,enableOneKey:this.enableOneKey,ecCurve:this.ec,allowHost:this.allowHost,network:this.network,clientId:this.clientId,endpoints:e,verifier:r,verifierParams:n,idToken:i,importedShares:[],extraParams:o})}async getPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=r;return this.isLegacyNetwork?this.getLegacyPublicAddress(e,t,{verifier:n,verifierId:i},this.enableOneKey):this.getNewPublicAddress(e,{verifier:n,verifierId:i,extendedVerifierId:o},this.enableOneKey)}async importPrivateKey(e,t,r,n,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(this.isLegacyNetwork)throw new Error("This function is not supported on legacy networks");if(e.length!==t.length)throw new Error("length of endpoints array must be same as length of nodeIndexes array");const c=1+~~(e.length/2)-1,l=[],u=this.ec.keyFromPrivate(a.padStart(64,"0"),"hex");for(const x of t)l.push(new(p7())(x));const d=u.getPrivate(),h=new(p7())(u9()),f=d.sub(h).umod(this.ec.curve.n),p=this.ec.keyFromPrivate(f.toString("hex").padStart(64,"0")).getPublic(),m=z7(this.ec,c,f).generateShares(l),g=this.generateNonceMetadataParams("getOrSetNonce",f,h),v=m7.from(b9()(g.set_data),"utf8").toString("base64"),y=[],b=[];for(let x=0;x5&&void 0!==arguments[5]?arguments[5]:{};const a=[];await V4(this.allowHost,{headers:{verifier:r,verifierId:n.verifier_id,network:this.network,clientId:this.clientId}},{useAPIKey:!0});const s=u9(),c=d9(s).toString("hex"),l=c.slice(2,66),u=c.slice(66),d=A7(m7.from(i,"utf8"));for(let h=0;h{E7.error("commitment",e)}));a.push(t)}return W7(a,(t=>{const r=t.filter((e=>!(!e||"object"!==typeof e)&&!e.error));return r.length>=3*~~(e.length/4)+1?Promise.resolve(t):Promise.reject(new Error(`invalid ${JSON.stringify(t)}`))})).then((a=>{const c=[],l=[];for(let e=0;eE7.error("share req",e)));c.push(a)}return W7(c,(async(r,n)=>{const i=r.filter((e=>e)),o=_7(r.map((e=>e&&e.result&&e.result.keys[0].PublicKey)),1+~~(e.length/2));if(i.length>=1+~~(e.length/2)&&o){const i=[],l=[];for(let e=0;e0){n.result.keys.sort(((e,t)=>new(p7())(e.Index,16).cmp(new(p7())(t.Index,16))));const e=n.result.keys[0];if(e.Metadata){const t={ephemPublicKey:m7.from(e.Metadata.ephemPublicKey,"hex"),iv:m7.from(e.Metadata.iv,"hex"),mac:m7.from(e.Metadata.mac,"hex")};i.push(g9(s,eee(eee({},t),{},{ciphertext:m7.from(m7.from(e.Share,"base64").toString("binary").padStart(64,"0"),"hex")})).catch((e=>E7.debug("share decryption",e))))}else i.push(Promise.resolve(m7.from(e.Share.padStart(64,"0"),"hex")))}else i.push(Promise.resolve(void 0));l.push(new(p7())(t[e],16))}const u=await Promise.all(i);if(n.resolved)return;const d=u.reduce(((e,t,r)=>(t&&e.push({index:l[r],value:new(p7())(t)}),e)),[]),h=x7(d.length,1+~~(e.length/2));let f=null;for(let e=0;et.includes(r))),n=r.map((e=>e.value)),i=r.map((e=>e.index)),a=D7(this.ec,n,i);if(!a)continue;const s=d9(m7.from(a.toString(16,64),"hex")).toString("hex"),c=s.slice(2,66),l=s.slice(66);if(0===new(p7())(c,16).cmp(new(p7())(o.X,16))&&0===new(p7())(l,16).cmp(new(p7())(o.Y,16))){f=a;break}}if(void 0===f||null===f)throw new Error("could not derive private key");return f}throw new Error("invalid")}))})).then((async e=>{const t=e;if(!t)throw new Error("Invalid private key returned");const r=d9(m7.from(t.toString(16,64),"hex")).toString("hex"),n=r.slice(2,66),i=r.slice(66);let o,a,s,c="v1";if(this.enableOneKey){const e=await V7(this.legacyMetadataHost,this.ec,this.serverTimeOffset,n,i,t);o=new(p7())(e.nonce||"0",16),c=e.typeOfUser,"v2"===e.typeOfUser&&(a=this.ec.keyFromPublic({x:n,y:i}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),s={X:e.pubNonce.x,Y:e.pubNonce.y})}else{o=await $7(this.legacyMetadataHost,{pub_key_X:n,pub_key_Y:i});const e=t.add(o).umod(this.ec.curve.n);a=this.ec.keyFromPrivate(e.toString("hex"),"hex").getPublic()}const l=O7(this.ec,t),u=T7(this.ec,a.getX(),a.getY());E7.debug("> torus.js/retrieveShares",{finalEvmAddress:u});let d="";if("v1"===c||"v2"===c&&o.gt(new(p7())(0))){d=t.add(o).umod(this.ec.curve.n).toString("hex",64).padStart(64,"0")}let h=!1;return"v1"===c?h=null:"v2"===c&&(h=o.eq(new(p7())("0"))),{finalKeyData:{evmAddress:u,X:a?a.getX().toString(16,64):"",Y:a?a.getY().toString(16,64):"",privKey:d},oAuthKeyData:{evmAddress:l,X:n,Y:i,privKey:t.toString("hex",64).padStart(64,"0")},sessionData:{sessionTokenData:[],sessionAuthKey:""},metadata:{pubNonce:s,nonce:o,typeOfUser:c,upgraded:h},nodesData:{nodeIndexes:[]}}}))}async getLegacyPublicAddress(e,t,r,n){let i,{verifier:o,verifierId:a}=r;E7.debug("> torus.js/getPublicAddress",{endpoints:e,torusNodePubs:t,verifier:o,verifierId:a});let s=!1;const{keyResult:c,errorResult:l}=await X7(e,o,a)||{};if(l&&JSON.stringify(l).includes("Verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(l&&JSON.stringify(l).includes("Verifier + VerifierID has not yet been assigned")){await J7({endpoints:e,torusNodePubs:t,lastPoint:void 0,firstPoint:void 0,verifier:o,verifierId:a,signerHost:this.signerHost,network:this.network,clientId:this.clientId});const r=await((e,t,r,n)=>new Promise(((i,o)=>{setTimeout((()=>{X7(e,t,r).then(i).catch(o)}),n)})))(e,o,a,1e3);i=null===r||void 0===r?void 0:r.keyResult,s=!0}else{if(!c)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`);i=c}if(E7.debug("> torus.js/getPublicAddress",{finalKeyResult:i,isNewKey:s}),i)return this.formatLegacyPublicKeyData({finalKeyResult:i,isNewKey:s,enableOneKey:n});throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(l||{})}`)}generateNonceMetadataParams(e,t,r){const n=this.ec.keyFromPrivate(t.toString("hex",64)),i={operation:e,timestamp:new(p7())(~~(this.serverTimeOffset+Date.now()/1e3)).toString(16)};r&&(i.data=r.toString("hex",64));const o=n.sign(A7(m7.from(b9()(i),"utf8")).slice(2));return{pub_key_X:n.getPublic().getX().toString("hex",64),pub_key_Y:n.getPublic().getY().toString("hex",64),set_data:i,signature:m7.from(o.r.toString(16,64)+o.s.toString(16,64)+new(p7())("").toString(16,2),"hex").toString("base64")}}async getNewPublicAddress(e,t,r){let{verifier:n,verifierId:i,extendedVerifierId:o}=t;E7.debug("> torus.js/getPublicAddress",{endpoints:e,verifier:n,verifierId:i});const a=await(async e=>{const{endpoints:t,network:r,verifier:n,verifierId:i,extendedVerifierId:o}=e,a=t.map((e=>q4(e,K4(g7,{verifier:n,verifier_id:i.toString(),extended_verifier_id:o,one_key_flow:!0,fetch_node_index:!0}),null,{logTracingHeader:q7.logRequestTracing}).catch((e=>E7.error(`${g7} request failed`,e)))));let s;const c=[],l=await W7(a,(e=>{const a=e.filter((e=>{if(e&&!e.error){var t,r,n;if(!s)(null===(t=e.result)||void 0===t||null===(r=t.keys[0].nonce_data)||void 0===r||null===(n=r.pubNonce)||void 0===n?void 0:n.x)&&(s=e.result.keys[0].nonce_data);return e}return!1})),l=_7(a.map((e=>e&&e.error)),1+~~(t.length/2)),u=_7(a.map((e=>e&&(e=>{const t={keys:[],is_new_key:e.is_new_key};return e&&e.keys&&e.keys.length>0&&(t.keys=e.keys.map((e=>({pub_key_X:e.pub_key_X,pub_key_Y:e.pub_key_Y,address:e.address})))),t})(e.result))),1+~~(t.length/2));return u&&(s||o||r7[r])||l?(u&&e.forEach((e=>{if(e&&e.result){const t=parseInt(e.result.node_index);t&&c.push(t)}})),Promise.resolve({keyResult:u,nodeIndexes:c,errorResult:l,nonceResult:s})):Promise.reject(new Error(`invalid public key result: ${JSON.stringify(e)} and nonce result:${JSON.stringify(s||{})} for verifier: ${n}, verifierId: ${i} and extendedVerifierId: ${o} `))}));return l})({endpoints:e,network:this.network,verifier:n,verifierId:i,extendedVerifierId:o}),{errorResult:s,keyResult:c,nodeIndexes:l=[]}=a,{nonceResult:u}=a;if(s&&JSON.stringify(s).toLowerCase().includes("verifier not supported"))throw new Error("Verifier not supported. Check if you: \n\n 1. Are on the right network (Torus testnet/mainnet) \n\n 2. Have setup a verifier on dashboard.web3auth.io?");if(s)throw new Error(`node results do not match at first lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(E7.debug("> torus.js/getPublicAddress",{keyResult:c}),null===c||void 0===c||!c.keys)throw new Error(`node results do not match at final lookup ${JSON.stringify(c||{})}, ${JSON.stringify(s||{})}`);if(!u&&!o&&!r7[this.network])throw new k7("metadata nonce is missing in share response");const{pub_key_X:d,pub_key_Y:h}=c.keys[0];let f;const p=new(p7())((null===u||void 0===u?void 0:u.nonce)||"0",16);let m,g;if(o)g=this.ec.keyFromPublic({x:d,y:h}).getPublic(),m=g;else{if(r7[this.network])return this.formatLegacyPublicKeyData({isNewKey:c.is_new_key,enableOneKey:r,finalKeyResult:{keys:c.keys}});{const e=u;m=this.ec.keyFromPublic({x:d,y:h}).getPublic(),g=this.ec.keyFromPublic({x:d,y:h}).getPublic().add(this.ec.keyFromPublic({x:e.pubNonce.x,y:e.pubNonce.y}).getPublic()),f={X:e.pubNonce.x,Y:e.pubNonce.y}}}if(!m)throw new Error("Unable to derive oAuthPubKey");const v=m.getX().toString(16,64),y=m.getY().toString(16,64),b=T7(this.ec,m.getX(),m.getY());if(E7.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:v,Y:y,oAuthAddress:b,nonce:null===p||void 0===p?void 0:p.toString(16),pubNonce:f}),!g)throw new Error("Unable to derive finalPubKey");const w=g?g.getX().toString(16,64):"",x=g?g.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:b,X:v,Y:y},finalKeyData:{evmAddress:g?T7(this.ec,g.getX(),g.getY()):"",X:w,Y:x},metadata:{pubNonce:f,nonce:p,upgraded:(null===u||void 0===u?void 0:u.upgraded)||!1,typeOfUser:"v2"},nodesData:{nodeIndexes:l}}}async formatLegacyPublicKeyData(e){var t,r;const{finalKeyResult:n,enableOneKey:i,isNewKey:o}=e,{pub_key_X:a,pub_key_Y:s}=n.keys[0];let c,l,u,d,h;const f=this.ec.keyFromPublic({x:a,y:s}).getPublic();if(i){try{c=await H7(this.legacyMetadataHost,this.ec,this.serverTimeOffset,a,s,void 0,!o),l=new(p7())(c.nonce||"0",16),d=c.typeOfUser}catch{throw new k7}if("v1"===c.typeOfUser)u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());else{if("v2"!==c.typeOfUser)throw new Error("getOrSetNonce should always return typeOfUser.");u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPublic({x:c.pubNonce.x,y:c.pubNonce.y}).getPublic()),h={X:c.pubNonce.x,Y:c.pubNonce.y}}}else d="v1",l=await $7(this.legacyMetadataHost,{pub_key_X:a,pub_key_Y:s}),u=this.ec.keyFromPublic({x:a,y:s}).getPublic().add(this.ec.keyFromPrivate(l.toString(16)).getPublic());if(!f)throw new Error("Unable to derive oAuthPubKey");const p=f.getX().toString(16,64),m=f.getY().toString(16,64),g=T7(this.ec,f.getX(),f.getY());if(E7.debug("> torus.js/getPublicAddress, oAuthKeyData",{X:p,Y:m,oAuthAddress:g,nonce:null===(t=l)||void 0===t?void 0:t.toString(16),pubNonce:h}),"v2"===d&&!u)throw new Error("Unable to derive finalPubKey");const v=u?u.getX().toString(16,64):"",y=u?u.getY().toString(16,64):"";return{oAuthKeyData:{evmAddress:g,X:p,Y:m},finalKeyData:{evmAddress:u?T7(this.ec,u.getX(),u.getY()):"",X:v,Y:y},metadata:{pubNonce:h,nonce:l,upgraded:(null===(r=c)||void 0===r?void 0:r.upgraded)||!1,typeOfUser:d},nodesData:{nodeIndexes:[]}}}}var ree=r(5679),nee=r(4240).Buffer;function iee(e){return nee.from((0,w9.u6)(e))}const oee=new Qs.ec("secp256k1");function aee(e){return{iv:nee.from(e.iv,"hex"),ephemPublicKey:nee.from(e.ephemPublicKey,"hex"),ciphertext:nee.from(e.ciphertext,"hex"),mac:nee.from(e.mac,"hex")}}function see(e){return{iv:nee.from(e.iv).toString("hex"),ephemPublicKey:nee.from(e.ephemPublicKey).toString("hex"),ciphertext:nee.from(e.ciphertext).toString("hex"),mac:nee.from(e.mac).toString("hex")}}async function cee(e,t){const r=JSON.stringify(t),n=nee.from(r,"utf-8"),i=see(await m9(d9(nee.from(e,"hex")),n));return JSON.stringify(i)}async function lee(e,t){const r=aee(JSON.parse(t)),n=oee.keyFromPrivate(e),i=(await g9(nee.from(n.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8");return JSON.parse(i)}var uee=r(4240).Buffer;const dee="google",hee="facebook",fee="reddit",pee="discord",mee="twitch",gee="apple",vee="github",yee="linkedin",bee="twitter",wee="weibo",xee="line",_ee="email_password",See="passwordless",kee="jwt",Eee="webauthn",Aee="single_id_verifier",Pee={POPUP:"popup",REDIRECT:"redirect"},Oee="localStorage",Tee="server",Cee="triggerLogin",jee="triggerAggregateLogin",Ree="triggerHybridAggregateLogin",Iee="fetchNodeDetails",Mee="pubAddressLookup",Lee="fetchShares";var Nee=C4().getLogger("customauth");const Dee={[gee]:"apple",[vee]:"github",[yee]:"linkedin",[bee]:"twitter",[wee]:"weibo",[xee]:"line",[_ee]:"Username-Password-Authentication",[See]:"email"},zee=e=>e.href.endsWith("/")?e.href:`${e.href}/`,Bee={webWorkerSupport:!1};function Fee(e,t){return t?e:e.toLowerCase()}const Uee=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{name:i,sub:o}=e;if(r)return Fee(e[r],n);switch(t){case See:case _ee:return Fee(i,n);case wee:case vee:case bee:case gee:case yee:case xee:case kee:return Fee(o,n);default:throw new Error("Invalid login type")}},$ee=(e,t)=>{const r=e.split("&").reduce(((e,t)=>{const[r,n]=t.split("=");return e[r]=n,e}),{});Nee.info(r,t);let n={},i="";return Object.keys(r).length>0&&r.state?(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(r.state))))||{},i=r.error_description||r.error||i):Object.keys(t).length>0&&t.state&&(n=JSON.parse(atob(decodeURIComponent(decodeURIComponent(t.state))))||{},t.error&&(i=t.error)),{error:i,instanceParameters:n,hashParameters:r}};function Hee(e){const{baseURL:t,query:r,hash:n}=e,i=new URL(t);if(r&&Object.keys(r).forEach((e=>{i.searchParams.append(e,r[e])})),n){const e=new URL(Hee({baseURL:t,query:n})).searchParams.toString();i.hash=e}return i.toString()}const Vee=e=>{try{return new URL(decodeURIComponent(e))}catch(t){throw new Error(`${(null===t||void 0===t?void 0:t.message)||""}, Note: Your jwt domain: (i.e ${e}) must have http:// or https:// prefix`)}};function qee(e){return e!==hee&&e!==xee||!function(){const e=Y4().getParser(navigator.userAgent).getPlatform();return e.type===Y4().PLATFORMS_MAP.tablet||e.type===Y4().PLATFORMS_MAP.mobile}()?1e4:6e4}class Kee extends rK.EventEmitter{constructor(e){let{url:t,target:r,features:n,timeout:i=3e4}=e;super(),A4(this,"url",void 0),A4(this,"target",void 0),A4(this,"features",void 0),A4(this,"window",void 0),A4(this,"windowTimer",void 0),A4(this,"iClosedWindow",void 0),A4(this,"timeout",void 0),this.url=t,this.target=r||"_blank",this.features=n||function(){const e=void 0!==window.screenLeft?window.screenLeft:window.screenX,t=void 0!==window.screenTop?window.screenTop:window.screenY,r=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,n=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,i=Math.abs((r-1200)/2/1+e);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=1200,top=${Math.abs((n-700)/2/1+t)},left=${i}`}(),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this.timeout=i,this._setupTimer()}_setupTimer(){this.window&&(this.windowTimer=Number(setInterval((()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),setTimeout((()=>{this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0}),this.timeout)),void 0===this.window&&clearInterval(this.windowTimer)}),500)))}open(){var e;return this.window=window.open(this.url.href,this.target,this.features),null!==(e=this.window)&&void 0!==e&&e.focus&&this.window.focus(),Promise.resolve()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(e){e?window.location.replace(this.url.href):window.location.href=this.url.href}}const Wee=["access_token","id_token"];function Gee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yee(e){for(var t=1;t{let n;const i=async t=>{try{const{error:i,data:o}=t,a=o||{},{instanceParams:s,hashParams:{access_token:c,id_token:l}}=a,u=W4(a.hashParams,Wee);if(i)return Nee.error(t),void r(new Error(`Error: ${i}. Info: ${JSON.stringify(t.data||{})}`));t.data&&s.verifier===this.verifier&&(Nee.info(t.data),!this.redirectToOpener&&n&&await n.postMessage({success:!0}),e(Yee(Yee({accessToken:c,idToken:l||""},u),{},{state:s})))}catch(i){Nee.error(i),r(i)}};if(this.redirectToOpener){const e=async r=>{if(!r.data)return;const n=r.data;n.channel===`redirect_channel_${this.nonce}`&&(window.removeEventListener("message",e),i(n),t.close())};window.addEventListener("message",e)}else n=new V9(`redirect_channel_${this.nonce}`,Bee),n.addEventListener("message",(async e=>{await i(e),n.close(),t.close()}));t.open(),t.once("close",(()=>{n&&n.close(),r(new Error("user closed popup"))}))})):(t.redirect(e.locationReplaceOnRedirect),null)}}class Xee extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","identify email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://discord.com/api/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://discord.com/api/users/@me",{headers:{Authorization:`Bearer ${t}`}}),{id:n,avatar:i,email:o="",username:a="",discriminator:s=""}=r;return{profileImage:null===i?`https://cdn.discordapp.com/embed/avatars/${Number(s)%5}.png`:`https://cdn.discordapp.com/avatars/${n}/${i}.png?size=2048`,name:`${a}#${s}`,email:o,verifierId:n,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}class Jee extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","public_profile email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.facebook.com/v15.0/dialog/oauth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://graph.facebook.com/me?fields=name,email,picture.type(large)",{headers:{Authorization:`Bearer ${t}`}}),{name:n="",id:i,picture:o,email:a=""}=r;return{email:a,name:n,profileImage:o.data.url||"",verifier:this.verifier,verifierId:i,typeOfLogin:this.typeOfLogin}}}class Qee extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token id_token"),A4(this,"SCOPE","profile email openid"),A4(this,"PROMPT","consent select_account"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://accounts.google.com/o/oauth2/v2/auth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,nonce:this.nonce},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://www.googleapis.com/userinfo/v2/me",{headers:{Authorization:`Bearer ${t}`}}),{picture:n="",email:i="",name:o=""}=r;return{email:i,name:o,profileImage:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}let ete=class extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"SCOPE","openid profile email"),A4(this,"RESPONSE_TYPE","token id_token"),A4(this,"PROMPT","login"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const{domain:e}=this.jwtParams,t=Vee(e);t.pathname+=t.pathname.endsWith("/")?"authorize":"/authorize";const r=JSON.parse(JSON.stringify(this.jwtParams));delete r.domain;const n=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,connection:Dee[this.typeOfLogin],nonce:this.nonce},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await V4(`${zee(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:Uee(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){C4().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=J9(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:Uee(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}};class tte extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=JSON.parse(JSON.stringify(this.jwtParams));delete e.domain;const t=O4()({state:this.state,client_id:this.clientId,nonce:this.nonce},e);this.finalURL=new URL(Hee({baseURL:this.redirect_uri,query:null,hash:t}))}async getUserInfo(e){const{idToken:t,accessToken:r}=e,{domain:n,verifierIdField:i,isVerifierIdCaseSensitive:o,user_info_route:a="userinfo"}=this.jwtParams;if(r)try{const e=new URL(n),t=await V4(`${zee(e)}${a}`,{headers:{Authorization:`Bearer ${r}`}}),{picture:s,name:c,email:l}=t;return{email:l,name:c,profileImage:s,verifierId:Uee(t,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}catch(s){C4().warn(s,"Unable to get userinfo from endpoint")}if(t){const e=J9(t),{name:r,email:n,picture:a}=e;return{profileImage:a,name:r,email:n,verifierId:Uee(e,this.typeOfLogin,i,o),verifier:this.verifier,typeOfLogin:this.typeOfLogin}}throw new Error("Access/id token not available")}handleLoginWindow(e){const{id_token:t,access_token:r}=this.jwtParams,n=new Kee({url:this.finalURL,features:e.popupFeatures});return this.uxMode!==Pee.REDIRECT?Promise.resolve({state:{},idToken:t,accessToken:r}):(n.redirect(e.locationReplaceOnRedirect),null)}}const rte=["access_token","id_token"];function nte(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ite(e){for(var t=1;t{if(this.redirectToOpener)return void t(new Error("Cannot use redirect to opener for passwordless"));const r=r=>{try{const{error:n,data:i}=r,o=i||{},{instanceParams:a,hashParams:{access_token:s,id_token:c}}=o,l=W4(o.hashParams,rte);if(n)return Nee.error(r.error),void t(new Error(n));r.data&&a.verifier===this.verifier&&(Nee.info(r.data),e(ite(ite({accessToken:s,idToken:c||""},l),{},{state:a})))}catch(n){Nee.error(n),t(n)}},n=new V9(`redirect_channel_${this.nonce}`,Bee);n.addEventListener("message",(async e=>{r(e),n.close()}));try{const{connection:e="email",login_hint:r}=this.jwtParams,n=O4()({client_id:this.clientId,connection:e,email:"email"===e?r:void 0,phone_number:"sms"===e?r:void 0,send:"link",authParams:{scope:this.SCOPE,state:this.state,response_type:this.RESPONSE_TYPE,redirect_uri:this.redirect_uri,nonce:this.nonce,prompt:this.PROMPT}},{authParams:this.jwtParams});q4(this.finalURL.href,JSON.parse(JSON.stringify(n))).then((e=>{Nee.info("posted",e)})).catch((e=>{Nee.error(e),t(e)}))}catch(i){Nee.error(i),t(i)}}))}}class ate extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","identity"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://www.reddit.com/api/v1/authorize"+(window.innerWidth<600?".compact":"")),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://oauth.reddit.com/api/v1/me",{headers:{Authorization:`Bearer ${t}`}}),{icon_img:n="",name:i=""}=r;return{email:"",name:i,profileImage:n.split("?").length>0?n.split("?")[0]:n,verifier:this.verifier,verifierId:i.toLowerCase(),typeOfLogin:this.typeOfLogin}}}class ste extends Zee{constructor(e,t,r,n,i,o,a,s){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"RESPONSE_TYPE","token"),A4(this,"SCOPE","user:read:email"),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.setFinalUrl()}setFinalUrl(){const e=new URL("https://id.twitch.tv/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),r=O4()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE,force_verify:!0},t);Object.keys(r).forEach((t=>{r[t]&&e.searchParams.append(t,r[t])})),this.finalURL=e}async getUserInfo(e){const{accessToken:t}=e,r=await V4("https://api.twitch.tv/helix/users",{headers:{Authorization:`Bearer ${t}`,"Client-ID":this.clientId}}),[{profile_image_url:n="",display_name:i="",email:o="",id:a}]=r.data||[];return{profileImage:n,name:i,email:o,verifierId:a,verifier:this.verifier,typeOfLogin:this.typeOfLogin}}}const cte="https://api.webauthn.openlogin.com";class lte extends Zee{constructor(e,t,r,n,i,o,a,s,c){super(e,t,r,n,i,o,a,s),A4(this,"clientId",void 0),A4(this,"verifier",void 0),A4(this,"redirect_uri",void 0),A4(this,"typeOfLogin",void 0),A4(this,"uxMode",void 0),A4(this,"redirectToOpener",void 0),A4(this,"jwtParams",void 0),A4(this,"customState",void 0),A4(this,"registerOnly",void 0),this.clientId=e,this.verifier=t,this.redirect_uri=r,this.typeOfLogin=n,this.uxMode=i,this.redirectToOpener=o,this.jwtParams=a,this.customState=s,this.registerOnly=c,this.setFinalUrl()}setFinalUrl(){const{webauthnURL:e}=this.customState||{},t=e?new URL(e):new URL("https://webauthn.openlogin.com"),r=JSON.parse(JSON.stringify(this.jwtParams||{})),n=O4()({register_only:!!this.registerOnly,state:this.state,client_id:this.clientId,redirect_uri:this.redirect_uri},r);Object.keys(n).forEach((e=>{n[e]&&t.searchParams.append(e,n[e])})),this.finalURL=t}async getUserInfo(e){const{idToken:t,ref:r,extraParamsPassed:n,extraParams:i}=e;let o,a,s,c,l,u,d,h,f;if("true"===n){Nee.debug("extraParamsPassed is true, using extraParams passed through hashParams");try{({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=JSON.parse(atob(i)))}catch(p){Nee.warn("unable to parse extraParams",p),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await V4(`${cte}/signature/fetch/${t}`))}}else Nee.debug("extraParamsPassed is false, using extraParams passed through bridge server"),({verifier_id:o,signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}=await V4(`${cte}/signature/fetch/${t}`));if(a!==t)throw new Error("idtoken should be equal to signature");return{email:"",name:"WebAuthn Login",profileImage:"",verifier:this.verifier,verifierId:o,typeOfLogin:this.typeOfLogin,ref:r,registerOnly:this.registerOnly,extraVerifierParams:{signature:a,clientDataJSON:s,authenticatorData:c,publicKey:l,challenge:u,rpOrigin:d,credId:h,transports:f}}}}const ute=e=>{let{clientId:t,redirect_uri:r,typeOfLogin:n,verifier:i,jwtParams:o,redirectToOpener:a,uxMode:s,customState:c,registerOnly:l}=e;if(!i||!n||!t)throw new Error("Invalid params");const{domain:u,login_hint:d,id_token:h,access_token:f}=o||{};switch(n){case dee:return new Qee(t,i,r,n,s,a,o,c);case hee:return new Jee(t,i,r,n,s,a,o,c);case mee:return new ste(t,i,r,n,s,a,o,c);case fee:return new ate(t,i,r,n,s,a,o,c);case pee:return new Xee(t,i,r,n,s,a,o,c);case See:if(!u||!d)throw new Error("Invalid params");return new ote(t,i,r,n,s,a,o,c);case gee:case vee:case yee:case bee:case wee:case xee:case _ee:case kee:if(h||f)return new tte(t,i,r,n,s,a,o,c);if(!u)throw new Error("Invalid params");return new ete(t,i,r,n,s,a,o,c);case Eee:return new lte(t,i,r,n,s,a,o,c,l);default:throw new Error("Invalid login type")}};class dte{constructor(e){A4(this,"sentry",null),this.sentry=e}startTransaction(e){if(this.sentry)return this.sentry.startTransaction(e)}finishTransaction(e){e&&e.finish()}}class hte{constructor(e){A4(this,"currentStorageMethod",Oee),A4(this,"isInitialized",!1),A4(this,"storageServerUrl","https://broadcast-server.tor.us"),this.storageServerUrl=e}init(){const e=function(){var e;const t=Y4().parse(navigator.userAgent);Nee.info(JSON.stringify(t),"current browser info");let r=!0;return null!==(e=navigator)&&void 0!==e&&e.brave&&(r=!1),t.engine.name!==Y4().ENGINE_MAP.WebKit&&t.engine.name!==Y4().ENGINE_MAP.Gecko||(r=!1),r}(),t=function(e){let t;try{t=window[e];const r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(Mde){return Mde&&(22===Mde.code||1014===Mde.code||"QuotaExceededError"===Mde.name||"NS_ERROR_DOM_QUOTA_REACHED"===Mde.name)&&t&&0!==t.length}}(Oee);this.currentStorageMethod=e&&t?Oee:Tee,this.isInitialized=!0}async storeLoginDetails(e,t){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===Tee){const r=iee(uee.from(t,"utf8")),n=r.toString("hex"),i=d9(r).toString("hex"),o=await cee(n,e),a=(await h9(r,iee(uee.from(o,"utf8")))).toString("hex");await q4(`${this.storageServerUrl}/store/set`,{key:i,data:o,signature:a})}else window.localStorage.setItem(`torus_login_${t}`,JSON.stringify(e))}async retrieveLoginDetails(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===Tee){const t=iee(uee.from(e,"utf8")),n=t.toString("hex"),i=d9(t).toString("hex");try{const e=await V4(`${this.storageServerUrl}/store/get?key=${i}`);if(e.message){return await lee(n,e.message)}}catch(r){if(404!==r.status)throw r;Nee.warn(r,"Session likely expired")}}const t=window.localStorage.getItem(`torus_login_${e}`);return JSON.parse(t||"{}")}clearLoginDetailsStorage(e){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");this.currentStorageMethod===Oee&&window.localStorage.removeItem(`torus_login_${e}`)}clearOrphanedLoginDetails(){if(!this.isInitialized)throw new Error("StorageHelper is not initialized");if(this.currentStorageMethod===Oee){Object.keys(window.localStorage).forEach((e=>{e.startsWith("torus_login_")&&window.localStorage.removeItem(e)}))}}}const fte=["access_token","id_token"],pte=["access_token","id_token"],mte=["access_token","id_token"],gte=["args","method"];function vte(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yte(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.storageHelper.init(),t)this.isInitialized=!0;else{if(!e){if(!(await fetch(`${this.config.baseUrl}sw.js`,{cache:"reload"})).ok)throw new Error("Service worker is not being served. Please serve it");try{return await(n=this.config.baseUrl,new Promise(((e,t)=>{const r=`${n}sw.js`;"serviceWorker"in window.navigator?(0,ree.s)(r,{ready(){Nee.info("App is being served from cache by a service worker.\n For more details, visit https://goo.gl/AFskqB"),e(void 0)},registered(){Nee.info("Service worker has been registered."),e(void 0)},cached(){Nee.info("Content has been cached for offline use."),e(void 0)},updatefound(){Nee.info("New content is downloading.")},updated(){Nee.info("New content is available; please refresh.")},offline(){Nee.info("No internet connection found. App is running in offline mode."),t(new Error("App is offline"))},error(e){Nee.error("Error during service worker registration:",e),t(e)}}):t(new Error("Service workers are not supported"))}))),void(this.isInitialized=!0)}catch(i){Nee.warn(i)}}var n;if(!r)return(()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t?void 0:t.userAgent.toLowerCase().indexOf("firefox"))>-1||!1})()?void(this.isInitialized=!0):void await this.handlePrefetchRedirectUri();this.isInitialized=!0}}async triggerLogin(e){const{verifier:t,typeOfLogin:r,clientId:n,jwtParams:i,hash:o,queryParameters:a,customState:s,registerOnly:c}=e;if(Nee.info("Verifier: ",t),!this.isInitialized)throw new Error("Not initialized yet");if(c&&r!==Eee)throw new Error("registerOnly flag can only be passed for webauthn");const l=ute({typeOfLogin:r,clientId:n,verifier:t,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:i,uxMode:this.config.uxMode,customState:s,registerOnly:c});let u;if(o&&a){const{error:e,hashParameters:t,instanceParameters:r}=$ee(o,a);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;u=yte(yte({accessToken:n,idToken:i},W4(t,fte)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===Pee.REDIRECT&&await this.storageHelper.storeLoginDetails({method:Cee,args:e},l.nonce),u=await l.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===Pee.REDIRECT)return null;const d=await l.getUserInfo(u);if(c){const e=this.sentryHandler.startTransaction({name:Iee}),r=await this.nodeDetailManager.getNodeDetails({verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(e);const n=this.sentryHandler.startTransaction({name:Mee}),i=await this.torus.getPublicAddress(r.torusNodeEndpoints,r.torusNodePub,{verifier:t,verifierId:d.verifierId});this.sentryHandler.finishTransaction(n);const o={userInfo:yte(yte({},d),u)};return yte(yte(yte({},o),i),{},{finalKeyData:yte(yte({},i.finalKeyData),{},{privKey:void 0}),oAuthKeyData:yte(yte({},i.finalKeyData),{},{privKey:void 0}),metadata:yte(yte({},i.metadata),{},{nonce:void 0}),sessionData:void 0})}return yte(yte({},await this.getTorusKey(t,d.verifierId,{verifier_id:d.verifierId},u.idToken||u.accessToken,d.extraVerifierParams)),{},{userInfo:yte(yte({},d),u)})}async triggerAggregateLogin(e){const{aggregateVerifierType:t,verifierIdentifier:r,subVerifierDetailsArray:n}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!t||!r||!Array.isArray(n))throw new Error("Invalid params");if(t===Aee&&1!==n.length)throw new Error("Single id verifier can only have one sub verifier");const i=[],o=[];for(const h of n){const{clientId:t,typeOfLogin:r,verifier:n,jwtParams:a,hash:s,queryParameters:c,customState:l}=h,u=ute({typeOfLogin:r,clientId:t,verifier:n,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=$ee(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=yte(yte({accessToken:n,idToken:i},W4(t,pte)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===Pee.REDIRECT&&await this.storageHelper.storeLoginDetails({method:jee,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===Pee.REDIRECT)return null;i.push(u.getUserInfo(d)),o.push(d)}const a=(await Promise.all(i)).map((e=>yte(yte({},e),{},{aggregateVerifier:r}))),s={verify_params:[],sub_verifier_ids:[],verifier_id:""},c=[];let l="",u={};for(let h=0;hyte(yte({},e),o[t])))})}async triggerHybridAggregateLogin(e){const{singleLogin:t,aggregateLoginParams:r}=e;if(!this.isInitialized)throw new Error("Not initialized yet");if(!r.aggregateVerifierType||!r.verifierIdentifier||!Array.isArray(r.subVerifierDetailsArray))throw new Error("Invalid params");if(r.aggregateVerifierType===Aee&&1!==r.subVerifierDetailsArray.length)throw new Error("Single id verifier can only have one sub verifier");const{typeOfLogin:n,clientId:i,verifier:o,jwtParams:a,hash:s,queryParameters:c,customState:l}=t,u=ute({typeOfLogin:n,clientId:i,verifier:o,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:a,uxMode:this.config.uxMode,customState:l});let d;if(s&&c){const{error:e,hashParameters:t,instanceParameters:r}=$ee(s,c);if(e)throw new Error(e);const{access_token:n,id_token:i}=t;d=yte(yte({accessToken:n,idToken:i},W4(t,mte)),{},{state:r})}else if(this.storageHelper.clearOrphanedLoginDetails(),this.config.uxMode===Pee.REDIRECT&&await this.storageHelper.storeLoginDetails({method:Ree,args:e},u.nonce),d=await u.handleLoginWindow({locationReplaceOnRedirect:this.config.locationReplaceOnRedirect,popupFeatures:this.config.popupFeatures}),this.config.uxMode===Pee.REDIRECT)return null;const h=await u.getUserInfo(d),f=this.getTorusKey(o,h.verifierId,{verifier_id:h.verifierId},d.idToken||d.accessToken,h.extraVerifierParams),{verifierIdentifier:p,subVerifierDetailsArray:m}=r,g={verify_params:[],sub_verifier_ids:[],verifier_id:""},v=[];let y="";for(let S=0;S0&&void 0!==arguments[0]?arguments[0]:{};await this.init({skipInit:!0});const r=new URL(window.location.href),n=r.hash.substring(1),i={};if(r.searchParams.forEach(((e,t)=>{i[t]=e})),e){const e=window.location.origin+window.location.pathname;window.history.replaceState(yte(yte({},window.history.state),{},{as:e,url:e}),"",e)}if(!n&&0===Object.keys(i).length)throw new Error("Unable to fetch result from OAuth login");const{error:o,instanceParameters:a,hashParameters:s}=$ee(n,i),{instanceId:c}=a;Nee.info(c,"instanceId");const l=await this.storageHelper.retrieveLoginDetails(c),{args:u,method:d}=l,h=W4(l,gte);if(Nee.info(u,d),t&&this.storageHelper.clearLoginDetailsStorage(c),o)return{error:o,state:a||{},method:d,result:{},hashParameters:s,args:u};let f;try{if(d===Cee){const e=u;e.hash=n,e.queryParameters=i,f=await this.triggerLogin(e)}else if(d===jee){const e=u;e.subVerifierDetailsArray.forEach((e=>{e.hash=n,e.queryParameters=i})),f=await this.triggerAggregateLogin(e)}else if(d===Ree){const e=u;e.singleLogin.hash=n,e.singleLogin.queryParameters=i,f=await this.triggerHybridAggregateLogin(e)}}catch(Lde){return Nee.error(Lde),yte({error:`Could not get result from torus nodes \n ${(null===Lde||void 0===Lde?void 0:Lde.message)||""}`,state:a||{},method:d,result:{},hashParameters:s,args:u},h)}return yte(f?{method:d,result:f,state:a||{},hashParameters:s,args:u}:{error:"Unsupported method type",state:a||{},method:d,result:{},hashParameters:s,args:u},h)}async handlePrefetchRedirectUri(){return document?new Promise(((e,t)=>{const r=document.createElement("link");r.href=this.config.redirect_uri,window.location.origin!==new URL(this.config.redirect_uri).origin&&(r.crossOrigin="anonymous"),r.type="text/html",r.rel="prefetch";const n=()=>{this.isInitialized=!0,e()};try{r.relList&&r.relList.supports&&r.relList.supports("prefetch")?(r.onload=n,r.onerror=()=>{t(new Error(`Please serve redirect.html present in serviceworker folder of this package on ${this.config.redirect_uri}`))},document.head.appendChild(r)):n()}catch(Lde){n()}})):Promise.resolve()}}const wte=(e,t,r)=>Promise.race([e(),new Promise(((e,n)=>setTimeout((()=>{n(new Error(r||"The operation has timed out"))}),t)))]),xte=async()=>wte((async()=>{const e=new bte({web3AuthClientId:"BBHmFdLXgGDzSiizRVMWtyL_7Dsoxu5B8zep2Pns8sGELslgXDbktJewVDVDDBlknEKkMCtzISLjJtxk60SK2-g",baseUrl:"https://umamiwallet.com/auth/v2/",redirectPathName:"redirect.html",redirectToOpener:!0,uxMode:"popup",network:"mainnet"});await e.init({skipSw:!0});const t=await e.triggerAggregateLogin({verifierIdentifier:"tezos-google",aggregateVerifierType:"single_id_verifier",subVerifierDetailsArray:[{clientId:"1070572364808-d31nlkneam5ee6dr0tu28fjjbsdkfta5.apps.googleusercontent.com",typeOfLogin:"google",verifier:"umami"}]});return{secretKey:Oc(t.finalKeyData.privKey||t.oAuthKeyData.privKey,nc[Js.SPSK]),email:t.userInfo[0].email}}),6e4),_te=e=>{let t="Something went wrong";"object"===typeof e&&"message"in e?t=e.message:"string"===typeof e&&(t=e);let r="";return"object"===typeof e&&"stack"in e&&(r=e.stack),{timestamp:(new Date).toISOString(),description:t,stacktrace:r}},Ste=()=>{const[e,t]=(0,i.useState)(!1),r=lz(),n=FR(),o=async(i,o)=>{if(!e){t(!0);try{return await i()}catch(a){const e=_te(a);throw r({description:e.description,status:"error",..."function"===typeof o?o(a):o}),n(Yd.actions.add(e)),a}finally{t(!1)}}};return{isLoading:e,handleAsyncAction:async(e,t)=>o(e,t).catch((()=>{})),handleAsyncActionUnsafe:o}},kte=({onAuth:e})=>{const{isLoading:t,handleAsyncAction:r}=Ste();return(0,xn.jsx)(_4,{width:"48px",background:"white",borderRadius:"full",_disabled:{bg:LP.gray[900]},"aria-label":"Google SSO","data-testid":"google-auth-button",icon:(0,xn.jsx)(S4,{size:"24px"}),isLoading:t,onClick:async()=>r((async()=>{const{secretKey:t,email:r}=await xte();return e(t,r)}),{title:"Social login failed"}),size:"lg",variant:"outline"})},Ete=({children:e,...t})=>(0,xn.jsxs)(eU,{color:LP.orange,fontSize:"12px",...t,children:[(0,xn.jsx)(qA,{as:$j,marginRight:"6px"}),e]}),Ate=({inputName:e,label:t="Password",placeholder:r="Enter your password",required:n="Password is required",validate:o,...a})=>{const{register:s}=PU(),[c,l]=(0,i.useState)(!1);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)($$,{children:t}),(0,xn.jsxs)(W$,{marginTop:"12px",children:[(0,xn.jsx)(Z$,{"aria-label":t,autoComplete:"off",placeholder:r,type:c?"text":"password",...s(e,{required:n,minLength:{value:n?8:0,message:"Your password must be at least 8 characters long"},validate:o}),...a}),(0,xn.jsx)(eH,{children:(0,xn.jsx)(Gn,{onClick:()=>l((e=>!e)),tabIndex:-1,variant:"unstyled",children:c?(0,xn.jsx)(Kj,{"data-testid":"eye-slash-icon"}):(0,xn.jsx)(qj,{width:"16.5px","data-testid":"eye-icon"})})})]})]})},Pte=({signer:e,onSubmit:t,isLoading:r,isDisabled:n,text:i})=>{const o=L$({mode:"onBlur",defaultValues:{password:""}}),{handleSubmit:a,formState:{errors:s,isValid:c}}=o,l=U3(),u=F3(),d=lz(),{isLoading:h,handleAsyncAction:f}=Ste(),p=h||r,m=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await t3({type:"mnemonic",secretKey:n,network:l}))})),g=async({password:r})=>f((async()=>{const n=await u(e,r);return t(await t3({type:"secret_key",secretKey:n,network:l}))})),v=async()=>f((async()=>{const{secretKey:e}=await xte();t(await t3({type:"social",secretKey:e,network:l}))})),y=async()=>f((async()=>(d({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info",duration:6e4,isClosable:!0}),t(await t3({type:"ledger",account:e,network:l})))));switch(e.type){case"secret_key":case"mnemonic":return(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsxs)(OU,{...o,children:[(0,xn.jsxs)(ZF,{isInvalid:!!s.password,marginY:"16px",children:[(0,xn.jsx)(Ate,{"data-testid":"password",inputName:"password"}),s.password&&(0,xn.jsx)(Ete,{children:s.password.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"8px",isDisabled:n||!c,isLoading:p,onClick:a("mnemonic"===e.type?m:g),size:"lg",type:"submit",children:i||"Submit Transaction"})]})});case"social":return(0,xn.jsx)(Gn,{width:"100%",isDisabled:n,isLoading:p,onClick:v,size:"lg",children:i||"Sign with Google"});case"ledger":return(0,xn.jsx)(Gn,{width:"100%",isDisabled:n,isLoading:p,onClick:y,size:"lg",children:i||"Sign with Ledger"})}},Ote=({request:e,onSuccess:t})=>{const r=Kq()(e.sourceAddress),n=lz();if(!r)return(0,xn.jsx)("div",{children:'"unknown account"'});return(0,xn.jsxs)(oF,{children:[(0,xn.jsxs)(sF,{marginBottom:"10px",children:["Sign payload request from ",e.appMetadata.name]}),(0,xn.jsx)(aF,{}),(0,xn.jsx)(uF,{children:e.payload}),(0,xn.jsx)(rU,{justifyContent:"center",display:"flex",children:(0,xn.jsx)(Pte,{onSubmit:async r=>{const i=await r.signer.sign(e.payload),o={type:qM.SignPayloadResponse,id:e.id,signingType:e.signingType,signature:i.prefixSig};await Zte.respond(o),n({description:"Successfully submitted Beacon operation",status:"success"}),t()},signer:r})})]})},Tte=e=>(0,xn.jsx)(qA,{width:"14px",height:"14px",fill:"none",stroke:LP.gray[450],viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M13 1L7 7M13 1V4.375M13 1H9.625M12.25 7.375V10.6C12.25 11.4401 12.25 11.8601 12.0865 12.181C11.9427 12.4632 11.7132 12.6927 11.431 12.8365C11.1101 13 10.6901 13 9.85 13H3.4C2.55992 13 2.13988 13 1.81901 12.8365C1.53677 12.6927 1.3073 12.4632 1.16349 12.181C1 11.8601 1 11.4401 1 10.6V4.15C1 3.30992 1 2.88988 1.16349 2.56901C1.3073 2.28677 1.53677 2.0573 1.81901 1.91349C2.13988 1.75 2.55992 1.75 3.4 1.75H6.625",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),Cte=({hash:e})=>{const t=`${U3().tzktExplorerUrl}/${e}`,{onClose:r}=(0,i.useContext)(EM),n=eT();return(0,xn.jsxs)(oF,{paddingY:"20px",children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{textAlign:"center",children:(0,xn.jsx)(Ln,{children:"Operation Submitted"})}),(0,xn.jsx)(uF,{children:(0,xn.jsx)(_n,{justifyContent:"center",marginTop:"10px",children:(0,xn.jsx)(lF,{color:"text.dark",textAlign:"center",size:"sm",children:"You can follow this operation's progress in the Operations section. It may take up to 30 seconds to appear."})})}),(0,xn.jsxs)(rU,{justifyContent:"center",flexDirection:"column",width:"100%",children:[(0,xn.jsx)(Gn,{width:"100%",onClick:()=>{r(),n("/operations")},size:"lg",children:"See all Operations"}),(0,xn.jsx)(PT,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,xn.jsx)(_n,{alignItems:"center",marginTop:"24px",children:(0,xn.jsxs)(Gn,{variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"View in Tzkt"}),(0,xn.jsx)(Tte,{stroke:"currentcolor"})]})})})]})]})},jte=(e,t)=>{const{onClose:r}=(0,i.useContext)(EM),[n,o]=(0,i.useState)(null),a=U3(),{isLoading:s,handleAsyncAction:c}=Ste(),{openWith:l}=(0,i.useContext)(EM),u=L$({mode:"onBlur",defaultValues:{signer:e.signer.address.pkh,sender:e.sender.address.pkh}});(0,i.useEffect)((()=>{c((async()=>{const t=await c3(e,a);o(t)}),(e=>(r(),{title:"Error",description:`Error while processing beacon request: ${e.message}`,status:"error"})))}),[a,e]);return{fee:n,form:u,isSigning:s,onSign:async r=>c((async()=>{const{opHash:n}=await D3(e,r);l((0,xn.jsx)(Cte,{hash:n})),t(n)}))}},Rte=({mutezAmount:e})=>(0,xn.jsxs)(_n,{alignItems:"center",height:"60px",padding:"15px",background:LP.gray[800],borderRadius:"4px",children:[(0,xn.jsx)(AR,{marginRight:"12px"}),(0,xn.jsx)(_n,{alignItems:"end",children:(0,xn.jsx)(l4,{number:G3(e)})})]}),Ite=({fee:e})=>(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Fee:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"fee",size:"sm",children:G3(e)})]}),Mte=wn(sF,{baseStyle:{padding:0,paddingBottom:"32px",textAlign:"center"}}),Lte=({title:e="Send",subTitle:t="Send one or insert into batch"})=>(0,xn.jsxs)(Mte,{children:[(0,xn.jsx)(Ln,{size:"2xl",children:e}),(0,xn.jsx)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:t}),(0,xn.jsx)(aF,{})]});function Nte(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,a=i.Children.toArray(e.path),s=v(((e,n)=>(0,xn.jsx)(qA,{ref:n,viewBox:t,...o,...e,children:a.length?a:(0,xn.jsx)("path",{fill:"currentColor",d:r})})));return s.displayName=n,s}var Dte=Nte({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});const zte=({onClick:e})=>(0,xn.jsx)(_4,{...XP,"aria-label":"Back","data-testid":"back-button",icon:(0,xn.jsx)(Dte,{width:"24px",height:"20px"}),onClick:e,size:"sm",variant:"ghost"}),Bte=(e,t)=>{let r;switch(e){case"implicit":r="batch"===t?"Submit":"Confirm";break;case"proposal":r="Propose"}switch(t){case"single":return`${r} Transaction`;case"batch":return`${r} Batch`}},Fte=e=>{switch(e.type){case"ledger":case"social":return;case"mnemonic":case"secret_key":return"Enter your password to confirm this transaction."}},Ute=({goBack:e,mode:t,operationsType:r,signer:n,title:i,description:o})=>(0,xn.jsxs)(Mte,{children:[e&&(0,xn.jsx)(zte,{onClick:e}),(0,xn.jsx)(Ln,{"data-testid":"sign-page-header",size:"2xl",children:i||Bte(r,t)}),(0,xn.jsx)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:o||Fte(n)}),(0,xn.jsx)(aF,{})]}),$te=({operation:e,onBeaconSuccess:t})=>{const{amount:r,contract:n,entrypoint:i,args:o}=e.operations[0],{isSigning:a,form:s,onSign:c,fee:l}=jte(e,t);return l?(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Rte,{mutezAmount:r}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,xn.jsx)(Ite,{fee:l})}),(0,xn.jsx)($$,{marginTop:"24px",children:"From "}),(0,xn.jsx)(d4,{address:e.sender.address}),(0,xn.jsx)($$,{marginTop:"24px",children:"To "}),(0,xn.jsx)(d4,{address:n}),(0,xn.jsx)($$,{marginTop:"24px",children:"Parameter"}),(0,xn.jsx)(DF,{allowToggle:!0,children:(0,xn.jsxs)(zF,{background:LP.gray[800],border:"none",borderRadius:"8px",children:[(0,xn.jsxs)(BF,{children:[(0,xn.jsx)(En,{flex:"1",textAlign:"left",children:"JSON"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(U$,{value:{entrypoint:i,values:o}})})]})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:a,onSubmit:c,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},Hte=({operation:e,onBeaconSuccess:t})=>{const{recipient:r}=e.operations[0],{isSigning:n,form:i,onSign:o,fee:a}=jte(e,t);return a?(0,xn.jsx)(OU,{...i,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:e.signer.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(Ite,{fee:a})})}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:r})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:n,onSubmit:o,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},Vte=({operation:e,onBeaconSuccess:t})=>{const{amount:r,recipient:n}=e.operations[0],{isSigning:i,form:o,onSign:a,fee:s}=jte(e,t);return s?(0,xn.jsx)(OU,{...o,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Rte,{mutezAmount:r}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,xn.jsx)(Ite,{fee:s})}),(0,xn.jsx)($$,{marginTop:"24px",children:"From "}),(0,xn.jsx)(d4,{address:e.sender.address}),(0,xn.jsx)($$,{marginTop:"24px",children:"To "}),(0,xn.jsx)(d4,{address:n})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:i,onSubmit:a,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},qte=({operation:e,onBeaconSuccess:t})=>{const{isSigning:r,form:n,onSign:i,fee:o}=jte(e,t);return o?(0,xn.jsx)(OU,{...n,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{mode:"single",operationsType:e.type,signer:e.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:e.signer.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,xn.jsx)(Ite,{fee:o})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isLoading:r,onSubmit:i,signer:e.signer,text:Bte(e.type,"single")})})]})})}):null},Kte=({operation:e,onBeaconSuccess:t})=>{switch(e.operations[0].type){case"tez":return(0,xn.jsx)(Vte,{onBeaconSuccess:t,operation:e});case"contract_call":return(0,xn.jsx)($te,{onBeaconSuccess:t,operation:e});case"delegation":return(0,xn.jsx)(Hte,{onBeaconSuccess:t,operation:e});case"undelegation":return(0,xn.jsx)(qte,{onBeaconSuccess:t,operation:e});case"fa1.2":case"fa2":case"contract_origination":throw new Error("Unsupported operation type")}},Wte=({message:e,onClose:t})=>{const r=Kq(),n=lz();switch(e.type){case qM.PermissionRequest:return(0,xn.jsx)(x4,{onSuccess:t,request:e});case qM.SignPayloadRequest:return(0,xn.jsx)(Ote,{onSuccess:t,request:e});case qM.OperationRequest:{const o=r(e.sourceAddress);if(!o)return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(aF,{}),"A request came through Beacon",(0,xn.jsx)("br",{}),"but the requested account is not in this wallet ",e.sourceAddress]});try{const r=Gte(e,o),i=async r=>{const i={type:qM.OperationResponse,id:e.id,transactionHash:r};try{await Zte.respond(i)}catch(o){console.warn("Failed to parse Beacon request",o),n({description:`Failed to confirm Beacon operation: ${o.message}`})}finally{t()}};return(0,xn.jsx)(Kte,{onBeaconSuccess:i,operation:r})}catch(i){return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(aF,{}),"Error handling Beacon operation request: ",i.message]})}}default:return(0,xn.jsxs)("div",{children:["Unsupported request: ",e.type]})}},Gte=({operationDetails:e},t)=>{if(0===e.length)throw new Error("Empty operation details!");if(e.length>1)throw new Error("Batch operation is not supported");const r=e[0],n=((e,t)=>{switch(e.kind){case GM.TRANSACTION:{const{destination:t,amount:r,parameters:n}=e;return nd(t)&&n?{type:"contract_call",amount:r,contract:od(t),entrypoint:n.entrypoint,args:n.value}:{type:"tez",amount:r,recipient:ad(e.destination)}}case GM.DELEGATION:{const{delegate:r}=e;return r?{type:"delegation",sender:t.address,recipient:ad(r)}:{type:"undelegation",sender:t.address}}default:return null}})(e[0],t);if(!n)throw new Error(`Unsupported operation: ${r.kind}`);return{type:"implicit",operations:[n],sender:t,signer:t}},Yte=Qu.object({id:Qu.string(),type:Qu.string(),name:Qu.string(),publicKey:Qu.string(),version:Qu.string(),icon:Qu.string().optional(),relayServer:Qu.string().optional()}).parse,Zte=new cz({name:"Umami",iconUrl:"",appUrl:"https://umamiwallet.com/"}),Xte="beaconPeers",Jte=()=>{const e=(0,Jn.useQueryClient)();return()=>e.refetchQueries(Xte)},Qte=()=>{const e=Jte(),t=(()=>{const e=Ei();return t=>e(Hd.actions.removeConnection({dAppId:t}))})();return r=>Zte.removePeer(r).then((()=>t(r.senderId))).then(e)},ere=()=>{const e=Jte(),t=lz();return r=>{(new ML).deserialize(r).then(Yte).then((t=>{Zte.addPeer(t).then(e)})).catch((e=>{t({description:"Beacon sync code in the clipboard is invalid. Please copy a beacon sync code from the dApp",status:"error"}),console.error(e)}))}},tre=({children:e})=>{const{openWith:t,onClose:r}=(0,i.useContext)(EM);return(0,i.useEffect)((()=>{Zte.init().then((()=>{Zte.connect((e=>{t((0,xn.jsx)(Wte,{message:e,onClose:r}))}))})).catch(console.error)}),[r,t]),(0,xn.jsx)(xn.Fragment,{children:e})},rre=1963879877,nre=-1890025422,ire=e=>({address:od(e.address),threshold:Number(e.storage.threshold),signers:e.storage.signers.map(ad),pendingOperationsBigmapId:e.storage.pending_ops}),ore=async(e,t)=>O3((async()=>{const r=await(e=>O3((async()=>{try{const t=`${e.tzktApiUrl}/v1/contracts?typeHash=1963879877&codeHash=-1890025422&includeStorage=true&limit=10000`,{data:r}=await xj.get(t);return r}catch(t){throw new Error(`Error fetching same contracts from tzkt: ${t.message}`)}})))(t);return r.filter((({storage:{signers:t}})=>{if(!(0,ts.every)(t,id))return!1;const r=t.filter((t=>e.has(t)));return r.length>0})).map(ire)})),are=e=>{const{bigmap:t,key:r,value:n}=e;if(null===r||null===n)throw new Error("parseMultisigOperation failed");return{id:r,bigmapId:t,rawActions:n.actions,approvals:n.approvals.map(ad)}},sre=async(e,t)=>0===e.length?[]:O3((async()=>{const r=e.map((e=>e.pendingOperationsBigmapId)),n=await((e,t)=>0===e.length?Promise.resolve([]):O3((async()=>{const r=`${t.tzktApiUrl}/v1/bigmaps/keys?active=true&bigmap.in=${e.join(",")}&limit=10000`,{data:n}=await xj.get(r);return n})))(r,t);return(0,ts.compact)(n.map(are))})),cre=async(e,t,r)=>{const n=await sre(r,t);e(Jd.setPendingOperations(n.flat()))},lre=async(e,t,r)=>{const n=await T3(r,t);e(Ld.updateTezBalance(n.flat()))},ure=async(e,t,r)=>{const n=await C3(r,t),i=n.flat().map((({token:e,lastLevel:t})=>({...e,lastLevel:t})));e(ih.addTokens({network:t,tokens:i})),e(Ld.updateTokenBalance(n.flat()))},dre=async e=>{const t=await(async()=>{const{data:{data:{priceUsd:e}}}=await xj.get("https://api.coincap.io/v2/assets/tezos");return null!==e&&void 0!==e?e:null})();e(Ld.updateConversionRate({rate:t}))},hre=()=>{const e=FR(),t=qq(),r=UR((e=>e.assets.refetchTrigger)),n=U3(),o=(0,Jn.useQueryClient)(),a=lz(),s=t.map((e=>e.address.pkh)),c=(0,i.useCallback)((t=>{e(Yd.actions.add(_te(t))),a({description:`Data fetching error: ${t.message}`,status:"error",isClosable:!0})}),[e,a]),l=(0,Jn.useQuery)("allAssets",{queryFn:()=>(async(e,t,r)=>{try{e(Ld.setIsLoading(!0));const n=await ore(new Set(r),t);e(Jd.setMultisigs(n));const i=[...r,...n.map((e=>e.address.pkh))];await Promise.all([cre(e,t,n),lre(e,t,i),ure(e,t,i)]),e(Ld.setLastTimeUpdated((new Date).toUTCString()))}finally{e(Ld.setIsLoading(!1))}})(e,n,s),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),u=(0,Jn.useQuery)("conversionRate",{queryFn:()=>dre(e),onError:c,refetchInterval:3e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),d=(0,Jn.useQuery)("blockNumber",{queryFn:()=>(async(e,t)=>{const r=await L3(t);e(Ld.updateBlockLevel(r))})(e,n),onError:c,retry:!1,refetchInterval:15e3,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),h=(0,Jn.useQuery)("bakers",{queryFn:()=>(async(e,t)=>{const r=(await N3(t)).map((({address:e,alias:t,stakingBalance:r})=>({address:e,stakingBalance:r,name:null!==t&&void 0!==t?t:"Unknown baker"})));e(Ld.updateBakers(r))})(e,n),onError:c,retry:!1,refetchInterval:72e5,refetchIntervalInBackground:!0,refetchOnWindowFocus:!1}),f=(0,i.useRef)(u),p=(0,i.useRef)(d),m=(0,i.useRef)(l),g=(0,i.useRef)(h);(0,i.useEffect)((()=>{o.cancelQueries({queryKey:"allAssets"}),o.cancelQueries({queryKey:"conversionRate"}),o.cancelQueries({queryKey:"blockNumber"}),o.cancelQueries({queryKey:"bakers"}),f.current.refetch(),p.current.refetch(),m.current.refetch(),g.current.refetch()}),[n,r,o])},fre=()=>{const e=lz(),t=ere(),r=(0,i.useRef)(t),n=(0,i.useRef)(e),o=(e,t)=>{const i=t.replace(":///","://");if(i.startsWith("umami://auth/")){const e=(e=>{const t=e.replace("umami://auth/",""),r=new URLSearchParams(t),n={instanceParams:{insanceId:r.get("instanceId"),verifier:r.get("verifier"),typeOfLogin:r.get("typeOfLogin"),redirectToOpener:r.get("redirectToOpener")},hashParams:{state:r.get("state"),access_token:r.get("access_token"),token_type:r.get("token_type"),expires_in:r.get("expires_in"),scope:r.get("scope"),id_token:r.get("id_token"),authuser:r.get("authuser"),hd:r.get("hd"),prompt:r.get("prompt")}};return{channel:r.get("channel"),data:n,error:r.get("error")}})(i);window.postMessage(e)}else if(i.startsWith("umami://?type=tzip10&data=")){const e=new URL(i).searchParams.get("data");e?r.current(e):n.current({title:"Linkhandler",description:"Data Payload missing"})}else n.current({title:"Linkhandler",description:"Unsupported link type"})};(0,i.useEffect)((()=>{const e=window;return e&&e.electronAPI&&e.electronAPI.onDeeplink(o),()=>{}}),[])};var pre=v(((e,t)=>{var r;const{overflow:n,overflowX:i,className:o,...a}=e;return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-table__container",o),...a,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(r=null!=n?n:i)?r:"auto",overflowY:"hidden",maxWidth:"100%"}})})),[mre,gre]=Nn({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"
\" "}),vre=v(((e,t)=>{const r=Mn("Table",e),{className:n,layout:i,...o}=ft(e);return(0,xn.jsx)(mre,{value:r,children:(0,xn.jsx)(wn.table,{ref:t,__css:{tableLayout:i,...r.table},className:y("chakra-table",n),...o})})}));vre.displayName="Table";var yre=v(((e,t)=>{const r=gre();return(0,xn.jsx)(wn.tbody,{...e,ref:t,__css:r.tbody})})),bre=v(((e,t)=>{const r=gre();return(0,xn.jsx)(wn.tr,{...e,ref:t,__css:r.tr})})),wre=v((({isNumeric:e,...t},r)=>{const n=gre();return(0,xn.jsx)(wn.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}));function xre(e){return lR({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"}}]})(e)}function _re(e){return lR({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}}]})(e)}function Sre(e){return lR({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:"currentColor"}}]})(e)}function kre(e){return lR({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:"currentColor"}}]})(e)}const Ere="TOAST_ID",Are=({pkh:e,formatAddress:t=!0,copyable:r=!0,iconColor:n=LP.gray[600],...i})=>(0,xn.jsx)(Pre,{copyValue:r?e:void 0,displayText:t?Y3(e):e,iconColor:n,toastMessage:"Address copied to clipboard",...i}),Pre=({displayText:e,copyValue:t,toastMessage:r,iconColor:n,...i})=>{const o=lz();return(0,xn.jsxs)(_n,{alignItems:"center",...i,children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[400],size:"sm",children:e}),t&&(0,xn.jsx)(Xj,{stroke:LP.gray[450],_hover:{stroke:LP.green},cursor:"pointer",onClick:()=>(async()=>{t&&(await navigator.clipboard.writeText(t),r&&!o.isActive(Ere)&&o({id:Ere,render:()=>(0,xn.jsx)(Ore,{message:r,onClose:()=>{o.close(Ere)}})}))})()})]})},Ore=({message:e,onClose:t})=>(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",padding:2,borderRadius:"4px",backgroundColor:"white",children:[(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(qA,{as:xre,margin:1,color:LP.green}),(0,xn.jsx)(lF,{color:"black",children:e})]}),(0,xn.jsx)(qA,{as:kre,color:"black",_hover:{color:LP.gray[600]},cursor:"pointer",onClick:t})]}),Tre=({title:e,buttonText:t,contact:r})=>{const n=FR(),o=Zq(),{isOpen:a,onClose:s}=(0,i.useContext)(EM),{handleSubmit:c,formState:{isValid:l,errors:u},register:d,reset:h,getValues:f}=L$({mode:"onBlur",defaultValues:r}),p=void 0!==r,m=Wq(),{nameExistsInContacts:g,addressExistsInContacts:v}=Uq(),y=(0,i.useRef)(h);return(0,i.useEffect)((()=>{a&&y.current(r)}),[a,r]),(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:c((({name:e,pkh:t})=>{var r;r={name:e.trim(),pkh:t},o(r.pkh)||(n(Wd.upsert(r)),s()),h()})),children:[(0,xn.jsx)(sF,{textAlign:"center",children:e}),(0,xn.jsx)(aF,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!u.name,marginY:5,children:[(0,xn.jsx)($$,{children:"Name"}),(0,xn.jsx)(Z$,{type:"text",...d("name",{required:"Name is required",validate:e=>m.map((e=>e.label)).includes(e)?"Name already used in accounts":!g(e.trim())||"Name already registered"}),placeholder:"Enter contact's name"}),u.name&&(0,xn.jsx)(Ete,{children:u.name.message})]}),(0,xn.jsxs)(ZF,{isInvalid:!!u.pkh,marginY:5,children:[(0,xn.jsx)($$,{children:"Address"}),(0,xn.jsx)(Z$,{type:"text",...d("pkh",{required:"Address is required",validate:e=>rd(e)?p?f("name")!==r.name:o(e)?"Address already used in accounts":!v(e)||"Address already registered":"Invalid address"}),disabled:p,placeholder:"Enter contact\u2019s tz address",value:null===r||void 0===r?void 0:r.pkh,variant:p?"filled":void 0}),u.pkh&&(0,xn.jsx)(Ete,{children:u.pkh.message})]})]}),(0,xn.jsx)(rU,{padding:"16px 0 0 0",children:(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,isDisabled:!l,size:"lg",type:"submit",children:t})})})]})})},Cre=({contact:e})=>{const t=FR(),{onClose:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(sF,{marginBottom:"10px",textAlign:"center",children:"Delete Contact"}),(0,xn.jsx)(aF,{}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:[(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:"Are you sure you want to remove this contact?"}),(0,xn.jsxs)(En,{marginTop:5,children:[(0,xn.jsx)(Ln,{marginBottom:3,textAlign:"center",size:"md",children:e.name}),(0,xn.jsx)(Are,{pkh:e.pkh})]})]})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,onClick:()=>{t(Wd.remove(e.pkh)),r()},variant:"warning",children:"Delete"})})})]})};var jre=v((function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:i,borderRightWidth:o,borderWidth:a,borderStyle:s,borderColor:c,...l}=In("Divider",e),{className:u,orientation:d="horizontal",__css:h,...f}=ft(e),p={vertical:{borderLeftWidth:r||o||a||"1px",height:"100%"},horizontal:{borderBottomWidth:n||i||a||"1px",width:"100%"}};return(0,xn.jsx)(wn.hr,{ref:t,"aria-orientation":d,...f,__css:{...l,border:"0",borderColor:c,borderStyle:s,...p[d],...h},className:y("chakra-divider",u)})}));function Rre(e){const{isOpen:t,ref:r}=e,[n,o]=(0,i.useState)(t),[a,s]=(0,i.useState)(!1);(0,i.useEffect)((()=>{a||(o(t),s(!0))}),[t,a,n]),YV((()=>r.current),"animationend",(()=>{o(t)}));return{present:!(!t&&!n),onComplete(){var e;const t=function(e){var t,r;return null!=(r=null==(t=WB(e))?void 0:t.defaultView)?r:window}(r.current),n=new t.CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(n)}}}jre.displayName="Divider";var Ire=()=>"undefined"!==typeof window;var Mre=e=>Ire()&&e.test(function(){var e;const t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),Lre=()=>Mre(/mac|iphone|ipad|ipod/i)&&(e=>Ire()&&e.test(navigator.vendor))(/apple/i);function Nre(e){const t=e.current;if(!t)return!1;const r=function(e){return WB(e).activeElement}(t);return!!r&&(!t.contains(r)&&!(!((n=r)&&KB(n)&&XB(n))||YB(n)));var n}function Dre(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,o=r&&!n;Eb((()=>{if(!o)return;if(Nre(e))return;const t=(null==i?void 0:i.current)||e.current;let r;return t?(r=requestAnimationFrame((()=>{t.focus({preventScroll:!0})})),()=>{cancelAnimationFrame(r)}):void 0}),[o,e,i])}var zre={preventScroll:!0,shouldFocus:!1};function Bre(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||(!!n||!("keepMounted"!==i||!t))}var Fre={click:"click",hover:"hover"};function Ure(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:o,returnFocusOnClose:a=!0,autoFocus:s=!0,arrowSize:c,arrowShadowColor:l,trigger:u=Fre.click,openDelay:d=200,closeDelay:h=200,isLazy:f,lazyBehavior:p="unmount",computePositionOnMount:m,...g}=e,{isOpen:v,onClose:y,onOpen:b,onToggle:w}=GV(e),x=(0,i.useRef)(null),_=(0,i.useRef)(null),S=(0,i.useRef)(null),k=(0,i.useRef)(!1),A=(0,i.useRef)(!1);v&&(A.current=!0);const[P,O]=(0,i.useState)(!1),[T,C]=(0,i.useState)(!1),j=(0,i.useId)(),R=null!=o?o:j,[I,M,L,N]=["popover-trigger","popover-content","popover-header","popover-body"].map((e=>`${e}-${R}`)),{referenceRef:D,getArrowProps:z,getPopperProps:B,getArrowInnerProps:F,forceUpdate:U}=KV({...g,enabled:v||!!m}),$=Rre({isOpen:v,ref:S});!function(e){const{ref:t,elements:r,enabled:n}=e,i=()=>{var e,r;return null!=(r=null==(e=t.current)?void 0:e.ownerDocument)?r:document};YV(i,"pointerdown",(e=>{if(!Lre()||!n)return;const o=e.target,a=(null!=r?r:[t]).some((e=>{const t="current"in e?e.current:e;return(null==t?void 0:t.contains(o))||t===o}));i().activeElement!==o&&a&&(e.preventDefault(),o.focus())}))}({enabled:v,ref:_}),Dre(S,{focusRef:_,visible:v,shouldFocus:a&&u===Fre.click}),function(e,t=zre){const{focusRef:r,preventScroll:n,shouldFocus:o,visible:a}=t,s="current"in e?e.current:e,c=o&&a,l=(0,i.useRef)(c),u=(0,i.useRef)(a);Oh((()=>{!u.current&&a&&(l.current=c),u.current=a}),[a,c]);const d=(0,i.useCallback)((()=>{if(a&&s&&l.current&&(l.current=!1,!s.contains(document.activeElement)))if(null==r?void 0:r.current)requestAnimationFrame((()=>{var e;null==(e=r.current)||e.focus({preventScroll:n})}));else{const e=tF(s);e.length>0&&requestAnimationFrame((()=>{e[0].focus({preventScroll:n})}))}}),[a,n,s,r]);Eb((()=>{d()}),[d]),YV(s,"transitionend",d)}(S,{focusRef:n,visible:v,shouldFocus:s&&u===Fre.click});const H=Bre({wasSelected:A.current,enabled:f,mode:p,isSelected:$.present}),V=(0,i.useCallback)(((e={},n=null)=>{const i={...e,style:{...e.style,transformOrigin:dH.transformOrigin.varRef,[dH.arrowSize.var]:c?`${c}px`:void 0,[dH.arrowShadowColor.var]:l},ref:Kn(S,n),children:H?e.children:null,id:M,tabIndex:-1,role:"dialog",onKeyDown:E(e.onKeyDown,(e=>{r&&"Escape"===e.key&&y()})),onBlur:E(e.onBlur,(e=>{const r=Hre(e),n=$re(S.current,r),i=$re(_.current,r);v&&t&&(!n&&!i)&&y()})),"aria-labelledby":P?L:void 0,"aria-describedby":T?N:void 0};return u===Fre.hover&&(i.role="tooltip",i.onMouseEnter=E(e.onMouseEnter,(()=>{k.current=!0})),i.onMouseLeave=E(e.onMouseLeave,(e=>{null!==e.nativeEvent.relatedTarget&&(k.current=!1,setTimeout((()=>y()),h))}))),i}),[H,M,P,L,T,N,u,r,y,v,t,h,l,c]),q=(0,i.useCallback)(((e={},t=null)=>B({...e,style:{visibility:v?"visible":"hidden",...e.style}},t)),[v,B]),K=(0,i.useCallback)(((e,t=null)=>({...e,ref:Kn(t,x,D)})),[x,D]),W=(0,i.useRef)(),G=(0,i.useRef)(),Y=(0,i.useCallback)((e=>{null==x.current&&D(e)}),[D]),Z=(0,i.useCallback)(((e={},r=null)=>{const n={...e,ref:Kn(_,r,Y),id:I,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":M};return u===Fre.click&&(n.onClick=E(e.onClick,w)),u===Fre.hover&&(n.onFocus=E(e.onFocus,(()=>{void 0===W.current&&b()})),n.onBlur=E(e.onBlur,(e=>{const r=Hre(e),n=!$re(S.current,r);v&&t&&n&&y()})),n.onKeyDown=E(e.onKeyDown,(e=>{"Escape"===e.key&&y()})),n.onMouseEnter=E(e.onMouseEnter,(()=>{k.current=!0,W.current=window.setTimeout((()=>b()),d)})),n.onMouseLeave=E(e.onMouseLeave,(()=>{k.current=!1,W.current&&(clearTimeout(W.current),W.current=void 0),G.current=window.setTimeout((()=>{!1===k.current&&y()}),h)}))),n}),[I,v,M,u,Y,w,b,t,y,d,h]);(0,i.useEffect)((()=>()=>{W.current&&clearTimeout(W.current),G.current&&clearTimeout(G.current)}),[]);const X=(0,i.useCallback)(((e={},t=null)=>({...e,id:L,ref:Kn(t,(e=>{O(!!e)}))})),[L]),J=(0,i.useCallback)(((e={},t=null)=>({...e,id:N,ref:Kn(t,(e=>{C(!!e)}))})),[N]);return{forceUpdate:U,isOpen:v,onAnimationComplete:$.onComplete,onClose:y,getAnchorProps:K,getArrowProps:z,getArrowInnerProps:F,getPopoverPositionerProps:q,getPopoverProps:V,getTriggerProps:Z,getHeaderProps:X,getBodyProps:J}}function $re(e,t){return e===t||(null==e?void 0:e.contains(t))}function Hre(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:r}var[Vre,qre]=Nn({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[Kre,Wre]=Nn({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "});function Gre(e){const t=Mn("Popover",e),{children:r,...n}=ft(e),i=Ure({...n,direction:On().direction});return(0,xn.jsx)(Vre,{value:i,children:(0,xn.jsx)(Kre,{value:t,children:x(r,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}function Yre(e){const t=i.Children.only(e.children),{getTriggerProps:r}=qre();return(0,i.cloneElement)(t,r(t.props,t.ref))}function Zre(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}Gre.displayName="Popover",Yre.displayName="PopoverTrigger";var Xre={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Jre=wn(FA.section),Qre=v((function(e,t){const{variants:r=Xre,...n}=e,{isOpen:i}=qre();return(0,xn.jsx)(Jre,{ref:t,variants:Zre(r),initial:!1,animate:i?"enter":"exit",...n})}));Qre.displayName="PopoverTransition";var ene=v((function(e,t){const{rootProps:r,motionProps:n,...i}=e,{getPopoverProps:o,getPopoverPositionerProps:a,onAnimationComplete:s}=qre(),c=Wre(),l={position:"relative",display:"flex",flexDirection:"column",...c.content};return(0,xn.jsx)(wn.div,{...a(r),__css:c.popper,className:"chakra-popover__popper",children:(0,xn.jsx)(Qre,{...n,...o(i,t),onAnimationComplete:A(s,i.onAnimationComplete),className:y("chakra-popover__content",e.className),__css:l})})}));ene.displayName="PopoverContent";var tne=v((function(e,t){const{getBodyProps:r}=qre(),n=Wre();return(0,xn.jsx)(wn.div,{...r(e,t),className:y("chakra-popover__body",e.className),__css:n.body})}));tne.displayName="PopoverBody";const rne=e=>{const{onOpen:t,onClose:r,isOpen:n}=YR();return(0,xn.jsxs)(Gre,{isOpen:n,onClose:r,onOpen:t,placement:"bottom-start",children:[(0,xn.jsx)(Yre,{children:(0,xn.jsx)(Gn,{minWidth:"24px",height:"24px",padding:"0",background:n?LP.green:LP.gray[500],border:"none",borderRadius:"full",_hover:{bg:n?LP.green:LP.gray[450]},"data-testid":"popover-cta",variant:"unstyled",children:(0,xn.jsx)(Sn,{children:(0,xn.jsx)(qA,{as:_re,display:"inline",color:LP.white})})})}),(0,xn.jsx)(ene,{width:"100px",background:LP.gray[700],children:(0,xn.jsx)(tne,{borderRadius:"lg",children:e.children})})]})},nne=({onRename:e,onRemove:t})=>(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(rne,{children:(0,xn.jsxs)(En,{paddingY:"0",children:[(0,xn.jsx)(Gn,{height:t?"24px":"28px",onClick:e,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Rename"}),(0,xn.jsx)(bR,{stroke:"inherit"})]})}),t&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{marginY:"4px"}),(0,xn.jsx)(Gn,{"data-testid":"popover-remove",onClick:t,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Remove"}),(0,xn.jsx)(jR,{stroke:"inherit"})]})})]})]})})}),ine=({onClick:e,...t})=>(0,xn.jsxs)(Gn,{width:"60px",onClick:e,variant:"specialCTA",...t,children:[(0,xn.jsx)(yR,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",children:"Send"})]}),one=({sender:e,operationType:t,isLoading:r,reEstimate:n})=>{switch(t){case"proposal":return(0,xn.jsx)(ZF,{marginTop:"24px","data-testid":"signer-selector",children:(0,xn.jsx)(w4,{account:e,inputName:"signer",isLoading:r,keepValid:!0,label:"Select Proposer",onUpdate:n})});case"implicit":return null}},ane=(e,t,r)=>{switch(e.type){case"ledger":case"mnemonic":case"social":case"secret_key":if(e.address.pkh!==t.address.pkh)throw new Error("Sender and Signer must be the same");return{type:"implicit",operations:r,signer:e,sender:e};case"multisig":return{type:"proposal",operations:r,sender:e,signer:t}}},sne=()=>{const e=FR(),t=U3();return r=>e(Ud.clear({pkh:r.address.pkh,network:t}))},cne=({isLoading:e,isValid:t,onSingleSubmit:r,onAddToBatch:n,showPreview:i=!0})=>(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsxs)(En,{width:"100%",children:[i&&(0,xn.jsx)(Gn,{width:"100%",marginBottom:"16px",isDisabled:!t,isLoading:e,onClick:r,size:"lg",type:"submit",children:"Preview"}),(0,xn.jsx)(Gn,{width:"100%",isDisabled:!t,isLoading:e,onClick:n,size:"lg",type:"submit",variant:"tertiary",children:"Insert Into Batch"})]})}),lne=({sender:e,form:t})=>t||(e?{sender:e.address.pkh}:{}),une=(e,t,r)=>{const[n,o]=(0,i.useState)(!1),a=(()=>{const e=Kq();return t=>e(t)})(),[s,c]=(0,i.useState)(e),[l,u]=(0,i.useState)(t),d=U3(),h=sne(),{isLoading:f,handleAsyncAction:p,handleAsyncActionUnsafe:m}=Ste(),{openWith:g}=(0,i.useContext)(EM),v=L$({mode:"onBlur",defaultValues:{signer:l.signer.address.pkh,sender:l.sender.address.pkh}}),y=v.watch("signer");return{fee:s,estimationFailed:n,operations:l,isLoading:f,form:v,signer:a(y),reEstimate:async e=>m((async()=>{const t={...l,signer:a(e)};c(await c3(l,d)),u(t),o(!1)}),{isClosable:!0,duration:null}).catch((()=>o(!0))),onSign:async e=>p((async()=>{const t=await D3(l,e);return"batch"===r&&h(l.sender),g((0,xn.jsx)(Cte,{hash:t.opHash})),t})),handleAsyncAction:p}},dne=e=>{const t=Xq(),r=eK();return n=>{const i=t(n.sender);return ane(i,r(i),[e(n)])}},hne=e=>{e<0&&(console.warn("Decimals cannot be negative"),e=0);return`${0===e?"":"0."+(0,ts.repeat)("0",e-1)}1`},fne=e=>t=>{if(t.includes(".")){if(t.split(".")[1].length>e)return`Please enter a value with up to ${e} decimal places`}return!0},pne=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=une(n,r,t),{amount:h,recipient:f}=o.operations[0];return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:o.type,signer:o.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Rte,{mutezAmount:h}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",children:(0,xn.jsx)(Ite,{fee:i})}),(0,xn.jsx)($$,{marginTop:"24px",children:"From "}),(0,xn.jsx)(d4,{address:o.sender.address}),(0,xn.jsx)($$,{marginTop:"24px",children:"To "}),(0,xn.jsx)(d4,{address:f}),(0,xn.jsx)(one,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:Bte(o.type,t)})})]})})})},mne=(e,t)=>async r=>{await c3(e,t),r(Ud.add({operations:e,network:t}))},gne=({SignPage:e,signPageExtraData:t,FormPage:r,defaultFormPageProps:n,toOperation:o})=>{const{openWith:a}=(0,i.useContext)(EM),s=dne(o),c=U3();return async i=>{const o=s(i);a((0,xn.jsx)(e,{data:t,fee:await c3(o,c),goBack:()=>{a((0,xn.jsx)(r,{...n,form:i}))},mode:"single",operations:o}))}},vne=e=>{const{onClose:t}=(0,i.useContext)(EM),r=U3(),n=dne(e),o=FR(),a=lz();return async e=>{const i=n(e);await o(mne(i,r)),a({description:"Transaction added to batch!",status:"success"}),t()}},yne=e=>{const{handleAsyncAction:t,isLoading:r}=Ste();return{onFormSubmitActionHandlers:e.map((e=>async r=>t((()=>e(r))))),isLoading:r}},bne=({showPreview:e=!0,...t})=>{const r=gne({SignPage:pne,signPageExtraData:void 0,FormPage:bne,defaultFormPageProps:t,toOperation:wne}),n=vne(wne),{onFormSubmitActionHandlers:[i,o],isLoading:a}=yne([r,n]),s=L$({mode:"onBlur",defaultValues:lne(t)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!l.prettyAmount,children:[(0,xn.jsx)($$,{children:"Amount"}),(0,xn.jsxs)(W$,{children:[(0,xn.jsx)(Z$,{isDisabled:a,step:hne(6),type:"number",...u("prettyAmount",{required:"Amount is required",validate:fne(6)}),placeholder:"0.000000"}),(0,xn.jsx)(eH,{children:"\ua729"})]}),l.prettyAmount&&(0,xn.jsx)(Ete,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!!t.sender,label:"From"}),l.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:l.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,xn.jsx)(g4,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,xn.jsx)(Ete,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i),showPreview:e})})]})})})},wne=e=>({type:"tez",amount:K3(e.prettyAmount).toFixed(),recipient:td(e.recipient)}),xne=({contacts:e})=>{const{openWith:t}=(0,i.useContext)(EM);return(0,xn.jsx)(En,{overflow:"auto",background:LP.gray[900],borderRadius:"8px",paddingX:"30px",children:(0,xn.jsx)(pre,{overflowX:"unset",overflowY:"unset",children:(0,xn.jsx)(vre,{children:(0,xn.jsx)(yre,{children:e.map(((r,n)=>{const i=n===e.length-1?"transparent":LP.gray[700];return(0,xn.jsxs)(bre,{"data-testid":"contact-row",children:[(0,xn.jsx)(wre,{borderColor:i,"data-testid":"contact-row-name",paddingX:"0",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(En,{width:"150px",marginRight:"40px",children:(0,xn.jsx)(lF,{overflow:"hidden",fontWeight:600,whiteSpace:"nowrap",textOverflow:"ellipsis",children:r.name})}),(0,xn.jsx)(Are,{justifyContent:"space-between","data-testid":"contact-row-pkh",formatAddress:!1,iconColor:LP.gray[400],pkh:r.pkh})]})}),(0,xn.jsx)(wre,{borderColor:i,paddingX:"0",children:(0,xn.jsxs)(_n,{justifyContent:"end",children:[(0,xn.jsx)(ine,{marginRight:"20px",onClick:()=>t((0,xn.jsx)(bne,{form:{sender:"",recipient:r.pkh,prettyAmount:""}}))}),(0,xn.jsx)(nne,{onRemove:()=>{t((0,xn.jsx)(Cre,{contact:r}))},onRename:()=>{t((0,xn.jsx)(Tre,{buttonText:"Update",contact:r,title:"Edit contact"}))}})]})})]},r.pkh)}))})})})})},_ne=({href:e,children:t,...r})=>(0,xn.jsx)(Zn,{alignItems:"center",display:"flex",_hover:{textDecoration:"none"},href:e,rel:"noopener noreferrer",role:"link",target:"_blank",...r,children:t}),Sne={md:{heading:"xl",description:"md",button:"md"},lg:{heading:"3xl",description:"xl",button:"lg"}},kne=({title:e,description:t,children:r,size:n})=>(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"center",width:"100%",height:"100%",children:(0,xn.jsxs)(En,{padding:"30px","data-testid":"empty-state-message",children:[(0,xn.jsx)(Ln,{marginBottom:"10px",textAlign:"center",size:Sne[n].heading,children:e}),(0,xn.jsx)(lF,{marginBottom:"30px",color:LP.gray[400],textAlign:"center",size:Sne[n].description,children:t}),(0,xn.jsx)(Sn,{children:r})]})}),Ene=({size:e,withViewAllButton:t})=>(0,xn.jsx)(kne,{description:"Your operations history will appear here...",size:e,title:"No operations to show",children:t&&(0,xn.jsx)(PT,{"data-testid":"view-all-operations-button",to:"/operations",children:(0,xn.jsx)(Gn,{size:Sne[e].button,children:"View All Operations"})})}),Ane=({size:e})=>(0,xn.jsx)(kne,{description:"Your NFT collection will appear here...",size:e,title:"No NFTs to show",children:(0,xn.jsx)(_ne,{"data-testid":"buy-nft-button",href:"https://objkt.com",children:(0,xn.jsx)(Gn,{size:Sne[e].button,children:"Buy your first NFT"})})}),Pne=({size:e})=>(0,xn.jsx)(kne,{description:"All of your tokens will appear here...",size:e,title:"No tokens to show"}),One=({size:e="lg",onDelegate:t})=>(0,xn.jsx)(kne,{description:"Your delegation history will appear here...",size:e,title:"No delegations to show",children:(0,xn.jsx)(Gn,{"data-testid":"delegation-empty-state-button",onClick:t,size:Sne[e].button,children:"Delegate"})});function Tne(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=function({defer:e}={}){const[,t]=(0,i.useReducer)((e=>e+1),0);return Oh((()=>{e&&t()}),[e]),(0,i.useContext)(Rh)}(),a=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter((e=>null!=e));const[c,l]=(0,i.useState)((()=>a.map(((e,t)=>({media:e,matches:r?!!s[t]:o().matchMedia(e).matches})))));return(0,i.useEffect)((()=>{const e=o();l(a.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=a.map((t=>e.matchMedia(t))),r=e=>{l((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"===typeof e.addListener?e.addListener(r):e.addEventListener("change",r)})),()=>{t.forEach((e=>{"function"===typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)}))}}),[o]),c.map((e=>e.matches))}function Cne(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}function jne(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new e.constructor(+e):"number"===typeof e||"[object Number]"===t||"string"===typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Rne(e,t){return+jne(e)-+jne(t)}function Ine(e,t,r){const n=Rne(e,t)/1e3;return Cne(r?.roundingMethod)(n)}Math.pow(10,8);const Mne=6048e5,Lne=864e5,Nne=43200;function Dne(e,t,r){const n=Rne(e,t)/6e4;return Cne(r?.roundingMethod)(n)}function zne(e,t){const r=jne(e),n=jne(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Bne(e,t){const r=jne(e),n=jne(t);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}function Fne(e){const t=jne(e);return t.setHours(23,59,59,999),t}function Une(e){const t=jne(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function $ne(e){const t=jne(e);return+Fne(t)===+Une(t)}function Hne(e,t){const r=jne(e),n=jne(t),i=zne(r,n),o=Math.abs(Bne(r,n));let a;if(o<1)a=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);let t=zne(r,n)===-i;$ne(jne(e))&&1===o&&1===zne(e,n)&&(t=!1),a=i*(o-Number(t))}return 0===a?0:a}const Vne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function qne(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Kne={date:qne({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:qne({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:qne({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Wne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Gne(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Yne={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Gne({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Gne({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gne({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Gne({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Gne({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Zne(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let r=0;re.test(a))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,(e=>e.test(a)));let l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}const Xne={ordinalNumber:(Jne={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Jne.matchPattern);if(!r)return null;const n=r[0],i=e.match(Jne.parsePattern);if(!i)return null;let o=Jne.valueCallback?Jne.valueCallback(i[0]):i[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(n.length)}}),era:Zne({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Zne({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Zne({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Zne({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Zne({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Jne;const Qne={code:"en-US",formatDistance:(e,t,r)=>{let n;const i=Vne[e];return n="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Kne,formatRelative:(e,t,r,n)=>Wne[e],localize:Yne,match:Xne,options:{weekStartsOn:0,firstWeekContainsDate:1}};let eie={};function tie(){return eie}function rie(e){const t=jne(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function nie(e,t,r){const n=tie(),i=r?.locale??n.locale??Qne,o=zne(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o});let s,c;o>0?(s=jne(t),c=jne(e)):(s=jne(e),c=jne(t));const l=Ine(c,s),u=(rie(c)-rie(s))/1e3,d=Math.round((l-u)/60);let h;if(d<2)return r?.includeSeconds?l<5?i.formatDistance("lessThanXSeconds",5,a):l<10?i.formatDistance("lessThanXSeconds",10,a):l<20?i.formatDistance("lessThanXSeconds",20,a):l<40?i.formatDistance("halfAMinute",0,a):l<60?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):0===d?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",d,a);if(d<45)return i.formatDistance("xMinutes",d,a);if(d<90)return i.formatDistance("aboutXHours",1,a);if(d<1440){const e=Math.round(d/60);return i.formatDistance("aboutXHours",e,a)}if(d<2520)return i.formatDistance("xDays",1,a);if(d{const t=U3(),r="mainnet"===t.name,n=r?"Buy Tez":"Request Tez from faucet",i=L$({mode:"onBlur",defaultValues:{address:e}}),{formState:{isValid:o,errors:a}}=i;let s=t.buyTezUrl;return t.buyTezUrl&&r&&(s+="/default/widget/"),(0,xn.jsx)(OU,{...i,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{action:s,rel:"noreferrer noopener",target:"_blank",children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{marginBottom:"10px",textAlign:"center",children:"Buy Tez"}),r&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)("input",{name:"commodity",type:"hidden",value:"XTZ:Tezos"}),(0,xn.jsx)(lF,{color:LP.gray[400],textAlign:"center",size:"sm",children:"Please select the recipient account."}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(ZF,{"data-testid":"buy-tez-selector",isInvalid:!!a.address,paddingY:5,children:[(0,xn.jsx)(v4,{allowUnknown:!1,inputName:"address",isDisabled:!!e,label:"Recipient Account"}),a.address&&(0,xn.jsx)(Ete,{children:a.address.message})]})})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(En,{width:"100%","data-testid":"buy-tez-button",children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,isDisabled:!o,size:"lg",type:"submit",children:n})})})]})})})},oie=e=>(0,xn.jsx)(qA,{width:"15px",height:"11px",fill:"none",stroke:"white",viewBox:"0 0 15 11",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xn.jsx)("path",{d:"M1.16602 5.98371L5.06345 9.85408L13.8327 1.14575",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"})}),aie=()=>{const e=FR(),t=UR((e=>e.assets.isLoading)),r=UR((e=>e.assets.lastTimeUpdated)),[n,o]=(0,i.useState)(!1),[a,s]=(0,i.useState)(!1),[c]=Tne("(max-width: 1200px)");if((0,i.useEffect)((()=>{if(!r)return;if(Ine(new Date,new Date(r))>1)return;o(!0),s(!0);const e=setTimeout((()=>o(!1)),2e3),t=setTimeout((()=>s(!1)),3500);return()=>{clearTimeout(e),clearTimeout(t)}}),[r]),c||null===r)return null;const l=Dne(new Date,new Date(r))>=2,u={opacity:n?1:0,transition:"opacity 2s ease-in-out"};return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(lF,{display:"inline",color:LP.gray[400],size:"sm",style:a?u:void 0,children:[a&&"Updated just now",l&&`Updated ${nie(new Date(r),new Date)} ago`]}),(0,xn.jsx)(_4,{marginRight:"36px",marginLeft:"8px",_active:{color:"white",bg:LP.green},"aria-label":"refetch",backgroundColor:a?LP.green:LP.gray[500],"data-testid":"refetch-button",icon:a?(0,xn.jsx)(oie,{style:u}):(0,xn.jsx)(Yj,{color:"white"}),isLoading:t,onClick:()=>{e(Ld.refetch())},variant:"circle_without_hover_color"})]})},sie=({title:e,subtitle:t})=>{const{openWith:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(En,{children:[(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",height:"88px",children:[(0,xn.jsxs)(_n,{alignItems:"end",children:[(0,xn.jsx)(Ln,{marginRight:"6px",size:"xl",children:e}),(0,xn.jsx)(lF,{color:LP.gray[450],"data-testid":"nft-total-amount",size:"xs",children:t})]}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(aie,{}),(0,xn.jsx)(Gn,{onClick:()=>r((0,xn.jsx)(iie,{})),variant:"tertiary",children:"Buy Tez"}),(0,xn.jsx)(Gn,{marginLeft:4,onClick:()=>r((0,xn.jsx)(bne,{})),children:"Send"})]})]}),(0,xn.jsx)(jre,{})]})},cie=()=>{const{openWith:e}=(0,i.useContext)(EM);return(0,xn.jsxs)(Gn,{alignItems:"center",justifyContent:"end",marginTop:"16px",marginBottom:"16px",cursor:"pointer",onClick:()=>e((0,xn.jsx)(Tre,{buttonText:"Add to Contact",title:"Add contact"})),variant:"CTAWithIcon",children:[(0,xn.jsx)(kj,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:"Add contact"})]})},lie=()=>{const e=(()=>{const e=Fq();return Object.values(e).sort(((e,t)=>e.name.localeCompare(t.name)))})();return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Address Book"}),(0,xn.jsx)(_n,{flexDirection:"row-reverse",children:(0,xn.jsx)(cie,{})}),e.length>0?(0,xn.jsx)(xne,{contacts:e}):(0,xn.jsx)(kne,{description:"Your contacts will appear here...",size:"lg",title:"Your address book is empty"})]})};var uie=r(6712),die=r.n(uie);const hie=({account:{address:e},...t})=>{const r=Wq().find((t=>t.address.pkh===e.pkh)),n=n4()(e.pkh),i=o4(e);return r?(0,xn.jsxs)(_n,{alignItems:"space-between",cursor:"pointer","data-testid":"account-small-tile",...t,children:[(0,xn.jsx)(lq,{addressKind:i}),(0,xn.jsxs)(_n,{alignSelf:"center",height:"20px",marginLeft:"12px",children:[(0,xn.jsx)(Ln,{marginRight:"10px","data-testid":"account-small-tile-label",size:"sm",children:r.label}),(0,xn.jsx)(lF,{marginRight:"35px",color:LP.gray[300],"data-testid":"account-small-tile-pkh",size:"xs",children:Y3(e.pkh)}),n&&(0,xn.jsx)(Ln,{"data-testid":"account-small-tile-balance",size:"sm",children:G3(n)})]})]}):null},fie=({estimationResult:e})=>{if(!e)return null;const t=(0,ts.get)(e,"metadata.operation_result.status");if(!t)return null;let r,n,i;switch(t){case"applied":case"backtracked":n=LP.green,i="Estimated",r=(0,xn.jsx)(Tj,{height:"14.5px"});break;case"failed":n=LP.orange,i="Failed",r=(0,xn.jsx)(zR,{width:"12px",height:"13px",stroke:"currentcolor",marginX:"3px"});break;case"skipped":n=LP.orangeL,i="Not Estimated",r=(0,xn.jsx)($j,{stroke:"currentcolor",marginX:"3px"})}return(0,xn.jsx)(_n,{marginTop:"8px",color:n,"data-testid":"estimation-status",children:(0,xn.jsxs)(Sn,{children:[r,(0,xn.jsx)(lF,{marginLeft:"4px",size:"xs",children:i})]})})};function pie(e,t){var r;const n=e.target;if(n){if(!qR(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}var mie=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function gie(e){var t;const{bg:r,bgColor:n,backgroundColor:i,shadow:o,boxShadow:a,shadowColor:s}=e,{getArrowProps:c,getArrowInnerProps:l}=qre(),u=Wre(),d=null!=(t=null!=r?r:n)?t:i,h=null!=o?o:a;return(0,xn.jsx)(wn.div,{...c(),className:"chakra-popover__arrow-positioner",children:(0,xn.jsx)(wn.div,{className:y("chakra-popover__arrow",e.className),...l(e),__css:{"--popper-arrow-shadow-color":mie("colors",s),"--popper-arrow-bg":mie("colors",d),"--popper-arrow-shadow":mie("shadows",h),...u.arrow}})})}gie.displayName="PopoverArrow";const vie=({addressKind:{type:e},...t})=>{switch(e){case"multisig":return(0,xn.jsx)(nR,{"data-testid":`${e}-icon`,...t});case"fa1.2":return(0,xn.jsx)(Wj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"fa2":return(0,xn.jsx)(Gj,{"data-testid":`${e}-icon`,...t,fill:t.stroke,stroke:"none"});case"baker":return(0,xn.jsx)(Aj,{"data-testid":`${e}-icon`,...t});case"contact":return(0,xn.jsx)(Mj,{"data-testid":`${e}-icon`,...t});case"unknown":case"implicit":return null}},yie=({addressKind:{type:e,pkh:t},addressPillMode:r,...n})=>{const{addressExistsInContacts:o}=Uq(),{openWith:a}=(0,i.useContext)(EM);if("removable"===r.type)return(0,xn.jsx)(BR,{cursor:"pointer",onClick:r.onRemove,...n});return["implicit","multisig","baker"].includes(e)||o(t)?null:(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsx)(kj,{"data-testid":"add-contact-icon",onClick:()=>{a((0,xn.jsx)(Tre,{buttonText:"Add to Contact",contact:{name:"",pkh:t},title:"Add contact"}))},...n})})},bie=({addressKind:{pkh:e,label:t},showPkh:r,alias:n,...i})=>{const o=$q(),a=Y3(e),s=o(e)||t||n;return r?(0,xn.jsx)(lF,{...i,children:a}):(0,xn.jsx)(lF,{...i,children:s?q3(s,21):a})},wie=e=>{const t=a4(e);if(!t)return null;const{pkh:r,label:n}=t;return{type:"multisig"===t.type?"multisig":"implicit",pkh:r,label:n}},xie=({pkh:e})=>{const t=(e=>{const t=UR((t=>t.tokens[e.name]));return e=>{if(!t||!(e in t))return;const r=t[e],n=Object.keys(r)[0];return n?r[n].type:void 0}})(U3()),r=t(e);if(!r)return null;switch(r){case"fa1.2":return{pkh:e,type:"fa1.2",label:null};case"fa2":case"nft":return{pkh:e,type:"fa2",label:null}}},_ie=({address:e,mode:t={type:"default"},...r})=>{const n=!("pkh"in e&&"type"in e),o=n?td(e.address):e,a=(e=>{const t=wie(e),r=xie(e),n=s4(e),i=c4(e);return t||r||n||i||{pkh:e.pkh,type:"unknown",label:null}})(o),s="no_icons"!==t.type,{onOpen:c,onClose:l,isOpen:u}=YR(),[d,h]=(0,i.useState)(!1),f=(0,i.useRef)(null);let p,m,g;return function(e){const{ref:t,handler:r,enabled:n=!0}=e,o=GR(r),a=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)((()=>{if(!n)return;const e=e=>{pie(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&pie(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&pie(e,t)&&(a.isPointerDown=!1,o(e))},c=qR(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",i,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",i,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,n])}({ref:f,handler:()=>{h(!1)}}),u?(p=LP.green,m=LP.gray[300],g="white"):d?(p=LP.gray[450],m=LP.gray[400],g=LP.gray[200]):(p=LP.gray[500],m=LP.gray[450],g=LP.gray[300]),(0,xn.jsx)(En,{maxWidth:"max-content","data-testid":"address-pill",...r,children:(0,xn.jsxs)(_n,{ref:f,alignItems:"center",background:p,borderRadius:"full",onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},paddingX:"4px",children:[s&&(0,xn.jsx)(vie,{marginLeft:"4px",stroke:m,addressKind:a,"data-testid":"address-pill-left-icon"}),(0,xn.jsxs)(Gre,{autoFocus:!1,isOpen:u,onOpen:async()=>{await navigator.clipboard.writeText(o.pkh),c(),setTimeout(l,1e3)},children:[(0,xn.jsx)(Yre,{children:(0,xn.jsx)(Gn,{height:"24px",_focus:{boxShadow:"none"},onClick:e=>e.stopPropagation(),variant:"unstyled",children:(0,xn.jsx)(bie,{color:g,cursor:"pointer",addressKind:a,alias:n&&e.alias?e.alias:void 0,"data-testid":"address-pill-text",marginX:"4px",showPkh:!s,size:"sm"})})}),(0,xn.jsxs)(ene,{maxWidth:"max-content",background:"white",children:[(0,xn.jsx)(gie,{background:"white !important"}),(0,xn.jsx)(tne,{children:(0,xn.jsx)(lF,{color:"black",size:"sm",children:"Copied!"})})]})]}),s&&(0,xn.jsx)(yie,{marginRight:"4px",stroke:LP.gray[300],cursor:"pointer",addressKind:a,addressPillMode:t,"data-testid":"address-pill-right-icon"})]})})},Sie=({operation:e})=>{let t;switch(e.type){case"undelegation":case"contract_origination":t=void 0;break;case"tez":case"fa1.2":case"fa2":case"delegation":t=e.recipient;break;case"contract_call":t=e.contract}return t?(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:t,"data-testid":"recipient"})]}):(0,xn.jsx)(lF,{color:LP.gray[500],"data-testid":"recipient",children:"N/A"})},kie=e=>null===e||void 0===e?void 0:e.replace("ipfs://","https://ipfs.io/ipfs/"),Eie=e=>(0,ts.orderBy)(e,["lastLevel","id","owner"],["desc"]),Aie=({operation:e})=>{const t=V3(),r=U3();switch(e.type){case"tez":return(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(yR,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:G3(e.amount)})]});case"fa1.2":case"fa2":{const n=t(e.contract.pkh,e.tokenId);return"nft"===(null===n||void 0===n?void 0:n.type)?(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(yR,{marginRight:"8px"}),Number(e.amount)>1&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(Ln,{color:LP.gray[450],size:"sm",children:["x",e.amount]}),"\xa0"]}),(0,xn.jsx)(Ln,{size:"sm",children:(0,xn.jsx)(tq,{padding:"8px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px",label:(0,xn.jsx)(hF,{width:"170px",height:"170px",ratio:1,children:(0,xn.jsx)(TR,{src:kie(xd(n))})}),openDelay:300,children:(0,xn.jsx)(Zn,{"data-testid":"link",href:kd(n,r),children:hd(n)})})})]}):(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(yR,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:(0,xn.jsx)(Zn,{"data-testid":"link",href:n?kd(n,r):void 0,children:Bie(n,e.amount)})})]})}case"delegation":return(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(Aj,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:"Delegate"})]});case"undelegation":return(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(Aj,{marginRight:"8px"}),(0,xn.jsx)(Ln,{size:"sm",children:"End Delegation"})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},Pie=({addressKind:e})=>{switch(e.type){case"secret_key":case"mnemonic":return(0,xn.jsx)(sq,{width:"48px",height:"48px",padding:"8px",address:e.pkh,identiconSize:32});case"social":case"contact":case"ledger":case"multisig":case"unknown":case"baker":{const t="social"===e.type?"white":LP.gray[500];return(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"center",padding:"4px",background:t,borderRadius:"4px",children:(0,xn.jsx)(lq,{addressKind:e,size:"md"})})}}},Oie=(0,i.createContext)({selectedAccount:null,selectAccount:()=>{}}),Tie=({icon:e,leftElement:t,rightElement:r,...n})=>(0,xn.jsxs)(_n,{alignItems:"center",height:90,marginBottom:4,padding:4,border:`1px solid ${LP.gray[800]}`,borderRadius:4,...n,children:[e,(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flex:1,children:[t,r]})]}),Cie=({label:e,pkh:t})=>(0,xn.jsxs)(En,{margin:4,"data-testid":"account-identifier",children:[e&&(0,xn.jsx)(Ln,{size:"md",children:e}),(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(lF,{color:"text.dark","data-testid":"short-address",size:"sm",children:Y3(t)})})]}),jie=({account:e,radius:t,left:r="0px",top:n="0px",mainBackgroundColor:i=LP.gray[900],opacity:o="60"})=>{let a;switch(e.type){case"mnemonic":case"secret_key":s=e.address.pkh,a=`#${nq()(s).slice(0,6)}`;break;case"ledger":case"multisig":a=LP.gray[450];break;case"social":a="#EA4335"}var s;return a+=o,`radial-gradient(circle farthest-side at ${r} ${n}, ${a} 0%, ${a} ${parseInt(t)/4}px, transparent ${t}), ${i}`},Rie=({account:e,balance:t})=>{const{selectedAccount:r,selectAccount:n}=(0,i.useContext)(Oie),o=(null===r||void 0===r?void 0:r.address.pkh)===e.address.pkh,a=o4(e.address),{address:{pkh:s}}=e,c=!!UR((e=>e.assets.delegationLevels))[s],l=e4(),u=Eie(l(s));return(0,xn.jsxs)(En,{zIndex:2,background:jie({left:"-10px",top:"-10px",account:e,radius:u.length>0?"120px":"100px"}),borderWidth:"1px",borderStyle:"solid",borderColor:o?LP.orangeL:LP.gray[900],borderRadius:"8px",_hover:{borderColor:o?LP.orangeL:LP.gray[700]},cursor:"pointer","data-testid":"account-tile-container",onClick:()=>n(e),paddingX:"21px",children:[(0,xn.jsx)(Tie,{align:"bottom",marginBottom:0,padding:0,border:"none","data-testid":`account-tile-${s}`+(o?"-selected":""),icon:(0,xn.jsx)(Pie,{addressKind:a}),leftElement:(0,xn.jsx)(Cie,{label:a.label,pkh:s}),rightElement:(0,xn.jsxs)(_n,{flexDirection:"column",children:[t&&(0,xn.jsx)(Ln,{alignSelf:"flex-end",size:"lg",children:G3(t)}),(0,xn.jsx)(lF,{align:"right",color:LP.gray[450],fontWeight:700,size:"sm",children:c?"Delegated":(0,xn.jsx)(xn.Fragment,{children:"\xa0"})})]})}),u.length>0&&(0,xn.jsxs)(_n,{flexDirection:"column","data-testid":"nfts-list",children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(_n,{marginY:"21px",children:u.slice(0,7).map(((e,t)=>{const r=kie(xd(e));return 6===t?(0,xn.jsx)(PT,{"data-testid":"show-more-nfts-link",to:`/nfts?accounts=${s}`,children:(0,xn.jsx)(En,{height:"32px",marginLeft:"4px",background:LP.gray[600],borderRadius:"4px",children:(0,xn.jsx)(lF,{align:"center",width:"32px",color:LP.gray[450],fontWeight:700,children:"..."})})},"last"):(0,xn.jsx)(PT,{"data-testid":"nft-link",to:`/home/${s}/${dd(e)}`,children:(0,xn.jsx)(hF,{width:"32px",height:"32px",marginLeft:t>0?"4px":0,ratio:1,children:(0,xn.jsx)(TR,{borderRadius:"4px",src:r})})},dd(e))}))})]})]})},Iie=({title:e,description:t,buttonLabel:r,onSubmit:n})=>{const{onClose:o}=(0,i.useContext)(EM);return(0,xn.jsxs)(oF,{children:[(0,xn.jsxs)(sF,{marginBottom:"10px",textAlign:"center",children:[(0,xn.jsx)(En,{children:(0,xn.jsx)(zR,{width:"40px",height:"40px",marginBottom:"16px"})}),(0,xn.jsx)(Ln,{children:e}),(0,xn.jsx)(aF,{})]}),t&&(0,xn.jsx)(uF,{children:(0,xn.jsx)(lF,{align:"center",color:LP.gray[400],"data-testid":"description",children:t})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",onClick:()=>{n(),o()},size:"lg",variant:"warning",children:r})})]})},Mie=({title:e,fee:t,transactionCount:r,signer:n})=>(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(Lte,{subTitle:Fte(n),title:e}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:n.address}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(lF,{marginRight:1,color:LP.gray[450],size:"sm",children:"Transactions:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"transaction-length",size:"sm",children:r})]}),(0,xn.jsx)(Ite,{fee:t})]})]})]}),Lie=({initialOperations:e,initialFee:t})=>{const{fee:r,operations:n,estimationFailed:i,isLoading:o,signer:a,form:s,reEstimate:c,onSign:l}=une(t,e,"batch"),u=Bte(n.type,"batch");return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Mie,{fee:r,signer:a,title:u,transactionCount:n.operations.length}),(0,xn.jsx)(one,{isLoading:o,operationType:n.type,reEstimate:c,sender:n.sender}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:i,isLoading:o,onSubmit:l,signer:a,text:u})})]})})})},Nie=({operations:e,onSubmit:t,isLoading:r})=>{const{type:n,sender:o,operations:a}=e,{openWith:s}=(0,i.useContext)(EM);return(0,xn.jsxs)(En,{alignItems:"center",justifyContent:"space-between","data-testid":"right-header",children:[(0,xn.jsx)(lF,{display:"inline-block",color:LP.gray[400],size:"sm",children:die()("transaction",a.length,!0)}),(0,xn.jsx)(Gn,{marginLeft:"30px",isLoading:r,onClick:t,variant:"primary",children:Bte(n,"batch")}),(0,xn.jsx)(_4,{marginLeft:"16px",borderRadius:"4px","aria-label":"remove-batch","data-testid":"remove-batch",icon:(0,xn.jsx)(jR,{stroke:LP.gray[300]}),onClick:()=>s((0,xn.jsx)(zie,{sender:o}),"sm"),variant:"circle"})]})},Die=e=>{switch(e.type){case"fa1.2":case"fa2":return"Token Transfer";case"undelegation":case"delegation":return"Delegation";case"tez":return"\ua729 Transfer";case"contract_origination":case"contract_call":throw new Error(`${e.type} is not supported yet`)}},zie=({sender:e})=>{const t=sne();return(0,xn.jsx)(Iie,{buttonLabel:"Delete Batch",description:"Are you sure you want to remove all transactions from the batch?",onSubmit:()=>t(e),title:"Delete Batch"})},Bie=(e,t)=>{if(!e)return`${t} Unknown Token`;const r=fd(e),n=bd(t,e,{showSymbol:!1}),i=r?void 0:md(e);return(0,ts.compact)([n,i,r]).join(" ")},Fie={metadata:{operation_result:{status:"applied"}}},Uie=({operations:e})=>{const{operations:t,sender:r}=e,n=t.length>9,o=(()=>{const e=FR(),t=U3();return(r,n)=>e(Ud.removeItem({pkh:r.address.pkh,index:n,network:t}))})(),{openWith:a}=(0,i.useContext)(EM),s=U3(),[c,l]=i.useState([]);(0,i.useEffect)((()=>{l([])}),[t.length]);const{isLoading:u,handleAsyncAction:d}=Ste(),h=(0,xn.jsx)(Nie,{isLoading:u,onSubmit:()=>d((async()=>{l([]);try{const r=await c3(e,s);l(t.map((e=>Fie))),a((0,xn.jsx)(Lie,{initialFee:r,initialOperations:e}))}catch(r){if(r instanceof p2){const e=r.operationsWithResults;e.length>t.length&&e.shift(),l(e)}throw r}})),operations:e});return(0,xn.jsxs)(En,{width:"100%",marginBottom:"16px","data-testid":`batch-table-${r.address.pkh}`,children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",padding:"20px 23px 20px 30px",background:jie({top:"-10px",left:"-10px",account:r,radius:"100px",opacity:"40",mainBackgroundColor:LP.gray[800]}),borderTopRadius:"8px","data-testid":"header",children:[(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(hie,{paddingLeft:0,account:r})}),h]}),(0,xn.jsx)(_n,{flexDirection:"column",background:LP.gray[900],borderBottomRadius:n?0:"8px",paddingX:"30px",paddingY:"20px",children:t.map(((e,n)=>{const i=c.at(n);return(0,xn.jsxs)(En,{"data-testid":"operation",children:[(0,xn.jsxs)(_n,{flexDirection:"column",height:i?"80px":"50px",children:[(0,xn.jsx)(_n,{children:(0,xn.jsx)(Aie,{operation:e})}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",width:"100%",marginTop:"8px",children:[(0,xn.jsxs)(_n,{flexDirection:"column",children:[(0,xn.jsx)(_n,{children:(0,xn.jsx)(Sie,{operation:e})}),(0,xn.jsx)(fie,{estimationResult:i})]}),(0,xn.jsxs)(_n,{alignSelf:"flex-end",children:[(0,xn.jsx)(lF,{alignSelf:"flex-end",color:LP.gray[450],size:"sm",children:Die(e)}),(0,xn.jsx)(_4,{width:"24px",marginLeft:"12px",borderRadius:"full","aria-label":"Remove",icon:(0,xn.jsx)(jR,{stroke:LP.gray[300]}),onClick:()=>o(r,n),size:"xs",variant:"circle"})]})]})]}),n{const n=t.filter((e=>e.length>0)),i=n.length;if(i<2||4{const e=U3(),t=lz(),r=V3(),n=FR(),o=Xq(),a=eK(),{onClose:s}=(0,i.useContext)(EM),{isLoading:c,handleAsyncAction:l}=Ste(),u=L$({mode:"onBlur"}),{handleSubmit:d,formState:{isValid:h,errors:f}}=u;return(0,xn.jsx)(OU,{...u,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:d((async({file:i,sender:c})=>l((async()=>{const l=o(c),u=await new Promise((e=>{Hie().parse(i[0],{skipEmptyLines:!0,complete:e})}));if(u.errors.length>0)throw new Error("Error loading csv file: "+u.errors.map((e=>e.message)).join(", "));const d=[];for(let e=0;e{const{openWith:e}=(0,i.useContext)(EM);return(0,xn.jsxs)(Gn,{onClick:()=>e((0,xn.jsx)(Kie,{})),variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"4px",size:"sm",children:"Load CSV file"}),(0,xn.jsx)(Zj,{stroke:"currentcolor"})]})},Gie=({batchPending:e})=>(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"24px",marginBottom:"24px",children:[(0,xn.jsxs)(Ln,{flex:1,color:LP.orangeL,size:"sm",children:[e," Pending"]}),(0,xn.jsx)(Wie,{}),(0,xn.jsx)(_ne,{marginLeft:"8px",href:"https://github.com/trilitech/umami-v1/blob/main/CSV_FILE_SPEC.md",children:(0,xn.jsxs)(Gn,{paddingRight:"0",variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"4px",size:"sm",children:"See file specs"}),(0,xn.jsx)(Vj,{stroke:"currentcolor"})]})})]}),Yie=()=>{const e=(()=>{const e=U3(),t=UR((t=>t.batches[e.name]));return t||[]})();return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Batch"}),(0,xn.jsx)(Gie,{batchPending:e.length}),(0,xn.jsx)(En,{overflowY:"auto",minHeight:"80%",children:e.length>0?e.map((e=>(0,xn.jsx)(Uie,{operations:e},e.sender.address.pkh))):(0,xn.jsx)(kne,{description:"There is no batch transactions to show...",size:"lg",title:"No batches to show"})})]})};var Zie=v((function(e,t){const{templateAreas:r,gap:n,rowGap:i,columnGap:o,column:a,row:s,autoFlow:c,autoRows:l,templateRows:u,autoColumns:d,templateColumns:h,...f}=e,p={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:i,gridColumnGap:o,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:c,gridAutoRows:l,gridTemplateRows:u,gridTemplateColumns:h};return(0,xn.jsx)(wn.div,{ref:t,__css:p,...f})}));function Xie(e){return dF(e,(e=>"auto"===e?"auto":`span ${e}/span ${e}`))}Zie.displayName="Grid";var Jie=v((function(e,t){const{area:r,colSpan:n,colStart:i,colEnd:o,rowEnd:a,rowSpan:s,rowStart:c,...l}=e,u=cF({gridArea:r,gridColumn:Xie(n),gridRow:Xie(s),gridColumnStart:i,gridColumnEnd:o,gridRowStart:c,gridRowEnd:a});return(0,xn.jsx)(wn.div,{ref:t,__css:u,...l})}));Jie.displayName="GridItem";const Qie=({onClick:e,children:t,isSelected:r,...n})=>(0,xn.jsx)(B$,{justifyContent:"center",height:"66px",marginBottom:"10px",padding:"24px",border:"1px solid",borderColor:r?` ${LP.orangeL}`:"transparent",borderRadius:"lg",_hover:{border:`1px solid ${LP.gray[500]}`,bg:LP.gray[800]},cursor:e?"pointer":void 0,backgroundColor:LP.gray[900],onClick:e,...n,children:(0,xn.jsx)(F$,{padding:0,children:t})}),eoe=({left:e,isSelected:t,onClick:r})=>(0,xn.jsx)(Qie,{isSelected:t,onClick:r,children:(0,xn.jsx)(_n,{alignItems:"center",height:"100%",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,xn.jsx)(Ln,{size:"sm",children:e}),(0,xn.jsx)(jj,{})]})})}),toe=()=>(0,xn.jsxs)(Zie,{gridGap:"1",gridTemplateRows:"0fr 1fr 1fr",gridTemplateColumns:"1fr 1fr",gridTemplateAreas:'\n "header header"\n "main main"\n "main main"\n ',height:"100%",children:[(0,xn.jsx)(Jie,{gridArea:"header",children:(0,xn.jsx)(sie,{title:"Help"})}),(0,xn.jsxs)(Jie,{gridArea:"main",marginTop:1,children:[(0,xn.jsx)(noe,{title:"Learn More",children:(0,xn.jsx)(roe,{about:"Browse Articles",externalLink:"https://medium.com/umamiwallet"})}),(0,xn.jsxs)(noe,{title:"Need Help?",children:[(0,xn.jsx)(roe,{about:"Contact our Support Team",externalLink:"mailto:umami-support@trili.tech",linkDescription:"umami-support@trili.tech"}),(0,xn.jsx)(roe,{about:"Get in touch with the Community",externalLink:"https://join.slack.com/t/tezos-dev/shared_invite/zt-1ur1ymxrp-G_X_bFHrvWXwoeiy53J8lg",linkDescription:"Slack #Umami"})]}),(0,xn.jsxs)(noe,{title:"Terms",children:[(0,xn.jsx)(roe,{about:"Read Terms of Service",externalLink:"https://umamiwallet.com/tos.html"}),(0,xn.jsx)(roe,{about:"Read Privacy Policy",externalLink:"https://umamiwallet.com/privacypolicy.html"})]})]})]}),roe=({about:e,externalLink:t,linkDescription:r})=>(0,xn.jsx)(PT,{rel:"noopener noreferrer",target:"_blank",to:t,children:(0,xn.jsx)(Qie,{cursor:"pointer",isSelected:!1,children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{size:"sm",children:e}),(0,xn.jsxs)(_n,{alignItems:"center",children:[r&&(0,xn.jsx)(lF,{marginRight:"4px",color:LP.gray[400],size:"sm",children:r}),(0,xn.jsx)(Vj,{})]})]})})}),noe=({title:e,children:t})=>(0,xn.jsx)(En,{"data-testid":"help-card",marginY:"10px",children:(0,xn.jsx)(_n,{children:(0,xn.jsxs)(En,{width:"550px",children:[(0,xn.jsx)(Ln,{marginBottom:"16px",size:"lg",children:e}),t]})})});var[ioe,ooe]=Nn(),aoe={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function soe(e){var t;const{isOpen:r,onClose:n,placement:i="right",children:o,...a}=e,s=On(),c=null==(t=s.components)?void 0:t.Drawer,l=function(e,t){var r,n;if(e)return null!=(n=null==(r=aoe[e])?void 0:r[t])?n:e}(i,s.direction);return(0,xn.jsx)(ioe,{value:{placement:l},children:(0,xn.jsx)(fI,{isOpen:r,onClose:n,styleConfig:c,...a,children:o})})}var coe={exit:{duration:.15,ease:pI.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},loe={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var i;const{exit:o}=bI({direction:e});return{...o,transition:null!=(i=null==t?void 0:t.exit)?i:_I(coe.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var i;const{enter:o}=bI({direction:e});return{...o,transition:null!=(i=null==r?void 0:r.enter)?i:xI(coe.enter,n),transitionEnd:null==t?void 0:t.enter}}},uoe=(0,i.forwardRef)((function(e,t){const{direction:r="right",style:n,unmountOnExit:i,in:o,className:a,transition:s,transitionEnd:c,delay:l,motionProps:u,...d}=e,h=bI({direction:r}),f=Object.assign({position:"fixed"},h.position,n),p=!i||o&&i,m=o||i?"enter":"exit",g={transitionEnd:c,transition:s,direction:r,delay:l};return(0,xn.jsx)(pP,{custom:g,children:p&&(0,xn.jsx)(FA.div,{...d,ref:t,initial:"exit",className:y("chakra-slide",a),animate:m,exit:"exit",custom:g,variants:loe,style:f,...u})})}));uoe.displayName="Slide";var doe=wn(uoe),hoe=v(((e,t)=>{const{className:r,children:n,motionProps:i,containerProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:c,isOpen:l}=hI(),u=s(a,t),d=c(o),h=y("chakra-modal__content",r),f=uI(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:g}=ooe();return(0,xn.jsx)(iF,{children:(0,xn.jsx)(wn.div,{...d,className:"chakra-modal__content-container",__css:m,children:(0,xn.jsx)(doe,{motionProps:i,direction:g,in:l,className:h,...u,__css:p,children:n})})})}));hoe.displayName="DrawerContent";const foe=({onRemove:e,onCreate:t})=>(0,xn.jsx)(rne,{children:(0,xn.jsxs)(En,{paddingY:"0",children:[(0,xn.jsx)(Gn,{height:t?"24px":"28px","data-testid":"popover-remove",onClick:e,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Remove"}),(0,xn.jsx)(jR,{stroke:"inherit"})]})}),t&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{marginY:"4px"}),(0,xn.jsx)(Gn,{onClick:t,variant:"popover",children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",flex:1,children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Create"}),(0,xn.jsx)(wR,{width:"18px",height:"18px",stroke:"inherit"})]})})]})]})});var poe=e=>(0,xn.jsx)(wn.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});poe.displayName="StackItem";var moe=v(((e,t)=>{const{isInline:r,direction:n,align:o,justify:a,spacing:s="0.5rem",wrap:c,children:l,divider:u,className:d,shouldWrapChildren:h,...f}=e,p=r?"row":null!=n?n:"column",m=(0,i.useMemo)((()=>function(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":dF(r,(e=>n[e]))}}({spacing:s,direction:p})),[s,p]),g=!!u,v=!h&&!g,b=(0,i.useMemo)((()=>{const e=V$(l);return v?e:e.map(((t,r)=>{const n="undefined"!==typeof t.key?t.key:r,o=r+1===e.length,a=h?(0,xn.jsx)(poe,{children:t},n):t;if(!g)return a;const s=(0,i.cloneElement)(u,{__css:m}),c=o?null:s;return(0,xn.jsxs)(i.Fragment,{children:[a,c]},n)}))}),[u,m,g,v,h,l]),w=y("chakra-stack",d);return(0,xn.jsx)(wn.div,{ref:t,display:"flex",alignItems:o,justifyContent:a,flexDirection:p,flexWrap:c,gap:g?void 0:s,className:w,...f,children:b})}));moe.displayName="Stack";var goe=v(((e,t)=>(0,xn.jsx)(moe,{align:"center",...e,direction:"column",ref:t})));goe.displayName="VStack";const voe=({icon:e,size:t,onClick:r=(()=>{})})=>(0,xn.jsx)(En,{width:t,height:t,margin:"auto",background:LP.gray[700],borderRadius:"full",onClick:r,children:(0,xn.jsx)(Sn,{height:"100%",children:e})}),yoe=({children:e,icon:t,title:r,subtitle:n})=>(0,xn.jsxs)(goe,{maxHeight:"83vh",spacing:0,children:[(0,xn.jsx)(En,{marginBottom:"20px",children:(0,xn.jsx)(voe,{icon:t,size:"48px"})}),(0,xn.jsxs)(Sn,{flexDirection:"column",marginBottom:"32px",children:[(0,xn.jsx)(Ln,{size:"xl",children:r}),n&&(0,xn.jsx)(lF,{marginTop:"10px",color:LP.gray[400],textAlign:"center",size:"sm",children:n})]}),e]}),boe=({onSubmit:e,isLoading:t})=>{const r=L$({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o}}=r;return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(pR,{}),subtitle:"Enter your master password for Umami.",title:"Umami Master Password",children:(0,xn.jsx)(OU,{...r,children:(0,xn.jsxs)("form",{onSubmit:n((t=>{e(t.password)})),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{isInvalid:!!i.password,children:[(0,xn.jsx)(Ate,{"data-testid":"password",inputName:"password"}),i.password&&(0,xn.jsx)(Ete,{children:i.password.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!o,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},woe=({onSubmit:e,title:t="Name Your Account",subtitle:r})=>{const{register:n,handleSubmit:i}=L$({mode:"onChange"});return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(Uj,{}),subtitle:r,title:t,children:(0,xn.jsxs)("form",{onSubmit:i(e),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{children:[(0,xn.jsx)($$,{children:"Account name"}),(0,xn.jsx)(Z$,{"data-testid":"name",type:"text",...n("accountName",{required:!1}),placeholder:"Optional"})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",size:"lg",type:"submit",children:"Continue"})]})})},xoe=e=>{const[t,r]=(0,i.useState)();return void 0===t?(0,xn.jsx)(woe,{onSubmit:e=>r(e.accountName),subtitle:e.subtitle,title:e.title}):(0,xn.jsx)(boe,{isLoading:e.isLoading,onSubmit:r=>e.onSubmit({name:t,password:r})})},_oe=e=>(0,xn.jsx)(En,{overflowY:"auto",height:"100%",children:e.children}),Soe=({goToStep:e})=>{const t=qq().length>0;return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(fR,{}),title:"Connect or Import Account",children:(0,xn.jsxs)(goe,{width:"100%",spacing:"16px",children:[(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.restoreMnemonic}),size:"lg",children:"Import with Seed Phrase"}),(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.restoreSecretKey}),size:"lg",variant:"tertiary",children:"Import with Secret Key"}),!t&&(0,xn.jsx)(Gn,{width:"100%",onClick:t=>{e({type:Iae.restoreBackup})},size:"lg",variant:"tertiary",children:"Restore from Backup"}),(0,xn.jsx)(Gn,{width:"100%",onClick:t=>{e({type:Iae.nameAccount,account:{type:"ledger"}})},size:"lg",variant:"tertiary",children:"Connect ledger"})]})})},koe=({secretKey:e,label:t,password:r})=>async n=>{const{account:i,encryptedSecretKey:o}=await(async({secretKey:e,label:t,password:r})=>{const{pk:n,pkh:i}=await r3(e),o=await $c(e,r);return{account:{type:"secret_key",pk:n,label:t,address:ad(i)},encryptedSecretKey:o}})({secretKey:e,label:t,password:r});n(Kc.actions.addAccount(i)),n(Kc.actions.addSecretKey({pkh:i.address.pkh,encryptedSecretKey:o}))},Eoe=e=>async t=>{t(Kc.actions.removeSecretKey(e)),t(Kc.actions.removeAccount(e))},{addAccount:Aoe,removeMnemonicAndAccounts:Poe,removeNonMnemonicAccounts:Ooe}=Kc.actions,Toe=()=>{const e=U3(),t=B3(),r=Ei();return async({mnemonic:n,password:i,derivationPath:o,label:a})=>{const s=await Q5(n),c=await t(n,e,o,a),l=await $c(n,i);r(Kc.actions.addMnemonicAccounts({seedFingerprint:s,accounts:c,encryptedMnemonic:l}))}},Coe=()=>{const e=FR();return(t,r,n,i)=>{e(Aoe({derivationPath:t,curve:"ed25519",type:"ledger",pk:r,address:{type:"implicit",pkh:n},label:i}))}},joe=({goToStep:e,closeModal:t})=>{const{handleAsyncAction:r}=Ste(),n=(()=>{const e=FR();return(t,r,n)=>{e(Aoe({type:"social",pk:t,address:{type:"implicit",pkh:r},idp:"google",label:n}))}})(),i=lz();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(DR,{}),title:"Connect or Create Account",children:(0,xn.jsxs)(goe,{width:"100%",spacing:"16px",children:[(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.notice}),size:"lg",children:"Create a new Account"}),(0,xn.jsx)(Gn,{width:"100%",onClick:t=>e({type:Iae.connectOptions}),size:"lg",variant:"tertiary",children:"I already have a wallet"}),(0,xn.jsxs)(_n,{width:"100%",paddingTop:"14px",paddingBottom:"6px",children:[(0,xn.jsx)(jre,{marginTop:"11px"}),(0,xn.jsx)(lF,{minWidth:"160px",color:LP.gray[400],textAlign:"center",noOfLines:1,size:"sm",children:"Continue with Google"}),(0,xn.jsx)(jre,{marginTop:"11px"})]}),(0,xn.jsx)(kte,{onAuth:(e,o)=>r((async()=>{const{pk:r,pkh:a}=await r3(e);n(r,a,o),i({description:`Successfully added ${o} account`,status:"success"}),t()}))})]})})},Roe=({selected:e,options:t,onChange:r})=>{const[n,o]=(0,i.useState)(e),[a,s]=(0,i.useState)(!1);return(0,xn.jsxs)(En,{children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",height:"48px",padding:"12px 15px 15px 15px",color:LP.gray[300],background:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],borderRadius:"4px",_hover:{borderColor:LP.gray[450]},cursor:"pointer","data-testid":"select-input",onClick:()=>s((e=>!e)),children:[(0,xn.jsx)(lF,{size:"sm",children:n.label}),(0,xn.jsx)(Cj,{marginTop:"2px"})]}),a&&(0,xn.jsx)(oH,{position:"absolute",zIndex:2,width:"100%",margin:0,marginTop:"8px",padding:"15px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px","data-testid":"select-options",listStyleType:"none",children:t.map((e=>(0,xn.jsx)(aH,{marginBottom:"5px",padding:"11px",color:LP.gray[300],background:"transparent",borderRadius:"4px",_hover:{background:LP.gray[500]},cursor:"pointer",onClick:()=>{s(!1),o(e),r(e.value)},children:(0,xn.jsx)(lF,{size:"sm",children:e.label})},e.value)))})]})},Ioe=({goToStep:e,account:t})=>{const{handleSubmit:r,setValue:n,formState:{errors:i}}=L$({mode:"onBlur",defaultValues:{derivationPath:Lq}});return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(SR,{}),subtitle:"Choose a custom derivation path or select the default derivation path and use the default key.",title:"Derivation Path",children:(0,xn.jsxs)("form",{onSubmit:r((async({derivationPath:r})=>{switch(t.type){case"ledger":e({type:Iae.restoreLedger,account:{...t,derivationPath:r}});break;case"mnemonic":e({type:Iae.masterPassword,account:{...t,derivationPath:r}})}})),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{marginBottom:"20px",children:[(0,xn.jsx)($$,{children:"Select Path"}),(0,xn.jsx)(Roe,{onChange:e=>n("derivationPath",e),options:Dq,selected:Nq}),i.derivationPath&&(0,xn.jsx)(Ete,{"data-testid":"error-message",children:i.derivationPath.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"12px",size:"lg",type:"submit",children:"Continue"}),(0,xn.jsx)(_ne,{display:"block",width:"100%",marginTop:"32px",textAlign:"center",href:"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki",children:(0,xn.jsx)(tq,{backgroundColor:"white",defaultIsOpen:!1,hasArrow:!0,label:"Derivation path is a set of directions that helps create different secret keys; it starts from a master key or seed.",children:(0,xn.jsx)(lF,{color:LP.blue,fontWeight:600,textDecoration:"underline",_hover:{textDecoration:"underline"},size:"sm",children:"What's a Derivation Path?"})})})]})})};var[Moe,Loe]=Nn({name:"CheckboxGroupContext",strict:!1});function Noe(e){return(0,xn.jsx)(wn.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,xn.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Doe(e){return(0,xn.jsx)(wn.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,xn.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function zoe(e){const{isIndeterminate:t,isChecked:r,...n}=e,i=t?Doe:Noe;return r||t?(0,xn.jsx)(wn.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,xn.jsx)(i,{...n})}):null}var Boe={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};var Foe=()=>"undefined"!==typeof document;var Uoe=!1,$oe=null,Hoe=!1,Voe=!1,qoe=new Set;function Koe(e,t){qoe.forEach((r=>r(e,t)))}var Woe="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function Goe(e){Hoe=!0,function(e){return!(e.metaKey||!Woe&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($oe="keyboard",Koe("keyboard",e))}function Yoe(e){if($oe="pointer","mousedown"===e.type||"pointerdown"===e.type){Hoe=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Koe("pointer",e)}}function Zoe(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(Hoe=!0,$oe="virtual")}function Xoe(e){e.target!==window&&e.target!==document&&(Hoe||Voe||($oe="virtual",Koe("virtual",e)),Hoe=!1,Voe=!1)}function Joe(){Hoe=!1,Voe=!0}function Qoe(){return"pointer"!==$oe}function eae(){if(!Foe()||Uoe)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){Hoe=!0,e.apply(this,t)},document.addEventListener("keydown",Goe,!0),document.addEventListener("keyup",Goe,!0),document.addEventListener("click",Zoe,!0),window.addEventListener("focus",Xoe,!0),window.addEventListener("blur",Joe,!1),"undefined"!==typeof PointerEvent?(document.addEventListener("pointerdown",Yoe,!0),document.addEventListener("pointermove",Yoe,!0),document.addEventListener("pointerup",Yoe,!0)):(document.addEventListener("mousedown",Yoe,!0),document.addEventListener("mousemove",Yoe,!0),document.addEventListener("mouseup",Yoe,!0)),Uoe=!0}function tae(e){eae(),e(Qoe());const t=()=>e(Qoe());return qoe.add(t),()=>{qoe.delete(t)}}function rae(e={}){const t=Y$(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:a,id:s,onBlur:c,onFocus:l,"aria-describedby":u}=t,{defaultChecked:d,isChecked:h,isFocusable:f,onChange:p,isIndeterminate:m,name:g,value:v,tabIndex:y,"aria-label":b,"aria-labelledby":w,"aria-invalid":x,..._}=e,k=function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),A=kb(p),P=kb(c),O=kb(l),[T,C]=(0,i.useState)(!1),[j,R]=(0,i.useState)(!1),[I,M]=(0,i.useState)(!1),[L,N]=(0,i.useState)(!1);(0,i.useEffect)((()=>tae(C)),[]);const D=(0,i.useRef)(null),[z,B]=(0,i.useState)(!0),[F,U]=(0,i.useState)(!!d),$=void 0!==h,H=$?h:F,V=(0,i.useCallback)((e=>{n||r?e.preventDefault():($||U(H?e.target.checked:!!m||e.target.checked),null==A||A(e))}),[n,r,H,$,m,A]);Oh((()=>{D.current&&(D.current.indeterminate=Boolean(m))}),[m]),Eb((()=>{r&&R(!1)}),[r,R]),Oh((()=>{const e=D.current;if(!(null==e?void 0:e.form))return;const t=()=>{U(!!d)};return e.form.addEventListener("reset",t),()=>{var r;return null==(r=e.form)?void 0:r.removeEventListener("reset",t)}}),[]);const q=r&&!f,K=(0,i.useCallback)((e=>{" "===e.key&&N(!0)}),[N]),W=(0,i.useCallback)((e=>{" "===e.key&&N(!1)}),[N]);Oh((()=>{if(!D.current)return;D.current.checked!==H&&U(D.current.checked)}),[D.current]);const G=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":S(L),"data-hover":S(I),"data-checked":S(H),"data-focus":S(j),"data-focus-visible":S(j&&T),"data-indeterminate":S(m),"data-disabled":S(r),"data-invalid":S(a),"data-readonly":S(n),"aria-hidden":!0,onMouseDown:E(e.onMouseDown,(e=>{j&&e.preventDefault(),N(!0)})),onMouseUp:E(e.onMouseUp,(()=>N(!1))),onMouseEnter:E(e.onMouseEnter,(()=>M(!0))),onMouseLeave:E(e.onMouseLeave,(()=>M(!1)))})),[L,H,r,j,T,I,m,a,n]),Y=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":S(L),"data-hover":S(I),"data-checked":S(H),"data-focus":S(j),"data-focus-visible":S(j&&T),"data-indeterminate":S(m),"data-disabled":S(r),"data-invalid":S(a),"data-readonly":S(n)})),[L,H,r,j,T,I,m,a,n]),Z=(0,i.useCallback)(((e={},t=null)=>({...k,...e,ref:Kn(t,(e=>{e&&B("LABEL"===e.tagName)})),onClick:E(e.onClick,(()=>{var e;z||(null==(e=D.current)||e.click(),requestAnimationFrame((()=>{var e;null==(e=D.current)||e.focus({preventScroll:!0})})))})),"data-disabled":S(r),"data-checked":S(H),"data-invalid":S(a)})),[k,r,H,a,z]),X=(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(D,t),type:"checkbox",name:g,value:v,id:s,tabIndex:y,onChange:E(e.onChange,V),onBlur:E(e.onBlur,P,(()=>R(!1))),onFocus:E(e.onFocus,O,(()=>R(!0))),onKeyDown:E(e.onKeyDown,K),onKeyUp:E(e.onKeyUp,W),required:o,checked:H,disabled:q,readOnly:n,"aria-label":b,"aria-labelledby":w,"aria-invalid":x?Boolean(x):a,"aria-describedby":u,"aria-disabled":r,style:Boe})),[g,v,s,V,P,O,K,W,o,H,q,n,b,w,x,a,u,r,y]),J=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,onMouseDown:E(e.onMouseDown,nae),"data-disabled":S(r),"data-checked":S(H),"data-invalid":S(a)})),[H,r,a]);return{state:{isInvalid:a,isFocused:j,isChecked:H,isActive:L,isHovered:I,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Z,getCheckboxProps:G,getIndicatorProps:Y,getInputProps:X,getLabelProps:J,htmlProps:k}}function nae(e){e.preventDefault(),e.stopPropagation()}var iae={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},oae={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},aae=$n({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),sae=$n({from:{opacity:0},to:{opacity:1}}),cae=$n({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),lae=v((function(e,t){const r=Loe(),n=Mn("Checkbox",{...r,...e}),o=ft(e),{spacing:a="0.5rem",className:s,children:c,iconColor:l,iconSize:u,icon:d=(0,xn.jsx)(zoe,{}),isChecked:h,isDisabled:f=(null==r?void 0:r.isDisabled),onChange:p,inputProps:m,...g}=o;let v=h;(null==r?void 0:r.value)&&o.value&&(v=r.value.includes(o.value));let b=p;(null==r?void 0:r.onChange)&&o.value&&(b=A(r.onChange,p));const{state:w,getInputProps:x,getCheckboxProps:_,getLabelProps:S,getRootProps:k}=rae({...g,isDisabled:f,isChecked:v,onChange:b}),E=function(e){const[t,r]=(0,i.useState)(e),[n,o]=(0,i.useState)(!1);return e!==t&&(o(!0),r(e)),n}(w.isChecked),P=(0,i.useMemo)((()=>({animation:E?w.isIndeterminate?`${sae} 20ms linear, ${cae} 200ms linear`:`${aae} 200ms linear`:void 0,fontSize:u,color:l,...n.icon})),[l,u,E,w.isIndeterminate,n.icon]),O=(0,i.cloneElement)(d,{__css:P,isIndeterminate:w.isIndeterminate,isChecked:w.isChecked});return(0,xn.jsxs)(wn.label,{__css:{...oae,...n.container},className:y("chakra-checkbox",s),...k(),children:[(0,xn.jsx)("input",{className:"chakra-checkbox__input",...x(m,t)}),(0,xn.jsx)(wn.span,{__css:{...iae,...n.control},className:"chakra-checkbox__control",..._(),children:O}),c&&(0,xn.jsx)(wn.span,{className:"chakra-checkbox__label",...S(),__css:{marginStart:a,...n.label},children:c})]})}));lae.displayName="Checkbox";const uae=({goToStep:e})=>{const[t,r]=i.useState(!1);return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(zj,{}),title:"Accept to Continue",children:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(lae,{paddingBottom:"24px",fontWeight:"600",onChange:e=>r(e.target.checked),children:["I confirm that I have read and agreed with the"," ",(0,xn.jsx)(Zn,{textDecoration:"underline",_hover:{color:LP.green},href:"https://umamiwallet.com/tos.html",rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})," ","and the"," ",(0,xn.jsx)(Zn,{textDecoration:"underline",_hover:{color:LP.green},href:"https://umamiwallet.com/privacypolicy.html",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]}),(0,xn.jsx)(Gn,{width:"100%",isDisabled:!t,onClick:()=>{e({type:Iae.connectOrCreate})},size:"lg",children:"Continue"})]})})},dae=({onClose:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=L$({mode:"onBlur"}),i=Coe();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(DR,{}),title:"Add a Fake Account",children:(0,xn.jsxs)("form",{onSubmit:r((async({pkh:t,name:r})=>{const n=new jW(Nd.rpcUrl),o=await n.getManagerKey(t),a="string"===typeof o?o:o.key;i(Lq,a,t,r),e()})),style:{width:"100%"},children:[(0,xn.jsx)(lF,{children:"It will be restored as a ledger account"}),(0,xn.jsxs)(ZF,{isInvalid:!!n.pkh,children:[(0,xn.jsx)($$,{children:"Address"}),(0,xn.jsx)(Z$,{...t("pkh",{required:!0}),autoComplete:"off",placeholder:"Please enter the account address"})]}),(0,xn.jsxs)(ZF,{isInvalid:!!n.name,children:[(0,xn.jsx)($$,{children:"Name"}),(0,xn.jsx)(Z$,{...t("name",{required:!0}),autoComplete:"off",placeholder:"Please enter the account name"})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:2,size:"lg",type:"submit",children:"Add account"})]})})},hae=({onSubmit:e,isLoading:t})=>{const r=L$({mode:"onBlur"}),{handleSubmit:n,formState:{errors:i,isValid:o},getValues:a}=r;return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(pR,{}),subtitle:"Please choose a master password for Umami. You will need to use this password in order to perform any operations within Umami.",title:"Umami Master Password",children:(0,xn.jsx)(OU,{...r,children:(0,xn.jsxs)("form",{onSubmit:n((async t=>{e(t.confirm)})),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{isInvalid:!!i.password,children:[(0,xn.jsx)(Ate,{"data-testid":"password",inputName:"password",placeholder:"Enter master password"}),i.password&&(0,xn.jsx)(Ete,{children:i.password.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!i.confirm,children:[(0,xn.jsx)(Ate,{"data-testid":"confirmation",inputName:"confirm",label:"Confirm Password",placeholder:"Confirm your password",required:"Confirmation is required",validate:e=>a("password")===e||"Your passwords do no match"}),i.confirm&&(0,xn.jsx)(Ete,{children:i.confirm.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!o||t,isLoading:t,size:"lg",type:"submit",children:"Submit"})]})})})},fae=({account:e,onClose:t})=>{const r=Toe(),n=(()=>{const e=FR();return(t,r,n)=>e(koe({secretKey:t,password:r,label:n}))})(),i=(()=>{const e=Vq(),t=Object.values(e)[0];return t?async e=>{await Hc(t,e)}:null})(),o=null!==i,{isLoading:a,handleAsyncAction:s}=Ste(),c=lz(),l=a=>s((async()=>{switch(o&&await i(a),e.type){case"secret_key":await n(e.secretKey,a,e.label);break;case"mnemonic":await r({...e,password:a})}c({description:"Account successfully created!",status:"success"}),t()}));return o?(0,xn.jsx)(boe,{isLoading:a,onSubmit:l}):(0,xn.jsx)(hae,{isLoading:a,onSubmit:l})},pae=({goToStep:e})=>(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(vR,{}),subtitle:"Please read the following before you continue to see your secret Seed Phrase.",title:"Important Notice",children:(0,xn.jsxs)(En,{children:[(0,xn.jsx)(iH,{spacing:"16px",variant:"onboardingNotice",children:[{content:"Write down your seed phrase and store it in a safe place."},{content:"Make sure there is no one around you or looking over your shoulder."},{content:"Do not copy and paste the Seed Phrase or store it on your device."},{content:"Do not take a screenshot of your Seed Phrase."}].map(((e,t)=>(0,xn.jsx)(aH,{fontSize:"16px",fontWeight:600,children:e.content},t)))}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"28px",onClick:()=>e({type:Iae.showSeedphrase,account:{type:"mnemonic",mnemonic:(0,dq.Ap)(256)}}),size:"lg",children:"I understand"}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"16px",onClick:()=>e({type:Iae.restoreMnemonic}),size:"lg",variant:"tertiary",children:"I already have a Seed Phrase"})]})}),mae=function(e,t,r){var n=r||!1,i=Bo(Za,Ya,t&&t.enhancer?t.enhancer:void 0),o=function(e){i.dispatch({type:Ca,key:e})},a=function(t,r,o){var a={type:Aa,payload:r,err:o,key:t};e.dispatch(a),i.dispatch(a),n&&s.getState().bootstrapped&&(n(),n=!1)},s=Wa({},i,{purge:function(){var t=[];return e.dispatch({type:Ta,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:Ea,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:Pa})},persist:function(){e.dispatch({type:Oa,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}(sh),gae=()=>{const e=L$({mode:"onBlur"}),{handleSubmit:t,register:r,formState:{errors:n,isValid:i}}=e,{handleAsyncAction:o}=Ste(),a=(()=>{const e=Toe();return async(t,r)=>{const n=t.recoveryPhrases,i=t.derivationPaths.map((e=>"m/"===e.slice(0,2)?e.slice(2):e));localStorage.clear();try{for(const[t,o]of n.entries()){const n=await Hc(o,r,"V1");await e({mnemonic:n,password:r,label:Lae,derivationPath:i[t]})}}catch(Mde){throw new Error("Invalid password.")}await mae.flush()}})();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(_R,{}),subtitle:"Select a JSON backup file and enter the password you used to encrypt it.",title:"Restore from Backup",children:(0,xn.jsx)(OU,{...e,children:(0,xn.jsx)("form",{onSubmit:t((({password:e,file:t})=>o((async()=>{const r=await t[0].text(),n=JSON.parse(r);if(n.recoveryPhrases&&n.derivationPaths)await a(n,e);else{if(!n["persist:accounts"])throw new Error("Invalid backup file.");await(async(e,t)=>{const r=e["persist:accounts"];if(!r)throw new Error("Invalid backup file.");const n=JSON.parse(r),i=JSON.parse(n.seedPhrases);try{for(const e of Object.values(i))await Hc(e,t,"V2")}catch(Mde){throw new Error("Invalid password.")}mae.pause(),localStorage.clear(),localStorage.setItem("persist:accounts",r),localStorage.setItem("persist:root",e["persist:root"]),mae.persist()})(n,e)}window.location.reload()})))),style:{width:"100%"},children:(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!n.file,children:[(0,xn.jsx)($$,{children:"Upload File"}),(0,xn.jsx)(_n,{children:(0,xn.jsx)(Z$,{padding:"2px","data-testid":"file-input",...r("file",{required:"File is required"}),accept:".json",type:"file",variant:"unstyled"})}),n.file&&(0,xn.jsx)(eU,{"data-testid":"file",children:n.file.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",children:[(0,xn.jsx)(Ate,{"data-testid":"password-input",inputName:"password",label:"Your password (if you have one)",required:!1}),n.password&&(0,xn.jsx)(eU,{"data-testid":"password",children:n.password.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!i,size:"lg",type:"submit",children:"Import Wallet"})]})})})})},vae=({closeModal:e,account:t})=>{const r=Coe(),n=lz(),{isLoading:i,handleAsyncAction:o}=Ste();return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(IR,{}),subtitle:"Complete the steps to connect.",title:"Connect Ledger",children:(0,xn.jsxs)(goe,{overflowY:"auto",spacing:"24px",children:[(0,xn.jsx)(iH,{spacing:4,children:[{content:"Plug your Ledger into your computer using a USB cable."},{content:"Unlock your Ledger."},{content:"Make sure your Ledger has the latest firmware version."},{content:"Install and open the Tezos Wallet app on your Ledger."},{content:"Click the button below and confirm the action on your Ledger."}].map(((e,t)=>(0,xn.jsx)(aH,{children:e.content},t)))}),(0,xn.jsx)(Gn,{width:"100%",isLoading:i,onClick:()=>o((()=>wte((async()=>{const i=n({description:"Please open the Tezos app on your Ledger and approve the operation",status:"info"}),o=zq(t.derivationPath,0),{pk:a,pkh:s}=await(async e=>{const t=await YK.create(),r=new aW(t,e,!0),n=await r.publicKey(),i=await r.publicKeyHash();return await t.close(),{pk:n,pkh:i}})(o);r(o,a,s,t.label),n.close(i),n({description:"Account successfully created!",status:"success"}),e()}),6e4)),(e=>"PublicKeyRetrievalError"===e.name?{description:"Request rejected. Please unlock your Ledger and open the Tezos app"}:"InvalidStateError"===e.name?{description:"Request pending. Check your ledger..."}:{description:`Ledger error. ${e.message||e.name}`})),size:"lg",children:"Export Public Key"})]})})};var yae=Nte({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),bae=v((function(e,t){const{children:r,placeholder:n,className:i,...o}=e;return(0,xn.jsxs)(wn.select,{...o,ref:t,className:y("chakra-select",i),children:[n&&(0,xn.jsx)("option",{value:"",children:n}),r]})}));bae.displayName="SelectField";var wae=v(((e,t)=>{var r;const n=Mn("Select",e),{rootProps:i,placeholder:o,icon:a,color:s,height:c,h:l,minH:u,minHeight:d,iconColor:h,iconSize:f,...p}=ft(e),[m,g]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(p,rt),v=G$(g),y={width:"100%",height:"fit-content",position:"relative",color:s},b={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...null==(r=n.field)?void 0:r._focus}};return(0,xn.jsxs)(wn.div,{className:"chakra-select__wrapper",__css:y,...m,...i,children:[(0,xn.jsx)(bae,{ref:t,height:null!=l?l:c,minH:null!=u?u:d,placeholder:o,...v,__css:b,children:e.children}),(0,xn.jsx)(Sae,{"data-disabled":S(v.disabled),...(h||s)&&{color:h||s},__css:n.icon,...f&&{fontSize:f},children:a})]})}));wae.displayName="Select";var xae=e=>(0,xn.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,xn.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),_ae=wn("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Sae=e=>{const{children:t=(0,xn.jsx)(xae,{}),...r}=e,n=(0,i.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,xn.jsx)(_ae,{...r,className:"chakra-select__icon-wrapper",children:(0,i.isValidElement)(t)?n:null})};Sae.displayName="SelectIcon";const kae=({inputName:e,validate:t,inputProps:r,listProps:n})=>{const[o,a]=(0,i.useState)(!0),{register:s,setValue:c,watch:l}=PU(),u=l(e),d=dq.WM.EN.filter((e=>u&&e.startsWith(u))).sort(),h=!o&&d.length>0&&(d.length>1||d[0]!==u);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(Z$,{zIndex:0,autoComplete:"off","data-testid":"mnemonic-input",onFocus:()=>a(!1),placeholder:"Type here...",...s(e,{required:"Required",validate:t,onChange:()=>a(!1),onBlur:()=>a(!0)}),...r}),h&&(0,xn.jsx)(oH,{"data-testid":"suggestions",variant:"suggestions",...n,children:d.map((t=>(0,xn.jsx)(aH,{paddingTop:"2px",fontSize:"14px",fontWeight:600,"data-testid":"suggestion",onMouseDown:()=>c(e,t),paddingX:"7px",children:t},t)))})]})},Eae=[12,15,18,24],Aae=({goToStep:e})=>{const t=L$({mode:"onBlur"}),{handleSubmit:r,setValue:n,trigger:o,formState:{isValid:a}}=t,{handleAsyncAction:s}=Ste(),[c,l]=(0,i.useState)(24);return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(nR,{width:"24px",height:"24px",stroke:LP.gray[450]}),subtitle:"Please fill in the Seed Phrase in sequence.",title:"Import Seed Phrase",children:(0,xn.jsx)(En,{overflowX:"hidden",children:(0,xn.jsx)(OU,{...t,children:(0,xn.jsx)("form",{onSubmit:r((t=>s((async()=>{const r=Object.values(t).join(" ").trim();if(!(0,dq.oT)(r))throw new Error(`Invalid Mnemonic: "${r}"`);e({type:Iae.nameAccount,account:{type:"mnemonic",mnemonic:r}})})))),style:{width:"100%"},children:(0,xn.jsxs)(goe,{width:"100%",spacing:4,children:[(0,xn.jsx)(wae,{height:"48px",color:LP.gray[450],"data-testid":"select",icon:(0,xn.jsx)(yae,{}),onChange:e=>(e=>{const t=Number(e);Eae.includes(t)&&(l((e=>(e>t&&(0,ts.range)(t,Math.max(...Eae)).forEach((e=>{n(`word${e}`,void 0)})),t))),o())})(e.target.value),value:c,children:Eae.reverse().map((e=>(0,xn.jsxs)("option",{value:e,children:[e," Words"]},e)))}),(0,xn.jsx)(Zie,{gridGap:3,gridTemplateColumns:"repeat(3, 1fr)",paddingBottom:"20px",children:(0,ts.range)(c).map((e=>{const t=`word${e}`;return(0,xn.jsxs)(Jie,{display:"flex",height:"38px",padding:"4px",fontSize:"sm",background:LP.gray[800],border:"1px solid",borderColor:LP.gray[500],borderRadius:"4px",children:[(0,xn.jsx)(Ln,{width:"18px",marginRight:"6px",paddingTop:"6px",color:LP.gray[400],textAlign:"right",size:"sm",children:e+1}),(0,xn.jsx)(kae,{inputName:t,inputProps:{onPaste:async e=>{e.preventDefault();(e=>{s((async()=>{const t=e.split(" ");if(!Eae.includes(t.length))throw new Error(`the mnemonic must be ${Eae.join(", ")} words long`);t.slice(0,c).forEach(((e,t)=>{n(`word${t}`,e)})),o()}))})(await navigator.clipboard.readText())},border:"none",size:"xsmall"},listProps:{width:"126px",marginTop:"38px",marginLeft:"-5px"}})]},e)}))}),(0,xn.jsx)(Gn,{width:"100%",isDisabled:!a,size:"lg",type:"submit",children:"Continue"})]})})})})})};var Pae=["h","minH","height","minHeight"],Oae=v(((e,t)=>{const r=In("Textarea",e),{className:n,rows:i,...o}=ft(e),a=G$(o),s=i?function(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}(r,Pae):r;return(0,xn.jsx)(wn.textarea,{ref:t,rows:i,...a,className:y("chakra-textarea",n),__css:s})}));Oae.displayName="Textarea";const Tae=({goToStep:e})=>{const{register:t,handleSubmit:r,formState:{errors:n}}=L$({mode:"onBlur"});return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(nR,{width:"24px",height:"24px",stroke:LP.gray[450]}),title:"Insert Secret Key",children:(0,xn.jsxs)("form",{onSubmit:r((({secretKey:t})=>e({type:Iae.nameAccount,account:{type:"secret_key",secretKey:t.trim()}}))),style:{width:"100%"},children:[(0,xn.jsxs)(ZF,{isInvalid:!!n.secretKey,children:[(0,xn.jsx)($$,{children:"Secret Key"}),(0,xn.jsx)(Oae,{minHeight:"130px","data-testid":"name",...t("secretKey",{required:"Secret key is required"}),placeholder:"Your secret key"}),n.secretKey&&(0,xn.jsx)(eU,{children:n.secretKey.message})]}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"32px",isDisabled:!!n.secretKey,size:"lg",type:"submit",children:"Continue"})]})})};var Cae=v((function(e,t){const{columns:r,spacingX:n,spacingY:i,spacing:o,minChildWidth:a,...s}=e,c=On(),l=a?function(e,t){return dF(e,(e=>{const r=Cn("sizes",e,function(e){return"number"===typeof e?`${e}px`:e}(e))(t);return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`}))}(a,c):dF(r,(e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`));return(0,xn.jsx)(Zie,{ref:t,gap:o,columnGap:n,rowGap:i,templateColumns:l,...s})}));Cae.displayName="SimpleGrid";const jae=({goToStep:e,account:t})=>(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(nR,{width:"24px",height:"24px",stroke:LP.gray[450]}),subtitle:"Please record the following 24 words in sequence in order to restore it in the future.",title:"Record Seed Phrase",children:(0,xn.jsxs)(goe,{children:[(0,xn.jsx)(Cae,{columns:3,spacing:2,children:t.mnemonic.split(" ").map(((e,t)=>(0,xn.jsxs)(_n,{width:"126px",padding:"6px",border:"1px dashed",borderColor:LP.gray[500],borderRadius:"4px",children:[(0,xn.jsx)(Ln,{width:"18px",marginRight:"10px",paddingTop:"2px",color:LP.gray[450],textAlign:"right",size:"sm",children:t+1}),(0,xn.jsx)(lF,{"data-testid":`mnemonic-word-${t}`,size:"sm",children:e})]},t)))}),(0,xn.jsx)(Gn,{width:"100%",marginTop:"20px",onClick:r=>{e({type:Iae.verifySeedphrase,account:t})},size:"lg",children:"OK, I've recorded it"})]})}),Rae=({goToStep:e,account:t})=>{const r=t.mnemonic.split(" "),n=L$({mode:"onBlur"}),{handleSubmit:o,formState:{errors:a,isValid:s}}=n,[c]=(0,i.useState)(((e,t)=>(0,ts.shuffle)(e.map(((e,t)=>({value:e,index:t})))).slice(0,t).sort(((e,t)=>e.index-t.index)))(r,5));return(0,xn.jsx)(yoe,{icon:(0,xn.jsx)(Bj,{}),subtitle:"To verify, please type in the word that corresponds to each sequence number.",title:"Verify Seed Phrase",children:(0,xn.jsx)(En,{overflowX:"hidden",overflowY:"auto",width:"100%",children:(0,xn.jsx)(OU,{...n,children:(0,xn.jsxs)("form",{onSubmit:o((()=>e({type:Iae.nameAccount,account:t}))),children:[c.map(((e,t)=>{const r=`${e.index}`,n=a[r];return(0,xn.jsxs)(ZF,{marginBottom:"12px",isInvalid:!!n,children:[(0,xn.jsx)(lF,{position:"absolute",zIndex:1,width:"26px",marginTop:"12px",marginLeft:"4px",textAlign:"right","data-testid":"mnemonic-index",children:e.index+1}),(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(kae,{inputName:r,inputProps:{paddingLeft:"36px",size:"md"},listProps:{marginTop:"6px"},validate:t=>{if(t!==e.value)return"Word doesn't match"}})}),(null===n||void 0===n?void 0:n.message)&&(0,xn.jsx)(Ete,{children:n.message})]},t)})),(0,xn.jsx)(Gn,{width:"100%",marginTop:"20px",isDisabled:!s,size:"lg",type:"submit",children:"Continue"})]})})})})};let Iae=function(e){return e.eula="eula",e.connectOrCreate="connectOrCreate",e.connectOptions="connectOptions",e.notice="notice",e.restoreMnemonic="restoreMnemonic",e.restoreSecretKey="restoreSecretKey",e.restoreLedger="restoreLedger",e.restoreBackup="restoreBackup",e.showSeedphrase="showSeedphrase",e.verifySeedphrase="verifySeedphrase",e.nameAccount="nameAccount",e.derivationPath="derivationPath",e.masterPassword="masterPassword",e.fakeAccount="fakeAccount",e}({});const Mae=e=>{const{isOpen:t,onOpen:r,onClose:n}=YR(),o=0!==qq().length,a=(e=>{const[t,r]=(0,i.useState)(e),[n,o]=(0,i.useState)([t]),a=1===n.length;return{reset:()=>{r(e),o([e])},goToStep:e=>{r(e),o([...n,e])},currentStep:t,goBack:()=>{if(a)return;n.pop();const e=n[n.length-1];o(n),r(e)},atInitialStep:a,fullHistory:n}})({type:o?Iae.connectOrCreate:Iae.eula}),{currentStep:s,goToStep:c}=a,l=()=>{a.reset(),e&&e(),n()};return{modalElement:(0,xn.jsxs)(fI,{autoFocus:!1,closeOnOverlayClick:!1,isCentered:!0,isOpen:t,onClose:l,children:[o&&(0,xn.jsx)(PI,{}),(0,xn.jsxs)(oF,{children:[!a.atInitialStep&&(0,xn.jsx)(zte,{onClick:a.goBack}),(0,xn.jsx)(aF,{onClick:l}),(()=>{switch(s.type){case Iae.eula:return(0,xn.jsx)(uae,{goToStep:c});case Iae.connectOrCreate:return(0,xn.jsx)(joe,{closeModal:l,goToStep:c});case Iae.connectOptions:return(0,xn.jsx)(Soe,{goToStep:c});case Iae.notice:return(0,xn.jsx)(pae,{goToStep:c});case Iae.restoreMnemonic:return(0,xn.jsx)(Aae,{goToStep:c});case Iae.restoreBackup:return(0,xn.jsx)(gae,{});case Iae.showSeedphrase:return(0,xn.jsx)(jae,{goToStep:c,...s});case Iae.verifySeedphrase:return(0,xn.jsx)(Rae,{goToStep:c,...s});case Iae.nameAccount:return(0,xn.jsx)(Nae,{goToStep:c,...s});case Iae.derivationPath:return(0,xn.jsx)(Ioe,{goToStep:c,...s});case Iae.restoreLedger:return(0,xn.jsx)(vae,{closeModal:l,...s});case Iae.masterPassword:return(0,xn.jsx)(fae,{onClose:l,...s});case Iae.fakeAccount:return(0,xn.jsx)(dae,{onClose:n});case Iae.restoreSecretKey:return(0,xn.jsx)(Tae,{goToStep:c})}})()]})]}),onOpen:r}},Lae="Account",Nae=({goToStep:e,account:t})=>{const r=Yq();return(0,xn.jsx)(woe,{onSubmit:n=>{const i=n.accountName.trim()||Lae,o=r(i)[0];switch(t.type){case"secret_key":return e({type:Iae.masterPassword,account:{...t,label:o}});case"ledger":return e({type:Iae.derivationPath,account:{...t,label:o}});case"mnemonic":return e({type:Iae.derivationPath,account:{...t,label:i}})}},subtitle:"Please choose a name for your first account. You can edit your account name later."})};var Dae=r(4776),zae=r.n(Dae);const Bae=e=>{const t=FR(),{openWith:r}=(0,i.useContext)(EM),{mode:n,operations:o,fee:a,data:{threshold:s,signers:c,name:l}}=e,{fee:u,operations:d,estimationFailed:h,isLoading:f,form:p,reEstimate:m,signer:g,onSign:v,handleAsyncAction:y}=une(a,o,n);return(0,xn.jsx)(OU,{...p,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,description:"Please review the details and then continue to submit contract.",operationsType:d.type,signer:g,title:"Review & Submit"}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(lF,{marginBottom:"24px",padding:"14px",color:LP.gray[50],background:LP.gray[800],borderRadius:"6px","data-testid":"contract-name",children:l}),(0,xn.jsx)($$,{children:"Approvers"}),(0,xn.jsx)(En,{marginBottom:"12px","data-testid":"approvers",children:c.map((e=>(0,xn.jsx)(d4,{address:td(e.val),"data-testid":`approver-${e.val}`},e.val)))}),(0,xn.jsx)(_n,{justifyContent:"flex-end",children:(0,xn.jsx)(Fae,{signersAmount:c.length,threshold:s})}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(ZF,{marginTop:"24px",marginBottom:"12px",children:(0,xn.jsx)(v4,{allowUnknown:!1,inputName:"signer",isLoading:f,keepValid:!0,label:"Creation Fee Payer",onUpdate:m})}),(0,xn.jsx)(_n,{justifyContent:"flex-end",children:(0,xn.jsx)(Ite,{fee:u})})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:h,isLoading:f,onSubmit:async e=>y((async()=>{const n=await v(e);if(!n)throw new Error("An error occurred during contract origination");const i=(await n.getOriginatedContractAddresses())[0];t(Jd.addMultisigLabel({pkh:i,label:l})),r((0,xn.jsx)(Cte,{hash:n.opHash}))})),signer:g,text:"Submit Contract"})})]})})})},Fae=({threshold:e,signersAmount:t})=>(0,xn.jsxs)(_n,{alignItems:"center","data-testid":"threshold",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"No. of approvals:"}),(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:`${e} out of ${t}`})]}),Uae=[{prim:"storage",args:[{prim:"pair",args:[{prim:"address",annots:["%owner"]},{prim:"pair",args:[{prim:"set",args:[{prim:"address"}],annots:["%signers"]},{prim:"pair",args:[{prim:"nat",annots:["%threshold"]},{prim:"pair",args:[{prim:"nat",annots:["%last_op_id"]},{prim:"pair",args:[{prim:"big_map",args:[{prim:"nat"},{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%actions"]},{prim:"set",args:[{prim:"address"}],annots:["%approvals"]}]}],annots:["%pending_ops"]},{prim:"big_map",args:[{prim:"string"},{prim:"bytes"}],annots:["%metadata"]}]}]}]}]}]}]},{prim:"parameter",args:[{prim:"or",args:[{prim:"or",args:[{prim:"or",args:[{prim:"bytes",annots:["%set_metadata_uri"]},{prim:"unit",annots:["%default"]}]},{prim:"or",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}],annots:["%propose"]},{prim:"nat",annots:["%approve"]}]}]},{prim:"nat",annots:["%execute"]}]}]},{prim:"code",args:[[{prim:"NIL",args:[{prim:"operation"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"UNPAIR"},{prim:"DIP",args:[{int:"1"},[{prim:"UNPAIR",args:[{int:"6"}]}]]},{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"IF_LEFT",args:[[{prim:"DUP",args:[{int:"2"}]},{prim:"SENDER"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID_CALLER"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"SOME"},{prim:"PUSH",args:[{prim:"string"},{string:""}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"FUNDING BLOCKED SINCE PARAMS ARE INVALID"}]},{prim:"FAILWITH"}],[]]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}],[{prim:"IF_LEFT",args:[[{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"3"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"nat"},{int:"1"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"ADD"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"4"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"4"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"6"}]},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"KEY_EXISTS"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"EMPTY_SET",args:[{prim:"address"}]},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"DUP",args:[{int:"3"}]},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"7"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"5"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"5"}]}]]},{prim:"DROP",args:[{int:"1"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP"},{prim:"CDR"},{prim:"SENDER"},{prim:"MEM"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ALREADY APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"8"}]},{prim:"DUP",args:[{int:"4"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"UNPAIR"},{prim:"SWAP"},{prim:"DROP",args:[{int:"1"}]},{prim:"DUP",args:[{int:"9"}]},{prim:"DUP",args:[{int:"5"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CDR"},{prim:"PUSH",args:[{prim:"bool"},{prim:"True"}]},{prim:"SENDER"},{prim:"UPDATE"},{prim:"SWAP"},{prim:"PAIR"},{prim:"SOME"},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],[{prim:"DUP",args:[{int:"6"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"INVALID OP ID"}]},{prim:"FAILWITH"}],[]]},{prim:"PUSH",args:[{prim:"mutez"},{int:"0"}]},{prim:"AMOUNT"},{prim:"COMPARE"},{prim:"EQ"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"TO FUND CONTRACT, PLEASE USE THE DEFAULT ENTRYPOINT"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"4"}]},{prim:"SENDER"},{prim:"MEM"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"ONLY FOR SIGNERS"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"5"}]},{prim:"DUP",args:[{int:"2"}]},{prim:"CDR"},{prim:"SIZE"},{prim:"COMPARE"},{prim:"GE"},{prim:"NOT"},{prim:"IF",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"NOT YET APPROVED"}]},{prim:"FAILWITH"}],[]]},{prim:"DUP",args:[{int:"7"}]},{prim:"DUP",args:[{int:"3"}]},{prim:"GET"},{prim:"IF_NONE",args:[[{prim:"PUSH",args:[{prim:"string"},{string:"pending_ops"}]},{prim:"PUSH",args:[{prim:"string"},{string:"ASSET_NOT_FOUND"}]},{prim:"PAIR"},{prim:"FAILWITH"}],[]]},{prim:"CAR"},{prim:"PUSH",args:[{prim:"unit"},{prim:"Unit"}]},{prim:"EXEC"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"8"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"8"}]},{prim:"DUP",args:[{int:"7"}]},{prim:"NONE",args:[{prim:"pair",args:[{prim:"lambda",args:[{prim:"unit"},{prim:"list",args:[{prim:"operation"}]}]},{prim:"set",args:[{prim:"address"}]}]}]},{prim:"DUP",args:[{int:"4"}]},{prim:"UPDATE"},{prim:"DIP",args:[{int:"1"},[{prim:"DIG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"1"}]}]]},{prim:"DUG",args:[{int:"6"}]},{prim:"DROP",args:[{int:"2"}]},{prim:"PAIR",args:[{int:"6"}]},{prim:"DIG",args:[{int:"1"}]},{prim:"PAIR"}]]}]]}],$ae=e=>{return{type:"contract_origination",sender:td(e.sender),code:Uae,storage:(t=e.sender,r=e.signers.map((e=>e.val)),n=String(e.threshold),{owner:t,signers:r,threshold:n,last_op_id:"0",pending_ops:[],metadata:[]})};var t,r,n},Hae=e=>{const t=L$({mode:"onBlur",defaultValues:{sender:e.sender.address.pkh,signers:[{val:""}],threshold:1,...lne(e)}}),{formState:{errors:r,isValid:n},control:o,register:a,handleSubmit:s,getValues:c,watch:l}=t,u=function(e){const t=PU(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[s,c]=i.useState(r._getFieldArray(n)),l=i.useRef(r._getFieldArray(n).map(FU)),u=i.useRef(s),d=i.useRef(n),h=i.useRef(!1);d.current=n,u.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),IU({next:({values:e,name:t})=>{if(t===d.current||!t){const t=mU(e,d.current);Array.isArray(t)&&(c(t),l.current=t.map(FU))}},subject:r._subjects.array});const f=i.useCallback((e=>{h.current=!0,r._updateFieldArray(n,e)}),[r,n]);return i.useEffect((()=>{if(r._state.action=!1,HU(n,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!$U(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((e=>{const t=mU(e.errors,n),i=mU(r._formState.errors,n);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?zU(r._formState.errors,n,t):f$(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=mU(r._fields,n);!e||!e._f||$U(r._options.reValidateMode).isOnSubmit&&$U(r._options.mode).isOnSubmit||o$(e,r._formValues,r._options.criteriaMode===yU.all,r._options.shouldUseNativeValidation,!0).then((e=>!CU(e)&&r._subjects.state.next({errors:qU(r._formState.errors,e,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&VU(r._fields,((e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1})),r._names.focus="",r._updateValid(),h.current=!1}),[s,n,r]),i.useEffect((()=>(!mU(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)})),[n,r,o,a]),{swap:i.useCallback(((e,t)=>{const i=r._getFieldArray(n);h$(i,e,t),h$(l.current,e,t),f(i),c(i),r._updateFieldArray(n,i,h$,{argA:e,argB:t},!1)}),[f,n,r]),move:i.useCallback(((e,t)=>{const i=r._getFieldArray(n);l$(i,e,t),l$(l.current,e,t),f(i),c(i),r._updateFieldArray(n,i,l$,{argA:e,argB:t},!1)}),[f,n,r]),prepend:i.useCallback(((e,t)=>{const i=RU(hU(e)),o=u$(r._getFieldArray(n),i);r._names.focus=UU(n,0,t),l.current=u$(l.current,i.map(FU)),f(o),c(o),r._updateFieldArray(n,o,u$,{argA:s$(e)})}),[f,n,r]),append:i.useCallback(((e,t)=>{const i=RU(hU(e)),o=a$(r._getFieldArray(n),i);r._names.focus=UU(n,o.length-1,t),l.current=a$(l.current,i.map(FU)),f(o),c(o),r._updateFieldArray(n,o,a$,{argA:s$(e)})}),[f,n,r]),remove:i.useCallback((e=>{const t=d$(r._getFieldArray(n),e);l.current=d$(l.current,e),f(t),c(t),r._updateFieldArray(n,t,d$,{argA:e})}),[f,n,r]),insert:i.useCallback(((e,t,i)=>{const o=RU(hU(t)),a=c$(r._getFieldArray(n),e,o);r._names.focus=UU(n,e,i),l.current=c$(l.current,e,o.map(FU)),f(a),c(a),r._updateFieldArray(n,a,c$,{argA:e,argB:s$(t)})}),[f,n,r]),update:i.useCallback(((e,t)=>{const i=hU(t),o=p$(r._getFieldArray(n),e,i);l.current=[...o].map(((t,r)=>t&&r!==e?l.current[r]:FU())),f(o),c([...o]),r._updateFieldArray(n,o,p$,{argA:e,argB:i},!0,!1)}),[f,n,r]),replace:i.useCallback((e=>{const t=RU(hU(e));l.current=t.map(FU),f([...t]),c([...t]),r._updateFieldArray(n,[...t],(e=>e),{},!0,!1)}),[f,n,r]),fields:i.useMemo((()=>s.map(((e,t)=>({...e,[o]:l.current[t]||FU()})))),[s,o])}}({control:o,name:"signers",rules:{minLength:1}}),d=l("signers").length,h=gne({SignPage:Bae,signPageExtraData:l(),FormPage:Hae,defaultFormPageProps:e,toOperation:$ae}),{onFormSubmitActionHandlers:[f],isLoading:p}=yne([h]),{openWith:m}=(0,i.useContext)(EM);return(0,xn.jsx)(OU,{...t,children:(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(zte,{onClick:()=>{var t;return m((0,xn.jsx)(Vae,{name:null===(t=e.form)||void 0===t?void 0:t.name}))}}),(0,xn.jsxs)("form",{onSubmit:s(f),children:[(0,xn.jsx)(Lte,{subTitle:"Select the participants of the contract and choose the minimum number of approvals.",title:"Select Approvers"}),(0,xn.jsxs)(uF,{children:[u.fields.map(((e,t)=>{var n;const i=r.signers&&r.signers[t],o=`${0===t?"Select ":""}${zae()(t+1)} approver`,a=d>1?"short":"default",s="short"===a?"368px":"100%";return(0,xn.jsxs)(ZF,{display:"inline-block",width:s,marginBottom:"8px","data-testid":`signer-input-${t}`,isInvalid:!!i,children:[(0,xn.jsx)(v4,{allowUnknown:!0,inputName:`signers.${t}.val`,label:o,size:a,style:{width:s},validate:e=>{if(!id(e))return"Signer must be valid TZ address";const t=c("signers").map((e=>e.val));return t.length>new Set(t).size?"Duplicate approver":void 0}}),d>1&&(0,xn.jsx)(_4,{position:"absolute",height:"24px",marginTop:"-36px",marginLeft:"374px",background:LP.gray[500],"aria-label":"Remove","data-testid":`remove-signer-${t}`,icon:(0,xn.jsx)(jR,{width:"12px",height:"14px",stroke:LP.gray[300]}),isRound:!0,onClick:()=>u.remove(t),size:"xs",variant:"tertiary"}),i&&(0,xn.jsx)(Ete,{"data-testid":`signer-${t}-error`,children:null===(n=i.val)||void 0===n?void 0:n.message})]},e.id)})),(0,xn.jsx)(Gn,{paddingLeft:0,onClick:()=>u.append({val:""}),variant:"specialCTA",children:"+ Add Approver"}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!r.threshold,children:[(0,xn.jsxs)($$,{display:"inline",children:["Min No. of approvals:",(0,xn.jsx)(W$,{display:"inline",marginLeft:"10px",children:(0,xn.jsx)(Z$,{width:"60px",color:"white","data-testid":"threshold-input",step:1,type:"number",...a("threshold",{valueAsNumber:!0,required:"No. of approvals is required",max:{value:d,message:`Max no. of approvals is ${d}`},min:{value:1,message:"Min no. of approvals is 1"}})})})]}),(0,xn.jsxs)(lF,{display:"inline","data-testid":"max-signers",children:["out of ",d]}),r.threshold&&(0,xn.jsx)(Ete,{"data-testid":"threshold-error",children:r.threshold.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!n,isLoading:p,size:"lg",type:"submit",children:"Review"})})]})]})})},Vae=({name:e})=>{const t=L$({mode:"onBlur",defaultValues:{name:e||""}}),{formState:{errors:r,isValid:n},register:o,handleSubmit:a}=t,s=qq(),c=tK(),{openWith:l}=(0,i.useContext)(EM),u=Gq();return(0,xn.jsx)(OU,{...t,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:a((({name:e})=>l((0,xn.jsx)(Hae,{form:{name:e.trim()},sender:c(s)})))),children:[(0,xn.jsx)(Lte,{subTitle:"Name your account. The account name will only appear in your local Umami app.",title:"Account Name"}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(ZF,{isInvalid:!!r.name,children:[(0,xn.jsx)($$,{children:"Account Name"}),(0,xn.jsx)(W$,{children:(0,xn.jsx)(Z$,{"data-testid":"multisig-account-name",type:"text",...o("name",{validate:e=>0==e.trim().length?"Name should not be empty":u(e.trim())?void 0:"Name must be unique across all accounts and contacts"}),placeholder:"Account Name"})}),r.name&&(0,xn.jsx)(Ete,{"data-testid":"name-error",children:r.name.message})]})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!n,size:"lg",type:"submit",children:"Continue"})})]})})})},qae=()=>{const{onOpen:e,modalElement:t}=Mae();return(0,xn.jsxs)(_n,{flexDirection:"row-reverse",marginTop:"12px",marginBottom:"16px",children:[(0,xn.jsxs)(Gn,{paddingRight:"0",onClick:e,variant:"CTAWithIcon",children:[(0,xn.jsx)(Sj,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:"Add Account"})]}),t]})},Kae=({groupLabel:e,accounts:t,balances:r})=>{const n=t[0],o="multisig"===n.type,a="mnemonic"===n.type,{openWith:s,onClose:c}=(0,i.useContext)(EM),l=(()=>{const e=FR();return t=>{e(Poe({fingerPrint:t}))}})(),u=(()=>{const e=FR();return t=>{e(Ooe({accountType:t}))}})(),d=qq().length===t.length;let h,f="Remove All";const p=Wae(n);d?(h="Removing all your accounts will off-board you from Umami. This will remove or reset all customised settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",f="Remove & Off-board"):h=a?`Are you sure you want to remove all accounts derived from ${p}?`:`Are you sure you want to remove all of your ${p}?`;return(0,xn.jsxs)(En,{"data-testid":`account-group-${e}`,children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{marginBottom:4,"data-testid":"account-group-title",size:"md",children:e}),!o&&(0,xn.jsx)(foe,{onCreate:a?()=>{if(!a)throw new Error("Can't derive a non mnemonic account!");s((0,xn.jsx)(Yae,{fingerprint:n.seedFingerPrint,onDone:c}))}:void 0,onRemove:()=>{s((0,xn.jsx)(Iie,{buttonLabel:f,description:h,onSubmit:()=>{a?l(n.seedFingerPrint):u(n.type),c()},title:"Remove All Accounts"}))}})]}),t.map((e=>(0,xn.jsx)(En,{marginBottom:"16px",children:(0,xn.jsx)(Rie,{account:e,balance:r[e.address.pkh]})},e.address.pkh)))]})},Wae=e=>{switch(e.type){case"mnemonic":return`Seedphrase ${e.seedFingerPrint}`;case"social":return"Social Accounts";case"ledger":return"Ledger Accounts";case"secret_key":return"Secret Key Accounts";case"multisig":return"Multisig Accounts"}},Gae=()=>{const e=Wq(),t=UR((e=>e.assets.balances.mutez)),r=(0,ts.groupBy)(e,Wae),{openWith:n}=(0,i.useContext)(EM),o=Object.entries(r).map((([e,r])=>(0,xn.jsx)(Kae,{accounts:r,balances:t,groupLabel:e},e)));return(0,xn.jsx)(xn.Fragment,{children:(0,xn.jsx)(En,{height:"100%",marginRight:0,children:(0,xn.jsxs)(_oe,{children:[(0,ts.compact)(o),(0,xn.jsx)(Gn,{width:"100%",height:"90px",background:LP.black,border:"1px dashed",borderColor:LP.gray[500],onClick:()=>n((0,xn.jsx)(Vae,{})),variant:"outline",children:(0,xn.jsxs)(lF,{display:"block",width:"100%",margin:5,color:LP.gray[400],textAlign:"center",children:[(0,xn.jsx)(nR,{marginRight:1,stroke:LP.gray[450]}),"Create New Multisig"]})})]})})})},Yae=e=>{const{isLoading:t,handleAsyncAction:r}=Ste(),n=lz(),i=(()=>{const e=Vq(),t=qq(),r=Yq(),n=Ei();return async({fingerPrint:i,password:o,label:a})=>{const s=e[i];if(!s)throw new Error(`No seedphrase found with fingerprint: ${i}`);const c=await Hc(s,o),l=t.filter((e=>"mnemonic"===e.type&&e.seedFingerPrint===i)),u=l.length,d=l[0].derivationPathPattern,h=zq(d,u),{pk:f,pkh:p}=await z3(c,h),m=r(a,1)[0],g=Bq(f,p,h,d,i,m);n(Kc.actions.addAccount(g))}})();return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(xoe,{isLoading:t,onSubmit:({name:t,password:o})=>r((async()=>{await i({fingerPrint:e.fingerprint,password:o,label:t.trim()||Lae}),e.onDone(),n({description:`New account created! Successfully derived account from ${e.fingerprint}`})}),{title:"Failed to derive new account"}),subtitle:`Name the new account derived from ${e.fingerprint}`})]})},Zae=({onClose:e})=>(0,xn.jsx)(_n,{justifyContent:"flex-end",paddingBottom:"30px",cursor:"pointer",children:(0,xn.jsx)(Xae,{onClose:e})}),Xae=({onClose:e})=>(0,xn.jsxs)(Gn,{onClick:e,variant:"CTAWithIcon",children:[(0,xn.jsx)(Hj,{stroke:"currentcolor"}),(0,xn.jsx)(lF,{marginLeft:"4px",children:"Close"})]});function Jae(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return"INPUT"!==r&&"TEXTAREA"!==r&&!0!==n}function Qae(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:c,onClick:l,onKeyDown:u,onKeyUp:d,tabIndex:h,onMouseOver:f,onMouseLeave:p,...m}=e,[g,v]=(0,i.useState)(!0),[y,b]=(0,i.useState)(!1),w=function(){const e=(0,i.useRef)(new Map),t=e.current,r=(0,i.useCallback)(((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)}),[]),n=(0,i.useCallback)(((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)}),[]);return(0,i.useEffect)((()=>()=>{t.forEach(((e,t)=>{n(e.el,e.type,t,e.options)}))}),[n,t]),{add:r,remove:n}}(),x=g?h:h||0,_=r&&!n,k=(0,i.useCallback)((e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==l||l(e)}),[r,l]),E=(0,i.useCallback)((e=>{y&&Jae(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),w.remove(document,"keyup",E,!1))}),[y,w]),A=(0,i.useCallback)((e=>{if(null==u||u(e),r||e.defaultPrevented||e.metaKey)return;if(!Jae(e.nativeEvent)||g)return;const t=o&&"Enter"===e.key;if(a&&" "===e.key&&(e.preventDefault(),b(!0)),t){e.preventDefault();e.currentTarget.click()}w.add(document,"keyup",E,!1)}),[r,g,u,o,a,w,E]),P=(0,i.useCallback)((e=>{if(null==d||d(e),r||e.defaultPrevented||e.metaKey)return;if(!Jae(e.nativeEvent)||g)return;if(a&&" "===e.key){e.preventDefault(),b(!1);e.currentTarget.click()}}),[a,g,r,d]),O=(0,i.useCallback)((e=>{0===e.button&&(b(!1),w.remove(document,"mouseup",O,!1))}),[w]),T=(0,i.useCallback)((e=>{if(0!==e.button)return;if(r)return e.stopPropagation(),void e.preventDefault();g||b(!0);e.currentTarget.focus({preventScroll:!0}),w.add(document,"mouseup",O,!1),null==s||s(e)}),[r,g,s,w,O]),C=(0,i.useCallback)((e=>{0===e.button&&(g||b(!1),null==c||c(e))}),[c,g]),j=(0,i.useCallback)((e=>{r?e.preventDefault():null==f||f(e)}),[r,f]),R=(0,i.useCallback)((e=>{y&&(e.preventDefault(),b(!1)),null==p||p(e)}),[y,p]),I=Kn(t,(e=>{e&&"BUTTON"!==e.tagName&&v(!1)}));return g?{...m,ref:I,type:"button","aria-disabled":_?void 0:r,disabled:_,onClick:k,onMouseDown:s,onMouseUp:c,onKeyUp:d,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:I,role:"button","data-active":S(y),"aria-disabled":r?"true":void 0,tabIndex:_?void 0:x,onClick:k,onMouseDown:T,onMouseUp:C,onKeyUp:P,onKeyDown:A,onMouseOver:j,onMouseLeave:R}}var[ese,tse,rse,nse]=SF();var[ise,ose]=Nn({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});var[ase,sse]=Nn({});function cse(e,t){return`${e}--tab-${t}`}function lse(e,t){return`${e}--tabpanel-${t}`}var[use,dse]=Nn({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),hse=v((function(e,t){const r=Mn("Tabs",e),{children:n,className:o,...a}=ft(e),{htmlProps:s,descendants:c,...l}=function(e){var t;const{defaultIndex:r,onChange:n,index:o,isManual:a,isLazy:s,lazyBehavior:c="unmount",orientation:l="horizontal",direction:u="ltr",...d}=e,[h,f]=(0,i.useState)(null!=r?r:0),[p,m]=RF({defaultValue:null!=r?r:0,value:o,onChange:n});(0,i.useEffect)((()=>{null!=o&&f(o)}),[o]);const g=rse(),v=(0,i.useId)();return{id:`tabs-${null!=(t=e.id)?t:v}`,selectedIndex:p,focusedIndex:h,setSelectedIndex:m,setFocusedIndex:f,isManual:a,isLazy:s,lazyBehavior:c,orientation:l,descendants:g,direction:u,htmlProps:d}}(a),u=(0,i.useMemo)((()=>l),[l]),{isFitted:d,...h}=s,f={position:"relative",...r.root};return(0,xn.jsx)(ese,{value:c,children:(0,xn.jsx)(ise,{value:u,children:(0,xn.jsx)(use,{value:r,children:(0,xn.jsx)(wn.div,{className:y("chakra-tabs",o),ref:t,...h,__css:f,children:n})})})})}));hse.displayName="Tabs";var fse=v((function(e,t){const r=function(e){const{focusedIndex:t,orientation:r,direction:n}=ose(),o=tse(),a=(0,i.useCallback)((e=>{const i=()=>{var e;const r=o.nextEnabled(t);r&&(null==(e=r.node)||e.focus())},a=()=>{var e;const r=o.prevEnabled(t);r&&(null==(e=r.node)||e.focus())},s="horizontal"===r,c="vertical"===r,l=e.key,u={["ltr"===n?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===n?"ArrowRight":"ArrowLeft"]:()=>s&&i(),ArrowDown:()=>c&&i(),ArrowUp:()=>c&&a(),Home:()=>{var e;const t=o.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=o.lastEnabled();t&&(null==(e=t.node)||e.focus())}},d=u[l];d&&(e.preventDefault(),d(e))}),[o,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:E(e.onKeyDown,a)}}({...e,ref:t}),n={display:"flex",...dse().tablist};return(0,xn.jsx)(wn.div,{...r,className:y("chakra-tabs__tablist",e.className),__css:n})}));fse.displayName="TabList";var pse=v((function(e,t){const r=function(e){const t=ose(),{id:r,selectedIndex:n}=t,o=V$(e.children).map(((e,t)=>(0,i.createElement)(ase,{key:t,value:{isSelected:t===n,id:lse(r,t),tabId:cse(r,t),selectedIndex:n}},e)));return{...e,children:o}}(e),n=dse();return(0,xn.jsx)(wn.div,{...r,width:"100%",ref:t,className:y("chakra-tabs__tab-panels",e.className),__css:n.tabpanels})}));pse.displayName="TabPanels";var mse=v((function(e,t){const r=function(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:o}=ose(),{isSelected:a,id:s,tabId:c}=sse(),l=(0,i.useRef)(!1);return a&&(l.current=!0),{tabIndex:0,...r,children:Bre({wasSelected:l.current,isSelected:a,enabled:n,mode:o})?t:null,role:"tabpanel","aria-labelledby":c,hidden:!a,id:s}}({...e,ref:t}),n=dse();return(0,xn.jsx)(wn.div,{outline:"0",...r,className:y("chakra-tabs__tab-panel",e.className),__css:n.tabpanel})}));function gse(e){const t=jne(e);return t.setHours(0,0,0,0),t}mse.displayName="TabPanel";function vse(e,t){const r=gse(e),n=gse(t),i=+r-rie(r),o=+n-rie(n);return Math.round((i-o)/Lne)}function yse(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function bse(e){const t=jne(e),r=yse(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function wse(e){const t=jne(e);return vse(t,bse(t))+1}function xse(e,t){const r=tie(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=jne(e),o=i.getDay(),a=(o=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function kse(e){const t=Sse(e),r=yse(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),_se(r)}function Ese(e){const t=jne(e),r=+_se(t)-+kse(t);return Math.round(r/Mne)+1}function Ase(e,t){const r=jne(e),n=r.getFullYear(),i=tie(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=yse(e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=xse(a,t),c=yse(e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const l=xse(c,t);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function Pse(e,t){const r=tie(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=Ase(e,t),o=yse(e,0);o.setFullYear(i,0,n),o.setHours(0,0,0,0);return xse(o,t)}function Ose(e,t){const r=jne(e),n=+xse(r,t)-+Pse(r,t);return Math.round(n/Mne)+1}function Tse(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Cse={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Tse("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):Tse(r+1,2)},d:(e,t)=>Tse(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Tse(e.getHours()%12||12,t.length),H:(e,t)=>Tse(e.getHours(),t.length),m:(e,t)=>Tse(e.getMinutes(),t.length),s:(e,t)=>Tse(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return Tse(Math.trunc(n*Math.pow(10,r-3)),t.length)}},jse="midnight",Rse="noon",Ise="morning",Mse="afternoon",Lse="evening",Nse="night",Dse={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Cse.y(e,t)},Y:function(e,t,r,n){const i=Ase(e,n),o=i>0?i:1-i;if("YY"===t){return Tse(o%100,2)}return"Yo"===t?r.ordinalNumber(o,{unit:"year"}):Tse(o,t.length)},R:function(e,t){return Tse(Sse(e),t.length)},u:function(e,t){return Tse(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Tse(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Tse(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Cse.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Tse(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=Ose(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):Tse(i,t.length)},I:function(e,t,r){const n=Ese(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Tse(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Cse.d(e,t)},D:function(e,t,r){const n=wse(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Tse(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Tse(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Tse(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return Tse(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(i=12===n?Rse:0===n?jse:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(i=n>=17?Lse:n>=12?Mse:n>=4?Ise:Nse,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Cse.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Cse.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Tse(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Tse(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Cse.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Cse.s(e,t)},S:function(e,t){return Cse.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Bse(n);case"XXXX":case"XX":return Fse(n);default:return Fse(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Bse(n);case"xxxx":case"xx":return Fse(n);default:return Fse(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zse(n,":");default:return"GMT"+Fse(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zse(n,":");default:return"GMT"+Fse(n,":")}},t:function(e,t,r){return Tse(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return Tse(e.getTime(),t.length)}};function zse(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+t+Tse(o,2)}function Bse(e,t){if(e%60===0){return(e>0?"-":"+")+Tse(Math.abs(e)/60,2)}return Fse(e,t)}function Fse(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+Tse(Math.trunc(n/60),2)+t+Tse(n%60,2)}const Use=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},$se=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Hse={p:$se,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Use(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",Use(n,t)).replace("{{time}}",$se(i,t))}},Vse=/^D+$/,qse=/^Y+$/,Kse=["D","DD","YY","YYYY"];function Wse(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Gse(e){if(!Wse(e)&&"number"!==typeof e)return!1;const t=jne(e);return!isNaN(Number(t))}const Yse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Zse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xse=/^'([^]*?)'?$/,Jse=/''/g,Qse=/[a-zA-Z]/;function ece(e,t,r){const n=tie(),i=r?.locale??n.locale??Qne,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=jne(e);if(!Gse(s))throw new RangeError("Invalid time value");let c=t.match(Zse).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,Hse[t])(e,i.formatLong)}return e})).join("").match(Yse).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:tce(e)};if(Dse[t])return{isToken:!0,value:e};if(t.match(Qse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const l={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map((n=>{if(!n.isToken)return n.value;const o=n.value;(!r?.useAdditionalWeekYearTokens&&function(e){return qse.test(e)}(o)||!r?.useAdditionalDayOfYearTokens&&function(e){return Vse.test(e)}(o))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),Kse.includes(e))throw new RangeError(n)}(o,t,String(e));return(0,Dse[o[0]])(s,o,i.localize,l)})).join("")}function tce(e){const t=e.match(Xse);return t?t[1].replace(Jse,"'"):e}function rce(e,t,r){const n=jne(e),i=jne(t),o=tie(),a=r?.locale??o.locale??Qne,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,c=vse(n,i);if(isNaN(c))throw new RangeError("Invalid time value");let l;l=c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other";return ece(n,a.formatRelative(l,n,i,{locale:a,weekStartsOn:s}),{locale:a,weekStartsOn:s})}const nce=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=une(n,r,t),h=o.operations[0].recipient;return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:o.type,signer:o.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:l.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(Ite,{fee:i})})}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:h}),(0,xn.jsx)(one,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:Bte(o.type,t)})})]})})})},ice=e=>{var t;const r=null===(t=e.form)||void 0===t?void 0:t.baker,n=gne({SignPage:nce,signPageExtraData:void 0,FormPage:ice,defaultFormPageProps:e,toOperation:oce}),i=vne(oce),{onFormSubmitActionHandlers:[o,a],isLoading:s}=yne([n,i]),c=L$({mode:"onBlur",defaultValues:lne(e)}),{formState:{isValid:l,errors:u},handleSubmit:d}=c;return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{"data-testid":"delegate-form",children:[(0,xn.jsxs)(Mte,{children:[(0,xn.jsx)(lF,{fontWeight:"600",size:"2xl",children:r?"Change Baker":"Delegate"}),(0,xn.jsx)(aF,{})]}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!u.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!!e.sender,label:"From"}),u.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:u.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px","data-testid":"baker",isInvalid:!!u.baker,children:[(0,xn.jsx)(b4,{allowUnknown:!0,inputName:"baker",label:"Baker"}),u.baker&&(0,xn.jsx)(Ete,{children:u.baker.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:s,isValid:l,onAddToBatch:d(a),onSingleSubmit:d(o)})})]})})})},oce=e=>({type:"delegation",sender:td(e.sender),recipient:ad(e.baker)}),ace=e=>{const{mode:t,operations:r,fee:n}=e,{fee:i,operations:o,estimationFailed:a,isLoading:s,form:c,signer:l,reEstimate:u,onSign:d}=une(n,r,t);return(0,xn.jsx)(OU,{...c,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:o.type,signer:o.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{address:l.address}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",paddingX:"4px",children:(0,xn.jsx)(Ite,{fee:i})}),(0,xn.jsx)(one,{isLoading:s,operationType:o.type,reEstimate:u,sender:o.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:a,isLoading:s,onSubmit:d,signer:l,text:Bte(o.type,t)})})]})})})},sce=e=>{var t;const{sender:r}=e,n=null===(t=e.form)||void 0===t?void 0:t.baker,i=gne({SignPage:ace,signPageExtraData:void 0,FormPage:sce,defaultFormPageProps:{sender:r},toOperation:cce}),o=vne(cce),{onFormSubmitActionHandlers:[a,s],isLoading:c}=yne([i,o]),l=L$({mode:"onBlur",defaultValues:lne({sender:r})}),{handleSubmit:u}=l;return(0,xn.jsx)(OU,{...l,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{subTitle:"Select preview to end delegation or insert this transaction into a Batch.",title:"End delegation"}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(ZF,{children:(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"})}),(0,xn.jsx)($$,{marginTop:"24px",children:"Baker"}),n&&(0,xn.jsx)(d4,{address:td(n)})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:c,isValid:!0,onAddToBatch:u(s),onSingleSubmit:u(a)})})]})})})},cce=e=>({type:"undelegation",sender:td(e.sender)}),lce=({label:e,value:t,...r})=>(0,xn.jsxs)(_n,{alignItems:"center",height:"50px",padding:"16px","data-testid":e,...r,children:[(0,xn.jsx)(En,{flex:1,children:(0,xn.jsx)(Ln,{color:LP.gray[400],size:"sm",children:e})}),(0,xn.jsx)(En,{flex:1,children:"string"===typeof t?(0,xn.jsx)(lF,{size:"sm",children:t}):t})]}),uce=({delegation:e,account:t})=>{const{openWith:r}=(0,i.useContext)(EM),n=Xq(),o=(()=>{const e=n4();return t=>{const r=e(t.sender),n=new Date;return{initialBalance:G3(t.amount),currentBalance:r&&G3(r),duration:`Since ${rce(new Date(t.timestamp),n)}`}}})();if(!e)return(0,xn.jsx)(One,{onDelegate:()=>{r((0,xn.jsx)(ice,{sender:t}))},size:"md"});const{currentBalance:a,duration:s,initialBalance:c}=o(e),{sender:l,delegate:{address:u}}=e,d=n(l);return(0,xn.jsxs)(En,{children:[(0,xn.jsx)(lce,{borderBottom:`1px solid ${LP.gray[700]}`,borderTopRadius:"8px",_odd:{bg:LP.gray[800]},label:"Initial Balance:",value:c}),a&&(0,xn.jsx)(lce,{_odd:{bg:LP.gray[800]},label:"Current Balance:",value:a}),(0,xn.jsx)(lce,{borderBottom:`1px solid ${LP.gray[700]}`,_odd:{bg:LP.gray[800]},label:"Duration:",value:s}),(0,xn.jsx)(lce,{borderBottomRadius:"8px",_odd:{bg:LP.gray[800]},label:"Baker:",value:(0,xn.jsx)(_ie,{address:td(e.delegate.address)})}),(0,xn.jsxs)(_n,{marginTop:"24px",children:[(0,xn.jsx)(Gn,{flex:1,marginRight:"16px",onClick:()=>r((0,xn.jsx)(sce,{form:{sender:l,baker:u},sender:d})),variant:"warning",children:"End Delegation"}),(0,xn.jsx)(Gn,{flex:1,onClick:()=>{r((0,xn.jsx)(ice,{form:{sender:l,baker:u},sender:d}))},variant:"tertiary",children:"Change Baker"})]})]})};function dce(e){return lR({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"17",x2:"17",y2:"7"}},{tag:"polyline",attr:{points:"7 7 17 7 17 17"}}]})(e)}const hce=({operation:e})=>{switch(e.type){case"delegation":return(0,xn.jsxs)(En,{margin:1,paddingLeft:5,"data-testid":"decoded-item-delegate",marginY:6,children:["Delegate to ",(0,xn.jsx)(_ie,{address:e.recipient})]});case"undelegation":return(0,xn.jsx)(En,{margin:1,paddingLeft:5,"data-testid":"decoded-item-undelegate",marginY:6,children:"End Delegation"});case"tez":case"fa1.2":case"fa2":return(0,xn.jsxs)(En,{marginY:6,children:[(0,xn.jsx)(fce,{operation:e}),(0,xn.jsxs)(_n,{alignItems:"center",margin:1,paddingLeft:5,children:[(0,xn.jsx)(Ln,{marginRight:2,color:LP.gray[400],size:"sm",children:"Send to :"}),(0,xn.jsx)(_ie,{address:e.recipient})]})]});case"contract_origination":case"contract_call":throw new Error(`${e.type} is not suported yet`)}},fce=({operation:e})=>{const t=V3();switch(e.type){case"tez":return(0,xn.jsxs)(_n,{alignItems:"center","data-testid":"decoded-tez-amount",children:[(0,xn.jsx)(qA,{as:dce,width:5,height:5,color:LP.gray[400]}),(0,xn.jsxs)(lF,{marginLeft:1,textAlign:"center",children:["-",G3(e.amount)]})]});case"fa1.2":case"fa2":{const r=t(e.contract.pkh,e.tokenId);if(!r)return null;const n=hd(r),i="nft"===r.type;return(0,xn.jsxs)(_n,{alignItems:"center","data-testid":"decoded-fa-amount",children:[(0,xn.jsx)(qA,{as:dce,width:5,height:5,color:LP.gray[400]}),i?(0,xn.jsxs)(lF,{marginLeft:1,textAlign:"center",children:[e.amount," ",n]}):(0,xn.jsxs)(lF,{marginLeft:1,textAlign:"center",children:["-",bd(e.amount,r,{showSymbol:!0})]})]})}case"delegation":case"undelegation":case"contract_origination":case"contract_call":return null}},pce=e=>Qu.string().regex(new RegExp(`^${e}$`,"i")),mce=e=>Qu.object({prim:pce(e)}),gce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("key_hash")}),Qu.object({bytes:Qu.string()})])}),vce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("address")}),Qu.object({bytes:Qu.string()})])}),yce=(e,t)=>Qu.object({prim:Qu.literal("Pair"),args:Qu.tuple([e,t])}),bce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("mutez")}),Qu.object({int:Qu.literal("0")})])}),wce=[mce("TRANSFER_TOKENS"),mce("CONS")],xce=Qu.object({prim:Qu.literal("CONTRACT")}),_ce=Qu.tuple([Qu.object({prim:Qu.literal("DROP")}),Qu.object({prim:Qu.literal("NIL"),args:Qu.array(Qu.object({prim:Qu.literal("operation")}))})]),Sce=Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([Qu.object({prim:Qu.literal("mutez")}),Qu.object({int:Qu.string()})])}),kce=Qu.tuple([gce,mce("IMPLICIT_ACCOUNT"),Sce,mce("UNIT"),...wce]),Ece=Qu.tuple([vce,xce,mce("IF_NONE"),Sce,mce("UNIT"),...wce]),Ace=Qu.tuple([gce,mce("SOME"),mce("SET_DELEGATE"),mce("CONS")]),Pce=Qu.tuple([Qu.object({prim:Qu.literal("NONE"),args:Qu.tuple([Qu.object({prim:Qu.literal("key_hash")})])}),mce("SET_DELEGATE"),mce("CONS")]),Oce=Qu.tuple([vce,xce,Qu.tuple([mce("IF_NONE")]),bce,Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([mce("list"),Qu.array(yce(Qu.object({bytes:Qu.string({description:"from"})}),Qu.array(yce(Qu.object({bytes:Qu.string({description:"to"})}),yce(Qu.object({int:Qu.string({description:"token_id"})}),Qu.object({int:Qu.string({description:"amount"})}))))))])}),...wce]),Tce=Qu.tuple([vce,xce,Qu.tuple([mce("IF_NONE")]),bce,Qu.object({prim:Qu.literal("PUSH"),args:Qu.tuple([mce("Pair"),yce(Qu.object({bytes:Qu.string({description:"from"})}),yce(Qu.object({bytes:Qu.string({description:"to"})}),Qu.object({int:Qu.string({description:"amount"})})))])}),...wce]);class Cce extends Error{}const jce=e=>(42===e.length&&(e="00"+e),Cc(e)),Rce=[{schema:kce,parsingFn:e=>{const t=kce.parse(e),r=t[0].args[1].bytes,n=t[2].args[1].int;return{type:"tez",recipient:ad(jce(r)),amount:n}}},{schema:Ece,parsingFn:e=>{const t=Ece.parse(e),r=t[0].args[1].bytes,n=t[3].args[1].int;return{type:"tez",recipient:od(jce(r)),amount:n}}},{schema:Oce,parsingFn:e=>{const t=Oce.parse(e),r=od(jce(t[0].args[1].bytes));return t[4].args[1].flatMap((e=>{const t=e.args[0].bytes;return e.args[1].map((e=>{const n=e.args[0].bytes,i=e.args[1].args[0].int,o=e.args[1].args[1].int;return{type:"fa2",contract:r,sender:td(jce(t)),recipient:td(jce(n)),tokenId:i,amount:o}}))}))}},{schema:Tce,parsingFn:e=>{const t=Tce.parse(e),r=t[0],n=t[4].args[1],i=n.args[0].bytes,o=n.args[1].args[0].bytes;return{type:"fa1.2",amount:n.args[1].args[1].int,contract:od(jce(r.args[1].bytes)),recipient:td(jce(o)),sender:td(jce(i)),tokenId:"0"}}},{schema:Ace,parsingFn:(e,t)=>{const r=Ace.parse(e);return{type:"delegation",sender:t.address,recipient:ad(jce(r[0].args[1].bytes))}}},{schema:Pce,parsingFn:(e,t)=>({type:"undelegation",sender:t.address})}],Ice=(e,t,r=[])=>{if(0===e.length)return r;for(let n=0;n((e=>{_ce.parse(e.slice(0,2))})(e),Ice(e.slice(2),t)),Lce=(e,t)=>{const r=JSON.parse(e);return Mce(r,t)},Nce=({rawActions:e,sender:t})=>{try{const r=Lce(e,t);return(0,xn.jsx)(En,{children:r.map(((e,t)=>(0,xn.jsx)(hce,{operation:e},t)))})}catch(Lde){return Lde instanceof Cce?(0,xn.jsx)(Dce,{unrecoginizedRawActions:e}):(0,xn.jsxs)(En,{children:["Invalid michelson code: ",Lde.message]})}},Dce=({unrecoginizedRawActions:e})=>(0,xn.jsx)(DF,{width:"70%",marginBottom:2,allowMultiple:!0,children:(0,xn.jsxs)(zF,{marginBottom:"2",background:"umami.gray.800",border:"none",borderRadius:"8px",children:[(0,xn.jsx)("h2",{children:(0,xn.jsxs)(BF,{children:[(0,xn.jsx)(En,{as:"span",flex:"1",paddingLeft:1,textAlign:"left",children:"Unrecognized operation"}),(0,xn.jsx)(FF,{})]})}),(0,xn.jsx)(qF,{overflowY:"scroll",height:"400px",paddingBottom:3,children:(0,xn.jsx)(U$,{space:1,value:JSON.parse(e)})})]})});function zce(e){return lR({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z",fill:"currentColor"}}]})(e)}const Bce=({icon:e,onClick:t=(()=>{}),label:r,iconWidth:n=4,iconHeight:i=4,textMargin:o="4px",iconColor:a,textFirst:s,...c})=>{const l=(0,xn.jsx)(qA,{as:e,width:n,height:i,color:a}),u=s?{mr:o}:{ml:o},d=(0,xn.jsx)(lF,{...u,fontSize:"sm",children:r});return(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",color:"text.dark",_hover:{color:LP.gray[300]},cursor:"pointer",onClick:t,role:"button",...c,children:[s?d:null,l,s?null:d]})},Fce=({onClickApproveExecute:e,isLoading:t=!1,signerState:r})=>{switch(r){case"awaitingApprovalByExternalSigner":return(0,xn.jsx)(Bce,{"data-testid":"multisig-signer-awaiting-approval",icon:zce,iconColor:LP.orange,iconHeight:5,iconWidth:5,label:"Awaiting Approval"});case"approved":return(0,xn.jsx)(Bce,{"data-testid":"multisig-signer-approved",icon:Sre,iconColor:LP.greenL,iconHeight:5,iconWidth:5,label:"Approved"});case"executable":return(0,xn.jsx)(Gn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Execute"});case"approvable":return(0,xn.jsx)(Gn,{"data-testid":"multisig-signer-button",isLoading:t,onClick:e,children:"Approve"})}},Uce=({signer:e,fee:t,operation:r,actionType:n,transactionCount:o})=>{const{handleAsyncAction:a}=Ste(),{openWith:s}=(0,i.useContext)(EM),c=`${(0,ts.capitalize)(n)} transaction`;return(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Mie,{fee:t,signer:e,title:c,transactionCount:o}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{onSubmit:e=>a((async()=>{const{opHash:t}=await D3(r,e);s((0,xn.jsx)(Cte,{hash:t}))}),{title:`Failed ${n}`}),signer:e,text:c})})]})})},$ce=({pendingApprovals:e,sender:t,operation:r,signerAddress:n})=>{const o=o4(n),a=Kq(),{isLoading:s,handleAsyncAction:c}=Ste(),{openWith:l}=(0,i.useContext)(EM),u=U3(),d=a(n.pkh),h=0===e,f=Hce({approvals:r.approvals,signerAddress:n,operationIsExecutable:h,signerAccount:d});return(0,xn.jsx)(Tie,{icon:(0,xn.jsx)(Pie,{addressKind:o}),leftElement:(0,xn.jsx)(Cie,{label:o.label,pkh:o.pkh}),rightElement:(0,xn.jsx)(Fce,{isLoading:s,onClickApproveExecute:()=>c((async()=>{if(!d)throw new Error("Can't approve or execute with an account you don't own");const e=h?"execute":"approve",n=ane(d,d,[Y5(t.address,e,r.id)]),i=await c3(n,u),o=Lce(r.rawActions,t).length;l((0,xn.jsx)(Uce,{actionType:e,fee:i,operation:n,signer:d,transactionCount:o}))})),signerState:f})})},Hce=({signerAccount:e,operationIsExecutable:t,approvals:r,signerAddress:n})=>{const i=!!r.find((e=>e.pkh===n.pkh));return e?i&&!t?"approved":t?"executable":"approvable":i?"approved":"awaitingApprovalByExternalSigner"},Vce=({operation:e,sender:t})=>{const{signers:r,threshold:n}=t,i=Math.max(n-e.approvals.length,0);return(0,xn.jsx)(En,{padding:3,paddingBottom:0,background:LP.gray[800],borderRadius:6,"data-testid":"multisig-pending-operation-"+e.id,marginY:3,children:(0,xn.jsxs)(zF,{border:"none",borderRadius:"8px",children:[(0,xn.jsx)("h2",{children:(0,xn.jsxs)(BF,{flex:"1",marginBottom:0,paddingBottom:0,textAlign:"left",children:[(0,xn.jsxs)(Ln,{width:"100%",size:"sm",children:["Pending #",e.id]}),(0,xn.jsx)(FF,{})]})}),(0,xn.jsxs)(qF,{children:[(0,xn.jsxs)(_n,{alignItems:"end",justifyContent:"space-between",marginY:2,children:[(0,xn.jsx)(Nce,{rawActions:e.rawActions,sender:t}),(0,xn.jsxs)(_n,{alignItems:"center",marginBottom:"6",children:[(0,xn.jsx)(Ln,{marginRight:1,color:LP.gray[400],size:"sm",children:"Pending Approvals:"}),(0,xn.jsx)(lF,{color:"w","data-testid":"pending-approvals-count",children:i})]})]}),(0,xn.jsx)(En,{marginY:5,children:r.map((r=>(0,xn.jsx)($ce,{operation:e,pendingApprovals:i,sender:t,signerAddress:r},r.pkh)))})]})]})})},qce=({account:e})=>{const t=Hq()(e);return(0,xn.jsx)(En,{width:"100%",children:(0,xn.jsx)(DF,{allowMultiple:!0,defaultIndex:(0,ts.range)(t.length),children:t.map((t=>(0,xn.jsx)(Vce,{operation:t,sender:e},t.id)))})})},Kce=({to:e})=>(0,xn.jsx)(Sn,{children:(0,xn.jsxs)(Zn,{as:PT,color:LP.gray[300],stroke:LP.gray[450],_hover:{color:LP.green,stroke:LP.green},to:e,children:[(0,xn.jsx)(xR,{display:"inline",stroke:"inherit"}),(0,xn.jsx)(lF,{display:"inline",size:"sm",children:"\xa0View All"})]})}),Wce=({owner:e,nfts:t,...r})=>{if(0===t.length)return(0,xn.jsx)(Ane,{size:"md"});const n=Eie(t).slice(0,18);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(Cae,{marginBottom:"35px",spacing:"12px",...r,children:n.map((t=>{const r=kie(xd(t)),n={width:"100%",height:40,fallbackSrc:kie(t.displayUri),src:r};return(0,xn.jsx)(PT,{"data-testid":"nft-link",to:`/home/${e}/${dd(t)}`,children:(0,xn.jsx)(B$,{background:LP.gray[800],border:"1px solid transparent",_hover:{background:LP.gray[700],borderColor:LP.gray[500]},children:(0,xn.jsxs)(F$,{overflow:"hidden",padding:"8px",borderRadius:"6px",children:[(0,xn.jsx)(Sn,{children:(0,xn.jsxs)(En,{position:"relative",width:"100%",height:"100%",children:[(0,xn.jsx)(hF,{zIndex:2,width:"100%",opacity:"0",ratio:1,children:(0,xn.jsx)(TR,{...n,width:"100%",height:40})}),(0,xn.jsx)(hF,{position:"absolute",zIndex:0,top:"0",width:"100%",filter:"blur(20px)",ratio:1,children:(0,xn.jsx)(TR,{...n,width:"100%",height:40})}),(0,xn.jsx)(hF,{position:"absolute",zIndex:1,top:"0",width:"100%",ratio:1,children:(0,xn.jsx)(TR,{...n,width:"100%",height:40})})]})}),Number(t.balance)>1&&(0,xn.jsx)(lF,{position:"absolute",display:"inline",height:"20px",marginTop:"-24px",marginLeft:"4px",padding:"0 8px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",size:"xs",children:"x"+t.balance})]})})},`${e}:${dd(t)}`)}))}),t.length>18&&(0,xn.jsx)(Kce,{to:`/nfts?accounts=${e}`})]})},Gce=i.createContext({mode:"page"}),Yce=["bakerFee","storageFee","allocationFee"],Zce=({operation:e})=>{const t=(0,i.useContext)(Gce),r=Jq(e.sender.address);if("drawer"===t.mode)return null;if(!r)return null;const n=Yce.reduce(((t,r)=>r in e?t.plus((0,ts.get)(e,r)||0):t),Zs(0));return n.eq(0)?null:(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"md",children:"Fee:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"fee",children:G3(n)})]})},Xce=({level:e,status:t})=>{const r=Z3(e);return void 0===t||"applied"===t?r?(0,xn.jsx)(Tj,{"data-testid":"checkmark"}):(0,xn.jsx)(tR,{"data-testid":"hourglass"}):(0,xn.jsx)(Nj,{"data-testid":"crossed-circle"})},Jce=({children:e})=>"drawer"===(0,i.useContext)(Gce).mode?null:(0,xn.jsx)(lF,{marginRight:"4px",color:LP.gray[300],"data-testid":"operation-type",size:"sm",children:e});function Qce(e,t){const r=jne(e),n=jne(t),i=ele(r,n),o=Math.abs(vse(r,n));r.setDate(r.getDate()-i*o);const a=i*(o-Number(ele(r,n)===-i));return 0===a?0:a}function ele(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}const tle=({timestamp:e})=>e?(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"timestamp",size:"sm",children:rle(e)}):null,rle=e=>{const t=new Date,r=new Date(e);return Qce(t,r)<2?nie(r,t,{addSuffix:!0}):ece(r,"dd MMM yyyy")},nle=({hash:e,counter:t,transactionId:r,originationId:n,migrationId:i,children:o,...a})=>{const{tzktExplorerUrl:s}=U3();let c=s;return e?c=(0,ts.compact)([s,e,t]).join("/"):i?c=`${c}/migrations/${i}`:n?c=`${c}/originations/${n}`:r?c=`${c}/transactions/${r}`:console.warn("No id provided to TzktLink"),(0,xn.jsx)(Zn,{"data-testid":"tzkt-link",href:c,isExternal:!0,...a,children:o})},ile=e=>{const t=(0,i.useContext)(Gce);return!!e&&("page"===t.mode||t.selectedAddress.pkh!==e)},ole=({operation:e})=>{var t;const r=ile(e.target.address),n=ile(e.sender.address),i=!r&&!n;return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-contract-call",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Lj,{marginRight:"8px"}),(0,xn.jsx)(nle,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsxs)(Ln,{size:"md",children:["Contract Call: ",null===(t=e.parameter)||void 0===t?void 0:t.entrypoint]})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[r&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:e.target})]}),(n||i)&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:e.sender})]})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Contract Call"}),(0,xn.jsx)(Xce,{...e})]})]})})]})},ale=({operation:e})=>{const t=!!e.newDelegate,r=t?"Delegate":"Delegation Ended",n=ile(e.sender.address);return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-delegation",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Aj,{marginRight:"8px"}),(0,xn.jsx)(nle,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsx)(Ln,{size:"md",children:r})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[t&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:e.newDelegate})]}),n&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:e.sender})]}),!t&&!n&&(0,xn.jsx)(lF,{color:LP.gray[450],children:"N/A"})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:r}),(0,xn.jsx)(Xce,{...e})]})]})})]})},sle=({operation:e})=>{var t;const r=(null===(t=e.originatedContract)||void 0===t?void 0:t.codeHash)===nre&&e.originatedContract.typeHash===rre?"Multisig Account Created":"Contract Origination",n=ile(e.sender.address);return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-origination",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Lj,{marginRight:"8px"}),(0,xn.jsx)(nle,{marginRight:"8px",counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsx)(Ln,{size:"md",children:r})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsx)(_n,{"data-testid":"from",children:n?(0,xn.jsxs)(_n,{marginRight:"15px",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:e.sender})]}):(0,xn.jsx)(lF,{color:LP.gray[450],children:"N/A"})}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Contract Origination"}),(0,xn.jsx)(Xce,{...e})]})]})})]})},cle=({isOutgoing:e,...t})=>e?(0,xn.jsx)(yR,{"data-testid":"outgoing-arrow",...t}):(0,xn.jsx)(rR,{"data-testid":"incoming-arrow",...t}),lle=({operation:e,tokenTransfer:t,token:r})=>{var n,i;const o=t.amount,a=ile(t.to.address),s=ile((null===(n=t.from)||void 0===n?void 0:n.address)||""),c=!a&&!s,l=Jq((null===(i=t.from)||void 0===i?void 0:i.address)||""),u="nft"===r.type,d=bd(o,r,{showSymbol:!0}),h=l?LP.orange:LP.green,f=u?"white":h,p=l?"-":"+",m=u?(0,xn.jsx)(tq,{padding:"8px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],borderRadius:"8px","data-testid":"nft-tooltip",label:(0,xn.jsx)(hF,{width:"170px",height:"170px",ratio:1,children:(0,xn.jsx)(TR,{src:kie(xd(r))})}),openDelay:300,children:(0,xn.jsx)(_n,{children:(0,xn.jsxs)(nle,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:[(0,xn.jsxs)(lF,{display:"inline",color:h,fontWeight:"600",children:[p,d]}),(0,xn.jsxs)(lF,{display:"inline",fontWeight:"600",children:[" ",hd(r)]})]})})}):(0,xn.jsx)(nle,{marginRight:"8px",color:f,"data-testid":"title",migrationId:t.migrationId,originationId:t.originationId,transactionId:t.transactionId,children:(0,xn.jsxs)(lF,{display:"inline",color:h,fontWeight:"600",children:[p,d]})});return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-token-transfer",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(cle,{marginRight:"8px",isOutgoing:l}),m,e&&(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:t.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[(a||c)&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:t.to})]}),s&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:t.from})]})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Token Transfer"}),(0,xn.jsx)(Xce,{level:t.level})]})]})})]})},ule=({operation:e})=>{const t=Jq(e.sender.address),r=G3(String(e.amount)),n=ile(e.target.address),i=ile(e.sender.address),o=!n&&!i,a=t?LP.orange:LP.green,s=t?"-":"+";return(0,xn.jsxs)(_n,{flexDirection:"column",width:"100%","data-testid":"operation-tile-transaction",children:[(0,xn.jsxs)(_n,{justifyContent:"space-between",marginBottom:"10px",children:[(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(cle,{marginRight:"8px",isOutgoing:t}),(0,xn.jsx)(nle,{marginRight:"8px",color:a,counter:e.counter,"data-testid":"title",hash:e.hash,children:(0,xn.jsxs)(lF,{color:a,fontWeight:"600",children:[s," ",r]})}),(0,xn.jsx)(Zce,{operation:e})]}),(0,xn.jsx)(_n,{alignSelf:"flex-end",children:(0,xn.jsx)(tle,{timestamp:e.timestamp})})]}),(0,xn.jsx)(En,{children:(0,xn.jsxs)(_n,{justifyContent:"space-between",children:[(0,xn.jsxs)(_n,{children:[(n||o)&&(0,xn.jsxs)(_n,{marginRight:"15px","data-testid":"to",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"To:"}),(0,xn.jsx)(_ie,{address:td(e.target.address)})]}),i&&(0,xn.jsxs)(_n,{"data-testid":"from",children:[(0,xn.jsx)(lF,{marginRight:"6px",color:LP.gray[450],children:"From:"}),(0,xn.jsx)(_ie,{address:td(e.sender.address)})]})]}),(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(Jce,{children:"Transaction"}),(0,xn.jsx)(Xce,{...e})]})]})})]})},dle=({operation:e})=>{const t=(()=>{const e=UR((e=>e.assets.transfers.tokens));return t=>e[t]})();switch(e.type){case"token_transfer":{const t=ud(e.token);return t?(0,xn.jsx)(lle,{token:t,tokenTransfer:e}):(console.warn(`Could not parse token transfer ${e.id}`),null)}case"transaction":{const r=!!e.parameter,n=t(e.id);if(n){const t=ud(n.token);return t?(0,xn.jsx)(lle,{operation:e,token:t,tokenTransfer:n}):(0,xn.jsx)(ule,{operation:e})}return r?(0,xn.jsx)(ole,{operation:e}):(0,xn.jsx)(ule,{operation:e})}case"delegation":return(0,xn.jsx)(ale,{operation:e});case"origination":return(0,xn.jsx)(sle,{operation:e})}},hle=({owner:e,operations:t})=>{if(0===t.length)return(0,xn.jsx)(Ene,{size:"md",withViewAllButton:!0});const r=t.slice(0,20);return(0,xn.jsxs)(xn.Fragment,{children:[r.map(((e,t)=>(0,xn.jsxs)(En,{height:"90px",children:[(0,xn.jsx)(dle,{operation:e}),t20&&(0,xn.jsx)(Kce,{to:`/operations?accounts=${e}`})]})},fle=["KT1XnTn74bUtxHfDtBmm2bGZAQfhPbvKWR8o","KT1PWx2mnDueood7fEmfbBDKx1D9BAnnXitn","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW","KT1K9gCRgaLRFKTErYt1wVxA3Frb9FjasjTV","KT1Ha4yFVeyzw6KRAdkzq6TxDHB97KG4pZe8","KT1JBNFcB5tiycHNdYGYCtR3kk6JaJysUCi8","KT1Xobej4mc6XgEjDoJoHtTKgbD1ELMvcQuL","KT1JVjgXPMMSaa6FkzeJcgb8q9cUaLmwaJUX","KT193D4vozYnhGJQVtw7CoxxqphqUEEwK6Vb","KT1LN4LPSqTMS7Sd2CJw4bbDGRkMv2t68Fy9","KT1914CUZ7EegAFPbfgQMRkw8Uz5mYkEz2ui","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT19ovJhcsUn4YU8Q5L3BGovKSixfbWcecEA","KT1TgmD7kXQzofpuc9VbTRMdZCS2e6JDuTtc","KT1F1mn2jbqQCJcsNgYKVAQjvenecNMY2oPK","KT1ErKVqEhG9jxXgUG2KGLW3bNM7zXHX8SDF","KT1A5P4ejnLix13jtadsfV9GCnXLMNnab8UT","KT1AM3PV1cwmGRw28DVTgsjjsjHvmL6z4rGh","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1SjXiUX63QvdNMcM2m492f7kuf8JxXRLp4","KT1MZg99PxMDEENwB4Fi64xkqAVh5d1rv8Z9","KT1UsSfaXyqcjSVPeiD7U1bWgKy3taYN7NWY","KT1XTxpQvo7oRCqp85LikEZgAZ22uDxhbWJv","KT1VaEsVNiBoA56eToEK6n6BcPgh1tdx9eXi"],ple=({token:e,...t})=>{const r=fle.includes(e.contract);return(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(lF,{...t,marginRight:"4px",children:hd(e)}),r&&(0,xn.jsx)(MR,{})]})},mle=({owner:e,tokens:t})=>{if(0===t.length)return(0,xn.jsx)(Pne,{size:"md"});const r=t.slice(0,20);return(0,xn.jsxs)(En,{children:[r.map((e=>(0,xn.jsx)(gle,{token:e},dd(e)))),t.length>20&&(0,xn.jsx)(Kce,{to:`/tokens?accounts=${e}`})]})},gle=({token:e})=>{const t=bd(e.balance,e,{showSymbol:!1});return(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-around",height:20,borderBottom:`1px solid ${LP.gray[800]}`,"data-testid":"token-tile",children:[(0,xn.jsxs)(_n,{alignItems:"center",flex:1,children:[(0,xn.jsx)(CR,{width:"38px",background:LP.gray[500],borderRadius:"4px",contract:e.contract}),(0,xn.jsx)(En,{marginLeft:"16px",children:(0,xn.jsx)(ple,{fontWeight:600,"data-testid":"token-name",token:e})})]}),(0,xn.jsx)(Ln,{"data-testid":"token-balance",size:"lg",children:t})]})},vle=(e,t)=>`${e.tzktExplorerUrl}/${t}`,yle=e=>{const t=U3(),[r,n]=(0,i.useState)([]),[o,a]=(0,i.useState)(!0),[s,c]=(0,i.useState)(!0),{isLoading:l,handleAsyncAction:u}=Ste(),[d,h]=(0,i.useState)(e),f=FR(),[p,m]=(0,i.useState)(0);(0,i.useEffect)((()=>{const e=setInterval((()=>{u((async()=>{var e;const i=null===(e=r[0])||void 0===e?void 0:e.id,o=await ble(f,t,d,{lastId:i,sort:"asc"});n((e=>(0,ts.uniqBy)([...o.reverse(),...e],(e=>e.id))))}))}),15e3);return()=>clearInterval(e)}),[p]);const g=d.join(",");(0,i.useEffect)((()=>{n([]),a(!0),u((async()=>{const e=await ble(f,t,g.split(","));n(e),a(e.length>0),m((e=>e+1))})).finally((()=>{c(!1)}))}),[t,g,f]);return{operations:wle(r),isFirstLoad:s,isLoading:l,hasMore:o,loadMore:async()=>{var e;const i=null===(e=r[r.length-1])||void 0===e?void 0:e.id;if(i)return u((async()=>{const e=await ble(f,t,d,{lastId:i});a(e.length>0),n((t=>[...t,...e]))}))},setAddresses:h}},ble=async(e,t,r,n)=>{const i=await(async(e,t,r)=>{var n;const i=(null===r||void 0===r?void 0:r.limit)||100,o=null!==(n=null===r||void 0===r?void 0:r.sort)&&void 0!==n?n:"desc",a={limit:i,offset:null!==r&&void 0!==r&&r.lastId?{cr:r.lastId}:void 0,sort:{[o]:"id"}},s=await Promise.all([R3(e,t,a),j3(e,t,a),I3(e,t,a),M3(e,t,a)]);return(0,ts.sortBy)(s.flat(),(e=>"asc"===o?e.id:-e.id)).slice(0,i)})(r,t,n),o=i.filter((e=>"transaction"===e.type)).map((e=>e.id)),a=await(async(e,t)=>0===e.length?[]:O3((()=>k3({transactionId:{in:[e.join(",")]}},{baseUrl:t.tzktApiUrl}))))(o,t),s=[...a,...i.filter((e=>"token_transfer"===e.type))];return e(Ld.updateTokenTransfers(s)),e(ih.addTokens({network:t,tokens:s.map((e=>e.token))})),i},wle=e=>{const t=[];for(let r=0;r{i(l)}))}),id:cse(a,l),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":lse(a,l),onFocus:t?void 0:E(e.onFocus,(()=>{s(l),!o&&(!t||!r)&&i(l)}))}}({...e,ref:t}),i={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,xn.jsx)(wn.button,{...n,className:y("chakra-tabs__tab",e.className),__css:i})}));xle.displayName="Tab";const _le=({children:e,...t})=>(0,xn.jsx)(xle,{...t,fontSize:"sm",paddingX:3,children:e}),Sle=({tokens:e,nfts:t,account:r,delegation:n})=>{const i=Hq(),o="multisig"===r.type&&i(r).length>0,a=U3(),{operations:s,isFirstLoad:c}=yle([r.address.pkh]);return(0,xn.jsxs)(hse,{flexDirection:"column",display:"flex",overflow:"hidden",width:"100%",marginTop:"60px","data-testid":"asset-panel",children:[(0,xn.jsxs)(fse,{justifyContent:"space-between","data-testid":"asset-panel-tablist",children:[(0,xn.jsxs)(_n,{children:[o&&(0,xn.jsxs)(_le,{"data-testid":"account-card-pending-tab",children:[(0,xn.jsx)(lF,{children:"Pending"}),(0,xn.jsx)(En,{width:"6px",height:"6px",marginTop:"-3px",marginLeft:"3px",borderRadius:"100%",backgroundColor:LP.orangeL})]}),(0,xn.jsx)(_le,{"data-testid":"account-card-operations-tab",children:"Operations"}),(0,xn.jsx)(_le,{"data-testid":"account-card-delegation-tab",children:"Delegation"}),(0,xn.jsx)(_le,{"data-testid":"account-card-nfts-tab",children:"NFTs"}),(0,xn.jsx)(_le,{"data-testid":"account-card-tokens-tab",children:"Tokens"})]}),(0,xn.jsx)(_ne,{href:vle(a,r.address.pkh),children:(0,xn.jsxs)(Gn,{paddingRight:0,variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{marginRight:"7px",size:"sm",children:"View on Tzkt"}),(0,xn.jsx)(Vj,{stroke:"currentcolor"})]})})]}),(0,xn.jsxs)(pse,{height:"100%",paddingBottom:"60px",children:[o&&(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-pending-tab-panel",paddingX:"0",children:(0,xn.jsx)(qce,{account:r})}),(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px",paddingBottom:"60px","data-testid":"account-card-operations-tab-panel",paddingX:"0",children:(0,xn.jsx)(Gce.Provider,{value:{mode:"drawer",selectedAddress:r.address},children:c?(0,xn.jsx)(lF,{color:LP.gray[500],textAlign:"center",children:"Loading..."}):(0,xn.jsx)(hle,{operations:s,owner:r.address.pkh})})}),(0,xn.jsx)(mse,{overflowX:"hidden",paddingTop:"24px","data-testid":"account-card-delegation-tab-panel",paddingX:"0",children:(0,xn.jsx)(uce,{account:r,delegation:n})}),(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-nfts-tab-panel",paddingX:"0",children:(0,xn.jsx)(Wce,{columns:3,nfts:t,owner:r.address.pkh})}),(0,xn.jsx)(mse,{overflowX:"hidden",height:"100%",paddingTop:"24px","data-testid":"account-card-tokens-tab-panel",paddingX:"0",children:(0,xn.jsx)(mle,{owner:r.address.pkh,tokens:e})})]})]})};var kle=v((function(e,t){const{spacing:r="0.5rem",spacingX:n,spacingY:o,children:a,justify:s,direction:c,align:l,className:u,shouldWrapChildren:d,...h}=e,f=(0,i.useMemo)((()=>d?i.Children.map(a,((e,t)=>(0,xn.jsx)(Ele,{children:e},t))):a),[a,d]);return(0,xn.jsx)(wn.div,{ref:t,className:y("chakra-wrap",u),...h,children:(0,xn.jsx)(wn.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:s,alignItems:l,flexDirection:c,listStyleType:"none",gap:r,columnGap:n,rowGap:o,padding:"0"},children:f})})}));kle.displayName="Wrap";var Ele=v((function(e,t){const{className:r,...n}=e;return(0,xn.jsx)(wn.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:y("chakra-wrap__listitem",r),...n})}));Ele.displayName="WrapItem";const Ale=({signers:e})=>(0,xn.jsx)(En,{width:"100%",marginTop:"60px",padding:"15px",background:LP.gray[800],borderRadius:"8px",children:(0,xn.jsx)(DF,{allowToggle:!0,defaultIndex:0,children:(0,xn.jsxs)(zF,{background:LP.gray[800],border:"none",borderRadius:"8px",children:[(0,xn.jsx)("h2",{children:(0,xn.jsxs)(BF,{as:"span",flex:"1",textAlign:"left",children:[(0,xn.jsx)(Ln,{width:"100%",size:"sm",children:"Approvers"}),(0,xn.jsx)(FF,{cursor:"pointer"})]})}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(kle,{marginTop:"3","data-testid":"multisig-tag-section",children:e.map((e=>(0,xn.jsx)(Ele,{padding:"3px 8px",borderRadius:"100px",children:(0,xn.jsx)(_ie,{address:e})},e.pkh)))})})]})})}),Ple=({account:e})=>{const t=FR(),{onClose:r}=(0,i.useContext)(EM),n=({name:n})=>{t(((e,t)=>(r,n)=>{const{accounts:i,multisigs:o,contacts:a}=n(),s="multisig"===e.type,c=i.items.map((e=>e.label));[c,o.items.map((e=>e.label)),Object.values(a).map((e=>e.name))].flat().includes(t)||r(s?Xd.actions.setName({newName:t,account:e}):Kc.actions.renameAccount({newName:t,account:e}))})(e,n)),r()},{handleSubmit:o,formState:{isValid:a,errors:s},register:c,reset:l}=L$({mode:"onBlur",defaultValues:{name:e.label}}),u=Wq(),{nameExistsInContacts:d}=Uq();return(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:o((({name:e})=>{n({name:e.trim()}),l()})),children:[(0,xn.jsx)(Lte,{subTitle:"Edit your account name here.",title:"Edit Name"}),(0,xn.jsx)(aF,{}),(0,xn.jsx)(uF,{children:(0,xn.jsxs)(ZF,{isInvalid:!!s.name,marginY:"20px",children:[(0,xn.jsx)($$,{children:"Account name"}),(0,xn.jsx)(Z$,{type:"text",...c("name",{required:"Name is required",validate:e=>u.map((e=>e.label)).includes(e)?"Name already used in accounts":!d(e.trim())||"Name already registered in address book"}),placeholder:"Enter contact's name"}),s.name&&(0,xn.jsx)(eU,{"data-testid":"name-error",children:s.name.message})]})}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:"8px",isDisabled:!a,size:"lg",type:"submit",children:"Save"})})]})})},Ole=({account:e})=>{const{openWith:t,onClose:r}=(0,i.useContext)(EM),n=FR(),o=eT(),a=1===qq().length;let s;switch(e.type){case"secret_key":s=Eoe;break;case"ledger":case"social":s=()=>Kc.actions.removeAccount(e)}let c="Are you sure you want to remove this account?",l="Remove Account";a&&(c="Removing your last account will off-board you from Umami. This will remove or reset all customized settings to their defaults. Personal data (including saved contacts, password and accounts) won't be affected.",l="Remove & Off-board");const u=s?()=>{t((0,xn.jsx)(Iie,{buttonLabel:l,description:c,onSubmit:()=>{n(s(e)),r(),o("/")},title:"Remove Account"}))}:void 0;return(0,xn.jsx)(nne,{onRemove:u,onRename:()=>t((0,xn.jsx)(Ple,{account:e}))})},Tle=e=>(0,xn.jsxs)(En,{textAlign:e.center?"center":"initial",children:[(0,xn.jsx)(Ln,{size:"md",children:G3(e.balance)}),null!==e.dollarBalance&&(0,xn.jsxs)(lF,{marginTop:"6px",color:LP.gray[400],size:"sm",children:["$",e.dollarBalance.toFixed(2)]})]}),Cle=({icon:e,label:t,onClick:r=(()=>{})})=>(0,xn.jsxs)(En,{className:"account-drawer-cta-button",color:LP.gray[300],textAlign:"center",_hover:{color:LP.green},cursor:"pointer",marginX:"24px",onClick:r,children:[(0,xn.jsx)(_4,{className:"account-drawer-cta-button-icon",marginBottom:"8px","aria-label":"button",icon:e,size:"lg",variant:"circle_without_color"}),(0,xn.jsx)(lF,{cursor:"pointer",size:"sm",children:t})]}),jle=({onSend:e,onReceive:t=(()=>{}),balance:r,dollarBalance:n,tokens:o,nfts:a,account:s})=>{const c="multisig"===s.type,{openWith:l}=(0,i.useContext)(EM),u=o4(s.address),d=U3(),[h,f]=(0,i.useState)(null),{handleAsyncAction:p}=Ste();return(0,i.useEffect)((()=>{p((async()=>{const e=await((e,t)=>j3([e],t,{limit:1,sort:{desc:"id"}}).then(ts.first))(s.address.pkh,d);e&&f((e=>{var t,r,n;const i=null===(t=e.sender)||void 0===t?void 0:t.address,o=null===(r=e.newDelegate)||void 0===r?void 0:r.address,a=e.timestamp,s=e.id,c=e.amount;return null==i||null==o||null==a||null==s||null==c?null:{sender:i,timestamp:a,id:s,amount:new Zs(c),delegate:{address:o,alias:(null===(n=e.newDelegate)||void 0===n?void 0:n.alias)||void 0}}})(e))}))}),[s.address.pkh,d]),(0,xn.jsxs)(_n,{zIndex:2,alignItems:"center",flexDirection:"column",height:"100%","data-testid":`account-card-${s.address.pkh}`,children:[(0,xn.jsx)(Pie,{addressKind:u}),(0,xn.jsx)(Ln,{marginTop:"24px",size:"md",children:s.label}),(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"8px",marginBottom:"30px",children:[(0,xn.jsx)(_ie,{marginRight:"4px",address:s.address,mode:{type:"no_icons"}}),(0,xn.jsx)(Ole,{account:s})]}),r&&(0,xn.jsx)(Tle,{balance:r,center:!0,dollarBalance:n}),(0,xn.jsxs)(Sn,{marginTop:"34px",children:[(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(yR,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Send",onClick:e}),(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(rR,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Receive",onClick:t}),!c&&(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(wR,{stroke:"currentcolor"}),label:"Buy tez",onClick:()=>{l((0,xn.jsx)(iie,{recipient:s.address.pkh}))}}),(0,xn.jsx)(Cle,{icon:(0,xn.jsx)(Aj,{width:"24px",height:"24px",stroke:"currentcolor"}),label:"Delegate",onClick:()=>{l((0,xn.jsx)(ice,{form:h?{baker:h.delegate.address,sender:s.address.pkh}:void 0,sender:s}))}})]}),c&&(0,xn.jsx)(Ale,{signers:s.signers}),(0,xn.jsx)(Sle,{account:s,delegation:h,nfts:a,tokens:o})]})};var Rle=r(5508);const Ile=({pkh:e})=>{const t=Zq()(e);return(0,xn.jsxs)(oF,{children:[(0,xn.jsx)(Lte,{subTitle:"You can receive tez or other digital assets by scanning or sharing this QR code",title:"Receive"}),(0,xn.jsx)(uF,{children:(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"space-between",flexDirection:"column",children:(0,xn.jsx)(En,{padding:"8px",background:"white",borderRadius:"8px",children:(0,xn.jsx)(Rle.QRCode,{size:232,value:e})})})}),(0,xn.jsx)(rU,{children:(0,xn.jsxs)(En,{width:"100%",children:[t&&(0,xn.jsx)(Ln,{textAlign:"center",marginY:2,children:t.label}),(0,xn.jsx)(_n,{justifyContent:"center",width:"100%",children:(0,xn.jsx)(_ie,{address:td(e),mode:{type:"no_icons"}})})]})})]})},Mle=({account:e})=>{const t=n4(),r=(()=>{const e=t4(),t=n4();return r=>{const n=t(r);if(null==n)return null;const i=W3(n);return e(i)}})(),n=Q3(),o=e4(),{openWith:a}=(0,i.useContext)(EM),s=t(e.address.pkh),c=r(e.address.pkh),l=n(e.address.pkh),u=Eie(o(e.address.pkh));return(0,xn.jsx)(jle,{account:e,balance:s,dollarBalance:c,nfts:u,onReceive:()=>{a((0,xn.jsx)(Ile,{pkh:e.address.pkh}))},onSend:()=>a((0,xn.jsx)(bne,{sender:e})),tokens:l})};var Lle=r(2080),Nle=r.n(Lle);const Dle=({nft:e,style:t})=>{const r=e.metadata.attributes;return r&&0!==r.length?(0,xn.jsxs)(zF,{background:LP.gray[800],"data-testid":"attributes-section",style:t,children:[(0,xn.jsxs)(BF,{paddingY:"16px",children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",size:"md",children:"Attributes"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(kle,{marginLeft:"0",spacing:"10px",children:r.map((e=>(0,xn.jsx)(Ele,{flex:"1","data-testid":"nft-attribute",children:(0,xn.jsx)(B$,{width:"160px",height:"128px",marginBottom:"2px",background:LP.gray[700],children:(0,xn.jsxs)(F$,{padding:"16px",children:[(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:e.name}),(0,xn.jsx)(Ln,{size:"md",children:e.value})]})})},e.name)))})})]}):null},zle=({text:e,maxLength:t})=>e.length<=t?(0,xn.jsx)(lF,{"data-testid":"truncated-text",children:e}):(0,xn.jsx)(tq,{label:e,children:(0,xn.jsx)(lF,{"data-testid":"truncated-text",children:q3(e,t)})}),Ble=({url:e,...t})=>(0,xn.jsx)("a",{"data-testid":"tzkt-link",href:e,rel:"noopener noreferrer",target:"_blank",children:(0,xn.jsx)(Tte,{...t})}),Fle=({nft:e})=>{if(!e.metadata.creators||0===e.metadata.creators.length)return(0,xn.jsx)(xn.Fragment,{children:"-"});const t=e.metadata.creators[0];return t.startsWith("tz")?(0,xn.jsx)(_ie,{marginRight:1,address:td(t)}):(0,xn.jsx)(zle,{maxLength:15,text:t})},Ule=({nft:e,style:t})=>{const r=(e=>{const t=e.metadata.royalties;if(!t)return[];const r=Math.pow(10,Number(t.decimals)),n=Object.entries(t.shares).map((([e,t])=>({address:e,share:100*Number(t)/r})));return n.sort(((e,t)=>e.sharee+t.share),0).toFixed(2),i=U3();return(0,xn.jsxs)(zF,{background:LP.gray[800],style:t,children:[(0,xn.jsxs)(BF,{paddingY:"16px",children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",size:"md",children:"Properties"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(pre,{children:(0,xn.jsx)(vre,{variant:"stripped",children:(0,xn.jsxs)(yre,{fontSize:"14px",children:[(0,xn.jsxs)(bre,{background:LP.gray[900],borderColor:LP.gray[700],borderBottomWidth:"1px",borderRadius:"8px",children:[(0,xn.jsx)(wre,{width:"20%",padding:"16px 0 16px 15px",paddingRight:"0",color:LP.gray[400],borderTopLeftRadius:"8px","data-testid":"nft-editions",children:"Editions:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px","data-testid":"nft-editions-value",children:e.totalSupply||"?"}),(0,xn.jsx)(wre,{width:"20%",padding:"16px 0 16px 15px",color:LP.gray[400],children:"Token ID:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px",borderTopRightRadius:"8px",children:e.tokenId})]}),(0,xn.jsxs)(bre,{background:LP.gray[800],borderColor:LP.gray[700],borderBottomWidth:"1px",children:[(0,xn.jsxs)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],"data-testid":"nft-royalty",children:["Royalties",r.length>1?" ("+r.length+")":"",":"]}),(0,xn.jsx)(wre,{padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px","data-testid":"nft-royalty-value",children:r.length>0?n+"%":"-"}),(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],"data-testid":"nft-mime",children:"MIME type:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px","data-testid":"nft-mime-value",children:_d(e)||"-"})]}),(0,xn.jsxs)(bre,{background:LP.gray[900],borderColor:LP.gray[700],borderBottomWidth:"1px",children:[(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],children:"Contract:"}),(0,xn.jsx)(wre,{padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px",children:(0,xn.jsx)(_ie,{marginRight:1,address:td(e.contract)})}),(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],children:"Metadata:"}),(0,xn.jsxs)(wre,{width:"30%",padding:"16px 0 16px 5px",children:["TzKT ",(0,xn.jsx)(Ble,{url:Sd(e,i)})]})]}),(0,xn.jsxs)(bre,{background:LP.gray[800],borderColor:LP.gray[700],borderBottomWidth:"1px",children:[(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],"data-testid":"nft-creator",children:"Creator:"}),(0,xn.jsx)(wre,{padding:"16px 0 16px 5px",borderColor:LP.gray[700],borderRightWidth:"1px","data-testid":"nft-creator-value",children:(0,xn.jsx)(Fle,{nft:e})}),(0,xn.jsx)(wre,{padding:"16px 0 16px 15px",color:LP.gray[400],children:"License:"}),(0,xn.jsx)(wre,{width:"30%",padding:"16px 0 16px 5px",children:(0,xn.jsx)(zle,{maxLength:15,text:e.metadata.rights||"-"})})]})]})})})})]})},$le=({nft:e})=>{const t=e.metadata.tags;return t&&0!==t.length?(0,xn.jsx)(kle,{marginTop:"20px","data-testid":"tags-section",children:t.map((e=>(0,xn.jsx)(Ele,{padding:"3px 8px",background:LP.gray[600],borderRadius:"100px",children:(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-tag",children:e})},e)))}):null},Hle=({nft:e})=>{const t=kie(xd(e)),r=kie(e.displayUri);return(0,xn.jsx)(En,{width:"100%","aria-label":"nft",children:(0,xn.jsxs)(_n,{alignItems:"center",height:"60px",padding:3,background:LP.gray[800],borderRadius:"4px","data-testid":"nft-name",children:[(0,xn.jsx)(hF,{width:"30px",height:"30px",ratio:1,children:(0,xn.jsx)(TR,{fallbackSrc:r,src:t})}),e.metadata.name&&(0,xn.jsx)(Ln,{marginLeft:4,size:"sm",children:q3(e.metadata.name,45)})]})})},Vle=e=>{const{mode:t,operations:r,fee:n,data:{nft:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=une(n,r,t),{recipient:f}=a.operations[0];return(0,xn.jsx)(OU,{...l,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:a.type,signer:a.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(_n,{marginBottom:"12px",children:(0,xn.jsx)(Hle,{nft:i})}),(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",marginY:"12px",paddingX:"4px",children:[(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Owned:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-owned",size:"sm",children:i.balance})]}),(0,xn.jsx)(Ite,{fee:o})]}),(0,xn.jsxs)(_n,{alignItems:"center",marginTop:"12px",marginBottom:"24px",children:[(0,xn.jsx)(Ln,{marginRight:"12px",size:"md",children:"Quantity:"}),(0,xn.jsx)(Sn,{width:"100px",height:"48px",background:LP.gray[800],borderRadius:"4px",children:(0,xn.jsxs)(lF,{textAlign:"center",children:[a.operations[0].amount," out of ",i.balance]})})]}),(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{marginBottom:"24px",address:a.sender.address}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:f}),(0,xn.jsx)(one,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:Bte(a.type,t)})})]})})})},qle=e=>{const{nft:t}=e,r=gne({SignPage:Vle,signPageExtraData:{nft:t},FormPage:qle,defaultFormPageProps:e,toOperation:Kle(t)}),n=vne(Kle(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=yne([r,n]),s=L$({mode:"onBlur",defaultValues:{quantity:1,...lne(e)}}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s;return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(_n,{marginBottom:"12px",children:(0,xn.jsx)(Hle,{nft:e.nft})}),(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"4px",color:LP.gray[450],size:"sm",children:"Owned:"}),(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-owned",size:"sm",children:t.balance})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.quantity,children:[(0,xn.jsx)($$,{children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(Ln,{marginRight:"8px",size:"md",children:"Quantity:"}),(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(W$,{width:"75px",children:(0,xn.jsx)(Z$,{width:"60px",color:"white","data-testid":"quantity-input",step:1,type:"number",...u("quantity",{required:"Quantity is required",max:{value:t.balance,message:`Max quantity is ${t.balance}`},min:{value:1,message:"Min quantity is 1"}})})}),(0,xn.jsxs)(lF,{"data-testid":"out-of-nft",children:["out of ",t.balance]})]})]})}),l.quantity&&(0,xn.jsx)(Ete,{"data-testid":"quantity-error",children:l.quantity.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:l.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,xn.jsx)(g4,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,xn.jsx)(Ete,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},Kle=e=>t=>({type:"fa2",sender:td(t.sender),recipient:td(t.recipient),contract:od(e.contract),tokenId:e.tokenId,amount:t.quantity.toString()}),Wle=({nft:e,ownerPkh:t})=>{var r;const n=kie(wd(e)),o=kie(e.displayUri),a=Xq(),{openWith:s}=(0,i.useContext)(EM),c=null===(r=_d(e))||void 0===r?void 0:r.startsWith("video/"),l=fd(e),u={border:"none",borderRadius:"8px",marginBottom:"20px"};return(0,xn.jsxs)(En,{children:[(0,xn.jsx)(B$,{width:"534px",height:"534px",background:LP.gray[800],children:(0,xn.jsxs)(F$,{padding:"24px",children:[(0,xn.jsx)(En,{position:"relative",width:"486px",height:"486px",children:c?(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(En,{position:"absolute",zIndex:1,width:"486px",height:"486px",children:(0,xn.jsx)(Nle(),{width:"100%",height:"100%",loop:!0,playing:!0,url:n})}),(0,xn.jsx)(TR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,filter:"blur(20px)",src:o})]}):(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(TR,{position:"absolute",zIndex:1,width:"486px",height:"486px",objectFit:"contain",alt:l,fallbackSrc:o,src:n}),(0,xn.jsx)(TR,{position:"absolute",zIndex:0,top:"0",width:"486px",height:"486px",objectFit:"contain",alt:l,"data-testid":"nft-image",fallbackSrc:o,filter:"blur(20px)",src:n})]})}),Number(e.balance)>1&&(0,xn.jsx)(lF,{position:"absolute",display:"inline",height:"24px",marginTop:"-38px",marginLeft:"16px",borderRadius:"100px",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance})]})}),(0,xn.jsx)($le,{nft:e}),l&&(0,xn.jsx)(Ln,{marginTop:"16px",marginBottom:"14px","data-testid":"nft-name",size:"lg",children:l}),e.metadata.description&&(0,xn.jsx)(lF,{color:LP.gray[400],"data-testid":"nft-description",size:"sm",children:e.metadata.description}),(0,xn.jsx)(Gn,{marginTop:"20px",onClick:()=>{s((0,xn.jsx)(qle,{nft:e,sender:a(t)}))},children:"Send"}),(0,xn.jsxs)(DF,{marginTop:"32px",allowMultiple:!0,children:[(0,xn.jsx)(Dle,{nft:e,style:u}),(0,xn.jsx)(Ule,{nft:e,style:u}),(0,xn.jsxs)(zF,{background:LP.gray[800],style:u,children:[(0,xn.jsxs)(BF,{paddingY:"16px",children:[(0,xn.jsx)(Ln,{flex:"1",textAlign:"left",size:"md",children:"JSON"}),(0,xn.jsx)(FF,{})]}),(0,xn.jsx)(qF,{children:(0,xn.jsx)(U$,{value:e})})]})]})]})},Gle=({ownerPkh:e,nft:t,onCloseDrawer:r})=>(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",paddingBottom:"22px",color:LP.gray[400],"data-testid":"nft-drawer-body",children:[(0,xn.jsx)(_ie,{address:td(e)}),(0,xn.jsx)(Xae,{onClose:r})]}),(0,xn.jsx)(Wle,{nft:t,ownerPkh:e})]}),Yle=()=>{const[e,t]=(0,i.useState)(null),{ownerPkh:r,nftId:n}=function(){let{matches:e}=i.useContext(YO),t=e[e.length-1];return t?t.params:{}}(),o=X3(),a=r&&(0,ts.get)(o,[r],[]).find((e=>dd(e)===n)),s=!!a,{isOpen:c,onOpen:l,onClose:u}=YR({defaultIsOpen:s}),{isOpen:d}=AM(),h=eT(),f=(0,i.useCallback)((()=>{t(null),u(),h("/home")}),[u,h]);(0,i.useEffect)((()=>{const e=e=>{"Escape"===e.key&&f()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[f]);const p=(0,i.useMemo)((()=>({selectedAccount:e,selectAccount:e=>{t(e),l()}})),[e,l]);return(0,xn.jsxs)(Oie.Provider,{value:p,children:[(0,xn.jsx)(Gae,{}),(0,xn.jsxs)(soe,{autoFocus:!1,blockScrollOnMount:!d,isOpen:c,onClose:f,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsxs)(hoe,{children:[s&&(0,xn.jsx)(uF,{children:(0,xn.jsx)(Gle,{nft:a,onCloseDrawer:f,ownerPkh:r})}),!s&&e&&(0,xn.jsxs)(uF,{overflow:"hidden",background:jie({account:e,radius:"350px",opacity:"35",mainBackgroundColor:"transparent",left:"300px",top:"-125px"}),children:[(0,xn.jsx)(Zae,{onClose:f}),(0,xn.jsx)(Mle,{account:e})]})]})]})]})},Zle=()=>(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Accounts"}),(0,xn.jsx)(_n,{flex:1,minHeight:1,children:(0,xn.jsxs)(_n,{flexDirection:"column",flex:1,marginRight:"12px",paddingBottom:"12px",children:[(0,xn.jsx)(qae,{}),(0,xn.jsx)(En,{flex:1,overflow:"hidden",borderRadius:"8px",children:(0,xn.jsx)(Yle,{})})]})})]}),Xle=(0,i.createContext)({selectedNFT:void 0,setSelectedNFT:e=>{}}),Jle=({nft:e})=>{const{selectedNFT:t,setSelectedNFT:r}=(0,i.useContext)(Xle),n=kie(xd(e)),o=kie(e.displayUri),a=e.metadata.name,s={width:"100%",minWidth:"242px",minHeight:"242px",objectFit:"contain",aspectRatio:"1",fallbackSrc:o,src:n},c=t&&dd(t)===dd(e)&&t.owner===e.owner;return(0,xn.jsx)(B$,{minWidth:"274px",borderRadius:"8px",cursor:"pointer","data-testid":"nft-card"+(c?"-selected":""),onClick:()=>r(e),children:(0,xn.jsxs)(F$,{padding:"16px",background:LP.gray[900],border:"1px solid",borderColor:c?LP.orangeL:"transparent",borderRadius:"8px",_hover:{background:LP.gray[700],borderColor:LP.gray[500]},children:[(0,xn.jsx)(Sn,{children:(0,xn.jsxs)(En,{position:"relative",width:"100%",children:[(0,xn.jsx)(TR,{...s,zIndex:2,opacity:"0"}),(0,xn.jsx)(TR,{...s,position:"absolute",zIndex:0,top:"0",filter:"blur(20px)"}),(0,xn.jsx)(TR,{...s,position:"absolute",zIndex:1,top:"0","data-testid":"nft-image"})]})}),Number(e.balance)>1&&(0,xn.jsx)(lF,{position:"absolute",display:"inline",height:"24px",marginTop:"-36px",marginLeft:"10px",paddingTop:"1px",fontSize:"14px",borderRadius:"full",backgroundColor:"rgba(33, 33, 33, 0.75)","data-testid":"nft-owned-count",paddingX:"8px",children:"x"+e.balance}),(0,xn.jsx)(En,{overflow:"hidden","data-testid":"nft-card-name",children:(0,xn.jsx)(Ln,{overflow:"hidden",marginTop:"15px",marginBottom:"8px",fontSize:"sm",whiteSpace:"nowrap",textOverflow:"ellipsis",children:a})}),(0,xn.jsx)(_ie,{address:td(e.owner)})]})})},Qle=({nftsByOwner:e})=>{const t=Object.entries(e).flatMap((([e,t])=>(t||[]).map((t=>({owner:e,...t})))));let r="repeat(auto-fit, minmax(min(100%/2, max(274px, 100%/7)), 1fr))";return t.length<3&&(r=`repeat(auto-fit, min(100% / ${t.length} - 16px, 450px))`),(0,xn.jsx)(Cae,{gridTemplateColumns:r,marginBottom:"16px",minChildWidth:"340px",spacing:"16px",children:Eie(t).map((e=>(0,xn.jsx)(Jle,{nft:e},`${e.owner}:${dd(e)}`)))})};function eue(e={}){const{timeout:t=300,preventDefault:r=(()=>!0)}=e,[n,o]=(0,i.useState)([]),a=(0,i.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)};return(0,i.useEffect)((()=>s),[]),function(e){return i=>{if("Backspace"===i.key){const e=[...n];return e.pop(),void o(e)}if(function(e){const{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(i)){const c=n.concat(i.key);r(i)&&(i.preventDefault(),i.stopPropagation()),o(c),e(c.join("")),s(),a.current=setTimeout((()=>{o([]),a.current=null}),t)}}}}function tue(e,t){var r;const n=e.target;if(n){if(!rue(n).contains(n))return!1}return!(null==(r=t.current)?void 0:r.contains(n))}function rue(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var[nue,iue,oue,aue]=SF(),[sue,cue]=Nn({strict:!1,name:"MenuContext"});function lue(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function uue(e){return lue(e).activeElement===e}function due(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:a=!0,isLazy:s,isOpen:c,defaultIsOpen:l,onClose:u,onOpen:d,placement:h="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...g}=e,v=(0,i.useRef)(null),y=(0,i.useRef)(null),b=oue(),w=(0,i.useCallback)((()=>{requestAnimationFrame((()=>{var e;null==(e=v.current)||e.focus({preventScroll:!1})}))}),[]),x=(0,i.useCallback)((()=>{const e=setTimeout((()=>{var e;if(o)null==(e=o.current)||e.focus();else{const e=b.firstEnabled();e&&C(e.index)}}));L.current.add(e)}),[b,o]),_=(0,i.useCallback)((()=>{const e=setTimeout((()=>{const e=b.lastEnabled();e&&C(e.index)}));L.current.add(e)}),[b]),S=(0,i.useCallback)((()=>{null==d||d(),a?x():w()}),[a,x,w,d]),{isOpen:k,onOpen:E,onClose:A,onToggle:P}=GV({isOpen:c,defaultIsOpen:l,onClose:u,onOpen:S});!function(e){const{ref:t,handler:r,enabled:n=!0}=e,o=kb(r),a=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,i.useEffect)((()=>{if(!n)return;const e=e=>{tue(e,t)&&(a.isPointerDown=!0)},i=e=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&r&&tue(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&tue(e,t)&&(a.isPointerDown=!1,o(e))},c=rue(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",i,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",s,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",i,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",s,!0)}}),[r,t,o,a,n])}({enabled:k&&n,ref:v,handler:e=>{var t;(null==(t=y.current)?void 0:t.contains(e.target))||A()}});const O=KV({...g,enabled:k||m,placement:h,direction:p}),[T,C]=(0,i.useState)(-1);Eb((()=>{k||C(-1)}),[k]),Dre(v,{focusRef:y,visible:k,shouldFocus:!0});const j=Rre({isOpen:k,ref:v}),[R,I]=function(e,...t){const r=(0,i.useId)(),n=e||r;return(0,i.useMemo)((()=>t.map((e=>`${e}-${n}`))),[n,t])}(t,"menu-button","menu-list"),M=(0,i.useCallback)((()=>{E(),w()}),[E,w]),L=(0,i.useRef)(new Set([]));(0,i.useEffect)((()=>{const e=L.current;return()=>{e.forEach((e=>clearTimeout(e))),e.clear()}}),[]);const N=(0,i.useCallback)((()=>{E(),x()}),[x,E]),D=(0,i.useCallback)((()=>{E(),_()}),[E,_]),z=(0,i.useCallback)((()=>{var e,t;const r=lue(v.current),n=null==(e=v.current)?void 0:e.contains(r.activeElement);if(!(k&&!n))return;const i=null==(t=b.item(T))?void 0:t.node;null==i||i.focus({preventScroll:!0})}),[k,T,b]),B=(0,i.useRef)(null);return{openAndFocusMenu:M,openAndFocusFirstItem:N,openAndFocusLastItem:D,onTransitionEnd:z,unstable__animationState:j,descendants:b,popper:O,buttonId:R,menuId:I,forceUpdate:O.forceUpdate,orientation:"vertical",isOpen:k,onToggle:P,onOpen:E,onClose:A,menuRef:v,buttonRef:y,focusedIndex:T,closeOnSelect:r,closeOnBlur:n,autoSelect:a,setFocusedIndex:C,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:B}}function hue(e){var t;return function(e){var t;if(!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e))return!1;const r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function fue(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:a,onFocus:s,isDisabled:c,isFocusable:l,closeOnSelect:u,type:d,...h}=e,f=cue(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:g,onClose:v,menuRef:y,isOpen:b,menuId:w,rafId:x}=f,_=(0,i.useRef)(null),S=`${w}-menuitem-${(0,i.useId)()}`,{index:k,register:E}=aue({disabled:c&&!l}),A=(0,i.useCallback)((e=>{null==r||r(e),c||p(k)}),[p,k,c,r]),P=(0,i.useCallback)((e=>{null==n||n(e),_.current&&!uue(_.current)&&A(e)}),[A,n]),O=(0,i.useCallback)((e=>{null==o||o(e),c||p(-1)}),[p,c,o]),T=(0,i.useCallback)((e=>{null==a||a(e),hue(e.currentTarget)&&(null!=u?u:g)&&v()}),[v,a,g,u]),C=(0,i.useCallback)((e=>{null==s||s(e),p(k)}),[p,s,k]),j=k===m,R=c&&!l;Eb((()=>{if(b)return j&&!R&&_.current?(x.current&&cancelAnimationFrame(x.current),x.current=requestAnimationFrame((()=>{var e;null==(e=_.current)||e.focus({preventScroll:!0}),x.current=null}))):y.current&&!uue(y.current)&&y.current.focus({preventScroll:!0}),()=>{x.current&&cancelAnimationFrame(x.current)}}),[j,R,y,b]);const I=Qae({onClick:T,onFocus:C,onMouseEnter:A,onMouseMove:P,onMouseLeave:O,ref:Kn(E,_,t),isDisabled:c,isFocusable:l});return{...h,...I,type:null!=d?d:I.type,id:S,role:"menuitem",tabIndex:j?0:-1}}var[pue,mue]=Nn({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),gue=e=>{const{children:t}=e,r=Mn("Menu",e),n=ft(e),{direction:o}=On(),{descendants:a,...s}=due({...n,direction:o}),c=(0,i.useMemo)((()=>s),[s]),{isOpen:l,onClose:u,forceUpdate:d}=c;return(0,xn.jsx)(nue,{value:a,children:(0,xn.jsx)(sue,{value:c,children:(0,xn.jsx)(pue,{value:r,children:x(t,{isOpen:l,onClose:u,forceUpdate:d})})})})};gue.displayName="Menu";var vue=v(((e,t)=>{const r=mue();return(0,xn.jsx)(wn.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})})),yue=v(((e,t)=>{const{children:r,as:n,...o}=e,a=function(e={},t=null){const r=cue(),{onToggle:n,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=r,c=(0,i.useCallback)((e=>{const t=e.key,r={Enter:a,ArrowDown:a,ArrowUp:s}[t];r&&(e.preventDefault(),e.stopPropagation(),r(e))}),[a,s]);return{...e,ref:Kn(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":S(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:E(e.onClick,n),onKeyDown:E(e.onKeyDown,c)}}(o,t),s=n||vue;return(0,xn.jsx)(s,{...a,className:y("chakra-menu__menu-button",e.className),children:(0,xn.jsx)(wn.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})}));yue.displayName="MenuButton";var bue={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},wue=wn(FA.div),xue=v((function(e,t){var r,n;const{rootProps:o,motionProps:a,...s}=e,{isOpen:c,onTransitionEnd:l,unstable__animationState:u}=cue(),d=function(e={},t=null){const r=cue();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:n,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:c,menuId:l,isLazy:u,lazyBehavior:d,unstable__animationState:h}=r,f=iue(),p=eue({preventDefault:e=>" "!==e.key&&hue(e.target)}),m=(0,i.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=e.key,r={Tab:e=>e.preventDefault(),Escape:c,ArrowDown:()=>{const e=f.nextEnabled(n);e&&o(e.index)},ArrowUp:()=>{const e=f.prevEnabled(n);e&&o(e.index)}},i=r[t];if(i)return e.preventDefault(),void i(e);const a=p((e=>{const t=function(e,t,r,n){if(null==t)return n;if(!n)return e.find((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));const i=e.filter((e=>r(e).toLowerCase().startsWith(t.toLowerCase())));if(i.length>0){let t;return i.includes(n)?(t=i.indexOf(n)+1,t===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return n}(f.values(),e,(e=>{var t,r;return null!=(r=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?r:""}),f.item(n));if(t){const e=f.indexOf(t.node);o(e)}}));hue(e.target)&&a(e)}),[f,n,p,c,o]),g=(0,i.useRef)(!1);s&&(g.current=!0);const v=Bre({wasSelected:g.current,enabled:u,mode:d,isSelected:h.present});return{...e,ref:Kn(a,t),children:v?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:E(e.onKeyDown,m)}}(s,t),h=function(e={}){const{popper:t,isOpen:r}=cue();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}(o),f=mue();return(0,xn.jsx)(wn.div,{...h,__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=f.list)?void 0:r.zIndex},children:(0,xn.jsx)(wue,{variants:bue,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...f.list},...a,className:y("chakra-menu__menu-list",d.className),...d,onUpdate:l,onAnimationComplete:A(u.onComplete,d.onAnimationComplete)})})}));xue.displayName="MenuList";var _ue=v(((e,t)=>{const r=mue();return(0,xn.jsx)(wn.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})}));_ue.displayName="MenuCommand";var Sue=v(((e,t)=>{const{type:r,...n}=e,o=mue(),a=n.as||r?null!=r?r:void 0:"button",s=(0,i.useMemo)((()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item})),[o.item]);return(0,xn.jsx)(wn.button,{ref:t,type:a,...n,__css:s})})),kue=e=>{const{className:t,children:r,...n}=e,o=mue(),a=i.Children.only(r),s=(0,i.isValidElement)(a)?(0,i.cloneElement)(a,{focusable:"false","aria-hidden":!0,className:y("chakra-menu__icon",a.props.className)}):null,c=y("chakra-menu__icon-wrapper",t);return(0,xn.jsx)(wn.span,{className:c,...n,__css:o.icon,children:s})};kue.displayName="MenuIcon";var Eue=v(((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:i,commandSpacing:o="0.75rem",children:a,...s}=e,c=fue(s,t),l=r||i?(0,xn.jsx)("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return(0,xn.jsxs)(Sue,{...c,className:y("chakra-menu__menuitem",c.className),children:[r&&(0,xn.jsx)(kue,{fontSize:"0.8em",marginEnd:n,children:r}),l,i&&(0,xn.jsx)(_ue,{marginStart:o,children:i})]})}));Eue.displayName="MenuItem";const Aue=({accounts:e,onSelect:t})=>(0,xn.jsx)(xue,{zIndex:"docked",overflowY:"scroll",maxHeight:"300px",padding:0,background:LP.gray[900],children:e.map((e=>(0,xn.jsx)(Eue,{width:"100%",minHeight:"48px",padding:"5px",background:LP.gray[700],"aria-label":e.label,onClick:()=>{t(e)},value:e.address.pkh,children:(0,xn.jsx)(d4,{width:"370px",height:"40px",padding:"5px",background:LP.gray[700],borderRadius:"4px",_hover:{background:LP.gray[500]},cursor:"pointer",address:e.address})},e.address.pkh)))}),Pue=()=>{const e=Wq(),[t,r]=CT(),n=t.getAll("accounts"),i=e.filter((e=>n.includes(e.address.pkh))),o=(0,ts.differenceBy)(e,i,(e=>e.address.pkh)),a=i.length===e.length;return{selectedAccounts:0===i.length?e:i,accountsFilter:(0,xn.jsxs)(Sn,{children:[(0,xn.jsx)(En,{alignSelf:"flex-start",children:(0,xn.jsxs)(gue,{children:[(0,xn.jsx)(yue,{as:Gn,maxHeight:"26px",paddingLeft:0,fontWeight:"normal",_hover:{bg:"none"},_active:{bg:"none"},"data-testid":"account-filter",isDisabled:a,marginY:"16px",rightIcon:(0,xn.jsx)(yae,{}),variant:"ghost",children:"Filter by Account"}),(0,xn.jsx)(Aue,{accounts:o,onSelect:e=>{r({...t,accounts:[...i,e].map((e=>e.address.pkh))})}})]})}),(0,xn.jsx)(kle,{width:"100%",children:i.map((e=>(0,xn.jsx)(_ie,{address:e.address,"data-testid":"account-pill",mode:{type:"removable",onRemove:()=>{r({...t,accounts:n.filter((t=>t!==e.address.pkh))})}}},e.address.pkh)))})]})}},Oue=()=>{const e=X3(),{isOpen:t}=AM(),{accountsFilter:r,selectedAccounts:n}=Pue(),[o,a]=(0,i.useState)(void 0);(0,i.useEffect)((()=>{const e=e=>{"Escape"===e.key&&a(void 0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[]);const s=(0,ts.pick)(e,n.map((e=>e.address.pkh))),c=(0,ts.sumBy)(Object.values(s).flat(),(e=>Number((null===e||void 0===e?void 0:e.balance)||0))),l=(0,ts.every)(s,(e=>!e||0===e.length));return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{subtitle:`(${c})`,title:"NFTs"}),r,l?(0,xn.jsx)(Ane,{size:"lg"}):(0,xn.jsxs)(Xle.Provider,{value:{setSelectedNFT:a,selectedNFT:o},children:[(0,xn.jsx)(En,{overflowY:"scroll",children:(0,xn.jsx)(Qle,{nftsByOwner:s})}),(0,xn.jsxs)(soe,{autoFocus:!1,blockScrollOnMount:!t,isOpen:!!o,onClose:()=>a(void 0),placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsx)(uF,{children:o&&(0,xn.jsx)(Gle,{nft:o,onCloseDrawer:()=>a(void 0),ownerPkh:o.owner})})})]})]})]})},Tue=()=>{const{accountsFilter:e,selectedAccounts:t}=Pue(),{operations:r,loadMore:n,hasMore:o,setAddresses:a,isLoading:s}=yle(t.map((e=>e.address.pkh))),c=t.map((e=>e.address.pkh)).join(",");(0,i.useEffect)((()=>{a(c.split(","))}),[a,c]);const l=(0,xn.jsx)(lF,{color:LP.gray[500],textAlign:"center",paddingY:"20px",children:"Loading..."});return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Operations"}),e,0===r.length&&s&&l,0===r.length&&!s&&(0,xn.jsx)(Ene,{size:"lg"}),r.length>0&&(0,xn.jsx)(En,{overflowY:"scroll",marginBottom:"20px",background:LP.gray[900],borderRadius:"8px",onScroll:async e=>{if(!o||s)return;const t=e.target;t.scrollHeight-t.scrollTop-t.clientHeight<100&&n()},paddingX:"20px",children:(0,xn.jsxs)(Gce.Provider,{value:{mode:"page"},children:[r.map(((e,t)=>{const n=t===r.length-1;return(0,xn.jsxs)(En,{height:"90px",marginBottom:n?"10px":0,paddingY:"20px",children:[(0,xn.jsx)(dle,{operation:e}),!n&&(0,xn.jsx)(En,{children:(0,xn.jsx)(jre,{marginTop:"20px"})})]},e.id)})),s&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{}),l]})]})})]})},Cue=()=>{const{data:e}=(0,Jn.useQuery)(Xte,(()=>Zte.getPeers())),t=Qte(),[r,n]=(0,i.useState)([]);return(0,i.useEffect)((()=>{(async()=>{const t=await Promise.all((e||[]).map((async e=>({...e,senderId:await kL(e.publicKey)}))));n(t)})()}),[e]),0===r.length?(0,xn.jsxs)(En,{children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(lF,{marginTop:"31px",color:LP.gray[400],size:"lg",children:"Your dApps will appear here"})]}):(0,xn.jsx)(jue,{peerInfos:r,removePeer:t})},jue=({peerInfos:e,removePeer:t})=>(0,xn.jsx)(En,{children:e.map((e=>(0,xn.jsxs)(i.Fragment,{children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(Rue,{onRemove:()=>t(e),peerInfo:e})]},e.name)))}),Rue=({peerInfo:e,onRemove:t})=>(0,xn.jsxs)(_n,{justifyContent:"space-between",height:"106px","data-testid":"peer-row",paddingY:"30px",children:[(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(hF,{width:"48px",marginRight:"16px",ratio:1,children:(0,xn.jsx)(TR,{width:"100%",src:e.icon})}),(0,xn.jsxs)(Sn,{alignItems:"flex-start",flexDirection:"column",children:[(0,xn.jsx)(Ln,{marginBottom:"6px",size:"md",children:e.name}),(0,xn.jsx)(Iue,{peerInfo:e})]})]}),(0,xn.jsx)(Sn,{children:(0,xn.jsx)(_4,{"aria-label":"Remove Peer",icon:(0,xn.jsx)(jR,{}),onClick:t,size:"xs",variant:"circle"})})]}),Iue=({peerInfo:e})=>{const t=(e=>{const t=UR((e=>e.beacon));return t[e]})(e.senderId);return t?(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(_ie,{marginRight:"10px",address:td(t.accountPkh)}),(0,xn.jsx)(jre,{marginRight:"10px",orientation:"vertical"}),(0,xn.jsx)(lF,{marginTop:"2px",marginRight:"4px",color:LP.gray[450],fontWeight:650,size:"sm",children:"Network:"}),(0,xn.jsx)(lF,{marginTop:"2px",color:LP.white,"data-testid":"dapp-connection-network",size:"sm",children:(0,ts.capitalize)(t.networkType)})]}):null},Mue=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),{isOpen:n}=AM();return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(eoe,{left:"dApps",isSelected:e,onClick:r}),(0,xn.jsxs)(soe,{autoFocus:!1,blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Zae,{onClose:t}),(0,xn.jsx)(Lue,{})]})})]})]})},Lue=()=>{const e=ere();return(0,xn.jsxs)(En,{children:[(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"space-between",height:24,children:(0,xn.jsx)(Ln,{children:"dApps"})}),(0,xn.jsx)(Gn,{onClick:()=>navigator.clipboard.readText().then((t=>{e(t)})),children:"Connect with Pairing Request"}),(0,xn.jsx)(lF,{marginTop:"16px",marginBottom:"32px",color:"text.dark",children:"or open a deeplink from inside the dApp..."}),(0,xn.jsx)(Cue,{})]})};function Nue(e){return lR({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]})(e)}const Due=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),{isOpen:n}=AM();return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(eoe,{left:"Error Logs",isSelected:e,onClick:r}),(0,xn.jsxs)(soe,{blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Zae,{onClose:t}),(0,xn.jsx)(zue,{})]})})]})]})},zue=()=>{const e=[...UR((e=>e.errors))].reverse(),t=Ei();return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",height:"50px",marginBottom:"20px",children:[(0,xn.jsx)(Ln,{size:"xl",children:"Error Logs"}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)("a",{download:"UmamiErrorLogs.json",href:`data:application/json;charset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,children:(0,xn.jsx)(Gn,{variant:"tertiary",children:"Download error logs"})}),(0,xn.jsx)(Gn,{marginLeft:"8px",onClick:()=>{t(Yd.actions.reset())},variant:"warning",children:"Clear All"})]})]}),e.map((e=>(0,xn.jsx)(Bue,{errorLog:e},pa())))]})},Bue=({errorLog:e})=>(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(jre,{marginY:1}),(0,xn.jsx)(_n,{justifyContent:"space-between",paddingY:3,children:(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(qA,{as:Nue,marginTop:"1px",marginRight:2}),(0,xn.jsxs)(_n,{flexDirection:"column",children:[(0,xn.jsx)(Ln,{wordBreak:"break-all",size:"sm",children:e.description}),(0,xn.jsx)(lF,{color:LP.gray[400],size:"sm",children:e.timestamp})]})]})})]});function Fue(e={}){const{onChange:t,value:r,defaultValue:n,name:o,isDisabled:a,isFocusable:s,isNative:c,...l}=e,[u,d]=(0,i.useState)(n||""),h="undefined"!==typeof r,f=h?r:u,p=(0,i.useRef)(null),m=(0,i.useCallback)((()=>{const e=p.current;if(!e)return;let t="input:not(:disabled):checked";const r=e.querySelector(t);if(r)return void r.focus();t="input:not(:disabled)";const n=e.querySelector(t);null==n||n.focus()}),[]),g=(0,i.useId)(),v=o||`radio-${g}`,y=(0,i.useCallback)((e=>{const r=function(e){return e&&b(e)&&b(e.target)}(e)?e.target.value:e;h||d(r),null==t||t(String(r))}),[t,h]);return{getRootProps:(0,i.useCallback)(((e={},t=null)=>({...e,ref:Kn(t,p),role:"radiogroup"})),[]),getRadioProps:(0,i.useCallback)(((e={},t=null)=>{const r=c?"checked":"isChecked";return{...e,ref:t,name:v,[r]:null!=f?e.value===f:void 0,onChange(e){y(e)},"data-radiogroup":!0}}),[c,v,y,f]),name:v,ref:p,focus:m,setValue:d,value:f,onChange:y,isDisabled:a,isFocusable:s,htmlProps:l}}var[Uue,$ue]=Nn({name:"RadioGroupContext",strict:!1}),Hue=v(((e,t)=>{const{colorScheme:r,size:n,variant:o,children:a,className:s,isDisabled:c,isFocusable:l,...u}=e,{value:d,onChange:h,getRootProps:f,name:p,htmlProps:m}=Fue(u),g=(0,i.useMemo)((()=>({name:p,size:n,onChange:h,colorScheme:r,value:d,variant:o,isDisabled:c,isFocusable:l})),[p,n,h,r,d,o,c,l]);return(0,xn.jsx)(Uue,{value:g,children:(0,xn.jsx)(wn.div,{...f(m,t),className:y("chakra-radio-group",s),children:a})})}));Hue.displayName="RadioGroup";var Vue={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function que(e){e.preventDefault(),e.stopPropagation()}var Kue=v(((e,t)=>{var r;const n=$ue(),{onChange:o,value:a}=e,s=Mn("Radio",{...n,...e}),c=ft(e),{spacing:l="0.5rem",children:u,isDisabled:d=(null==n?void 0:n.isDisabled),isFocusable:h=(null==n?void 0:n.isFocusable),inputProps:f,...p}=c;let m=e.isChecked;null!=(null==n?void 0:n.value)&&null!=a&&(m=n.value===a);let g=o;(null==n?void 0:n.onChange)&&null!=a&&(g=A(n.onChange,o));const v=null!=(r=null==e?void 0:e.name)?r:null==n?void 0:n.name,{getInputProps:y,getCheckboxProps:b,getLabelProps:w,getRootProps:x,htmlProps:_}=function(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:o,isReadOnly:a,isRequired:s,onChange:c,isInvalid:l,name:u,value:d,id:h,"data-radiogroup":f,"aria-describedby":p,...m}=e,g=`radio-${(0,i.useId)()}`,v=YF(),y=$ue();let b=!v||y||f?g:v.id;b=null!=h?h:b;const w=null!=o?o:null==v?void 0:v.isDisabled,x=null!=a?a:null==v?void 0:v.isReadOnly,_=null!=s?s:null==v?void 0:v.isRequired,A=null!=l?l:null==v?void 0:v.isInvalid,[P,O]=(0,i.useState)(!1),[T,C]=(0,i.useState)(!1),[j,R]=(0,i.useState)(!1),[I,M]=(0,i.useState)(!1),[L,N]=(0,i.useState)(Boolean(t)),D="undefined"!==typeof r,z=D?r:L;(0,i.useEffect)((()=>tae(O)),[]);const B=(0,i.useCallback)((e=>{x||w?e.preventDefault():(D||N(e.target.checked),null==c||c(e))}),[D,w,x,c]),F=(0,i.useCallback)((e=>{" "===e.key&&M(!0)}),[M]),U=(0,i.useCallback)((e=>{" "===e.key&&M(!1)}),[M]),$=(0,i.useCallback)(((e={},t=null)=>({...e,ref:t,"data-active":S(I),"data-hover":S(j),"data-disabled":S(w),"data-invalid":S(A),"data-checked":S(z),"data-focus":S(T),"data-focus-visible":S(T&&P),"data-readonly":S(x),"aria-hidden":!0,onMouseDown:E(e.onMouseDown,(()=>M(!0))),onMouseUp:E(e.onMouseUp,(()=>M(!1))),onMouseEnter:E(e.onMouseEnter,(()=>R(!0))),onMouseLeave:E(e.onMouseLeave,(()=>R(!1)))})),[I,j,w,A,z,T,x,P]),{onFocus:H,onBlur:V}=null!=v?v:{},q=(0,i.useCallback)(((e={},t=null)=>{const r=w&&!n;return{...e,id:b,ref:t,type:"radio",name:u,value:d,onChange:E(e.onChange,B),onBlur:E(V,e.onBlur,(()=>C(!1))),onFocus:E(H,e.onFocus,(()=>C(!0))),onKeyDown:E(e.onKeyDown,F),onKeyUp:E(e.onKeyUp,U),checked:z,disabled:r,readOnly:x,required:_,"aria-invalid":k(A),"aria-disabled":k(r),"aria-required":k(_),"data-readonly":S(x),"aria-describedby":p,style:Vue}}),[w,n,b,u,d,B,V,H,F,U,z,x,_,A,p]);return{state:{isInvalid:A,isFocused:T,isChecked:z,isActive:I,isHovered:j,isDisabled:w,isReadOnly:x,isRequired:_},getCheckboxProps:$,getRadioProps:$,getInputProps:q,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:E(e.onMouseDown,que),"data-disabled":S(w),"data-checked":S(z),"data-invalid":S(A)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":S(w),"data-checked":S(z),"data-invalid":S(A)}),htmlProps:m}}({...p,isChecked:m,isFocusable:h,isDisabled:d,onChange:g,name:v}),[P,O]=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(_,rt),T=b(O),C=y(f,t),j=w(),R=Object.assign({},P,x()),I={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},M={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},L={userSelect:"none",marginStart:l,...s.label};return(0,xn.jsxs)(wn.label,{className:"chakra-radio",...R,__css:I,children:[(0,xn.jsx)("input",{className:"chakra-radio__input",...C}),(0,xn.jsx)(wn.span,{className:"chakra-radio__control",...T,__css:M}),u&&(0,xn.jsx)(wn.span,{className:"chakra-radio__label",...j,__css:L,children:u})]})}));Kue.displayName="Radio";const Wue=({network:e})=>{const t=e?"edit":"create",{onClose:r}=(0,i.useContext)(EM),n=Ei(),o=$3(),{formState:{errors:a,isValid:s},register:c,handleSubmit:l}=L$({mode:"onBlur",defaultValues:e});return(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{onSubmit:l((e=>{n(th.upsertNetwork(e)),r()})),children:[(0,xn.jsxs)(sF,{textAlign:"center",children:["edit"===t?"Edit":"Add"," Network",(0,xn.jsx)(aF,{})]}),(0,xn.jsxs)(uF,{children:["create"===t&&(0,xn.jsxs)(ZF,{marginTop:"32px",marginBottom:"24px",isInvalid:!!a.name,children:[(0,xn.jsx)($$,{children:"Name"}),(0,xn.jsx)(Z$,{placeholder:"mainnet",...c("name",{required:"Name is required",validate:e=>{if(o.find((t=>t.name===e)))return"Network with this name already exists"}})}),a.name&&(0,xn.jsx)(Ete,{children:a.name.message})]}),(0,xn.jsxs)(ZF,{marginBottom:"24px",isInvalid:!!a.rpcUrl,children:[(0,xn.jsx)($$,{children:"RPC URL"}),(0,xn.jsx)(Z$,{placeholder:"https://prod.tcinfra.net/rpc/mainnet",...c("rpcUrl",{required:"RPC URL is required"})}),a.rpcUrl&&(0,xn.jsx)(Ete,{children:a.rpcUrl.message})]}),(0,xn.jsxs)(ZF,{marginBottom:"24px",isInvalid:!!a.tzktApiUrl,children:[(0,xn.jsx)($$,{children:"Tzkt API URL"}),(0,xn.jsx)(Z$,{placeholder:"https://api.ghostnet.tzkt.io",...c("tzktApiUrl",{required:"Tzkt API URL is required"})}),a.tzktApiUrl&&(0,xn.jsx)(Ete,{children:a.tzktApiUrl.message})]}),(0,xn.jsxs)(ZF,{marginBottom:"24px",isInvalid:!!a.tzktExplorerUrl,children:[(0,xn.jsx)($$,{children:"Tzkt Explorer URL"}),(0,xn.jsx)(Z$,{placeholder:"https://ghostnet.tzkt.io",...c("tzktExplorerUrl",{required:"Tzkt Explorer URL is required"})}),a.tzktExplorerUrl&&(0,xn.jsx)(Ete,{children:a.tzktExplorerUrl.message})]}),(0,xn.jsxs)(ZF,{children:[(0,xn.jsx)($$,{children:"Buy Tez URL"}),(0,xn.jsx)(Z$,{placeholder:"https://faucet.ghostnet.teztnets.xyz",...c("buyTezUrl")})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!s,onClick:()=>{},type:"submit",children:"edit"===t?"Save changes":"Add network"})})]})]})})},Gue=()=>{const{openWith:e}=(0,i.useContext)(EM),t=U3(),r=H3(),n=$3(),o=FR();return(0,xn.jsxs)(_n,{flexDirection:"column",children:[(0,xn.jsxs)(Sn,{justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{children:"Network Settings"}),(0,xn.jsxs)(Gn,{paddingRight:"0",onClick:()=>e((0,xn.jsx)(Wue,{})),variant:"CTAWithIcon",children:[(0,xn.jsx)(lF,{size:"sm",children:"Add Network"}),(0,xn.jsx)(wR,{width:"18px",height:"18px",marginLeft:"4px",stroke:"currentcolor"})]})]}),(0,xn.jsx)(Hue,{marginTop:"60px",onChange:r,value:t.name,children:(0,xn.jsx)(moe,{children:n.map((t=>(0,xn.jsxs)(i.Fragment,{children:[(0,xn.jsx)(jre,{borderColor:LP.gray[700]}),(0,xn.jsxs)(_n,{justifyContent:"space-between","data-testid":`network-${t.name}`,children:[(0,xn.jsx)(Kue,{height:"100px",value:t.name,variant:"primary",children:(0,xn.jsxs)(_n,{flexDirection:"column",marginLeft:"16px",children:[(0,xn.jsx)(Ln,{marginBottom:"4px",size:"sm",children:t.name}),(0,xn.jsx)(lF,{color:LP.gray[400],children:t.rpcUrl})]})}),!Dd(t)&&(0,xn.jsx)(Sn,{"data-testid":"popover-menu",children:(0,xn.jsxs)(rne,{children:[(0,xn.jsxs)(Gn,{onClick:()=>e((0,xn.jsx)(Wue,{network:t})),variant:"popover",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Edit"}),(0,xn.jsx)(bR,{stroke:"inherit"})]}),(0,xn.jsx)(jre,{marginTop:"4px"}),(0,xn.jsxs)(Gn,{onClick:()=>(e=>{o(th.removeNetwork(e))})(t),variant:"popover",children:[(0,xn.jsx)(lF,{marginRight:"4px",children:"Remove"}),(0,xn.jsx)(jR,{stroke:"inherit"})]})]})})]})]},t.name)))})})]})},Yue=()=>{const{isOpen:e,onClose:t,onOpen:r}=YR(),{isOpen:n}=(0,i.useContext)(EM);return(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(eoe,{left:"Network Settings",isSelected:e,onClick:r}),(0,xn.jsxs)(soe,{blockScrollOnMount:!n,isOpen:e,onClose:t,placement:"right",children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(hoe,{children:(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(Zae,{onClose:t}),(0,xn.jsx)(Gue,{})]})})]})]})},Zue="2.0.0-beta1",Xue=()=>{const{onClose:e}=(0,i.useContext)(EM),t=L$({mode:"onBlur"}),r=lz(),n=FR(),{handleAsyncAction:o,isLoading:a}=Ste(),{handleSubmit:s,formState:{isValid:c,errors:l},getValues:u}=t;return(0,xn.jsx)(OU,{...t,children:(0,xn.jsx)(oF,{background:LP.gray[700],"data-testid":"change-password-modal",children:(0,xn.jsxs)("form",{onSubmit:s((async({currentPassword:t,newPassword:i,newPasswordConfirmation:a})=>{t!==i&&i===a&&o((async()=>{await n(Vc({currentPassword:t,newPassword:i})).unwrap(),r({description:"Password updated",status:"success"}),e()}))})),children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{textAlign:"center",children:(0,xn.jsx)(Ln,{children:"Change Password"})}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{marginTop:"32px",isInvalid:!!l.currentPassword,children:[(0,xn.jsx)(Ate,{"data-testid":"current-password",inputName:"currentPassword",label:"Current Password",placeholder:"Enter your current password",required:"Current password is required"}),l.currentPassword&&(0,xn.jsx)(Ete,{"data-testid":"current-password-error",children:l.currentPassword.message})]}),(0,xn.jsxs)(ZF,{isInvalid:!!l.newPassword,marginY:6,children:[(0,xn.jsx)(Ate,{"data-testid":"new-password",inputName:"newPassword",label:"New Password",placeholder:"Enter new password",required:"New password is required",validate:e=>u("currentPassword")!==e||"Cannot be the same as old password"}),l.newPassword&&(0,xn.jsx)(Ete,{"data-testid":"new-password-error",children:l.newPassword.message})]}),(0,xn.jsxs)(ZF,{marginTop:3,isInvalid:!!l.newPasswordConfirmation,children:[(0,xn.jsx)(Ate,{"data-testid":"new-password-confirmation",inputName:"newPasswordConfirmation",label:"Confirm New Password",placeholder:"Confirm new password",required:"Confirmation is required",validate:e=>u("newPassword")===e||"Your new passwords do no match"}),l.newPasswordConfirmation&&(0,xn.jsx)(Ete,{"data-testid":"new-password-confirmation-error",children:l.newPasswordConfirmation.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Gn,{width:"100%",isDisabled:!c,isLoading:a,size:"lg",type:"submit",children:"Update Password"})})]})})})},Jue="wasabi",Que=()=>{const e=()=>{localStorage.clear(),window.location.reload()},t=L$({mode:"onBlur"}),{register:r,handleSubmit:n,formState:{isValid:i,errors:o},getValues:a}=t;return(0,xn.jsx)(OU,{...t,children:(0,xn.jsxs)("form",{onSubmit:n((()=>{a("check")&&a("confirmationCode")===Jue&&e()})),children:[(0,xn.jsx)(aF,{}),(0,xn.jsx)(sF,{marginBottom:"10px",textAlign:"center",children:(0,xn.jsxs)(En,{children:[(0,xn.jsx)(zR,{width:10,height:10,marginBottom:5}),(0,xn.jsx)(Ln,{children:"Off-board Wallet"})]})}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(lF,{marginBottom:2,color:LP.gray[400],fontWeight:"bold",textAlign:"center",size:"sm",children:"This will permanently remove any data from this computer."}),(0,xn.jsxs)(lF,{color:LP.gray[400],textAlign:"center",size:"sm",children:["Please enter \xab ",Jue," \xbb to confirm. The accounts are still available to be imported in the future; in order to regain access to your accounts, please make sure that you keep the recovery phrase."]}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(jre,{borderColor:LP.gray[700],marginY:5}),(0,xn.jsx)(ZF,{isInvalid:!!o.check,children:(0,xn.jsx)(lae,{...r("check",{required:!0}),children:(0,xn.jsx)(lF,{marginLeft:2,fontWeight:"bold",children:"I have read the warning and I am certain I want to remove my private keys locally. I also made sure to keep my recovery phrase."})})}),(0,xn.jsx)(jre,{borderColor:LP.gray[700],marginY:5}),(0,xn.jsxs)(ZF,{isInvalid:!!o.confirmationCode,paddingY:5,children:[(0,xn.jsx)(Z$,{type:"text",...r("confirmationCode",{required:"Confirmation is required",validate:e=>e===Jue||"Confirmation code does not match"}),placeholder:"Enter code word to confirm"}),o.confirmationCode&&(0,xn.jsx)(Ete,{children:o.confirmationCode.message})]})]})]}),(0,xn.jsx)(rU,{padding:0,children:(0,xn.jsx)(Gn,{width:"100%",marginBottom:2,isDisabled:!i,size:"lg",type:"submit",variant:"warning",children:"Confirm"})})]})})},ede=()=>(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Settings"}),(0,xn.jsxs)(En,{overflowY:"scroll",children:[(0,xn.jsx)(En,{marginTop:"16px",children:(0,xn.jsx)(tde,{})}),(0,xn.jsx)(rde,{}),(0,xn.jsx)(ide,{}),(0,xn.jsx)(ode,{})]})]}),tde=()=>(0,xn.jsxs)(ade,{title:"General",children:[(0,xn.jsx)(Yue,{}),(0,xn.jsx)(Due,{})]}),rde=()=>null,nde=()=>{const e={version:Zue,"persist:accounts":localStorage.getItem("persist:accounts"),"persist:root":localStorage.getItem("persist:root")},t=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(e))}`,r=document.createElement("a");r.href=t,r.download="UmamiV2Backup.json",r.click()},ide=()=>(0,xn.jsx)(ade,{title:"Backup",children:(0,xn.jsx)(Qie,{isSelected:!1,onClick:nde,children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"space-between",children:[(0,xn.jsx)(Ln,{size:"sm",children:"Download backup file"}),(0,xn.jsx)(Gn,{onClick:nde,variant:"unstyled",children:(0,xn.jsx)(Fj,{cursor:"pointer"})})]})})}),ode=()=>{const{modalElement:e,onOpen:t}=(()=>{const{isOpen:e,onOpen:t,onClose:r}=YR();return{modalElement:(0,xn.jsxs)(fI,{isCentered:!0,isOpen:e,onClose:r,children:[(0,xn.jsx)(PI,{}),(0,xn.jsx)(oF,{background:LP.gray[900],children:(0,xn.jsx)(Que,{})})]}),onOpen:t}})(),{openWith:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(ade,{title:"Advanced Settings",children:[(0,xn.jsx)(Mue,{}),(0,xn.jsx)(eoe,{left:"Off-board Wallet",isSelected:!1,onClick:t}),(0,xn.jsx)(eoe,{left:"Change Password",isSelected:!1,onClick:()=>r((0,xn.jsx)(Xue,{}))}),e]})},ade=({title:e,children:t})=>(0,xn.jsx)(En,{marginTop:"8px",children:(0,xn.jsx)(_n,{children:(0,xn.jsxs)(En,{width:"550px",children:[(0,xn.jsx)(Ln,{marginBottom:"16px",size:"lg",children:e}),t]})})}),sde=({token:e,amount:t,...r})=>{const{contract:n}=e,i=bd(t,e),o=pd(e);return(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"start",width:"400px",padding:"15px",background:LP.gray[800],borderRadius:"4px","data-testid":"token-tile",...r,children:[(0,xn.jsx)(_n,{alignItems:"center",children:(0,xn.jsx)(hF,{width:"30px",height:"30px",marginRight:"12px",ratio:1,children:(0,xn.jsx)(CR,{padding:"6.25px",background:LP.gray[500],borderRadius:"4px",contract:n})})}),(0,xn.jsx)(l4,{number:i}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:o})]})},cde=e=>{const{mode:t,operations:r,fee:n,data:{token:i}}=e,{fee:o,operations:a,estimationFailed:s,isLoading:c,form:l,signer:u,reEstimate:d,onSign:h}=une(n,r,t),{amount:f,recipient:p}=a.operations[0];return(0,xn.jsx)(OU,{...l,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Ute,{...e,operationsType:a.type,signer:a.signer}),(0,xn.jsxs)(uF,{children:[(0,xn.jsx)(sde,{amount:f,token:i}),(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"end",marginTop:"12px",marginBottom:"24px",paddingX:"4px",children:(0,xn.jsx)(_n,{children:(0,xn.jsx)(Ite,{fee:o})})}),(0,xn.jsx)($$,{children:"From"}),(0,xn.jsx)(d4,{marginBottom:"24px",address:a.sender.address}),(0,xn.jsx)($$,{children:"To"}),(0,xn.jsx)(d4,{address:p}),(0,xn.jsx)(one,{isLoading:c,operationType:a.type,reEstimate:d,sender:a.sender})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(Pte,{isDisabled:s,isLoading:c,onSubmit:h,signer:u,text:Bte(a.type,t)})})]})})})},lde=e=>{const{token:t}=e,r=gne({SignPage:cde,signPageExtraData:{token:t},FormPage:lde,defaultFormPageProps:e,toOperation:ude(t)}),n=vne(ude(t)),{onFormSubmitActionHandlers:[i,o],isLoading:a}=yne([r,n]),s=L$({mode:"onBlur",defaultValues:lne(e)}),{formState:{isValid:c,errors:l},register:u,handleSubmit:d}=s,h=gd(t),f=yd(t.balance,h),p=hne(Number(h));return(0,xn.jsx)(OU,{...s,children:(0,xn.jsx)(oF,{children:(0,xn.jsxs)("form",{children:[(0,xn.jsx)(Lte,{}),(0,xn.jsxs)(uF,{children:[(0,xn.jsxs)(ZF,{isInvalid:!!l.prettyAmount,children:[(0,xn.jsx)($$,{children:"Amount"}),(0,xn.jsxs)(W$,{children:[(0,xn.jsx)(Z$,{isDisabled:a,step:p,type:"number",...u("prettyAmount",{required:"Amount is required",max:{value:f.toString(),message:`Max amount is ${f}`},validate:fne(Number(h))}),placeholder:p}),(0,xn.jsx)(eH,{paddingRight:"12px","data-testid":"token-symbol",children:pd(t)})]}),l.prettyAmount&&(0,xn.jsx)(Ete,{"data-testid":"amount-error",children:l.prettyAmount.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.sender,children:[(0,xn.jsx)(y4,{allowUnknown:!1,inputName:"sender",isDisabled:!0,label:"From"}),l.sender&&(0,xn.jsx)(Ete,{"data-testid":"from-error",children:l.sender.message})]}),(0,xn.jsxs)(ZF,{marginTop:"24px",isInvalid:!!l.recipient,children:[(0,xn.jsx)(g4,{allowUnknown:!0,inputName:"recipient",label:"To"}),l.recipient&&(0,xn.jsx)(Ete,{"data-testid":"recipient-error",children:l.recipient.message})]})]}),(0,xn.jsx)(rU,{children:(0,xn.jsx)(cne,{isLoading:a,isValid:c,onAddToBatch:d(o),onSingleSubmit:d(i)})})]})})})},ude=e=>t=>{const r={type:"fa2",sender:td(t.sender),recipient:td(t.recipient),contract:od(e.contract),tokenId:e.tokenId,amount:vd(e,t.prettyAmount)};return"fa2"===e.type?r:{...r,type:"fa1.2",tokenId:"0"}},dde=({account:e})=>{const{address:t,label:r}=e,n=o4(t);return(0,xn.jsxs)(_n,{alignItems:"center",height:"78px",background:jie({left:"-10px",top:"-10px",account:e,radius:"100px",mainBackgroundColor:LP.gray[800]}),borderTopRadius:"8px","data-testid":"header",paddingX:"30px",children:[(0,xn.jsx)(lq,{addressKind:n,identiconSize:35,size:"lg"}),(0,xn.jsxs)(_n,{justifyContent:"space-between",flex:1,children:[(0,xn.jsxs)(En,{marginLeft:"16px","data-testid":"account-identifier",children:[(0,xn.jsx)(Ln,{marginBottom:"4px",size:"md",children:r}),(0,xn.jsx)(lF,{color:LP.gray[300],size:"sm",children:Y3(t.pkh)})]}),(0,xn.jsx)(_n,{flexDirection:"column-reverse",children:(0,xn.jsx)(u4,{verticalAlign:"bottom",address:e.address.pkh})})]})]})},hde=({account:e,tokens:t})=>{const{openWith:r}=(0,i.useContext)(EM);return(0,xn.jsxs)(B$,{overflowX:"auto",marginBottom:"16px",borderBottomRadius:"8px",backgroundColor:LP.gray[900],children:[(0,xn.jsx)(dde,{account:e}),(0,xn.jsx)(pre,{paddingX:"30px",children:(0,xn.jsx)(vre,{children:(0,xn.jsx)(yre,{children:t.map(((n,i)=>{const o=i===t.length-1?"transparent":LP.gray[700];return(0,xn.jsxs)(bre,{"data-testid":"token-tile",children:[(0,xn.jsx)(wre,{width:"20%",minWidth:"240px",borderColor:o,paddingX:"0",children:(0,xn.jsxs)(_n,{alignItems:"center",children:[(0,xn.jsx)(CR,{display:"inline-block",width:"38px",contract:n.contract}),(0,xn.jsx)(Ln,{display:"inline-block",marginLeft:"16px",size:"sm",children:(0,xn.jsx)(ple,{token:n})})]})}),(0,xn.jsx)(wre,{width:"20%",minWidth:"200px",borderColor:o,paddingX:"0",children:(0,xn.jsx)(_ie,{address:od(n.contract)})}),(0,xn.jsx)(wre,{width:"15%",minWidth:"160px",borderColor:o,paddingX:"0",children:(0,xn.jsx)(Ln,{size:"sm",children:bd(n.balance,n,{showSymbol:!1})})}),(0,xn.jsx)(wre,{textAlign:"right",borderColor:o,paddingX:"0",children:(0,xn.jsx)(ine,{onClick:()=>{r((0,xn.jsx)(lde,{sender:e,token:n}))}})})]},dd(n))}))})})})]})},fde=()=>{const{accountsFilter:e,selectedAccounts:t}=Pue(),r=Q3(),n=t.map((e=>[e,r(e.address.pkh)])).filter((([,e])=>e.length>0));return(0,xn.jsxs)(_n,{flexDirection:"column",height:"100%",children:[(0,xn.jsx)(sie,{title:"Tokens"}),e,0===n.length?(0,xn.jsx)(Pne,{size:"lg"}):(0,xn.jsx)(En,{overflowY:"auto",children:n.map((([e,t])=>(0,xn.jsx)(hde,{account:e,tokens:t},e.address.pkh)))})]})},pde=({isCollapsed:e,...t})=>{const r=e?Zue:`Umami v${Zue}`;return(0,xn.jsx)(lF,{color:LP.gray[450],...t,children:r})},mde=({toggle:e,...t})=>(0,xn.jsx)(Sn,{width:"44px",height:"44px",marginRight:"-14px",borderRadius:"4px",_hover:{background:LP.gray[800]},cursor:"pointer","data-testid":"collapse-menu-button",onClick:e,...t,children:(0,xn.jsx)(Oj,{})}),gde=e=>{const t=U3();return(0,xn.jsx)(gR,{background:"white",borderRadius:"8px","data-testid":"maki-logo",fishColor:"mainnet"===t.name?"#F74F18":"black",...e})},vde=()=>{const e=U3(),t=$3(),r=H3(),{onOpen:n,onClose:o,isOpen:a}=YR();return(0,xn.jsxs)(Gre,{isOpen:a,onClose:o,onOpen:n,placement:"bottom-end",children:[(0,xn.jsx)(Yre,{children:(0,xn.jsxs)(Gn,{marginTop:"4px",color:LP.green,"data-testid":"network-selector",variant:"unstyled",children:[(0,ts.capitalize)(e.name),a?(0,xn.jsx)(Rj,{marginTop:"-2px",stroke:"currentcolor"}):(0,xn.jsx)(Cj,{marginTop:"-2px",stroke:"currentcolor"})]})}),(0,xn.jsx)(ene,{width:"100px",marginTop:"-10px",background:LP.gray[700],border:"1px solid",borderColor:LP.gray[500],children:(0,xn.jsx)(tne,{padding:"4px 12px",children:(0,xn.jsx)(_n,{flexDirection:"column",children:t.map(((n,a)=>(0,xn.jsxs)(i.Fragment,{children:[(0,xn.jsx)(Gn,{height:"34px",color:n.name===e.name?LP.green:LP.gray[300],fontSize:"14px",fontWeight:400,textAlign:"right",_hover:{color:LP.greenL},onClick:()=>{r(n.name),o()},variant:"unstyled",children:(0,ts.capitalize)(n.name)}),a{const[e,t]=(0,i.useState)(!1),r=window;(0,i.useEffect)((()=>{r&&r.electronAPI&&r.electronAPI.onAppUpdateDownloaded((e=>t(!0)))}),[r]);return e?(0,xn.jsx)(En,{marginTop:"24px",marginBottom:"6px",children:(0,xn.jsxs)(Gn,{justifyContent:"flex-start",width:"100%",height:"32px",paddingTop:"7px",paddingRight:"8px",paddingBottom:"7px",paddingLeft:"8px",color:LP.black,background:LP.green,_hover:{color:LP.black,background:LP.greenL},onClick:()=>{r&&r.electronAPI&&r.electronAPI.installAppUpdateAndQuit()},children:[(0,xn.jsx)(Jj,{}),(0,xn.jsx)(lF,{marginLeft:"4px",size:"sm",children:"Update Umami"})]})}):null},bde=()=>{const{isCollapsed:e,toggle:t}=(()=>{const[e,t]=(0,i.useState)(!1),r=(0,i.useCallback)((()=>{t((e=>!e))}),[]);return{isCollapsed:e,toggle:r}})(),r=(0,xn.jsx)(mde,{marginTop:e?0:"2px",marginRight:e?0:"-14px",toggle:t});return(0,xn.jsxs)(_n,{alignItems:e?"center":"normal",flexDirection:"column",width:e?"80px":"236px",padding:e?"30px 20px":"30px",background:LP.gray[900],"data-testid":"side-navbar"+(e?"-collapsed":""),children:[(0,xn.jsxs)(En,{children:[(0,xn.jsx)(_n,{alignItems:"center",justifyContent:"space-between",height:"30px",children:e?r:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(gde,{width:"38px",height:"38px"}),(0,xn.jsxs)(_n,{children:[(0,xn.jsx)(vde,{}),r]})]})}),(0,xn.jsx)(jre,{marginTop:"28px"})]}),(0,xn.jsxs)(_n,{justifyContent:"space-between",flexDirection:"column",flex:1,children:[(0,xn.jsxs)(En,{alignItems:e?"center":"normal",justifyContent:e?"space-around":"normal",display:e?"flex":"block",height:"100%",children:[!e&&(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(yde,{}),(0,xn.jsx)(xde,{})]}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(wde,{icon:(0,xn.jsx)(_j,{}),isCollapsed:e,label:"Accounts",to:"/home"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Dj,{}),isCollapsed:e,label:"NFTs",to:"/nfts"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(xR,{width:"24px",height:"24px"}),isCollapsed:e,label:"Operations",to:"/operations"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Ij,{}),isCollapsed:e,label:"Tokens",to:"/tokens"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Pj,{}),isCollapsed:e,label:"Batch",to:"/batch"})]})]}),(0,xn.jsxs)(En,{children:[(0,xn.jsx)(jre,{}),(0,xn.jsx)(wde,{marginTop:"22px",icon:(0,xn.jsx)(Ej,{}),isCollapsed:e,label:"Address Book",to:"/address-book"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(Qj,{}),isCollapsed:e,label:"Settings",to:"/settings"}),(0,xn.jsx)(wde,{icon:(0,xn.jsx)(eR,{}),isCollapsed:e,label:"Help",to:"/help"}),(0,xn.jsx)(pde,{marginTop:"24px",fontSize:"14px",textAlign:e?"center":"left",isCollapsed:e})]})]})]})},wde=({icon:e,label:t,to:r,isCollapsed:n,...i})=>{const o=JO().pathname.startsWith(r);return(0,xn.jsx)(PT,{to:r,children:(0,xn.jsxs)(_n,{alignItems:"center",justifyContent:"flex-start",width:n?"44px":"176px",marginBottom:"8px",padding:"10px",background:o?LP.gray[600]:"transparent",borderRadius:"4px",_hover:{background:o?LP.gray[600]:LP.gray[800]},cursor:"pointer",...i,children:[e,!n&&(0,xn.jsx)(lF,{marginLeft:"10px",size:"sm",children:t})]})})},xde=()=>{const e=r4(),[t]=Tne("(max-height: 900px)");return(0,xn.jsxs)(En,{marginTop:"24px",marginBottom:t?"30px":"100px","data-testid":"total-balance",children:[(0,xn.jsx)(lF,{marginBottom:"4px",size:"sm",children:"Balance"}),e&&(0,xn.jsx)(Tle,{balance:e.mutez,dollarBalance:e.usd})]})},_de=e=>(0,xn.jsxs)(_n,{height:"100vh",children:[(0,xn.jsx)(bde,{}),(0,xn.jsx)(En,{flex:1,overflowX:"hidden",height:"100%",background:"linear-gradient(180deg, rgba(0, 231, 182, 0.35) -41.53%, rgba(0, 231, 182, 0.00) 34.71%)",paddingX:6,children:e})]}),Sde=r.p+"static/media/accounts.5f47a2af4c8394165d1e.png",kde=r.p+"static/media/background_image.a833e862a22ad4910526.png",Ede=r.p+"static/media/batch.5ba4eb38fa8c4e1ed39b.png",Ade=r.p+"static/media/multisig.3ab2bbc3bda7df25ea83.png";var Pde=r(340);const Ode=({children:e})=>{const t={background:LP.gray[400],width:"10px",height:"10px",display:"inline-block",margin:"0 4px 60px 4px",borderRadius:"5px"};return(0,xn.jsx)(En,{backgroundImage:"linear-gradient(180deg, rgba(18, 18, 18, 0.00) 36.43%, rgba(18, 18, 18, 0.50) 53.65%, #121212 76.24%)",borderRightRadius:"30px",backgroundColor:"#323131",children:(0,xn.jsx)(Pde.ER,{autoPlay:!0,dynamicHeight:!1,infiniteLoop:!0,interval:5e3,renderIndicator:(e,r,n)=>r?(0,xn.jsx)("li",{style:{...t,background:"#00C39A",width:"24px"}}):(0,xn.jsx)("li",{onClick:e,onKeyDown:e,role:"button",style:t,tabIndex:0,value:n},n),showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:1e3,children:e})})},Tde=({item:e})=>(0,xn.jsx)(En,{height:"730px",paddingTop:"500px",paddingBottom:"35px",backgroundImage:e.image,backgroundSize:"cover",backgroundRepeat:"no-repeat","data-testid":`slide-${e.id}`,children:(0,xn.jsxs)(Sn,{flexDirection:"column",paddingBottom:"50px",children:[(0,xn.jsx)(voe,{icon:e.icon,size:"58px"}),(0,xn.jsx)(lF,{width:"400px",margin:"16px 50px 0 50px",children:e.text})]})}),Cde=()=>{const[e,t]=(0,i.useState)(!0),{onOpen:r,modalElement:n}=Mae((()=>t(!0))),o=[{id:1,text:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{as:"span",fontWeight:600,size:"md",children:"Streamline asset management:\xa0"}),(0,xn.jsx)(lF,{as:"span",size:"md",children:"one mnemonic, multiple accounts, full control."})]}),icon:(0,xn.jsx)(kR,{}),image:Sde},{id:2,text:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{as:"span",size:"md",children:"Enhance security with\xa0"}),(0,xn.jsx)(lF,{as:"span",fontWeight:600,size:"md",children:"Multi-sig"}),(0,xn.jsx)(lF,{as:"span",size:"md",children:", requiring multiple signatures for transaction executions."})]}),icon:(0,xn.jsx)(nR,{width:"32px",height:"32px",stroke:LP.gray[450],strokeWidth:"0.9"}),image:Ade},{id:3,text:(0,xn.jsxs)(xn.Fragment,{children:[(0,xn.jsx)(lF,{as:"span",size:"md",children:"Utilize the\xa0"}),(0,xn.jsx)(lF,{as:"span",fontWeight:600,size:"md",children:"Batch\xa0"}),(0,xn.jsx)(lF,{as:"span",size:"md",children:"feature to bundle transactions, improving efficiency and reducing costs."})]}),icon:(0,xn.jsx)(Pj,{width:"32px",height:"32px",strokeWidth:"0.9"}),image:Ede}];return(0,xn.jsxs)(Sn,{height:"100vh",padding:"60px",backgroundImage:kde,backgroundSize:"cover",children:[e&&(0,xn.jsxs)(Cae,{boxShadow:"0px 0px 30px rgba(0, 0, 0, 0.30)",columns:[1,1,2],children:[(0,xn.jsx)(Sn,{width:"100%",maxWidth:"660px",background:LP.gray[800],borderLeftRadius:"30px",children:(0,xn.jsxs)(goe,{maxWidth:"400px",padding:"32px",spacing:"0",children:[(0,xn.jsx)(gde,{width:"48px",height:"48px",marginBottom:"24px"}),(0,xn.jsx)(Ln,{marginBottom:"16px",size:"3xl",children:"Welcome to Umami"}),(0,xn.jsx)(jre,{maxWidth:"400px",marginBottom:"16px"}),(0,xn.jsx)(lF,{marginBottom:"32px",color:LP.gray[450],children:"A powerful Tezos wallet"}),(0,xn.jsx)(Gn,{width:"100%",marginBottom:"24px",onClick:()=>{t(!1),r()},size:"lg",children:"Get started"}),(0,xn.jsx)(pde,{fontSize:"13px"})]})}),(0,xn.jsx)(En,{maxWidth:"660px",children:(0,xn.jsx)(Ode,{children:o.map((e=>(0,xn.jsx)(Tde,{item:e},e.id)))})})]}),n]})},jde=()=>{fre();return qq().length>0?(0,xn.jsx)(Rde,{}):(0,xn.jsx)(Ide,{})},Rde=()=>{hre();const e=AM();return(0,xn.jsx)(kT,{children:(0,xn.jsx)(EM.Provider,{value:e,children:(0,xn.jsxs)(tre,{children:[(0,xn.jsx)($R,{}),(0,xn.jsxs)(vT,{children:[(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Zle,{})),path:"/home"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Zle,{})),path:"/home/:ownerPkh/:nftId"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Oue,{})),path:"/nfts"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Tue,{})),path:"/operations"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(fde,{})),path:"/tokens"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(lie,{})),path:"/address-book"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(ede,{})),path:"/settings"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(toe,{})),path:"/help"}),(0,xn.jsx)(mT,{element:_de((0,xn.jsx)(Yie,{})),path:"/batch"}),(0,xn.jsx)(mT,{element:(0,xn.jsx)(pT,{to:"/home"}),path:"/*"})]}),e.content]})})})},Ide=()=>{const e=(()=>{const e=Ei();return()=>e(Hd.actions.reset())})();return(0,i.useEffect)((()=>{(async()=>{await Zte.removeAllAccounts(),await Zte.removeAllAppMetadata(),await Zte.removeAllPeers(),await Zte.removeAllPermissions()})().then(e)}),[e]),(0,xn.jsx)(kT,{children:(0,xn.jsxs)(vT,{children:[(0,xn.jsx)(mT,{element:(0,xn.jsx)(pT,{to:"/welcome"}),path:"/*"}),(0,xn.jsx)(mT,{element:(0,xn.jsx)(Cde,{}),path:"/welcome"})]})})};a.createRoot(document.getElementById("root")).render((0,xn.jsx)(i.StrictMode,{children:(0,xn.jsx)(aO,{children:(0,xn.jsx)(ch,{children:(0,xn.jsx)(g,{loading:null,persistor:mae,children:(0,xn.jsx)(l,{fallback:(0,xn.jsx)(Xn,{}),onError:(e,t)=>{const r={..._te(e),stacktrace:String(t.componentStack)};sh.dispatch(Yd.actions.add(r))},children:(0,xn.jsx)(ei,{children:(0,xn.jsx)(jde,{})})})})})})}))})()})(); +//# sourceMappingURL=main.98b8a097.js.map \ No newline at end of file diff --git a/static/js/main.efd035ef.js.LICENSE.txt b/static/js/main.98b8a097.js.LICENSE.txt similarity index 100% rename from static/js/main.efd035ef.js.LICENSE.txt rename to static/js/main.98b8a097.js.LICENSE.txt diff --git a/static/js/main.efd035ef.js.map b/static/js/main.98b8a097.js.map similarity index 99% rename from static/js/main.efd035ef.js.map rename to static/js/main.98b8a097.js.map index f19e31907c..c0381e7d80 100644 --- a/static/js/main.efd035ef.js.map +++ b/static/js/main.98b8a097.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/main.efd035ef.js","mappings":";8BAeIA,EAkDJ,SAASC,EAAYC,EAAMC,GACpBC,UAAUC,QACbH,EAAK,WAEPA,EAAK,QAASC,EAChB,CAEA,SAASG,EAAgBC,EAAOL,EAAMM,GACpCJ,UAAUK,cACPC,SAASH,EAAOC,GAChBG,MAAK,SAAUC,GACdV,EAAK,aAAcU,GACfA,EAAaC,QACfX,EAAK,UAAWU,GAGlBA,EAAaE,cAAgB,WAC3BZ,EAAK,cAAeU,GACpB,IAAIG,EAAmBH,EAAaI,WACpCD,EAAiBE,cAAgB,WACA,cAA3BF,EAAiBG,QACfd,UAAUK,cAAcU,WAK1BjB,EAAK,UAAWU,GAKhBV,EAAK,SAAUU,GAGrB,CACF,CACF,IACCQ,OAAM,SAAUjB,GAAS,OAAOF,EAAYC,EAAMC,EAAQ,GAC/D,CAtFsB,qBAAXkB,SAQPrB,EAHsB,qBAAbsB,UAAqD,gBAAxBA,SAASC,YAAwD,aAAxBD,SAASC,WAE5D,qBAAZC,QACC,IAAIA,SAAQ,SAAUC,GAAW,OAAOJ,OAAOK,iBAAiB,OAAQD,EAAU,IAElF,CAAEd,KAAM,SAAUgB,GAAM,OAAON,OAAOK,iBAAiB,OAAQC,EAAK,GAJpEH,QAAQC,WAQ7BG,EAAQ,EAAW,SAAkBrB,EAAOsB,QAC3B,IAAVA,IAAmBA,EAAQ,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A,WACA,WACA,WACA,UACA,aAGI6P,EAAQ,IAAIlU,WAAW,CAC3B,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,GACA,EACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,EACA,GACA,EACA,GACA,GACA,IAIIqQ,EAAI,IAAIhM,YAAY,IACpB0U,EAAI,IAAI1U,YAAY,IAC1B,SAASynC,EAAiBhK,EAAKiJ,GAC7B,IAAIpoC,EAAI,EACR,IAAKA,EAAI,EAAGA,EAAI,EAAGA,IAEjB0N,EAAE1N,GAAKm/B,EAAI1+B,EAAET,GACb0N,EAAE1N,EAAI,GAAKkpC,EAAWlpC,GAUxB,IAPA0N,EAAE,KAAOyxB,EAAIv2B,EACb8E,EAAE,KAAOyxB,EAAIv2B,EAAI,WACbw/B,IAEF16B,EAAE,KAAOA,EAAE,KAGR1N,EAAI,EAAGA,EAAI,GAAIA,IAElBoW,EAAEpW,GA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AOP,KAAKs2D,WAAWzpB,OAAO7sC,KAAKi4D,WACrC,EAEA1F,EAAUhiD,UAAUw5B,MAAQ,WAC1B,OAAOwc,EAAM/2C,OAAOxP,KAAKO,UAAW,OAAO0qC,aAC7C,EAEAnd,EAAOtxB,QAAU+1D,YChEjBzkC,EAAOtxB,QAAU,CACfyrD,QAAS,CACPG,KAAM,EACNK,OAAQ,CACN,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,kEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,sEAINN,IAAK,CACH5kB,IAAK,EACLklB,OAAQ,CACN,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,iEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,kEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,oEAEF,CACE,mEACA,mEAEF,CACE,mEACA,oEAEF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SACA,YACA,YACA,YACA,WACA,WACA,MACA,UACA,UACA,WACA,WACA,eACA,SACA,SACA,YACA,WACA,YACA,cACA,QACA,UACA,QACA,SACA,aACA,YACA,WACA,OACA,QACA,OACA,QACA,QACA,MACA,QACA,OACA,OACA,YACA,OACA,WACA,SACA,SACA,YACA,WACA,OACA,WACA,OACA,SACA,WACA,SACA,SACA,WACA,SACA,WACA,UACA,QACA,QACA,SACA,UACA,iBACA,QACA,OACA,SACA,UACA,UACA,aACA,WACA,MACA,kBAEA,gBACA,SACA,SACA,YACA,WACA,QACA,WACA5tE,QAAQquE,EAAUS,oBAEbT,CACT,CAhfqBA,aCLrB,IAOIY,EACAC,EARAr7G,EAAUktB,EAAOtxB,QAAU,CAAC,EAUhC,SAAS0/G,IACL,MAAM,IAAI3+G,MAAM,kCACpB,CACA,SAAS4+G,IACL,MAAM,IAAI5+G,MAAM,oCACpB,CAqBA,SAAS6+G,EAAWC,GAChB,GAAIL,IAAqBp3B,WAErB,OAAOA,WAAWy3B,EAAK,GAG3B,IAAKL,IAAqBE,IAAqBF,IAAqBp3B,WAEhE,OADAo3B,EAAmBp3B,WACZA,WAAWy3B,EAAK,GAE3B,IAEI,OAAOL,EAAiBK,EAAK,EACjC,CAAE,MAAM//F,GACJ,IAEI,OAAO0/F,EAAiBxrG,KAAK,KAAM6rG,EAAK,EAC5C,CAAE,MAAM//F,GAEJ,OAAO0/F,EAAiBxrG,KAAKxQ,KAAMq8G,EAAK,EAC5C,CACJ,CAGJ,EA5CC,WACG,IAEQL,EADsB,oBAAfp3B,WACYA,WAEAs3B,CAE3B,CAAE,MAAO5/F,GACL0/F,EAAmBE,CACvB,CACA,IAEQD,EADwB,oBAAjBx3B,aACcA,aAEA03B,CAE7B,CAAE,MAAO7/F,GACL2/F,EAAqBE,CACzB,CACH,CAnBA,GAwED,IAEIG,EAFAC,EAAQ,GACRC,GAAW,EAEXC,GAAc,EAElB,SAASC,IACAF,GAAaF,IAGlBE,GAAW,EACPF,EAAax/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z+b,MAAOkE,KAAKlE,MACZ48b,UAAW14b,KAAKopb,SAChB8N,aAAcl3b,KAAKk3b,cAErBoB,GAEFhzb,OAAOwnC,KAAKyrZ,GAAgBxrZ,SAAS9nC,IAC/Bszb,EAAetzb,IAAMozb,EAASzuH,aAAa1uG,OAAOj2N,EAAKszb,EAAetzb,GAAK,IAEjFjF,KAAK03b,SAAWW,CAClB,CAEA,iBAAMO,CAAYp/L,GAChB,MAAM,QAAE8vL,EAAO,IAAEv3S,EAAG,kBAAE2oT,EAAiB,YAAElR,GAAgBhwL,EACzD,IAAI6qL,EACApma,EACA08a,EACAC,EACA19a,EACAs3V,EACAqmF,EACAC,EACApsB,EAEJ,GAA0B,SAAtBgsB,EAA8B,CAChCv2a,IAAIglF,MAAM,0EACV,MAEIsgV,YAAapF,EACbpma,YACA08a,iBACAC,oBACA19a,YACAs3V,YACAqmF,WACAC,SACApsB,cACEx/W,KAAKtc,MAAMyuY,KAAKmI,KACpB,MAAOzub,GACPopB,IAAIk4C,KAAK,8BAA+BthE,KAEtC0ub,YAAapF,EACbpma,YACA08a,iBACAC,oBACA19a,YACAs3V,YACAqmF,WACAC,SACApsB,oBACQhxa,GAAsD,GAAA28b,uBAA0C/Q,KAC3G,CACF,MACCnla,IAAIglF,MAAM,gFAERsgV,YAAapF,EACbpma,YACA08a,iBACAC,oBACA19a,YACAs3V,YACAqmF,WACAC,SACApsB,oBACQhxa,GAAsD,GAAA28b,uBAA0C/Q,MAG5G,GAAIrra,IAAcqra,EAChB,MAAM,IAAI/rb,MAAM,wCAGlB,MAAO,CACLylI,MAAO,GACPl+G,KAAM,iBACNi0a,aAAc,GACd3U,SAAUpkb,KAAKokb,SACfC,aACAgR,YAAar1b,KAAKq1b,YAClBtjT,MACAwoT,aAAcv6b,KAAKu6b,aACnBQ,oBAAqB,CACnB98a,YACA08a,iBACAC,oBACA19a,YACAs3V,YACAqmF,WACAC,SACApsB,cAGN,EChHI,MAAAssB,IAAgBlzS,IAUmB,IAVlB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AK,OAIX,CACErgE,KAAM,UAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,KAEP,CACE,CACErgE,KAAM,SACNx2L,KAAM,CACJ,CACE62P,IAAK,UAOjB,CACErgE,KAAM,UACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,UACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,UACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,UAER,CACEA,KAAM,WAER,CACEA,KAAM,MAER,CACEA,KAAM,OAER,CACEA,KAAM,KACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,oBAId,CACE0jK,KAAM,aAGV,KAGJ,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,QAER,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,MAId,CACE0jK,KAAM,UAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,KAEP,CACE,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,UAOjB,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,SAGV,CACE,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,QAER,CACEA,KAAM,WAER,CACEA,KAAM,MAER,CACEA,KAAM,OAER,CACEA,KAAM,KACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,8CAId,CACE0jK,KAAM,aAGV,KAGJ,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,YAMhB,CACE,CACEA,KAAM,UACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,SAER,CACEqgE,IAAK,OAIX,CACErgE,KAAM,UAER,CACEA,KAAM,WAER,CACEA,KAAM,MAER,CACEA,KAAM,OAER,CACEA,KAAM,KACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,yDAId,CACE0jK,KAAM,aAGV,KAGJ,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,UAER,CACEA,KAAM,OAER,CACEA,KAAM,OAER,CACEA,KAAM,KACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,sBAId,CACE0jK,KAAM,aAGV,KAGJ,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,OAER,CACEqgE,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,KAEP,CACE,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,UAOjB,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OAER,CACEA,KAAM,KACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,iBAId,CACE0jK,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,gBAId,CACE0jK,KAAM,QAER,CACEA,KAAM,aAGV,CACE,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,YACNx2L,KAAM,CACJ,CACEw2L,KAAM,aAIZ,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,QAER,CACEA,KAAM,UAIZ,CACEA,KAAM,UAER,CACEA,KAAM,UAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,QAER,CACEA,KAAM,QAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,UAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,KAEP,CACE,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,UAOjB,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,UAOjB,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,SAGV,CACE,CACEA,KAAM,MACNx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w2L,KAAM,UAER,CACE1jK,OAAQ,iBAId,CACE0jK,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,qBAId,CACE0jK,KAAM,QAER,CACEA,KAAM,aAGV,KAGJ,CACEA,KAAM,UAER,CACEA,KAAM,QAER,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OAER,CACEA,KAAM,UACNx2L,KAAM,CACJ,CACE,CACEw2L,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,iBAId,CACE0jK,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,UAER,CACE1jK,OAAQ,qBAId,CACE0jK,KAAM,QAER,CACEA,KAAM,aAGV,KAGJ,CACEA,KAAM,OAER,CACEA,KAAM,OACNx2L,KAAM,CACJ,CACEw2L,KAAM,QAER,CACEA,KAAM,UAIZ,CACEA,KAAM,UAER,CACEA,KAAM,UAER,CACEA,KAAM,QAER,CACEA,KAAM,QAER,CACEA,KAAM,QAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,UAER,CACEA,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,KAEP,CACE,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,UAOjB,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,OACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,MACNx2L,KAAM,CACJ,CACE62P,IAAK,OAIX,CACErgE,KAAM,e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5M,UACT26G,EAAAA,GAAAA,MAAC+9F,GAAM,CAAA14M,SAAA,EACL06G,EAAAA,GAAAA,KAACu9F,GAAK,CAAC3hR,SAASokL,EAAAA,GAAAA,KAACo9F,GAAQ,CAACvkU,GAAG,aAAeynF,KAAK,QACjD0/I,EAAAA,GAAAA,KAACu9F,GAAK,CAAC3hR,SAASokL,EAAAA,GAAAA,KAACksQ,IAAa,IAAK5rZ,KAAK,iBAE/B,ECnDJkwE,EAAAA,WAAoB79J,SAASs6e,eAAe,SACpDtva,QACHqiK,EAAAA,GAAAA,KAACzvE,EAAAA,WAAgB,CAAAjrC,UACf06G,EAAAA,GAAAA,KAACuxF,GAAU,CAAAjsM,UACT06G,EAAAA,GAAAA,KAACu/B,GAAU,CAAAj6I,UACT06G,EAAAA,GAAAA,KAACn1B,EAAW,CAACU,QAAS,KAAMN,UAAWA,IAAU3lF,UAC/C06G,EAAAA,GAAAA,KAACh2B,EAAa,CAACj5D,UAAUivF,EAAAA,GAAAA,KAACH,GAAS,IAAKp0G,QAXjCyhX,CAAC17e,EAAc00M,KAC9B,MAAMk2M,EAAe,IAAK86C,IAAgB1lc,GAAQ2lc,WAAYntZ,OAAOk8J,EAAKx3D,iBAC1E8yF,GAAM12F,SAAS8xH,GAAYx3K,QAAQ7rF,IAAI6iZ,GAAc,EASa92R,UACxD06G,EAAAA,GAAAA,KAACM,GAAkB,CAAAh7G,UACjB06G,EAAAA,GAAAA,KAACw9F,IAAM","sources":["../node_modules/@chaitanyapotti/register-service-worker/index.js","../node_modules/@noble/hashes/src/_assert.ts","../node_modules/@noble/hashes/src/_sha2.ts","../node_modules/@noble/hashes/src/_u64.ts","../node_modules/@noble/hashes/src/crypto.ts","../node_modules/@noble/hashes/src/hmac.ts","../node_modules/@noble/hashes/src/pbkdf2.ts","../node_modules/@noble/hashes/src/sha256.ts","../node_modules/@noble/hashes/src/sha3.ts","../node_modules/@noble/hashes/src/sha512.ts","../node_modules/@noble/hashes/src/utils.ts","../node_modules/@stablelib/binary/binary.ts","../node_modules/@stablelib/blake2b/blake2b.ts","../node_modules/@stablelib/bytes/bytes.ts","../node_modules/@stablelib/constant-time/constant-time.ts","../node_modules/@stablelib/ed25519/ed25519.ts","../node_modules/@stablelib/hash/hash.ts","../node_modules/@stablelib/hmac/hmac.ts","../node_modules/@stablelib/int/int.ts","../node_modules/@stablelib/nacl/box.ts","../node_modules/@stablelib/nacl/nacl.ts","../node_modules/@stablelib/nacl/secretbox.ts","../node_modules/@stablelib/poly1305/poly1305.ts","../node_modules/@stablelib/random/random.ts","../node_modules/@stablelib/random/source/browser.ts","../node_modules/@stablelib/random/source/node.ts","../node_modules/@stablelib/random/source/system.ts","../node_modules/@stablelib/salsa20/salsa20.ts","../node_modules/@stablelib/sha512/sha512.ts","../node_modules/@stablelib/utf8/utf8.ts","../node_modules/@stablelib/wipe/wipe.ts","../node_modules/@stablelib/x25519-session/keyagreement.ts","../node_modules/@stablelib/x25519-session/x25519-session.ts","../node_modules/@stablelib/x25519/x25519.ts","../node_modules/@stablelib/xsalsa20/xsalsa20.ts","../node_modules/@taquito/utils/node_modules/base-x/src/index.js","../node_modules/@taquito/utils/node_modules/bs58/index.js","../node_modules/@taquito/utils/node_modules/bs58check/base.js","../node_modules/@taquito/utils/node_modules/bs58check/index.js","../node_modules/@toruslabs/torus.js/node_modules/bn.js/lib/bn.js","../node_modules/base-x/src/index.js","../node_modules/base64-js/index.js","../node_modules/bip39/src/_wordlists.js","../node_modules/bip39/src/index.js","../node_modules/blakejs/blake2b.js","../node_modules/blakejs/blake2s.js","../node_modules/blakejs/index.js","../node_modules/blakejs/util.js","../node_modules/bn.js/lib/bn.js","../node_modules/bowser/es5.js","../node_modules/brorand/index.js","../node_modules/bs58/index.js","../node_modules/bs58check/base.js","../node_modules/bs58check/index.js","../node_modules/buffer/index.js","../node_modules/charenc/charenc.js","../node_modules/cipher-base/index.js","../node_modules/classnames/index.js","../node_modules/create-hash/browser.js","../node_modules/create-hash/md5.js","../node_modules/crypt/crypt.js","../node_modules/deepmerge/dist/cjs.js","../node_modules/elliptic/lib/elliptic.js","../node_modules/elliptic/lib/elliptic/curve/base.js","../node_modules/elliptic/lib/elliptic/curve/edwards.js","../node_modules/elliptic/lib/elliptic/curve/index.js","../node_modules/elliptic/lib/elliptic/curve/mont.js","../node_modules/elliptic/lib/elliptic/curve/short.js","../node_modules/elliptic/lib/elliptic/curves.js","../node_modules/elliptic/lib/elliptic/ec/index.js","../node_modules/elliptic/lib/elliptic/ec/key.js","../node_modules/elliptic/lib/elliptic/ec/signature.js","../node_modules/elliptic/lib/elliptic/eddsa/index.js","../node_modules/elliptic/lib/elliptic/eddsa/key.js","../node_modules/elliptic/lib/elliptic/eddsa/signature.js","../node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js","../node_modules/elliptic/lib/elliptic/utils.js","../node_modules/err-code/index.js","../node_modules/ethereum-cryptography/keccak.js","../node_modules/ethereum-cryptography/utils.js","../node_modules/events/events.js","../node_modules/fast-json-stable-stringify/index.js","../node_modules/hash-base/index.js","../node_modules/hash.js/lib/hash.js","../node_modules/hash.js/lib/hash/common.js","../node_modules/hash.js/lib/hash/hmac.js","../node_modules/hash.js/lib/hash/ripemd.js","../node_modules/hash.js/lib/hash/sha.js","../node_modules/hash.js/lib/hash/sha/1.js","../node_modules/hash.js/lib/hash/sha/224.js","../node_modules/hash.js/lib/hash/sha/256.js","../node_modules/hash.js/lib/hash/sha/384.js","../node_modules/hash.js/lib/hash/sha/512.js","../node_modules/hash.js/lib/hash/sha/common.js","../node_modules/hash.js/lib/hash/utils.js","../node_modules/hmac-drbg/lib/hmac-drbg.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../node_modules/ieee754/index.js","../node_modules/inherits/inherits_browser.js","../node_modules/is-buffer/index.js","../node_modules/json-stable-stringify/index.js","../node_modules/jsonify/index.js","../node_modules/jsonify/lib/parse.js","../node_modules/jsonify/lib/stringify.js","../node_modules/load-script/index.js","../node_modules/lodash.isequal/index.js","../node_modules/lodash.merge/index.js","../node_modules/lodash.mergewith/index.js","../node_modules/lodash/lodash.js","../node_modules/loglevel/lib/loglevel.js","../node_modules/lru-cache/index.js","../node_modules/md5.js/index.js","../node_modules/md5/md5.js","../node_modules/memoize-one/dist/memoize-one.esm.js","../node_modules/minimalistic-assert/index.js","../node_modules/minimalistic-crypto-utils/lib/utils.js","../node_modules/node-fetch/browser.js","../node_modules/ordinal/index.js","../node_modules/ordinal/indicator.js","../node_modules/papaparse/papaparse.min.js","../node_modules/pbkdf2/browser.js","../node_modules/pbkdf2/lib/async.js","../node_modules/pbkdf2/lib/default-encoding.js","../node_modules/pbkdf2/lib/precondition.js","../node_modules/pbkdf2/lib/sync-browser.js","../node_modules/pbkdf2/lib/to-buffer.js","../node_modules/pluralize/pluralize.js","../node_modules/process/browser.js","../node_modules/promise-retry/index.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/qrcode-generator/qrcode.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/react-dom/client.js","../node_modules/react-dom/index.js","../node_modules/react-easy-swipe/lib/index.js","../node_modules/react-easy-swipe/lib/react-swipe.js","../node_modules/react-fast-compare/index.js","../node_modules/react-identicons/build/index.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/react-is/index.js","../node_modules/react-player/lib/Player.js","../node_modules/react-player/lib/ReactPlayer.js","../node_modules/react-player/lib/index.js","../node_modules/react-player/lib/patterns.js","../node_modules/react-player/lib/players/index.js","../node_modules/react-player/lib/props.js","../node_modules/react-player/lib/utils.js","../node_modules/react-qrcode-logo/dist/index.js","../node_modules/react-query/es/core/focusManager.js","../node_modules/react-query/es/core/logger.js","../node_modules/react-query/es/core/notifyManager.js","../node_modules/react-query/es/core/onlineManager.js","../node_modules/react-query/es/core/query.js","../node_modules/react-query/es/core/queryCache.js","../node_modules/react-query/es/core/mutation.js","../node_modules/react-query/es/core/mutationCache.js","../node_modules/react-query/es/core/infiniteQueryBehavior.js","../node_modules/react-query/es/core/queryClient.js","../node_modules/react-query/es/core/retryer.js","../node_modules/react-query/es/core/subscribable.js","../node_modules/react-query/es/core/utils.js","../node_modules/react-query/es/react/reactBatchedUpdates.js","../node_modules/react-query/es/react/setBatchUpdatesFn.js","../node_modules/react-query/es/react/logger.js","../node_modules/react-query/es/react/setLogger.js","../node_modules/react-query/es/react/QueryClientProvider.js","../node_modules/react-query/es/core/queryObserver.js","../node_modules/react-query/es/react/QueryErrorResetBoundary.js","../node_modules/react-query/es/react/useQuery.js","../node_modules/react-query/es/react/useBaseQuery.js","../node_modules/react-query/es/react/utils.js","../node_modules/react-responsive-carousel/lib/js/CSSTranslate.js","../node_modules/react-responsive-carousel/lib/js/components/Carousel/animations.js","../node_modules/react-responsive-carousel/lib/js/components/Carousel/index.js","../node_modules/react-responsive-carousel/lib/js/components/Carousel/utils.js","../node_modules/react-responsive-carousel/lib/js/components/Thumbs.js","../node_modules/react-responsive-carousel/lib/js/cssClasses.js","../node_modules/react-responsive-carousel/lib/js/dimensions.js","../node_modules/react-responsive-carousel/lib/js/index.js","../node_modules/react-responsive-carousel/lib/js/shims/document.js","../node_modules/react-responsive-carousel/lib/js/shims/window.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/index.js","../node_modules/react/jsx-runtime.js","../node_modules/readable-stream/errors-browser.js","../node_modules/readable-stream/lib/_stream_duplex.js","../node_modules/readable-stream/lib/_stream_passthrough.js","../node_modules/readable-stream/lib/_stream_readable.js","../node_modules/readable-stream/lib/_stream_transform.js","../node_modules/readable-stream/lib/_stream_writable.js","../node_modules/readable-stream/lib/internal/streams/async_iterator.js","../node_modules/readable-stream/lib/internal/streams/buffer_list.js","../node_modules/readable-stream/lib/internal/streams/destroy.js","../node_modules/readable-stream/lib/internal/streams/end-of-stream.js","../node_modules/readable-stream/lib/internal/streams/from-browser.js","../node_modules/readable-stream/lib/internal/streams/pipeline.js","../node_modules/readable-stream/lib/internal/streams/state.js","../node_modules/readable-stream/lib/internal/streams/stream-browser.js","../node_modules/readable-stream/readable-browser.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/index.js","../node_modules/retry/index.js","../node_modules/retry/lib/retry.js","../node_modules/retry/lib/retry_operation.js","../node_modules/ripemd160/index.js","../node_modules/safe-buffer/index.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/index.js","../node_modules/semver/classes/comparator.js","../node_modules/semver/classes/range.js","../node_modules/semver/classes/semver.js","../node_modules/semver/functions/clean.js","../node_modules/semver/functions/cmp.js","../node_modules/semver/functions/coerce.js","../node_modules/semver/functions/compare-build.js","../node_modules/semver/functions/compare-loose.js","../node_modules/semver/functions/compare.js","../node_modules/semver/functions/diff.js","../node_modules/semver/functions/eq.js","../node_modules/semver/functions/gt.js","../node_modules/semver/functions/gte.js","../node_modules/semver/functions/inc.js","../node_modules/semver/functions/lt.js","../node_modules/semver/functions/lte.js","../node_modules/semver/functions/major.js","../node_modules/semver/functions/minor.js","../node_modules/semver/functions/neq.js","../node_modules/semver/functions/parse.js","../node_modules/semver/functions/patch.js","../node_modules/semver/functions/prerelease.js","../node_modules/semver/functions/rcompare.js","../node_modules/semver/functions/rsort.js","../node_modules/semver/functions/satisfies.js","../node_modules/semver/functions/sort.js","../node_modules/semver/functions/valid.js","../node_modules/semver/index.js","../node_modules/semver/internal/constants.js","../node_modules/semver/internal/debug.js","../node_modules/semver/internal/identifiers.js","../node_modules/semver/internal/parse-options.js","../node_modules/semver/internal/re.js","../node_modules/semver/ranges/gtr.js","../node_modules/semver/ranges/intersects.js","../node_modules/semver/ranges/ltr.js","../node_modules/semver/ranges/max-satisfying.js","../node_modules/semver/ranges/min-satisfying.js","../node_modules/semver/ranges/min-version.js","../node_modules/semver/ranges/outside.js","../node_modules/semver/ranges/simplify.js","../node_modules/semver/ranges/subset.js","../node_modules/semver/ranges/to-comparators.js","../node_modules/semver/ranges/valid.js","../node_modules/sha.js/hash.js","../node_modules/sha.js/index.js","../node_modules/sha.js/sha.js","../node_modules/sha.js/sha1.js","../node_modules/sha.js/sha224.js","../node_modules/sha.js/sha256.js","../node_modules/sha.js/sha384.js","../node_modules/sha.js/sha512.js","../node_modules/stream-browserify/index.js","../node_modules/string_decoder/lib/string_decoder.js","../node_modules/typedarray-to-buffer/index.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js","../node_modules/use-sync-external-store/shim/index.js","../node_modules/use-sync-external-store/shim/with-selector.js","../node_modules/util-deprecate/browser.js","../node_modules/yallist/iterator.js","../node_modules/yallist/yallist.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/helpers/regeneratorRuntime.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/helpers/typeof.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/regenerator/index.js","../node_modules/react-query/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/react-query/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/react-query/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../webpack/bootstrap","../webpack/runtime/compat get default export","../webpack/runtime/create fake namespace object","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/load script","../webpack/runtime/make namespace object","../webpack/runtime/node module decorator","../webpack/runtime/publicPath","../webpack/runtime/jsonp chunk loading","../webpack/runtime/nonce","../node_modules/react-error-boundary/dist/react-error-boundary.esm.js","../node_modules/redux-persist/es/integration/react.js","../node_modules/@chakra-ui/system/src/forward-ref.tsx","../node_modules/@chakra-ui/shared-utils/dist/index.mjs","../node_modules/@chakra-ui/styled-system/dist/index.mjs","../node_modules/@chakra-ui/system/src/should-forward-prop.ts","../node_modules/@chakra-ui/color-mode/src/color-mode-context.ts","../node_modules/@chakra-ui/utils/dist/chunk-YTQ3XZ3T.mjs","../node_modules/@chakra-ui/utils/dist/chunk-M3TFMUOL.mjs","../node_modules/@chakra-ui/utils/dist/chunk-Y5FGD7DM.mjs","../node_modules/@emotion/styled/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js","../node_modules/stylis/src/Utility.js","../node_modules/stylis/src/Tokenizer.js","../node_modules/stylis/src/Enum.js","../node_modules/stylis/src/Serializer.js","../node_modules/stylis/src/Parser.js","../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","../node_modules/stylis/src/Middleware.js","../node_modules/@emotion/react/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js","../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../node_modules/@emotion/react/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js","../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","../node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js","../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js","../node_modules/@chakra-ui/system/src/system.ts","../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js","../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js","../node_modules/@chakra-ui/object-utils/dist/chunk-OLTBUDV5.mjs","../node_modules/@chakra-ui/system/src/factory.ts","../node_modules/@chakra-ui/layout/src/flex.tsx","../node_modules/@chakra-ui/layout/src/center.tsx","../node_modules/@chakra-ui/layout/src/box.tsx","../node_modules/@chakra-ui/system/src/use-theme.ts","../node_modules/@chakra-ui/system/src/hooks.ts","../node_modules/@chakra-ui/system/src/use-style-config.ts","../node_modules/@chakra-ui/layout/src/heading.tsx","../node_modules/@chakra-ui/react-context/src/index.ts","../node_modules/@chakra-ui/button/src/button-context.ts","../node_modules/@chakra-ui/button/src/button-icon.tsx","../node_modules/@emotion/react/dist/emotion-react.browser.esm.js","../node_modules/@chakra-ui/spinner/src/spinner.tsx","../node_modules/@chakra-ui/button/src/button-spinner.tsx","../node_modules/@chakra-ui/react-use-merge-refs/src/index.ts","../node_modules/@chakra-ui/button/src/button.tsx","../node_modules/@chakra-ui/button/src/use-button-type.tsx","../node_modules/@chakra-ui/layout/src/link.tsx","components/ErrorPage.tsx","providers/ReactQueryProvider.tsx","../node_modules/react-redux/es/utils/batch.js","../node_modules/react-redux/es/components/Context.js","../node_modules/react-redux/es/hooks/useReduxContext.js","../node_modules/react-redux/es/hooks/useSelector.js","../node_modules/react-redux/es/utils/useSyncExternalStore.js","../node_modules/react-redux/es/utils/Subscription.js","../node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js","../node_modules/react-redux/es/components/connect.js","../node_modules/react-redux/es/components/Provider.js","../node_modules/react-redux/es/hooks/useStore.js","../node_modules/react-redux/es/hooks/useDispatch.js","../node_modules/immer/src/utils/errors.ts","../node_modules/immer/src/utils/common.ts","../node_modules/immer/src/utils/plugins.ts","../node_modules/immer/src/core/scope.ts","../node_modules/immer/src/core/finalize.ts","../node_modules/immer/src/core/proxy.ts","../node_modules/immer/src/core/immerClass.ts","../node_modules/immer/src/core/current.ts","../node_modules/immer/src/plugins/es5.ts","../node_modules/react-redux/es/index.js","../node_modules/immer/src/immer.ts","../node_modules/immer/src/utils/env.ts","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/redux/node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/redux/es/redux.js","../node_modules/redux-thunk/es/index.js","../node_modules/@reduxjs/toolkit/src/devtoolsExtension.ts","../node_modules/@reduxjs/toolkit/src/isPlainObject.ts","../node_modules/@reduxjs/toolkit/src/createAction.ts","../node_modules/@reduxjs/toolkit/src/utils.ts","../node_modules/@reduxjs/toolkit/src/getDefaultMiddleware.ts","../node_modules/@reduxjs/toolkit/src/mapBuilders.ts","../node_modules/@reduxjs/toolkit/src/createSlice.ts","../node_modules/@reduxjs/toolkit/src/createReducer.ts","../node_modules/@reduxjs/toolkit/src/nanoid.ts","../node_modules/@reduxjs/toolkit/src/createAsyncThunk.ts","../node_modules/@reduxjs/toolkit/src/listenerMiddleware/index.ts","../node_modules/@reduxjs/toolkit/src/listenerMiddleware/task.ts","../node_modules/@reduxjs/toolkit/src/autoBatchEnhancer.ts","../node_modules/@reduxjs/toolkit/src/index.ts","../node_modules/redux-persist/es/constants.js","../node_modules/redux-persist/es/stateReconciler/autoMergeLevel1.js","../node_modules/redux-persist/es/createPersistoid.js","../node_modules/redux-persist/es/getStoredState.js","../node_modules/redux-persist/es/purgeStoredState.js","../node_modules/redux-persist/es/persistReducer.js","../node_modules/redux-persist/es/persistStore.js","utils/redux/slices/announcementSlice.ts","utils/redux/migrations.ts","../node_modules/bignumber.js/bignumber.mjs","utils/crypto/KDF.ts","utils/crypto/AES.ts","utils/redux/thunks/changeMnemonicPassword.ts","utils/redux/slices/accountsSlice.ts","../node_modules/zod/lib/index.mjs","types/Address.ts","types/Token.ts","types/TokenBalance.ts","utils/redux/slices/assetsSlice.ts","types/Network.ts","utils/redux/slices/batches.ts","utils/redux/slices/beaconSlice.ts","utils/hooks/contactsUtils.ts","utils/redux/slices/contactsSlice.ts","utils/redux/slices/errorsSlice.ts","utils/redux/slices/multisigsSlice.ts","utils/redux/slices/networks.ts","utils/redux/slices/tokensSlice.ts","utils/redux/reducer.ts","../node_modules/redux-persist/es/createMigrate.js","utils/redux/store.ts","../node_modules/@reduxjs/toolkit/src/configureStore.ts","providers/ReduxStore.tsx","../node_modules/@chakra-ui/css-reset/src/css-reset.tsx","../node_modules/@chakra-ui/portal/src/portal-manager.tsx","../node_modules/@chakra-ui/react-utils/dist/chunk-ITIKTQWJ.mjs","../node_modules/@chakra-ui/system/src/providers.tsx","../node_modules/@chakra-ui/color-mode/src/color-mode.utils.ts","../node_modules/@chakra-ui/color-mode/src/storage-manager.ts","../node_modules/@chakra-ui/react-use-safe-layout-effect/src/index.ts","../node_modules/@chakra-ui/color-mode/src/color-mode-provider.tsx","../node_modules/@chakra-ui/react-env/src/env.tsx","../node_modules/@chakra-ui/provider/src/chakra-provider.tsx","../node_modules/@chakra-ui/theme/src/foundations/transition.ts","../node_modules/@chakra-ui/theme/src/foundations/z-index.ts","../node_modules/@chakra-ui/theme/src/foundations/borders.ts","../node_modules/@chakra-ui/theme/src/foundations/breakpoints.ts","../node_modules/@chakra-ui/theme/src/foundations/colors.ts","../node_modules/@chakra-ui/theme/src/foundations/radius.ts","../node_modules/@chakra-ui/theme/src/foundations/shadows.ts","../node_modules/@chakra-ui/theme/src/foundations/blur.ts","../node_modules/@chakra-ui/theme/src/foundations/typography.ts","../node_modules/@chakra-ui/theme/src/foundations/spacing.ts","../node_modules/@chakra-ui/theme/src/foundations/sizes.ts","../node_modules/@chakra-ui/theme/src/foundations/index.ts","../node_modules/@chakra-ui/theme/src/components/stepper.ts","../node_modules/@chakra-ui/anatomy/src/anatomy.ts","../node_modules/@chakra-ui/anatomy/src/components.ts","../node_modules/@chakra-ui/theme-tools/src/css-var.ts","../node_modules/@chakra-ui/theme-tools/src/css-calc.ts","../node_modules/@chakra-ui/theme/src/components/switch.ts","../node_modules/@chakra-ui/theme-tools/src/component.ts","../node_modules/@chakra-ui/theme/src/components/table.ts","../node_modules/color2k/src/guard.ts","../node_modules/color2k/src/ColorError.ts","../node_modules/color2k/src/parseToRgba.ts","../node_modules/color2k/src/rgba.ts","../node_modules/color2k/src/transparentize.ts","../node_modules/@chakra-ui/theme-tools/src/color.ts","../node_modules/.pnpm/dlv@1.1.3/node_modules/dlv/index.js","../node_modules/color2k/src/toHex.ts","../node_modules/@chakra-ui/theme/src/components/tabs.ts","../node_modules/@chakra-ui/theme/src/components/badge.ts","../node_modules/@chakra-ui/theme/src/components/tag.ts","../node_modules/@chakra-ui/theme/src/components/input.ts","../node_modules/@chakra-ui/theme/src/components/textarea.ts","../node_modules/@chakra-ui/theme/src/components/tooltip.ts","../node_modules/@chakra-ui/theme/src/components/progress.ts","../node_modules/@chakra-ui/theme/src/utils/run-if-fn.ts","../node_modules/@chakra-ui/theme/src/components/checkbox.ts","../node_modules/@chakra-ui/theme/src/components/select.ts","../node_modules/@chakra-ui/theme/src/components/radio.ts","../node_modules/@chakra-ui/theme/src/components/skeleton.ts","../node_modules/@chakra-ui/theme/src/components/skip-link.ts","../node_modules/@chakra-ui/theme/src/components/slider.ts","../node_modules/@chakra-ui/theme/src/components/spinner.ts","../node_modules/@chakra-ui/theme/src/components/stat.ts","../node_modules/@chakra-ui/theme/src/components/kbd.ts","../node_modules/@chakra-ui/theme/src/components/link.ts","../node_modules/@chakra-ui/theme/src/components/list.ts","../node_modules/@chakra-ui/theme/src/components/menu.ts","../node_modules/@chakra-ui/theme/src/components/modal.ts","../node_modules/@chakra-ui/theme/src/components/number-input.ts","../node_modules/@chakra-ui/theme/src/components/pin-input.ts","../node_modules/@chakra-ui/theme/src/components/popover.ts","../node_modules/@chakra-ui/theme/src/components/drawer.ts","../node_modules/@chakra-ui/theme/src/components/editable.ts","../node_modules/@chakra-ui/theme/src/components/form-control.ts","../node_modules/@chakra-ui/theme/src/components/form-error.ts","../node_modules/@chakra-ui/theme/src/components/form-label.ts","../node_modules/@chakra-ui/theme/src/components/heading.ts","../node_modules/@chakra-ui/theme/src/components/breadcrumb.ts","../node_modules/@chakra-ui/theme/src/components/button.ts","../node_modules/@chakra-ui/theme/src/components/card.ts","../node_modules/@chakra-ui/theme/src/components/close-button.ts","../node_modules/@chakra-ui/theme/src/components/code.ts","../node_modules/@chakra-ui/theme/src/components/container.ts","../node_modules/@chakra-ui/theme/src/components/divider.ts","../node_modules/@chakra-ui/theme/src/components/accordion.ts","../node_modules/@chakra-ui/theme/src/components/alert.ts","../node_modules/@chakra-ui/theme/src/components/avatar.ts","../node_modules/@chakra-ui/theme/src/components/index.ts","../node_modules/@chakra-ui/theme/src/semantic-tokens.ts","../node_modules/@chakra-ui/theme/src/styles.ts","../node_modules/@chakra-ui/theme/src/index.ts","../node_modules/@chakra-ui/toast/src/toast.utils.ts","../node_modules/@chakra-ui/react-use-callback-ref/src/index.ts","../node_modules/@chakra-ui/react-use-update-effect/src/index.ts","../node_modules/framer-motion/dist/es/context/PresenceContext.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs","../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../node_modules/framer-motion/dist/es/context/MotionContext/index.mjs","../node_modules/framer-motion/dist/es/utils/is-browser.mjs","../node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs","../node_modules/framer-motion/dist/es/context/LazyContext.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs","../node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs","../node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs","../node_modules/framer-motion/dist/es/frameloop/render-step.mjs","../node_modules/framer-motion/dist/es/frameloop/batcher.mjs","../node_modules/framer-motion/dist/es/frameloop/microtask.mjs","../node_modules/framer-motion/dist/es/utils/is-ref-object.mjs","../node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs","../node_modules/framer-motion/dist/es/render/utils/variant-props.mjs","../node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs","../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs","../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs","../node_modules/framer-motion/dist/es/motion/features/definitions.mjs","../node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs","../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs","../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs","../node_modules/framer-motion/dist/es/motion/index.mjs","../node_modules/framer-motion/dist/es/motion/features/load-features.mjs","../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs","../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs","../node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs","../node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs","../node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs","../node_modules/framer-motion/dist/es/render/html/utils/transform.mjs","../node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs","../node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs","../node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs","../node_modules/framer-motion/dist/es/utils/clamp.mjs","../node_modules/framer-motion/dist/es/value/types/numbers/index.mjs","../node_modules/framer-motion/dist/es/value/types/utils.mjs","../node_modules/framer-motion/dist/es/value/types/numbers/units.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs","../node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs","../node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs","../node_modules/framer-motion/dist/es/render/html/use-props.mjs","../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/path.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs","../node_modules/framer-motion/dist/es/render/svg/use-props.mjs","../node_modules/framer-motion/dist/es/render/dom/use-render.mjs","../node_modules/framer-motion/dist/es/render/html/utils/render.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/render.mjs","../node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs","../node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs","../node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs","../node_modules/framer-motion/dist/es/utils/use-constant.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs","../node_modules/framer-motion/dist/es/utils/resolve-value.mjs","../node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs","../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs","../node_modules/framer-motion/dist/es/utils/noop.mjs","../node_modules/framer-motion/dist/es/frameloop/frame.mjs","../node_modules/framer-motion/dist/es/render/svg/config-motion.mjs","../node_modules/framer-motion/dist/es/render/html/config-motion.mjs","../node_modules/framer-motion/dist/es/events/add-dom-event.mjs","../node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.mjs","../node_modules/framer-motion/dist/es/events/event-info.mjs","../node_modules/framer-motion/dist/es/events/add-pointer-event.mjs","../node_modules/framer-motion/dist/es/utils/pipe.mjs","../node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs","../node_modules/framer-motion/dist/es/motion/features/Feature.mjs","../node_modules/framer-motion/dist/es/gestures/hover.mjs","../node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs","../node_modules/framer-motion/dist/es/gestures/press.mjs","../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs","../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs","../node_modules/framer-motion/dist/es/motion/features/gestures.mjs","../node_modules/framer-motion/dist/es/gestures/focus.mjs","../node_modules/framer-motion/dist/es/utils/shallow-compare.mjs","../node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs","../node_modules/framer-motion/dist/es/utils/errors.mjs","../node_modules/framer-motion/dist/es/utils/time-conversion.mjs","../node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs","../node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs","../node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs","../node_modules/framer-motion/dist/es/easing/ease.mjs","../node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs","../node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs","../node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs","../node_modules/framer-motion/dist/es/easing/circ.mjs","../node_modules/framer-motion/dist/es/easing/back.mjs","../node_modules/framer-motion/dist/es/easing/utils/map.mjs","../node_modules/framer-motion/dist/es/easing/anticipate.mjs","../node_modules/framer-motion/dist/es/value/types/color/utils.mjs","../node_modules/framer-motion/dist/es/value/types/color/rgba.mjs","../node_modules/framer-motion/dist/es/value/types/color/hex.mjs","../node_modules/framer-motion/dist/es/value/types/color/hsla.mjs","../node_modules/framer-motion/dist/es/value/types/color/index.mjs","../node_modules/framer-motion/dist/es/utils/mix.mjs","../node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs","../node_modules/framer-motion/dist/es/utils/mix-color.mjs","../node_modules/framer-motion/dist/es/value/types/complex/index.mjs","../node_modules/framer-motion/dist/es/utils/mix-complex.mjs","../node_modules/framer-motion/dist/es/utils/progress.mjs","../node_modules/framer-motion/dist/es/utils/interpolate.mjs","../node_modules/framer-motion/dist/es/utils/offsets/default.mjs","../node_modules/framer-motion/dist/es/utils/offsets/fill.mjs","../node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs","../node_modules/framer-motion/dist/es/utils/offsets/time.mjs","../node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs","../node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs","../node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs","../node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs","../node_modules/framer-motion/dist/es/animation/generators/inertia.mjs","../node_modules/framer-motion/dist/es/frameloop/sync-time.mjs","../node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.mjs","../node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs","../node_modules/framer-motion/dist/es/animation/animators/js/index.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.mjs","../node_modules/framer-motion/dist/es/utils/memo.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs","../node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs","../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs","../node_modules/framer-motion/dist/es/value/types/complex/filter.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs","../node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs","../node_modules/framer-motion/dist/es/animation/utils/is-none.mjs","../node_modules/framer-motion/dist/es/animation/utils/transitions.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs","../node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs","../node_modules/framer-motion/dist/es/animation/animators/instant.mjs","../node_modules/framer-motion/dist/es/value/use-will-change/is.mjs","../node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs","../node_modules/framer-motion/dist/es/utils/array.mjs","../node_modules/framer-motion/dist/es/utils/subscription-manager.mjs","../node_modules/framer-motion/dist/es/value/index.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs","../node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs","../node_modules/framer-motion/dist/es/render/utils/setters.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs","../node_modules/framer-motion/dist/es/render/utils/animation-state.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs","../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs","../node_modules/framer-motion/dist/es/motion/features/animations.mjs","../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs","../node_modules/framer-motion/dist/es/utils/distance.mjs","../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs","../node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs","../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs","../node_modules/framer-motion/dist/es/projection/geometry/models.mjs","../node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs","../node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs","../node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs","../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs","../node_modules/framer-motion/dist/es/projection/utils/measure.mjs","../node_modules/framer-motion/dist/es/utils/get-context-window.mjs","../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs","../node_modules/framer-motion/dist/es/gestures/pan/index.mjs","../node_modules/framer-motion/dist/es/projection/node/state.mjs","../node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs","../node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs","../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs","../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs","../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs","../node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs","../node_modules/framer-motion/dist/es/projection/geometry/utils.mjs","../node_modules/framer-motion/dist/es/projection/shared/stack.mjs","../node_modules/framer-motion/dist/es/projection/styles/transform.mjs","../node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs","../node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs","../node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs","../node_modules/framer-motion/dist/es/debug/record.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs","../node_modules/framer-motion/dist/es/utils/delay.mjs","../node_modules/framer-motion/dist/es/animation/interfaces/single-value.mjs","../node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs","../node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs","../node_modules/framer-motion/dist/es/motion/features/drag.mjs","../node_modules/framer-motion/dist/es/gestures/drag/index.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.mjs","../node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs","../node_modules/framer-motion/dist/es/render/store.mjs","../node_modules/framer-motion/dist/es/render/VisualElement.mjs","../node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs","../node_modules/framer-motion/dist/es/render/utils/motion-values.mjs","../node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs","../node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs","../node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs","../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs","../node_modules/framer-motion/dist/es/render/dom/motion.mjs","../node_modules/framer-motion/dist/es/motion/features/layout.mjs","../node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs","../node_modules/@chakra-ui/toast/src/toast.component.tsx","../node_modules/@chakra-ui/react-use-timeout/src/index.ts","../node_modules/@chakra-ui/toast/src/toast.placement.ts","../node_modules/@chakra-ui/icon/src/icon.tsx","../node_modules/@chakra-ui/alert/src/icons.tsx","../node_modules/@chakra-ui/alert/src/alert-context.ts","../node_modules/@chakra-ui/alert/src/alert.tsx","../node_modules/@chakra-ui/alert/src/alert-icon.tsx","../node_modules/@chakra-ui/alert/src/alert-title.tsx","../node_modules/@chakra-ui/alert/src/alert-description.tsx","../node_modules/@chakra-ui/close-button/src/close-button.tsx","../node_modules/@chakra-ui/toast/src/toast.store.ts","../node_modules/@chakra-ui/toast/src/toast.tsx","../node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs","../node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs","../node_modules/@chakra-ui/portal/src/portal.tsx","../node_modules/@chakra-ui/toast/src/toast.provider.tsx","../node_modules/@chakra-ui/react/src/chakra-provider.tsx","../node_modules/@chakra-ui/color-mode/src/color-mode-script.tsx","../node_modules/@chakra-ui/theme/src/utils/is-chakra-theme.ts","../node_modules/@chakra-ui/theme-utils/dist/chunk-LIR5QAZY.mjs","style/colors.ts","style/theme/button.ts","style/theme/checkbox.ts","style/theme/drawer.ts","style/theme/list.ts","style/theme/modal.ts","style/theme/radio.ts","style/theme/tabs.ts","style/theme.ts","providers/UmamiTheme.tsx","../node_modules/@remix-run/router/history.ts","../node_modules/@remix-run/router/utils.ts","../node_modules/@remix-run/router/router.ts","../node_modules/react-router/lib/context.ts","../node_modules/react-router/lib/hooks.tsx","../node_modules/react-router/lib/components.tsx","../node_modules/react-router-dom/dom.ts","../node_modules/react-router-dom/index.tsx","../node_modules/axios/lib/helpers/bind.js","../node_modules/axios/lib/utils.js","../node_modules/axios/lib/core/AxiosError.js","../node_modules/axios/lib/helpers/toFormData.js","../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/axios/lib/helpers/buildURL.js","../node_modules/axios/lib/core/InterceptorManager.js","../node_modules/axios/lib/defaults/transitional.js","../node_modules/axios/lib/platform/browser/index.js","../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/axios/lib/platform/common/utils.js","../node_modules/axios/lib/platform/index.js","../node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/axios/lib/defaults/index.js","../node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/axios/lib/core/transformData.js","../node_modules/axios/lib/cancel/isCancel.js","../node_modules/axios/lib/cancel/CanceledError.js","../node_modules/axios/lib/helpers/cookies.js","../node_modules/axios/lib/core/buildFullPath.js","../node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/axios/lib/helpers/combineURLs.js","../node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/axios/lib/helpers/speedometer.js","../node_modules/axios/lib/adapters/xhr.js","../node_modules/axios/lib/core/settle.js","../node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/axios/lib/adapters/adapters.js","../node_modules/axios/lib/helpers/null.js","../node_modules/axios/lib/core/dispatchRequest.js","../node_modules/axios/lib/core/mergeConfig.js","../node_modules/axios/lib/env/data.js","../node_modules/axios/lib/helpers/validator.js","../node_modules/axios/lib/core/Axios.js","../node_modules/axios/lib/cancel/CancelToken.js","../node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/axios/lib/axios.js","../node_modules/axios/lib/helpers/spread.js","../node_modules/axios/lib/helpers/isAxiosError.js","assets/icons/Accounts.tsx","assets/icons/AddAccount.tsx","assets/icons/AddContact.tsx","assets/icons/AddressBook.tsx","assets/icons/Baker.tsx","assets/icons/Batch.tsx","assets/icons/BurgerMenu.tsx","assets/icons/Checkmark.tsx","assets/icons/ChevronDown.tsx","assets/icons/ChevronRight.tsx","assets/icons/ChevronUp.tsx","assets/icons/Coin.tsx","assets/icons/Contact.tsx","assets/icons/Contract.tsx","assets/icons/CrossedCircle.tsx","assets/icons/Diamond.tsx","assets/icons/Document.tsx","assets/icons/DoubleCheckmark.tsx","assets/icons/Download.tsx","assets/icons/EditAccount.tsx","assets/icons/Exclamation.tsx","assets/icons/ExitArrow.tsx","assets/icons/ExternalLink.tsx","assets/icons/Eye.tsx","assets/icons/EyeSlash.tsx","assets/icons/FA1.2.tsx","assets/icons/FA2.tsx","assets/icons/Fetching.tsx","assets/icons/FileArrowDown.tsx","assets/icons/FileCopy.tsx","assets/icons/FlipForwardEnergy.tsx","assets/icons/Gear.tsx","assets/icons/Help.tsx","assets/icons/Hourglass.tsx","assets/icons/IncomingArrow.tsx","assets/icons/Key.tsx","../node_modules/react-icons/lib/esm/iconsManifest.js","../node_modules/react-icons/lib/esm/iconContext.js","../node_modules/react-icons/lib/esm/iconBase.js","../node_modules/react-icons/md/index.esm.js","assets/icons/Ledger.tsx","assets/icons/Link.tsx","assets/icons/Lock.tsx","assets/icons/Maintenance.tsx","assets/icons/Maki.tsx","assets/icons/Notice.tsx","assets/icons/OutgoingArrow.tsx","assets/icons/Pen.tsx","assets/icons/Plus.tsx","assets/icons/RefreshClock.tsx","assets/icons/Rotate.tsx","assets/icons/Slash.tsx","assets/icons/Sliders.tsx","assets/icons/Social.tsx","assets/icons/Tez.tsx","../node_modules/@chakra-ui/image/src/native-image.tsx","../node_modules/utilities/object-utils/src/omit.ts","../node_modules/@chakra-ui/image/src/image.tsx","../node_modules/@chakra-ui/image/src/use-image.ts","assets/icons/Token.tsx","assets/icons/Trash.tsx","assets/icons/UnknownContact.tsx","assets/icons/USB.tsx","assets/icons/Verified.tsx","assets/icons/WalletPlus.tsx","assets/icons/Warning.tsx","assets/icons/XMark.tsx","utils/redux/hooks.ts","components/AnnouncementBanner.tsx","../node_modules/@chakra-ui/hooks/src/use-id.ts","../node_modules/@chakra-ui/utils/dist/chunk-O3SWHQEE.mjs","../node_modules/@chakra-ui/hooks/src/use-safe-layout-effect.ts","../node_modules/@chakra-ui/hooks/src/use-callback-ref.ts","../node_modules/@chakra-ui/hooks/src/use-disclosure.ts","../node_modules/@chakra-ui/hooks/src/use-controllable.ts","../node_modules/@chakra-ui/modal/src/modal-manager.ts","../node_modules/aria-hidden/dist/es2015/index.js","../node_modules/@chakra-ui/modal/src/use-modal.ts","../node_modules/@chakra-ui/modal/src/modal.tsx","../node_modules/@chakra-ui/transition/src/transition-utils.ts","../node_modules/@chakra-ui/transition/src/fade.tsx","../node_modules/@chakra-ui/modal/src/modal-overlay.tsx","../node_modules/tslib/tslib.es6.mjs","../node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../node_modules/use-callback-ref/dist/es2015/useRef.js","../node_modules/use-callback-ref/dist/es2015/assignRef.js","../node_modules/use-sidecar/dist/es2015/medium.js","../node_modules/react-remove-scroll/dist/es2015/medium.js","../node_modules/react-remove-scroll/dist/es2015/UI.js","../node_modules/use-sidecar/dist/es2015/exports.js","../node_modules/get-nonce/dist/es2015/index.js","../node_modules/react-style-singleton/dist/es2015/singleton.js","../node_modules/react-style-singleton/dist/es2015/component.js","../node_modules/react-style-singleton/dist/es2015/hook.js","../node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../node_modules/react-remove-scroll-bar/dist/es2015/component.js","../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../node_modules/react-remove-scroll/dist/es2015/sidecar.js","../node_modules/react-remove-scroll/dist/es2015/Combination.js","components/DynamicModal.tsx","../../../../src/utils/keys.ts","../../../../src/utils/exposed-promise.ts","../../../../src/utils/crypto.ts","../../../../src/utils/generate-uuid.ts","../../../../../src/types/beacon/BeaconMessageType.ts","../../../../../src/types/beacon/PermissionScope.ts","../../../../../src/types/beacon/NetworkType.ts","../../../../../src/types/tezos/OperationTypes.ts","../../../../src/types/Origin.ts","../../../../src/types/ExtensionMessageTarget.ts","../../../../src/types/BeaconErrorType.ts","../../../../../src/types/transport/TransportStatus.ts","../../../../../src/types/transport/TransportType.ts","../../../../../src/types/storage/StorageKey.ts","../../../../../src/types/storage/Storage.ts","../../../../../src/types/storage/StorageKeyReturnDefaults.ts","../../../../src/types/P2PPairingRequest.ts","../../../../../src/types/beacon/SigningType.ts","../../../../src/types/ColorMode.ts","../../../../src/types/Regions.ts","../../../../src/types/P2PPairingResponse.ts","../../../../src/types/PostMessagePairingRequest.ts","../../../../src/types/WalletConnectPairingRequest.ts","../../../src/constants.ts","../../../src/MockWindow.ts","../../../src/MockAnalytics.ts","../../../../../src/clients/beacon-client/BeaconClient.ts","../../../../src/managers/StorageManager.ts","../../../../src/utils/get-account-identifier.ts","../../../../src/managers/PermissionValidator.ts","../../../../src/managers/AccountManager.ts","../../../../src/utils/get-sender-id.ts","../../../src/debug.ts","../../../../src/utils/Logger.ts","../../../../../src/clients/client/Client.ts","../../../../src/transports/Transport.ts","../../../../src/storage/LocalStorage.ts","../../../../src/storage/getStorage.ts","../../../src/Serializer.ts","../../../../src/managers/AppMetadataManager.ts","../../../../src/managers/PermissionManager.ts","../../../../src/managers/PeerManager.ts","../../../../../src/transports/clients/CommunicationClient.ts","../../../../src/storage/IndexedDBStorage.ts","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/bind.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/utils.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/AxiosError.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/toFormData.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/buildURL.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/InterceptorManager.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/defaults/transitional.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/platform/browser/index.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/platform/common/utils.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/platform/index.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/defaults/index.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/transformData.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/cancel/isCancel.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/cancel/CanceledError.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/cookies.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/buildFullPath.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/combineURLs.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/speedometer.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/adapters/xhr.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/settle.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/adapters/adapters.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/null.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/dispatchRequest.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/mergeConfig.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/env/data.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/validator.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/core/Axios.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/cancel/CancelToken.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/axios.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/spread.js","../node_modules/@airgap/beacon-transport-matrix/node_modules/axios/lib/helpers/isAxiosError.js","../../../../../src/matrix-client/models/MatrixMessage.ts","../../../../../src/matrix-client/utils/events.ts","../../../../../src/matrix-client/models/MatrixRoom.ts","../../../../src/matrix-client/MatrixClientStore.ts","../../../../src/matrix-client/MatrixHttpClient.ts","../../../../../src/matrix-client/services/MatrixRoomService.ts","../../../../../src/matrix-client/services/MatrixUserService.ts","../../../../../src/matrix-client/services/MatrixEventService.ts","../../../../src/matrix-client/EventEmitter.ts","../../../../../src/matrix-client/models/MatrixClientEvent.ts","../../../../src/matrix-client/MatrixClientEventEmitter.ts","../../../../src/matrix-client/MatrixClient.ts","../../../../src/communication-client/P2PCommunicationClient.ts","../../../src/P2PTransport.ts","../../../../src/transports/WalletP2PTransport.ts","../../../../src/interceptors/IncomingRequestInterceptor.ts","../../../../src/interceptors/OutgoingResponseInterceptor.ts","../../../src/index.ts","../../../../src/client/WalletClient.ts","../node_modules/@chakra-ui/toast/src/use-toast.tsx","../node_modules/@chakra-ui/transition/src/slide-fade.tsx","../node_modules/@chakra-ui/transition/src/scale-fade.tsx","../node_modules/@chakra-ui/modal/src/modal-transition.tsx","../node_modules/react-focus-lock/node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/focus-lock/dist/es2015/constants.js","../node_modules/react-focus-lock/dist/es2015/FocusGuard.js","../node_modules/react-focus-lock/dist/es2015/medium.js","../node_modules/react-focus-lock/dist/es2015/Lock.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/react-clientside-effect/lib/index.es.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/react-clientside-effect/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/focus-lock/dist/es2015/utils/array.js","../node_modules/focus-lock/dist/es2015/utils/is.js","../node_modules/focus-lock/dist/es2015/utils/tabOrder.js","../node_modules/focus-lock/dist/es2015/utils/tabUtils.js","../node_modules/focus-lock/dist/es2015/utils/tabbables.js","../node_modules/focus-lock/dist/es2015/utils/DOMutils.js","../node_modules/focus-lock/dist/es2015/utils/getActiveElement.js","../node_modules/focus-lock/dist/es2015/utils/safe.js","../node_modules/focus-lock/dist/es2015/utils/all-affected.js","../node_modules/focus-lock/dist/es2015/focusInside.js","../node_modules/focus-lock/dist/es2015/utils/correctFocus.js","../node_modules/focus-lock/dist/es2015/utils/firstFocus.js","../node_modules/focus-lock/dist/es2015/solver.js","../node_modules/focus-lock/dist/es2015/utils/auto-focus.js","../node_modules/focus-lock/dist/es2015/utils/parenting.js","../node_modules/focus-lock/dist/es2015/focusSolver.js","../node_modules/focus-lock/dist/es2015/moveFocusInside.js","../node_modules/focus-lock/dist/es2015/commands.js","../node_modules/react-focus-lock/dist/es2015/util.js","../node_modules/react-focus-lock/dist/es2015/Trap.js","../node_modules/focus-lock/dist/es2015/focusIsHidden.js","../node_modules/focus-lock/dist/es2015/focusables.js","../node_modules/react-focus-lock/dist/es2015/Combination.js","../node_modules/react-focus-lock/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/react-focus-lock/dist/es2015/index.js","../node_modules/@chakra-ui/dom-utils/dist/chunk-3XANSPY5.mjs","../node_modules/@chakra-ui/dom-utils/dist/chunk-ROURZMX4.mjs","../node_modules/@chakra-ui/dom-utils/dist/index.mjs","../node_modules/@chakra-ui/focus-lock/src/focus-lock.tsx","../node_modules/@chakra-ui/modal/src/modal-focus.tsx","../node_modules/@chakra-ui/modal/src/modal-content.tsx","../node_modules/@chakra-ui/modal/src/modal-close-button.tsx","../node_modules/@chakra-ui/modal/src/modal-header.tsx","../node_modules/@chakra-ui/object-utils/dist/chunk-R3DH46PF.mjs","../node_modules/@chakra-ui/layout/src/text.tsx","../node_modules/@chakra-ui/modal/src/modal-body.tsx","../node_modules/@chakra-ui/breakpoint-utils/dist/chunk-G72KV6MB.mjs","../node_modules/@chakra-ui/layout/src/aspect-ratio.tsx","../node_modules/@chakra-ui/descendant/src/utils.ts","../node_modules/@chakra-ui/descendant/src/descendant.ts","../node_modules/@chakra-ui/descendant/src/use-descendant.ts","../node_modules/@chakra-ui/accordion/src/accordion-context.ts","../node_modules/@chakra-ui/react-use-controllable-state/src/index.ts","../node_modules/@chakra-ui/accordion/src/use-accordion.ts","../node_modules/@chakra-ui/accordion/src/accordion.tsx","../node_modules/@chakra-ui/accordion/src/accordion-item.tsx","../node_modules/@chakra-ui/accordion/src/accordion-button.tsx","../node_modules/@chakra-ui/accordion/src/accordion-icon.tsx","../node_modules/@chakra-ui/transition/src/collapse.tsx","../node_modules/@chakra-ui/accordion/src/accordion-panel.tsx","../node_modules/@chakra-ui/form-control/src/form-control.tsx","../node_modules/@chakra-ui/form-control/src/form-error.tsx","../node_modules/@chakra-ui/modal/src/modal-footer.tsx","../node_modules/react-hook-form/src/utils/isCheckBoxInput.ts","../node_modules/react-hook-form/src/utils/isDateObject.ts","../node_modules/react-hook-form/src/utils/isNullOrUndefined.ts","../node_modules/react-hook-form/src/utils/isObject.ts","../node_modules/react-hook-form/src/logic/getEventValue.ts","../node_modules/react-hook-form/src/logic/isNameInFieldArray.ts","../node_modules/react-hook-form/src/logic/getNodeParentName.ts","../node_modules/react-hook-form/src/utils/isPlainObject.ts","../node_modules/react-hook-form/src/utils/isWeb.ts","../node_modules/react-hook-form/src/utils/cloneObject.ts","../node_modules/react-hook-form/src/utils/compact.ts","../node_modules/react-hook-form/src/utils/isUndefined.ts","../node_modules/react-hook-form/src/utils/get.ts","../node_modules/react-hook-form/src/utils/isBoolean.ts","../node_modules/react-hook-form/src/constants.ts","../node_modules/react-hook-form/src/useFormContext.tsx","../node_modules/react-hook-form/src/logic/getProxyFormState.ts","../node_modules/react-hook-form/src/utils/isEmptyObject.ts","../node_modules/react-hook-form/src/logic/shouldRenderFormState.ts","../node_modules/react-hook-form/src/utils/convertToArrayPayload.ts","../node_modules/react-hook-form/src/useSubscribe.ts","../node_modules/react-hook-form/src/utils/isString.ts","../node_modules/react-hook-form/src/logic/generateWatchOutput.ts","../node_modules/react-hook-form/src/utils/isKey.ts","../node_modules/react-hook-form/src/utils/stringToPath.ts","../node_modules/react-hook-form/src/utils/set.ts","../node_modules/react-hook-form/src/logic/appendErrors.ts","../node_modules/react-hook-form/src/logic/generateId.ts","../node_modules/react-hook-form/src/logic/getFocusFieldName.ts","../node_modules/react-hook-form/src/logic/getValidationModes.ts","../node_modules/react-hook-form/src/logic/isWatched.ts","../node_modules/react-hook-form/src/logic/iterateFieldsByAction.ts","../node_modules/react-hook-form/src/logic/updateFieldArrayRootError.ts","../node_modules/react-hook-form/src/utils/isFileInput.ts","../node_modules/react-hook-form/src/utils/isFunction.ts","../node_modules/react-hook-form/src/utils/isHTMLElement.ts","../node_modules/react-hook-form/src/utils/isMessage.ts","../node_modules/react-hook-form/src/utils/isRadioInput.ts","../node_modules/react-hook-form/src/utils/isRegex.ts","../node_modules/react-hook-form/src/logic/getCheckboxValue.ts","../node_modules/react-hook-form/src/logic/getRadioValue.ts","../node_modules/react-hook-form/src/logic/getValidateError.ts","../node_modules/react-hook-form/src/logic/getValueAndMessage.ts","../node_modules/react-hook-form/src/logic/validateField.ts","../node_modules/react-hook-form/src/utils/append.ts","../node_modules/react-hook-form/src/utils/fillEmptyArray.ts","../node_modules/react-hook-form/src/utils/insert.ts","../node_modules/react-hook-form/src/utils/move.ts","../node_modules/react-hook-form/src/utils/prepend.ts","../node_modules/react-hook-form/src/utils/remove.ts","../node_modules/react-hook-form/src/utils/swap.ts","../node_modules/react-hook-form/src/utils/unset.ts","../node_modules/react-hook-form/src/utils/update.ts","../node_modules/react-hook-form/src/utils/createSubject.ts","../node_modules/react-hook-form/src/utils/isPrimitive.ts","../node_modules/react-hook-form/src/utils/deepEqual.ts","../node_modules/react-hook-form/src/utils/isMultipleSelect.ts","../node_modules/react-hook-form/src/utils/isRadioOrCheckbox.ts","../node_modules/react-hook-form/src/utils/live.ts","../node_modules/react-hook-form/src/utils/objectHasFunction.ts","../node_modules/react-hook-form/src/logic/getDirtyFields.ts","../node_modules/react-hook-form/src/logic/getFieldValueAs.ts","../node_modules/react-hook-form/src/logic/getFieldValue.ts","../node_modules/react-hook-form/src/logic/getResolverOptions.ts","../node_modules/react-hook-form/src/logic/getRuleValue.ts","../node_modules/react-hook-form/src/logic/hasValidation.ts","../node_modules/react-hook-form/src/logic/schemaErrorLookup.ts","../node_modules/react-hook-form/src/logic/skipValidation.ts","../node_modules/react-hook-form/src/logic/unsetEmptyArray.ts","../node_modules/react-hook-form/src/logic/createFormControl.ts","../node_modules/react-hook-form/src/useForm.ts","../node_modules/@chakra-ui/card/src/card-context.tsx","../node_modules/@chakra-ui/card/src/card.tsx","../node_modules/@chakra-ui/card/src/card-body.tsx","components/AccountDrawer/JsValueWrap.tsx","../node_modules/@chakra-ui/form-control/src/form-label.tsx","../node_modules/@chakra-ui/react-children-utils/dist/index.mjs","../node_modules/@chakra-ui/input/src/input-group.tsx","../node_modules/@chakra-ui/form-control/src/use-form-control.ts","../node_modules/@chakra-ui/input/src/input.tsx","../node_modules/@chakra-ui/input/src/input-element.tsx","../node_modules/@chakra-ui/layout/src/list.tsx","../node_modules/@chakra-ui/tooltip/src/tooltip.transition.tsx","../node_modules/@chakra-ui/dom-utils/dist/chunk-4WEUWBTD.mjs","../node_modules/@chakra-ui/popper/src/utils.ts","../node_modules/@chakra-ui/popper/src/modifiers.ts","../node_modules/@chakra-ui/popper/src/popper.placement.ts","../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../node_modules/@popperjs/core/lib/utils/math.js","../node_modules/@popperjs/core/lib/utils/userAgent.js","../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../node_modules/@popperjs/core/lib/enums.js","../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../node_modules/@popperjs/core/lib/utils/debounce.js","../node_modules/@popperjs/core/lib/createPopper.js","../node_modules/@popperjs/core/lib/utils/mergeByName.js","../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../node_modules/@popperjs/core/lib/utils/getVariation.js","../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../node_modules/@popperjs/core/lib/modifiers/offset.js","../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../node_modules/@popperjs/core/lib/dom-utils/contains.js","../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../node_modules/@popperjs/core/lib/modifiers/flip.js","../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../node_modules/@popperjs/core/lib/utils/within.js","../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../node_modules/@popperjs/core/lib/modifiers/arrow.js","../node_modules/@popperjs/core/lib/modifiers/hide.js","../node_modules/@popperjs/core/lib/popper.js","../node_modules/@chakra-ui/popper/src/use-popper.ts","../node_modules/@chakra-ui/react-use-disclosure/src/index.ts","../node_modules/@chakra-ui/react-use-event-listener/src/index.ts","../node_modules/@chakra-ui/tooltip/src/use-tooltip.ts","../node_modules/@chakra-ui/tooltip/src/tooltip.tsx","../node_modules/utilities/object-utils/src/pick.ts","components/Identicon.tsx","components/AddressTile/AddressTileIcon.tsx","utils/account/derivationPathUtils.ts","utils/account/makeMnemonicAccount.ts","utils/hooks/contactsHooks.ts","utils/hooks/multisigHooks.ts","utils/hooks/getAccountDataHooks.ts","../node_modules/@ledgerhq/errors/src/helpers.ts","../node_modules/@ledgerhq/errors/src/index.ts","../node_modules/@ledgerhq/logs/src/index.ts","../node_modules/@ledgerhq/hw-transport/src/Transport.ts","../node_modules/@ledgerhq/devices/src/hid-framing.ts","../node_modules/@ledgerhq/devices/src/index.ts","../node_modules/@ledgerhq/hw-transport-webusb/src/webusb.ts","../node_modules/@ledgerhq/hw-transport-webusb/src/TransportWebUSB.ts","../node_modules/rxjs/src/internal/util/isFunction.ts","../node_modules/rxjs/src/internal/util/createErrorClass.ts","../node_modules/rxjs/src/internal/util/UnsubscriptionError.ts","../node_modules/rxjs/src/internal/util/arrRemove.ts","../node_modules/rxjs/src/internal/Subscription.ts","../node_modules/rxjs/src/internal/config.ts","../node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts","../node_modules/rxjs/src/internal/util/reportUnhandledError.ts","../node_modules/rxjs/src/internal/util/noop.ts","../node_modules/rxjs/src/internal/NotificationFactories.ts","../node_modules/rxjs/src/internal/util/errorContext.ts","../node_modules/rxjs/src/internal/Subscriber.ts","../node_modules/rxjs/src/internal/symbol/observable.ts","../node_modules/rxjs/src/internal/util/identity.ts","../node_modules/rxjs/src/internal/util/pipe.ts","../node_modules/rxjs/src/internal/Observable.ts","../node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts","../node_modules/rxjs/src/internal/Subject.ts","../node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts","../node_modules/rxjs/src/internal/ReplaySubject.ts","../node_modules/rxjs/src/internal/BehaviorSubject.ts","../node_modules/rxjs/src/internal/observable/throwError.ts","../node_modules/rxjs/src/internal/util/isArrayLike.ts","../node_modules/rxjs/src/internal/util/isPromise.ts","../node_modules/rxjs/src/internal/util/isInteropObservable.ts","../node_modules/rxjs/src/internal/util/isAsyncIterable.ts","../node_modules/rxjs/src/internal/util/throwUnobservableError.ts","../node_modules/rxjs/src/internal/symbol/iterator.ts","../node_modules/rxjs/src/internal/util/isIterable.ts","../node_modules/rxjs/src/internal/util/isReadableStreamLike.ts","../node_modules/rxjs/src/internal/observable/innerFrom.ts","../node_modules/rxjs/src/internal/observable/defer.ts","../node_modules/rxjs/src/internal/observable/empty.ts","../node_modules/rxjs/src/internal/observable/range.ts","../node_modules/rxjs/src/internal/util/isScheduler.ts","../node_modules/rxjs/src/internal/util/args.ts","../node_modules/rxjs/src/internal/util/executeSchedule.ts","../node_modules/rxjs/src/internal/util/lift.ts","../node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts","../node_modules/rxjs/src/internal/operators/observeOn.ts","../node_modules/rxjs/src/internal/operators/subscribeOn.ts","../node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts","../node_modules/rxjs/src/internal/scheduled/scheduled.ts","../node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts","../node_modules/rxjs/src/internal/scheduled/scheduleArray.ts","../node_modules/rxjs/src/internal/scheduled/schedulePromise.ts","../node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts","../node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts","../node_modules/rxjs/src/internal/observable/from.ts","../node_modules/rxjs/src/internal/observable/of.ts","../node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts","../node_modules/rxjs/src/internal/operators/map.ts","../node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts","../node_modules/rxjs/src/internal/observable/combineLatest.ts","../node_modules/rxjs/src/internal/util/createObject.ts","../node_modules/rxjs/src/internal/operators/mergeMap.ts","../node_modules/rxjs/src/internal/operators/mergeInternals.ts","../node_modules/rxjs/src/internal/operators/concatAll.ts","../node_modules/rxjs/src/internal/operators/mergeAll.ts","../node_modules/rxjs/src/internal/observable/concat.ts","../node_modules/rxjs/src/internal/observable/never.ts","../node_modules/rxjs/src/internal/scheduler/Action.ts","../node_modules/rxjs/src/internal/scheduler/intervalProvider.ts","../node_modules/rxjs/src/internal/scheduler/AsyncAction.ts","../node_modules/rxjs/src/internal/Scheduler.ts","../node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts","../node_modules/rxjs/src/internal/scheduler/async.ts","../node_modules/rxjs/src/internal/util/isDate.ts","../node_modules/rxjs/src/internal/observable/timer.ts","../node_modules/rxjs/src/internal/operators/switchMap.ts","../node_modules/rxjs/src/internal/operators/timeout.ts","../node_modules/rxjs/src/internal/operators/concatMap.ts","../node_modules/rxjs/src/internal/operators/endWith.ts","../node_modules/rxjs/src/internal/operators/tap.ts","../node_modules/rxjs/src/internal/operators/share.ts","../node_modules/rxjs/src/internal/operators/shareReplay.ts","../node_modules/rxjs/src/internal/operators/filter.ts","../node_modules/rxjs/src/internal/util/EmptyError.ts","../node_modules/rxjs/src/internal/operators/throwIfEmpty.ts","../node_modules/rxjs/src/internal/operators/first.ts","../node_modules/rxjs/src/internal/operators/take.ts","../node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts","../node_modules/rxjs/src/internal/operators/catchError.ts","../node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts","../node_modules/rxjs/src/internal/operators/retry.ts","../node_modules/rxjs/src/internal/operators/pluck.ts","../node_modules/rxjs/src/internal/operators/refCount.ts","../node_modules/rxjs/src/internal/observable/ConnectableObservable.ts","../node_modules/rxjs/src/internal/operators/connect.ts","../node_modules/rxjs/src/internal/observable/fromSubscribable.ts","../node_modules/rxjs/src/internal/operators/publish.ts","../node_modules/rxjs/src/internal/operators/multicast.ts","../node_modules/rxjs/src/internal/operators/takeWhile.ts","../node_modules/rxjs/src/internal/operators/startWith.ts","../node_modules/rxjs/src/internal/operators/takeUntil.ts","../node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts","utils/tezos/fakeSigner.ts","multisig/multisigUtils.ts","types/Operation.ts","utils/tezos/helpers.ts","utils/tezos/estimate.ts","../node_modules/@chriscdn/promise-semaphore/src/index.ts","../node_modules/@tzkt/oazapfts/src/runtime/util.ts","../node_modules/@tzkt/oazapfts/src/runtime/query.ts","../node_modules/@tzkt/oazapfts/src/index.ts","../node_modules/@tzkt/sdk-api/src/queryParamParsers.ts","../node_modules/@tzkt/sdk-api/src/index.ts","../node_modules/@tzkt/oazapfts/src/runtime/index.ts","utils/tezos/consts.ts","utils/tezos/fetch.ts","utils/tezos/execute.ts","utils/mnemonic.ts","utils/hooks/accountUtils.ts","utils/hooks/networkHooks.ts","utils/hooks/tokensHooks.ts","utils/format.ts","utils/hooks/assetsHooks.ts","components/AddressTile/useAddressKind.ts","components/PrettyNumber.tsx","components/AccountBalance.tsx","components/AddressTile/AddressTile.tsx","components/AddressAutocomplete/Suggestions.tsx","components/AddressAutocomplete/AddressAutocomplete.tsx","utils/beacon/BeaconNotification/panels/PermissionRequestPanel.tsx","utils/hooks/beaconHooks.ts","../node_modules/@chakra-ui/button/src/icon-button.tsx","../node_modules/react-icons/fc/index.esm.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@toruslabs/http-helpers/src/index.ts","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/util.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/native.js","../node_modules/oblivious-set/src/index.ts","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/options.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/indexed-db.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/localstorage.js","../node_modules/@toruslabs/broadcast-channel/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../node_modules/engine.io-parser/build/esm/commons.js","../node_modules/engine.io-parser/build/esm/encodePacket.browser.js","../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","../node_modules/engine.io-parser/build/esm/decodePacket.browser.js","../node_modules/engine.io-parser/build/esm/index.js","../node_modules/@socket.io/component-emitter/index.mjs","../node_modules/engine.io-client/build/esm/globalThis.browser.js","../node_modules/engine.io-client/build/esm/util.js","../node_modules/engine.io-client/build/esm/transport.js","../node_modules/engine.io-client/build/esm/contrib/parseqs.js","../node_modules/engine.io-client/build/esm/contrib/yeast.js","../node_modules/engine.io-client/build/esm/contrib/has-cors.js","../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js","../node_modules/engine.io-client/build/esm/transports/polling.js","../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js","../node_modules/engine.io-client/build/esm/transports/websocket.js","../node_modules/engine.io-client/build/esm/transports/webtransport.js","../node_modules/engine.io-client/build/esm/transports/index.js","../node_modules/engine.io-client/build/esm/contrib/parseuri.js","../node_modules/engine.io-client/build/esm/socket.js","../node_modules/engine.io-client/build/esm/index.js","../node_modules/socket.io-parser/build/esm/is-binary.js","../node_modules/socket.io-parser/build/esm/binary.js","../node_modules/socket.io-parser/build/esm/index.js","../node_modules/socket.io-client/build/esm/on.js","../node_modules/socket.io-client/build/esm/socket.js","../node_modules/socket.io-client/build/esm/contrib/backo2.js","../node_modules/socket.io-client/build/esm/manager.js","../node_modules/socket.io-client/build/esm/index.js","../node_modules/socket.io-client/build/esm/url.js","../node_modules/@toruslabs/eccrypto/src/index.ts","../node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/http-helpers/src/index.ts","../node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/metadata-helpers/src/utils.ts","../node_modules/@toruslabs/broadcast-channel/node_modules/@toruslabs/metadata-helpers/src/webAuthnShareResolver.ts","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/server.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/methods/simulate.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/method-chooser.js","../node_modules/@toruslabs/broadcast-channel/dist/esbrowser/broadcast-channel.js","../node_modules/jwt-decode/lib/atob.js","../node_modules/jwt-decode/lib/index.js","../node_modules/jwt-decode/lib/base64_url_decode.js","../node_modules/@toruslabs/constants/src/constants.ts","../node_modules/@toruslabs/fnd-base/src/endpoints.ts","../node_modules/@toruslabs/fnd-base/src/legacyMainnetConfig.ts","../node_modules/@toruslabs/fnd-base/src/pubKeys.ts","../node_modules/@toruslabs/fnd-base/src/sapphireNetworkConfig.ts","../node_modules/@toruslabs/fetch-node-details/src/nodeDetailManager.ts","../node_modules/@toruslabs/fnd-base/src/utils.ts","../node_modules/@toruslabs/torus.js/src/constants.ts","../node_modules/@toruslabs/torus.js/src/helpers/common.ts","../node_modules/@toruslabs/torus.js/src/helpers/errorUtils.ts","../node_modules/@toruslabs/torus.js/src/loglevel.ts","../node_modules/@toruslabs/torus.js/src/helpers/keyUtils.ts","../node_modules/@toruslabs/torus.js/src/Point.ts","../node_modules/@toruslabs/torus.js/src/Share.ts","../node_modules/@toruslabs/torus.js/src/Polynomial.ts","../node_modules/@toruslabs/torus.js/src/helpers/langrangeInterpolatePoly.ts","../node_modules/@toruslabs/torus.js/src/helpers/metadataUtils.ts","../node_modules/@toruslabs/torus.js/src/config.ts","../node_modules/@toruslabs/torus.js/src/some.ts","../node_modules/@toruslabs/torus.js/src/helpers/nodeUtils.ts","../node_modules/@toruslabs/torus.js/src/torus.ts","../node_modules/@toruslabs/metadata-helpers/src/utils.ts","../node_modules/@toruslabs/metadata-helpers/src/webAuthnShareResolver.ts","../node_modules/@toruslabs/customauth/src/utils/enums.ts","../node_modules/@toruslabs/customauth/src/utils/loglevel.ts","../node_modules/@toruslabs/customauth/src/utils/helpers.ts","../node_modules/@toruslabs/customauth/src/utils/PopupHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/AbstractLoginHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/DiscordHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/FacebookHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/GoogleHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/JwtHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/MockLoginHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/PasswordlessHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/RedditHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/TwitchHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/WebAuthnHandler.ts","../node_modules/@toruslabs/customauth/src/handlers/HandlerFactory.ts","../node_modules/@toruslabs/customauth/src/sentry.ts","../node_modules/@toruslabs/customauth/src/utils/StorageHelper.ts","../node_modules/@toruslabs/customauth/src/login.ts","../node_modules/@toruslabs/customauth/src/registerServiceWorker.ts","utils/withTimeout.ts","GoogleAuth/getGoogleCredentials.ts","utils/getErrorContext.ts","utils/hooks/useAsyncActionHandler.ts","GoogleAuth/GoogleAuth.tsx","components/FormErrorMessage.tsx","components/PasswordInput.tsx","components/SendFlow/SignButton.tsx","utils/beacon/BeaconNotification/panels/SignPayloadRequestPanel.tsx","assets/icons/WindowLink.tsx","components/SendFlow/SuccessStep.tsx","components/SendFlow/Beacon/useSignWithBeacon.tsx","components/AssetTiles/TezTile.tsx","components/SendFlow/SignPageFee.tsx","components/SendFlow/FormPageHeader.tsx","../node_modules/@chakra-ui/icon/src/create-icon.tsx","../node_modules/@chakra-ui/icons/src/ArrowBack.tsx","components/ModalBackButton.tsx","components/SendFlow/SignPageHeader.tsx","components/SendFlow/Beacon/ContractCallSignPage.tsx","components/SendFlow/Beacon/DelegationSignPage.tsx","components/SendFlow/Beacon/TezSignPage.tsx","components/SendFlow/Beacon/UndelegationSignPage.tsx","components/SendFlow/Beacon/BeaconSignPage.tsx","utils/beacon/BeaconNotification/BeaconRequestNotification.tsx","utils/beacon/types.ts","utils/beacon/beacon.tsx","utils/multisig/fetch.ts","utils/multisig/helpers.ts","utils/useAssetsPolling.ts","utils/useDeeplinkHandler.ts","GoogleAuth/parseTorusRedirectParams.ts","../node_modules/@chakra-ui/table/src/table-container.tsx","../node_modules/@chakra-ui/table/src/table.tsx","../node_modules/@chakra-ui/table/src/tbody.tsx","../node_modules/@chakra-ui/table/src/tr.tsx","../node_modules/@chakra-ui/table/src/td.tsx","../node_modules/react-icons/bs/index.esm.js","../node_modules/react-icons/rx/index.esm.js","components/CopyableText.tsx","components/ContactModal.tsx","../node_modules/@chakra-ui/layout/src/divider.tsx","../node_modules/@chakra-ui/react-use-animation-state/src/index.ts","../node_modules/@chakra-ui/react-use-focus-on-pointer-down/src/index.ts","../node_modules/@chakra-ui/react-use-focus-effect/src/index.ts","../node_modules/@chakra-ui/lazy-utils/dist/index.mjs","../node_modules/@chakra-ui/popover/src/use-popover.ts","../node_modules/@chakra-ui/popover/src/popover-context.ts","../node_modules/@chakra-ui/popover/src/popover.tsx","../node_modules/@chakra-ui/popover/src/popover-trigger.tsx","../node_modules/@chakra-ui/popover/src/popover-transition.tsx","../node_modules/@chakra-ui/popover/src/popover-content.tsx","../node_modules/@chakra-ui/popover/src/popover-body.tsx","components/PopoverMenu.tsx","components/RenameRemoveMenu.tsx","components/SendButton.tsx","components/SendFlow/OperationSignerSelector.tsx","types/AccountOperations.ts","utils/hooks/batchesHooks.ts","components/SendFlow/utils.tsx","components/SendFlow/Tez/SignPage.tsx","utils/redux/thunks/estimateAndUpdateBatch.ts","components/SendFlow/onSubmitFormActionHooks.tsx","components/SendFlow/Tez/FormPage.tsx","views/addressBook/ContactTable.tsx","components/ExternalLink.tsx","components/NoItems/index.tsx","../node_modules/@chakra-ui/media-query/src/use-media-query.ts","../node_modules/date-fns/_lib/getRoundingMethod.mjs","../node_modules/date-fns/toDate.mjs","../node_modules/date-fns/differenceInMilliseconds.mjs","../node_modules/date-fns/differenceInSeconds.mjs","../node_modules/date-fns/constants.mjs","../node_modules/date-fns/differenceInMinutes.mjs","../node_modules/date-fns/compareAsc.mjs","../node_modules/date-fns/differenceInCalendarMonths.mjs","../node_modules/date-fns/endOfDay.mjs","../node_modules/date-fns/endOfMonth.mjs","../node_modules/date-fns/isLastDayOfMonth.mjs","../node_modules/date-fns/differenceInMonths.mjs","../node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs","../node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs","../node_modules/date-fns/locale/en-US/_lib/formatLong.mjs","../node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs","../node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs","../node_modules/date-fns/locale/en-US/_lib/localize.mjs","../node_modules/date-fns/locale/_lib/buildMatchFn.mjs","../node_modules/date-fns/locale/en-US/_lib/match.mjs","../node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs","../node_modules/date-fns/locale/en-US.mjs","../node_modules/date-fns/_lib/defaultOptions.mjs","../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs","../node_modules/date-fns/formatDistance.mjs","components/BuyTez/BuyTezForm.tsx","assets/icons/CheckIcon.tsx","components/TopBar.tsx","views/addressBook/AddressBookView.tsx","views/batch/AccountSmallTile.tsx","views/batch/OperationEstimationStatus.tsx","../node_modules/@chakra-ui/hooks/src/use-outside-click.ts","../node_modules/@chakra-ui/popover/src/popover-arrow.tsx","components/AddressPill/AddressPillIcon.tsx","components/AddressPill/AddressPillText.tsx","components/AddressPill/useAddressKind.ts","components/AddressPill/AddressPill.tsx","views/batch/OperationRecipient.tsx","utils/token/utils.ts","views/batch/OperationView.tsx","components/AccountTile/AccountTileIcon.tsx","views/home/SelectedAccountContext.ts","components/AccountTile/AccountTile.tsx","components/ConfirmationModal.tsx","components/SendFlow/BatchModalBody.tsx","components/SendFlow/Batch/SignPage.tsx","views/batch/BatchView.tsx","utils/helpers.ts","components/CSVFileUploader/utils.ts","components/CSVFileUploader/CSVFileUploadForm.tsx","components/CSVFileUploader/index.tsx","views/batch/BatchPage.tsx","../node_modules/@chakra-ui/layout/src/grid.tsx","../node_modules/@chakra-ui/layout/src/grid-item.tsx","components/ClickableCard.tsx","views/help/HelpView.tsx","../node_modules/@chakra-ui/modal/src/drawer.tsx","../node_modules/@chakra-ui/transition/src/slide.tsx","../node_modules/@chakra-ui/modal/src/drawer-content.tsx","views/home/AccountGroupPopover.tsx","../node_modules/@chakra-ui/layout/src/stack/stack-item.tsx","../node_modules/@chakra-ui/layout/src/stack/stack.tsx","../node_modules/@chakra-ui/layout/src/stack/stack.utils.tsx","../node_modules/@chakra-ui/layout/src/stack/v-stack.tsx","components/CircleIcon.tsx","components/Onboarding/ModalContentWrapper.tsx","components/Onboarding/masterPassword/password/EnterPassword.tsx","components/Onboarding/nameAccount/NameAccountDisplay.tsx","views/home/DeriveAccountDisplay.tsx.tsx","components/NestedScroll.tsx","components/Onboarding/connectOptions/ConnectOptions.tsx","utils/redux/thunks/secretKeyAccount.ts","utils/hooks/setAccountDataHooks.ts","components/Onboarding/connectOrCreate/ConnectOrCreate.tsx","components/Select.tsx","components/Onboarding/derivationPath/DerivationPath.tsx","../node_modules/@chakra-ui/checkbox/src/checkbox-context.ts","../node_modules/@chakra-ui/checkbox/src/checkbox-icon.tsx","../node_modules/@chakra-ui/visually-hidden/src/visually-hidden.style.ts","../node_modules/@zag-js/dom-query/src/platform.ts","../node_modules/@zag-js/dom-query/src/index.ts","../node_modules/@zag-js/focus-visible/src/index.ts","../node_modules/@chakra-ui/checkbox/src/use-checkbox.ts","../node_modules/@chakra-ui/checkbox/src/checkbox.tsx","../node_modules/@chakra-ui/checkbox/src/use-initial-animation-state.tsx","components/Onboarding/eula/Eula.tsx","components/Onboarding/FakeAccount.tsx","components/Onboarding/masterPassword/password/EnterAndConfirmPassword.tsx","components/Onboarding/masterPassword/MasterPassword.tsx","components/Onboarding/notice/Notice.tsx","utils/redux/persistor.ts","components/Onboarding/restoreBackupFile/RestoreBackupFile.tsx","components/Onboarding/restoreBackupFile/utils.ts","components/Onboarding/restoreLedger/RestoreLedger.tsx","utils/ledger/pk.ts","../node_modules/@chakra-ui/icons/src/ChevronDown.tsx","../node_modules/@chakra-ui/select/src/select-field.tsx","../node_modules/@chakra-ui/select/src/select.tsx","../node_modules/utilities/object-utils/src/split.ts","components/MnemonicAutocomplete.tsx","components/Onboarding/restoreMnemonic/RestoreMnemonic.tsx","../node_modules/@chakra-ui/textarea/src/textarea.tsx","components/Onboarding/restoreSecretKey/RestoreSecretKey.tsx","../node_modules/@chakra-ui/layout/src/simple-grid.tsx","components/Onboarding/showSeedphrase/ShowSeedphrase.tsx","components/Onboarding/verifySeedphrase/VerifySeedphrase.tsx","components/Onboarding/useOnboardingModal.tsx","components/useStepHistory.tsx","components/Onboarding/nameAccount/NameAccount.tsx","components/SendFlow/MultisigAccount/SignTransactionFormPage.tsx","multisig/multisigContract.ts","components/SendFlow/MultisigAccount/SelectApproversFormPage.tsx","../node_modules/react-hook-form/src/useFieldArray.ts","components/SendFlow/MultisigAccount/NameMultisigFormPage.tsx","views/home/AccountsList.tsx","views/home/DrawerTopButtons.tsx","../node_modules/@chakra-ui/clickable/src/use-clickable.ts","../node_modules/@chakra-ui/clickable/src/use-event-listeners.ts","../node_modules/@chakra-ui/tabs/src/use-tabs.ts","../node_modules/@chakra-ui/tabs/src/tabs.tsx","../node_modules/@chakra-ui/tabs/src/tab-list.tsx","../node_modules/@chakra-ui/tabs/src/tab-panels.tsx","../node_modules/@chakra-ui/tabs/src/tab-panel.tsx","../node_modules/date-fns/startOfDay.mjs","../node_modules/date-fns/differenceInCalendarDays.mjs","../node_modules/date-fns/constructFrom.mjs","../node_modules/date-fns/startOfYear.mjs","../node_modules/date-fns/getDayOfYear.mjs","../node_modules/date-fns/startOfWeek.mjs","../node_modules/date-fns/startOfISOWeek.mjs","../node_modules/date-fns/getISOWeekYear.mjs","../node_modules/date-fns/startOfISOWeekYear.mjs","../node_modules/date-fns/getISOWeek.mjs","../node_modules/date-fns/getWeekYear.mjs","../node_modules/date-fns/startOfWeekYear.mjs","../node_modules/date-fns/getWeek.mjs","../node_modules/date-fns/_lib/addLeadingZeros.mjs","../node_modules/date-fns/_lib/format/lightFormatters.mjs","../node_modules/date-fns/_lib/format/formatters.mjs","../node_modules/date-fns/_lib/format/longFormatters.mjs","../node_modules/date-fns/_lib/protectedTokens.mjs","../node_modules/date-fns/isDate.mjs","../node_modules/date-fns/isValid.mjs","../node_modules/date-fns/format.mjs","../node_modules/date-fns/formatRelative.mjs","components/SendFlow/Delegation/SignPage.tsx","components/SendFlow/Delegation/FormPage.tsx","components/SendFlow/Undelegation/SignPage.tsx","components/SendFlow/Undelegation/FormPage.tsx","components/AccountDrawer/AssetsPanel/DelegationDisplay.tsx","utils/hooks/delegationHooks.ts","../node_modules/react-icons/fi/index.esm.js","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigDecodedOperationItem.tsx","multisig/decode/schemas.ts","multisig/decode/UnrecognizedMichelsonError.ts","multisig/decode/decodeLambda.ts","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigDecodedOperations.tsx","../node_modules/react-icons/cg/index.esm.js","components/IconAndTextBtn.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigActionButton.tsx","components/SendFlow/Multisig/SignPage.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTile.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigPendingAccordionItem.tsx","components/AccountDrawer/AssetsPanel/MultisigPendingAccordion/index.tsx","components/AccountDrawer/AssetsPanel/ViewAllLink.tsx","components/AccountDrawer/AssetsPanel/NFTsGrid.tsx","components/OperationTile/OperationTileContext.ts","components/OperationTile/Fee.tsx","components/OperationTile/OperationStatus.tsx","components/OperationTile/OperationTypeWrapper.tsx","../node_modules/date-fns/differenceInDays.mjs","components/OperationTile/Timestamp.tsx","components/OperationTile/TzktLink.tsx","components/OperationTile/useShowAddress.tsx","components/OperationTile/ContractCallTile.tsx","components/OperationTile/DelegationTile.tsx","components/OperationTile/OriginationTile.tsx","components/OperationTile/TransactionDirectionIcon.tsx","components/OperationTile/TokenTransferTile.tsx","components/OperationTile/TransactionTile.tsx","components/OperationTile/OperationTile.tsx","components/AccountDrawer/AssetsPanel/OperationListDisplay.tsx","views/tokens/TokenNameWithIcon.tsx","components/AccountDrawer/AssetsPanel/TokenList.tsx","utils/tzkt/helpers.ts","views/operations/useGetOperations.tsx","../node_modules/@chakra-ui/tabs/src/tab.tsx","components/SmallTab.tsx","components/AccountDrawer/AssetsPanel/AssetsPanel.tsx","../node_modules/@chakra-ui/layout/src/wrap.tsx","components/AccountDrawer/MultisigApprovers.tsx","components/AccountDrawer/RenameAccountModal.tsx","utils/redux/thunks/renameAccount.ts","components/AccountDrawer/RenameRemoveMenuSwitch.tsx","components/TezRecapDisplay.tsx","components/AccountDrawer/AccountDrawerDisplay.tsx","types/Delegation.ts","components/ReceiveModal.tsx","components/AccountDrawer/index.tsx","views/nfts/drawer/AttributesAccordionItem.tsx","components/TruncatedTextWithTooltip.tsx","components/TzktLink.tsx","views/nfts/drawer/PropertiesAccordionItem.tsx","views/nfts/drawer/TagsSection.tsx","components/SendFlow/SendNFTRecapTile.tsx","components/SendFlow/NFT/SignPage.tsx","components/SendFlow/NFT/FormPage.tsx","views/nfts/NFTDrawerCard.tsx","views/nfts/NFTDrawerBody.tsx","views/home/AccountListWithDrawer.tsx","views/home/HomeView.tsx","views/nfts/SelectedNFTContext.ts","views/nfts/NFTCard.tsx","views/nfts/NFTGallery.tsx","../node_modules/@chakra-ui/menu/src/use-shortcut.ts","../node_modules/@chakra-ui/react-use-outside-click/src/index.ts","../node_modules/@chakra-ui/menu/src/use-menu.ts","../node_modules/@chakra-ui/menu/src/menu.tsx","../node_modules/@chakra-ui/menu/src/menu-button.tsx","../node_modules/@chakra-ui/menu/src/menu-list.tsx","../node_modules/@chakra-ui/menu/src/get-next-item-from-search.ts","../node_modules/@chakra-ui/menu/src/menu-command.tsx","../node_modules/@chakra-ui/menu/src/styled-menu-item.tsx","../node_modules/@chakra-ui/menu/src/menu-icon.tsx","../node_modules/@chakra-ui/menu/src/menu-item.tsx","components/AccountSelector/AccountListDisplay.tsx","components/useAccountsFilter.tsx","views/nfts/NftsView.tsx","views/operations/OperationsView.tsx","utils/beacon/BeaconPeers.tsx","views/settings/DAppsDrawerCard.tsx","../node_modules/react-icons/ai/index.esm.js","views/settings/ErrorLogsDrawerCard.tsx","../node_modules/@chakra-ui/radio/src/use-radio-group.ts","../node_modules/@chakra-ui/radio/src/radio-group.tsx","../node_modules/@chakra-ui/radio/src/use-radio.ts","../node_modules/@chakra-ui/radio/src/radio.tsx","views/settings/network/UpsertNetworkModal.tsx","views/settings/network/NetworkSettingsDrawerBody.tsx","views/settings/network/NetworkSettingsDrawerCard.tsx","components/ChangePassword/ChangePasswordForm.tsx","components/Offboarding/OffboardingForm.tsx","views/settings/SettingsView.tsx","components/Offboarding/useOffboardingModal.tsx","components/TokenTile.tsx","components/SendFlow/Token/SignPage.tsx","components/SendFlow/Token/FormPage.tsx","views/tokens/AccountTokens.tsx","views/tokens/TokensPage.tsx","components/AppVersion.tsx","components/CollapseMenuButton/CollapseMenuButton.tsx","components/MakiLogo.tsx","components/NetworkSelector.tsx","components/UpdateAppButton.tsx","components/SideNavbar.tsx","components/CollapseMenuButton/useCollapseMenu.ts","views/withSideMenu.tsx","components/Slider.tsx","components/SliderItem.tsx","WelcomeScreen.tsx","Router.tsx","index.tsx"],"sourcesContent":["// Register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\nvar isLocalhost = function () { return Boolean(\n window.location.hostname === \"localhost\" ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === \"[::1]\" ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n ); };\n\nvar waitWindowLoad;\n// https://github.com/yyx990803/register-service-worker/pull/33#discussion_r394181861\nif (typeof window !== \"undefined\") {\n // Typically, a browser that supports `serviceWorker` should also have supported\n // `Promise`. But as this package can be used in environments without service\n // worker support (in that case it would do nothing), there's a chance that\n // `Promise` does not exist. So we must check for its existence first.\n if (typeof document !== \"undefined\" && (document.readyState === \"interactive\" || document.readyState === \"complete\")) {\n waitWindowLoad = Promise.resolve();\n } else if (typeof Promise !== \"undefined\") {\n waitWindowLoad = new Promise(function (resolve) { return window.addEventListener(\"load\", resolve); });\n } else {\n waitWindowLoad = { then: function (cb) { return window.addEventListener(\"load\", cb); } };\n }\n}\n\nexports.register = function register(swUrl, hooks) {\n if ( hooks === void 0 ) hooks = {};\n\n var registrationOptions = hooks.registrationOptions; if ( registrationOptions === void 0 ) registrationOptions = {};\n delete hooks.registrationOptions;\n\n var emit = function (hook) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n if (hooks && hooks[hook]) {\n hooks[hook].apply(hooks, args);\n }\n };\n\n if (\"serviceWorker\" in navigator) {\n waitWindowLoad.then(function () {\n if (isLocalhost()) {\n // This is running on localhost. Lets check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, emit, registrationOptions);\n navigator.serviceWorker.ready.then(function (registration) {\n emit(\"ready\", registration);\n });\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl, emit, registrationOptions);\n navigator.serviceWorker.ready.then(function (registration) {\n emit(\"ready\", registration);\n });\n }\n });\n }\n}\n\nfunction handleError(emit, error) {\n if (!navigator.onLine) {\n emit(\"offline\");\n }\n emit(\"error\", error);\n}\n\nfunction registerValidSW(swUrl, emit, registrationOptions) {\n navigator.serviceWorker\n .register(swUrl, registrationOptions)\n .then(function (registration) {\n emit(\"registered\", registration);\n if (registration.waiting) {\n emit(\"updated\", registration);\n return;\n }\n registration.onupdatefound = function () {\n emit(\"updatefound\", registration);\n var installingWorker = registration.installing;\n installingWorker.onstatechange = function () {\n if (installingWorker.state === \"installed\") {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n emit(\"updated\", registration);\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n emit(\"cached\", registration);\n }\n }\n };\n };\n })\n .catch(function (error) { return handleError(emit, error); });\n}\n\nfunction checkValidServiceWorker(swUrl, emit, registrationOptions) {\n // Check if the service worker can be found.\n fetch(swUrl)\n .then(function (response) {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (response.status === 404) {\n // No service worker found.\n emit(\"error\", new Error((\"Service worker not found at \" + swUrl)));\n unregister();\n } else if (response.headers.get(\"content-type\").indexOf(\"javascript\") === -1) {\n emit(\"error\", new Error(\"Expected \" + swUrl + \" to have javascript content-type, \" + \"but received \" + (response.headers.get(\"content-type\"))));\n unregister();\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, emit, registrationOptions);\n }\n })\n .catch(function (error) { return handleError(emit, error); });\n}\n\nexports.unregister = function unregister() {\n if (\"serviceWorker\" in navigator) {\n navigator.serviceWorker.ready.then(function (registration) {\n registration.unregister();\n });\n }\n}\n","export function number(n: number) {\n if (!Number.isSafeInteger(n) || n < 0) throw new Error(`Wrong positive integer: ${n}`);\n}\n\nexport function bool(b: boolean) {\n if (typeof b !== 'boolean') throw new Error(`Expected boolean, not ${b}`);\n}\n\nexport function bytes(b: Uint8Array | undefined, ...lengths: number[]) {\n if (!(b instanceof Uint8Array)) throw new TypeError('Expected Uint8Array');\n if (lengths.length > 0 && !lengths.includes(b.length))\n throw new TypeError(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`);\n}\n\ntype Hash = {\n (data: Uint8Array): Uint8Array;\n blockLen: number;\n outputLen: number;\n create: any;\n};\nexport function hash(hash: Hash) {\n if (typeof hash !== 'function' || typeof hash.create !== 'function')\n throw new Error('Hash should be wrapped by utils.wrapConstructor');\n number(hash.outputLen);\n number(hash.blockLen);\n}\n\nexport function exists(instance: any, checkFinished = true) {\n if (instance.destroyed) throw new Error('Hash instance has been destroyed');\n if (checkFinished && instance.finished) throw new Error('Hash#digest() has already been called');\n}\nexport function output(out: any, instance: any) {\n bytes(out);\n const min = instance.outputLen;\n if (out.length < min) {\n throw new Error(`digestInto() expects output buffer of length at least ${min}`);\n }\n}\n\nconst assert = {\n number,\n bool,\n bytes,\n hash,\n exists,\n output,\n};\n\nexport default assert;\n","import assert from './_assert.js';\nimport { Hash, createView, Input, toBytes } from './utils.js';\n\n// Polyfill for Safari 14\nfunction setBigUint64(view: DataView, byteOffset: number, value: bigint, isLE: boolean): void {\n if (typeof view.setBigUint64 === 'function') return view.setBigUint64(byteOffset, value, isLE);\n const _32n = BigInt(32);\n const _u32_max = BigInt(0xffffffff);\n const wh = Number((value >> _32n) & _u32_max);\n const wl = Number(value & _u32_max);\n const h = isLE ? 4 : 0;\n const l = isLE ? 0 : 4;\n view.setUint32(byteOffset + h, wh, isLE);\n view.setUint32(byteOffset + l, wl, isLE);\n}\n\n// Base SHA2 class (RFC 6234)\nexport abstract class SHA2> extends Hash {\n protected abstract process(buf: DataView, offset: number): void;\n protected abstract get(): number[];\n protected abstract set(...args: number[]): void;\n abstract destroy(): void;\n protected abstract roundClean(): void;\n // For partial updates less than block size\n protected buffer: Uint8Array;\n protected view: DataView;\n protected finished = false;\n protected length = 0;\n protected pos = 0;\n protected destroyed = false;\n\n constructor(\n readonly blockLen: number,\n public outputLen: number,\n readonly padOffset: number,\n readonly isLE: boolean\n ) {\n super();\n this.buffer = new Uint8Array(blockLen);\n this.view = createView(this.buffer);\n }\n update(data: Input): this {\n assert.exists(this);\n const { view, buffer, blockLen } = this;\n data = toBytes(data);\n const len = data.length;\n for (let pos = 0; pos < len; ) {\n const take = Math.min(blockLen - this.pos, len - pos);\n // Fast path: we have at least one block in input, cast it to view and process\n if (take === blockLen) {\n const dataView = createView(data);\n for (; blockLen <= len - pos; pos += blockLen) this.process(dataView, pos);\n continue;\n }\n buffer.set(data.subarray(pos, pos + take), this.pos);\n this.pos += take;\n pos += take;\n if (this.pos === blockLen) {\n this.process(view, 0);\n this.pos = 0;\n }\n }\n this.length += data.length;\n this.roundClean();\n return this;\n }\n digestInto(out: Uint8Array) {\n assert.exists(this);\n assert.output(out, this);\n this.finished = true;\n // Padding\n // We can avoid allocation of buffer for padding completely if it\n // was previously not allocated here. But it won't change performance.\n const { buffer, view, blockLen, isLE } = this;\n let { pos } = this;\n // append the bit '1' to the message\n buffer[pos++] = 0b10000000;\n this.buffer.subarray(pos).fill(0);\n // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again\n if (this.padOffset > blockLen - pos) {\n this.process(view, 0);\n pos = 0;\n }\n // Pad until full block byte with zeros\n for (let i = pos; i < blockLen; i++) buffer[i] = 0;\n // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that\n // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen.\n // So we just write lowest 64 bits of that value.\n setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE);\n this.process(view, 0);\n const oview = createView(out);\n const len = this.outputLen;\n // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT\n if (len % 4) throw new Error('_sha2: outputLen should be aligned to 32bit');\n const outLen = len / 4;\n const state = this.get();\n if (outLen > state.length) throw new Error('_sha2: outputLen bigger than state');\n for (let i = 0; i < outLen; i++) oview.setUint32(4 * i, state[i], isLE);\n }\n digest() {\n const { buffer, outputLen } = this;\n this.digestInto(buffer);\n const res = buffer.slice(0, outputLen);\n this.destroy();\n return res;\n }\n _cloneInto(to?: T): T {\n to ||= new (this.constructor as any)() as T;\n to.set(...this.get());\n const { blockLen, buffer, length, finished, destroyed, pos } = this;\n to.length = length;\n to.pos = pos;\n to.finished = finished;\n to.destroyed = destroyed;\n if (length % blockLen) to.buffer.set(buffer);\n return to;\n }\n}\n","const U32_MASK64 = BigInt(2 ** 32 - 1);\nconst _32n = BigInt(32);\n\n// We are not using BigUint64Array, because they are extremely slow as per 2022\nexport function fromBig(n: bigint, le = false) {\n if (le) return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\n\nexport function split(lst: bigint[], le = false) {\n let Ah = new Uint32Array(lst.length);\n let Al = new Uint32Array(lst.length);\n for (let i = 0; i < lst.length; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\n\nexport const toBig = (h: number, l: number) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// for Shift in [0, 32)\nconst shrSH = (h: number, l: number, s: number) => h >>> s;\nconst shrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in [1, 32)\nconst rotrSH = (h: number, l: number, s: number) => (h >>> s) | (l << (32 - s));\nconst rotrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotrBH = (h: number, l: number, s: number) => (h << (64 - s)) | (l >>> (s - 32));\nconst rotrBL = (h: number, l: number, s: number) => (h >>> (s - 32)) | (l << (64 - s));\n// Right rotate for shift===32 (just swaps l&h)\nconst rotr32H = (h: number, l: number) => l;\nconst rotr32L = (h: number, l: number) => h;\n// Left rotate for Shift in [1, 32)\nconst rotlSH = (h: number, l: number, s: number) => (h << s) | (l >>> (32 - s));\nconst rotlSL = (h: number, l: number, s: number) => (l << s) | (h >>> (32 - s));\n// Left rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotlBH = (h: number, l: number, s: number) => (l << (s - 32)) | (h >>> (64 - s));\nconst rotlBL = (h: number, l: number, s: number) => (h << (s - 32)) | (l >>> (64 - s));\n\n// JS uses 32-bit signed integers for bitwise operations which means we cannot\n// simple take carry out of low bit sum by shift, we need to use division.\n// Removing \"export\" has 5% perf penalty -_-\nexport function add(Ah: number, Al: number, Bh: number, Bl: number) {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\nconst add3L = (Al: number, Bl: number, Cl: number) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\nconst add3H = (low: number, Ah: number, Bh: number, Ch: number) =>\n (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\nconst add4L = (Al: number, Bl: number, Cl: number, Dl: number) =>\n (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\nconst add4H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number) =>\n (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\nconst add5L = (Al: number, Bl: number, Cl: number, Dl: number, El: number) =>\n (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\nconst add5H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) =>\n (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n\n// prettier-ignore\nconst u64 = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\nexport default u64;\n","declare const globalThis: Record | undefined;\nexport const crypto =\n typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;\n","import assert from './_assert.js';\nimport { Hash, CHash, Input, toBytes } from './utils.js';\n// HMAC (RFC 2104)\nclass HMAC> extends Hash> {\n oHash: T;\n iHash: T;\n blockLen: number;\n outputLen: number;\n private finished = false;\n private destroyed = false;\n\n constructor(hash: CHash, _key: Input) {\n super();\n assert.hash(hash);\n const key = toBytes(_key);\n this.iHash = hash.create() as T;\n if (typeof this.iHash.update !== 'function')\n throw new TypeError('Expected instance of class which extends utils.Hash');\n this.blockLen = this.iHash.blockLen;\n this.outputLen = this.iHash.outputLen;\n const blockLen = this.blockLen;\n const pad = new Uint8Array(blockLen);\n // blockLen can be bigger than outputLen\n pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);\n for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36;\n this.iHash.update(pad);\n // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone\n this.oHash = hash.create() as T;\n // Undo internal XOR && apply outer XOR\n for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36 ^ 0x5c;\n this.oHash.update(pad);\n pad.fill(0);\n }\n update(buf: Input) {\n assert.exists(this);\n this.iHash.update(buf);\n return this;\n }\n digestInto(out: Uint8Array) {\n assert.exists(this);\n assert.bytes(out, this.outputLen);\n this.finished = true;\n this.iHash.digestInto(out);\n this.oHash.update(out);\n this.oHash.digestInto(out);\n this.destroy();\n }\n digest() {\n const out = new Uint8Array(this.oHash.outputLen);\n this.digestInto(out);\n return out;\n }\n _cloneInto(to?: HMAC): HMAC {\n // Create new instance without calling constructor since key already in state and we don't know it.\n to ||= Object.create(Object.getPrototypeOf(this), {});\n const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;\n to = to as this;\n to.finished = finished;\n to.destroyed = destroyed;\n to.blockLen = blockLen;\n to.outputLen = outputLen;\n to.oHash = oHash._cloneInto(to.oHash);\n to.iHash = iHash._cloneInto(to.iHash);\n return to;\n }\n destroy() {\n this.destroyed = true;\n this.oHash.destroy();\n this.iHash.destroy();\n }\n}\n\n/**\n * HMAC: RFC2104 message authentication code.\n * @param hash - function that would be used e.g. sha256\n * @param key - message key\n * @param message - message data\n */\nexport const hmac = (hash: CHash, key: Input, message: Input): Uint8Array =>\n new HMAC(hash, key).update(message).digest();\nhmac.create = (hash: CHash, key: Input) => new HMAC(hash, key);\n","import assert from './_assert.js';\nimport { hmac } from './hmac.js';\nimport { Hash, CHash, Input, createView, toBytes, checkOpts, asyncLoop } from './utils.js';\n\n// PBKDF (RFC 2898)\nexport type Pbkdf2Opt = {\n c: number; // Iterations\n dkLen?: number; // Desired key length in bytes (Intended output length in octets of the derived key\n asyncTick?: number; // Maximum time in ms for which async function can block execution\n};\n// Common prologue and epilogue for sync/async functions\nfunction pbkdf2Init(hash: CHash, _password: Input, _salt: Input, _opts: Pbkdf2Opt) {\n assert.hash(hash);\n const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts);\n const { c, dkLen, asyncTick } = opts;\n assert.number(c);\n assert.number(dkLen);\n assert.number(asyncTick);\n if (c < 1) throw new Error('PBKDF2: iterations (c) should be >= 1');\n const password = toBytes(_password);\n const salt = toBytes(_salt);\n // DK = PBKDF2(PRF, Password, Salt, c, dkLen);\n const DK = new Uint8Array(dkLen);\n // U1 = PRF(Password, Salt + INT_32_BE(i))\n const PRF = hmac.create(hash, password);\n const PRFSalt = PRF._cloneInto().update(salt);\n return { c, dkLen, asyncTick, DK, PRF, PRFSalt };\n}\n\nfunction pbkdf2Output>(\n PRF: Hash,\n PRFSalt: Hash,\n DK: Uint8Array,\n prfW: Hash,\n u: Uint8Array\n) {\n PRF.destroy();\n PRFSalt.destroy();\n if (prfW) prfW.destroy();\n u.fill(0);\n return DK;\n}\n\n/**\n * PBKDF2-HMAC: RFC 2898 key derivation function\n * @param hash - hash function that would be used e.g. sha256\n * @param password - password from which a derived key is generated\n * @param salt - cryptographic salt\n * @param opts - {c, dkLen} where c is work factor and dkLen is output message size\n */\nexport function pbkdf2(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) {\n const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts);\n let prfW: any; // Working copy\n const arr = new Uint8Array(4);\n const view = createView(arr);\n const u = new Uint8Array(PRF.outputLen);\n // DK = T1 + T2 + ⋯ + Tdklen/hlen\n for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) {\n // Ti = F(Password, Salt, c, i)\n const Ti = DK.subarray(pos, pos + PRF.outputLen);\n view.setInt32(0, ti, false);\n // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc\n // U1 = PRF(Password, Salt + INT_32_BE(i))\n (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u);\n Ti.set(u.subarray(0, Ti.length));\n for (let ui = 1; ui < c; ui++) {\n // Uc = PRF(Password, Uc−1)\n PRF._cloneInto(prfW).update(u).digestInto(u);\n for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i];\n }\n }\n return pbkdf2Output(PRF, PRFSalt, DK, prfW, u);\n}\n\nexport async function pbkdf2Async(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) {\n const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts);\n let prfW: any; // Working copy\n const arr = new Uint8Array(4);\n const view = createView(arr);\n const u = new Uint8Array(PRF.outputLen);\n // DK = T1 + T2 + ⋯ + Tdklen/hlen\n for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) {\n // Ti = F(Password, Salt, c, i)\n const Ti = DK.subarray(pos, pos + PRF.outputLen);\n view.setInt32(0, ti, false);\n // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc\n // U1 = PRF(Password, Salt + INT_32_BE(i))\n (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u);\n Ti.set(u.subarray(0, Ti.length));\n await asyncLoop(c - 1, asyncTick, (i) => {\n // Uc = PRF(Password, Uc−1)\n PRF._cloneInto(prfW).update(u).digestInto(u);\n for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i];\n });\n }\n return pbkdf2Output(PRF, PRFSalt, DK, prfW, u);\n}\n","import { SHA2 } from './_sha2.js';\nimport { rotr, wrapConstructor } from './utils.js';\n\n// Choice: a ? b : c\nconst Chi = (a: number, b: number, c: number) => (a & b) ^ (~a & c);\n// Majority function, true if any two inpust is true\nconst Maj = (a: number, b: number, c: number) => (a & b) ^ (a & c) ^ (b & c);\n\n// Round constants:\n// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311)\n// prettier-ignore\nconst SHA256_K = new Uint32Array([\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n]);\n\n// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19):\n// prettier-ignore\nconst IV = new Uint32Array([\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n]);\n\n// Temporary buffer, not used to store anything between runs\n// Named this way because it matches specification.\nconst SHA256_W = new Uint32Array(64);\nclass SHA256 extends SHA2 {\n // We cannot use array here since array allows indexing by variable\n // which means optimizer/compiler cannot use registers.\n A = IV[0] | 0;\n B = IV[1] | 0;\n C = IV[2] | 0;\n D = IV[3] | 0;\n E = IV[4] | 0;\n F = IV[5] | 0;\n G = IV[6] | 0;\n H = IV[7] | 0;\n\n constructor() {\n super(64, 32, 8, false);\n }\n protected get(): [number, number, number, number, number, number, number, number] {\n const { A, B, C, D, E, F, G, H } = this;\n return [A, B, C, D, E, F, G, H];\n }\n // prettier-ignore\n protected set(\n A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number\n ) {\n this.A = A | 0;\n this.B = B | 0;\n this.C = C | 0;\n this.D = D | 0;\n this.E = E | 0;\n this.F = F | 0;\n this.G = G | 0;\n this.H = H | 0;\n }\n protected process(view: DataView, offset: number): void {\n // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4) SHA256_W[i] = view.getUint32(offset, false);\n for (let i = 16; i < 64; i++) {\n const W15 = SHA256_W[i - 15];\n const W2 = SHA256_W[i - 2];\n const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3);\n const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10);\n SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0;\n }\n // Compression function main loop, 64 rounds\n let { A, B, C, D, E, F, G, H } = this;\n for (let i = 0; i < 64; i++) {\n const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);\n const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);\n const T2 = (sigma0 + Maj(A, B, C)) | 0;\n H = G;\n G = F;\n F = E;\n E = (D + T1) | 0;\n D = C;\n C = B;\n B = A;\n A = (T1 + T2) | 0;\n }\n // Add the compressed chunk to the current hash value\n A = (A + this.A) | 0;\n B = (B + this.B) | 0;\n C = (C + this.C) | 0;\n D = (D + this.D) | 0;\n E = (E + this.E) | 0;\n F = (F + this.F) | 0;\n G = (G + this.G) | 0;\n H = (H + this.H) | 0;\n this.set(A, B, C, D, E, F, G, H);\n }\n protected roundClean() {\n SHA256_W.fill(0);\n }\n destroy() {\n this.set(0, 0, 0, 0, 0, 0, 0, 0);\n this.buffer.fill(0);\n }\n}\n// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf\nclass SHA224 extends SHA256 {\n A = 0xc1059ed8 | 0;\n B = 0x367cd507 | 0;\n C = 0x3070dd17 | 0;\n D = 0xf70e5939 | 0;\n E = 0xffc00b31 | 0;\n F = 0x68581511 | 0;\n G = 0x64f98fa7 | 0;\n H = 0xbefa4fa4 | 0;\n constructor() {\n super();\n this.outputLen = 28;\n }\n}\n\n/**\n * SHA2-256 hash function\n * @param message - data that would be hashed\n */\nexport const sha256 = wrapConstructor(() => new SHA256());\nexport const sha224 = wrapConstructor(() => new SHA224());\n","import assert from './_assert.js';\nimport u64 from './_u64.js';\nimport {\n Hash,\n u32,\n Input,\n toBytes,\n wrapConstructor,\n wrapConstructorWithOpts,\n HashXOF,\n} from './utils.js';\n\n// Various per round constants calculations\nconst [SHA3_PI, SHA3_ROTL, _SHA3_IOTA]: [number[], number[], bigint[]] = [[], [], []];\nconst _0n = BigInt(0);\nconst _1n = BigInt(1);\nconst _2n = BigInt(2);\nconst _7n = BigInt(7);\nconst _256n = BigInt(256);\nconst _0x71n = BigInt(0x71);\nfor (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {\n // Pi\n [x, y] = [y, (2 * x + 3 * y) % 5];\n SHA3_PI.push(2 * (5 * y + x));\n // Rotational\n SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64);\n // Iota\n let t = _0n;\n for (let j = 0; j < 7; j++) {\n R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n;\n if (R & _2n) t ^= _1n << ((_1n << BigInt(j)) - _1n);\n }\n _SHA3_IOTA.push(t);\n}\nconst [SHA3_IOTA_H, SHA3_IOTA_L] = u64.split(_SHA3_IOTA, true);\n\n// Left rotation (without 0, 32, 64)\nconst rotlH = (h: number, l: number, s: number) =>\n s > 32 ? u64.rotlBH(h, l, s) : u64.rotlSH(h, l, s);\nconst rotlL = (h: number, l: number, s: number) =>\n s > 32 ? u64.rotlBL(h, l, s) : u64.rotlSL(h, l, s);\n\n// Same as keccakf1600, but allows to skip some rounds\nexport function keccakP(s: Uint32Array, rounds: number = 24) {\n const B = new Uint32Array(5 * 2);\n // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js)\n for (let round = 24 - rounds; round < 24; round++) {\n // Theta θ\n for (let x = 0; x < 10; x++) B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];\n for (let x = 0; x < 10; x += 2) {\n const idx1 = (x + 8) % 10;\n const idx0 = (x + 2) % 10;\n const B0 = B[idx0];\n const B1 = B[idx0 + 1];\n const Th = rotlH(B0, B1, 1) ^ B[idx1];\n const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];\n for (let y = 0; y < 50; y += 10) {\n s[x + y] ^= Th;\n s[x + y + 1] ^= Tl;\n }\n }\n // Rho (ρ) and Pi (π)\n let curH = s[2];\n let curL = s[3];\n for (let t = 0; t < 24; t++) {\n const shift = SHA3_ROTL[t];\n const Th = rotlH(curH, curL, shift);\n const Tl = rotlL(curH, curL, shift);\n const PI = SHA3_PI[t];\n curH = s[PI];\n curL = s[PI + 1];\n s[PI] = Th;\n s[PI + 1] = Tl;\n }\n // Chi (χ)\n for (let y = 0; y < 50; y += 10) {\n for (let x = 0; x < 10; x++) B[x] = s[y + x];\n for (let x = 0; x < 10; x++) s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];\n }\n // Iota (ι)\n s[0] ^= SHA3_IOTA_H[round];\n s[1] ^= SHA3_IOTA_L[round];\n }\n B.fill(0);\n}\n\nexport class Keccak extends Hash implements HashXOF {\n protected state: Uint8Array;\n protected pos = 0;\n protected posOut = 0;\n protected finished = false;\n protected state32: Uint32Array;\n protected destroyed = false;\n // NOTE: we accept arguments in bytes instead of bits here.\n constructor(\n public blockLen: number,\n public suffix: number,\n public outputLen: number,\n protected enableXOF = false,\n protected rounds: number = 24\n ) {\n super();\n // Can be passed from user as dkLen\n assert.number(outputLen);\n // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes\n if (0 >= this.blockLen || this.blockLen >= 200)\n throw new Error('Sha3 supports only keccak-f1600 function');\n this.state = new Uint8Array(200);\n this.state32 = u32(this.state);\n }\n protected keccak() {\n keccakP(this.state32, this.rounds);\n this.posOut = 0;\n this.pos = 0;\n }\n update(data: Input) {\n assert.exists(this);\n const { blockLen, state } = this;\n data = toBytes(data);\n const len = data.length;\n for (let pos = 0; pos < len; ) {\n const take = Math.min(blockLen - this.pos, len - pos);\n for (let i = 0; i < take; i++) state[this.pos++] ^= data[pos++];\n if (this.pos === blockLen) this.keccak();\n }\n return this;\n }\n protected finish() {\n if (this.finished) return;\n this.finished = true;\n const { state, suffix, pos, blockLen } = this;\n // Do the padding\n state[pos] ^= suffix;\n if ((suffix & 0x80) !== 0 && pos === blockLen - 1) this.keccak();\n state[blockLen - 1] ^= 0x80;\n this.keccak();\n }\n protected writeInto(out: Uint8Array): Uint8Array {\n assert.exists(this, false);\n assert.bytes(out);\n this.finish();\n const bufferOut = this.state;\n const { blockLen } = this;\n for (let pos = 0, len = out.length; pos < len; ) {\n if (this.posOut >= blockLen) this.keccak();\n const take = Math.min(blockLen - this.posOut, len - pos);\n out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);\n this.posOut += take;\n pos += take;\n }\n return out;\n }\n xofInto(out: Uint8Array): Uint8Array {\n // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF\n if (!this.enableXOF) throw new Error('XOF is not possible for this instance');\n return this.writeInto(out);\n }\n xof(bytes: number): Uint8Array {\n assert.number(bytes);\n return this.xofInto(new Uint8Array(bytes));\n }\n digestInto(out: Uint8Array) {\n assert.output(out, this);\n if (this.finished) throw new Error('digest() was already called');\n this.writeInto(out);\n this.destroy();\n return out;\n }\n digest() {\n return this.digestInto(new Uint8Array(this.outputLen));\n }\n destroy() {\n this.destroyed = true;\n this.state.fill(0);\n }\n _cloneInto(to?: Keccak): Keccak {\n const { blockLen, suffix, outputLen, rounds, enableXOF } = this;\n to ||= new Keccak(blockLen, suffix, outputLen, enableXOF, rounds);\n to.state32.set(this.state32);\n to.pos = this.pos;\n to.posOut = this.posOut;\n to.finished = this.finished;\n to.rounds = rounds;\n // Suffix can change in cSHAKE\n to.suffix = suffix;\n to.outputLen = outputLen;\n to.enableXOF = enableXOF;\n to.destroyed = this.destroyed;\n return to;\n }\n}\n\nconst gen = (suffix: number, blockLen: number, outputLen: number) =>\n wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));\n\nexport const sha3_224 = gen(0x06, 144, 224 / 8);\n/**\n * SHA3-256 hash function\n * @param message - that would be hashed\n */\nexport const sha3_256 = gen(0x06, 136, 256 / 8);\nexport const sha3_384 = gen(0x06, 104, 384 / 8);\nexport const sha3_512 = gen(0x06, 72, 512 / 8);\nexport const keccak_224 = gen(0x01, 144, 224 / 8);\n/**\n * keccak-256 hash function. Different from SHA3-256.\n * @param message - that would be hashed\n */\nexport const keccak_256 = gen(0x01, 136, 256 / 8);\nexport const keccak_384 = gen(0x01, 104, 384 / 8);\nexport const keccak_512 = gen(0x01, 72, 512 / 8);\n\nexport type ShakeOpts = { dkLen?: number };\n\nconst genShake = (suffix: number, blockLen: number, outputLen: number) =>\n wrapConstructorWithOpts(\n (opts: ShakeOpts = {}) =>\n new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)\n );\n\nexport const shake128 = genShake(0x1f, 168, 128 / 8);\nexport const shake256 = genShake(0x1f, 136, 256 / 8);\n","import { SHA2 } from './_sha2.js';\nimport u64 from './_u64.js';\nimport { wrapConstructor } from './utils.js';\n\n// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409):\n// prettier-ignore\nconst [SHA512_Kh, SHA512_Kl] = u64.split([\n '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc',\n '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118',\n '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2',\n '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694',\n '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65',\n '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5',\n '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4',\n '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70',\n '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df',\n '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b',\n '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30',\n '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8',\n '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8',\n '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3',\n '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec',\n '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b',\n '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178',\n '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b',\n '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c',\n '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817'\n].map(n => BigInt(n)));\n\n// Temporary buffer, not used to store anything between runs\nconst SHA512_W_H = new Uint32Array(80);\nconst SHA512_W_L = new Uint32Array(80);\n\nexport class SHA512 extends SHA2 {\n // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers.\n // Also looks cleaner and easier to verify with spec.\n // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19):\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0x6a09e667 | 0;\n Al = 0xf3bcc908 | 0;\n Bh = 0xbb67ae85 | 0;\n Bl = 0x84caa73b | 0;\n Ch = 0x3c6ef372 | 0;\n Cl = 0xfe94f82b | 0;\n Dh = 0xa54ff53a | 0;\n Dl = 0x5f1d36f1 | 0;\n Eh = 0x510e527f | 0;\n El = 0xade682d1 | 0;\n Fh = 0x9b05688c | 0;\n Fl = 0x2b3e6c1f | 0;\n Gh = 0x1f83d9ab | 0;\n Gl = 0xfb41bd6b | 0;\n Hh = 0x5be0cd19 | 0;\n Hl = 0x137e2179 | 0;\n\n constructor() {\n super(128, 64, 16, false);\n }\n // prettier-ignore\n protected get(): [\n number, number, number, number, number, number, number, number,\n number, number, number, number, number, number, number, number\n ] {\n const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];\n }\n // prettier-ignore\n protected set(\n Ah: number, Al: number, Bh: number, Bl: number, Ch: number, Cl: number, Dh: number, Dl: number,\n Eh: number, El: number, Fh: number, Fl: number, Gh: number, Gl: number, Hh: number, Hl: number\n ) {\n this.Ah = Ah | 0;\n this.Al = Al | 0;\n this.Bh = Bh | 0;\n this.Bl = Bl | 0;\n this.Ch = Ch | 0;\n this.Cl = Cl | 0;\n this.Dh = Dh | 0;\n this.Dl = Dl | 0;\n this.Eh = Eh | 0;\n this.El = El | 0;\n this.Fh = Fh | 0;\n this.Fl = Fl | 0;\n this.Gh = Gh | 0;\n this.Gl = Gl | 0;\n this.Hh = Hh | 0;\n this.Hl = Hl | 0;\n }\n protected process(view: DataView, offset: number) {\n // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4) {\n SHA512_W_H[i] = view.getUint32(offset);\n SHA512_W_L[i] = view.getUint32((offset += 4));\n }\n for (let i = 16; i < 80; i++) {\n // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7)\n const W15h = SHA512_W_H[i - 15] | 0;\n const W15l = SHA512_W_L[i - 15] | 0;\n const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7);\n const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7);\n // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6)\n const W2h = SHA512_W_H[i - 2] | 0;\n const W2l = SHA512_W_L[i - 2] | 0;\n const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6);\n const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6);\n // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16];\n const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);\n const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);\n SHA512_W_H[i] = SUMh | 0;\n SHA512_W_L[i] = SUMl | 0;\n }\n let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n // Compression function main loop, 80 rounds\n for (let i = 0; i < 80; i++) {\n // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41)\n const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41);\n const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41);\n //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const CHIh = (Eh & Fh) ^ (~Eh & Gh);\n const CHIl = (El & Fl) ^ (~El & Gl);\n // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]\n // prettier-ignore\n const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);\n const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);\n const T1l = T1ll | 0;\n // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39)\n const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39);\n const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39);\n const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch);\n const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl);\n Hh = Gh | 0;\n Hl = Gl | 0;\n Gh = Fh | 0;\n Gl = Fl | 0;\n Fh = Eh | 0;\n Fl = El | 0;\n ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));\n Dh = Ch | 0;\n Dl = Cl | 0;\n Ch = Bh | 0;\n Cl = Bl | 0;\n Bh = Ah | 0;\n Bl = Al | 0;\n const All = u64.add3L(T1l, sigma0l, MAJl);\n Ah = u64.add3H(All, T1h, sigma0h, MAJh);\n Al = All | 0;\n }\n // Add the compressed chunk to the current hash value\n ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));\n ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));\n ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));\n ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));\n ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));\n ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));\n ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));\n ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));\n this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);\n }\n protected roundClean() {\n SHA512_W_H.fill(0);\n SHA512_W_L.fill(0);\n }\n destroy() {\n this.buffer.fill(0);\n this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\n }\n}\n\nclass SHA512_224 extends SHA512 {\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0x8c3d37c8 | 0;\n Al = 0x19544da2 | 0;\n Bh = 0x73e19966 | 0;\n Bl = 0x89dcd4d6 | 0;\n Ch = 0x1dfab7ae | 0;\n Cl = 0x32ff9c82 | 0;\n Dh = 0x679dd514 | 0;\n Dl = 0x582f9fcf | 0;\n Eh = 0x0f6d2b69 | 0;\n El = 0x7bd44da8 | 0;\n Fh = 0x77e36f73 | 0;\n Fl = 0x04c48942 | 0;\n Gh = 0x3f9d85a8 | 0;\n Gl = 0x6a1d36c8 | 0;\n Hh = 0x1112e6ad | 0;\n Hl = 0x91d692a1 | 0;\n\n constructor() {\n super();\n this.outputLen = 28;\n }\n}\n\nclass SHA512_256 extends SHA512 {\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0x22312194 | 0;\n Al = 0xfc2bf72c | 0;\n Bh = 0x9f555fa3 | 0;\n Bl = 0xc84c64c2 | 0;\n Ch = 0x2393b86b | 0;\n Cl = 0x6f53b151 | 0;\n Dh = 0x96387719 | 0;\n Dl = 0x5940eabd | 0;\n Eh = 0x96283ee2 | 0;\n El = 0xa88effe3 | 0;\n Fh = 0xbe5e1e25 | 0;\n Fl = 0x53863992 | 0;\n Gh = 0x2b0199fc | 0;\n Gl = 0x2c85b8aa | 0;\n Hh = 0x0eb72ddc | 0;\n Hl = 0x81c52ca2 | 0;\n\n constructor() {\n super();\n this.outputLen = 32;\n }\n}\n\nclass SHA384 extends SHA512 {\n // h -- high 32 bits, l -- low 32 bits\n Ah = 0xcbbb9d5d | 0;\n Al = 0xc1059ed8 | 0;\n Bh = 0x629a292a | 0;\n Bl = 0x367cd507 | 0;\n Ch = 0x9159015a | 0;\n Cl = 0x3070dd17 | 0;\n Dh = 0x152fecd8 | 0;\n Dl = 0xf70e5939 | 0;\n Eh = 0x67332667 | 0;\n El = 0xffc00b31 | 0;\n Fh = 0x8eb44a87 | 0;\n Fl = 0x68581511 | 0;\n Gh = 0xdb0c2e0d | 0;\n Gl = 0x64f98fa7 | 0;\n Hh = 0x47b5481d | 0;\n Hl = 0xbefa4fa4 | 0;\n\n constructor() {\n super();\n this.outputLen = 48;\n }\n}\n\nexport const sha512 = wrapConstructor(() => new SHA512());\nexport const sha512_224 = wrapConstructor(() => new SHA512_224());\nexport const sha512_256 = wrapConstructor(() => new SHA512_256());\nexport const sha384 = wrapConstructor(() => new SHA384());\n","/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n\n// We use `globalThis.crypto`, but node.js versions earlier than v19 don't\n// declare it in global scope. For node.js, package.json#exports field mapping\n// rewrites import from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated, we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\n\n// prettier-ignore\nexport type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array |\n Uint16Array | Int16Array | Uint32Array | Int32Array;\n\n// Cast array to different type\nexport const u8 = (arr: TypedArray) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\nexport const u32 = (arr: TypedArray) =>\n new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n\n// Cast array to view\nexport const createView = (arr: TypedArray) =>\n new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n\n// The rotate right (circular right shift) operation for uint32\nexport const rotr = (word: number, shift: number) => (word << (32 - shift)) | (word >>> shift);\n\n// big-endian hardware is rare. Just in case someone still decides to run hashes:\n// early-throw an error because we don't support BE yet.\nexport const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44;\nif (!isLE) throw new Error('Non little-endian hardware is not supported');\n\nconst hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0'));\n/**\n * @example bytesToHex(Uint8Array.from([0xde, 0xad, 0xbe, 0xef])) // 'deadbeef'\n */\nexport function bytesToHex(uint8a: Uint8Array): string {\n // pre-caching improves the speed 6x\n if (!(uint8a instanceof Uint8Array)) throw new Error('Uint8Array expected');\n let hex = '';\n for (let i = 0; i < uint8a.length; i++) {\n hex += hexes[uint8a[i]];\n }\n return hex;\n}\n\n/**\n * @example hexToBytes('deadbeef') // Uint8Array.from([0xde, 0xad, 0xbe, 0xef])\n */\nexport function hexToBytes(hex: string): Uint8Array {\n if (typeof hex !== 'string') {\n throw new TypeError('hexToBytes: expected string, got ' + typeof hex);\n }\n if (hex.length % 2) throw new Error('hexToBytes: received invalid unpadded hex');\n const array = new Uint8Array(hex.length / 2);\n for (let i = 0; i < array.length; i++) {\n const j = i * 2;\n const hexByte = hex.slice(j, j + 2);\n const byte = Number.parseInt(hexByte, 16);\n if (Number.isNaN(byte) || byte < 0) throw new Error('Invalid byte sequence');\n array[i] = byte;\n }\n return array;\n}\n\n// There is no setImmediate in browser and setTimeout is slow.\n// call of async fn will return Promise, which will be fullfiled only on\n// next scheduler queue processing step and this is exactly what we need.\nexport const nextTick = async () => {};\n\n// Returns control to thread each 'tick' ms to avoid blocking\nexport async function asyncLoop(iters: number, tick: number, cb: (i: number) => void) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick) continue;\n await nextTick();\n ts += diff;\n }\n}\n\n// Global symbols in both browsers and Node.js since v11\n// See https://github.com/microsoft/TypeScript/issues/31535\ndeclare const TextEncoder: any;\ndeclare const TextDecoder: any;\n\nexport function utf8ToBytes(str: string): Uint8Array {\n if (typeof str !== 'string') {\n throw new TypeError(`utf8ToBytes expected string, got ${typeof str}`);\n }\n return new TextEncoder().encode(str);\n}\n\nexport type Input = Uint8Array | string;\nexport function toBytes(data: Input): Uint8Array {\n if (typeof data === 'string') data = utf8ToBytes(data);\n if (!(data instanceof Uint8Array))\n throw new TypeError(`Expected input type is Uint8Array (got ${typeof data})`);\n return data;\n}\n\n/**\n * Concats Uint8Array-s into one; like `Buffer.concat([buf1, buf2])`\n * @example concatBytes(buf1, buf2)\n */\nexport function concatBytes(...arrays: Uint8Array[]): Uint8Array {\n if (!arrays.every((a) => a instanceof Uint8Array)) throw new Error('Uint8Array list expected');\n if (arrays.length === 1) return arrays[0];\n const length = arrays.reduce((a, arr) => a + arr.length, 0);\n const result = new Uint8Array(length);\n for (let i = 0, pad = 0; i < arrays.length; i++) {\n const arr = arrays[i];\n result.set(arr, pad);\n pad += arr.length;\n }\n return result;\n}\n\n// For runtime check if class implements interface\nexport abstract class Hash> {\n abstract blockLen: number; // Bytes per block\n abstract outputLen: number; // Bytes in output\n abstract update(buf: Input): this;\n // Writes digest into buf\n abstract digestInto(buf: Uint8Array): void;\n abstract digest(): Uint8Array;\n /**\n * Resets internal state. Makes Hash instance unusable.\n * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed\n * by user, they will need to manually call `destroy()` when zeroing is necessary.\n */\n abstract destroy(): void;\n /**\n * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()`\n * when no options are passed.\n * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal\n * buffers are overwritten => causes buffer overwrite which is used for digest in some cases.\n * There are no guarantees for clean-up because it's impossible in JS.\n */\n abstract _cloneInto(to?: T): T;\n // Safe version that clones internal state\n clone(): T {\n return this._cloneInto();\n }\n}\n\n/**\n * XOF: streaming API to read digest in chunks.\n * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name.\n * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot\n * destroy state, next call can require more bytes.\n */\nexport type HashXOF> = Hash & {\n xof(bytes: number): Uint8Array; // Read 'bytes' bytes from digest stream\n xofInto(buf: Uint8Array): Uint8Array; // read buf.length bytes from digest stream into buf\n};\n\n// Check if object doens't have custom constructor (like Uint8Array/Array)\nconst isPlainObject = (obj: any) =>\n Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object;\n\ntype EmptyObj = {};\nexport function checkOpts(\n defaults: T1,\n opts?: T2\n): T1 & T2 {\n if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts)))\n throw new TypeError('Options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged as T1 & T2;\n}\n\nexport type CHash = ReturnType;\n\nexport function wrapConstructor>(hashConstructor: () => Hash) {\n const hashC = (message: Input): Uint8Array => hashConstructor().update(toBytes(message)).digest();\n const tmp = hashConstructor();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashConstructor();\n return hashC;\n}\n\nexport function wrapConstructorWithOpts, T extends Object>(\n hashCons: (opts?: T) => Hash\n) {\n const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({} as T);\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts: T) => hashCons(opts);\n return hashC;\n}\n\n/**\n * Secure PRNG. Uses `globalThis.crypto` or node.js crypto module.\n */\nexport function randomBytes(bytesLength = 32): Uint8Array {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package binary provides functions for encoding and decoding numbers in byte arrays.\n */\n\nimport { isSafeInteger } from \"@stablelib/int\";\n\n// TODO(dchest): add asserts for correct value ranges and array offsets.\n\n/**\n * Reads 2 bytes from array starting at offset as big-endian\n * signed 16-bit integer and returns it.\n */\nexport function readInt16BE(array: Uint8Array, offset = 0): number {\n return (((array[offset + 0] << 8) | array[offset + 1]) << 16) >> 16;\n}\n\n/**\n * Reads 2 bytes from array starting at offset as big-endian\n * unsigned 16-bit integer and returns it.\n */\nexport function readUint16BE(array: Uint8Array, offset = 0): number {\n return ((array[offset + 0] << 8) | array[offset + 1]) >>> 0;\n}\n\n/**\n * Reads 2 bytes from array starting at offset as little-endian\n * signed 16-bit integer and returns it.\n */\nexport function readInt16LE(array: Uint8Array, offset = 0): number {\n return (((array[offset + 1] << 8) | array[offset]) << 16) >> 16;\n}\n\n/**\n * Reads 2 bytes from array starting at offset as little-endian\n * unsigned 16-bit integer and returns it.\n */\nexport function readUint16LE(array: Uint8Array, offset = 0): number {\n return ((array[offset + 1] << 8) | array[offset]) >>> 0;\n}\n\n/**\n * Writes 2-byte big-endian representation of 16-bit unsigned\n * value to byte array starting at offset.\n *\n * If byte array is not given, creates a new 2-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint16BE(value: number, out = new Uint8Array(2), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 8;\n out[offset + 1] = value >>> 0;\n return out;\n}\n\nexport const writeInt16BE = writeUint16BE;\n\n/**\n * Writes 2-byte little-endian representation of 16-bit unsigned\n * value to array starting at offset.\n *\n * If byte array is not given, creates a new 2-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint16LE(value: number, out = new Uint8Array(2), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 0;\n out[offset + 1] = value >>> 8;\n return out;\n}\n\nexport const writeInt16LE = writeUint16LE;\n\n/**\n * Reads 4 bytes from array starting at offset as big-endian\n * signed 32-bit integer and returns it.\n */\nexport function readInt32BE(array: Uint8Array, offset = 0): number {\n return (array[offset] << 24) |\n (array[offset + 1] << 16) |\n (array[offset + 2] << 8) |\n array[offset + 3];\n}\n\n/**\n * Reads 4 bytes from array starting at offset as big-endian\n * unsigned 32-bit integer and returns it.\n */\nexport function readUint32BE(array: Uint8Array, offset = 0): number {\n return ((array[offset] << 24) |\n (array[offset + 1] << 16) |\n (array[offset + 2] << 8) |\n array[offset + 3]) >>> 0;\n}\n\n/**\n * Reads 4 bytes from array starting at offset as little-endian\n * signed 32-bit integer and returns it.\n */\nexport function readInt32LE(array: Uint8Array, offset = 0): number {\n return (array[offset + 3] << 24) |\n (array[offset + 2] << 16) |\n (array[offset + 1] << 8) |\n array[offset];\n}\n\n/**\n * Reads 4 bytes from array starting at offset as little-endian\n * unsigned 32-bit integer and returns it.\n */\nexport function readUint32LE(array: Uint8Array, offset = 0): number {\n return ((array[offset + 3] << 24) |\n (array[offset + 2] << 16) |\n (array[offset + 1] << 8) |\n array[offset]) >>> 0;\n}\n\n/**\n * Writes 4-byte big-endian representation of 32-bit unsigned\n * value to byte array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint32BE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 24;\n out[offset + 1] = value >>> 16;\n out[offset + 2] = value >>> 8;\n out[offset + 3] = value >>> 0;\n return out;\n}\n\nexport const writeInt32BE = writeUint32BE;\n\n/**\n * Writes 4-byte little-endian representation of 32-bit unsigned\n * value to array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint32LE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n out[offset + 0] = value >>> 0;\n out[offset + 1] = value >>> 8;\n out[offset + 2] = value >>> 16;\n out[offset + 3] = value >>> 24;\n return out;\n}\n\n\nexport const writeInt32LE = writeUint32LE;\n\n/**\n * Reads 8 bytes from array starting at offset as big-endian\n * signed 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports exact\n * numbers in range -9007199254740991 to 9007199254740991.\n * If the number stored in the byte array is outside this range,\n * the result is not exact.\n */\nexport function readInt64BE(array: Uint8Array, offset = 0): number {\n const hi = readInt32BE(array, offset);\n const lo = readInt32BE(array, offset + 4);\n return hi * 0x100000000 + lo - ((lo>>31) * 0x100000000);\n}\n\n/**\n * Reads 8 bytes from array starting at offset as big-endian\n * unsigned 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports values up to 2^53-1.\n */\nexport function readUint64BE(array: Uint8Array, offset = 0): number {\n const hi = readUint32BE(array, offset);\n const lo = readUint32BE(array, offset + 4);\n return hi * 0x100000000 + lo;\n}\n\n/**\n * Reads 8 bytes from array starting at offset as little-endian\n * signed 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports exact\n * numbers in range -9007199254740991 to 9007199254740991.\n * If the number stored in the byte array is outside this range,\n * the result is not exact.\n */\nexport function readInt64LE(array: Uint8Array, offset = 0): number {\n const lo = readInt32LE(array, offset);\n const hi = readInt32LE(array, offset + 4);\n return hi * 0x100000000 + lo - ((lo>>31) * 0x100000000);\n}\n\n\n/**\n * Reads 8 bytes from array starting at offset as little-endian\n * unsigned 64-bit integer and returns it.\n *\n * IMPORTANT: due to JavaScript limitation, supports values up to 2^53-1.\n */\nexport function readUint64LE(array: Uint8Array, offset = 0): number {\n const lo = readUint32LE(array, offset);\n const hi = readUint32LE(array, offset + 4);\n return hi * 0x100000000 + lo;\n}\n\n/**\n * Writes 8-byte big-endian representation of 64-bit unsigned\n * value to byte array starting at offset.\n *\n * Due to JavaScript limitation, supports values up to 2^53-1.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint64BE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n writeUint32BE(value / 0x100000000 >>> 0, out, offset);\n writeUint32BE(value >>> 0, out, offset + 4);\n return out;\n}\n\nexport const writeInt64BE = writeUint64BE;\n\n/**\n * Writes 8-byte little-endian representation of 64-bit unsigned\n * value to byte array starting at offset.\n *\n * Due to JavaScript limitation, supports values up to 2^53-1.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeUint64LE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n writeUint32LE(value >>> 0, out, offset);\n writeUint32LE(value / 0x100000000 >>> 0, out, offset + 4);\n return out;\n}\n\nexport const writeInt64LE = writeUint64LE;\n\n/**\n * Reads bytes from array starting at offset as big-endian\n * unsigned bitLen-bit integer and returns it.\n *\n * Supports bit lengths divisible by 8, up to 48.\n */\nexport function readUintBE(bitLength: number, array: Uint8Array, offset = 0): number {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"readUintBE supports only bitLengths divisible by 8\");\n }\n if (bitLength / 8 > array.length - offset) {\n throw new Error(\"readUintBE: array is too short for the given bitLength\");\n }\n let result = 0;\n let mul = 1;\n for (let i = bitLength / 8 + offset - 1; i >= offset; i--) {\n result += array[i] * mul;\n mul *= 256;\n }\n return result;\n}\n\n/**\n * Reads bytes from array starting at offset as little-endian\n * unsigned bitLen-bit integer and returns it.\n *\n * Supports bit lengths divisible by 8, up to 48.\n */\nexport function readUintLE(bitLength: number, array: Uint8Array, offset = 0): number {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"readUintLE supports only bitLengths divisible by 8\");\n }\n if (bitLength / 8 > array.length - offset) {\n throw new Error(\"readUintLE: array is too short for the given bitLength\");\n }\n let result = 0;\n let mul = 1;\n for (let i = offset; i < offset + bitLength / 8; i++) {\n result += array[i] * mul;\n mul *= 256;\n }\n return result;\n}\n\n/**\n * Writes a big-endian representation of bitLen-bit unsigned\n * value to array starting at offset.\n *\n * Supports bit lengths divisible by 8, up to 48.\n *\n * If byte array is not given, creates a new one.\n *\n * Returns the output byte array.\n */\nexport function writeUintBE(bitLength: number, value: number,\n out = new Uint8Array(bitLength / 8), offset = 0): Uint8Array {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"writeUintBE supports only bitLengths divisible by 8\");\n }\n if (!isSafeInteger(value)) {\n throw new Error(\"writeUintBE value must be an integer\");\n }\n let div = 1;\n for (let i = bitLength / 8 + offset - 1; i >= offset; i--) {\n out[i] = (value / div) & 0xff;\n div *= 256;\n }\n return out;\n}\n\n/**\n * Writes a little-endian representation of bitLen-bit unsigned\n * value to array starting at offset.\n *\n * Supports bit lengths divisible by 8, up to 48.\n *\n * If byte array is not given, creates a new one.\n *\n * Returns the output byte array.\n */\nexport function writeUintLE(bitLength: number, value: number,\n out = new Uint8Array(bitLength / 8), offset = 0): Uint8Array {\n // TODO(dchest): implement support for bitLengths non-divisible by 8\n if (bitLength % 8 !== 0) {\n throw new Error(\"writeUintLE supports only bitLengths divisible by 8\");\n }\n if (!isSafeInteger(value)) {\n throw new Error(\"writeUintLE value must be an integer\");\n }\n let div = 1;\n for (let i = offset; i < offset + bitLength / 8; i++) {\n out[i] = (value / div) & 0xff;\n div *= 256;\n }\n return out;\n}\n\n/**\n * Reads 4 bytes from array starting at offset as big-endian\n * 32-bit floating-point number and returns it.\n */\nexport function readFloat32BE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat32(offset);\n}\n\n/**\n * Reads 4 bytes from array starting at offset as little-endian\n * 32-bit floating-point number and returns it.\n */\nexport function readFloat32LE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat32(offset, true);\n}\n\n/**\n * Reads 8 bytes from array starting at offset as big-endian\n * 64-bit floating-point number (\"double\") and returns it.\n */\nexport function readFloat64BE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat64(offset);\n}\n\n/**\n * Reads 8 bytes from array starting at offset as little-endian\n * 64-bit floating-point number (\"double\") and returns it.\n */\nexport function readFloat64LE(array: Uint8Array, offset = 0): number {\n const view = new DataView(array.buffer, array.byteOffset, array.byteLength);\n return view.getFloat64(offset, true);\n}\n\n/**\n * Writes 4-byte big-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat32BE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat32(offset, value);\n return out;\n}\n\n/**\n * Writes 4-byte little-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 4-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat32LE(value: number, out = new Uint8Array(4), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat32(offset, value, true);\n return out;\n}\n\n/**\n * Writes 8-byte big-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat64BE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat64(offset, value);\n return out;\n}\n\n/**\n * Writes 8-byte little-endian floating-point representation of value\n * to byte array starting at offset.\n *\n * If byte array is not given, creates a new 8-byte one.\n *\n * Returns the output byte array.\n */\nexport function writeFloat64LE(value: number, out = new Uint8Array(8), offset = 0): Uint8Array {\n const view = new DataView(out.buffer, out.byteOffset, out.byteLength);\n view.setFloat64(offset, value, true);\n return out;\n}\n","// Copyright (C) 2017 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package blake2b implements BLAKE2b cryptographic hash function.\n */\n\nimport { SerializableHash } from \"@stablelib/hash\";\nimport { readUint32LE, writeUint32LE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const BLOCK_SIZE = 128;\nexport const DIGEST_LENGTH = 64;\nexport const KEY_LENGTH = 64;\nexport const PERSONALIZATION_LENGTH = 16;\nexport const SALT_LENGTH = 16;\n\nexport const MAX_LEAF_SIZE = Math.pow(2, 32) - 1;\nexport const MAX_FANOUT = 255;\nexport const MAX_MAX_DEPTH = 255; // not a typo\n\n/**\n * Configuration for hash function.\n */\nexport type Config = {\n key?: Uint8Array;\n salt?: Uint8Array;\n personalization?: Uint8Array;\n tree?: Tree;\n};\n\n/**\n * Tree hashing parameters.\n */\nexport type Tree = {\n fanout: number; // fanout\n maxDepth: number; // maximal depth\n leafSize: number; // leaf maximal byte length (0 for unlimited)\n nodeOffsetHighBits: number; // high bits of node offset\n nodeOffsetLowBits: number; // low bits of node offset (0 for first, leftmost or leaf)\n nodeDepth: number; // node depth (0 for leaves)\n innerDigestLength: number; // inner digest length\n lastNode: boolean; // indicates processing of the last node of layer\n};\n\nconst IV = new Uint32Array([\n // low bits // high bits\n 0xf3bcc908, 0x6a09e667,\n 0x84caa73b, 0xbb67ae85,\n 0xfe94f82b, 0x3c6ef372,\n 0x5f1d36f1, 0xa54ff53a,\n 0xade682d1, 0x510e527f,\n 0x2b3e6c1f, 0x9b05688c,\n 0xfb41bd6b, 0x1f83d9ab,\n 0x137e2179, 0x5be0cd19,\n]);\n\n// Note: sigma values are doubled since we store\n// 64-bit ints as two 32-bit ints in arrays.\nconst SIGMA = [\n [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30],\n [28, 20, 8, 16, 18, 30, 26, 12, 2, 24, 0, 4, 22, 14, 10, 6],\n [22, 16, 24, 0, 10, 4, 30, 26, 20, 28, 6, 12, 14, 2, 18, 8],\n [14, 18, 6, 2, 26, 24, 22, 28, 4, 12, 10, 20, 8, 0, 30, 16],\n [18, 0, 10, 14, 4, 8, 20, 30, 28, 2, 22, 24, 12, 16, 6, 26],\n [4, 24, 12, 20, 0, 22, 16, 6, 8, 26, 14, 10, 30, 28, 2, 18],\n [24, 10, 2, 30, 28, 26, 8, 20, 0, 14, 12, 6, 18, 4, 16, 22],\n [26, 22, 14, 28, 24, 2, 6, 18, 10, 0, 30, 8, 16, 12, 4, 20],\n [12, 30, 28, 18, 22, 6, 0, 16, 24, 4, 26, 14, 2, 8, 20, 10],\n [20, 4, 16, 8, 14, 12, 2, 10, 30, 22, 18, 28, 6, 24, 26, 0],\n [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30],\n [28, 20, 8, 16, 18, 30, 26, 12, 2, 24, 0, 4, 22, 14, 10, 6]\n];\n\n/**\n * BLAKE2b hash function.\n */\nexport class BLAKE2b implements SerializableHash {\n readonly blockSize = BLOCK_SIZE;\n\n // Note: Int32Arrays for state and message are used for performance reasons.\n private _state = new Int32Array(IV); // hash state, initialized with IV\n private _buffer = new Uint8Array(BLOCK_SIZE); // buffer for data\n private _bufferLength = 0; // number of bytes in buffer\n private _ctr = new Uint32Array(4);\n private _flag = new Uint32Array(4);\n private _lastNode = false;\n private _finished = false;\n\n private _vtmp = new Uint32Array(32);\n private _mtmp = new Uint32Array(32);\n\n private _paddedKey: Uint8Array | undefined; // copy of zero-padded key if present\n private _initialState: Uint32Array; // initial state after initialization\n\n constructor(public digestLength = 64, config?: Config) {\n // Validate digest length.\n if (digestLength < 1 || digestLength > DIGEST_LENGTH) {\n throw new Error(\"blake2b: wrong digest length\");\n }\n\n // Validate config, if present.\n if (config) {\n this.validateConfig(config);\n }\n\n // Get key length from config.\n let keyLength = 0;\n if (config && config.key) {\n keyLength = config.key.length;\n }\n\n // Get tree fanout and maxDepth from config.\n let fanout = 1;\n let maxDepth = 1;\n if (config && config.tree) {\n fanout = config.tree.fanout;\n maxDepth = config.tree.maxDepth;\n }\n\n // Xor common parameters into state.\n this._state[0] ^= digestLength | (keyLength << 8) | (fanout << 16) | (maxDepth << 24);\n\n // Xor tree parameters into state.\n if (config && config.tree) {\n this._state[1] ^= config.tree.leafSize;\n\n this._state[2] ^= config.tree.nodeOffsetLowBits;\n this._state[3] ^= config.tree.nodeOffsetHighBits;\n this._state[4] ^= config.tree.nodeDepth | (config.tree.innerDigestLength << 8);\n\n this._lastNode = config.tree.lastNode;\n }\n\n // Xor salt into state.\n if (config && config.salt) {\n this._state[8] ^= readUint32LE(config.salt, 0);\n this._state[9] ^= readUint32LE(config.salt, 4);\n this._state[10] ^= readUint32LE(config.salt, 8);\n this._state[11] ^= readUint32LE(config.salt, 12);\n }\n\n // Xor personalization into state.\n if (config && config.personalization) {\n this._state[12] ^= readUint32LE(config.personalization, 0);\n this._state[13] ^= readUint32LE(config.personalization, 4);\n this._state[14] ^= readUint32LE(config.personalization, 8);\n this._state[15] ^= readUint32LE(config.personalization, 12);\n }\n\n // Save a copy of initialized state for reset.\n this._initialState = new Uint32Array(this._state);\n\n // Process key.\n if (config && config.key && keyLength > 0) {\n this._paddedKey = new Uint8Array(BLOCK_SIZE);\n this._paddedKey.set(config.key);\n\n // Put padded key into buffer.\n this._buffer.set(this._paddedKey);\n this._bufferLength = BLOCK_SIZE;\n }\n }\n\n reset(): this {\n // Restore initial state.\n this._state.set(this._initialState);\n\n if (this._paddedKey) {\n // Put padded key into buffer.\n this._buffer.set(this._paddedKey);\n this._bufferLength = BLOCK_SIZE;\n } else {\n this._bufferLength = 0;\n }\n\n // Clear counters and flags.\n wipe(this._ctr);\n wipe(this._flag);\n this._finished = false;\n\n return this;\n }\n\n validateConfig(config: Config) {\n if (config.key && config.key.length > KEY_LENGTH) {\n throw new Error(\"blake2b: wrong key length\");\n }\n if (config.salt && config.salt.length !== SALT_LENGTH) {\n throw new Error(\"blake2b: wrong salt length\");\n }\n if (config.personalization &&\n config.personalization.length !== PERSONALIZATION_LENGTH) {\n throw new Error(\"blake2b: wrong personalization length\");\n }\n if (config.tree) {\n if (config.tree.fanout < 0 || config.tree.fanout > MAX_FANOUT) {\n throw new Error(\"blake2b: wrong tree fanout\");\n }\n if (config.tree.maxDepth < 0 || config.tree.maxDepth > MAX_MAX_DEPTH) {\n throw new Error(\"blake2b: wrong tree depth\");\n }\n if (config.tree.leafSize < 0 || config.tree.leafSize > MAX_LEAF_SIZE) {\n throw new Error(\"blake2b: wrong leaf size\");\n }\n if (config.tree.innerDigestLength < 0 ||\n config.tree.innerDigestLength > DIGEST_LENGTH) {\n throw new Error(\"blake2b: wrong tree inner digest length\");\n }\n }\n }\n\n update(data: Uint8Array, dataLength = data.length): this {\n if (this._finished) {\n throw new Error(\"blake2b: can't update because hash was finished.\");\n }\n\n const left = BLOCK_SIZE - this._bufferLength;\n let dataPos = 0;\n\n if (dataLength === 0) {\n return this;\n }\n\n // Finish buffer.\n if (dataLength > left) {\n for (let i = 0; i < left; i++) {\n this._buffer[this._bufferLength + i] = data[dataPos + i];\n }\n this._processBlock(BLOCK_SIZE);\n dataPos += left;\n dataLength -= left;\n this._bufferLength = 0;\n }\n\n // Process data blocks.\n while (dataLength > BLOCK_SIZE) {\n for (let i = 0; i < BLOCK_SIZE; i++) {\n this._buffer[i] = data[dataPos + i];\n }\n this._processBlock(BLOCK_SIZE);\n dataPos += BLOCK_SIZE;\n dataLength -= BLOCK_SIZE;\n this._bufferLength = 0;\n }\n\n // Copy leftovers to buffer.\n for (let i = 0; i < dataLength; i++) {\n this._buffer[this._bufferLength + i] = data[dataPos + i];\n }\n this._bufferLength += dataLength;\n\n return this;\n }\n\n finish(out: Uint8Array): this {\n if (!this._finished) {\n for (let i = this._bufferLength; i < BLOCK_SIZE; i++) {\n this._buffer[i] = 0;\n }\n\n // Set last block flag.\n this._flag[0] = 0xffffffff;\n this._flag[1] = 0xffffffff;\n\n // Set last node flag if last node in tree.\n if (this._lastNode) {\n this._flag[2] = 0xffffffff;\n this._flag[3] = 0xffffffff;\n }\n\n this._processBlock(this._bufferLength);\n this._finished = true;\n }\n // Reuse buffer as temporary space for digest.\n const tmp = this._buffer.subarray(0, 64);\n for (let i = 0; i < 16; i++) {\n writeUint32LE(this._state[i], tmp, i * 4);\n }\n out.set(tmp.subarray(0, out.length));\n return this;\n }\n\n digest(): Uint8Array {\n const out = new Uint8Array(this.digestLength);\n this.finish(out);\n return out;\n }\n\n clean() {\n wipe(this._vtmp);\n wipe(this._mtmp);\n wipe(this._state);\n wipe(this._buffer);\n wipe(this._initialState);\n if (this._paddedKey) {\n wipe(this._paddedKey);\n }\n this._bufferLength = 0;\n wipe(this._ctr);\n wipe(this._flag);\n this._lastNode = false;\n this._finished = false;\n }\n\n saveState(): SavedState {\n if (this._finished) {\n throw new Error(\"blake2b: cannot save finished state\");\n }\n return {\n state: new Uint32Array(this._state),\n buffer: new Uint8Array(this._buffer),\n bufferLength: this._bufferLength,\n ctr: new Uint32Array(this._ctr),\n flag: new Uint32Array(this._flag),\n lastNode: this._lastNode,\n paddedKey: this._paddedKey ? new Uint8Array(this._paddedKey) : undefined,\n initialState: new Uint32Array(this._initialState)\n };\n }\n\n restoreState(savedState: SavedState): this {\n this._state.set(savedState.state);\n this._buffer.set(savedState.buffer);\n this._bufferLength = savedState.bufferLength;\n this._ctr.set(savedState.ctr);\n this._flag.set(savedState.flag);\n this._lastNode = savedState.lastNode;\n if (this._paddedKey) {\n wipe(this._paddedKey);\n }\n this._paddedKey = savedState.paddedKey ? new Uint8Array(savedState.paddedKey) : undefined;\n this._initialState.set(savedState.initialState);\n return this;\n }\n\n cleanSavedState(savedState: SavedState): void {\n wipe(savedState.state);\n wipe(savedState.buffer);\n wipe(savedState.initialState);\n if (savedState.paddedKey) {\n wipe(savedState.paddedKey);\n }\n savedState.bufferLength = 0;\n wipe(savedState.ctr);\n wipe(savedState.flag);\n savedState.lastNode = false;\n }\n\n private _G(v: Uint32Array,\n al: number, bl: number, cl: number, dl: number,\n ah: number, bh: number, ch: number, dh: number,\n ml0: number, mh0: number,\n ml1: number, mh1: number) {\n let vla = v[al],\n vha = v[ah],\n vlb = v[bl],\n vhb = v[bh],\n vlc = v[cl],\n vhc = v[ch],\n vld = v[dl],\n vhd = v[dh];\n\n // 64-bit: va += vb\n let w = vla & 0xffff,\n x = vla >>> 16,\n y = vha & 0xffff,\n z = vha >>> 16;\n\n w += vlb & 0xffff; x += vlb >>> 16;\n y += vhb & 0xffff; z += vhb >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: va += m[sigma[r][2 * i + 0]]\n w = vla & 0xffff; x = vla >>> 16;\n y = vha & 0xffff; z = vha >>> 16;\n\n w += ml0 & 0xffff; x += ml0 >>> 16;\n y += mh0 & 0xffff; z += mh0 >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: vd ^= va\n vld ^= vla; vhd ^= vha;\n\n // 64-bit: rot(vd, 32)\n w = vhd; vhd = vld; vld = w;\n\n // 64-bit: vc += vd\n w = vlc & 0xffff; x = vlc >>> 16;\n y = vhc & 0xffff; z = vhc >>> 16;\n\n w += vld & 0xffff; x += vld >>> 16;\n y += vhd & 0xffff; z += vhd >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vhc = (y & 0xffff) | (z << 16);\n vlc = (w & 0xffff) | (x << 16);\n\n // 64-bit: vb ^= vc\n vlb ^= vlc; vhb ^= vhc;\n\n // 64-bit: rot(vb, 24)\n w = vlb << 8 | vhb >>> 24;\n vlb = vhb << 8 | vlb >>> 24;\n vhb = w;\n\n // 64-bit: va += vb\n w = vla & 0xffff; x = vla >>> 16;\n y = vha & 0xffff; z = vha >>> 16;\n\n w += vlb & 0xffff; x += vlb >>> 16;\n y += vhb & 0xffff; z += vhb >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: va += m[sigma[r][2 * i + 1]\n w = vla & 0xffff; x = vla >>> 16;\n y = vha & 0xffff; z = vha >>> 16;\n\n w += ml1 & 0xffff; x += ml1 >>> 16;\n y += mh1 & 0xffff; z += mh1 >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vha = (y & 0xffff) | (z << 16);\n vla = (w & 0xffff) | (x << 16);\n\n // 64-bit: vd ^= va\n vld ^= vla; vhd ^= vha;\n\n // 64-bit: rot(vd, 16)\n w = vld << 16 | vhd >>> 16;\n vld = vhd << 16 | vld >>> 16;\n vhd = w;\n\n // 64-bit: vc += vd\n w = vlc & 0xffff; x = vlc >>> 16;\n y = vhc & 0xffff; z = vhc >>> 16;\n\n w += vld & 0xffff; x += vld >>> 16;\n y += vhd & 0xffff; z += vhd >>> 16;\n\n x += w >>> 16;\n y += x >>> 16;\n z += y >>> 16;\n\n vhc = (y & 0xffff) | (z << 16);\n vlc = (w & 0xffff) | (x << 16);\n\n // 64-bit: vb ^= vc\n vlb ^= vlc; vhb ^= vhc;\n\n // 64-bit: rot(vb, 63)\n w = vhb << 1 | vlb >>> 31;\n vlb = vlb << 1 | vhb >>> 31;\n vhb = w;\n\n v[al] = vla;\n v[ah] = vha;\n v[bl] = vlb;\n v[bh] = vhb;\n v[cl] = vlc;\n v[ch] = vhc;\n v[dl] = vld;\n v[dh] = vhd;\n }\n\n private _incrementCounter(n: number) {\n for (let i = 0; i < 3; i++) {\n let a = this._ctr[i] + n;\n this._ctr[i] = a >>> 0;\n if (this._ctr[i] === a) {\n return;\n }\n n = 1;\n }\n }\n\n private _processBlock(length: number) {\n this._incrementCounter(length);\n let v = this._vtmp;\n v.set(this._state);\n v.set(IV, 16);\n v[12 * 2 + 0] ^= this._ctr[0];\n v[12 * 2 + 1] ^= this._ctr[1];\n v[13 * 2 + 0] ^= this._ctr[2];\n v[13 * 2 + 1] ^= this._ctr[3];\n v[14 * 2 + 0] ^= this._flag[0];\n v[14 * 2 + 1] ^= this._flag[1];\n v[15 * 2 + 0] ^= this._flag[2];\n v[15 * 2 + 1] ^= this._flag[3];\n\n let m = this._mtmp;\n for (let i = 0; i < 32; i++) {\n m[i] = readUint32LE(this._buffer, i * 4);\n }\n\n for (let r = 0; r < 12; r++) {\n this._G(v,\n 0, 8, 16, 24,\n 1, 9, 17, 25,\n m[SIGMA[r][0]], m[SIGMA[r][0] + 1],\n m[SIGMA[r][1]], m[SIGMA[r][1] + 1]\n );\n\n this._G(v,\n 2, 10, 18, 26,\n 3, 11, 19, 27,\n m[SIGMA[r][2]], m[SIGMA[r][2] + 1],\n m[SIGMA[r][3]], m[SIGMA[r][3] + 1]\n );\n\n this._G(v,\n 4, 12, 20, 28,\n 5, 13, 21, 29,\n m[SIGMA[r][4]], m[SIGMA[r][4] + 1],\n m[SIGMA[r][5]], m[SIGMA[r][5] + 1]\n );\n\n this._G(v,\n 6, 14, 22, 30,\n 7, 15, 23, 31,\n m[SIGMA[r][6]], m[SIGMA[r][6] + 1],\n m[SIGMA[r][7]], m[SIGMA[r][7] + 1]\n );\n\n this._G(v,\n 0, 10, 20, 30,\n 1, 11, 21, 31,\n m[SIGMA[r][8]], m[SIGMA[r][8] + 1],\n m[SIGMA[r][9]], m[SIGMA[r][9] + 1]\n );\n\n this._G(v,\n 2, 12, 22, 24,\n 3, 13, 23, 25,\n m[SIGMA[r][10]], m[SIGMA[r][10] + 1],\n m[SIGMA[r][11]], m[SIGMA[r][11] + 1]\n );\n\n this._G(v,\n 4, 14, 16, 26,\n 5, 15, 17, 27,\n m[SIGMA[r][12]], m[SIGMA[r][12] + 1],\n m[SIGMA[r][13]], m[SIGMA[r][13] + 1]\n );\n\n this._G(v,\n 6, 8, 18, 28,\n 7, 9, 19, 29,\n m[SIGMA[r][14]], m[SIGMA[r][14] + 1],\n m[SIGMA[r][15]], m[SIGMA[r][15] + 1]\n );\n }\n\n for (let i = 0; i < 16; i++) {\n this._state[i] ^= v[i] ^ v[i + 16];\n }\n }\n}\n\nexport type SavedState = {\n state: Uint32Array;\n buffer: Uint8Array;\n bufferLength: number;\n ctr: Uint32Array;\n flag: Uint32Array;\n lastNode: boolean;\n paddedKey: Uint8Array | undefined;\n initialState: Uint32Array;\n};\n\nexport function hash(data: Uint8Array, digestLength = DIGEST_LENGTH, config?: Config): Uint8Array {\n const h = new BLAKE2b(digestLength, config);\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package bytes provides functions for dealing with byte arrays.\n */\n\n/**\n * Concatenates byte arrays.\n */\nexport function concat(...arrays: Uint8Array[]): Uint8Array;\nexport function concat(): Uint8Array {\n // Calculate sum of lengths of all arrays.\n let totalLength = 0;\n for (let i = 0; i < arguments.length; i++) {\n totalLength += arguments[i].length;\n }\n\n // Allocate new array of calculated length.\n const result = new Uint8Array(totalLength);\n\n // Copy all arrays into result.\n let offset = 0;\n for (let i = 0; i < arguments.length; i++) {\n const arg = arguments[i];\n result.set(arg, offset);\n offset += arg.length;\n }\n\n return result;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package constant-time provides functions for performing algorithmically constant-time operations.\n */\n\n/**\n * NOTE! Due to the inability to guarantee real constant time evaluation of\n * anything in JavaScript VM, this is module is the best effort.\n */\n\n/**\n * Returns resultIfOne if subject is 1, or resultIfZero if subject is 0.\n *\n * Supports only 32-bit integers, so resultIfOne or resultIfZero are not\n * integers, they'll be converted to them with bitwise operations.\n */\nexport function select(subject: number, resultIfOne: number, resultIfZero: number): number {\n return (~(subject - 1) & resultIfOne) | ((subject - 1) & resultIfZero);\n}\n\n/**\n * Returns 1 if a <= b, or 0 if not.\n * Arguments must be positive 32-bit integers less than or equal to 2^31 - 1.\n */\nexport function lessOrEqual(a: number, b: number): number {\n return (((a | 0) - (b | 0) - 1) >>> 31) & 1;\n}\n\n/**\n * Returns 1 if a and b are of equal length and their contents\n * are equal, or 0 otherwise.\n *\n * Note that unlike in equal(), zero-length inputs are considered\n * the same, so this function will return 1.\n */\nexport function compare(a: Uint8Array, b: Uint8Array): number {\n if (a.length !== b.length) {\n return 0;\n }\n let result = 0;\n for (let i = 0; i < a.length; i++) {\n result |= a[i] ^ b[i];\n }\n return (1 & ((result - 1) >>> 8));\n}\n\n/**\n * Returns true if a and b are of equal non-zero length,\n * and their contents are equal, or false otherwise.\n *\n * Note that unlike in compare() zero-length inputs are considered\n * _not_ equal, so this function will return false.\n */\nexport function equal(a: Uint8Array, b: Uint8Array): boolean {\n if (a.length === 0 || b.length === 0) {\n return false;\n }\n return compare(a, b) !== 0;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package ed25519 implements Ed25519 public-key signature algorithm.\n */\n\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\nimport { hash, SHA512 } from \"@stablelib/sha512\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const SIGNATURE_LENGTH = 64;\nexport const PUBLIC_KEY_LENGTH = 32;\nexport const SECRET_KEY_LENGTH = 64;\nexport const SEED_LENGTH = 32;\n\n// TODO(dchest): some functions are copies of ../kex/x25519.\n// Find a way to combine them without opening up to public.\n\n// Ported from TweetNaCl.js, which was ported from TweetNaCl\n// by Dmitry Chestnykh and Devi Mandiri.\n// Public domain.\n// https://tweetnacl.js.org\n\n// TweetNaCl contributors:\n// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen,\n// Tanja Lange, Peter Schwabe, Sjaak Smetsers.\n// Public domain.\n// https://tweetnacl.cr.yp.to/\n\ntype GF = Float64Array;\n\n// Returns new zero-filled 16-element GF (Float64Array).\n// If passed an array of numbers, prefills the returned\n// array with them.\n//\n// We use Float64Array, because we need 48-bit numbers\n// for this implementation.\nfunction gf(init?: number[]): GF {\n const r = new Float64Array(16);\n if (init) {\n for (let i = 0; i < init.length; i++) {\n r[i] = init[i];\n }\n }\n return r;\n}\n\n// Base point.\nconst _9 = new Uint8Array(32); _9[0] = 9;\n\nconst gf0 = gf();\n\nconst gf1 = gf([1]);\n\nconst D = gf([\n 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070,\n 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203\n]);\n\nconst D2 = gf([\n 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0,\n 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406\n]);\n\nconst X = gf([\n 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c,\n 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169\n]);\n\nconst Y = gf([\n 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666,\n 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666\n]);\n\nconst I = gf([\n 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43,\n 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83\n]);\n\nfunction set25519(r: GF, a: GF) {\n for (let i = 0; i < 16; i++) {\n r[i] = a[i] | 0;\n }\n}\n\nfunction car25519(o: GF) {\n let c = 1;\n for (let i = 0; i < 16; i++) {\n let v = o[i] + c + 65535;\n c = Math.floor(v / 65536);\n o[i] = v - c * 65536;\n }\n o[0] += c - 1 + 37 * (c - 1);\n}\n\nfunction sel25519(p: GF, q: GF, b: number) {\n const c = ~(b - 1);\n for (let i = 0; i < 16; i++) {\n const t = c & (p[i] ^ q[i]);\n p[i] ^= t;\n q[i] ^= t;\n }\n}\n\nfunction pack25519(o: Uint8Array, n: GF) {\n const m = gf();\n const t = gf();\n for (let i = 0; i < 16; i++) {\n t[i] = n[i];\n }\n car25519(t);\n car25519(t);\n car25519(t);\n for (let j = 0; j < 2; j++) {\n m[0] = t[0] - 0xffed;\n for (let i = 1; i < 15; i++) {\n m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1);\n m[i - 1] &= 0xffff;\n }\n m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1);\n const b = (m[15] >> 16) & 1;\n m[14] &= 0xffff;\n sel25519(t, m, 1 - b);\n }\n for (let i = 0; i < 16; i++) {\n o[2 * i] = t[i] & 0xff;\n o[2 * i + 1] = t[i] >> 8;\n }\n}\n\nfunction verify32(x: Uint8Array, y: Uint8Array) {\n let d = 0;\n for (let i = 0; i < 32; i++) {\n d |= x[i] ^ y[i];\n }\n return (1 & ((d - 1) >>> 8)) - 1;\n}\n\n\nfunction neq25519(a: GF, b: GF) {\n const c = new Uint8Array(32);\n const d = new Uint8Array(32);\n pack25519(c, a);\n pack25519(d, b);\n return verify32(c, d);\n}\n\nfunction par25519(a: GF) {\n const d = new Uint8Array(32);\n pack25519(d, a);\n return d[0] & 1;\n}\n\nfunction unpack25519(o: GF, n: Uint8Array) {\n for (let i = 0; i < 16; i++) {\n o[i] = n[2 * i] + (n[2 * i + 1] << 8);\n }\n o[15] &= 0x7fff;\n}\n\nfunction add(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] + b[i];\n }\n}\n\nfunction sub(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] - b[i];\n }\n}\n\nfunction mul(o: GF, a: GF, b: GF) {\n let v: number, c: number,\n t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0,\n t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0,\n t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0,\n t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0,\n b0 = b[0],\n b1 = b[1],\n b2 = b[2],\n b3 = b[3],\n b4 = b[4],\n b5 = b[5],\n b6 = b[6],\n b7 = b[7],\n b8 = b[8],\n b9 = b[9],\n b10 = b[10],\n b11 = b[11],\n b12 = b[12],\n b13 = b[13],\n b14 = b[14],\n b15 = b[15];\n\n v = a[0];\n t0 += v * b0;\n t1 += v * b1;\n t2 += v * b2;\n t3 += v * b3;\n t4 += v * b4;\n t5 += v * b5;\n t6 += v * b6;\n t7 += v * b7;\n t8 += v * b8;\n t9 += v * b9;\n t10 += v * b10;\n t11 += v * b11;\n t12 += v * b12;\n t13 += v * b13;\n t14 += v * b14;\n t15 += v * b15;\n v = a[1];\n t1 += v * b0;\n t2 += v * b1;\n t3 += v * b2;\n t4 += v * b3;\n t5 += v * b4;\n t6 += v * b5;\n t7 += v * b6;\n t8 += v * b7;\n t9 += v * b8;\n t10 += v * b9;\n t11 += v * b10;\n t12 += v * b11;\n t13 += v * b12;\n t14 += v * b13;\n t15 += v * b14;\n t16 += v * b15;\n v = a[2];\n t2 += v * b0;\n t3 += v * b1;\n t4 += v * b2;\n t5 += v * b3;\n t6 += v * b4;\n t7 += v * b5;\n t8 += v * b6;\n t9 += v * b7;\n t10 += v * b8;\n t11 += v * b9;\n t12 += v * b10;\n t13 += v * b11;\n t14 += v * b12;\n t15 += v * b13;\n t16 += v * b14;\n t17 += v * b15;\n v = a[3];\n t3 += v * b0;\n t4 += v * b1;\n t5 += v * b2;\n t6 += v * b3;\n t7 += v * b4;\n t8 += v * b5;\n t9 += v * b6;\n t10 += v * b7;\n t11 += v * b8;\n t12 += v * b9;\n t13 += v * b10;\n t14 += v * b11;\n t15 += v * b12;\n t16 += v * b13;\n t17 += v * b14;\n t18 += v * b15;\n v = a[4];\n t4 += v * b0;\n t5 += v * b1;\n t6 += v * b2;\n t7 += v * b3;\n t8 += v * b4;\n t9 += v * b5;\n t10 += v * b6;\n t11 += v * b7;\n t12 += v * b8;\n t13 += v * b9;\n t14 += v * b10;\n t15 += v * b11;\n t16 += v * b12;\n t17 += v * b13;\n t18 += v * b14;\n t19 += v * b15;\n v = a[5];\n t5 += v * b0;\n t6 += v * b1;\n t7 += v * b2;\n t8 += v * b3;\n t9 += v * b4;\n t10 += v * b5;\n t11 += v * b6;\n t12 += v * b7;\n t13 += v * b8;\n t14 += v * b9;\n t15 += v * b10;\n t16 += v * b11;\n t17 += v * b12;\n t18 += v * b13;\n t19 += v * b14;\n t20 += v * b15;\n v = a[6];\n t6 += v * b0;\n t7 += v * b1;\n t8 += v * b2;\n t9 += v * b3;\n t10 += v * b4;\n t11 += v * b5;\n t12 += v * b6;\n t13 += v * b7;\n t14 += v * b8;\n t15 += v * b9;\n t16 += v * b10;\n t17 += v * b11;\n t18 += v * b12;\n t19 += v * b13;\n t20 += v * b14;\n t21 += v * b15;\n v = a[7];\n t7 += v * b0;\n t8 += v * b1;\n t9 += v * b2;\n t10 += v * b3;\n t11 += v * b4;\n t12 += v * b5;\n t13 += v * b6;\n t14 += v * b7;\n t15 += v * b8;\n t16 += v * b9;\n t17 += v * b10;\n t18 += v * b11;\n t19 += v * b12;\n t20 += v * b13;\n t21 += v * b14;\n t22 += v * b15;\n v = a[8];\n t8 += v * b0;\n t9 += v * b1;\n t10 += v * b2;\n t11 += v * b3;\n t12 += v * b4;\n t13 += v * b5;\n t14 += v * b6;\n t15 += v * b7;\n t16 += v * b8;\n t17 += v * b9;\n t18 += v * b10;\n t19 += v * b11;\n t20 += v * b12;\n t21 += v * b13;\n t22 += v * b14;\n t23 += v * b15;\n v = a[9];\n t9 += v * b0;\n t10 += v * b1;\n t11 += v * b2;\n t12 += v * b3;\n t13 += v * b4;\n t14 += v * b5;\n t15 += v * b6;\n t16 += v * b7;\n t17 += v * b8;\n t18 += v * b9;\n t19 += v * b10;\n t20 += v * b11;\n t21 += v * b12;\n t22 += v * b13;\n t23 += v * b14;\n t24 += v * b15;\n v = a[10];\n t10 += v * b0;\n t11 += v * b1;\n t12 += v * b2;\n t13 += v * b3;\n t14 += v * b4;\n t15 += v * b5;\n t16 += v * b6;\n t17 += v * b7;\n t18 += v * b8;\n t19 += v * b9;\n t20 += v * b10;\n t21 += v * b11;\n t22 += v * b12;\n t23 += v * b13;\n t24 += v * b14;\n t25 += v * b15;\n v = a[11];\n t11 += v * b0;\n t12 += v * b1;\n t13 += v * b2;\n t14 += v * b3;\n t15 += v * b4;\n t16 += v * b5;\n t17 += v * b6;\n t18 += v * b7;\n t19 += v * b8;\n t20 += v * b9;\n t21 += v * b10;\n t22 += v * b11;\n t23 += v * b12;\n t24 += v * b13;\n t25 += v * b14;\n t26 += v * b15;\n v = a[12];\n t12 += v * b0;\n t13 += v * b1;\n t14 += v * b2;\n t15 += v * b3;\n t16 += v * b4;\n t17 += v * b5;\n t18 += v * b6;\n t19 += v * b7;\n t20 += v * b8;\n t21 += v * b9;\n t22 += v * b10;\n t23 += v * b11;\n t24 += v * b12;\n t25 += v * b13;\n t26 += v * b14;\n t27 += v * b15;\n v = a[13];\n t13 += v * b0;\n t14 += v * b1;\n t15 += v * b2;\n t16 += v * b3;\n t17 += v * b4;\n t18 += v * b5;\n t19 += v * b6;\n t20 += v * b7;\n t21 += v * b8;\n t22 += v * b9;\n t23 += v * b10;\n t24 += v * b11;\n t25 += v * b12;\n t26 += v * b13;\n t27 += v * b14;\n t28 += v * b15;\n v = a[14];\n t14 += v * b0;\n t15 += v * b1;\n t16 += v * b2;\n t17 += v * b3;\n t18 += v * b4;\n t19 += v * b5;\n t20 += v * b6;\n t21 += v * b7;\n t22 += v * b8;\n t23 += v * b9;\n t24 += v * b10;\n t25 += v * b11;\n t26 += v * b12;\n t27 += v * b13;\n t28 += v * b14;\n t29 += v * b15;\n v = a[15];\n t15 += v * b0;\n t16 += v * b1;\n t17 += v * b2;\n t18 += v * b3;\n t19 += v * b4;\n t20 += v * b5;\n t21 += v * b6;\n t22 += v * b7;\n t23 += v * b8;\n t24 += v * b9;\n t25 += v * b10;\n t26 += v * b11;\n t27 += v * b12;\n t28 += v * b13;\n t29 += v * b14;\n t30 += v * b15;\n\n t0 += 38 * t16;\n t1 += 38 * t17;\n t2 += 38 * t18;\n t3 += 38 * t19;\n t4 += 38 * t20;\n t5 += 38 * t21;\n t6 += 38 * t22;\n t7 += 38 * t23;\n t8 += 38 * t24;\n t9 += 38 * t25;\n t10 += 38 * t26;\n t11 += 38 * t27;\n t12 += 38 * t28;\n t13 += 38 * t29;\n t14 += 38 * t30;\n // t15 left as is\n\n // first car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n // second car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n o[0] = t0;\n o[1] = t1;\n o[2] = t2;\n o[3] = t3;\n o[4] = t4;\n o[5] = t5;\n o[6] = t6;\n o[7] = t7;\n o[8] = t8;\n o[9] = t9;\n o[10] = t10;\n o[11] = t11;\n o[12] = t12;\n o[13] = t13;\n o[14] = t14;\n o[15] = t15;\n}\n\nfunction square(o: GF, a: GF) {\n mul(o, a, a);\n}\n\nfunction inv25519(o: GF, i: GF) {\n const c = gf();\n let a: number;\n for (a = 0; a < 16; a++) {\n c[a] = i[a];\n }\n for (a = 253; a >= 0; a--) {\n square(c, c);\n if (a !== 2 && a !== 4) {\n mul(c, c, i);\n }\n }\n for (a = 0; a < 16; a++) {\n o[a] = c[a];\n }\n}\n\nfunction pow2523(o: GF, i: GF) {\n const c = gf();\n let a: number;\n for (a = 0; a < 16; a++) {\n c[a] = i[a];\n }\n for (a = 250; a >= 0; a--) {\n square(c, c);\n if (a !== 1) {\n mul(c, c, i);\n }\n }\n for (a = 0; a < 16; a++) {\n o[a] = c[a];\n }\n}\n\n\nfunction edadd(p: GF[], q: GF[]) {\n const a = gf(), b = gf(), c = gf(),\n d = gf(), e = gf(), f = gf(),\n g = gf(), h = gf(), t = gf();\n\n sub(a, p[1], p[0]);\n sub(t, q[1], q[0]);\n mul(a, a, t);\n add(b, p[0], p[1]);\n add(t, q[0], q[1]);\n mul(b, b, t);\n mul(c, p[3], q[3]);\n mul(c, c, D2);\n mul(d, p[2], q[2]);\n add(d, d, d);\n sub(e, b, a);\n sub(f, d, c);\n add(g, d, c);\n add(h, b, a);\n\n mul(p[0], e, f);\n mul(p[1], h, g);\n mul(p[2], g, f);\n mul(p[3], e, h);\n}\n\nfunction cswap(p: GF[], q: GF[], b: number) {\n for (let i = 0; i < 4; i++) {\n sel25519(p[i], q[i], b);\n }\n}\n\nfunction pack(r: Uint8Array, p: GF[]) {\n const tx = gf(), ty = gf(), zi = gf();\n inv25519(zi, p[2]);\n mul(tx, p[0], zi);\n mul(ty, p[1], zi);\n pack25519(r, ty);\n r[31] ^= par25519(tx) << 7;\n}\n\nfunction scalarmult(p: GF[], q: GF[], s: Uint8Array) {\n set25519(p[0], gf0);\n set25519(p[1], gf1);\n set25519(p[2], gf1);\n set25519(p[3], gf0);\n for (let i = 255; i >= 0; --i) {\n const b = (s[(i / 8) | 0] >> (i & 7)) & 1;\n cswap(p, q, b);\n edadd(q, p);\n edadd(p, p);\n cswap(p, q, b);\n }\n}\n\nfunction scalarbase(p: GF[], s: Uint8Array) {\n const q = [gf(), gf(), gf(), gf()];\n set25519(q[0], X);\n set25519(q[1], Y);\n set25519(q[2], gf1);\n mul(q[3], X, Y);\n scalarmult(p, q, s);\n}\n\nexport interface KeyPair {\n publicKey: Uint8Array;\n secretKey: Uint8Array;\n}\n\n// Generates key pair from secret 32-byte seed.\nexport function generateKeyPairFromSeed(seed: Uint8Array): KeyPair {\n if (seed.length !== SEED_LENGTH) {\n throw new Error(`ed25519: seed must be ${SEED_LENGTH} bytes`);\n }\n\n const d = hash(seed);\n d[0] &= 248;\n d[31] &= 127;\n d[31] |= 64;\n\n const publicKey = new Uint8Array(32);\n const p = [gf(), gf(), gf(), gf()];\n scalarbase(p, d);\n pack(publicKey, p);\n\n const secretKey = new Uint8Array(64);\n secretKey.set(seed);\n secretKey.set(publicKey, 32);\n\n return {\n publicKey,\n secretKey\n };\n}\n\nexport function generateKeyPair(prng?: RandomSource): KeyPair {\n const seed = randomBytes(32, prng);\n const result = generateKeyPairFromSeed(seed);\n wipe(seed);\n return result;\n}\n\nexport function extractPublicKeyFromSecretKey(secretKey: Uint8Array): Uint8Array {\n if (secretKey.length !== SECRET_KEY_LENGTH) {\n throw new Error(`ed25519: secret key must be ${SECRET_KEY_LENGTH} bytes`);\n }\n return new Uint8Array(secretKey.subarray(32));\n}\n\nconst L = new Float64Array([\n 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2,\n 0xde, 0xf9, 0xde, 0x14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10\n]);\n\nfunction modL(r: Uint8Array, x: Float64Array) {\n let carry: number;\n let i: number;\n let j: number;\n let k: number;\n for (i = 63; i >= 32; --i) {\n carry = 0;\n for (j = i - 32, k = i - 12; j < k; ++j) {\n x[j] += carry - 16 * x[i] * L[j - (i - 32)];\n carry = Math.floor((x[j] + 128) / 256);\n x[j] -= carry * 256;\n }\n x[j] += carry;\n x[i] = 0;\n }\n carry = 0;\n for (j = 0; j < 32; j++) {\n x[j] += carry - (x[31] >> 4) * L[j];\n carry = x[j] >> 8;\n x[j] &= 255;\n }\n for (j = 0; j < 32; j++) {\n x[j] -= carry * L[j];\n }\n for (i = 0; i < 32; i++) {\n x[i + 1] += x[i] >> 8;\n r[i] = x[i] & 255;\n }\n}\n\nfunction reduce(r: Uint8Array) {\n const x = new Float64Array(64);\n for (let i = 0; i < 64; i++) {\n x[i] = r[i];\n }\n for (let i = 0; i < 64; i++) {\n r[i] = 0;\n }\n modL(r, x);\n}\n\n// Returns 64-byte signature of the message under the 64-byte secret key.\nexport function sign(secretKey: Uint8Array, message: Uint8Array): Uint8Array {\n const x = new Float64Array(64);\n const p = [gf(), gf(), gf(), gf()];\n\n const d = hash(secretKey.subarray(0, 32));\n d[0] &= 248;\n d[31] &= 127;\n d[31] |= 64;\n\n const signature = new Uint8Array(64);\n signature.set(d.subarray(32), 32);\n\n const hs = new SHA512();\n hs.update(signature.subarray(32));\n hs.update(message);\n const r = hs.digest();\n hs.clean();\n reduce(r);\n scalarbase(p, r);\n pack(signature, p);\n\n hs.reset();\n hs.update(signature.subarray(0, 32));\n hs.update(secretKey.subarray(32));\n hs.update(message);\n const h = hs.digest();\n reduce(h);\n\n for (let i = 0; i < 32; i++) {\n x[i] = r[i];\n }\n for (let i = 0; i < 32; i++) {\n for (let j = 0; j < 32; j++) {\n x[i + j] += h[i] * d[j];\n }\n }\n modL(signature.subarray(32), x);\n\n return signature;\n}\n\nfunction unpackneg(r: GF[], p: Uint8Array) {\n const t = gf(), chk = gf(), num = gf(),\n den = gf(), den2 = gf(), den4 = gf(),\n den6 = gf();\n\n set25519(r[2], gf1);\n unpack25519(r[1], p);\n square(num, r[1]);\n mul(den, num, D);\n sub(num, num, r[2]);\n add(den, r[2], den);\n\n square(den2, den);\n square(den4, den2);\n mul(den6, den4, den2);\n mul(t, den6, num);\n mul(t, t, den);\n\n pow2523(t, t);\n mul(t, t, num);\n mul(t, t, den);\n mul(t, t, den);\n mul(r[0], t, den);\n\n square(chk, r[0]);\n mul(chk, chk, den);\n if (neq25519(chk, num)) {\n mul(r[0], r[0], I);\n }\n\n square(chk, r[0]);\n mul(chk, chk, den);\n if (neq25519(chk, num)) {\n return -1;\n }\n\n if (par25519(r[0]) === (p[31] >> 7)) {\n sub(r[0], gf0, r[0]);\n }\n\n mul(r[3], r[0], r[1]);\n return 0;\n}\n\nexport function verify(publicKey: Uint8Array, message: Uint8Array, signature: Uint8Array): boolean {\n const t = new Uint8Array(32);\n const p = [gf(), gf(), gf(), gf()];\n const q = [gf(), gf(), gf(), gf()];\n\n if (signature.length !== SIGNATURE_LENGTH) {\n throw new Error(`ed25519: signature must be ${SIGNATURE_LENGTH} bytes`);\n }\n\n if (unpackneg(q, publicKey)) {\n return false;\n }\n\n const hs = new SHA512();\n hs.update(signature.subarray(0, 32));\n hs.update(publicKey);\n hs.update(message);\n const h = hs.digest();\n reduce(h);\n scalarmult(p, q, h);\n\n scalarbase(q, signature.subarray(32));\n edadd(p, q);\n pack(t, p);\n\n if (verify32(signature, t)) {\n return false;\n }\n return true;\n}\n\n/**\n * Convert Ed25519 public key to X25519 public key.\n *\n * Throws if given an invalid public key.\n */\nexport function convertPublicKeyToX25519(publicKey: Uint8Array): Uint8Array {\n let q = [gf(), gf(), gf(), gf()];\n\n if (unpackneg(q, publicKey)) {\n throw new Error(\"Ed25519: invalid public key\");\n }\n\n // Formula: montgomeryX = (edwardsY + 1)*inverse(1 - edwardsY) mod p\n let a = gf();\n let b = gf();\n let y = q[1];\n add(a, gf1, y);\n sub(b, gf1, y);\n inv25519(b, b);\n mul(a, a, b);\n\n let z = new Uint8Array(32);\n pack25519(z, a);\n return z;\n}\n\n/**\n * Convert Ed25519 secret (private) key to X25519 secret key.\n */\nexport function convertSecretKeyToX25519(secretKey: Uint8Array): Uint8Array {\n const d = hash(secretKey.subarray(0, 32));\n d[0] &= 248;\n d[31] &= 127;\n d[31] |= 64;\n const o = new Uint8Array(d.subarray(0, 32));\n wipe(d);\n return o;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package hash provides interface for hash functions.\n */\n\n/**\n * Hash interface describes properties of\n * cryptographic hash functions.\n */\nexport interface Hash {\n readonly digestLength: number;\n readonly blockSize: number;\n update(data: Uint8Array): this;\n reset(): this;\n finish(out: Uint8Array): this;\n digest(): Uint8Array;\n clean(): void;\n}\n\nexport interface SerializableHash extends Hash {\n saveState(): any;\n restoreState(savedState: any): this;\n cleanSavedState(savedState: any): void;\n}\n\nexport function isSerializableHash(h: Hash): h is SerializableHash {\n return (\n typeof (h as SerializableHash).saveState !== \"undefined\" &&\n typeof (h as SerializableHash).restoreState !== \"undefined\" &&\n typeof (h as SerializableHash).cleanSavedState !== \"undefined\"\n );\n}\n\n// TODO(dchest): figure out the standardized interface for XOF such as\n// SHAKE and BLAKE2X.\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package hmac implements HMAC algorithm.\n */\n\nimport { Hash, SerializableHash, isSerializableHash } from \"@stablelib/hash\";\nimport { equal as constantTimeEqual } from \"@stablelib/constant-time\";\nimport { wipe } from \"@stablelib/wipe\";\n\n/**\n * HMAC implements hash-based message authentication algorithm.\n */\nexport class HMAC implements SerializableHash {\n readonly blockSize: number;\n readonly digestLength: number;\n\n private _inner: Hash; // inner hash\n private _outer: Hash; // outer hash\n\n private _finished = false; // true if HMAC was finalized\n\n // Copies of hash states after keying.\n // Need for quick reset without hashing the key again.\n private _innerKeyedState: any | undefined;\n private _outerKeyedState: any | undefined;\n\n /**\n * Constructs a new HMAC with the given Hash and secret key.\n */\n constructor(hash: new () => Hash | SerializableHash, key: Uint8Array) {\n // Initialize inner and outer hashes.\n this._inner = new hash();\n this._outer = new hash();\n\n // Set block and digest sizes for this HMAC\n // instance to values from the hash.\n this.blockSize = this._outer.blockSize;\n this.digestLength = this._outer.digestLength;\n\n // Pad temporary stores a key (or its hash) padded with zeroes.\n const pad = new Uint8Array(this.blockSize);\n\n if (key.length > this.blockSize) {\n // If key is bigger than hash block size, it must be\n // hashed and this hash is used as a key instead.\n this._inner.update(key).finish(pad).clean();\n } else {\n // Otherwise, copy the key into pad.\n pad.set(key);\n }\n\n // Now two different keys are derived from padded key\n // by xoring a different byte value to each.\n\n // To make inner hash key, xor byte 0x36 into pad.\n for (let i = 0; i < pad.length; i++) {\n pad[i] ^= 0x36;\n }\n // Update inner hash with the result.\n this._inner.update(pad);\n\n // To make outer hash key, xor byte 0x5c into pad.\n // But since we already xored 0x36 there, we must\n // first undo this by xoring it again.\n for (let i = 0; i < pad.length; i++) {\n pad[i] ^= 0x36 ^ 0x5c;\n }\n // Update outer hash with the result.\n this._outer.update(pad);\n\n // Save states of both hashes, so that we can quickly restore\n // them later in reset() without the need to remember the actual\n // key and perform this initialization again.\n if (isSerializableHash(this._inner) && isSerializableHash(this._outer)) {\n this._innerKeyedState = this._inner.saveState();\n this._outerKeyedState = this._outer.saveState();\n }\n\n // Clean pad.\n wipe(pad);\n }\n\n /**\n * Returns HMAC state to the state initialized with key\n * to make it possible to run HMAC over the other data with the same\n * key without creating a new instance.\n */\n reset(): this {\n if (!isSerializableHash(this._inner) || !isSerializableHash(this._outer)) {\n throw new Error(\"hmac: can't reset() because hash doesn't implement restoreState()\");\n }\n // Restore keyed states of inner and outer hashes.\n this._inner.restoreState(this._innerKeyedState);\n this._outer.restoreState(this._outerKeyedState);\n this._finished = false;\n return this;\n }\n\n /**\n * Cleans HMAC state.\n */\n clean() {\n if (isSerializableHash(this._inner)) {\n this._inner.cleanSavedState(this._innerKeyedState);\n }\n if (isSerializableHash(this._outer)) {\n this._outer.cleanSavedState(this._outerKeyedState);\n }\n this._inner.clean();\n this._outer.clean();\n }\n\n /**\n * Updates state with provided data.\n */\n update(data: Uint8Array): this {\n this._inner.update(data);\n return this;\n }\n\n /**\n * Finalizes HMAC and puts the result in out.\n */\n finish(out: Uint8Array): this {\n if (this._finished) {\n // If HMAC was finalized, outer hash is also finalized,\n // so it produces the same digest it produced when it\n // was finalized.\n this._outer.finish(out);\n return this;\n }\n\n // Finalize inner hash and store the result temporarily.\n this._inner.finish(out);\n\n // Update outer hash with digest of inner hash and and finalize it.\n this._outer.update(out.subarray(0, this.digestLength)).finish(out);\n this._finished = true;\n\n return this;\n }\n\n /**\n * Returns the computed message authentication code.\n */\n digest(): Uint8Array {\n const out = new Uint8Array(this.digestLength);\n this.finish(out);\n return out;\n }\n\n /**\n * Saves HMAC state.\n * This function is needed for PBKDF2 optimization.\n */\n saveState(): any {\n if (!isSerializableHash(this._inner)) {\n throw new Error(\"hmac: can't saveState() because hash doesn't implement it\");\n }\n return this._inner.saveState();\n }\n\n restoreState(savedState: any): this {\n if (!isSerializableHash(this._inner) || !isSerializableHash(this._outer)) {\n throw new Error(\"hmac: can't restoreState() because hash doesn't implement it\");\n }\n this._inner.restoreState(savedState);\n this._outer.restoreState(this._outerKeyedState);\n this._finished = false;\n return this;\n }\n\n cleanSavedState(savedState: any) {\n if (!isSerializableHash(this._inner)) {\n throw new Error(\"hmac: can't cleanSavedState() because hash doesn't implement it\");\n }\n this._inner.cleanSavedState(savedState);\n }\n}\n\n/**\n * Returns HMAC using the given hash constructor for the key over data.\n */\nexport function hmac(hash: new () => Hash, key: Uint8Array, data: Uint8Array): Uint8Array {\n const h = new HMAC(hash, key);\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n\n/**\n * Returns true if two HMAC digests are equal.\n * Uses constant-time comparison to avoid leaking timing information.\n *\n * Example:\n *\n * const receivedDigest = ...\n * const realDigest = hmac(SHA256, key, data);\n * if (!equal(receivedDigest, realDigest)) {\n * throw new Error(\"Authentication error\");\n * }\n */\nexport const equal = constantTimeEqual;\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package int provides helper functions for integerss.\n */\n\n// Shim using 16-bit pieces.\nfunction imulShim(a: number, b: number): number {\n const ah = (a >>> 16) & 0xffff, al = a & 0xffff;\n const bh = (b >>> 16) & 0xffff, bl = b & 0xffff;\n return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0) | 0);\n}\n\n/** 32-bit integer multiplication. */\n// Use system Math.imul if available, otherwise use our shim.\nexport const mul = (Math as { imul?(a: number, b: number): number }).imul || imulShim;\n\n/** 32-bit integer addition. */\nexport function add(a: number, b: number): number {\n return (a + b) | 0;\n}\n\n/** 32-bit integer subtraction. */\nexport function sub(a: number, b: number): number {\n return (a - b) | 0;\n}\n\n/** 32-bit integer left rotation */\nexport function rotl(x: number, n: number): number {\n return x << n | x >>> (32 - n);\n}\n\n/** 32-bit integer left rotation */\nexport function rotr(x: number, n: number): number {\n return x << (32 - n) | x >>> n;\n}\n\nfunction isIntegerShim(n: number): boolean {\n return typeof n === \"number\" && isFinite(n) && Math.floor(n) === n;\n}\n\n/**\n * Returns true if the argument is an integer number.\n *\n * In ES2015, Number.isInteger.\n */\nexport const isInteger = (Number as { isInteger?(n: number): boolean }).isInteger || isIntegerShim;\n\n/**\n * Math.pow(2, 53) - 1\n *\n * In ES2015 Number.MAX_SAFE_INTEGER.\n */\nexport const MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Returns true if the argument is a safe integer number\n * (-MIN_SAFE_INTEGER < number <= MAX_SAFE_INTEGER)\n *\n * In ES2015, Number.isSafeInteger.\n */\nexport const isSafeInteger = (n: number): boolean =>\n isInteger(n) && (n >= -MAX_SAFE_INTEGER && n <= MAX_SAFE_INTEGER);\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { scalarMult } from \"@stablelib/x25519\";\nimport { hsalsa } from \"@stablelib/xsalsa20\";\nimport { secretBox, openSecretBox } from \"./secretbox\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport { generateKeyPair } from \"@stablelib/x25519\";\n\nconst zeros16 = new Uint8Array(16);\n\nexport function precomputeSharedKey(theirPublicKey: Uint8Array, mySecretKey: Uint8Array): Uint8Array {\n // Compute scalar multiplication result.\n const key = scalarMult(mySecretKey, theirPublicKey);\n\n // Hash key with HSalsa function.\n hsalsa(key, zeros16, key);\n\n return key;\n}\n\nexport function box(theirPublicKey: Uint8Array, mySecretKey: Uint8Array,\n nonce: Uint8Array, data: Uint8Array): Uint8Array {\n const sharedKey = precomputeSharedKey(theirPublicKey, mySecretKey);\n const result = secretBox(sharedKey, nonce, data);\n wipe(sharedKey);\n return result;\n}\n\nexport function openBox(theirPublicKey: Uint8Array, mySecretKey: Uint8Array,\n nonce: Uint8Array, data: Uint8Array): Uint8Array | null {\n const sharedKey = precomputeSharedKey(theirPublicKey, mySecretKey);\n const result = openSecretBox(sharedKey, nonce, data);\n wipe(sharedKey);\n return result;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package nacl implements NaCl (Networking and Cryptography library) cryptography.\n */\n\nexport * from \"./box\";\nexport * from \"./secretbox\";\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { streamXOR, stream } from \"@stablelib/xsalsa20\";\nimport { oneTimeAuth, equal as authEqual } from \"@stablelib/poly1305\";\nimport { wipe } from \"@stablelib/wipe\";\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\n\nexport function secretBox(key: Uint8Array, nonce: Uint8Array, data: Uint8Array): Uint8Array {\n if (nonce.length !== 24) {\n throw new Error(\"secretBox nonce must be 24 bytes\");\n }\n const firstBlock = new Uint8Array(64);\n\n // Allocate place for nonce and counter.\n const nonceCounter = new Uint8Array(24 + 8);\n\n // Set first bytes to nonce. Last 8 bytes will be counter.\n nonceCounter.set(nonce);\n\n // Generate first block of XSalsa20 stream, of which\n // first 32 bytes will be authentication key, and the rest\n // will be used for encryption.\n stream(key, nonceCounter, firstBlock, 8);\n\n // Allocate result, which will contain 16-byte authenticator\n // concatenated with ciphertext.\n const result = new Uint8Array(16 + data.length);\n\n // Encrypt first 32 bytes of data with last 32 bytes of generated stream.\n for (let i = 0; i < 32 && i < data.length; i++) {\n result[16 + i] = data[i] ^ firstBlock[32 + i];\n }\n\n // Encrypt the rest of data.\n if (data.length > 32) {\n streamXOR(key, nonceCounter, data.subarray(32), result.subarray(16 + 32), 8);\n }\n\n // Calculate Poly1305 authenticator of encrypted data using\n // authentication key in the first block of XSalsa20 stream.\n const auth = oneTimeAuth(firstBlock.subarray(0, 32), result.subarray(16));\n\n // Copy authenticator to the beginning of result.\n for (let i = 0; i < auth.length; i++) {\n result[i] = auth[i];\n }\n\n // Clean auth.\n wipe(auth);\n\n // Clean first block.\n wipe(firstBlock);\n\n // Clean nonceCounter.\n wipe(nonceCounter);\n\n return result;\n}\n\nexport function openSecretBox(key: Uint8Array, nonce: Uint8Array, box: Uint8Array): Uint8Array | null {\n if (nonce.length !== 24) {\n throw new Error(\"secretBox nonce must be 24 bytes\");\n }\n if (box.length < 16) {\n throw new Error(\"secretBox data must be at least 16 bytes\");\n }\n const firstBlock = new Uint8Array(64);\n\n // Allocate place for nonce and counter.\n const nonceCounter = new Uint8Array(24 + 8);\n\n // Set first bytes to nonce. Last 8 bytes will be counter.\n nonceCounter.set(nonce);\n\n // Generate first block of XSalsa20 stream, of which\n // first 32 bytes will be authentication key, and the rest\n // will be used for encryption.\n stream(key, nonceCounter, firstBlock, 8);\n\n // Calculate Poly1305 authenticator of encrypted data using\n // authentication key in the first block of XSalsa20 stream.\n const auth = oneTimeAuth(firstBlock.subarray(0, 32), box.subarray(16));\n\n // Check authenticator.\n if (!authEqual(auth, box.subarray(0, 16))) {\n // Authenticator is incorrect: ciphertext or authenticator\n // was corrupted, maybe maliciously.\n return null;\n }\n\n // Authenticator verifies, so we can decrypt ciphertext.\n const ciphertext = box.subarray(16);\n\n // Allocate result array.\n const result = new Uint8Array(ciphertext.length);\n\n // Decrypt first 32 bytes of box with last 32 bytes of generated stream.\n for (let i = 0; i < 32 && i < ciphertext.length; i++) {\n result[i] = ciphertext[i] ^ firstBlock[32 + i];\n }\n\n // Decrypt the rest of data.\n if (ciphertext.length > 32) {\n streamXOR(key, nonceCounter, ciphertext.subarray(32), result.subarray(32), 8);\n }\n\n // Clean auth.\n wipe(auth);\n\n // Clean first block.\n wipe(firstBlock);\n\n // Clean nonceCounter.\n wipe(nonceCounter);\n\n return result;\n}\n\n/** Generates a 32-byte random secret key. */\nexport function generateKey(prng?: RandomSource): Uint8Array {\n return randomBytes(32, prng);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package poly1305 implements Poly1305 one-time message authentication algorithm.\n */\n\nimport { equal as constantTimeEqual } from \"@stablelib/constant-time\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const DIGEST_LENGTH = 16;\n\n// Port of Andrew Moon's Poly1305-donna-16. Public domain.\n// https://github.com/floodyberry/poly1305-donna\n\n/**\n * Poly1305 computes 16-byte authenticator of message using\n * a one-time 32-byte key.\n *\n * Important: key should be used for only one message,\n * it should never repeat.\n */\nexport class Poly1305 {\n readonly digestLength = DIGEST_LENGTH;\n\n private _buffer = new Uint8Array(16);\n private _r = new Uint16Array(10);\n private _h = new Uint16Array(10);\n private _pad = new Uint16Array(8);\n private _leftover = 0;\n private _fin = 0;\n private _finished = false;\n\n constructor(key: Uint8Array) {\n let t0 = key[0] | key[1] << 8; this._r[0] = (t0) & 0x1fff;\n let t1 = key[2] | key[3] << 8; this._r[1] = ((t0 >>> 13) | (t1 << 3)) & 0x1fff;\n let t2 = key[4] | key[5] << 8; this._r[2] = ((t1 >>> 10) | (t2 << 6)) & 0x1f03;\n let t3 = key[6] | key[7] << 8; this._r[3] = ((t2 >>> 7) | (t3 << 9)) & 0x1fff;\n let t4 = key[8] | key[9] << 8; this._r[4] = ((t3 >>> 4) | (t4 << 12)) & 0x00ff;\n this._r[5] = ((t4 >>> 1)) & 0x1ffe;\n let t5 = key[10] | key[11] << 8; this._r[6] = ((t4 >>> 14) | (t5 << 2)) & 0x1fff;\n let t6 = key[12] | key[13] << 8; this._r[7] = ((t5 >>> 11) | (t6 << 5)) & 0x1f81;\n let t7 = key[14] | key[15] << 8; this._r[8] = ((t6 >>> 8) | (t7 << 8)) & 0x1fff;\n this._r[9] = ((t7 >>> 5)) & 0x007f;\n\n this._pad[0] = key[16] | key[17] << 8;\n this._pad[1] = key[18] | key[19] << 8;\n this._pad[2] = key[20] | key[21] << 8;\n this._pad[3] = key[22] | key[23] << 8;\n this._pad[4] = key[24] | key[25] << 8;\n this._pad[5] = key[26] | key[27] << 8;\n this._pad[6] = key[28] | key[29] << 8;\n this._pad[7] = key[30] | key[31] << 8;\n }\n\n private _blocks(m: Uint8Array, mpos: number, bytes: number) {\n let hibit = this._fin ? 0 : 1 << 11;\n\n let h0 = this._h[0],\n h1 = this._h[1],\n h2 = this._h[2],\n h3 = this._h[3],\n h4 = this._h[4],\n h5 = this._h[5],\n h6 = this._h[6],\n h7 = this._h[7],\n h8 = this._h[8],\n h9 = this._h[9];\n\n let r0 = this._r[0],\n r1 = this._r[1],\n r2 = this._r[2],\n r3 = this._r[3],\n r4 = this._r[4],\n r5 = this._r[5],\n r6 = this._r[6],\n r7 = this._r[7],\n r8 = this._r[8],\n r9 = this._r[9];\n\n while (bytes >= 16) {\n let t0 = m[mpos + 0] | m[mpos + 1] << 8; h0 += (t0) & 0x1fff;\n let t1 = m[mpos + 2] | m[mpos + 3] << 8; h1 += ((t0 >>> 13) | (t1 << 3)) & 0x1fff;\n let t2 = m[mpos + 4] | m[mpos + 5] << 8; h2 += ((t1 >>> 10) | (t2 << 6)) & 0x1fff;\n let t3 = m[mpos + 6] | m[mpos + 7] << 8; h3 += ((t2 >>> 7) | (t3 << 9)) & 0x1fff;\n let t4 = m[mpos + 8] | m[mpos + 9] << 8; h4 += ((t3 >>> 4) | (t4 << 12)) & 0x1fff;\n h5 += ((t4 >>> 1)) & 0x1fff;\n let t5 = m[mpos + 10] | m[mpos + 11] << 8; h6 += ((t4 >>> 14) | (t5 << 2)) & 0x1fff;\n let t6 = m[mpos + 12] | m[mpos + 13] << 8; h7 += ((t5 >>> 11) | (t6 << 5)) & 0x1fff;\n let t7 = m[mpos + 14] | m[mpos + 15] << 8; h8 += ((t6 >>> 8) | (t7 << 8)) & 0x1fff;\n h9 += ((t7 >>> 5)) | hibit;\n\n let c = 0;\n\n let d0 = c;\n d0 += h0 * r0;\n d0 += h1 * (5 * r9);\n d0 += h2 * (5 * r8);\n d0 += h3 * (5 * r7);\n d0 += h4 * (5 * r6);\n c = (d0 >>> 13); d0 &= 0x1fff;\n d0 += h5 * (5 * r5);\n d0 += h6 * (5 * r4);\n d0 += h7 * (5 * r3);\n d0 += h8 * (5 * r2);\n d0 += h9 * (5 * r1);\n c += (d0 >>> 13); d0 &= 0x1fff;\n\n let d1 = c;\n d1 += h0 * r1;\n d1 += h1 * r0;\n d1 += h2 * (5 * r9);\n d1 += h3 * (5 * r8);\n d1 += h4 * (5 * r7);\n c = (d1 >>> 13); d1 &= 0x1fff;\n d1 += h5 * (5 * r6);\n d1 += h6 * (5 * r5);\n d1 += h7 * (5 * r4);\n d1 += h8 * (5 * r3);\n d1 += h9 * (5 * r2);\n c += (d1 >>> 13); d1 &= 0x1fff;\n\n let d2 = c;\n d2 += h0 * r2;\n d2 += h1 * r1;\n d2 += h2 * r0;\n d2 += h3 * (5 * r9);\n d2 += h4 * (5 * r8);\n c = (d2 >>> 13); d2 &= 0x1fff;\n d2 += h5 * (5 * r7);\n d2 += h6 * (5 * r6);\n d2 += h7 * (5 * r5);\n d2 += h8 * (5 * r4);\n d2 += h9 * (5 * r3);\n c += (d2 >>> 13); d2 &= 0x1fff;\n\n let d3 = c;\n d3 += h0 * r3;\n d3 += h1 * r2;\n d3 += h2 * r1;\n d3 += h3 * r0;\n d3 += h4 * (5 * r9);\n c = (d3 >>> 13); d3 &= 0x1fff;\n d3 += h5 * (5 * r8);\n d3 += h6 * (5 * r7);\n d3 += h7 * (5 * r6);\n d3 += h8 * (5 * r5);\n d3 += h9 * (5 * r4);\n c += (d3 >>> 13); d3 &= 0x1fff;\n\n let d4 = c;\n d4 += h0 * r4;\n d4 += h1 * r3;\n d4 += h2 * r2;\n d4 += h3 * r1;\n d4 += h4 * r0;\n c = (d4 >>> 13); d4 &= 0x1fff;\n d4 += h5 * (5 * r9);\n d4 += h6 * (5 * r8);\n d4 += h7 * (5 * r7);\n d4 += h8 * (5 * r6);\n d4 += h9 * (5 * r5);\n c += (d4 >>> 13); d4 &= 0x1fff;\n\n let d5 = c;\n d5 += h0 * r5;\n d5 += h1 * r4;\n d5 += h2 * r3;\n d5 += h3 * r2;\n d5 += h4 * r1;\n c = (d5 >>> 13); d5 &= 0x1fff;\n d5 += h5 * r0;\n d5 += h6 * (5 * r9);\n d5 += h7 * (5 * r8);\n d5 += h8 * (5 * r7);\n d5 += h9 * (5 * r6);\n c += (d5 >>> 13); d5 &= 0x1fff;\n\n let d6 = c;\n d6 += h0 * r6;\n d6 += h1 * r5;\n d6 += h2 * r4;\n d6 += h3 * r3;\n d6 += h4 * r2;\n c = (d6 >>> 13); d6 &= 0x1fff;\n d6 += h5 * r1;\n d6 += h6 * r0;\n d6 += h7 * (5 * r9);\n d6 += h8 * (5 * r8);\n d6 += h9 * (5 * r7);\n c += (d6 >>> 13); d6 &= 0x1fff;\n\n let d7 = c;\n d7 += h0 * r7;\n d7 += h1 * r6;\n d7 += h2 * r5;\n d7 += h3 * r4;\n d7 += h4 * r3;\n c = (d7 >>> 13); d7 &= 0x1fff;\n d7 += h5 * r2;\n d7 += h6 * r1;\n d7 += h7 * r0;\n d7 += h8 * (5 * r9);\n d7 += h9 * (5 * r8);\n c += (d7 >>> 13); d7 &= 0x1fff;\n\n let d8 = c;\n d8 += h0 * r8;\n d8 += h1 * r7;\n d8 += h2 * r6;\n d8 += h3 * r5;\n d8 += h4 * r4;\n c = (d8 >>> 13); d8 &= 0x1fff;\n d8 += h5 * r3;\n d8 += h6 * r2;\n d8 += h7 * r1;\n d8 += h8 * r0;\n d8 += h9 * (5 * r9);\n c += (d8 >>> 13); d8 &= 0x1fff;\n\n let d9 = c;\n d9 += h0 * r9;\n d9 += h1 * r8;\n d9 += h2 * r7;\n d9 += h3 * r6;\n d9 += h4 * r5;\n c = (d9 >>> 13); d9 &= 0x1fff;\n d9 += h5 * r4;\n d9 += h6 * r3;\n d9 += h7 * r2;\n d9 += h8 * r1;\n d9 += h9 * r0;\n c += (d9 >>> 13); d9 &= 0x1fff;\n\n c = (((c << 2) + c)) | 0;\n c = (c + d0) | 0;\n d0 = c & 0x1fff;\n c = (c >>> 13);\n d1 += c;\n\n h0 = d0;\n h1 = d1;\n h2 = d2;\n h3 = d3;\n h4 = d4;\n h5 = d5;\n h6 = d6;\n h7 = d7;\n h8 = d8;\n h9 = d9;\n\n mpos += 16;\n bytes -= 16;\n }\n this._h[0] = h0;\n this._h[1] = h1;\n this._h[2] = h2;\n this._h[3] = h3;\n this._h[4] = h4;\n this._h[5] = h5;\n this._h[6] = h6;\n this._h[7] = h7;\n this._h[8] = h8;\n this._h[9] = h9;\n }\n\n finish(mac: Uint8Array, macpos = 0): this {\n const g = new Uint16Array(10);\n let c: number;\n let mask: number;\n let f: number;\n let i: number;\n\n if (this._leftover) {\n i = this._leftover;\n this._buffer[i++] = 1;\n for (; i < 16; i++) {\n this._buffer[i] = 0;\n }\n this._fin = 1;\n this._blocks(this._buffer, 0, 16);\n }\n\n c = this._h[1] >>> 13;\n this._h[1] &= 0x1fff;\n for (i = 2; i < 10; i++) {\n this._h[i] += c;\n c = this._h[i] >>> 13;\n this._h[i] &= 0x1fff;\n }\n this._h[0] += (c * 5);\n c = this._h[0] >>> 13;\n this._h[0] &= 0x1fff;\n this._h[1] += c;\n c = this._h[1] >>> 13;\n this._h[1] &= 0x1fff;\n this._h[2] += c;\n\n g[0] = this._h[0] + 5;\n c = g[0] >>> 13;\n g[0] &= 0x1fff;\n for (i = 1; i < 10; i++) {\n g[i] = this._h[i] + c;\n c = g[i] >>> 13;\n g[i] &= 0x1fff;\n }\n g[9] -= (1 << 13);\n\n mask = (c ^ 1) - 1;\n for (i = 0; i < 10; i++) {\n g[i] &= mask;\n }\n mask = ~mask;\n for (i = 0; i < 10; i++) {\n this._h[i] = (this._h[i] & mask) | g[i];\n }\n\n this._h[0] = ((this._h[0]) | (this._h[1] << 13)) & 0xffff;\n this._h[1] = ((this._h[1] >>> 3) | (this._h[2] << 10)) & 0xffff;\n this._h[2] = ((this._h[2] >>> 6) | (this._h[3] << 7)) & 0xffff;\n this._h[3] = ((this._h[3] >>> 9) | (this._h[4] << 4)) & 0xffff;\n this._h[4] = ((this._h[4] >>> 12) | (this._h[5] << 1) | (this._h[6] << 14)) & 0xffff;\n this._h[5] = ((this._h[6] >>> 2) | (this._h[7] << 11)) & 0xffff;\n this._h[6] = ((this._h[7] >>> 5) | (this._h[8] << 8)) & 0xffff;\n this._h[7] = ((this._h[8] >>> 8) | (this._h[9] << 5)) & 0xffff;\n\n f = this._h[0] + this._pad[0];\n this._h[0] = f & 0xffff;\n for (i = 1; i < 8; i++) {\n f = (((this._h[i] + this._pad[i]) | 0) + (f >>> 16)) | 0;\n this._h[i] = f & 0xffff;\n }\n\n mac[macpos + 0] = this._h[0] >>> 0;\n mac[macpos + 1] = this._h[0] >>> 8;\n mac[macpos + 2] = this._h[1] >>> 0;\n mac[macpos + 3] = this._h[1] >>> 8;\n mac[macpos + 4] = this._h[2] >>> 0;\n mac[macpos + 5] = this._h[2] >>> 8;\n mac[macpos + 6] = this._h[3] >>> 0;\n mac[macpos + 7] = this._h[3] >>> 8;\n mac[macpos + 8] = this._h[4] >>> 0;\n mac[macpos + 9] = this._h[4] >>> 8;\n mac[macpos + 10] = this._h[5] >>> 0;\n mac[macpos + 11] = this._h[5] >>> 8;\n mac[macpos + 12] = this._h[6] >>> 0;\n mac[macpos + 13] = this._h[6] >>> 8;\n mac[macpos + 14] = this._h[7] >>> 0;\n mac[macpos + 15] = this._h[7] >>> 8;\n\n this._finished = true;\n return this;\n }\n\n update(m: Uint8Array): this {\n let mpos = 0;\n let bytes = m.length;\n let want: number;\n\n if (this._leftover) {\n want = (16 - this._leftover);\n if (want > bytes) {\n want = bytes;\n }\n for (let i = 0; i < want; i++) {\n this._buffer[this._leftover + i] = m[mpos + i];\n }\n bytes -= want;\n mpos += want;\n this._leftover += want;\n if (this._leftover < 16) {\n return this;\n }\n this._blocks(this._buffer, 0, 16);\n this._leftover = 0;\n }\n\n if (bytes >= 16) {\n want = bytes - (bytes % 16);\n this._blocks(m, mpos, want);\n mpos += want;\n bytes -= want;\n }\n\n if (bytes) {\n for (let i = 0; i < bytes; i++) {\n this._buffer[this._leftover + i] = m[mpos + i];\n }\n this._leftover += bytes;\n }\n\n return this;\n }\n\n digest(): Uint8Array {\n // TODO(dchest): it behaves differently than other hashes/HMAC,\n // because it throws when finished — others just return saved result.\n if (this._finished) {\n throw new Error(\"Poly1305 was finished\");\n }\n let mac = new Uint8Array(16);\n this.finish(mac);\n return mac;\n }\n\n clean(): this {\n wipe(this._buffer);\n wipe(this._r);\n wipe(this._h);\n wipe(this._pad);\n this._leftover = 0;\n this._fin = 0;\n this._finished = true; // mark as finished even if not\n return this;\n }\n}\n\n/**\n * Returns 16-byte authenticator of data using a one-time 32-byte key.\n *\n * Important: key should be used for only one message, it should never repeat.\n */\nexport function oneTimeAuth(key: Uint8Array, data: Uint8Array): Uint8Array {\n const h = new Poly1305(key);\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n\n/**\n * Returns true if two authenticators are 16-byte long and equal.\n * Uses contant-time comparison to avoid leaking timing information.\n */\nexport function equal(a: Uint8Array, b: Uint8Array): boolean {\n if (a.length !== DIGEST_LENGTH || b.length !== DIGEST_LENGTH) {\n return false;\n }\n return constantTimeEqual(a, b);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package random provides functions to access system's\n * cryptographically secure random byte generator.\n */\n\nimport { RandomSource } from \"./source\";\nimport { SystemRandomSource } from \"./source/system\";\nimport { readUint32LE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport { RandomSource } from \"./source\";\n\nexport const defaultRandomSource = new SystemRandomSource();\n\nexport function randomBytes(length: number, prng: RandomSource = defaultRandomSource): Uint8Array {\n return prng.randomBytes(length);\n}\n\n/**\n * Returns a uniformly random unsigned 32-bit integer.\n */\nexport function randomUint32(prng: RandomSource = defaultRandomSource): number {\n // Generate 4-byte random buffer.\n const buf = randomBytes(4, prng);\n\n // Convert bytes from buffer into a 32-bit integer.\n // It's not important which byte order to use, since\n // the result is random.\n const result = readUint32LE(buf);\n\n // Clean the buffer.\n wipe(buf);\n\n return result;\n}\n\n/** 62 alphanumeric characters for default charset of randomString() */\nconst ALPHANUMERIC = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n\n/**\n * Returns a uniform random string of the given length\n * with characters from the given charset.\n *\n * Charset must not have more than 256 characters.\n *\n * Default charset generates case-sensitive alphanumeric\n * strings (0-9, A-Z, a-z).\n */\nexport function randomString(\n length: number,\n charset = ALPHANUMERIC,\n prng: RandomSource = defaultRandomSource\n): string {\n if (charset.length < 2) {\n throw new Error(\"randomString charset is too short\");\n }\n if (charset.length > 256) {\n throw new Error(\"randomString charset is too long\");\n }\n let out = '';\n const charsLen = charset.length;\n const maxByte = 256 - (256 % charsLen);\n while (length > 0) {\n const buf = randomBytes(Math.ceil(length * 256 / maxByte), prng);\n for (let i = 0; i < buf.length && length > 0; i++) {\n const randomByte = buf[i];\n if (randomByte < maxByte) {\n out += charset.charAt(randomByte % charsLen);\n length--;\n }\n }\n wipe(buf);\n }\n return out;\n}\n\n/**\n * Returns uniform random string containing at least the given\n * number of bits of entropy.\n *\n * For example, randomStringForEntropy(128) will return a 22-character\n * alphanumeric string, while randomStringForEntropy(128, \"0123456789\")\n * will return a 39-character numeric string, both will contain at\n * least 128 bits of entropy.\n *\n * Default charset generates case-sensitive alphanumeric\n * strings (0-9, A-Z, a-z).\n */\nexport function randomStringForEntropy(\n bits: number,\n charset = ALPHANUMERIC,\n prng: RandomSource = defaultRandomSource\n): string {\n const length = Math.ceil(bits / (Math.log(charset.length) / Math.LN2));\n return randomString(length, charset, prng);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { RandomSource } from \"./\";\n\nconst QUOTA = 65536;\n\nexport class BrowserRandomSource implements RandomSource {\n isAvailable = false;\n isInstantiated = false;\n\n private _crypto?: { getRandomValues: typeof window.crypto.getRandomValues };\n\n constructor() {\n const browserCrypto = typeof self !== 'undefined'\n ? (self.crypto || (self as { msCrypto?: any }).msCrypto) // IE11 has msCrypto\n : null;\n\n if (browserCrypto && browserCrypto.getRandomValues !== undefined) {\n this._crypto = browserCrypto;\n this.isAvailable = true;\n this.isInstantiated = true;\n }\n }\n\n randomBytes(length: number): Uint8Array {\n if (!this.isAvailable || !this._crypto) {\n throw new Error(\"Browser random byte generator is not available.\");\n }\n const out = new Uint8Array(length);\n for (let i = 0; i < out.length; i += QUOTA) {\n this._crypto.getRandomValues(out.subarray(i, i + Math.min(out.length - i, QUOTA)));\n }\n return out;\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { RandomSource } from \"./\";\nimport { wipe } from \"@stablelib/wipe\";\n\ndeclare function require(name: string): any;\n\nexport class NodeRandomSource implements RandomSource {\n isAvailable = false;\n isInstantiated = false;\n\n private _crypto: { randomBytes(n: number): Uint8Array } | undefined;\n\n constructor() {\n if (typeof require !== \"undefined\") {\n const nodeCrypto = require(\"crypto\");\n if (nodeCrypto && nodeCrypto.randomBytes) {\n this._crypto = nodeCrypto;\n this.isAvailable = true;\n this.isInstantiated = true;\n }\n }\n }\n\n randomBytes(length: number): Uint8Array {\n if (!this.isAvailable || !this._crypto) {\n throw new Error(\"Node.js random byte generator is not available.\");\n }\n\n // Get random bytes (result is Buffer).\n let buffer = this._crypto.randomBytes(length);\n\n // Make sure we got the length that we requested.\n if (buffer.length !== length) {\n throw new Error(\"NodeRandomSource: got fewer bytes than requested\");\n }\n\n // Allocate output array.\n const out = new Uint8Array(length);\n\n // Copy bytes from buffer to output.\n for (let i = 0; i < out.length; i++) {\n out[i] = buffer[i];\n }\n\n // Cleanup.\n wipe(buffer);\n\n return out;\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { RandomSource } from \"./\";\nimport { BrowserRandomSource } from \"./browser\";\nimport { NodeRandomSource } from \"./node\";\n\nexport class SystemRandomSource implements RandomSource {\n isAvailable = false;\n name = \"\";\n private _source: RandomSource;\n\n constructor() {\n // Try browser.\n this._source = new BrowserRandomSource();\n if (this._source.isAvailable) {\n this.isAvailable = true;\n this.name = \"Browser\";\n return;\n }\n\n // If no browser source, try Node.\n this._source = new NodeRandomSource();\n if (this._source.isAvailable) {\n this.isAvailable = true;\n this.name = \"Node\";\n return;\n }\n\n // No sources, we're out of options.\n }\n\n randomBytes(length: number): Uint8Array {\n if (!this.isAvailable) {\n throw new Error(\"System random byte generator is not available.\");\n }\n return this._source.randomBytes(length);\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package salsa20 implements Salsa20 stream cipher.\n */\n\nimport { writeUint32LE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\n// Number of Salsa20 rounds (Salsa20/20).\nconst ROUNDS = 20;\n\n/**\n * Applies the Salsa20 core function to 16-byte input,\n * 32-byte key key, and puts the result into 64-byte array out.\n */\nfunction core(out: Uint8Array, input: Uint8Array, key: Uint8Array): void {\n let j0 = 0x61707865; // \"expa\"\n let j1 = (key[3] << 24) | (key[2] << 16) | (key[1] << 8) | key[0];\n let j2 = (key[7] << 24) | (key[6] << 16) | (key[5] << 8) | key[4];\n let j3 = (key[11] << 24) | (key[10] << 16) | (key[9] << 8) | key[8];\n let j4 = (key[15] << 24) | (key[14] << 16) | (key[13] << 8) | key[12];\n let j5 = 0x3320646E; // \"nd 3\"\n let j6 = (input[3] << 24) | (input[2] << 16) | (input[1] << 8) | input[0];\n let j7 = (input[7] << 24) | (input[6] << 16) | (input[5] << 8) | input[4];\n let j8 = (input[11] << 24) | (input[10] << 16) | (input[9] << 8) | input[8];\n let j9 = (input[15] << 24) | (input[14] << 16) | (input[13] << 8) | input[12];\n let j10 = 0x79622D32; // \"2-by\"\n let j11 = (key[19] << 24) | (key[18] << 16) | (key[17] << 8) | key[16];\n let j12 = (key[23] << 24) | (key[22] << 16) | (key[21] << 8) | key[20];\n let j13 = (key[27] << 24) | (key[26] << 16) | (key[25] << 8) | key[24];\n let j14 = (key[31] << 24) | (key[30] << 16) | (key[29] << 8) | key[28];\n let j15 = 0x6B206574; // \"te k\"\n\n let x0 = j0;\n let x1 = j1;\n let x2 = j2;\n let x3 = j3;\n let x4 = j4;\n let x5 = j5;\n let x6 = j6;\n let x7 = j7;\n let x8 = j8;\n let x9 = j9;\n let x10 = j10;\n let x11 = j11;\n let x12 = j12;\n let x13 = j13;\n let x14 = j14;\n let x15 = j15;\n let u: number;\n\n for (let i = 0; i < ROUNDS; i += 2) {\n u = x0 + x12 | 0;\n x4 ^= u << 7 | u >>> (32 - 7);\n u = x4 + x0 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x4 | 0;\n x12 ^= u << 13 | u >>> (32 - 13);\n u = x12 + x8 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x1 | 0;\n x9 ^= u << 7 | u >>> (32 - 7);\n u = x9 + x5 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x9 | 0;\n x1 ^= u << 13 | u >>> (32 - 13);\n u = x1 + x13 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x6 | 0;\n x14 ^= u << 7 | u >>> (32 - 7);\n u = x14 + x10 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x14 | 0;\n x6 ^= u << 13 | u >>> (32 - 13);\n u = x6 + x2 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x11 | 0;\n x3 ^= u << 7 | u >>> (32 - 7);\n u = x3 + x15 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x3 | 0;\n x11 ^= u << 13 | u >>> (32 - 13);\n u = x11 + x7 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n\n u = x0 + x3 | 0;\n x1 ^= u << 7 | u >>> (32 - 7);\n u = x1 + x0 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x1 | 0;\n x3 ^= u << 13 | u >>> (32 - 13);\n u = x3 + x2 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x4 | 0;\n x6 ^= u << 7 | u >>> (32 - 7);\n u = x6 + x5 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x6 | 0;\n x4 ^= u << 13 | u >>> (32 - 13);\n u = x4 + x7 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x9 | 0;\n x11 ^= u << 7 | u >>> (32 - 7);\n u = x11 + x10 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x11 | 0;\n x9 ^= u << 13 | u >>> (32 - 13);\n u = x9 + x8 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x14 | 0;\n x12 ^= u << 7 | u >>> (32 - 7);\n u = x12 + x15 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x12 | 0;\n x14 ^= u << 13 | u >>> (32 - 13);\n u = x14 + x13 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n }\n writeUint32LE(x0 + j0 | 0, out, 0);\n writeUint32LE(x1 + j1 | 0, out, 4);\n writeUint32LE(x2 + j2 | 0, out, 8);\n writeUint32LE(x3 + j3 | 0, out, 12);\n writeUint32LE(x4 + j4 | 0, out, 16);\n writeUint32LE(x5 + j5 | 0, out, 20);\n writeUint32LE(x6 + j6 | 0, out, 24);\n writeUint32LE(x7 + j7 | 0, out, 28);\n writeUint32LE(x8 + j8 | 0, out, 32);\n writeUint32LE(x9 + j9 | 0, out, 36);\n writeUint32LE(x10 + j10 | 0, out, 40);\n writeUint32LE(x11 + j11 | 0, out, 44);\n writeUint32LE(x12 + j12 | 0, out, 48);\n writeUint32LE(x13 + j13 | 0, out, 52);\n writeUint32LE(x14 + j14 | 0, out, 56);\n writeUint32LE(x15 + j15 | 0, out, 60);\n}\n\n/**\n * Encrypt src with Salsa20/20 stream generated for the given 32-byte key\n * and 8-byte and write the result into dst and return it.\n *\n * dst and src may be the same, but otherwise must not overlap.\n *\n * Never use the same key and nonce to encrypt more than one message.\n *\n * If nonceInplaceCounterLength is not 0, the nonce is assumed to be a 16-byte\n * array with stream counter in first nonceInplaceCounterLength bytes and nonce\n * in the last remaining bytes. The counter will be incremented inplace for\n * each Salsa20 block. This is useful if you need to encrypt one stream of data\n * in chunks.\n */\nexport function streamXOR(key: Uint8Array, nonce: Uint8Array,\n src: Uint8Array, dst: Uint8Array, nonceInplaceCounterLength = 0): Uint8Array {\n // We only support 256-bit keys.\n if (key.length !== 32) {\n throw new Error(\"Salsa20: key size must be 32 bytes\");\n }\n\n if (dst.length < src.length) {\n throw new Error(\"Salsa20: destination is shorter than source\");\n }\n\n let nc: Uint8Array;\n let counterStart: number;\n\n if (nonceInplaceCounterLength === 0) {\n if (nonce.length !== 8) {\n throw new Error(\"Salsa20 nonce must be 8 bytes\");\n }\n nc = new Uint8Array(16);\n // First bytes of nc are nonce, set it.\n nc.set(nonce);\n // Last bytes are counter.\n counterStart = nonce.length;\n } else {\n if (nonce.length !== 16) {\n throw new Error(\"Salsa20 nonce with counter must be 16 bytes\");\n }\n // This will update passed nonce with counter inplace.\n nc = nonce;\n counterStart = 16 - nonceInplaceCounterLength;\n }\n\n // Allocate temporary space for Salsa20 block.\n const block = new Uint8Array(64);\n\n for (let i = 0; i < src.length; i += 64) {\n // Generate a block.\n core(block, nc, key);\n\n // XOR block bytes with src into dst.\n for (let j = i; j < i + 64 && j < src.length; j++) {\n dst[j] = src[j] ^ block[j - i];\n }\n\n // Increment counter.\n incrementCounter(nc, counterStart, nc.length - counterStart);\n }\n\n // Cleanup temporary space.\n wipe(block);\n\n if (nonceInplaceCounterLength === 0) {\n // Cleanup counter.\n wipe(nc);\n }\n\n return dst;\n}\n\n/**\n * Generate Salsa20/20 stream for the given 32-byte key and 8-byte nonce\n * and write it into dst and return it.\n *\n * Never use the same key and nonce to generate more than one stream.\n *\n * If nonceInplaceCounterLength is not 0, it behaves the same\n * with respect to the nonce as described in streamXOR documentation.\n *\n * stream is like streamXOR with all-zero src.\n */\nexport function stream(key: Uint8Array, nonce: Uint8Array,\n dst: Uint8Array, nonceInplaceCounterLength = 0): Uint8Array {\n wipe(dst);\n return streamXOR(key, nonce, dst, dst, nonceInplaceCounterLength);\n}\n\nfunction incrementCounter(counter: Uint8Array, pos: number, len: number) {\n let carry = 1;\n while (len--) {\n carry = carry + (counter[pos] & 0xff) | 0;\n counter[pos] = carry & 0xff;\n carry >>>= 8;\n pos++;\n }\n if (carry > 0) {\n throw new Error(\"Salsa20: counter overflow\");\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package sha512 implements SHA-2-512 cryptographic hash function.\n */\n\nimport { SerializableHash } from \"@stablelib/hash\";\nimport { readUint32BE, writeUint32BE } from \"@stablelib/binary\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const DIGEST_LENGTH = 64;\nexport const BLOCK_SIZE = 128;\n\n/**\n * SHA-2-512 cryptographic hash algorithm.\n */\nexport class SHA512 implements SerializableHash {\n /** Length of hash output */\n readonly digestLength: number = DIGEST_LENGTH;\n\n /** Block size */\n readonly blockSize: number = BLOCK_SIZE;\n\n // Note: Int32Array is used instead of Uint32Array for performance reasons.\n protected _stateHi = new Int32Array(8); // hash state, high bytes\n protected _stateLo = new Int32Array(8); // hash state, low bytes\n private _tempHi = new Int32Array(16); // temporary state, high bytes\n private _tempLo = new Int32Array(16); // temporary state, low bytes\n private _buffer = new Uint8Array(256); // buffer for data to hash\n private _bufferLength = 0; // number of bytes in buffer\n private _bytesHashed = 0; // number of total bytes hashed\n private _finished = false; // indicates whether the hash was finalized\n\n constructor() {\n this.reset();\n }\n\n protected _initState() {\n this._stateHi[0] = 0x6a09e667;\n this._stateHi[1] = 0xbb67ae85;\n this._stateHi[2] = 0x3c6ef372;\n this._stateHi[3] = 0xa54ff53a;\n this._stateHi[4] = 0x510e527f;\n this._stateHi[5] = 0x9b05688c;\n this._stateHi[6] = 0x1f83d9ab;\n this._stateHi[7] = 0x5be0cd19;\n\n this._stateLo[0] = 0xf3bcc908;\n this._stateLo[1] = 0x84caa73b;\n this._stateLo[2] = 0xfe94f82b;\n this._stateLo[3] = 0x5f1d36f1;\n this._stateLo[4] = 0xade682d1;\n this._stateLo[5] = 0x2b3e6c1f;\n this._stateLo[6] = 0xfb41bd6b;\n this._stateLo[7] = 0x137e2179;\n }\n\n /**\n * Resets hash state making it possible\n * to re-use this instance to hash other data.\n */\n reset(): this {\n this._initState();\n this._bufferLength = 0;\n this._bytesHashed = 0;\n this._finished = false;\n return this;\n }\n\n /**\n * Cleans internal buffers and resets hash state.\n */\n clean() {\n wipe(this._buffer);\n wipe(this._tempHi);\n wipe(this._tempLo);\n this.reset();\n }\n\n /**\n * Updates hash state with the given data.\n *\n * Throws error when trying to update already finalized hash:\n * instance must be reset to update it again.\n */\n update(data: Uint8Array, dataLength: number = data.length): this {\n if (this._finished) {\n throw new Error(\"SHA512: can't update because hash was finished.\");\n }\n let dataPos = 0;\n this._bytesHashed += dataLength;\n if (this._bufferLength > 0) {\n while (this._bufferLength < BLOCK_SIZE && dataLength > 0) {\n this._buffer[this._bufferLength++] = data[dataPos++];\n dataLength--;\n }\n if (this._bufferLength === this.blockSize) {\n hashBlocks(this._tempHi, this._tempLo, this._stateHi, this._stateLo,\n this._buffer, 0, this.blockSize);\n this._bufferLength = 0;\n }\n }\n if (dataLength >= this.blockSize) {\n dataPos = hashBlocks(this._tempHi, this._tempLo, this._stateHi, this._stateLo,\n data, dataPos, dataLength);\n dataLength %= this.blockSize;\n }\n while (dataLength > 0) {\n this._buffer[this._bufferLength++] = data[dataPos++];\n dataLength--;\n }\n return this;\n }\n\n /**\n * Finalizes hash state and puts hash into out.\n * If hash was already finalized, puts the same value.\n */\n finish(out: Uint8Array): this {\n if (!this._finished) {\n const bytesHashed = this._bytesHashed;\n const left = this._bufferLength;\n const bitLenHi = (bytesHashed / 0x20000000) | 0;\n const bitLenLo = bytesHashed << 3;\n const padLength = (bytesHashed % 128 < 112) ? 128 : 256;\n\n this._buffer[left] = 0x80;\n for (let i = left + 1; i < padLength - 8; i++) {\n this._buffer[i] = 0;\n }\n writeUint32BE(bitLenHi, this._buffer, padLength - 8);\n writeUint32BE(bitLenLo, this._buffer, padLength - 4);\n\n hashBlocks(this._tempHi, this._tempLo, this._stateHi, this._stateLo, this._buffer, 0, padLength);\n\n this._finished = true;\n }\n\n for (let i = 0; i < this.digestLength / 8; i++) {\n writeUint32BE(this._stateHi[i], out, i * 8);\n writeUint32BE(this._stateLo[i], out, i * 8 + 4);\n }\n\n return this;\n }\n\n /**\n * Returns the final hash digest.\n */\n digest(): Uint8Array {\n const out = new Uint8Array(this.digestLength);\n this.finish(out);\n return out;\n }\n\n /**\n * Function useful for HMAC/PBKDF2 optimization. Returns hash state to be\n * used with restoreState(). Only chain value is saved, not buffers or\n * other state variables.\n */\n saveState(): SavedState {\n if (this._finished) {\n throw new Error(\"SHA256: cannot save finished state\");\n }\n return {\n stateHi: new Int32Array(this._stateHi),\n stateLo: new Int32Array(this._stateLo),\n buffer: this._bufferLength > 0 ? new Uint8Array(this._buffer) : undefined,\n bufferLength: this._bufferLength,\n bytesHashed: this._bytesHashed\n };\n }\n\n /**\n * Function useful for HMAC/PBKDF2 optimization. Restores state saved by\n * saveState() and sets bytesHashed to the given value.\n */\n restoreState(savedState: SavedState): this {\n this._stateHi.set(savedState.stateHi);\n this._stateLo.set(savedState.stateLo);\n this._bufferLength = savedState.bufferLength;\n if (savedState.buffer) {\n this._buffer.set(savedState.buffer);\n }\n this._bytesHashed = savedState.bytesHashed;\n this._finished = false;\n return this;\n }\n\n /**\n * Cleans state returned by saveState().\n */\n cleanSavedState(savedState: SavedState) {\n wipe(savedState.stateHi);\n wipe(savedState.stateLo);\n if (savedState.buffer) {\n wipe(savedState.buffer);\n }\n savedState.bufferLength = 0;\n savedState.bytesHashed = 0;\n }\n}\n\nexport type SavedState = {\n stateHi: Int32Array;\n stateLo: Int32Array;\n buffer: Uint8Array | undefined;\n bufferLength: number;\n bytesHashed: number;\n};\n\n// Constants\nconst K = new Int32Array([\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n]);\n\n\nfunction hashBlocks(wh: Int32Array, wl: Int32Array, hh: Int32Array, hl: Int32Array,\n m: Uint8Array, pos: number, len: number): number {\n\n let ah0 = hh[0],\n ah1 = hh[1],\n ah2 = hh[2],\n ah3 = hh[3],\n ah4 = hh[4],\n ah5 = hh[5],\n ah6 = hh[6],\n ah7 = hh[7],\n\n al0 = hl[0],\n al1 = hl[1],\n al2 = hl[2],\n al3 = hl[3],\n al4 = hl[4],\n al5 = hl[5],\n al6 = hl[6],\n al7 = hl[7];\n\n let h: number, l: number;\n let th: number, tl: number;\n let a: number, b: number, c: number, d: number;\n\n while (len >= 128) {\n for (let i = 0; i < 16; i++) {\n const j = 8 * i + pos;\n wh[i] = readUint32BE(m, j);\n wl[i] = readUint32BE(m, j + 4);\n }\n for (let i = 0; i < 80; i++) {\n let bh0 = ah0;\n let bh1 = ah1;\n let bh2 = ah2;\n let bh3 = ah3;\n let bh4 = ah4;\n let bh5 = ah5;\n let bh6 = ah6;\n let bh7 = ah7;\n\n let bl0 = al0;\n let bl1 = al1;\n let bl2 = al2;\n let bl3 = al3;\n let bl4 = al4;\n let bl5 = al5;\n let bl6 = al6;\n let bl7 = al7;\n\n // add\n h = ah7;\n l = al7;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n // Sigma1\n h = ((ah4 >>> 14) | (al4 << (32 - 14))) ^ ((ah4 >>> 18) |\n (al4 << (32 - 18))) ^ ((al4 >>> (41 - 32)) | (ah4 << (32 - (41 - 32))));\n l = ((al4 >>> 14) | (ah4 << (32 - 14))) ^ ((al4 >>> 18) |\n (ah4 << (32 - 18))) ^ ((ah4 >>> (41 - 32)) | (al4 << (32 - (41 - 32))));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // Ch\n h = (ah4 & ah5) ^ (~ah4 & ah6);\n l = (al4 & al5) ^ (~al4 & al6);\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // K\n h = K[i * 2];\n l = K[i * 2 + 1];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // w\n h = wh[i % 16];\n l = wl[i % 16];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n th = c & 0xffff | d << 16;\n tl = a & 0xffff | b << 16;\n\n // add\n h = th;\n l = tl;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n // Sigma0\n h = ((ah0 >>> 28) | (al0 << (32 - 28))) ^ ((al0 >>> (34 - 32)) |\n (ah0 << (32 - (34 - 32)))) ^ ((al0 >>> (39 - 32)) | (ah0 << (32 - (39 - 32))));\n l = ((al0 >>> 28) | (ah0 << (32 - 28))) ^ ((ah0 >>> (34 - 32)) |\n (al0 << (32 - (34 - 32)))) ^ ((ah0 >>> (39 - 32)) | (al0 << (32 - (39 - 32))));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // Maj\n h = (ah0 & ah1) ^ (ah0 & ah2) ^ (ah1 & ah2);\n l = (al0 & al1) ^ (al0 & al2) ^ (al1 & al2);\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n bh7 = (c & 0xffff) | (d << 16);\n bl7 = (a & 0xffff) | (b << 16);\n\n // add\n h = bh3;\n l = bl3;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = th;\n l = tl;\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n bh3 = (c & 0xffff) | (d << 16);\n bl3 = (a & 0xffff) | (b << 16);\n\n ah1 = bh0;\n ah2 = bh1;\n ah3 = bh2;\n ah4 = bh3;\n ah5 = bh4;\n ah6 = bh5;\n ah7 = bh6;\n ah0 = bh7;\n\n al1 = bl0;\n al2 = bl1;\n al3 = bl2;\n al4 = bl3;\n al5 = bl4;\n al6 = bl5;\n al7 = bl6;\n al0 = bl7;\n\n if (i % 16 === 15) {\n for (let j = 0; j < 16; j++) {\n // add\n h = wh[j];\n l = wl[j];\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = wh[(j + 9) % 16];\n l = wl[(j + 9) % 16];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // sigma0\n th = wh[(j + 1) % 16];\n tl = wl[(j + 1) % 16];\n h = ((th >>> 1) | (tl << (32 - 1))) ^ ((th >>> 8) |\n (tl << (32 - 8))) ^ (th >>> 7);\n l = ((tl >>> 1) | (th << (32 - 1))) ^ ((tl >>> 8) |\n (th << (32 - 8))) ^ ((tl >>> 7) | (th << (32 - 7)));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n // sigma1\n th = wh[(j + 14) % 16];\n tl = wl[(j + 14) % 16];\n h = ((th >>> 19) | (tl << (32 - 19))) ^ ((tl >>> (61 - 32)) |\n (th << (32 - (61 - 32)))) ^ (th >>> 6);\n l = ((tl >>> 19) | (th << (32 - 19))) ^ ((th >>> (61 - 32)) |\n (tl << (32 - (61 - 32)))) ^ ((tl >>> 6) | (th << (32 - 6)));\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n wh[j] = (c & 0xffff) | (d << 16);\n wl[j] = (a & 0xffff) | (b << 16);\n }\n }\n }\n\n // add\n h = ah0;\n l = al0;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[0];\n l = hl[0];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[0] = ah0 = (c & 0xffff) | (d << 16);\n hl[0] = al0 = (a & 0xffff) | (b << 16);\n\n h = ah1;\n l = al1;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[1];\n l = hl[1];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[1] = ah1 = (c & 0xffff) | (d << 16);\n hl[1] = al1 = (a & 0xffff) | (b << 16);\n\n h = ah2;\n l = al2;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[2];\n l = hl[2];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[2] = ah2 = (c & 0xffff) | (d << 16);\n hl[2] = al2 = (a & 0xffff) | (b << 16);\n\n h = ah3;\n l = al3;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[3];\n l = hl[3];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[3] = ah3 = (c & 0xffff) | (d << 16);\n hl[3] = al3 = (a & 0xffff) | (b << 16);\n\n h = ah4;\n l = al4;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[4];\n l = hl[4];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[4] = ah4 = (c & 0xffff) | (d << 16);\n hl[4] = al4 = (a & 0xffff) | (b << 16);\n\n h = ah5;\n l = al5;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[5];\n l = hl[5];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[5] = ah5 = (c & 0xffff) | (d << 16);\n hl[5] = al5 = (a & 0xffff) | (b << 16);\n\n h = ah6;\n l = al6;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[6];\n l = hl[6];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[6] = ah6 = (c & 0xffff) | (d << 16);\n hl[6] = al6 = (a & 0xffff) | (b << 16);\n\n h = ah7;\n l = al7;\n\n a = l & 0xffff; b = l >>> 16;\n c = h & 0xffff; d = h >>> 16;\n\n h = hh[7];\n l = hl[7];\n\n a += l & 0xffff; b += l >>> 16;\n c += h & 0xffff; d += h >>> 16;\n\n b += a >>> 16;\n c += b >>> 16;\n d += c >>> 16;\n\n hh[7] = ah7 = (c & 0xffff) | (d << 16);\n hl[7] = al7 = (a & 0xffff) | (b << 16);\n\n pos += 128;\n len -= 128;\n }\n\n return pos;\n}\n\nexport function hash(data: Uint8Array): Uint8Array {\n const h = new SHA512();\n h.update(data);\n const digest = h.digest();\n h.clean();\n return digest;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package utf8 implements UTF-8 encoding and decoding.\n */\n\nconst INVALID_UTF16 = \"utf8: invalid string\";\nconst INVALID_UTF8 = \"utf8: invalid source encoding\";\n\n/**\n * Encodes the given string into UTF-8 byte array.\n * Throws if the source string has invalid UTF-16 encoding.\n */\nexport function encode(s: string): Uint8Array {\n // Calculate result length and allocate output array.\n // encodedLength() also validates string and throws errors,\n // so we don't need repeat validation here.\n const arr = new Uint8Array(encodedLength(s));\n\n let pos = 0;\n for (let i = 0; i < s.length; i++) {\n let c = s.charCodeAt(i);\n if (c < 0x80) {\n arr[pos++] = c;\n } else if (c < 0x800) {\n arr[pos++] = 0xc0 | c >> 6;\n arr[pos++] = 0x80 | c & 0x3f;\n } else if (c < 0xd800) {\n arr[pos++] = 0xe0 | c >> 12;\n arr[pos++] = 0x80 | (c >> 6) & 0x3f;\n arr[pos++] = 0x80 | c & 0x3f;\n } else {\n i++; // get one more character\n c = (c & 0x3ff) << 10;\n c |= s.charCodeAt(i) & 0x3ff;\n c += 0x10000;\n\n arr[pos++] = 0xf0 | c >> 18;\n arr[pos++] = 0x80 | (c >> 12) & 0x3f;\n arr[pos++] = 0x80 | (c >> 6) & 0x3f;\n arr[pos++] = 0x80 | c & 0x3f;\n }\n }\n return arr;\n}\n\n/**\n * Returns the number of bytes required to encode the given string into UTF-8.\n * Throws if the source string has invalid UTF-16 encoding.\n */\nexport function encodedLength(s: string): number {\n let result = 0;\n for (let i = 0; i < s.length; i++) {\n const c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n } else if (c < 0x800) {\n result += 2;\n } else if (c < 0xd800) {\n result += 3;\n } else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n } else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}\n\n/**\n * Decodes the given byte array from UTF-8 into a string.\n * Throws if encoding is invalid.\n */\nexport function decode(arr: Uint8Array): string {\n const chars: string[] = [];\n for (let i = 0; i < arr.length; i++) {\n let b = arr[i];\n\n if (b & 0x80) {\n let min;\n if (b < 0xe0) {\n // Need 1 more byte.\n if (i >= arr.length) {\n throw new Error(INVALID_UTF8);\n }\n const n1 = arr[++i];\n if ((n1 & 0xc0) !== 0x80) {\n throw new Error(INVALID_UTF8);\n }\n b = (b & 0x1f) << 6 | (n1 & 0x3f);\n min = 0x80;\n } else if (b < 0xf0) {\n // Need 2 more bytes.\n if (i >= arr.length - 1) {\n throw new Error(INVALID_UTF8);\n }\n const n1 = arr[++i];\n const n2 = arr[++i];\n if ((n1 & 0xc0) !== 0x80 || (n2 & 0xc0) !== 0x80) {\n throw new Error(INVALID_UTF8);\n }\n b = (b & 0x0f) << 12 | (n1 & 0x3f) << 6 | (n2 & 0x3f);\n min = 0x800;\n } else if (b < 0xf8) {\n // Need 3 more bytes.\n if (i >= arr.length - 2) {\n throw new Error(INVALID_UTF8);\n }\n const n1 = arr[++i];\n const n2 = arr[++i];\n const n3 = arr[++i];\n if ((n1 & 0xc0) !== 0x80 || (n2 & 0xc0) !== 0x80 || (n3 & 0xc0) !== 0x80) {\n throw new Error(INVALID_UTF8);\n }\n b = (b & 0x0f) << 18 | (n1 & 0x3f) << 12 | (n2 & 0x3f) << 6 | (n3 & 0x3f);\n min = 0x10000;\n } else {\n throw new Error(INVALID_UTF8);\n }\n\n if (b < min || (b >= 0xd800 && b <= 0xdfff)) {\n throw new Error(INVALID_UTF8);\n }\n\n if (b >= 0x10000) {\n // Surrogate pair.\n if (b > 0x10ffff) {\n throw new Error(INVALID_UTF8);\n }\n b -= 0x10000;\n chars.push(String.fromCharCode(0xd800 | (b >> 10)));\n b = 0xdc00 | (b & 0x3ff);\n }\n }\n\n chars.push(String.fromCharCode(b));\n }\n return chars.join(\"\");\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package wipe implements functions for zeroing arrays.\n */\n\nexport type NumericArray = number[] | Uint8Array | Int8Array | Uint16Array\n | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;\n\n/**\n * Sets all values in the given array to zero and returns it.\n *\n * The fact that it sets bytes to zero can be relied on.\n *\n * There is no guarantee that this function makes data disappear from memory,\n * as runtime implementation can, for example, have copying garbage collector\n * that will make copies of sensitive data before we wipe it. Or that an\n * operating system will write our data to swap or sleep image. Another thing\n * is that an optimizing compiler can remove calls to this function or make it\n * no-op. There's nothing we can do with it, so we just do our best and hope\n * that everything will be okay and good will triumph over evil.\n */\nexport function wipe(array: NumericArray): NumericArray {\n // Right now it's similar to array.fill(0). If it turns\n // out that runtimes optimize this call away, maybe\n // we can try something else.\n for (let i = 0; i < array.length; i++) {\n array[i] = 0;\n }\n return array;\n}\n","// Copyright (C) 2020 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\nimport { KeyAgreement } from \"@stablelib/keyagreement\";\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\nimport { wipe } from \"@stablelib/wipe\";\nimport { PUBLIC_KEY_LENGTH,\n SECRET_KEY_LENGTH,\n SHARED_KEY_LENGTH,\n generateKeyPairFromSeed,\n sharedKey,\n KeyPair } from \"@stablelib/x25519\";\nimport { SessionKeys, clientSessionKeysFromSharedKey, serverSessionKeysFromSharedKey } from \"./x25519-session\";\n\n/** Constants for key agreement */\nexport const OFFER_MESSAGE_LENGTH = PUBLIC_KEY_LENGTH;\nexport const ACCEPT_MESSAGE_LENGTH = PUBLIC_KEY_LENGTH;\nexport const SAVED_STATE_LENGTH = SECRET_KEY_LENGTH;\nexport const SECRET_SEED_LENGTH = SECRET_KEY_LENGTH;\n\n/**\n * X25519 key agreement using ephemeral key pairs.\n *\n * Note that unless this key agreement is combined with an authentication\n * method, such as public key signatures, it's vulnerable to man-in-the-middle\n * attacks.\n */\nexport class X25519Session implements KeyAgreement {\n readonly offerMessageLength = OFFER_MESSAGE_LENGTH;\n readonly acceptMessageLength = ACCEPT_MESSAGE_LENGTH;\n readonly sharedKeyLength = SHARED_KEY_LENGTH;\n readonly savedStateLength = SAVED_STATE_LENGTH;\n\n private _seed: Uint8Array;\n private _keyPair: KeyPair | undefined;\n private _sharedKey: Uint8Array | undefined;\n private _sessionKeys: SessionKeys | undefined;\n\n constructor(secretSeed?: Uint8Array, prng?: RandomSource) {\n this._seed = secretSeed || randomBytes(SECRET_KEY_LENGTH, prng);\n }\n\n saveState(): Uint8Array {\n return new Uint8Array(this._seed);\n }\n\n restoreState(savedState: Uint8Array): this {\n this._seed = new Uint8Array(savedState);\n return this;\n }\n\n clean(): void {\n if (this._seed) {\n wipe(this._seed);\n }\n if (this._keyPair) {\n wipe(this._keyPair.secretKey);\n wipe(this._keyPair.publicKey);\n }\n if (this._sharedKey) {\n wipe(this._sharedKey);\n }\n if (this._sessionKeys) {\n wipe(this._sessionKeys.receive);\n wipe(this._sessionKeys.send);\n }\n }\n\n offer(): Uint8Array {\n this._keyPair = generateKeyPairFromSeed(this._seed);\n return new Uint8Array(this._keyPair.publicKey);\n }\n\n accept(offerMsg: Uint8Array): Uint8Array {\n if (this._keyPair) {\n throw new Error(\"X25519Session: accept shouldn't be called by offering party\");\n }\n if (offerMsg.length !== this.offerMessageLength) {\n throw new Error(\"X25519Session: incorrect offer message length\");\n }\n if (this._sharedKey) {\n throw new Error(\"X25519Session: accept was already called\");\n }\n const keyPair = generateKeyPairFromSeed(this._seed);\n this._sharedKey = sharedKey(keyPair.secretKey, offerMsg);\n this._sessionKeys = clientSessionKeysFromSharedKey(this._sharedKey, keyPair.publicKey, offerMsg);\n wipe(keyPair.secretKey);\n return keyPair.publicKey;\n }\n\n finish(acceptMsg: Uint8Array): this {\n if (acceptMsg.length !== this.acceptMessageLength) {\n throw new Error(\"X25519Session: incorrect accept message length\");\n }\n if (!this._keyPair) {\n throw new Error(\"X25519Session: no offer state\");\n }\n if (this._sharedKey) {\n throw new Error(\"X25519Session: finish was already called\");\n }\n this._sharedKey = sharedKey(this._keyPair.secretKey, acceptMsg);\n this._sessionKeys = serverSessionKeysFromSharedKey(this._sharedKey, this._keyPair.publicKey, acceptMsg);\n return this;\n }\n\n getSharedKey(): Uint8Array {\n if (!this._sharedKey) {\n throw new Error(\"X25519Session: no shared key established\");\n }\n return new Uint8Array(this._sharedKey);\n }\n\n getSessionKeys(): SessionKeys {\n if (!this._sessionKeys) {\n throw new Error(\"X25519Session: no shared key established\");\n }\n return {\n receive: new Uint8Array(this._sessionKeys.receive),\n send: new Uint8Array(this._sessionKeys.send),\n };\n }\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package x25519-session implements libsodium compatible session keys generation based on X25519 key agreement.\n */\n\nimport { BLAKE2b } from \"@stablelib/blake2b\";\nimport { Hash } from \"@stablelib/hash\";\nimport { sharedKey, KeyPair } from \"@stablelib/x25519\";\nexport { X25519Session } from \"./keyagreement\";\n\nconst SESSION_KEY_LENGTH = 32;\n\nexport interface SessionKeys {\n receive: Uint8Array;\n send: Uint8Array;\n}\n\n/**\n * Generates server-side session encryption keys from the shared key obtained during agreement phase.\n */\nexport function serverSessionKeysFromSharedKey(sharedKey: Uint8Array,\n myPublicKey: Uint8Array,\n theirPublicKey: Uint8Array,\n hash: new() => Hash = BLAKE2b): SessionKeys {\n const state = new hash();\n if (state.digestLength !== SESSION_KEY_LENGTH * 2) {\n throw new Error(\"X25519: incorrect digest length\");\n }\n const h = state.update(sharedKey).update(theirPublicKey).update(myPublicKey).digest();\n\n return {\n send: h.subarray(0, SESSION_KEY_LENGTH),\n receive: h.subarray(SESSION_KEY_LENGTH),\n };\n}\n\n/**\n * Generates client-side session encryption keys from the shared key obtained during agreement phase.\n */\nexport function clientSessionKeysFromSharedKey(sharedKey: Uint8Array,\n myPublicKey: Uint8Array,\n theirPublicKey: Uint8Array,\n hash: new() => Hash = BLAKE2b): SessionKeys {\n const state = new hash();\n if (state.digestLength !== SESSION_KEY_LENGTH * 2) {\n throw new Error(\"X25519: incorrect digest length\");\n }\n const h = state.update(sharedKey).update(myPublicKey).update(theirPublicKey).digest();\n\n return {\n receive: h.subarray(0, SESSION_KEY_LENGTH),\n send: h.subarray(SESSION_KEY_LENGTH),\n };\n}\n\n/**\n * Generates server-side session encryption keys. Uses a key pair and a peer's public key to generate the shared key.\n */\nexport function serverSessionKeys(myKeyPair: KeyPair, theirPublicKey: Uint8Array, hash: new() => Hash = BLAKE2b): SessionKeys {\n const sk = sharedKey(myKeyPair.secretKey, theirPublicKey);\n return serverSessionKeysFromSharedKey(sk, myKeyPair.publicKey, theirPublicKey, hash);\n}\n\n/**\n * Generates client-side session encryption keys. Uses a key pair and a peer's public key to generate the shared key.\n */\nexport function clientSessionKeys(myKeyPair: KeyPair, theirPublicKey: Uint8Array, hash: new() => Hash = BLAKE2b): SessionKeys {\n const sk = sharedKey(myKeyPair.secretKey, theirPublicKey);\n return clientSessionKeysFromSharedKey(sk, myKeyPair.publicKey, theirPublicKey, hash);\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package x25519 implements X25519 key agreement.\n */\n\nimport { randomBytes, RandomSource } from \"@stablelib/random\";\nimport { wipe } from \"@stablelib/wipe\";\n\nexport const PUBLIC_KEY_LENGTH = 32;\nexport const SECRET_KEY_LENGTH = 32;\nexport const SHARED_KEY_LENGTH = 32;\n\n// TODO(dchest): some functions are copies of ../sign/ed25519.\n// Find a way to combine them without opening up to public.\n\n// Ported from TweetNaCl.js, which is ported from TweetNaCl\n// by Dmitry Chestnykh and Devi Mandiri.\n// Public domain.\n// https://tweetnacl.js.org\n\n// TweetNaCl contributors:\n// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen,\n// Tanja Lange, Peter Schwabe, Sjaak Smetsers.\n// Public domain.\n// https://tweetnacl.cr.yp.to/\n\ntype GF = Float64Array;\n\n// Returns new zero-filled 16-element GF (Float64Array).\n// If passed an array of numbers, prefills the returned\n// array with them.\n//\n// We use Float64Array, because we need 48-bit numbers\n// for this implementation.\nfunction gf(init?: number[]): GF {\n const r = new Float64Array(16);\n if (init) {\n for (let i = 0; i < init.length; i++) {\n r[i] = init[i];\n }\n }\n return r;\n}\n\n// Base point.\nconst _9 = new Uint8Array(32); _9[0] = 9;\n\nconst _121665 = gf([0xdb41, 1]);\n\nfunction car25519(o: GF) {\n let c = 1;\n for (let i = 0; i < 16; i++) {\n let v = o[i] + c + 65535;\n c = Math.floor(v / 65536);\n o[i] = v - c * 65536;\n }\n o[0] += c - 1 + 37 * (c - 1);\n}\n\nfunction sel25519(p: GF, q: GF, b: number) {\n const c = ~(b - 1);\n for (let i = 0; i < 16; i++) {\n const t = c & (p[i] ^ q[i]);\n p[i] ^= t;\n q[i] ^= t;\n }\n}\n\nfunction pack25519(o: Uint8Array, n: GF) {\n const m = gf();\n const t = gf();\n for (let i = 0; i < 16; i++) {\n t[i] = n[i];\n }\n car25519(t);\n car25519(t);\n car25519(t);\n for (let j = 0; j < 2; j++) {\n m[0] = t[0] - 0xffed;\n for (let i = 1; i < 15; i++) {\n m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1);\n m[i - 1] &= 0xffff;\n }\n m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1);\n const b = (m[15] >> 16) & 1;\n m[14] &= 0xffff;\n sel25519(t, m, 1 - b);\n }\n for (let i = 0; i < 16; i++) {\n o[2 * i] = t[i] & 0xff;\n o[2 * i + 1] = t[i] >> 8;\n }\n}\n\nfunction unpack25519(o: GF, n: Uint8Array) {\n for (let i = 0; i < 16; i++) {\n o[i] = n[2 * i] + (n[2 * i + 1] << 8);\n }\n o[15] &= 0x7fff;\n}\n\nfunction add(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] + b[i];\n }\n}\n\nfunction sub(o: GF, a: GF, b: GF) {\n for (let i = 0; i < 16; i++) {\n o[i] = a[i] - b[i];\n }\n}\n\nfunction mul(o: GF, a: GF, b: GF) {\n let v: number, c: number,\n t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0,\n t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0,\n t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0,\n t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0,\n b0 = b[0],\n b1 = b[1],\n b2 = b[2],\n b3 = b[3],\n b4 = b[4],\n b5 = b[5],\n b6 = b[6],\n b7 = b[7],\n b8 = b[8],\n b9 = b[9],\n b10 = b[10],\n b11 = b[11],\n b12 = b[12],\n b13 = b[13],\n b14 = b[14],\n b15 = b[15];\n\n v = a[0];\n t0 += v * b0;\n t1 += v * b1;\n t2 += v * b2;\n t3 += v * b3;\n t4 += v * b4;\n t5 += v * b5;\n t6 += v * b6;\n t7 += v * b7;\n t8 += v * b8;\n t9 += v * b9;\n t10 += v * b10;\n t11 += v * b11;\n t12 += v * b12;\n t13 += v * b13;\n t14 += v * b14;\n t15 += v * b15;\n v = a[1];\n t1 += v * b0;\n t2 += v * b1;\n t3 += v * b2;\n t4 += v * b3;\n t5 += v * b4;\n t6 += v * b5;\n t7 += v * b6;\n t8 += v * b7;\n t9 += v * b8;\n t10 += v * b9;\n t11 += v * b10;\n t12 += v * b11;\n t13 += v * b12;\n t14 += v * b13;\n t15 += v * b14;\n t16 += v * b15;\n v = a[2];\n t2 += v * b0;\n t3 += v * b1;\n t4 += v * b2;\n t5 += v * b3;\n t6 += v * b4;\n t7 += v * b5;\n t8 += v * b6;\n t9 += v * b7;\n t10 += v * b8;\n t11 += v * b9;\n t12 += v * b10;\n t13 += v * b11;\n t14 += v * b12;\n t15 += v * b13;\n t16 += v * b14;\n t17 += v * b15;\n v = a[3];\n t3 += v * b0;\n t4 += v * b1;\n t5 += v * b2;\n t6 += v * b3;\n t7 += v * b4;\n t8 += v * b5;\n t9 += v * b6;\n t10 += v * b7;\n t11 += v * b8;\n t12 += v * b9;\n t13 += v * b10;\n t14 += v * b11;\n t15 += v * b12;\n t16 += v * b13;\n t17 += v * b14;\n t18 += v * b15;\n v = a[4];\n t4 += v * b0;\n t5 += v * b1;\n t6 += v * b2;\n t7 += v * b3;\n t8 += v * b4;\n t9 += v * b5;\n t10 += v * b6;\n t11 += v * b7;\n t12 += v * b8;\n t13 += v * b9;\n t14 += v * b10;\n t15 += v * b11;\n t16 += v * b12;\n t17 += v * b13;\n t18 += v * b14;\n t19 += v * b15;\n v = a[5];\n t5 += v * b0;\n t6 += v * b1;\n t7 += v * b2;\n t8 += v * b3;\n t9 += v * b4;\n t10 += v * b5;\n t11 += v * b6;\n t12 += v * b7;\n t13 += v * b8;\n t14 += v * b9;\n t15 += v * b10;\n t16 += v * b11;\n t17 += v * b12;\n t18 += v * b13;\n t19 += v * b14;\n t20 += v * b15;\n v = a[6];\n t6 += v * b0;\n t7 += v * b1;\n t8 += v * b2;\n t9 += v * b3;\n t10 += v * b4;\n t11 += v * b5;\n t12 += v * b6;\n t13 += v * b7;\n t14 += v * b8;\n t15 += v * b9;\n t16 += v * b10;\n t17 += v * b11;\n t18 += v * b12;\n t19 += v * b13;\n t20 += v * b14;\n t21 += v * b15;\n v = a[7];\n t7 += v * b0;\n t8 += v * b1;\n t9 += v * b2;\n t10 += v * b3;\n t11 += v * b4;\n t12 += v * b5;\n t13 += v * b6;\n t14 += v * b7;\n t15 += v * b8;\n t16 += v * b9;\n t17 += v * b10;\n t18 += v * b11;\n t19 += v * b12;\n t20 += v * b13;\n t21 += v * b14;\n t22 += v * b15;\n v = a[8];\n t8 += v * b0;\n t9 += v * b1;\n t10 += v * b2;\n t11 += v * b3;\n t12 += v * b4;\n t13 += v * b5;\n t14 += v * b6;\n t15 += v * b7;\n t16 += v * b8;\n t17 += v * b9;\n t18 += v * b10;\n t19 += v * b11;\n t20 += v * b12;\n t21 += v * b13;\n t22 += v * b14;\n t23 += v * b15;\n v = a[9];\n t9 += v * b0;\n t10 += v * b1;\n t11 += v * b2;\n t12 += v * b3;\n t13 += v * b4;\n t14 += v * b5;\n t15 += v * b6;\n t16 += v * b7;\n t17 += v * b8;\n t18 += v * b9;\n t19 += v * b10;\n t20 += v * b11;\n t21 += v * b12;\n t22 += v * b13;\n t23 += v * b14;\n t24 += v * b15;\n v = a[10];\n t10 += v * b0;\n t11 += v * b1;\n t12 += v * b2;\n t13 += v * b3;\n t14 += v * b4;\n t15 += v * b5;\n t16 += v * b6;\n t17 += v * b7;\n t18 += v * b8;\n t19 += v * b9;\n t20 += v * b10;\n t21 += v * b11;\n t22 += v * b12;\n t23 += v * b13;\n t24 += v * b14;\n t25 += v * b15;\n v = a[11];\n t11 += v * b0;\n t12 += v * b1;\n t13 += v * b2;\n t14 += v * b3;\n t15 += v * b4;\n t16 += v * b5;\n t17 += v * b6;\n t18 += v * b7;\n t19 += v * b8;\n t20 += v * b9;\n t21 += v * b10;\n t22 += v * b11;\n t23 += v * b12;\n t24 += v * b13;\n t25 += v * b14;\n t26 += v * b15;\n v = a[12];\n t12 += v * b0;\n t13 += v * b1;\n t14 += v * b2;\n t15 += v * b3;\n t16 += v * b4;\n t17 += v * b5;\n t18 += v * b6;\n t19 += v * b7;\n t20 += v * b8;\n t21 += v * b9;\n t22 += v * b10;\n t23 += v * b11;\n t24 += v * b12;\n t25 += v * b13;\n t26 += v * b14;\n t27 += v * b15;\n v = a[13];\n t13 += v * b0;\n t14 += v * b1;\n t15 += v * b2;\n t16 += v * b3;\n t17 += v * b4;\n t18 += v * b5;\n t19 += v * b6;\n t20 += v * b7;\n t21 += v * b8;\n t22 += v * b9;\n t23 += v * b10;\n t24 += v * b11;\n t25 += v * b12;\n t26 += v * b13;\n t27 += v * b14;\n t28 += v * b15;\n v = a[14];\n t14 += v * b0;\n t15 += v * b1;\n t16 += v * b2;\n t17 += v * b3;\n t18 += v * b4;\n t19 += v * b5;\n t20 += v * b6;\n t21 += v * b7;\n t22 += v * b8;\n t23 += v * b9;\n t24 += v * b10;\n t25 += v * b11;\n t26 += v * b12;\n t27 += v * b13;\n t28 += v * b14;\n t29 += v * b15;\n v = a[15];\n t15 += v * b0;\n t16 += v * b1;\n t17 += v * b2;\n t18 += v * b3;\n t19 += v * b4;\n t20 += v * b5;\n t21 += v * b6;\n t22 += v * b7;\n t23 += v * b8;\n t24 += v * b9;\n t25 += v * b10;\n t26 += v * b11;\n t27 += v * b12;\n t28 += v * b13;\n t29 += v * b14;\n t30 += v * b15;\n\n t0 += 38 * t16;\n t1 += 38 * t17;\n t2 += 38 * t18;\n t3 += 38 * t19;\n t4 += 38 * t20;\n t5 += 38 * t21;\n t6 += 38 * t22;\n t7 += 38 * t23;\n t8 += 38 * t24;\n t9 += 38 * t25;\n t10 += 38 * t26;\n t11 += 38 * t27;\n t12 += 38 * t28;\n t13 += 38 * t29;\n t14 += 38 * t30;\n // t15 left as is\n\n // first car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n // second car\n c = 1;\n v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;\n v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;\n v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;\n v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;\n v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;\n v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;\n v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;\n v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;\n v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;\n v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;\n v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;\n v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;\n v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;\n v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;\n v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;\n v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;\n t0 += c - 1 + 37 * (c - 1);\n\n o[0] = t0;\n o[1] = t1;\n o[2] = t2;\n o[3] = t3;\n o[4] = t4;\n o[5] = t5;\n o[6] = t6;\n o[7] = t7;\n o[8] = t8;\n o[9] = t9;\n o[10] = t10;\n o[11] = t11;\n o[12] = t12;\n o[13] = t13;\n o[14] = t14;\n o[15] = t15;\n}\n\nfunction square(o: GF, a: GF) {\n mul(o, a, a);\n}\n\nfunction inv25519(o: GF, inp: GF) {\n const c = gf();\n for (let i = 0; i < 16; i++) {\n c[i] = inp[i];\n }\n for (let i = 253; i >= 0; i--) {\n square(c, c);\n if (i !== 2 && i !== 4) {\n mul(c, c, inp);\n }\n }\n for (let i = 0; i < 16; i++) {\n o[i] = c[i];\n }\n}\n\nexport function scalarMult(n: Uint8Array, p: Uint8Array): Uint8Array {\n const z = new Uint8Array(32);\n const x = new Float64Array(80);\n const a = gf(), b = gf(), c = gf(),\n d = gf(), e = gf(), f = gf();\n\n for (let i = 0; i < 31; i++) {\n z[i] = n[i];\n }\n z[31] = (n[31] & 127) | 64;\n z[0] &= 248;\n\n unpack25519(x, p);\n\n for (let i = 0; i < 16; i++) {\n b[i] = x[i];\n }\n\n a[0] = d[0] = 1;\n\n for (let i = 254; i >= 0; --i) {\n const r = (z[i >>> 3] >>> (i & 7)) & 1;\n sel25519(a, b, r);\n sel25519(c, d, r);\n add(e, a, c);\n sub(a, a, c);\n add(c, b, d);\n sub(b, b, d);\n square(d, e);\n square(f, a);\n mul(a, c, a);\n mul(c, b, e);\n add(e, a, c);\n sub(a, a, c);\n square(b, a);\n sub(c, d, f);\n mul(a, c, _121665);\n add(a, a, d);\n mul(c, c, a);\n mul(a, d, f);\n mul(d, b, x);\n square(b, e);\n sel25519(a, b, r);\n sel25519(c, d, r);\n }\n for (let i = 0; i < 16; i++) {\n x[i + 16] = a[i];\n x[i + 32] = c[i];\n x[i + 48] = b[i];\n x[i + 64] = d[i];\n }\n const x32 = x.subarray(32);\n const x16 = x.subarray(16);\n inv25519(x32, x32);\n mul(x16, x16, x32);\n const q = new Uint8Array(32);\n pack25519(q, x16);\n return q;\n}\n\nexport function scalarMultBase(n: Uint8Array): Uint8Array {\n return scalarMult(n, _9);\n}\n\nexport interface KeyPair {\n publicKey: Uint8Array;\n secretKey: Uint8Array;\n}\n\nexport function generateKeyPairFromSeed(seed: Uint8Array): KeyPair {\n if (seed.length !== SECRET_KEY_LENGTH) {\n throw new Error(`x25519: seed must be ${SECRET_KEY_LENGTH} bytes`);\n }\n const secretKey = new Uint8Array(seed);\n const publicKey = scalarMultBase(secretKey);\n return {\n publicKey,\n secretKey\n };\n}\n\nexport function generateKeyPair(prng?: RandomSource): KeyPair {\n const seed = randomBytes(32, prng);\n const result = generateKeyPairFromSeed(seed);\n wipe(seed);\n return result;\n}\n\n/**\n * Returns a shared key between our secret key and a peer's public key.\n *\n * Throws an error if the given keys are of wrong length.\n *\n * If rejectZero is true throws if the calculated shared key is all-zero.\n * From RFC 7748:\n *\n * > Protocol designers using Diffie-Hellman over the curves defined in\n * > this document must not assume \"contributory behavior\". Specially,\n * > contributory behavior means that both parties' private keys\n * > contribute to the resulting shared key. Since curve25519 and\n * > curve448 have cofactors of 8 and 4 (respectively), an input point of\n * > small order will eliminate any contribution from the other party's\n * > private key. This situation can be detected by checking for the all-\n * > zero output, which implementations MAY do, as specified in Section 6.\n * > However, a large number of existing implementations do not do this.\n *\n * IMPORTANT: the returned key is a raw result of scalar multiplication.\n * To use it as a key material, hash it with a cryptographic hash function.\n */\nexport function sharedKey(mySecretKey: Uint8Array, theirPublicKey: Uint8Array, rejectZero = false): Uint8Array {\n if (mySecretKey.length !== PUBLIC_KEY_LENGTH) {\n throw new Error(\"X25519: incorrect secret key length\");\n }\n if (theirPublicKey.length !== PUBLIC_KEY_LENGTH) {\n throw new Error(\"X25519: incorrect public key length\");\n }\n\n const result = scalarMult(mySecretKey, theirPublicKey);\n\n if (rejectZero) {\n let zeros = 0;\n for (let i = 0; i < result.length; i++) {\n zeros |= result[i];\n }\n if (zeros === 0) {\n throw new Error(\"X25519: invalid shared key\");\n }\n }\n\n return result;\n}\n","// Copyright (C) 2016 Dmitry Chestnykh\n// MIT License. See LICENSE file for details.\n\n/**\n * Package xsalsa20 implements XSalsa20 stream cipher.\n */\n\nimport { writeUint32LE } from \"@stablelib/binary\";\nimport { streamXOR as salsaStreamXOR } from \"@stablelib/salsa20\";\nimport { wipe } from \"@stablelib/wipe\";\n\n/**\n * Encrypt src with Salsa20/20 stream generated for the given 32-byte key\n * and 24-byte and write the result into dst and return it.\n *\n * dst and src may be the same, but otherwise must not overlap.\n *\n * Never use the same key and nonce to encrypt more than one message.\n */\nexport function streamXOR(key: Uint8Array, nonce: Uint8Array, src: Uint8Array,\n dst: Uint8Array, nonceInplaceCounterLength = 0): Uint8Array {\n\n if (nonceInplaceCounterLength === 0) {\n if (nonce.length !== 24) {\n throw new Error(\"XSalsa20 nonce must be 24 bytes\");\n }\n } else {\n if (nonce.length !== 32) {\n throw new Error(\"XSalsa20 nonce with counter must be 32 bytes\");\n }\n }\n\n // Use HSalsa one-way function to transform first 16 bytes of\n // 24-byte extended nonce and key into a new key for Salsa\n // stream -- \"subkey\".\n const subkey = hsalsa(key, nonce.subarray(0, 16), new Uint8Array(32));\n\n // Use last 8 bytes of 24-byte extended nonce as an actual nonce,\n // and a subkey derived in the previous step as key to encrypt.\n //\n // If nonceInplaceCounterLength > 0, we'll still pass the correct\n // nonce || counter, as we don't limit the end of nonce subarray.\n const result = salsaStreamXOR(subkey, nonce.subarray(16), src, dst,\n nonceInplaceCounterLength);\n\n // Clean subkey.\n wipe(subkey);\n\n return result;\n}\n\n/**\n * Generate Salsa20/20 stream for the given 32-byte key and\n * 24-byte nonce and write it into dst and return it.\n *\n * Never use the same key and nonce to generate more than one stream.\n *\n * stream is like streamXOR with all-zero src.\n */\nexport function stream(key: Uint8Array, nonce: Uint8Array, dst: Uint8Array,\n nonceInplaceCounterLength = 0): Uint8Array {\n\n wipe(dst);\n return streamXOR(key, nonce, dst, dst, nonceInplaceCounterLength);\n}\n\n// Number of Salsa20 rounds (Salsa20/20).\nconst ROUNDS = 20;\n\n/**\n * HSalsa20 is a one-way function used in XSalsa20 to extend nonce,\n * and in NaCl to hash X25519 shared keys. It takes 32-byte key and\n * 16-byte src and writes 32-byte result into dst and returns it.\n */\nexport function hsalsa(key: Uint8Array, src: Uint8Array, dst: Uint8Array): Uint8Array {\n let x0 = 0x61707865; // \"expa\"\n let x1 = (key[3] << 24) | (key[2] << 16) | (key[1] << 8) | key[0];\n let x2 = (key[7] << 24) | (key[6] << 16) | (key[5] << 8) | key[4];\n let x3 = (key[11] << 24) | (key[10] << 16) | (key[9] << 8) | key[8];\n let x4 = (key[15] << 24) | (key[14] << 16) | (key[13] << 8) | key[12];\n let x5 = 0x3320646E; // \"nd 3\"\n let x6 = (src[3] << 24) | (src[2] << 16) | (src[1] << 8) | src[0];\n let x7 = (src[7] << 24) | (src[6] << 16) | (src[5] << 8) | src[4];\n let x8 = (src[11] << 24) | (src[10] << 16) | (src[9] << 8) | src[8];\n let x9 = (src[15] << 24) | (src[14] << 16) | (src[13] << 8) | src[12];\n let x10 = 0x79622D32; // \"2-by\"\n let x11 = (key[19] << 24) | (key[18] << 16) | (key[17] << 8) | key[16];\n let x12 = (key[23] << 24) | (key[22] << 16) | (key[21] << 8) | key[20];\n let x13 = (key[27] << 24) | (key[26] << 16) | (key[25] << 8) | key[24];\n let x14 = (key[31] << 24) | (key[30] << 16) | (key[29] << 8) | key[28];\n let x15 = 0x6B206574; // \"te k\"\n\n let u: number;\n\n for (let i = 0; i < ROUNDS; i += 2) {\n u = x0 + x12 | 0;\n x4 ^= u << 7 | u >>> (32 - 7);\n u = x4 + x0 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x4 | 0;\n x12 ^= u << 13 | u >>> (32 - 13);\n u = x12 + x8 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x1 | 0;\n x9 ^= u << 7 | u >>> (32 - 7);\n u = x9 + x5 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x9 | 0;\n x1 ^= u << 13 | u >>> (32 - 13);\n u = x1 + x13 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x6 | 0;\n x14 ^= u << 7 | u >>> (32 - 7);\n u = x14 + x10 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x14 | 0;\n x6 ^= u << 13 | u >>> (32 - 13);\n u = x6 + x2 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x11 | 0;\n x3 ^= u << 7 | u >>> (32 - 7);\n u = x3 + x15 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x3 | 0;\n x11 ^= u << 13 | u >>> (32 - 13);\n u = x11 + x7 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n\n u = x0 + x3 | 0;\n x1 ^= u << 7 | u >>> (32 - 7);\n u = x1 + x0 | 0;\n x2 ^= u << 9 | u >>> (32 - 9);\n u = x2 + x1 | 0;\n x3 ^= u << 13 | u >>> (32 - 13);\n u = x3 + x2 | 0;\n x0 ^= u << 18 | u >>> (32 - 18);\n\n u = x5 + x4 | 0;\n x6 ^= u << 7 | u >>> (32 - 7);\n u = x6 + x5 | 0;\n x7 ^= u << 9 | u >>> (32 - 9);\n u = x7 + x6 | 0;\n x4 ^= u << 13 | u >>> (32 - 13);\n u = x4 + x7 | 0;\n x5 ^= u << 18 | u >>> (32 - 18);\n\n u = x10 + x9 | 0;\n x11 ^= u << 7 | u >>> (32 - 7);\n u = x11 + x10 | 0;\n x8 ^= u << 9 | u >>> (32 - 9);\n u = x8 + x11 | 0;\n x9 ^= u << 13 | u >>> (32 - 13);\n u = x9 + x8 | 0;\n x10 ^= u << 18 | u >>> (32 - 18);\n\n u = x15 + x14 | 0;\n x12 ^= u << 7 | u >>> (32 - 7);\n u = x12 + x15 | 0;\n x13 ^= u << 9 | u >>> (32 - 9);\n u = x13 + x12 | 0;\n x14 ^= u << 13 | u >>> (32 - 13);\n u = x14 + x13 | 0;\n x15 ^= u << 18 | u >>> (32 - 18);\n }\n writeUint32LE(x0, dst, 0);\n writeUint32LE(x5, dst, 4);\n writeUint32LE(x10, dst, 8);\n writeUint32LE(x15, dst, 12);\n writeUint32LE(x6, dst, 16);\n writeUint32LE(x7, dst, 20);\n writeUint32LE(x8, dst, 24);\n writeUint32LE(x9, dst, 28);\n return dst;\n}\n","'use strict'\n// base-x encoding / decoding\n// Copyright (c) 2018 base-x contributors\n// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)\n// Distributed under the MIT software license, see the accompanying\n// file LICENSE or http://www.opensource.org/licenses/mit-license.php.\nfunction base (ALPHABET) {\n if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }\n var BASE_MAP = new Uint8Array(256)\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i)\n var xc = x.charCodeAt(0)\n if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }\n BASE_MAP[xc] = i\n }\n var BASE = ALPHABET.length\n var LEADER = ALPHABET.charAt(0)\n var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up\n var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up\n function encode (source) {\n if (source instanceof Uint8Array) {\n } else if (ArrayBuffer.isView(source)) {\n source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength)\n } else if (Array.isArray(source)) {\n source = Uint8Array.from(source)\n }\n if (!(source instanceof Uint8Array)) { throw new TypeError('Expected Uint8Array') }\n if (source.length === 0) { return '' }\n // Skip & count leading zeroes.\n var zeroes = 0\n var length = 0\n var pbegin = 0\n var pend = source.length\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++\n zeroes++\n }\n // Allocate enough space in big-endian base58 representation.\n var size = ((pend - pbegin) * iFACTOR + 1) >>> 0\n var b58 = new Uint8Array(size)\n // Process the bytes.\n while (pbegin !== pend) {\n var carry = source[pbegin]\n // Apply \"b58 = b58 * 256 + ch\".\n var i = 0\n for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {\n carry += (256 * b58[it1]) >>> 0\n b58[it1] = (carry % BASE) >>> 0\n carry = (carry / BASE) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n pbegin++\n }\n // Skip leading zeroes in base58 result.\n var it2 = size - length\n while (it2 !== size && b58[it2] === 0) {\n it2++\n }\n // Translate the result into a string.\n var str = LEADER.repeat(zeroes)\n for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }\n return str\n }\n function decodeUnsafe (source) {\n if (typeof source !== 'string') { throw new TypeError('Expected String') }\n if (source.length === 0) { return new Uint8Array() }\n var psz = 0\n // Skip and count leading '1's.\n var zeroes = 0\n var length = 0\n while (source[psz] === LEADER) {\n zeroes++\n psz++\n }\n // Allocate enough space in big-endian base256 representation.\n var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.\n var b256 = new Uint8Array(size)\n // Process the characters.\n while (source[psz]) {\n // Decode character\n var carry = BASE_MAP[source.charCodeAt(psz)]\n // Invalid character\n if (carry === 255) { return }\n var i = 0\n for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {\n carry += (BASE * b256[it3]) >>> 0\n b256[it3] = (carry % 256) >>> 0\n carry = (carry / 256) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n psz++\n }\n // Skip leading zeroes in b256.\n var it4 = size - length\n while (it4 !== size && b256[it4] === 0) {\n it4++\n }\n var vch = new Uint8Array(zeroes + (size - it4))\n var j = zeroes\n while (it4 !== size) {\n vch[j++] = b256[it4++]\n }\n return vch\n }\n function decode (string) {\n var buffer = decodeUnsafe(string)\n if (buffer) { return buffer }\n throw new Error('Non-base' + BASE + ' character')\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n }\n}\nmodule.exports = base\n","const basex = require('base-x')\nconst ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n\nmodule.exports = basex(ALPHABET)\n","'use strict'\n\nvar base58 = require('bs58')\n\nmodule.exports = function (checksumFn) {\n // Encode a buffer as a base58-check encoded string\n function encode (payload) {\n var payloadU8 = Uint8Array.from(payload)\n var checksum = checksumFn(payloadU8)\n var length = payloadU8.length + 4\n var both = new Uint8Array(length)\n both.set(payloadU8, 0)\n both.set(checksum.subarray(0, 4), payloadU8.length)\n return base58.encode(both, length)\n }\n\n function decodeRaw (buffer) {\n var payload = buffer.slice(0, -4)\n var checksum = buffer.slice(-4)\n var newChecksum = checksumFn(payload)\n\n if (checksum[0] ^ newChecksum[0] |\n checksum[1] ^ newChecksum[1] |\n checksum[2] ^ newChecksum[2] |\n checksum[3] ^ newChecksum[3]) return\n\n return payload\n }\n\n // Decode a base58-check encoded string to a buffer, no result if checksum is wrong\n function decodeUnsafe (string) {\n var buffer = base58.decodeUnsafe(string)\n if (!buffer) return\n\n return decodeRaw(buffer)\n }\n\n function decode (string) {\n var buffer = base58.decode(string)\n var payload = decodeRaw(buffer, checksumFn)\n if (!payload) throw new Error('Invalid checksum')\n return payload\n }\n\n return {\n encode: encode,\n decode: decode,\n decodeUnsafe: decodeUnsafe\n }\n}\n","'use strict'\n\nvar { sha256 } = require('@noble/hashes/sha256')\nvar bs58checkBase = require('./base')\n\n// SHA256(SHA256(buffer))\nfunction sha256x2 (buffer) {\n return sha256(sha256(buffer))\n}\n\nmodule.exports = bs58checkBase(sha256x2)\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [number & 0x3ffffff];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [0];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this._strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // '0' - '9'\n if (c >= 48 && c <= 57) {\n return c - 48;\n // 'A' - 'F'\n } else if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n } else {\n assert(false, 'Invalid character in ' + string);\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this._strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var b = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n b = c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n b = c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n b = c;\n }\n assert(c >= 0 && b < mul, 'Invalid character');\n r += b;\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [0];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this._strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n function move (dest, src) {\n dest.words = src.words;\n dest.length = src.length;\n dest.negative = src.negative;\n dest.red = src.red;\n }\n\n BN.prototype._move = function _move (dest) {\n move(dest, this);\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype._strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n // Check Symbol.for because not everywhere where Symbol defined\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#Browser_compatibility\n if (typeof Symbol !== 'undefined' && typeof Symbol.for === 'function') {\n try {\n BN.prototype[Symbol.for('nodejs.util.inspect.custom')] = inspect;\n } catch (e) {\n BN.prototype.inspect = inspect;\n }\n } else {\n BN.prototype.inspect = inspect;\n }\n\n function inspect () {\n return (this.red ? '';\n }\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modrn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16, 2);\n };\n\n if (Buffer) {\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n return this.toArrayLike(Buffer, endian, length);\n };\n }\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n var allocate = function allocate (ArrayType, size) {\n if (ArrayType.allocUnsafe) {\n return ArrayType.allocUnsafe(size);\n }\n return new ArrayType(size);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n this._strip();\n\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n var res = allocate(ArrayType, reqLength);\n var postfix = endian === 'le' ? 'LE' : 'BE';\n this['_toArrayLike' + postfix](res, byteLength);\n return res;\n };\n\n BN.prototype._toArrayLikeLE = function _toArrayLikeLE (res, byteLength) {\n var position = 0;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = (this.words[i] << shift) | carry;\n\n res[position++] = word & 0xff;\n if (position < res.length) {\n res[position++] = (word >> 8) & 0xff;\n }\n if (position < res.length) {\n res[position++] = (word >> 16) & 0xff;\n }\n\n if (shift === 6) {\n if (position < res.length) {\n res[position++] = (word >> 24) & 0xff;\n }\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position < res.length) {\n res[position++] = carry;\n\n while (position < res.length) {\n res[position++] = 0;\n }\n }\n };\n\n BN.prototype._toArrayLikeBE = function _toArrayLikeBE (res, byteLength) {\n var position = res.length - 1;\n var carry = 0;\n\n for (var i = 0, shift = 0; i < this.length; i++) {\n var word = (this.words[i] << shift) | carry;\n\n res[position--] = word & 0xff;\n if (position >= 0) {\n res[position--] = (word >> 8) & 0xff;\n }\n if (position >= 0) {\n res[position--] = (word >> 16) & 0xff;\n }\n\n if (shift === 6) {\n if (position >= 0) {\n res[position--] = (word >> 24) & 0xff;\n }\n carry = 0;\n shift = 0;\n } else {\n carry = word >>> 24;\n shift += 2;\n }\n }\n\n if (position >= 0) {\n res[position--] = carry;\n\n while (position >= 0) {\n res[position--] = 0;\n }\n }\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] >>> wbit) & 0x01;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this._strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this._strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this._strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this._strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this._strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this._strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out._strip();\n }\n\n function jumboMulTo (self, num, out) {\n // Temporary disable, see https://github.com/indutny/bn.js/issues/211\n // var fftm = new FFTM();\n // return fftm.mulp(self, num, out);\n return bigMulTo(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out._strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this._strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this._strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) <= num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this._strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this._strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this._strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q._strip();\n }\n a._strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modrn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || (r2 === 1 && cmp === 0)) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modrn = function modrn (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return isNegNum ? -acc : acc;\n };\n\n // WARNING: DEPRECATED\n BN.prototype.modn = function modn (num) {\n return this.modrn(num);\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n var isNegNum = num < 0;\n if (isNegNum) num = -num;\n\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n this._strip();\n return isNegNum ? this.ineg() : this;\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this._strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is a BN v4 instance\n r.strip();\n } else {\n // r is a BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n\n move(a, a.umod(this.m)._forceRed(this));\n return a;\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","'use strict'\n// base-x encoding / decoding\n// Copyright (c) 2018 base-x contributors\n// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)\n// Distributed under the MIT software license, see the accompanying\n// file LICENSE or http://www.opensource.org/licenses/mit-license.php.\n// @ts-ignore\nvar _Buffer = require('safe-buffer').Buffer\nfunction base (ALPHABET) {\n if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }\n var BASE_MAP = new Uint8Array(256)\n for (var j = 0; j < BASE_MAP.length; j++) {\n BASE_MAP[j] = 255\n }\n for (var i = 0; i < ALPHABET.length; i++) {\n var x = ALPHABET.charAt(i)\n var xc = x.charCodeAt(0)\n if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }\n BASE_MAP[xc] = i\n }\n var BASE = ALPHABET.length\n var LEADER = ALPHABET.charAt(0)\n var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up\n var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up\n function encode (source) {\n if (Array.isArray(source) || source instanceof Uint8Array) { source = _Buffer.from(source) }\n if (!_Buffer.isBuffer(source)) { throw new TypeError('Expected Buffer') }\n if (source.length === 0) { return '' }\n // Skip & count leading zeroes.\n var zeroes = 0\n var length = 0\n var pbegin = 0\n var pend = source.length\n while (pbegin !== pend && source[pbegin] === 0) {\n pbegin++\n zeroes++\n }\n // Allocate enough space in big-endian base58 representation.\n var size = ((pend - pbegin) * iFACTOR + 1) >>> 0\n var b58 = new Uint8Array(size)\n // Process the bytes.\n while (pbegin !== pend) {\n var carry = source[pbegin]\n // Apply \"b58 = b58 * 256 + ch\".\n var i = 0\n for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {\n carry += (256 * b58[it1]) >>> 0\n b58[it1] = (carry % BASE) >>> 0\n carry = (carry / BASE) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n pbegin++\n }\n // Skip leading zeroes in base58 result.\n var it2 = size - length\n while (it2 !== size && b58[it2] === 0) {\n it2++\n }\n // Translate the result into a string.\n var str = LEADER.repeat(zeroes)\n for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }\n return str\n }\n function decodeUnsafe (source) {\n if (typeof source !== 'string') { throw new TypeError('Expected String') }\n if (source.length === 0) { return _Buffer.alloc(0) }\n var psz = 0\n // Skip and count leading '1's.\n var zeroes = 0\n var length = 0\n while (source[psz] === LEADER) {\n zeroes++\n psz++\n }\n // Allocate enough space in big-endian base256 representation.\n var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.\n var b256 = new Uint8Array(size)\n // Process the characters.\n while (source[psz]) {\n // Decode character\n var carry = BASE_MAP[source.charCodeAt(psz)]\n // Invalid character\n if (carry === 255) { return }\n var i = 0\n for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {\n carry += (BASE * b256[it3]) >>> 0\n b256[it3] = (carry % 256) >>> 0\n carry = (carry / 256) >>> 0\n }\n if (carry !== 0) { throw new Error('Non-zero carry') }\n length = i\n psz++\n }\n // Skip leading zeroes in b256.\n var it4 = size - length\n while (it4 !== size && b256[it4] === 0) {\n it4++\n }\n var vch = _Buffer.allocUnsafe(zeroes + (size - it4))\n vch.fill(0x00, 0, zeroes)\n var j = zeroes\n while (it4 !== size) {\n vch[j++] = b256[it4++]\n }\n return vch\n }\n function decode (string) {\n var buffer = decodeUnsafe(string)\n if (buffer) { return buffer }\n throw new Error('Non-base' + BASE + ' character')\n }\n return {\n encode: encode,\n decodeUnsafe: decodeUnsafe,\n decode: decode\n }\n}\nmodule.exports = base\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// browserify by default only pulls in files that are hard coded in requires\n// In order of last to first in this file, the default wordlist will be chosen\n// based on what is present. (Bundles may remove wordlists they don't need)\nconst wordlists = {};\nexports.wordlists = wordlists;\nlet _default;\nexports._default = _default;\ntry {\n exports._default = _default = require('./wordlists/czech.json');\n wordlists.czech = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/chinese_simplified.json');\n wordlists.chinese_simplified = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/chinese_traditional.json');\n wordlists.chinese_traditional = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/korean.json');\n wordlists.korean = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/french.json');\n wordlists.french = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/italian.json');\n wordlists.italian = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/spanish.json');\n wordlists.spanish = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/japanese.json');\n wordlists.japanese = _default;\n wordlists.JA = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/portuguese.json');\n wordlists.portuguese = _default;\n}\ncatch (err) { }\ntry {\n exports._default = _default = require('./wordlists/english.json');\n wordlists.english = _default;\n wordlists.EN = _default;\n}\ncatch (err) { }\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst sha256_1 = require(\"@noble/hashes/sha256\");\nconst sha512_1 = require(\"@noble/hashes/sha512\");\nconst pbkdf2_1 = require(\"@noble/hashes/pbkdf2\");\nconst utils_1 = require(\"@noble/hashes/utils\");\nconst _wordlists_1 = require(\"./_wordlists\");\nlet DEFAULT_WORDLIST = _wordlists_1._default;\nconst INVALID_MNEMONIC = 'Invalid mnemonic';\nconst INVALID_ENTROPY = 'Invalid entropy';\nconst INVALID_CHECKSUM = 'Invalid mnemonic checksum';\nconst WORDLIST_REQUIRED = 'A wordlist is required but a default could not be found.\\n' +\n 'Please pass a 2048 word array explicitly.';\nfunction normalize(str) {\n return (str || '').normalize('NFKD');\n}\nfunction lpad(str, padString, length) {\n while (str.length < length) {\n str = padString + str;\n }\n return str;\n}\nfunction binaryToByte(bin) {\n return parseInt(bin, 2);\n}\nfunction bytesToBinary(bytes) {\n return bytes.map((x) => lpad(x.toString(2), '0', 8)).join('');\n}\nfunction deriveChecksumBits(entropyBuffer) {\n const ENT = entropyBuffer.length * 8;\n const CS = ENT / 32;\n const hash = sha256_1.sha256(Uint8Array.from(entropyBuffer));\n return bytesToBinary(Array.from(hash)).slice(0, CS);\n}\nfunction salt(password) {\n return 'mnemonic' + (password || '');\n}\nfunction mnemonicToSeedSync(mnemonic, password) {\n const mnemonicBuffer = Uint8Array.from(Buffer.from(normalize(mnemonic), 'utf8'));\n const saltBuffer = Uint8Array.from(Buffer.from(salt(normalize(password)), 'utf8'));\n const res = pbkdf2_1.pbkdf2(sha512_1.sha512, mnemonicBuffer, saltBuffer, {\n c: 2048,\n dkLen: 64,\n });\n return Buffer.from(res);\n}\nexports.mnemonicToSeedSync = mnemonicToSeedSync;\nfunction mnemonicToSeed(mnemonic, password) {\n const mnemonicBuffer = Uint8Array.from(Buffer.from(normalize(mnemonic), 'utf8'));\n const saltBuffer = Uint8Array.from(Buffer.from(salt(normalize(password)), 'utf8'));\n return pbkdf2_1.pbkdf2Async(sha512_1.sha512, mnemonicBuffer, saltBuffer, {\n c: 2048,\n dkLen: 64,\n }).then((res) => Buffer.from(res));\n}\nexports.mnemonicToSeed = mnemonicToSeed;\nfunction mnemonicToEntropy(mnemonic, wordlist) {\n wordlist = wordlist || DEFAULT_WORDLIST;\n if (!wordlist) {\n throw new Error(WORDLIST_REQUIRED);\n }\n const words = normalize(mnemonic).split(' ');\n if (words.length % 3 !== 0) {\n throw new Error(INVALID_MNEMONIC);\n }\n // convert word indices to 11 bit binary strings\n const bits = words\n .map((word) => {\n const index = wordlist.indexOf(word);\n if (index === -1) {\n throw new Error(INVALID_MNEMONIC);\n }\n return lpad(index.toString(2), '0', 11);\n })\n .join('');\n // split the binary string into ENT/CS\n const dividerIndex = Math.floor(bits.length / 33) * 32;\n const entropyBits = bits.slice(0, dividerIndex);\n const checksumBits = bits.slice(dividerIndex);\n // calculate the checksum and compare\n const entropyBytes = entropyBits.match(/(.{1,8})/g).map(binaryToByte);\n if (entropyBytes.length < 16) {\n throw new Error(INVALID_ENTROPY);\n }\n if (entropyBytes.length > 32) {\n throw new Error(INVALID_ENTROPY);\n }\n if (entropyBytes.length % 4 !== 0) {\n throw new Error(INVALID_ENTROPY);\n }\n const entropy = Buffer.from(entropyBytes);\n const newChecksum = deriveChecksumBits(entropy);\n if (newChecksum !== checksumBits) {\n throw new Error(INVALID_CHECKSUM);\n }\n return entropy.toString('hex');\n}\nexports.mnemonicToEntropy = mnemonicToEntropy;\nfunction entropyToMnemonic(entropy, wordlist) {\n if (!Buffer.isBuffer(entropy)) {\n entropy = Buffer.from(entropy, 'hex');\n }\n wordlist = wordlist || DEFAULT_WORDLIST;\n if (!wordlist) {\n throw new Error(WORDLIST_REQUIRED);\n }\n // 128 <= ENT <= 256\n if (entropy.length < 16) {\n throw new TypeError(INVALID_ENTROPY);\n }\n if (entropy.length > 32) {\n throw new TypeError(INVALID_ENTROPY);\n }\n if (entropy.length % 4 !== 0) {\n throw new TypeError(INVALID_ENTROPY);\n }\n const entropyBits = bytesToBinary(Array.from(entropy));\n const checksumBits = deriveChecksumBits(entropy);\n const bits = entropyBits + checksumBits;\n const chunks = bits.match(/(.{1,11})/g);\n const words = chunks.map((binary) => {\n const index = binaryToByte(binary);\n return wordlist[index];\n });\n return wordlist[0] === '\\u3042\\u3044\\u3053\\u304f\\u3057\\u3093' // Japanese wordlist\n ? words.join('\\u3000')\n : words.join(' ');\n}\nexports.entropyToMnemonic = entropyToMnemonic;\nfunction generateMnemonic(strength, rng, wordlist) {\n strength = strength || 128;\n if (strength % 32 !== 0) {\n throw new TypeError(INVALID_ENTROPY);\n }\n rng = rng || ((size) => Buffer.from(utils_1.randomBytes(size)));\n return entropyToMnemonic(rng(strength / 8), wordlist);\n}\nexports.generateMnemonic = generateMnemonic;\nfunction validateMnemonic(mnemonic, wordlist) {\n try {\n mnemonicToEntropy(mnemonic, wordlist);\n }\n catch (e) {\n return false;\n }\n return true;\n}\nexports.validateMnemonic = validateMnemonic;\nfunction setDefaultWordlist(language) {\n const result = _wordlists_1.wordlists[language];\n if (result) {\n DEFAULT_WORDLIST = result;\n }\n else {\n throw new Error('Could not find wordlist for language \"' + language + '\"');\n }\n}\nexports.setDefaultWordlist = setDefaultWordlist;\nfunction getDefaultWordlist() {\n if (!DEFAULT_WORDLIST) {\n throw new Error('No Default Wordlist set');\n }\n return Object.keys(_wordlists_1.wordlists).filter((lang) => {\n if (lang === 'JA' || lang === 'EN') {\n return false;\n }\n return _wordlists_1.wordlists[lang].every((word, index) => word === DEFAULT_WORDLIST[index]);\n })[0];\n}\nexports.getDefaultWordlist = getDefaultWordlist;\nvar _wordlists_2 = require(\"./_wordlists\");\nexports.wordlists = _wordlists_2.wordlists;\n","// Blake2B in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = require('./util')\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += v[b,b+1]\n// v should be a Uint32Array\nfunction ADD64AA (v, a, b) {\n const o0 = v[a] + v[b]\n let o1 = v[a + 1] + v[b + 1]\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += b\n// b0 is the low 32 bits of b, b1 represents the high 32 bits\nfunction ADD64AC (v, a, b0, b1) {\n let o0 = v[a] + b0\n if (b0 < 0) {\n o0 += 0x100000000\n }\n let o1 = v[a + 1] + b1\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// Little-endian byte access\nfunction B2B_GET32 (arr, i) {\n return arr[i] ^ (arr[i + 1] << 8) ^ (arr[i + 2] << 16) ^ (arr[i + 3] << 24)\n}\n\n// G Mixing function\n// The ROTRs are inlined for speed\nfunction B2B_G (a, b, c, d, ix, iy) {\n const x0 = m[ix]\n const x1 = m[ix + 1]\n const y0 = m[iy]\n const y1 = m[iy + 1]\n\n ADD64AA(v, a, b) // v[a,a+1] += v[b,b+1] ... in JS we must store a uint64 as two uint32s\n ADD64AC(v, a, x0, x1) // v[a, a+1] += x ... x0 is the low 32 bits of x, x1 is the high 32 bits\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated to the right by 32 bits\n let xor0 = v[d] ^ v[a]\n let xor1 = v[d + 1] ^ v[a + 1]\n v[d] = xor1\n v[d + 1] = xor0\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 24 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor0 >>> 24) ^ (xor1 << 8)\n v[b + 1] = (xor1 >>> 24) ^ (xor0 << 8)\n\n ADD64AA(v, a, b)\n ADD64AC(v, a, y0, y1)\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated right by 16 bits\n xor0 = v[d] ^ v[a]\n xor1 = v[d + 1] ^ v[a + 1]\n v[d] = (xor0 >>> 16) ^ (xor1 << 16)\n v[d + 1] = (xor1 >>> 16) ^ (xor0 << 16)\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 63 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor1 >>> 31) ^ (xor0 << 1)\n v[b + 1] = (xor0 >>> 31) ^ (xor1 << 1)\n}\n\n// Initialization Vector\nconst BLAKE2B_IV32 = new Uint32Array([\n 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372,\n 0x5f1d36f1, 0xa54ff53a, 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c,\n 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19\n])\n\nconst SIGMA8 = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 10, 4, 8, 9, 15, 13,\n 6, 1, 12, 0, 2, 11, 7, 5, 3, 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1,\n 9, 4, 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, 9, 0, 5, 7, 2, 4,\n 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5,\n 15, 14, 1, 9, 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, 13, 11, 7,\n 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, 6, 15, 14, 9, 11, 3, 0, 8, 12, 2,\n 13, 7, 1, 4, 10, 5, 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, 0,\n 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 10, 4, 8, 9, 15, 13, 6,\n 1, 12, 0, 2, 11, 7, 5, 3\n]\n\n// These are offsets into a uint64 buffer.\n// Multiply them all by 2 to make them offsets into a uint32 buffer,\n// because this is Javascript and we don't have uint64s\nconst SIGMA82 = new Uint8Array(\n SIGMA8.map(function (x) {\n return x * 2\n })\n)\n\n// Compression function. 'last' flag indicates last block.\n// Note we're representing 16 uint64s as 32 uint32s\nconst v = new Uint32Array(32)\nconst m = new Uint32Array(32)\nfunction blake2bCompress (ctx, last) {\n let i = 0\n\n // init work variables\n for (i = 0; i < 16; i++) {\n v[i] = ctx.h[i]\n v[i + 16] = BLAKE2B_IV32[i]\n }\n\n // low 64 bits of offset\n v[24] = v[24] ^ ctx.t\n v[25] = v[25] ^ (ctx.t / 0x100000000)\n // high 64 bits not supported, offset may not be higher than 2**53-1\n\n // last block flag set ?\n if (last) {\n v[28] = ~v[28]\n v[29] = ~v[29]\n }\n\n // get little-endian words\n for (i = 0; i < 32; i++) {\n m[i] = B2B_GET32(ctx.b, 4 * i)\n }\n\n // twelve rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 64)\n for (i = 0; i < 12; i++) {\n // util.debugPrint(' (i=' + (i < 10 ? ' ' : '') + i + ') v[16]', v, 64)\n B2B_G(0, 8, 16, 24, SIGMA82[i * 16 + 0], SIGMA82[i * 16 + 1])\n B2B_G(2, 10, 18, 26, SIGMA82[i * 16 + 2], SIGMA82[i * 16 + 3])\n B2B_G(4, 12, 20, 28, SIGMA82[i * 16 + 4], SIGMA82[i * 16 + 5])\n B2B_G(6, 14, 22, 30, SIGMA82[i * 16 + 6], SIGMA82[i * 16 + 7])\n B2B_G(0, 10, 20, 30, SIGMA82[i * 16 + 8], SIGMA82[i * 16 + 9])\n B2B_G(2, 12, 22, 24, SIGMA82[i * 16 + 10], SIGMA82[i * 16 + 11])\n B2B_G(4, 14, 16, 26, SIGMA82[i * 16 + 12], SIGMA82[i * 16 + 13])\n B2B_G(6, 8, 18, 28, SIGMA82[i * 16 + 14], SIGMA82[i * 16 + 15])\n }\n // util.debugPrint(' (i=12) v[16]', v, 64)\n\n for (i = 0; i < 16; i++) {\n ctx.h[i] = ctx.h[i] ^ v[i] ^ v[i + 16]\n }\n // util.debugPrint('h[8]', ctx.h, 64)\n}\n\n// reusable parameterBlock\nconst parameterBlock = new Uint8Array([\n 0,\n 0,\n 0,\n 0, // 0: outlen, keylen, fanout, depth\n 0,\n 0,\n 0,\n 0, // 4: leaf length, sequential mode\n 0,\n 0,\n 0,\n 0, // 8: node offset\n 0,\n 0,\n 0,\n 0, // 12: node offset\n 0,\n 0,\n 0,\n 0, // 16: node depth, inner length, rfu\n 0,\n 0,\n 0,\n 0, // 20: rfu\n 0,\n 0,\n 0,\n 0, // 24: rfu\n 0,\n 0,\n 0,\n 0, // 28: rfu\n 0,\n 0,\n 0,\n 0, // 32: salt\n 0,\n 0,\n 0,\n 0, // 36: salt\n 0,\n 0,\n 0,\n 0, // 40: salt\n 0,\n 0,\n 0,\n 0, // 44: salt\n 0,\n 0,\n 0,\n 0, // 48: personal\n 0,\n 0,\n 0,\n 0, // 52: personal\n 0,\n 0,\n 0,\n 0, // 56: personal\n 0,\n 0,\n 0,\n 0 // 60: personal\n])\n\n// Creates a BLAKE2b hashing context\n// Requires an output length between 1 and 64 bytes\n// Takes an optional Uint8Array key\n// Takes an optinal Uint8Array salt\n// Takes an optinal Uint8Array personal\nfunction blake2bInit (outlen, key, salt, personal) {\n if (outlen === 0 || outlen > 64) {\n throw new Error('Illegal output length, expected 0 < length <= 64')\n }\n if (key && key.length > 64) {\n throw new Error('Illegal key, expected Uint8Array with 0 < length <= 64')\n }\n if (salt && salt.length !== 16) {\n throw new Error('Illegal salt, expected Uint8Array with length is 16')\n }\n if (personal && personal.length !== 16) {\n throw new Error('Illegal personal, expected Uint8Array with length is 16')\n }\n\n // state, 'param block'\n const ctx = {\n b: new Uint8Array(128),\n h: new Uint32Array(16),\n t: 0, // input count\n c: 0, // pointer within buffer\n outlen: outlen // output length in bytes\n }\n\n // initialize parameterBlock before usage\n parameterBlock.fill(0)\n parameterBlock[0] = outlen\n if (key) parameterBlock[1] = key.length\n parameterBlock[2] = 1 // fanout\n parameterBlock[3] = 1 // depth\n if (salt) parameterBlock.set(salt, 32)\n if (personal) parameterBlock.set(personal, 48)\n\n // initialize hash state\n for (let i = 0; i < 16; i++) {\n ctx.h[i] = BLAKE2B_IV32[i] ^ B2B_GET32(parameterBlock, i * 4)\n }\n\n // key the hash, if applicable\n if (key) {\n blake2bUpdate(ctx, key)\n // at the end\n ctx.c = 128\n }\n\n return ctx\n}\n\n// Updates a BLAKE2b streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2bUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 128) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2bCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2b streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2bFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n\n while (ctx.c < 128) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2bCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = ctx.h[i >> 2] >> (8 * (i & 3))\n }\n return out\n}\n\n// Computes the BLAKE2B hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\n// - salt - optional salt bytes, string, Buffer or Uint8Array\n// - personal - optional personal bytes, string, Buffer or Uint8Array\nfunction blake2b (input, key, outlen, salt, personal) {\n // preprocess inputs\n outlen = outlen || 64\n input = util.normalizeInput(input)\n if (salt) {\n salt = util.normalizeInput(salt)\n }\n if (personal) {\n personal = util.normalizeInput(personal)\n }\n\n // do the math\n const ctx = blake2bInit(outlen, key, salt, personal)\n blake2bUpdate(ctx, input)\n return blake2bFinal(ctx)\n}\n\n// Computes the BLAKE2B hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\n// - salt - optional salt bytes, string, Buffer or Uint8Array\n// - personal - optional personal bytes, string, Buffer or Uint8Array\nfunction blake2bHex (input, key, outlen, salt, personal) {\n const output = blake2b(input, key, outlen, salt, personal)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2b: blake2b,\n blake2bHex: blake2bHex,\n blake2bInit: blake2bInit,\n blake2bUpdate: blake2bUpdate,\n blake2bFinal: blake2bFinal\n}\n","// BLAKE2s hash function in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = require('./util')\n\n// Little-endian byte access.\n// Expects a Uint8Array and an index\n// Returns the little-endian uint32 at v[i..i+3]\nfunction B2S_GET32 (v, i) {\n return v[i] ^ (v[i + 1] << 8) ^ (v[i + 2] << 16) ^ (v[i + 3] << 24)\n}\n\n// Mixing function G.\nfunction B2S_G (a, b, c, d, x, y) {\n v[a] = v[a] + v[b] + x\n v[d] = ROTR32(v[d] ^ v[a], 16)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 12)\n v[a] = v[a] + v[b] + y\n v[d] = ROTR32(v[d] ^ v[a], 8)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 7)\n}\n\n// 32-bit right rotation\n// x should be a uint32\n// y must be between 1 and 31, inclusive\nfunction ROTR32 (x, y) {\n return (x >>> y) ^ (x << (32 - y))\n}\n\n// Initialization Vector.\nconst BLAKE2S_IV = new Uint32Array([\n 0x6a09e667,\n 0xbb67ae85,\n 0x3c6ef372,\n 0xa54ff53a,\n 0x510e527f,\n 0x9b05688c,\n 0x1f83d9ab,\n 0x5be0cd19\n])\n\nconst SIGMA = new Uint8Array([\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0\n])\n\n// Compression function. \"last\" flag indicates last block\nconst v = new Uint32Array(16)\nconst m = new Uint32Array(16)\nfunction blake2sCompress (ctx, last) {\n let i = 0\n for (i = 0; i < 8; i++) {\n // init work variables\n v[i] = ctx.h[i]\n v[i + 8] = BLAKE2S_IV[i]\n }\n\n v[12] ^= ctx.t // low 32 bits of offset\n v[13] ^= ctx.t / 0x100000000 // high 32 bits\n if (last) {\n // last block flag set ?\n v[14] = ~v[14]\n }\n\n for (i = 0; i < 16; i++) {\n // get little-endian words\n m[i] = B2S_GET32(ctx.b, 4 * i)\n }\n\n // ten rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 32)\n for (i = 0; i < 10; i++) {\n // util.debugPrint(' (i=' + i + ') v[16]', v, 32)\n B2S_G(0, 4, 8, 12, m[SIGMA[i * 16 + 0]], m[SIGMA[i * 16 + 1]])\n B2S_G(1, 5, 9, 13, m[SIGMA[i * 16 + 2]], m[SIGMA[i * 16 + 3]])\n B2S_G(2, 6, 10, 14, m[SIGMA[i * 16 + 4]], m[SIGMA[i * 16 + 5]])\n B2S_G(3, 7, 11, 15, m[SIGMA[i * 16 + 6]], m[SIGMA[i * 16 + 7]])\n B2S_G(0, 5, 10, 15, m[SIGMA[i * 16 + 8]], m[SIGMA[i * 16 + 9]])\n B2S_G(1, 6, 11, 12, m[SIGMA[i * 16 + 10]], m[SIGMA[i * 16 + 11]])\n B2S_G(2, 7, 8, 13, m[SIGMA[i * 16 + 12]], m[SIGMA[i * 16 + 13]])\n B2S_G(3, 4, 9, 14, m[SIGMA[i * 16 + 14]], m[SIGMA[i * 16 + 15]])\n }\n // util.debugPrint(' (i=10) v[16]', v, 32)\n\n for (i = 0; i < 8; i++) {\n ctx.h[i] ^= v[i] ^ v[i + 8]\n }\n // util.debugPrint('h[8]', ctx.h, 32)\n}\n\n// Creates a BLAKE2s hashing context\n// Requires an output length between 1 and 32 bytes\n// Takes an optional Uint8Array key\nfunction blake2sInit (outlen, key) {\n if (!(outlen > 0 && outlen <= 32)) {\n throw new Error('Incorrect output length, should be in [1, 32]')\n }\n const keylen = key ? key.length : 0\n if (key && !(keylen > 0 && keylen <= 32)) {\n throw new Error('Incorrect key length, should be in [1, 32]')\n }\n\n const ctx = {\n h: new Uint32Array(BLAKE2S_IV), // hash state\n b: new Uint8Array(64), // input block\n c: 0, // pointer within block\n t: 0, // input count\n outlen: outlen // output length in bytes\n }\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n if (keylen > 0) {\n blake2sUpdate(ctx, key)\n ctx.c = 64 // at the end\n }\n\n return ctx\n}\n\n// Updates a BLAKE2s streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2sUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 64) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2sCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2s streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2sFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n while (ctx.c < 64) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2sCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = (ctx.h[i >> 2] >> (8 * (i & 3))) & 0xff\n }\n return out\n}\n\n// Computes the BLAKE2S hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2s (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 32\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2sInit(outlen, key)\n blake2sUpdate(ctx, input)\n return blake2sFinal(ctx)\n}\n\n// Computes the BLAKE2S hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2sHex (input, key, outlen) {\n const output = blake2s(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2s: blake2s,\n blake2sHex: blake2sHex,\n blake2sInit: blake2sInit,\n blake2sUpdate: blake2sUpdate,\n blake2sFinal: blake2sFinal\n}\n","const b2b = require('./blake2b')\nconst b2s = require('./blake2s')\n\nmodule.exports = {\n blake2b: b2b.blake2b,\n blake2bHex: b2b.blake2bHex,\n blake2bInit: b2b.blake2bInit,\n blake2bUpdate: b2b.blake2bUpdate,\n blake2bFinal: b2b.blake2bFinal,\n blake2s: b2s.blake2s,\n blake2sHex: b2s.blake2sHex,\n blake2sInit: b2s.blake2sInit,\n blake2sUpdate: b2s.blake2sUpdate,\n blake2sFinal: b2s.blake2sFinal\n}\n","const ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'\n\n// For convenience, let people hash a string, not just a Uint8Array\nfunction normalizeInput (input) {\n let ret\n if (input instanceof Uint8Array) {\n ret = input\n } else if (typeof input === 'string') {\n const encoder = new TextEncoder()\n ret = encoder.encode(input)\n } else {\n throw new Error(ERROR_MSG_INPUT)\n }\n return ret\n}\n\n// Converts a Uint8Array to a hexadecimal string\n// For example, toHex([255, 0, 255]) returns \"ff00ff\"\nfunction toHex (bytes) {\n return Array.prototype.map\n .call(bytes, function (n) {\n return (n < 16 ? '0' : '') + n.toString(16)\n })\n .join('')\n}\n\n// Converts any value in [0...2^32-1] to an 8-character hex string\nfunction uint32ToHex (val) {\n return (0x100000000 + val).toString(16).substring(1)\n}\n\n// For debugging: prints out hash state in the same format as the RFC\n// sample computation exactly, so that you can diff\nfunction debugPrint (label, arr, size) {\n let msg = '\\n' + label + ' = '\n for (let i = 0; i < arr.length; i += 2) {\n if (size === 32) {\n msg += uint32ToHex(arr[i]).toUpperCase()\n msg += ' '\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n } else if (size === 64) {\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n msg += uint32ToHex(arr[i]).toUpperCase()\n } else throw new Error('Invalid size ' + size)\n if (i % 6 === 4) {\n msg += '\\n' + new Array(label.length + 4).join(' ')\n } else if (i < arr.length - 2) {\n msg += ' '\n }\n }\n console.log(msg)\n}\n\n// For performance testing: generates N bytes of input, hashes M times\n// Measures and prints MB/second hash performance each time\nfunction testSpeed (hashFn, N, M) {\n let startMs = new Date().getTime()\n\n const input = new Uint8Array(N)\n for (let i = 0; i < N; i++) {\n input[i] = i % 256\n }\n const genMs = new Date().getTime()\n console.log('Generated random input in ' + (genMs - startMs) + 'ms')\n startMs = genMs\n\n for (let i = 0; i < M; i++) {\n const hashHex = hashFn(input)\n const hashMs = new Date().getTime()\n const ms = hashMs - startMs\n startMs = hashMs\n console.log('Hashed in ' + ms + 'ms: ' + hashHex.substring(0, 20) + '...')\n console.log(\n Math.round((N / (1 << 20) / (ms / 1000)) * 100) / 100 + ' MB PER SECOND'\n )\n }\n}\n\nmodule.exports = {\n normalizeInput: normalizeInput,\n toHex: toHex,\n debugPrint: debugPrint,\n testSpeed: testSpeed\n}\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.bowser=t():e.bowser=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,\"a\",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=\"\",r(r.s=90)}({17:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||\"\"},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||\"\"},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case\"NT\":return\"NT\";case\"XP\":return\"XP\";case\"NT 5.0\":return\"2000\";case\"NT 5.1\":return\"XP\";case\"NT 5.2\":return\"2003\";case\"NT 6.0\":return\"Vista\";case\"NT 6.1\":return\"7\";case\"NT 6.2\":return\"8\";case\"NT 6.3\":return\"8.1\";case\"NT 10.0\":return\"10\";default:return}},e.getMacOSVersionName=function(e){var t=e.split(\".\").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return\"Leopard\";case 6:return\"Snow Leopard\";case 7:return\"Lion\";case 8:return\"Mountain Lion\";case 9:return\"Mavericks\";case 10:return\"Yosemite\";case 11:return\"El Capitan\";case 12:return\"Sierra\";case 13:return\"High Sierra\";case 14:return\"Mojave\";case 15:return\"Catalina\";default:return}},e.getAndroidVersionName=function(e){var t=e.split(\".\").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?\"Cupcake\":1===t[0]&&t[1]>=6?\"Donut\":2===t[0]&&t[1]<2?\"Eclair\":2===t[0]&&2===t[1]?\"Froyo\":2===t[0]&&t[1]>2?\"Gingerbread\":3===t[0]?\"Honeycomb\":4===t[0]&&t[1]<1?\"Ice Cream Sandwich\":4===t[0]&&t[1]<4?\"Jelly Bean\":4===t[0]&&t[1]>=4?\"KitKat\":5===t[0]?\"Lollipop\":6===t[0]?\"Marshmallow\":7===t[0]?\"Nougat\":8===t[0]?\"Oreo\":9===t[0]?\"Pie\":void 0},e.getVersionPrecision=function(e){return e.split(\".\").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),a=Math.max(i,s),o=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(\".0\");return e.map(n.split(\".\"),(function(e){return new Array(20-e.length).join(\"0\")+e})).reverse()}));for(n&&(o=a-Math.min(i,s)),a-=1;a>=o;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===o)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),u=o.default.find(a,(function(e){return t.isOS(e)}));if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}var c=o.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(r[c]);if(void 0!==f)return f}}if(s>0){var l=Object.keys(i),h=o.default.find(l,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=o.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if(\"string\"==typeof i)return\">\"===e[0]||\"<\"===e[0]?(r=e.substr(1),\"=\"===e[1]?(n=!0,r=e.substr(2)):t=[],\">\"===e[0]?t.push(1):t.push(-1)):\"=\"===e[0]?r=e.substr(1):\"~\"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(o.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n};var s=/version\\/(\\d+(\\.?_?\\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:\"Googlebot\"},r=i.default.getFirstMatch(/googlebot\\/(\\d+(\\.\\d+))/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:\"Opera\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\\/|opios/i],describe:function(e){var t={name:\"Opera\"},r=i.default.getFirstMatch(/(?:opr|opios)[\\s/](\\S+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:\"Samsung Internet for Android\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:\"NAVER Whale Browser\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\\s/](\\d+(?:\\.\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:\"MZ Browser\"},r=i.default.getFirstMatch(/(?:MZBrowser)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:\"Focus\"},r=i.default.getFirstMatch(/(?:focus)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:\"Swing\"},r=i.default.getFirstMatch(/(?:swing)[\\s/](\\d+(?:\\.\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:\"Opera Coast\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\\/\\d+(?:.?_?\\d+)+/i],describe:function(e){var t={name:\"Opera Touch\"},r=i.default.getFirstMatch(/(?:opt)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:\"Yandex Browser\"},r=i.default.getFirstMatch(/(?:yabrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:\"UC Browser\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:\"Maxthon\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:\"Epiphany\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:\"Puffin\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:\"Sleipnir\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:\"K-Meleon\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:\"WeChat\"},r=i.default.getFirstMatch(/(?:micromessenger)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?\"QQ Browser Lite\":\"QQ Browser\"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:\"Internet Explorer\"},r=i.default.getFirstMatch(/(?:msie |rv:)(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\\sedg\\//i],describe:function(e){var t={name:\"Microsoft Edge\"},r=i.default.getFirstMatch(/\\sedg\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:\"Microsoft Edge\"},r=i.default.getSecondMatch(/edg([ea]|ios)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:\"Vivaldi\"},r=i.default.getFirstMatch(/vivaldi\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:\"SeaMonkey\"},r=i.default.getFirstMatch(/seamonkey\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:\"Sailfish\"},r=i.default.getFirstMatch(/sailfish\\s?browser\\/(\\d+(\\.\\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:\"Amazon Silk\"},r=i.default.getFirstMatch(/silk\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:\"PhantomJS\"},r=i.default.getFirstMatch(/phantomjs\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:\"SlimerJS\"},r=i.default.getFirstMatch(/slimerjs\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\\bbb\\d+/i,/rim\\stablet/i],describe:function(e){var t={name:\"BlackBerry\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\\d]+\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:\"WebOS Browser\"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:\"Bada\"},r=i.default.getFirstMatch(/dolfin\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:\"Tizen\"},r=i.default.getFirstMatch(/(?:tizen\\s?)?browser\\/(\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:\"QupZilla\"},r=i.default.getFirstMatch(/(?:qupzilla)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:\"Firefox\"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:\"Electron\"},r=i.default.getFirstMatch(/(?:electron)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:\"Miui\"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\\s/](\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:\"Chromium\"},r=i.default.getFirstMatch(/(?:chromium)[\\s/](\\d+(\\.?_?\\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:\"Chrome\"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:\"Google Search\"},r=i.default.getFirstMatch(/(?:GSA)\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:\"Android Browser\"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:\"PlayStation 4\"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:\"Safari\"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search(\"\\\\(\")?/^(.*)\\/(.*)[ \\t]\\((.*)/:/^(.*)\\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/Roku\\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\\/DVP-(\\d+\\.\\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\\s?(\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \\d\\d?.\\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\\/)(\\d[\\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\\d+(\\.?_?\\d+)+)/i,e).replace(/[_\\s]/g,\".\"),r=i.default.getMacOSVersionName(t),n={name:s.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\\d+([_\\s]\\d+)*) like mac os x/i,e).replace(/[_\\s]/g,\".\");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\\s/-](\\d+(\\.\\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:s.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\\/(\\d+(\\.\\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\\bbb\\d+/i,/rim\\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\\stablet\\sos\\s(\\d+(\\.\\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\\d+\\/(\\d+([_\\s]\\d+)*)/i,e)||i.default.getFirstMatch(/\\bbb(\\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\\/(\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\\s](\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\\s](\\d+(\\.\\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/googlebot/i],describe:function(){return{type:\"bot\",vendor:\"Google\"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&\"Nova\",r={type:s.PLATFORMS_MAP.mobile,vendor:\"Huawei\"};return t&&(r.model=t),r}},{test:[/nexus\\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Nexus\"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Apple\",model:\"iPad\"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Amazon\",model:\"Kindle Fire HD 7\"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:\"Amazon\"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:\"Apple\",model:t}}},{test:[/nexus\\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:\"Nexus\"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return\"blackberry\"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:\"BlackBerry\"}}},{test:function(e){return\"bada\"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return\"windows phone\"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:\"Microsoft\"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(\".\")[0]);return\"android\"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return\"android\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return\"macos\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:\"Apple\"}}},{test:function(e){return\"windows\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return\"linux\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return\"playstation 4\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return\"roku\"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){\"use strict\";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:function(e){return\"microsoft edge\"===e.getBrowserName(!0)},describe:function(e){if(/\\sedg\\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\\/(\\d+(\\.?_?\\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\\/537\\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\\/(\\d+(\\.?_?\\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})}));","var r;\n\nmodule.exports = function rand(len) {\n if (!r)\n r = new Rand(null);\n\n return r.generate(len);\n};\n\nfunction Rand(rand) {\n this.rand = rand;\n}\nmodule.exports.Rand = Rand;\n\nRand.prototype.generate = function generate(len) {\n return this._rand(len);\n};\n\n// Emulate crypto API using randy\nRand.prototype._rand = function _rand(n) {\n if (this.rand.getBytes)\n return this.rand.getBytes(n);\n\n var res = new Uint8Array(n);\n for (var i = 0; i < res.length; i++)\n res[i] = this.rand.getByte();\n return res;\n};\n\nif (typeof self === 'object') {\n if (self.crypto && self.crypto.getRandomValues) {\n // Modern browsers\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.crypto.getRandomValues(arr);\n return arr;\n };\n } else if (self.msCrypto && self.msCrypto.getRandomValues) {\n // IE\n Rand.prototype._rand = function _rand(n) {\n var arr = new Uint8Array(n);\n self.msCrypto.getRandomValues(arr);\n return arr;\n };\n\n // Safari's WebWorkers do not have `crypto`\n } else if (typeof window === 'object') {\n // Old junk\n Rand.prototype._rand = function() {\n throw new Error('Not implemented yet');\n };\n }\n} else {\n // Node.js or Web worker with no crypto support\n try {\n var crypto = require('crypto');\n if (typeof crypto.randomBytes !== 'function')\n throw new Error('Not supported');\n\n Rand.prototype._rand = function _rand(n) {\n return crypto.randomBytes(n);\n };\n } catch (e) {\n }\n}\n","var basex = require('base-x')\nvar ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\n\nmodule.exports = basex(ALPHABET)\n","'use strict'\n\nvar base58 = require('bs58')\nvar Buffer = require('safe-buffer').Buffer\n\nmodule.exports = function (checksumFn) {\n // Encode a buffer as a base58-check encoded string\n function encode (payload) {\n var checksum = checksumFn(payload)\n\n return base58.encode(Buffer.concat([\n payload,\n checksum\n ], payload.length + 4))\n }\n\n function decodeRaw (buffer) {\n var payload = buffer.slice(0, -4)\n var checksum = buffer.slice(-4)\n var newChecksum = checksumFn(payload)\n\n if (checksum[0] ^ newChecksum[0] |\n checksum[1] ^ newChecksum[1] |\n checksum[2] ^ newChecksum[2] |\n checksum[3] ^ newChecksum[3]) return\n\n return payload\n }\n\n // Decode a base58-check encoded string to a buffer, no result if checksum is wrong\n function decodeUnsafe (string) {\n var buffer = base58.decodeUnsafe(string)\n if (!buffer) return\n\n return decodeRaw(buffer)\n }\n\n function decode (string) {\n var buffer = base58.decode(string)\n var payload = decodeRaw(buffer, checksumFn)\n if (!payload) throw new Error('Invalid checksum')\n return payload\n }\n\n return {\n encode: encode,\n decode: decode,\n decodeUnsafe: decodeUnsafe\n }\n}\n","'use strict'\n\nvar createHash = require('create-hash')\nvar bs58checkBase = require('./base')\n\n// SHA256(SHA256(buffer))\nfunction sha256x2 (buffer) {\n var tmp = createHash('sha256').update(buffer).digest()\n return createHash('sha256').update(tmp).digest()\n}\n\nmodule.exports = bs58checkBase(sha256x2)\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","var charenc = {\n // UTF-8 encoding\n utf8: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));\n }\n },\n\n // Binary encoding\n bin: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n for (var bytes = [], i = 0; i < str.length; i++)\n bytes.push(str.charCodeAt(i) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n for (var str = [], i = 0; i < bytes.length; i++)\n str.push(String.fromCharCode(bytes[i]));\n return str.join('');\n }\n }\n};\n\nmodule.exports = charenc;\n","var Buffer = require('safe-buffer').Buffer\nvar Transform = require('stream').Transform\nvar StringDecoder = require('string_decoder').StringDecoder\nvar inherits = require('inherits')\n\nfunction CipherBase (hashMode) {\n Transform.call(this)\n this.hashMode = typeof hashMode === 'string'\n if (this.hashMode) {\n this[hashMode] = this._finalOrDigest\n } else {\n this.final = this._finalOrDigest\n }\n if (this._final) {\n this.__final = this._final\n this._final = null\n }\n this._decoder = null\n this._encoding = null\n}\ninherits(CipherBase, Transform)\n\nCipherBase.prototype.update = function (data, inputEnc, outputEnc) {\n if (typeof data === 'string') {\n data = Buffer.from(data, inputEnc)\n }\n\n var outData = this._update(data)\n if (this.hashMode) return this\n\n if (outputEnc) {\n outData = this._toString(outData, outputEnc)\n }\n\n return outData\n}\n\nCipherBase.prototype.setAutoPadding = function () {}\nCipherBase.prototype.getAuthTag = function () {\n throw new Error('trying to get auth tag in unsupported state')\n}\n\nCipherBase.prototype.setAuthTag = function () {\n throw new Error('trying to set auth tag in unsupported state')\n}\n\nCipherBase.prototype.setAAD = function () {\n throw new Error('trying to set aad in unsupported state')\n}\n\nCipherBase.prototype._transform = function (data, _, next) {\n var err\n try {\n if (this.hashMode) {\n this._update(data)\n } else {\n this.push(this._update(data))\n }\n } catch (e) {\n err = e\n } finally {\n next(err)\n }\n}\nCipherBase.prototype._flush = function (done) {\n var err\n try {\n this.push(this.__final())\n } catch (e) {\n err = e\n }\n\n done(err)\n}\nCipherBase.prototype._finalOrDigest = function (outputEnc) {\n var outData = this.__final() || Buffer.alloc(0)\n if (outputEnc) {\n outData = this._toString(outData, outputEnc, true)\n }\n return outData\n}\n\nCipherBase.prototype._toString = function (value, enc, fin) {\n if (!this._decoder) {\n this._decoder = new StringDecoder(enc)\n this._encoding = enc\n }\n\n if (this._encoding !== enc) throw new Error('can\\'t switch encodings')\n\n var out = this._decoder.write(value)\n if (fin) {\n out += this._decoder.end()\n }\n\n return out\n}\n\nmodule.exports = CipherBase\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","'use strict'\nvar inherits = require('inherits')\nvar MD5 = require('md5.js')\nvar RIPEMD160 = require('ripemd160')\nvar sha = require('sha.js')\nvar Base = require('cipher-base')\n\nfunction Hash (hash) {\n Base.call(this, 'digest')\n\n this._hash = hash\n}\n\ninherits(Hash, Base)\n\nHash.prototype._update = function (data) {\n this._hash.update(data)\n}\n\nHash.prototype._final = function () {\n return this._hash.digest()\n}\n\nmodule.exports = function createHash (alg) {\n alg = alg.toLowerCase()\n if (alg === 'md5') return new MD5()\n if (alg === 'rmd160' || alg === 'ripemd160') return new RIPEMD160()\n\n return new Hash(sha(alg))\n}\n","var MD5 = require('md5.js')\n\nmodule.exports = function (buffer) {\n return new MD5().update(buffer).digest()\n}\n","(function() {\n var base64map\n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n\n crypt = {\n // Bit-wise rotation left\n rotl: function(n, b) {\n return (n << b) | (n >>> (32 - b));\n },\n\n // Bit-wise rotation right\n rotr: function(n, b) {\n return (n << (32 - b)) | (n >>> b);\n },\n\n // Swap big-endian to little-endian and vice versa\n endian: function(n) {\n // If number given, swap endian\n if (n.constructor == Number) {\n return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;\n }\n\n // Else, assume array and swap all items\n for (var i = 0; i < n.length; i++)\n n[i] = crypt.endian(n[i]);\n return n;\n },\n\n // Generate an array of any length of random bytes\n randomBytes: function(n) {\n for (var bytes = []; n > 0; n--)\n bytes.push(Math.floor(Math.random() * 256));\n return bytes;\n },\n\n // Convert a byte array to big-endian 32-bit words\n bytesToWords: function(bytes) {\n for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)\n words[b >>> 5] |= bytes[i] << (24 - b % 32);\n return words;\n },\n\n // Convert big-endian 32-bit words to a byte array\n wordsToBytes: function(words) {\n for (var bytes = [], b = 0; b < words.length * 32; b += 8)\n bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a hex string\n bytesToHex: function(bytes) {\n for (var hex = [], i = 0; i < bytes.length; i++) {\n hex.push((bytes[i] >>> 4).toString(16));\n hex.push((bytes[i] & 0xF).toString(16));\n }\n return hex.join('');\n },\n\n // Convert a hex string to a byte array\n hexToBytes: function(hex) {\n for (var bytes = [], c = 0; c < hex.length; c += 2)\n bytes.push(parseInt(hex.substr(c, 2), 16));\n return bytes;\n },\n\n // Convert a byte array to a base-64 string\n bytesToBase64: function(bytes) {\n for (var base64 = [], i = 0; i < bytes.length; i += 3) {\n var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n for (var j = 0; j < 4; j++)\n if (i * 8 + j * 6 <= bytes.length * 8)\n base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));\n else\n base64.push('=');\n }\n return base64.join('');\n },\n\n // Convert a base-64 string to a byte array\n base64ToBytes: function(base64) {\n // Remove non-base-64 characters\n base64 = base64.replace(/[^A-Z0-9+\\/]/ig, '');\n\n for (var bytes = [], i = 0, imod4 = 0; i < base64.length;\n imod4 = ++i % 4) {\n if (imod4 == 0) continue;\n bytes.push(((base64map.indexOf(base64.charAt(i - 1))\n & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))\n | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));\n }\n return bytes;\n }\n };\n\n module.exports = crypt;\n})();\n","'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n","'use strict';\n\nvar elliptic = exports;\n\nelliptic.version = require('../package.json').version;\nelliptic.utils = require('./elliptic/utils');\nelliptic.rand = require('brorand');\nelliptic.curve = require('./elliptic/curve');\nelliptic.curves = require('./elliptic/curves');\n\n// Protocols\nelliptic.ec = require('./elliptic/ec');\nelliptic.eddsa = require('./elliptic/eddsa');\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar getNAF = utils.getNAF;\nvar getJSF = utils.getJSF;\nvar assert = utils.assert;\n\nfunction BaseCurve(type, conf) {\n this.type = type;\n this.p = new BN(conf.p, 16);\n\n // Use Montgomery, when there is no fast reduction for the prime\n this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);\n\n // Useful for many curves\n this.zero = new BN(0).toRed(this.red);\n this.one = new BN(1).toRed(this.red);\n this.two = new BN(2).toRed(this.red);\n\n // Curve configuration, optional\n this.n = conf.n && new BN(conf.n, 16);\n this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);\n\n // Temporary arrays\n this._wnafT1 = new Array(4);\n this._wnafT2 = new Array(4);\n this._wnafT3 = new Array(4);\n this._wnafT4 = new Array(4);\n\n this._bitLength = this.n ? this.n.bitLength() : 0;\n\n // Generalized Greg Maxwell's trick\n var adjustCount = this.n && this.p.div(this.n);\n if (!adjustCount || adjustCount.cmpn(100) > 0) {\n this.redN = null;\n } else {\n this._maxwellTrick = true;\n this.redN = this.n.toRed(this.red);\n }\n}\nmodule.exports = BaseCurve;\n\nBaseCurve.prototype.point = function point() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype.validate = function validate() {\n throw new Error('Not implemented');\n};\n\nBaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {\n assert(p.precomputed);\n var doubles = p._getDoubles();\n\n var naf = getNAF(k, 1, this._bitLength);\n var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);\n I /= 3;\n\n // Translate into more windowed form\n var repr = [];\n var j;\n var nafW;\n for (j = 0; j < naf.length; j += doubles.step) {\n nafW = 0;\n for (var l = j + doubles.step - 1; l >= j; l--)\n nafW = (nafW << 1) + naf[l];\n repr.push(nafW);\n }\n\n var a = this.jpoint(null, null, null);\n var b = this.jpoint(null, null, null);\n for (var i = I; i > 0; i--) {\n for (j = 0; j < repr.length; j++) {\n nafW = repr[j];\n if (nafW === i)\n b = b.mixedAdd(doubles.points[j]);\n else if (nafW === -i)\n b = b.mixedAdd(doubles.points[j].neg());\n }\n a = a.add(b);\n }\n return a.toP();\n};\n\nBaseCurve.prototype._wnafMul = function _wnafMul(p, k) {\n var w = 4;\n\n // Precompute window\n var nafPoints = p._getNAFPoints(w);\n w = nafPoints.wnd;\n var wnd = nafPoints.points;\n\n // Get NAF form\n var naf = getNAF(k, w, this._bitLength);\n\n // Add `this`*(N+1) for every w-NAF index\n var acc = this.jpoint(null, null, null);\n for (var i = naf.length - 1; i >= 0; i--) {\n // Count zeroes\n for (var l = 0; i >= 0 && naf[i] === 0; i--)\n l++;\n if (i >= 0)\n l++;\n acc = acc.dblp(l);\n\n if (i < 0)\n break;\n var z = naf[i];\n assert(z !== 0);\n if (p.type === 'affine') {\n // J +- P\n if (z > 0)\n acc = acc.mixedAdd(wnd[(z - 1) >> 1]);\n else\n acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());\n } else {\n // J +- J\n if (z > 0)\n acc = acc.add(wnd[(z - 1) >> 1]);\n else\n acc = acc.add(wnd[(-z - 1) >> 1].neg());\n }\n }\n return p.type === 'affine' ? acc.toP() : acc;\n};\n\nBaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,\n points,\n coeffs,\n len,\n jacobianResult) {\n var wndWidth = this._wnafT1;\n var wnd = this._wnafT2;\n var naf = this._wnafT3;\n\n // Fill all arrays\n var max = 0;\n var i;\n var j;\n var p;\n for (i = 0; i < len; i++) {\n p = points[i];\n var nafPoints = p._getNAFPoints(defW);\n wndWidth[i] = nafPoints.wnd;\n wnd[i] = nafPoints.points;\n }\n\n // Comb small window NAFs\n for (i = len - 1; i >= 1; i -= 2) {\n var a = i - 1;\n var b = i;\n if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {\n naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);\n naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);\n max = Math.max(naf[a].length, max);\n max = Math.max(naf[b].length, max);\n continue;\n }\n\n var comb = [\n points[a], /* 1 */\n null, /* 3 */\n null, /* 5 */\n points[b], /* 7 */\n ];\n\n // Try to avoid Projective points, if possible\n if (points[a].y.cmp(points[b].y) === 0) {\n comb[1] = points[a].add(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].add(points[b].neg());\n } else {\n comb[1] = points[a].toJ().mixedAdd(points[b]);\n comb[2] = points[a].toJ().mixedAdd(points[b].neg());\n }\n\n var index = [\n -3, /* -1 -1 */\n -1, /* -1 0 */\n -5, /* -1 1 */\n -7, /* 0 -1 */\n 0, /* 0 0 */\n 7, /* 0 1 */\n 5, /* 1 -1 */\n 1, /* 1 0 */\n 3, /* 1 1 */\n ];\n\n var jsf = getJSF(coeffs[a], coeffs[b]);\n max = Math.max(jsf[0].length, max);\n naf[a] = new Array(max);\n naf[b] = new Array(max);\n for (j = 0; j < max; j++) {\n var ja = jsf[0][j] | 0;\n var jb = jsf[1][j] | 0;\n\n naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];\n naf[b][j] = 0;\n wnd[a] = comb;\n }\n }\n\n var acc = this.jpoint(null, null, null);\n var tmp = this._wnafT4;\n for (i = max; i >= 0; i--) {\n var k = 0;\n\n while (i >= 0) {\n var zero = true;\n for (j = 0; j < len; j++) {\n tmp[j] = naf[j][i] | 0;\n if (tmp[j] !== 0)\n zero = false;\n }\n if (!zero)\n break;\n k++;\n i--;\n }\n if (i >= 0)\n k++;\n acc = acc.dblp(k);\n if (i < 0)\n break;\n\n for (j = 0; j < len; j++) {\n var z = tmp[j];\n p;\n if (z === 0)\n continue;\n else if (z > 0)\n p = wnd[j][(z - 1) >> 1];\n else if (z < 0)\n p = wnd[j][(-z - 1) >> 1].neg();\n\n if (p.type === 'affine')\n acc = acc.mixedAdd(p);\n else\n acc = acc.add(p);\n }\n }\n // Zeroify references\n for (i = 0; i < len; i++)\n wnd[i] = null;\n\n if (jacobianResult)\n return acc;\n else\n return acc.toP();\n};\n\nfunction BasePoint(curve, type) {\n this.curve = curve;\n this.type = type;\n this.precomputed = null;\n}\nBaseCurve.BasePoint = BasePoint;\n\nBasePoint.prototype.eq = function eq(/*other*/) {\n throw new Error('Not implemented');\n};\n\nBasePoint.prototype.validate = function validate() {\n return this.curve.validate(this);\n};\n\nBaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n bytes = utils.toArray(bytes, enc);\n\n var len = this.p.byteLength();\n\n // uncompressed, hybrid-odd, hybrid-even\n if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&\n bytes.length - 1 === 2 * len) {\n if (bytes[0] === 0x06)\n assert(bytes[bytes.length - 1] % 2 === 0);\n else if (bytes[0] === 0x07)\n assert(bytes[bytes.length - 1] % 2 === 1);\n\n var res = this.point(bytes.slice(1, 1 + len),\n bytes.slice(1 + len, 1 + 2 * len));\n\n return res;\n } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&\n bytes.length - 1 === len) {\n return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);\n }\n throw new Error('Unknown point format');\n};\n\nBasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {\n return this.encode(enc, true);\n};\n\nBasePoint.prototype._encode = function _encode(compact) {\n var len = this.curve.p.byteLength();\n var x = this.getX().toArray('be', len);\n\n if (compact)\n return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);\n\n return [ 0x04 ].concat(x, this.getY().toArray('be', len));\n};\n\nBasePoint.prototype.encode = function encode(enc, compact) {\n return utils.encode(this._encode(compact), enc);\n};\n\nBasePoint.prototype.precompute = function precompute(power) {\n if (this.precomputed)\n return this;\n\n var precomputed = {\n doubles: null,\n naf: null,\n beta: null,\n };\n precomputed.naf = this._getNAFPoints(8);\n precomputed.doubles = this._getDoubles(4, power);\n precomputed.beta = this._getBeta();\n this.precomputed = precomputed;\n\n return this;\n};\n\nBasePoint.prototype._hasDoubles = function _hasDoubles(k) {\n if (!this.precomputed)\n return false;\n\n var doubles = this.precomputed.doubles;\n if (!doubles)\n return false;\n\n return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);\n};\n\nBasePoint.prototype._getDoubles = function _getDoubles(step, power) {\n if (this.precomputed && this.precomputed.doubles)\n return this.precomputed.doubles;\n\n var doubles = [ this ];\n var acc = this;\n for (var i = 0; i < power; i += step) {\n for (var j = 0; j < step; j++)\n acc = acc.dbl();\n doubles.push(acc);\n }\n return {\n step: step,\n points: doubles,\n };\n};\n\nBasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {\n if (this.precomputed && this.precomputed.naf)\n return this.precomputed.naf;\n\n var res = [ this ];\n var max = (1 << wnd) - 1;\n var dbl = max === 1 ? null : this.dbl();\n for (var i = 1; i < max; i++)\n res[i] = res[i - 1].add(dbl);\n return {\n wnd: wnd,\n points: res,\n };\n};\n\nBasePoint.prototype._getBeta = function _getBeta() {\n return null;\n};\n\nBasePoint.prototype.dblp = function dblp(k) {\n var r = this;\n for (var i = 0; i < k; i++)\n r = r.dbl();\n return r;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction EdwardsCurve(conf) {\n // NOTE: Important as we are creating point in Base.call()\n this.twisted = (conf.a | 0) !== 1;\n this.mOneA = this.twisted && (conf.a | 0) === -1;\n this.extended = this.mOneA;\n\n Base.call(this, 'edwards', conf);\n\n this.a = new BN(conf.a, 16).umod(this.red.m);\n this.a = this.a.toRed(this.red);\n this.c = new BN(conf.c, 16).toRed(this.red);\n this.c2 = this.c.redSqr();\n this.d = new BN(conf.d, 16).toRed(this.red);\n this.dd = this.d.redAdd(this.d);\n\n assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);\n this.oneC = (conf.c | 0) === 1;\n}\ninherits(EdwardsCurve, Base);\nmodule.exports = EdwardsCurve;\n\nEdwardsCurve.prototype._mulA = function _mulA(num) {\n if (this.mOneA)\n return num.redNeg();\n else\n return this.a.redMul(num);\n};\n\nEdwardsCurve.prototype._mulC = function _mulC(num) {\n if (this.oneC)\n return num;\n else\n return this.c.redMul(num);\n};\n\n// Just for compatibility with Short curve\nEdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {\n return this.point(x, y, z, t);\n};\n\nEdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var x2 = x.redSqr();\n var rhs = this.c2.redSub(this.a.redMul(x2));\n var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));\n\n var y2 = rhs.redMul(lhs.redInvm());\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {\n y = new BN(y, 16);\n if (!y.red)\n y = y.toRed(this.red);\n\n // x^2 = (y^2 - c^2) / (c^2 d y^2 - a)\n var y2 = y.redSqr();\n var lhs = y2.redSub(this.c2);\n var rhs = y2.redMul(this.d).redMul(this.c2).redSub(this.a);\n var x2 = lhs.redMul(rhs.redInvm());\n\n if (x2.cmp(this.zero) === 0) {\n if (odd)\n throw new Error('invalid point');\n else\n return this.point(this.zero, y);\n }\n\n var x = x2.redSqrt();\n if (x.redSqr().redSub(x2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n if (x.fromRed().isOdd() !== odd)\n x = x.redNeg();\n\n return this.point(x, y);\n};\n\nEdwardsCurve.prototype.validate = function validate(point) {\n if (point.isInfinity())\n return true;\n\n // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)\n point.normalize();\n\n var x2 = point.x.redSqr();\n var y2 = point.y.redSqr();\n var lhs = x2.redMul(this.a).redAdd(y2);\n var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));\n\n return lhs.cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, y, z, t) {\n Base.BasePoint.call(this, curve, 'projective');\n if (x === null && y === null && z === null) {\n this.x = this.curve.zero;\n this.y = this.curve.one;\n this.z = this.curve.one;\n this.t = this.curve.zero;\n this.zOne = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = z ? new BN(z, 16) : this.curve.one;\n this.t = t && new BN(t, 16);\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n if (this.t && !this.t.red)\n this.t = this.t.toRed(this.curve.red);\n this.zOne = this.z === this.curve.one;\n\n // Use extended coordinates\n if (this.curve.extended && !this.t) {\n this.t = this.x.redMul(this.y);\n if (!this.zOne)\n this.t = this.t.redMul(this.z.redInvm());\n }\n }\n}\ninherits(Point, Base.BasePoint);\n\nEdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nEdwardsCurve.prototype.point = function point(x, y, z, t) {\n return new Point(this, x, y, z, t);\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1], obj[2]);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.x.cmpn(0) === 0 &&\n (this.y.cmp(this.z) === 0 ||\n (this.zOne && this.y.cmp(this.curve.c) === 0));\n};\n\nPoint.prototype._extDbl = function _extDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #doubling-dbl-2008-hwcd\n // 4M + 4S\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = 2 * Z1^2\n var c = this.z.redSqr();\n c = c.redIAdd(c);\n // D = a * A\n var d = this.curve._mulA(a);\n // E = (X1 + Y1)^2 - A - B\n var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);\n // G = D + B\n var g = d.redAdd(b);\n // F = G - C\n var f = g.redSub(c);\n // H = D - B\n var h = d.redSub(b);\n // X3 = E * F\n var nx = e.redMul(f);\n // Y3 = G * H\n var ny = g.redMul(h);\n // T3 = E * H\n var nt = e.redMul(h);\n // Z3 = F * G\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projDbl = function _projDbl() {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #doubling-dbl-2008-bbjlp\n // #doubling-dbl-2007-bl\n // and others\n // Generally 3M + 4S or 2M + 4S\n\n // B = (X1 + Y1)^2\n var b = this.x.redAdd(this.y).redSqr();\n // C = X1^2\n var c = this.x.redSqr();\n // D = Y1^2\n var d = this.y.redSqr();\n\n var nx;\n var ny;\n var nz;\n var e;\n var h;\n var j;\n if (this.curve.twisted) {\n // E = a * C\n e = this.curve._mulA(c);\n // F = E + D\n var f = e.redAdd(d);\n if (this.zOne) {\n // X3 = (B - C - D) * (F - 2)\n nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));\n // Y3 = F * (E - D)\n ny = f.redMul(e.redSub(d));\n // Z3 = F^2 - 2 * F\n nz = f.redSqr().redSub(f).redSub(f);\n } else {\n // H = Z1^2\n h = this.z.redSqr();\n // J = F - 2 * H\n j = f.redSub(h).redISub(h);\n // X3 = (B-C-D)*J\n nx = b.redSub(c).redISub(d).redMul(j);\n // Y3 = F * (E - D)\n ny = f.redMul(e.redSub(d));\n // Z3 = F * J\n nz = f.redMul(j);\n }\n } else {\n // E = C + D\n e = c.redAdd(d);\n // H = (c * Z1)^2\n h = this.curve._mulC(this.z).redSqr();\n // J = E - 2 * H\n j = e.redSub(h).redSub(h);\n // X3 = c * (B - E) * J\n nx = this.curve._mulC(b.redISub(e)).redMul(j);\n // Y3 = c * E * (C - D)\n ny = this.curve._mulC(e).redMul(c.redISub(d));\n // Z3 = E * J\n nz = e.redMul(j);\n }\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n // Double in extended coordinates\n if (this.curve.extended)\n return this._extDbl();\n else\n return this._projDbl();\n};\n\nPoint.prototype._extAdd = function _extAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html\n // #addition-add-2008-hwcd-3\n // 8M\n\n // A = (Y1 - X1) * (Y2 - X2)\n var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x));\n // B = (Y1 + X1) * (Y2 + X2)\n var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));\n // C = T1 * k * T2\n var c = this.t.redMul(this.curve.dd).redMul(p.t);\n // D = Z1 * 2 * Z2\n var d = this.z.redMul(p.z.redAdd(p.z));\n // E = B - A\n var e = b.redSub(a);\n // F = D - C\n var f = d.redSub(c);\n // G = D + C\n var g = d.redAdd(c);\n // H = B + A\n var h = b.redAdd(a);\n // X3 = E * F\n var nx = e.redMul(f);\n // Y3 = G * H\n var ny = g.redMul(h);\n // T3 = E * H\n var nt = e.redMul(h);\n // Z3 = F * G\n var nz = f.redMul(g);\n return this.curve.point(nx, ny, nz, nt);\n};\n\nPoint.prototype._projAdd = function _projAdd(p) {\n // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html\n // #addition-add-2008-bbjlp\n // #addition-add-2007-bl\n // 10M + 1S\n\n // A = Z1 * Z2\n var a = this.z.redMul(p.z);\n // B = A^2\n var b = a.redSqr();\n // C = X1 * X2\n var c = this.x.redMul(p.x);\n // D = Y1 * Y2\n var d = this.y.redMul(p.y);\n // E = d * C * D\n var e = this.curve.d.redMul(c).redMul(d);\n // F = B - E\n var f = b.redSub(e);\n // G = B + E\n var g = b.redAdd(e);\n // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)\n var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);\n var nx = a.redMul(f).redMul(tmp);\n var ny;\n var nz;\n if (this.curve.twisted) {\n // Y3 = A * G * (D - a * C)\n ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));\n // Z3 = F * G\n nz = f.redMul(g);\n } else {\n // Y3 = A * G * (D - C)\n ny = a.redMul(g).redMul(d.redSub(c));\n // Z3 = c * F * G\n nz = this.curve._mulC(f).redMul(g);\n }\n return this.curve.point(nx, ny, nz);\n};\n\nPoint.prototype.add = function add(p) {\n if (this.isInfinity())\n return p;\n if (p.isInfinity())\n return this;\n\n if (this.curve.extended)\n return this._extAdd(p);\n else\n return this._projAdd(p);\n};\n\nPoint.prototype.mul = function mul(k) {\n if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, false);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p, k2) {\n return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true);\n};\n\nPoint.prototype.normalize = function normalize() {\n if (this.zOne)\n return this;\n\n // Normalize coordinates\n var zi = this.z.redInvm();\n this.x = this.x.redMul(zi);\n this.y = this.y.redMul(zi);\n if (this.t)\n this.t = this.t.redMul(zi);\n this.z = this.curve.one;\n this.zOne = true;\n return this;\n};\n\nPoint.prototype.neg = function neg() {\n return this.curve.point(this.x.redNeg(),\n this.y,\n this.z,\n this.t && this.t.redNeg());\n};\n\nPoint.prototype.getX = function getX() {\n this.normalize();\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n this.normalize();\n return this.y.fromRed();\n};\n\nPoint.prototype.eq = function eq(other) {\n return this === other ||\n this.getX().cmp(other.getX()) === 0 &&\n this.getY().cmp(other.getY()) === 0;\n};\n\nPoint.prototype.eqXToP = function eqXToP(x) {\n var rx = x.toRed(this.curve.red).redMul(this.z);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(this.z);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\n// Compatibility with BaseCurve\nPoint.prototype.toP = Point.prototype.normalize;\nPoint.prototype.mixedAdd = Point.prototype.add;\n","'use strict';\n\nvar curve = exports;\n\ncurve.base = require('./base');\ncurve.short = require('./short');\ncurve.mont = require('./mont');\ncurve.edwards = require('./edwards');\n","'use strict';\n\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar utils = require('../utils');\n\nfunction MontCurve(conf) {\n Base.call(this, 'mont', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.i4 = new BN(4).toRed(this.red).redInvm();\n this.two = new BN(2).toRed(this.red);\n this.a24 = this.i4.redMul(this.a.redAdd(this.two));\n}\ninherits(MontCurve, Base);\nmodule.exports = MontCurve;\n\nMontCurve.prototype.validate = function validate(point) {\n var x = point.normalize().x;\n var x2 = x.redSqr();\n var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);\n var y = rhs.redSqrt();\n\n return y.redSqr().cmp(rhs) === 0;\n};\n\nfunction Point(curve, x, z) {\n Base.BasePoint.call(this, curve, 'projective');\n if (x === null && z === null) {\n this.x = this.curve.one;\n this.z = this.curve.zero;\n } else {\n this.x = new BN(x, 16);\n this.z = new BN(z, 16);\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n }\n}\ninherits(Point, Base.BasePoint);\n\nMontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {\n return this.point(utils.toArray(bytes, enc), 1);\n};\n\nMontCurve.prototype.point = function point(x, z) {\n return new Point(this, x, z);\n};\n\nMontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {\n return Point.fromJSON(this, obj);\n};\n\nPoint.prototype.precompute = function precompute() {\n // No-op\n};\n\nPoint.prototype._encode = function _encode() {\n return this.getX().toArray('be', this.curve.p.byteLength());\n};\n\nPoint.fromJSON = function fromJSON(curve, obj) {\n return new Point(curve, obj[0], obj[1] || curve.one);\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n\nPoint.prototype.dbl = function dbl() {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3\n // 2M + 2S + 4A\n\n // A = X1 + Z1\n var a = this.x.redAdd(this.z);\n // AA = A^2\n var aa = a.redSqr();\n // B = X1 - Z1\n var b = this.x.redSub(this.z);\n // BB = B^2\n var bb = b.redSqr();\n // C = AA - BB\n var c = aa.redSub(bb);\n // X3 = AA * BB\n var nx = aa.redMul(bb);\n // Z3 = C * (BB + A24 * C)\n var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.add = function add() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.diffAdd = function diffAdd(p, diff) {\n // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3\n // 4M + 2S + 6A\n\n // A = X2 + Z2\n var a = this.x.redAdd(this.z);\n // B = X2 - Z2\n var b = this.x.redSub(this.z);\n // C = X3 + Z3\n var c = p.x.redAdd(p.z);\n // D = X3 - Z3\n var d = p.x.redSub(p.z);\n // DA = D * A\n var da = d.redMul(a);\n // CB = C * B\n var cb = c.redMul(b);\n // X5 = Z1 * (DA + CB)^2\n var nx = diff.z.redMul(da.redAdd(cb).redSqr());\n // Z5 = X1 * (DA - CB)^2\n var nz = diff.x.redMul(da.redISub(cb).redSqr());\n return this.curve.point(nx, nz);\n};\n\nPoint.prototype.mul = function mul(k) {\n var t = k.clone();\n var a = this; // (N / 2) * Q + Q\n var b = this.curve.point(null, null); // (N / 2) * Q\n var c = this; // Q\n\n for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1))\n bits.push(t.andln(1));\n\n for (var i = bits.length - 1; i >= 0; i--) {\n if (bits[i] === 0) {\n // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q\n a = a.diffAdd(b, c);\n // N * Q = 2 * ((N / 2) * Q + Q))\n b = b.dbl();\n } else {\n // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)\n b = a.diffAdd(b, c);\n // N * Q + Q = 2 * ((N / 2) * Q + Q)\n a = a.dbl();\n }\n }\n return b;\n};\n\nPoint.prototype.mulAdd = function mulAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.jumlAdd = function jumlAdd() {\n throw new Error('Not supported on Montgomery curve');\n};\n\nPoint.prototype.eq = function eq(other) {\n return this.getX().cmp(other.getX()) === 0;\n};\n\nPoint.prototype.normalize = function normalize() {\n this.x = this.x.redMul(this.z.redInvm());\n this.z = this.curve.one;\n return this;\n};\n\nPoint.prototype.getX = function getX() {\n // Normalize coordinates\n this.normalize();\n\n return this.x.fromRed();\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar BN = require('bn.js');\nvar inherits = require('inherits');\nvar Base = require('./base');\n\nvar assert = utils.assert;\n\nfunction ShortCurve(conf) {\n Base.call(this, 'short', conf);\n\n this.a = new BN(conf.a, 16).toRed(this.red);\n this.b = new BN(conf.b, 16).toRed(this.red);\n this.tinv = this.two.redInvm();\n\n this.zeroA = this.a.fromRed().cmpn(0) === 0;\n this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;\n\n // If the curve is endomorphic, precalculate beta and lambda\n this.endo = this._getEndomorphism(conf);\n this._endoWnafT1 = new Array(4);\n this._endoWnafT2 = new Array(4);\n}\ninherits(ShortCurve, Base);\nmodule.exports = ShortCurve;\n\nShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {\n // No efficient endomorphism\n if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)\n return;\n\n // Compute beta and lambda, that lambda * P = (beta * Px; Py)\n var beta;\n var lambda;\n if (conf.beta) {\n beta = new BN(conf.beta, 16).toRed(this.red);\n } else {\n var betas = this._getEndoRoots(this.p);\n // Choose the smallest beta\n beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];\n beta = beta.toRed(this.red);\n }\n if (conf.lambda) {\n lambda = new BN(conf.lambda, 16);\n } else {\n // Choose the lambda that is matching selected beta\n var lambdas = this._getEndoRoots(this.n);\n if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {\n lambda = lambdas[0];\n } else {\n lambda = lambdas[1];\n assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);\n }\n }\n\n // Get basis vectors, used for balanced length-two representation\n var basis;\n if (conf.basis) {\n basis = conf.basis.map(function(vec) {\n return {\n a: new BN(vec.a, 16),\n b: new BN(vec.b, 16),\n };\n });\n } else {\n basis = this._getEndoBasis(lambda);\n }\n\n return {\n beta: beta,\n lambda: lambda,\n basis: basis,\n };\n};\n\nShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {\n // Find roots of for x^2 + x + 1 in F\n // Root = (-1 +- Sqrt(-3)) / 2\n //\n var red = num === this.p ? this.red : BN.mont(num);\n var tinv = new BN(2).toRed(red).redInvm();\n var ntinv = tinv.redNeg();\n\n var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);\n\n var l1 = ntinv.redAdd(s).fromRed();\n var l2 = ntinv.redSub(s).fromRed();\n return [ l1, l2 ];\n};\n\nShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {\n // aprxSqrt >= sqrt(this.n)\n var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));\n\n // 3.74\n // Run EGCD, until r(L + 1) < aprxSqrt\n var u = lambda;\n var v = this.n.clone();\n var x1 = new BN(1);\n var y1 = new BN(0);\n var x2 = new BN(0);\n var y2 = new BN(1);\n\n // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)\n var a0;\n var b0;\n // First vector\n var a1;\n var b1;\n // Second vector\n var a2;\n var b2;\n\n var prevR;\n var i = 0;\n var r;\n var x;\n while (u.cmpn(0) !== 0) {\n var q = v.div(u);\n r = v.sub(q.mul(u));\n x = x2.sub(q.mul(x1));\n var y = y2.sub(q.mul(y1));\n\n if (!a1 && r.cmp(aprxSqrt) < 0) {\n a0 = prevR.neg();\n b0 = x1;\n a1 = r.neg();\n b1 = x;\n } else if (a1 && ++i === 2) {\n break;\n }\n prevR = r;\n\n v = u;\n u = r;\n x2 = x1;\n x1 = x;\n y2 = y1;\n y1 = y;\n }\n a2 = r.neg();\n b2 = x;\n\n var len1 = a1.sqr().add(b1.sqr());\n var len2 = a2.sqr().add(b2.sqr());\n if (len2.cmp(len1) >= 0) {\n a2 = a0;\n b2 = b0;\n }\n\n // Normalize signs\n if (a1.negative) {\n a1 = a1.neg();\n b1 = b1.neg();\n }\n if (a2.negative) {\n a2 = a2.neg();\n b2 = b2.neg();\n }\n\n return [\n { a: a1, b: b1 },\n { a: a2, b: b2 },\n ];\n};\n\nShortCurve.prototype._endoSplit = function _endoSplit(k) {\n var basis = this.endo.basis;\n var v1 = basis[0];\n var v2 = basis[1];\n\n var c1 = v2.b.mul(k).divRound(this.n);\n var c2 = v1.b.neg().mul(k).divRound(this.n);\n\n var p1 = c1.mul(v1.a);\n var p2 = c2.mul(v2.a);\n var q1 = c1.mul(v1.b);\n var q2 = c2.mul(v2.b);\n\n // Calculate answer\n var k1 = k.sub(p1).sub(p2);\n var k2 = q1.add(q2).neg();\n return { k1: k1, k2: k2 };\n};\n\nShortCurve.prototype.pointFromX = function pointFromX(x, odd) {\n x = new BN(x, 16);\n if (!x.red)\n x = x.toRed(this.red);\n\n var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);\n var y = y2.redSqrt();\n if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)\n throw new Error('invalid point');\n\n // XXX Is there any way to tell if the number is odd without converting it\n // to non-red form?\n var isOdd = y.fromRed().isOdd();\n if (odd && !isOdd || !odd && isOdd)\n y = y.redNeg();\n\n return this.point(x, y);\n};\n\nShortCurve.prototype.validate = function validate(point) {\n if (point.inf)\n return true;\n\n var x = point.x;\n var y = point.y;\n\n var ax = this.a.redMul(x);\n var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);\n return y.redSqr().redISub(rhs).cmpn(0) === 0;\n};\n\nShortCurve.prototype._endoWnafMulAdd =\n function _endoWnafMulAdd(points, coeffs, jacobianResult) {\n var npoints = this._endoWnafT1;\n var ncoeffs = this._endoWnafT2;\n for (var i = 0; i < points.length; i++) {\n var split = this._endoSplit(coeffs[i]);\n var p = points[i];\n var beta = p._getBeta();\n\n if (split.k1.negative) {\n split.k1.ineg();\n p = p.neg(true);\n }\n if (split.k2.negative) {\n split.k2.ineg();\n beta = beta.neg(true);\n }\n\n npoints[i * 2] = p;\n npoints[i * 2 + 1] = beta;\n ncoeffs[i * 2] = split.k1;\n ncoeffs[i * 2 + 1] = split.k2;\n }\n var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);\n\n // Clean-up references to points and coefficients\n for (var j = 0; j < i * 2; j++) {\n npoints[j] = null;\n ncoeffs[j] = null;\n }\n return res;\n };\n\nfunction Point(curve, x, y, isRed) {\n Base.BasePoint.call(this, curve, 'affine');\n if (x === null && y === null) {\n this.x = null;\n this.y = null;\n this.inf = true;\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n // Force redgomery representation when loading from JSON\n if (isRed) {\n this.x.forceRed(this.curve.red);\n this.y.forceRed(this.curve.red);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n this.inf = false;\n }\n}\ninherits(Point, Base.BasePoint);\n\nShortCurve.prototype.point = function point(x, y, isRed) {\n return new Point(this, x, y, isRed);\n};\n\nShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {\n return Point.fromJSON(this, obj, red);\n};\n\nPoint.prototype._getBeta = function _getBeta() {\n if (!this.curve.endo)\n return;\n\n var pre = this.precomputed;\n if (pre && pre.beta)\n return pre.beta;\n\n var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);\n if (pre) {\n var curve = this.curve;\n var endoMul = function(p) {\n return curve.point(p.x.redMul(curve.endo.beta), p.y);\n };\n pre.beta = beta;\n beta.precomputed = {\n beta: null,\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(endoMul),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(endoMul),\n },\n };\n }\n return beta;\n};\n\nPoint.prototype.toJSON = function toJSON() {\n if (!this.precomputed)\n return [ this.x, this.y ];\n\n return [ this.x, this.y, this.precomputed && {\n doubles: this.precomputed.doubles && {\n step: this.precomputed.doubles.step,\n points: this.precomputed.doubles.points.slice(1),\n },\n naf: this.precomputed.naf && {\n wnd: this.precomputed.naf.wnd,\n points: this.precomputed.naf.points.slice(1),\n },\n } ];\n};\n\nPoint.fromJSON = function fromJSON(curve, obj, red) {\n if (typeof obj === 'string')\n obj = JSON.parse(obj);\n var res = curve.point(obj[0], obj[1], red);\n if (!obj[2])\n return res;\n\n function obj2point(obj) {\n return curve.point(obj[0], obj[1], red);\n }\n\n var pre = obj[2];\n res.precomputed = {\n beta: null,\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: [ res ].concat(pre.doubles.points.map(obj2point)),\n },\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: [ res ].concat(pre.naf.points.map(obj2point)),\n },\n };\n return res;\n};\n\nPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nPoint.prototype.isInfinity = function isInfinity() {\n return this.inf;\n};\n\nPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.inf)\n return p;\n\n // P + O = P\n if (p.inf)\n return this;\n\n // P + P = 2P\n if (this.eq(p))\n return this.dbl();\n\n // P + (-P) = O\n if (this.neg().eq(p))\n return this.curve.point(null, null);\n\n // P + Q = O\n if (this.x.cmp(p.x) === 0)\n return this.curve.point(null, null);\n\n var c = this.y.redSub(p.y);\n if (c.cmpn(0) !== 0)\n c = c.redMul(this.x.redSub(p.x).redInvm());\n var nx = c.redSqr().redISub(this.x).redISub(p.x);\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.dbl = function dbl() {\n if (this.inf)\n return this;\n\n // 2P = O\n var ys1 = this.y.redAdd(this.y);\n if (ys1.cmpn(0) === 0)\n return this.curve.point(null, null);\n\n var a = this.curve.a;\n\n var x2 = this.x.redSqr();\n var dyinv = ys1.redInvm();\n var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);\n\n var nx = c.redSqr().redISub(this.x.redAdd(this.x));\n var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);\n return this.curve.point(nx, ny);\n};\n\nPoint.prototype.getX = function getX() {\n return this.x.fromRed();\n};\n\nPoint.prototype.getY = function getY() {\n return this.y.fromRed();\n};\n\nPoint.prototype.mul = function mul(k) {\n k = new BN(k, 16);\n if (this.isInfinity())\n return this;\n else if (this._hasDoubles(k))\n return this.curve._fixedNafMul(this, k);\n else if (this.curve.endo)\n return this.curve._endoWnafMulAdd([ this ], [ k ]);\n else\n return this.curve._wnafMul(this, k);\n};\n\nPoint.prototype.mulAdd = function mulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2);\n};\n\nPoint.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {\n var points = [ this, p2 ];\n var coeffs = [ k1, k2 ];\n if (this.curve.endo)\n return this.curve._endoWnafMulAdd(points, coeffs, true);\n else\n return this.curve._wnafMulAdd(1, points, coeffs, 2, true);\n};\n\nPoint.prototype.eq = function eq(p) {\n return this === p ||\n this.inf === p.inf &&\n (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);\n};\n\nPoint.prototype.neg = function neg(_precompute) {\n if (this.inf)\n return this;\n\n var res = this.curve.point(this.x, this.y.redNeg());\n if (_precompute && this.precomputed) {\n var pre = this.precomputed;\n var negate = function(p) {\n return p.neg();\n };\n res.precomputed = {\n naf: pre.naf && {\n wnd: pre.naf.wnd,\n points: pre.naf.points.map(negate),\n },\n doubles: pre.doubles && {\n step: pre.doubles.step,\n points: pre.doubles.points.map(negate),\n },\n };\n }\n return res;\n};\n\nPoint.prototype.toJ = function toJ() {\n if (this.inf)\n return this.curve.jpoint(null, null, null);\n\n var res = this.curve.jpoint(this.x, this.y, this.curve.one);\n return res;\n};\n\nfunction JPoint(curve, x, y, z) {\n Base.BasePoint.call(this, curve, 'jacobian');\n if (x === null && y === null && z === null) {\n this.x = this.curve.one;\n this.y = this.curve.one;\n this.z = new BN(0);\n } else {\n this.x = new BN(x, 16);\n this.y = new BN(y, 16);\n this.z = new BN(z, 16);\n }\n if (!this.x.red)\n this.x = this.x.toRed(this.curve.red);\n if (!this.y.red)\n this.y = this.y.toRed(this.curve.red);\n if (!this.z.red)\n this.z = this.z.toRed(this.curve.red);\n\n this.zOne = this.z === this.curve.one;\n}\ninherits(JPoint, Base.BasePoint);\n\nShortCurve.prototype.jpoint = function jpoint(x, y, z) {\n return new JPoint(this, x, y, z);\n};\n\nJPoint.prototype.toP = function toP() {\n if (this.isInfinity())\n return this.curve.point(null, null);\n\n var zinv = this.z.redInvm();\n var zinv2 = zinv.redSqr();\n var ax = this.x.redMul(zinv2);\n var ay = this.y.redMul(zinv2).redMul(zinv);\n\n return this.curve.point(ax, ay);\n};\n\nJPoint.prototype.neg = function neg() {\n return this.curve.jpoint(this.x, this.y.redNeg(), this.z);\n};\n\nJPoint.prototype.add = function add(p) {\n // O + P = P\n if (this.isInfinity())\n return p;\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 12M + 4S + 7A\n var pz2 = p.z.redSqr();\n var z2 = this.z.redSqr();\n var u1 = this.x.redMul(pz2);\n var u2 = p.x.redMul(z2);\n var s1 = this.y.redMul(pz2.redMul(p.z));\n var s2 = p.y.redMul(z2.redMul(this.z));\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(p.z).redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mixedAdd = function mixedAdd(p) {\n // O + P = P\n if (this.isInfinity())\n return p.toJ();\n\n // P + O = P\n if (p.isInfinity())\n return this;\n\n // 8M + 3S + 7A\n var z2 = this.z.redSqr();\n var u1 = this.x;\n var u2 = p.x.redMul(z2);\n var s1 = this.y;\n var s2 = p.y.redMul(z2).redMul(this.z);\n\n var h = u1.redSub(u2);\n var r = s1.redSub(s2);\n if (h.cmpn(0) === 0) {\n if (r.cmpn(0) !== 0)\n return this.curve.jpoint(null, null, null);\n else\n return this.dbl();\n }\n\n var h2 = h.redSqr();\n var h3 = h2.redMul(h);\n var v = u1.redMul(h2);\n\n var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);\n var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));\n var nz = this.z.redMul(h);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.dblp = function dblp(pow) {\n if (pow === 0)\n return this;\n if (this.isInfinity())\n return this;\n if (!pow)\n return this.dbl();\n\n var i;\n if (this.curve.zeroA || this.curve.threeA) {\n var r = this;\n for (i = 0; i < pow; i++)\n r = r.dbl();\n return r;\n }\n\n // 1M + 2S + 1A + N * (4S + 5M + 8A)\n // N = 1 => 6M + 6S + 9A\n var a = this.curve.a;\n var tinv = this.curve.tinv;\n\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n // Reuse results\n var jyd = jy.redAdd(jy);\n for (i = 0; i < pow; i++) {\n var jx2 = jx.redSqr();\n var jyd2 = jyd.redSqr();\n var jyd4 = jyd2.redSqr();\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var t1 = jx.redMul(jyd2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n var dny = c.redMul(t2);\n dny = dny.redIAdd(dny).redISub(jyd4);\n var nz = jyd.redMul(jz);\n if (i + 1 < pow)\n jz4 = jz4.redMul(jyd4);\n\n jx = nx;\n jz = nz;\n jyd = dny;\n }\n\n return this.curve.jpoint(jx, jyd.redMul(tinv), jz);\n};\n\nJPoint.prototype.dbl = function dbl() {\n if (this.isInfinity())\n return this;\n\n if (this.curve.zeroA)\n return this._zeroDbl();\n else if (this.curve.threeA)\n return this._threeDbl();\n else\n return this._dbl();\n};\n\nJPoint.prototype._zeroDbl = function _zeroDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 14A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // T = M ^ 2 - 2*S\n var t = m.redSqr().redISub(s).redISub(s);\n\n // 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2*Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html\n // #doubling-dbl-2009-l\n // 2M + 5S + 13A\n\n // A = X1^2\n var a = this.x.redSqr();\n // B = Y1^2\n var b = this.y.redSqr();\n // C = B^2\n var c = b.redSqr();\n // D = 2 * ((X1 + B)^2 - A - C)\n var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);\n d = d.redIAdd(d);\n // E = 3 * A\n var e = a.redAdd(a).redIAdd(a);\n // F = E^2\n var f = e.redSqr();\n\n // 8 * C\n var c8 = c.redIAdd(c);\n c8 = c8.redIAdd(c8);\n c8 = c8.redIAdd(c8);\n\n // X3 = F - 2 * D\n nx = f.redISub(d).redISub(d);\n // Y3 = E * (D - X3) - 8 * C\n ny = e.redMul(d.redISub(nx)).redISub(c8);\n // Z3 = 2 * Y1 * Z1\n nz = this.y.redMul(this.z);\n nz = nz.redIAdd(nz);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._threeDbl = function _threeDbl() {\n var nx;\n var ny;\n var nz;\n // Z = 1\n if (this.zOne) {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html\n // #doubling-mdbl-2007-bl\n // 1M + 5S + 15A\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // S = 2 * ((X1 + YY)^2 - XX - YYYY)\n var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n s = s.redIAdd(s);\n // M = 3 * XX + a\n var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);\n // T = M^2 - 2 * S\n var t = m.redSqr().redISub(s).redISub(s);\n // X3 = T\n nx = t;\n // Y3 = M * (S - T) - 8 * YYYY\n var yyyy8 = yyyy.redIAdd(yyyy);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n yyyy8 = yyyy8.redIAdd(yyyy8);\n ny = m.redMul(s.redISub(t)).redISub(yyyy8);\n // Z3 = 2 * Y1\n nz = this.y.redAdd(this.y);\n } else {\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b\n // 3M + 5S\n\n // delta = Z1^2\n var delta = this.z.redSqr();\n // gamma = Y1^2\n var gamma = this.y.redSqr();\n // beta = X1 * gamma\n var beta = this.x.redMul(gamma);\n // alpha = 3 * (X1 - delta) * (X1 + delta)\n var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));\n alpha = alpha.redAdd(alpha).redIAdd(alpha);\n // X3 = alpha^2 - 8 * beta\n var beta4 = beta.redIAdd(beta);\n beta4 = beta4.redIAdd(beta4);\n var beta8 = beta4.redAdd(beta4);\n nx = alpha.redSqr().redISub(beta8);\n // Z3 = (Y1 + Z1)^2 - gamma - delta\n nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);\n // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2\n var ggamma8 = gamma.redSqr();\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ggamma8 = ggamma8.redIAdd(ggamma8);\n ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);\n }\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype._dbl = function _dbl() {\n var a = this.curve.a;\n\n // 4M + 6S + 10A\n var jx = this.x;\n var jy = this.y;\n var jz = this.z;\n var jz4 = jz.redSqr().redSqr();\n\n var jx2 = jx.redSqr();\n var jy2 = jy.redSqr();\n\n var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));\n\n var jxd4 = jx.redAdd(jx);\n jxd4 = jxd4.redIAdd(jxd4);\n var t1 = jxd4.redMul(jy2);\n var nx = c.redSqr().redISub(t1.redAdd(t1));\n var t2 = t1.redISub(nx);\n\n var jyd8 = jy2.redSqr();\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n jyd8 = jyd8.redIAdd(jyd8);\n var ny = c.redMul(t2).redISub(jyd8);\n var nz = jy.redAdd(jy).redMul(jz);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.trpl = function trpl() {\n if (!this.curve.zeroA)\n return this.dbl().add(this);\n\n // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl\n // 5M + 10S + ...\n\n // XX = X1^2\n var xx = this.x.redSqr();\n // YY = Y1^2\n var yy = this.y.redSqr();\n // ZZ = Z1^2\n var zz = this.z.redSqr();\n // YYYY = YY^2\n var yyyy = yy.redSqr();\n // M = 3 * XX + a * ZZ2; a = 0\n var m = xx.redAdd(xx).redIAdd(xx);\n // MM = M^2\n var mm = m.redSqr();\n // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM\n var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);\n e = e.redIAdd(e);\n e = e.redAdd(e).redIAdd(e);\n e = e.redISub(mm);\n // EE = E^2\n var ee = e.redSqr();\n // T = 16*YYYY\n var t = yyyy.redIAdd(yyyy);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n t = t.redIAdd(t);\n // U = (M + E)^2 - MM - EE - T\n var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);\n // X3 = 4 * (X1 * EE - 4 * YY * U)\n var yyu4 = yy.redMul(u);\n yyu4 = yyu4.redIAdd(yyu4);\n yyu4 = yyu4.redIAdd(yyu4);\n var nx = this.x.redMul(ee).redISub(yyu4);\n nx = nx.redIAdd(nx);\n nx = nx.redIAdd(nx);\n // Y3 = 8 * Y1 * (U * (T - U) - E * EE)\n var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n ny = ny.redIAdd(ny);\n // Z3 = (Z1 + E)^2 - ZZ - EE\n var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);\n\n return this.curve.jpoint(nx, ny, nz);\n};\n\nJPoint.prototype.mul = function mul(k, kbase) {\n k = new BN(k, kbase);\n\n return this.curve._wnafMul(this, k);\n};\n\nJPoint.prototype.eq = function eq(p) {\n if (p.type === 'affine')\n return this.eq(p.toJ());\n\n if (this === p)\n return true;\n\n // x1 * z2^2 == x2 * z1^2\n var z2 = this.z.redSqr();\n var pz2 = p.z.redSqr();\n if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)\n return false;\n\n // y1 * z2^3 == y2 * z1^3\n var z3 = z2.redMul(this.z);\n var pz3 = pz2.redMul(p.z);\n return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;\n};\n\nJPoint.prototype.eqXToP = function eqXToP(x) {\n var zs = this.z.redSqr();\n var rx = x.toRed(this.curve.red).redMul(zs);\n if (this.x.cmp(rx) === 0)\n return true;\n\n var xc = x.clone();\n var t = this.curve.redN.redMul(zs);\n for (;;) {\n xc.iadd(this.curve.n);\n if (xc.cmp(this.curve.p) >= 0)\n return false;\n\n rx.redIAdd(t);\n if (this.x.cmp(rx) === 0)\n return true;\n }\n};\n\nJPoint.prototype.inspect = function inspect() {\n if (this.isInfinity())\n return '';\n return '';\n};\n\nJPoint.prototype.isInfinity = function isInfinity() {\n // XXX This code assumes that zero is always zero in red\n return this.z.cmpn(0) === 0;\n};\n","'use strict';\n\nvar curves = exports;\n\nvar hash = require('hash.js');\nvar curve = require('./curve');\nvar utils = require('./utils');\n\nvar assert = utils.assert;\n\nfunction PresetCurve(options) {\n if (options.type === 'short')\n this.curve = new curve.short(options);\n else if (options.type === 'edwards')\n this.curve = new curve.edwards(options);\n else\n this.curve = new curve.mont(options);\n this.g = this.curve.g;\n this.n = this.curve.n;\n this.hash = options.hash;\n\n assert(this.g.validate(), 'Invalid curve');\n assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');\n}\ncurves.PresetCurve = PresetCurve;\n\nfunction defineCurve(name, options) {\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n get: function() {\n var curve = new PresetCurve(options);\n Object.defineProperty(curves, name, {\n configurable: true,\n enumerable: true,\n value: curve,\n });\n return curve;\n },\n });\n}\n\ndefineCurve('p192', {\n type: 'short',\n prime: 'p192',\n p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',\n b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',\n n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',\n hash: hash.sha256,\n gRed: false,\n g: [\n '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',\n '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',\n ],\n});\n\ndefineCurve('p224', {\n type: 'short',\n prime: 'p224',\n p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',\n a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',\n b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',\n n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',\n hash: hash.sha256,\n gRed: false,\n g: [\n 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',\n 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',\n ],\n});\n\ndefineCurve('p256', {\n type: 'short',\n prime: null,\n p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',\n a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',\n b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',\n n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',\n hash: hash.sha256,\n gRed: false,\n g: [\n '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',\n '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',\n ],\n});\n\ndefineCurve('p384', {\n type: 'short',\n prime: null,\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 ffffffff',\n a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'fffffffe ffffffff 00000000 00000000 fffffffc',\n b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +\n '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',\n n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +\n 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',\n hash: hash.sha384,\n gRed: false,\n g: [\n 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +\n '5502f25d bf55296c 3a545e38 72760ab7',\n '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +\n '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',\n ],\n});\n\ndefineCurve('p521', {\n type: 'short',\n prime: null,\n p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff',\n a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff ffffffff ffffffff fffffffc',\n b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +\n '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +\n '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',\n n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +\n 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +\n 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',\n hash: hash.sha512,\n gRed: false,\n g: [\n '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +\n '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +\n 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',\n '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +\n '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +\n '3fad0761 353c7086 a272c240 88be9476 9fd16650',\n ],\n});\n\ndefineCurve('curve25519', {\n type: 'mont',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '76d06',\n b: '1',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '9',\n ],\n});\n\ndefineCurve('ed25519', {\n type: 'edwards',\n prime: 'p25519',\n p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',\n a: '-1',\n c: '1',\n // -121665 * (121666^(-1)) (mod P)\n d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',\n n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',\n hash: hash.sha256,\n gRed: false,\n g: [\n '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',\n\n // 4/5\n '6666666666666666666666666666666666666666666666666666666666666658',\n ],\n});\n\nvar pre;\ntry {\n pre = require('./precomputed/secp256k1');\n} catch (e) {\n pre = undefined;\n}\n\ndefineCurve('secp256k1', {\n type: 'short',\n prime: 'k256',\n p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',\n a: '0',\n b: '7',\n n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',\n h: '1',\n hash: hash.sha256,\n\n // Precomputed endomorphism\n beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',\n lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',\n basis: [\n {\n a: '3086d221a7d46bcde86c90e49284eb15',\n b: '-e4437ed6010e88286f547fa90abfe4c3',\n },\n {\n a: '114ca50f7a8e2f3f657c1108d9d44cfd8',\n b: '3086d221a7d46bcde86c90e49284eb15',\n },\n ],\n\n gRed: false,\n g: [\n '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',\n '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',\n pre,\n ],\n});\n","'use strict';\n\nvar BN = require('bn.js');\nvar HmacDRBG = require('hmac-drbg');\nvar utils = require('../utils');\nvar curves = require('../curves');\nvar rand = require('brorand');\nvar assert = utils.assert;\n\nvar KeyPair = require('./key');\nvar Signature = require('./signature');\n\nfunction EC(options) {\n if (!(this instanceof EC))\n return new EC(options);\n\n // Shortcut `elliptic.ec(curve-name)`\n if (typeof options === 'string') {\n assert(Object.prototype.hasOwnProperty.call(curves, options),\n 'Unknown curve ' + options);\n\n options = curves[options];\n }\n\n // Shortcut for `elliptic.ec(elliptic.curves.curveName)`\n if (options instanceof curves.PresetCurve)\n options = { curve: options };\n\n this.curve = options.curve.curve;\n this.n = this.curve.n;\n this.nh = this.n.ushrn(1);\n this.g = this.curve.g;\n\n // Point on curve\n this.g = options.curve.g;\n this.g.precompute(options.curve.n.bitLength() + 1);\n\n // Hash for function for DRBG\n this.hash = options.hash || options.curve.hash;\n}\nmodule.exports = EC;\n\nEC.prototype.keyPair = function keyPair(options) {\n return new KeyPair(this, options);\n};\n\nEC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {\n return KeyPair.fromPrivate(this, priv, enc);\n};\n\nEC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {\n return KeyPair.fromPublic(this, pub, enc);\n};\n\nEC.prototype.genKeyPair = function genKeyPair(options) {\n if (!options)\n options = {};\n\n // Instantiate Hmac_DRBG\n var drbg = new HmacDRBG({\n hash: this.hash,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n entropy: options.entropy || rand(this.hash.hmacStrength),\n entropyEnc: options.entropy && options.entropyEnc || 'utf8',\n nonce: this.n.toArray(),\n });\n\n var bytes = this.n.byteLength();\n var ns2 = this.n.sub(new BN(2));\n for (;;) {\n var priv = new BN(drbg.generate(bytes));\n if (priv.cmp(ns2) > 0)\n continue;\n\n priv.iaddn(1);\n return this.keyFromPrivate(priv);\n }\n};\n\nEC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {\n var delta = msg.byteLength() * 8 - this.n.bitLength();\n if (delta > 0)\n msg = msg.ushrn(delta);\n if (!truncOnly && msg.cmp(this.n) >= 0)\n return msg.sub(this.n);\n else\n return msg;\n};\n\nEC.prototype.sign = function sign(msg, key, enc, options) {\n if (typeof enc === 'object') {\n options = enc;\n enc = null;\n }\n if (!options)\n options = {};\n\n key = this.keyFromPrivate(key, enc);\n msg = this._truncateToN(new BN(msg, 16));\n\n // Zero-extend key to provide enough entropy\n var bytes = this.n.byteLength();\n var bkey = key.getPrivate().toArray('be', bytes);\n\n // Zero-extend nonce to have the same byte size as N\n var nonce = msg.toArray('be', bytes);\n\n // Instantiate Hmac_DRBG\n var drbg = new HmacDRBG({\n hash: this.hash,\n entropy: bkey,\n nonce: nonce,\n pers: options.pers,\n persEnc: options.persEnc || 'utf8',\n });\n\n // Number of bytes to generate\n var ns1 = this.n.sub(new BN(1));\n\n for (var iter = 0; ; iter++) {\n var k = options.k ?\n options.k(iter) :\n new BN(drbg.generate(this.n.byteLength()));\n k = this._truncateToN(k, true);\n if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)\n continue;\n\n var kp = this.g.mul(k);\n if (kp.isInfinity())\n continue;\n\n var kpX = kp.getX();\n var r = kpX.umod(this.n);\n if (r.cmpn(0) === 0)\n continue;\n\n var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));\n s = s.umod(this.n);\n if (s.cmpn(0) === 0)\n continue;\n\n var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |\n (kpX.cmp(r) !== 0 ? 2 : 0);\n\n // Use complement of `s`, if it is > `n / 2`\n if (options.canonical && s.cmp(this.nh) > 0) {\n s = this.n.sub(s);\n recoveryParam ^= 1;\n }\n\n return new Signature({ r: r, s: s, recoveryParam: recoveryParam });\n }\n};\n\nEC.prototype.verify = function verify(msg, signature, key, enc) {\n msg = this._truncateToN(new BN(msg, 16));\n key = this.keyFromPublic(key, enc);\n signature = new Signature(signature, 'hex');\n\n // Perform primitive values validation\n var r = signature.r;\n var s = signature.s;\n if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)\n return false;\n if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)\n return false;\n\n // Validate signature\n var sinv = s.invm(this.n);\n var u1 = sinv.mul(msg).umod(this.n);\n var u2 = sinv.mul(r).umod(this.n);\n var p;\n\n if (!this.curve._maxwellTrick) {\n p = this.g.mulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n return p.getX().umod(this.n).cmp(r) === 0;\n }\n\n // NOTE: Greg Maxwell's trick, inspired by:\n // https://git.io/vad3K\n\n p = this.g.jmulAdd(u1, key.getPublic(), u2);\n if (p.isInfinity())\n return false;\n\n // Compare `p.x` of Jacobian point with `r`,\n // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the\n // inverse of `p.z^2`\n return p.eqXToP(r);\n};\n\nEC.prototype.recoverPubKey = function(msg, signature, j, enc) {\n assert((3 & j) === j, 'The recovery param is more than two bits');\n signature = new Signature(signature, enc);\n\n var n = this.n;\n var e = new BN(msg);\n var r = signature.r;\n var s = signature.s;\n\n // A set LSB signifies that the y-coordinate is odd\n var isYOdd = j & 1;\n var isSecondKey = j >> 1;\n if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)\n throw new Error('Unable to find sencond key candinate');\n\n // 1.1. Let x = r + jn.\n if (isSecondKey)\n r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);\n else\n r = this.curve.pointFromX(r, isYOdd);\n\n var rInv = signature.r.invm(n);\n var s1 = n.sub(e).mul(rInv).umod(n);\n var s2 = s.mul(rInv).umod(n);\n\n // 1.6.1 Compute Q = r^-1 (sR - eG)\n // Q = r^-1 (sR + -eG)\n return this.g.mulAdd(s1, r, s2);\n};\n\nEC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {\n signature = new Signature(signature, enc);\n if (signature.recoveryParam !== null)\n return signature.recoveryParam;\n\n for (var i = 0; i < 4; i++) {\n var Qprime;\n try {\n Qprime = this.recoverPubKey(e, signature, i);\n } catch (e) {\n continue;\n }\n\n if (Qprime.eq(Q))\n return i;\n }\n throw new Error('Unable to find valid recovery factor');\n};\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction KeyPair(ec, options) {\n this.ec = ec;\n this.priv = null;\n this.pub = null;\n\n // KeyPair(ec, { priv: ..., pub: ... })\n if (options.priv)\n this._importPrivate(options.priv, options.privEnc);\n if (options.pub)\n this._importPublic(options.pub, options.pubEnc);\n}\nmodule.exports = KeyPair;\n\nKeyPair.fromPublic = function fromPublic(ec, pub, enc) {\n if (pub instanceof KeyPair)\n return pub;\n\n return new KeyPair(ec, {\n pub: pub,\n pubEnc: enc,\n });\n};\n\nKeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {\n if (priv instanceof KeyPair)\n return priv;\n\n return new KeyPair(ec, {\n priv: priv,\n privEnc: enc,\n });\n};\n\nKeyPair.prototype.validate = function validate() {\n var pub = this.getPublic();\n\n if (pub.isInfinity())\n return { result: false, reason: 'Invalid public key' };\n if (!pub.validate())\n return { result: false, reason: 'Public key is not a point' };\n if (!pub.mul(this.ec.curve.n).isInfinity())\n return { result: false, reason: 'Public key * N != O' };\n\n return { result: true, reason: null };\n};\n\nKeyPair.prototype.getPublic = function getPublic(compact, enc) {\n // compact is optional argument\n if (typeof compact === 'string') {\n enc = compact;\n compact = null;\n }\n\n if (!this.pub)\n this.pub = this.ec.g.mul(this.priv);\n\n if (!enc)\n return this.pub;\n\n return this.pub.encode(enc, compact);\n};\n\nKeyPair.prototype.getPrivate = function getPrivate(enc) {\n if (enc === 'hex')\n return this.priv.toString(16, 2);\n else\n return this.priv;\n};\n\nKeyPair.prototype._importPrivate = function _importPrivate(key, enc) {\n this.priv = new BN(key, enc || 16);\n\n // Ensure that the priv won't be bigger than n, otherwise we may fail\n // in fixed multiplication method\n this.priv = this.priv.umod(this.ec.curve.n);\n};\n\nKeyPair.prototype._importPublic = function _importPublic(key, enc) {\n if (key.x || key.y) {\n // Montgomery points only have an `x` coordinate.\n // Weierstrass/Edwards points on the other hand have both `x` and\n // `y` coordinates.\n if (this.ec.curve.type === 'mont') {\n assert(key.x, 'Need x coordinate');\n } else if (this.ec.curve.type === 'short' ||\n this.ec.curve.type === 'edwards') {\n assert(key.x && key.y, 'Need both x and y coordinate');\n }\n this.pub = this.ec.curve.point(key.x, key.y);\n return;\n }\n this.pub = this.ec.curve.decodePoint(key, enc);\n};\n\n// ECDH\nKeyPair.prototype.derive = function derive(pub) {\n if(!pub.validate()) {\n assert(pub.validate(), 'public point not validated');\n }\n return pub.mul(this.priv).getX();\n};\n\n// ECDSA\nKeyPair.prototype.sign = function sign(msg, enc, options) {\n return this.ec.sign(msg, this, enc, options);\n};\n\nKeyPair.prototype.verify = function verify(msg, signature) {\n return this.ec.verify(msg, signature, this);\n};\n\nKeyPair.prototype.inspect = function inspect() {\n return '';\n};\n","'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction Signature(options, enc) {\n if (options instanceof Signature)\n return options;\n\n if (this._importDER(options, enc))\n return;\n\n assert(options.r && options.s, 'Signature without r or s');\n this.r = new BN(options.r, 16);\n this.s = new BN(options.s, 16);\n if (options.recoveryParam === undefined)\n this.recoveryParam = null;\n else\n this.recoveryParam = options.recoveryParam;\n}\nmodule.exports = Signature;\n\nfunction Position() {\n this.place = 0;\n}\n\nfunction getLength(buf, p) {\n var initial = buf[p.place++];\n if (!(initial & 0x80)) {\n return initial;\n }\n var octetLen = initial & 0xf;\n\n // Indefinite length or overflow\n if (octetLen === 0 || octetLen > 4) {\n return false;\n }\n\n var val = 0;\n for (var i = 0, off = p.place; i < octetLen; i++, off++) {\n val <<= 8;\n val |= buf[off];\n val >>>= 0;\n }\n\n // Leading zeroes\n if (val <= 0x7f) {\n return false;\n }\n\n p.place = off;\n return val;\n}\n\nfunction rmPadding(buf) {\n var i = 0;\n var len = buf.length - 1;\n while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\n i++;\n }\n if (i === 0) {\n return buf;\n }\n return buf.slice(i);\n}\n\nSignature.prototype._importDER = function _importDER(data, enc) {\n data = utils.toArray(data, enc);\n var p = new Position();\n if (data[p.place++] !== 0x30) {\n return false;\n }\n var len = getLength(data, p);\n if (len === false) {\n return false;\n }\n if ((len + p.place) !== data.length) {\n return false;\n }\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var rlen = getLength(data, p);\n if (rlen === false) {\n return false;\n }\n var r = data.slice(p.place, rlen + p.place);\n p.place += rlen;\n if (data[p.place++] !== 0x02) {\n return false;\n }\n var slen = getLength(data, p);\n if (slen === false) {\n return false;\n }\n if (data.length !== slen + p.place) {\n return false;\n }\n var s = data.slice(p.place, slen + p.place);\n if (r[0] === 0) {\n if (r[1] & 0x80) {\n r = r.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n if (s[0] === 0) {\n if (s[1] & 0x80) {\n s = s.slice(1);\n } else {\n // Leading zeroes\n return false;\n }\n }\n\n this.r = new BN(r);\n this.s = new BN(s);\n this.recoveryParam = null;\n\n return true;\n};\n\nfunction constructLength(arr, len) {\n if (len < 0x80) {\n arr.push(len);\n return;\n }\n var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\n arr.push(octets | 0x80);\n while (--octets) {\n arr.push((len >>> (octets << 3)) & 0xff);\n }\n arr.push(len);\n}\n\nSignature.prototype.toDER = function toDER(enc) {\n var r = this.r.toArray();\n var s = this.s.toArray();\n\n // Pad values\n if (r[0] & 0x80)\n r = [ 0 ].concat(r);\n // Pad values\n if (s[0] & 0x80)\n s = [ 0 ].concat(s);\n\n r = rmPadding(r);\n s = rmPadding(s);\n\n while (!s[0] && !(s[1] & 0x80)) {\n s = s.slice(1);\n }\n var arr = [ 0x02 ];\n constructLength(arr, r.length);\n arr = arr.concat(r);\n arr.push(0x02);\n constructLength(arr, s.length);\n var backHalf = arr.concat(s);\n var res = [ 0x30 ];\n constructLength(res, backHalf.length);\n res = res.concat(backHalf);\n return utils.encode(res, enc);\n};\n","'use strict';\n\nvar hash = require('hash.js');\nvar curves = require('../curves');\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar KeyPair = require('./key');\nvar Signature = require('./signature');\n\nfunction EDDSA(curve) {\n assert(curve === 'ed25519', 'only tested with ed25519 so far');\n\n if (!(this instanceof EDDSA))\n return new EDDSA(curve);\n\n curve = curves[curve].curve;\n this.curve = curve;\n this.g = curve.g;\n this.g.precompute(curve.n.bitLength() + 1);\n\n this.pointClass = curve.point().constructor;\n this.encodingLength = Math.ceil(curve.n.bitLength() / 8);\n this.hash = hash.sha512;\n}\n\nmodule.exports = EDDSA;\n\n/**\n* @param {Array|String} message - message bytes\n* @param {Array|String|KeyPair} secret - secret bytes or a keypair\n* @returns {Signature} - signature\n*/\nEDDSA.prototype.sign = function sign(message, secret) {\n message = parseBytes(message);\n var key = this.keyFromSecret(secret);\n var r = this.hashInt(key.messagePrefix(), message);\n var R = this.g.mul(r);\n var Rencoded = this.encodePoint(R);\n var s_ = this.hashInt(Rencoded, key.pubBytes(), message)\n .mul(key.priv());\n var S = r.add(s_).umod(this.curve.n);\n return this.makeSignature({ R: R, S: S, Rencoded: Rencoded });\n};\n\n/**\n* @param {Array} message - message bytes\n* @param {Array|String|Signature} sig - sig bytes\n* @param {Array|String|Point|KeyPair} pub - public key\n* @returns {Boolean} - true if public key matches sig of message\n*/\nEDDSA.prototype.verify = function verify(message, sig, pub) {\n message = parseBytes(message);\n sig = this.makeSignature(sig);\n var key = this.keyFromPublic(pub);\n var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);\n var SG = this.g.mul(sig.S());\n var RplusAh = sig.R().add(key.pub().mul(h));\n return RplusAh.eq(SG);\n};\n\nEDDSA.prototype.hashInt = function hashInt() {\n var hash = this.hash();\n for (var i = 0; i < arguments.length; i++)\n hash.update(arguments[i]);\n return utils.intFromLE(hash.digest()).umod(this.curve.n);\n};\n\nEDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {\n return KeyPair.fromPublic(this, pub);\n};\n\nEDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {\n return KeyPair.fromSecret(this, secret);\n};\n\nEDDSA.prototype.makeSignature = function makeSignature(sig) {\n if (sig instanceof Signature)\n return sig;\n return new Signature(this, sig);\n};\n\n/**\n* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2\n*\n* EDDSA defines methods for encoding and decoding points and integers. These are\n* helper convenience methods, that pass along to utility functions implied\n* parameters.\n*\n*/\nEDDSA.prototype.encodePoint = function encodePoint(point) {\n var enc = point.getY().toArray('le', this.encodingLength);\n enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;\n return enc;\n};\n\nEDDSA.prototype.decodePoint = function decodePoint(bytes) {\n bytes = utils.parseBytes(bytes);\n\n var lastIx = bytes.length - 1;\n var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);\n var xIsOdd = (bytes[lastIx] & 0x80) !== 0;\n\n var y = utils.intFromLE(normed);\n return this.curve.pointFromY(y, xIsOdd);\n};\n\nEDDSA.prototype.encodeInt = function encodeInt(num) {\n return num.toArray('le', this.encodingLength);\n};\n\nEDDSA.prototype.decodeInt = function decodeInt(bytes) {\n return utils.intFromLE(bytes);\n};\n\nEDDSA.prototype.isPoint = function isPoint(val) {\n return val instanceof this.pointClass;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar parseBytes = utils.parseBytes;\nvar cachedProperty = utils.cachedProperty;\n\n/**\n* @param {EDDSA} eddsa - instance\n* @param {Object} params - public/private key parameters\n*\n* @param {Array} [params.secret] - secret seed bytes\n* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)\n* @param {Array} [params.pub] - public key point encoded as bytes\n*\n*/\nfunction KeyPair(eddsa, params) {\n this.eddsa = eddsa;\n this._secret = parseBytes(params.secret);\n if (eddsa.isPoint(params.pub))\n this._pub = params.pub;\n else\n this._pubBytes = parseBytes(params.pub);\n}\n\nKeyPair.fromPublic = function fromPublic(eddsa, pub) {\n if (pub instanceof KeyPair)\n return pub;\n return new KeyPair(eddsa, { pub: pub });\n};\n\nKeyPair.fromSecret = function fromSecret(eddsa, secret) {\n if (secret instanceof KeyPair)\n return secret;\n return new KeyPair(eddsa, { secret: secret });\n};\n\nKeyPair.prototype.secret = function secret() {\n return this._secret;\n};\n\ncachedProperty(KeyPair, 'pubBytes', function pubBytes() {\n return this.eddsa.encodePoint(this.pub());\n});\n\ncachedProperty(KeyPair, 'pub', function pub() {\n if (this._pubBytes)\n return this.eddsa.decodePoint(this._pubBytes);\n return this.eddsa.g.mul(this.priv());\n});\n\ncachedProperty(KeyPair, 'privBytes', function privBytes() {\n var eddsa = this.eddsa;\n var hash = this.hash();\n var lastIx = eddsa.encodingLength - 1;\n\n var a = hash.slice(0, eddsa.encodingLength);\n a[0] &= 248;\n a[lastIx] &= 127;\n a[lastIx] |= 64;\n\n return a;\n});\n\ncachedProperty(KeyPair, 'priv', function priv() {\n return this.eddsa.decodeInt(this.privBytes());\n});\n\ncachedProperty(KeyPair, 'hash', function hash() {\n return this.eddsa.hash().update(this.secret()).digest();\n});\n\ncachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {\n return this.hash().slice(this.eddsa.encodingLength);\n});\n\nKeyPair.prototype.sign = function sign(message) {\n assert(this._secret, 'KeyPair can only verify');\n return this.eddsa.sign(message, this);\n};\n\nKeyPair.prototype.verify = function verify(message, sig) {\n return this.eddsa.verify(message, sig, this);\n};\n\nKeyPair.prototype.getSecret = function getSecret(enc) {\n assert(this._secret, 'KeyPair is public only');\n return utils.encode(this.secret(), enc);\n};\n\nKeyPair.prototype.getPublic = function getPublic(enc) {\n return utils.encode(this.pubBytes(), enc);\n};\n\nmodule.exports = KeyPair;\n","'use strict';\n\nvar BN = require('bn.js');\nvar utils = require('../utils');\nvar assert = utils.assert;\nvar cachedProperty = utils.cachedProperty;\nvar parseBytes = utils.parseBytes;\n\n/**\n* @param {EDDSA} eddsa - eddsa instance\n* @param {Array|Object} sig -\n* @param {Array|Point} [sig.R] - R point as Point or bytes\n* @param {Array|bn} [sig.S] - S scalar as bn or bytes\n* @param {Array} [sig.Rencoded] - R point encoded\n* @param {Array} [sig.Sencoded] - S scalar encoded\n*/\nfunction Signature(eddsa, sig) {\n this.eddsa = eddsa;\n\n if (typeof sig !== 'object')\n sig = parseBytes(sig);\n\n if (Array.isArray(sig)) {\n sig = {\n R: sig.slice(0, eddsa.encodingLength),\n S: sig.slice(eddsa.encodingLength),\n };\n }\n\n assert(sig.R && sig.S, 'Signature without R or S');\n\n if (eddsa.isPoint(sig.R))\n this._R = sig.R;\n if (sig.S instanceof BN)\n this._S = sig.S;\n\n this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;\n this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;\n}\n\ncachedProperty(Signature, 'S', function S() {\n return this.eddsa.decodeInt(this.Sencoded());\n});\n\ncachedProperty(Signature, 'R', function R() {\n return this.eddsa.decodePoint(this.Rencoded());\n});\n\ncachedProperty(Signature, 'Rencoded', function Rencoded() {\n return this.eddsa.encodePoint(this.R());\n});\n\ncachedProperty(Signature, 'Sencoded', function Sencoded() {\n return this.eddsa.encodeInt(this.S());\n});\n\nSignature.prototype.toBytes = function toBytes() {\n return this.Rencoded().concat(this.Sencoded());\n};\n\nSignature.prototype.toHex = function toHex() {\n return utils.encode(this.toBytes(), 'hex').toUpperCase();\n};\n\nmodule.exports = Signature;\n","module.exports = {\n doubles: {\n step: 4,\n points: [\n [\n 'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a',\n 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821',\n ],\n [\n '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508',\n '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf',\n ],\n [\n '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739',\n 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695',\n ],\n [\n '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640',\n '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9',\n ],\n [\n '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c',\n '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36',\n ],\n [\n '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda',\n '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f',\n ],\n [\n 'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa',\n '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999',\n ],\n [\n '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0',\n 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09',\n ],\n [\n 'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d',\n '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d',\n ],\n [\n 'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d',\n 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088',\n ],\n [\n 'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1',\n '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d',\n ],\n [\n '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0',\n '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8',\n ],\n [\n '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047',\n '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a',\n ],\n [\n '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862',\n '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453',\n ],\n [\n '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7',\n '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160',\n ],\n [\n '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd',\n '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0',\n ],\n [\n '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83',\n '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6',\n ],\n [\n '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a',\n '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589',\n ],\n [\n '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8',\n 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17',\n ],\n [\n 'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d',\n '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda',\n ],\n [\n 'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725',\n '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd',\n ],\n [\n '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754',\n '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2',\n ],\n [\n '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c',\n '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6',\n ],\n [\n 'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6',\n '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f',\n ],\n [\n '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39',\n 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01',\n ],\n [\n 'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891',\n '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3',\n ],\n [\n 'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b',\n 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f',\n ],\n [\n 'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03',\n '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7',\n ],\n [\n 'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d',\n 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78',\n ],\n [\n 'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070',\n '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1',\n ],\n [\n '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4',\n 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150',\n ],\n [\n '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da',\n '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82',\n ],\n [\n 'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11',\n '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc',\n ],\n [\n '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e',\n 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b',\n ],\n [\n 'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41',\n '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51',\n ],\n [\n 'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef',\n '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45',\n ],\n [\n 'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8',\n 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120',\n ],\n [\n '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d',\n '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84',\n ],\n [\n '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96',\n '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d',\n ],\n [\n '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd',\n 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d',\n ],\n [\n '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5',\n '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8',\n ],\n [\n 'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266',\n '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8',\n ],\n [\n '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71',\n '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac',\n ],\n [\n '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac',\n 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f',\n ],\n [\n '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751',\n '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962',\n ],\n [\n 'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e',\n '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907',\n ],\n [\n '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241',\n 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec',\n ],\n [\n 'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3',\n 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d',\n ],\n [\n 'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f',\n '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414',\n ],\n [\n '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19',\n 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd',\n ],\n [\n '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be',\n 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0',\n ],\n [\n 'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9',\n '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811',\n ],\n [\n 'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2',\n '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1',\n ],\n [\n 'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13',\n '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c',\n ],\n [\n '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c',\n 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73',\n ],\n [\n '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba',\n '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd',\n ],\n [\n 'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151',\n 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405',\n ],\n [\n '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073',\n 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589',\n ],\n [\n '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458',\n '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e',\n ],\n [\n '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b',\n '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27',\n ],\n [\n 'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366',\n 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1',\n ],\n [\n '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa',\n '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482',\n ],\n [\n '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0',\n '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945',\n ],\n [\n 'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787',\n '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573',\n ],\n [\n 'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e',\n 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82',\n ],\n ],\n },\n naf: {\n wnd: 7,\n points: [\n [\n 'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9',\n '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672',\n ],\n [\n '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4',\n 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6',\n ],\n [\n '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc',\n '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da',\n ],\n [\n 'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe',\n 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37',\n ],\n [\n '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb',\n 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b',\n ],\n [\n 'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8',\n 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81',\n ],\n [\n 'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e',\n '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58',\n ],\n [\n 'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34',\n '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77',\n ],\n [\n '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c',\n '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a',\n ],\n [\n '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5',\n '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c',\n ],\n [\n '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f',\n '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67',\n ],\n [\n '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714',\n '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402',\n ],\n [\n 'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729',\n 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55',\n ],\n [\n 'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db',\n '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482',\n ],\n [\n '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4',\n 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82',\n ],\n [\n '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5',\n 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396',\n ],\n [\n '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479',\n '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49',\n ],\n [\n '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d',\n '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf',\n ],\n [\n '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f',\n '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a',\n ],\n [\n '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb',\n 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7',\n ],\n [\n 'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9',\n 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933',\n ],\n [\n '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963',\n '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a',\n ],\n [\n '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74',\n '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6',\n ],\n [\n 'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530',\n 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37',\n ],\n [\n '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b',\n '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e',\n ],\n [\n 'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247',\n 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6',\n ],\n [\n 'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1',\n 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476',\n ],\n [\n '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120',\n '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40',\n ],\n [\n '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435',\n '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61',\n ],\n [\n '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18',\n '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683',\n ],\n [\n 'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8',\n '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5',\n ],\n [\n '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb',\n '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b',\n ],\n [\n 'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f',\n '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417',\n ],\n [\n '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143',\n 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868',\n ],\n [\n '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba',\n 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a',\n ],\n [\n 'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45',\n 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6',\n ],\n [\n '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a',\n '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996',\n ],\n [\n '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e',\n 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e',\n ],\n [\n 'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8',\n 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d',\n ],\n [\n '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c',\n '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2',\n ],\n [\n '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519',\n 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e',\n ],\n [\n '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab',\n '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437',\n ],\n [\n '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca',\n 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311',\n ],\n [\n 'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf',\n '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4',\n ],\n [\n '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610',\n '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575',\n ],\n [\n '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4',\n 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d',\n ],\n [\n '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c',\n 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d',\n ],\n [\n 'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940',\n 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629',\n ],\n [\n 'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980',\n 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06',\n ],\n [\n '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3',\n '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374',\n ],\n [\n '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf',\n '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee',\n ],\n [\n 'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63',\n '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1',\n ],\n [\n 'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448',\n 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b',\n ],\n [\n '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf',\n '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661',\n ],\n [\n '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5',\n '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6',\n ],\n [\n 'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6',\n '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e',\n ],\n [\n '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5',\n '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d',\n ],\n [\n 'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99',\n 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc',\n ],\n [\n '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51',\n 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4',\n ],\n [\n '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5',\n '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c',\n ],\n [\n 'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5',\n '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b',\n ],\n [\n 'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997',\n '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913',\n ],\n [\n '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881',\n '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154',\n ],\n [\n '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5',\n '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865',\n ],\n [\n '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66',\n 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc',\n ],\n [\n '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726',\n 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224',\n ],\n [\n '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede',\n '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e',\n ],\n [\n '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94',\n '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6',\n ],\n [\n '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31',\n '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511',\n ],\n [\n '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51',\n 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b',\n ],\n [\n 'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252',\n 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2',\n ],\n [\n '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5',\n 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c',\n ],\n [\n 'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b',\n '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3',\n ],\n [\n 'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4',\n '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d',\n ],\n [\n 'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f',\n '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700',\n ],\n [\n 'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889',\n '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4',\n ],\n [\n '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246',\n 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196',\n ],\n [\n '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984',\n '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4',\n ],\n [\n '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a',\n 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257',\n ],\n [\n 'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030',\n 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13',\n ],\n [\n 'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197',\n '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096',\n ],\n [\n 'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593',\n 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38',\n ],\n [\n 'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef',\n '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f',\n ],\n [\n '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38',\n '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448',\n ],\n [\n 'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a',\n '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a',\n ],\n [\n 'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111',\n '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4',\n ],\n [\n '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502',\n '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437',\n ],\n [\n '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea',\n 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7',\n ],\n [\n 'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26',\n '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d',\n ],\n [\n 'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986',\n '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a',\n ],\n [\n 'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e',\n '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54',\n ],\n [\n '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4',\n '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77',\n ],\n [\n 'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda',\n 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517',\n ],\n [\n '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859',\n 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10',\n ],\n [\n 'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f',\n 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125',\n ],\n [\n 'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c',\n '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e',\n ],\n [\n '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942',\n 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1',\n ],\n [\n 'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a',\n '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2',\n ],\n [\n 'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80',\n '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423',\n ],\n [\n 'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d',\n '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8',\n ],\n [\n '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1',\n 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758',\n ],\n [\n '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63',\n 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375',\n ],\n [\n 'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352',\n '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d',\n ],\n [\n '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193',\n 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec',\n ],\n [\n '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00',\n '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0',\n ],\n [\n '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58',\n 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c',\n ],\n [\n 'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7',\n 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4',\n ],\n [\n '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8',\n 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f',\n ],\n [\n '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e',\n '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649',\n ],\n [\n '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d',\n 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826',\n ],\n [\n '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b',\n '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5',\n ],\n [\n 'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f',\n 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87',\n ],\n [\n '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6',\n '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b',\n ],\n [\n 'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297',\n '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc',\n ],\n [\n '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a',\n '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c',\n ],\n [\n 'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c',\n 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f',\n ],\n [\n 'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52',\n '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a',\n ],\n [\n 'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb',\n 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46',\n ],\n [\n '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065',\n 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f',\n ],\n [\n '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917',\n '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03',\n ],\n [\n '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9',\n 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08',\n ],\n [\n '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3',\n '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8',\n ],\n [\n '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57',\n '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373',\n ],\n [\n '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66',\n 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3',\n ],\n [\n '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8',\n '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8',\n ],\n [\n '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721',\n '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1',\n ],\n [\n '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180',\n '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9',\n ],\n ],\n },\n};\n","'use strict';\n\nvar utils = exports;\nvar BN = require('bn.js');\nvar minAssert = require('minimalistic-assert');\nvar minUtils = require('minimalistic-crypto-utils');\n\nutils.assert = minAssert;\nutils.toArray = minUtils.toArray;\nutils.zero2 = minUtils.zero2;\nutils.toHex = minUtils.toHex;\nutils.encode = minUtils.encode;\n\n// Represent num in a w-NAF form\nfunction getNAF(num, w, bits) {\n var naf = new Array(Math.max(num.bitLength(), bits) + 1);\n naf.fill(0);\n\n var ws = 1 << (w + 1);\n var k = num.clone();\n\n for (var i = 0; i < naf.length; i++) {\n var z;\n var mod = k.andln(ws - 1);\n if (k.isOdd()) {\n if (mod > (ws >> 1) - 1)\n z = (ws >> 1) - mod;\n else\n z = mod;\n k.isubn(z);\n } else {\n z = 0;\n }\n\n naf[i] = z;\n k.iushrn(1);\n }\n\n return naf;\n}\nutils.getNAF = getNAF;\n\n// Represent k1, k2 in a Joint Sparse Form\nfunction getJSF(k1, k2) {\n var jsf = [\n [],\n [],\n ];\n\n k1 = k1.clone();\n k2 = k2.clone();\n var d1 = 0;\n var d2 = 0;\n var m8;\n while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {\n // First phase\n var m14 = (k1.andln(3) + d1) & 3;\n var m24 = (k2.andln(3) + d2) & 3;\n if (m14 === 3)\n m14 = -1;\n if (m24 === 3)\n m24 = -1;\n var u1;\n if ((m14 & 1) === 0) {\n u1 = 0;\n } else {\n m8 = (k1.andln(7) + d1) & 7;\n if ((m8 === 3 || m8 === 5) && m24 === 2)\n u1 = -m14;\n else\n u1 = m14;\n }\n jsf[0].push(u1);\n\n var u2;\n if ((m24 & 1) === 0) {\n u2 = 0;\n } else {\n m8 = (k2.andln(7) + d2) & 7;\n if ((m8 === 3 || m8 === 5) && m14 === 2)\n u2 = -m24;\n else\n u2 = m24;\n }\n jsf[1].push(u2);\n\n // Second phase\n if (2 * d1 === u1 + 1)\n d1 = 1 - d1;\n if (2 * d2 === u2 + 1)\n d2 = 1 - d2;\n k1.iushrn(1);\n k2.iushrn(1);\n }\n\n return jsf;\n}\nutils.getJSF = getJSF;\n\nfunction cachedProperty(obj, name, computer) {\n var key = '_' + name;\n obj.prototype[name] = function cachedProperty() {\n return this[key] !== undefined ? this[key] :\n this[key] = computer.call(this);\n };\n}\nutils.cachedProperty = cachedProperty;\n\nfunction parseBytes(bytes) {\n return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :\n bytes;\n}\nutils.parseBytes = parseBytes;\n\nfunction intFromLE(bytes) {\n return new BN(bytes, 'hex', 'le');\n}\nutils.intFromLE = intFromLE;\n\n","'use strict';\n\nfunction assign(obj, props) {\n for (const key in props) {\n Object.defineProperty(obj, key, {\n value: props[key],\n enumerable: true,\n configurable: true,\n });\n }\n\n return obj;\n}\n\nfunction createError(err, code, props) {\n if (!err || typeof err === 'string') {\n throw new TypeError('Please pass an Error to err-code');\n }\n\n if (!props) {\n props = {};\n }\n\n if (typeof code === 'object') {\n props = code;\n code = undefined;\n }\n\n if (code != null) {\n props.code = code;\n }\n\n try {\n return assign(err, props);\n } catch (_) {\n props.message = err.message;\n props.stack = err.stack;\n\n const ErrClass = function () {};\n\n ErrClass.prototype = Object.create(Object.getPrototypeOf(err));\n\n return assign(new ErrClass(), props);\n }\n}\n\nmodule.exports = createError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.keccak512 = exports.keccak384 = exports.keccak256 = exports.keccak224 = void 0;\nconst sha3_1 = require(\"@noble/hashes/sha3\");\nconst utils_1 = require(\"./utils\");\nexports.keccak224 = (0, utils_1.wrapHash)(sha3_1.keccak_224);\nexports.keccak256 = (() => {\n const k = (0, utils_1.wrapHash)(sha3_1.keccak_256);\n k.create = sha3_1.keccak_256.create;\n return k;\n})();\nexports.keccak384 = (0, utils_1.wrapHash)(sha3_1.keccak_384);\nexports.keccak512 = (0, utils_1.wrapHash)(sha3_1.keccak_512);\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.crypto = exports.wrapHash = exports.equalsBytes = exports.hexToBytes = exports.bytesToUtf8 = exports.utf8ToBytes = exports.createView = exports.concatBytes = exports.toHex = exports.bytesToHex = exports.assertBytes = exports.assertBool = void 0;\n// buf.toString('hex') -> toHex(buf)\nconst _assert_1 = __importDefault(require(\"@noble/hashes/_assert\"));\nconst utils_1 = require(\"@noble/hashes/utils\");\nconst assertBool = _assert_1.default.bool;\nexports.assertBool = assertBool;\nconst assertBytes = _assert_1.default.bytes;\nexports.assertBytes = assertBytes;\nvar utils_2 = require(\"@noble/hashes/utils\");\nObject.defineProperty(exports, \"bytesToHex\", { enumerable: true, get: function () { return utils_2.bytesToHex; } });\nObject.defineProperty(exports, \"toHex\", { enumerable: true, get: function () { return utils_2.bytesToHex; } });\nObject.defineProperty(exports, \"concatBytes\", { enumerable: true, get: function () { return utils_2.concatBytes; } });\nObject.defineProperty(exports, \"createView\", { enumerable: true, get: function () { return utils_2.createView; } });\nObject.defineProperty(exports, \"utf8ToBytes\", { enumerable: true, get: function () { return utils_2.utf8ToBytes; } });\n// buf.toString('utf8') -> bytesToUtf8(buf)\nfunction bytesToUtf8(data) {\n if (!(data instanceof Uint8Array)) {\n throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof data}`);\n }\n return new TextDecoder().decode(data);\n}\nexports.bytesToUtf8 = bytesToUtf8;\nfunction hexToBytes(data) {\n const sliced = data.startsWith(\"0x\") ? data.substring(2) : data;\n return (0, utils_1.hexToBytes)(sliced);\n}\nexports.hexToBytes = hexToBytes;\n// buf.equals(buf2) -> equalsBytes(buf, buf2)\nfunction equalsBytes(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n}\nexports.equalsBytes = equalsBytes;\n// Internal utils\nfunction wrapHash(hash) {\n return (msg) => {\n _assert_1.default.bytes(msg);\n return hash(msg);\n };\n}\nexports.wrapHash = wrapHash;\nexports.crypto = (() => {\n const webCrypto = typeof self === \"object\" && \"crypto\" in self ? self.crypto : undefined;\n const nodeRequire = typeof module !== \"undefined\" &&\n typeof module.require === \"function\" &&\n module.require.bind(module);\n return {\n node: nodeRequire && !webCrypto ? nodeRequire(\"crypto\") : undefined,\n web: webCrypto\n };\n})();\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","'use strict'\nvar Buffer = require('safe-buffer').Buffer\nvar Transform = require('readable-stream').Transform\nvar inherits = require('inherits')\n\nfunction throwIfNotStringOrBuffer (val, prefix) {\n if (!Buffer.isBuffer(val) && typeof val !== 'string') {\n throw new TypeError(prefix + ' must be a string or a buffer')\n }\n}\n\nfunction HashBase (blockSize) {\n Transform.call(this)\n\n this._block = Buffer.allocUnsafe(blockSize)\n this._blockSize = blockSize\n this._blockOffset = 0\n this._length = [0, 0, 0, 0]\n\n this._finalized = false\n}\n\ninherits(HashBase, Transform)\n\nHashBase.prototype._transform = function (chunk, encoding, callback) {\n var error = null\n try {\n this.update(chunk, encoding)\n } catch (err) {\n error = err\n }\n\n callback(error)\n}\n\nHashBase.prototype._flush = function (callback) {\n var error = null\n try {\n this.push(this.digest())\n } catch (err) {\n error = err\n }\n\n callback(error)\n}\n\nHashBase.prototype.update = function (data, encoding) {\n throwIfNotStringOrBuffer(data, 'Data')\n if (this._finalized) throw new Error('Digest already called')\n if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)\n\n // consume data\n var block = this._block\n var offset = 0\n while (this._blockOffset + data.length - offset >= this._blockSize) {\n for (var i = this._blockOffset; i < this._blockSize;) block[i++] = data[offset++]\n this._update()\n this._blockOffset = 0\n }\n while (offset < data.length) block[this._blockOffset++] = data[offset++]\n\n // update length\n for (var j = 0, carry = data.length * 8; carry > 0; ++j) {\n this._length[j] += carry\n carry = (this._length[j] / 0x0100000000) | 0\n if (carry > 0) this._length[j] -= 0x0100000000 * carry\n }\n\n return this\n}\n\nHashBase.prototype._update = function () {\n throw new Error('_update is not implemented')\n}\n\nHashBase.prototype.digest = function (encoding) {\n if (this._finalized) throw new Error('Digest already called')\n this._finalized = true\n\n var digest = this._digest()\n if (encoding !== undefined) digest = digest.toString(encoding)\n\n // reset state\n this._block.fill(0)\n this._blockOffset = 0\n for (var i = 0; i < 4; ++i) this._length[i] = 0\n\n return digest\n}\n\nHashBase.prototype._digest = function () {\n throw new Error('_digest is not implemented')\n}\n\nmodule.exports = HashBase\n","var hash = exports;\n\nhash.utils = require('./hash/utils');\nhash.common = require('./hash/common');\nhash.sha = require('./hash/sha');\nhash.ripemd = require('./hash/ripemd');\nhash.hmac = require('./hash/hmac');\n\n// Proxy hash functions to the main object\nhash.sha1 = hash.sha.sha1;\nhash.sha256 = hash.sha.sha256;\nhash.sha224 = hash.sha.sha224;\nhash.sha384 = hash.sha.sha384;\nhash.sha512 = hash.sha.sha512;\nhash.ripemd160 = hash.ripemd.ripemd160;\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction Hmac(hash, key, enc) {\n if (!(this instanceof Hmac))\n return new Hmac(hash, key, enc);\n this.Hash = hash;\n this.blockSize = hash.blockSize / 8;\n this.outSize = hash.outSize / 8;\n this.inner = null;\n this.outer = null;\n\n this._init(utils.toArray(key, enc));\n}\nmodule.exports = Hmac;\n\nHmac.prototype._init = function init(key) {\n // Shorten key, if needed\n if (key.length > this.blockSize)\n key = new this.Hash().update(key).digest();\n assert(key.length <= this.blockSize);\n\n // Add padding to key\n for (var i = key.length; i < this.blockSize; i++)\n key.push(0);\n\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x36;\n this.inner = new this.Hash().update(key);\n\n // 0x36 ^ 0x5c = 0x6a\n for (i = 0; i < key.length; i++)\n key[i] ^= 0x6a;\n this.outer = new this.Hash().update(key);\n};\n\nHmac.prototype.update = function update(msg, enc) {\n this.inner.update(msg, enc);\n return this;\n};\n\nHmac.prototype.digest = function digest(enc) {\n this.outer.update(this.inner.digest());\n return this.outer.digest(enc);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar common = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_3 = utils.sum32_3;\nvar sum32_4 = utils.sum32_4;\nvar BlockHash = common.BlockHash;\n\nfunction RIPEMD160() {\n if (!(this instanceof RIPEMD160))\n return new RIPEMD160();\n\n BlockHash.call(this);\n\n this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ];\n this.endian = 'little';\n}\nutils.inherits(RIPEMD160, BlockHash);\nexports.ripemd160 = RIPEMD160;\n\nRIPEMD160.blockSize = 512;\nRIPEMD160.outSize = 160;\nRIPEMD160.hmacStrength = 192;\nRIPEMD160.padLength = 64;\n\nRIPEMD160.prototype._update = function update(msg, start) {\n var A = this.h[0];\n var B = this.h[1];\n var C = this.h[2];\n var D = this.h[3];\n var E = this.h[4];\n var Ah = A;\n var Bh = B;\n var Ch = C;\n var Dh = D;\n var Eh = E;\n for (var j = 0; j < 80; j++) {\n var T = sum32(\n rotl32(\n sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)),\n s[j]),\n E);\n A = E;\n E = D;\n D = rotl32(C, 10);\n C = B;\n B = T;\n T = sum32(\n rotl32(\n sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)),\n sh[j]),\n Eh);\n Ah = Eh;\n Eh = Dh;\n Dh = rotl32(Ch, 10);\n Ch = Bh;\n Bh = T;\n }\n T = sum32_3(this.h[1], C, Dh);\n this.h[1] = sum32_3(this.h[2], D, Eh);\n this.h[2] = sum32_3(this.h[3], E, Ah);\n this.h[3] = sum32_3(this.h[4], A, Bh);\n this.h[4] = sum32_3(this.h[0], B, Ch);\n this.h[0] = T;\n};\n\nRIPEMD160.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'little');\n else\n return utils.split32(this.h, 'little');\n};\n\nfunction f(j, x, y, z) {\n if (j <= 15)\n return x ^ y ^ z;\n else if (j <= 31)\n return (x & y) | ((~x) & z);\n else if (j <= 47)\n return (x | (~y)) ^ z;\n else if (j <= 63)\n return (x & z) | (y & (~z));\n else\n return x ^ (y | (~z));\n}\n\nfunction K(j) {\n if (j <= 15)\n return 0x00000000;\n else if (j <= 31)\n return 0x5a827999;\n else if (j <= 47)\n return 0x6ed9eba1;\n else if (j <= 63)\n return 0x8f1bbcdc;\n else\n return 0xa953fd4e;\n}\n\nfunction Kh(j) {\n if (j <= 15)\n return 0x50a28be6;\n else if (j <= 31)\n return 0x5c4dd124;\n else if (j <= 47)\n return 0x6d703ef3;\n else if (j <= 63)\n return 0x7a6d76e9;\n else\n return 0x00000000;\n}\n\nvar r = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13\n];\n\nvar rh = [\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11\n];\n\nvar s = [\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6\n];\n\nvar sh = [\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11\n];\n","'use strict';\n\nexports.sha1 = require('./sha/1');\nexports.sha224 = require('./sha/224');\nexports.sha256 = require('./sha/256');\nexports.sha384 = require('./sha/384');\nexports.sha512 = require('./sha/512');\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\n\nvar sha1_K = [\n 0x5A827999, 0x6ED9EBA1,\n 0x8F1BBCDC, 0xCA62C1D6\n];\n\nfunction SHA1() {\n if (!(this instanceof SHA1))\n return new SHA1();\n\n BlockHash.call(this);\n this.h = [\n 0x67452301, 0xefcdab89, 0x98badcfe,\n 0x10325476, 0xc3d2e1f0 ];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\n\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n\n for(; i < W.length; i++)\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar SHA256 = require('./256');\n\nfunction SHA224() {\n if (!(this instanceof SHA224))\n return new SHA224();\n\n SHA256.call(this);\n this.h = [\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\n 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ];\n}\nutils.inherits(SHA224, SHA256);\nmodule.exports = SHA224;\n\nSHA224.blockSize = 512;\nSHA224.outSize = 224;\nSHA224.hmacStrength = 192;\nSHA224.padLength = 64;\n\nSHA224.prototype._digest = function digest(enc) {\n // Just truncate output\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 7), 'big');\n else\n return utils.split32(this.h.slice(0, 7), 'big');\n};\n\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\nvar assert = require('minimalistic-assert');\n\nvar sum32 = utils.sum32;\nvar sum32_4 = utils.sum32_4;\nvar sum32_5 = utils.sum32_5;\nvar ch32 = shaCommon.ch32;\nvar maj32 = shaCommon.maj32;\nvar s0_256 = shaCommon.s0_256;\nvar s1_256 = shaCommon.s1_256;\nvar g0_256 = shaCommon.g0_256;\nvar g1_256 = shaCommon.g1_256;\n\nvar BlockHash = common.BlockHash;\n\nvar sha256_K = [\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,\n 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,\n 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,\n 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,\n 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,\n 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,\n 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n];\n\nfunction SHA256() {\n if (!(this instanceof SHA256))\n return new SHA256();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,\n 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n ];\n this.k = sha256_K;\n this.W = new Array(64);\n}\nutils.inherits(SHA256, BlockHash);\nmodule.exports = SHA256;\n\nSHA256.blockSize = 512;\nSHA256.outSize = 256;\nSHA256.hmacStrength = 192;\nSHA256.padLength = 64;\n\nSHA256.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i++)\n W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n var f = this.h[5];\n var g = this.h[6];\n var h = this.h[7];\n\n assert(this.k.length === W.length);\n for (i = 0; i < W.length; i++) {\n var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);\n var T2 = sum32(s0_256(a), maj32(a, b, c));\n h = g;\n g = f;\n f = e;\n e = sum32(d, T1);\n d = c;\n c = b;\n b = a;\n a = sum32(T1, T2);\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n this.h[5] = sum32(this.h[5], f);\n this.h[6] = sum32(this.h[6], g);\n this.h[7] = sum32(this.h[7], h);\n};\n\nSHA256.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\n\nvar SHA512 = require('./512');\n\nfunction SHA384() {\n if (!(this instanceof SHA384))\n return new SHA384();\n\n SHA512.call(this);\n this.h = [\n 0xcbbb9d5d, 0xc1059ed8,\n 0x629a292a, 0x367cd507,\n 0x9159015a, 0x3070dd17,\n 0x152fecd8, 0xf70e5939,\n 0x67332667, 0xffc00b31,\n 0x8eb44a87, 0x68581511,\n 0xdb0c2e0d, 0x64f98fa7,\n 0x47b5481d, 0xbefa4fa4 ];\n}\nutils.inherits(SHA384, SHA512);\nmodule.exports = SHA384;\n\nSHA384.blockSize = 1024;\nSHA384.outSize = 384;\nSHA384.hmacStrength = 192;\nSHA384.padLength = 128;\n\nSHA384.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h.slice(0, 12), 'big');\n else\n return utils.split32(this.h.slice(0, 12), 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar assert = require('minimalistic-assert');\n\nvar rotr64_hi = utils.rotr64_hi;\nvar rotr64_lo = utils.rotr64_lo;\nvar shr64_hi = utils.shr64_hi;\nvar shr64_lo = utils.shr64_lo;\nvar sum64 = utils.sum64;\nvar sum64_hi = utils.sum64_hi;\nvar sum64_lo = utils.sum64_lo;\nvar sum64_4_hi = utils.sum64_4_hi;\nvar sum64_4_lo = utils.sum64_4_lo;\nvar sum64_5_hi = utils.sum64_5_hi;\nvar sum64_5_lo = utils.sum64_5_lo;\n\nvar BlockHash = common.BlockHash;\n\nvar sha512_K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n];\n\nfunction SHA512() {\n if (!(this instanceof SHA512))\n return new SHA512();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xf3bcc908,\n 0xbb67ae85, 0x84caa73b,\n 0x3c6ef372, 0xfe94f82b,\n 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1,\n 0x9b05688c, 0x2b3e6c1f,\n 0x1f83d9ab, 0xfb41bd6b,\n 0x5be0cd19, 0x137e2179 ];\n this.k = sha512_K;\n this.W = new Array(160);\n}\nutils.inherits(SHA512, BlockHash);\nmodule.exports = SHA512;\n\nSHA512.blockSize = 1024;\nSHA512.outSize = 512;\nSHA512.hmacStrength = 192;\nSHA512.padLength = 128;\n\nSHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {\n var W = this.W;\n\n // 32 x 32bit words\n for (var i = 0; i < 32; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i += 2) {\n var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2\n var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);\n var c1_hi = W[i - 14]; // i - 7\n var c1_lo = W[i - 13];\n var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15\n var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);\n var c3_hi = W[i - 32]; // i - 16\n var c3_lo = W[i - 31];\n\n W[i] = sum64_4_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n W[i + 1] = sum64_4_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo);\n }\n};\n\nSHA512.prototype._update = function _update(msg, start) {\n this._prepareBlock(msg, start);\n\n var W = this.W;\n\n var ah = this.h[0];\n var al = this.h[1];\n var bh = this.h[2];\n var bl = this.h[3];\n var ch = this.h[4];\n var cl = this.h[5];\n var dh = this.h[6];\n var dl = this.h[7];\n var eh = this.h[8];\n var el = this.h[9];\n var fh = this.h[10];\n var fl = this.h[11];\n var gh = this.h[12];\n var gl = this.h[13];\n var hh = this.h[14];\n var hl = this.h[15];\n\n assert(this.k.length === W.length);\n for (var i = 0; i < W.length; i += 2) {\n var c0_hi = hh;\n var c0_lo = hl;\n var c1_hi = s1_512_hi(eh, el);\n var c1_lo = s1_512_lo(eh, el);\n var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);\n var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);\n var c3_hi = this.k[i];\n var c3_lo = this.k[i + 1];\n var c4_hi = W[i];\n var c4_lo = W[i + 1];\n\n var T1_hi = sum64_5_hi(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n var T1_lo = sum64_5_lo(\n c0_hi, c0_lo,\n c1_hi, c1_lo,\n c2_hi, c2_lo,\n c3_hi, c3_lo,\n c4_hi, c4_lo);\n\n c0_hi = s0_512_hi(ah, al);\n c0_lo = s0_512_lo(ah, al);\n c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);\n c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);\n\n var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);\n var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);\n\n hh = gh;\n hl = gl;\n\n gh = fh;\n gl = fl;\n\n fh = eh;\n fl = el;\n\n eh = sum64_hi(dh, dl, T1_hi, T1_lo);\n el = sum64_lo(dl, dl, T1_hi, T1_lo);\n\n dh = ch;\n dl = cl;\n\n ch = bh;\n cl = bl;\n\n bh = ah;\n bl = al;\n\n ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);\n al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);\n }\n\n sum64(this.h, 0, ah, al);\n sum64(this.h, 2, bh, bl);\n sum64(this.h, 4, ch, cl);\n sum64(this.h, 6, dh, dl);\n sum64(this.h, 8, eh, el);\n sum64(this.h, 10, fh, fl);\n sum64(this.h, 12, gh, gl);\n sum64(this.h, 14, hh, hl);\n};\n\nSHA512.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n\nfunction ch64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ ((~xh) & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction ch64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ ((~xl) & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_hi(xh, xl, yh, yl, zh) {\n var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction maj64_lo(xh, xl, yh, yl, zh, zl) {\n var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 28);\n var c1_hi = rotr64_hi(xl, xh, 2); // 34\n var c2_hi = rotr64_hi(xl, xh, 7); // 39\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 28);\n var c1_lo = rotr64_lo(xl, xh, 2); // 34\n var c2_lo = rotr64_lo(xl, xh, 7); // 39\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 14);\n var c1_hi = rotr64_hi(xh, xl, 18);\n var c2_hi = rotr64_hi(xl, xh, 9); // 41\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction s1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 14);\n var c1_lo = rotr64_lo(xh, xl, 18);\n var c2_lo = rotr64_lo(xl, xh, 9); // 41\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 1);\n var c1_hi = rotr64_hi(xh, xl, 8);\n var c2_hi = shr64_hi(xh, xl, 7);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g0_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 1);\n var c1_lo = rotr64_lo(xh, xl, 8);\n var c2_lo = shr64_lo(xh, xl, 7);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_hi(xh, xl) {\n var c0_hi = rotr64_hi(xh, xl, 19);\n var c1_hi = rotr64_hi(xl, xh, 29); // 61\n var c2_hi = shr64_hi(xh, xl, 6);\n\n var r = c0_hi ^ c1_hi ^ c2_hi;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n\nfunction g1_512_lo(xh, xl) {\n var c0_lo = rotr64_lo(xh, xl, 19);\n var c1_lo = rotr64_lo(xl, xh, 29); // 61\n var c2_lo = shr64_lo(xh, xl, 6);\n\n var r = c0_lo ^ c1_lo ^ c2_lo;\n if (r < 0)\n r += 0x100000000;\n return r;\n}\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","'use strict';\n\nvar hash = require('hash.js');\nvar utils = require('minimalistic-crypto-utils');\nvar assert = require('minimalistic-assert');\n\nfunction HmacDRBG(options) {\n if (!(this instanceof HmacDRBG))\n return new HmacDRBG(options);\n this.hash = options.hash;\n this.predResist = !!options.predResist;\n\n this.outLen = this.hash.outSize;\n this.minEntropy = options.minEntropy || this.hash.hmacStrength;\n\n this._reseed = null;\n this.reseedInterval = null;\n this.K = null;\n this.V = null;\n\n var entropy = utils.toArray(options.entropy, options.entropyEnc || 'hex');\n var nonce = utils.toArray(options.nonce, options.nonceEnc || 'hex');\n var pers = utils.toArray(options.pers, options.persEnc || 'hex');\n assert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n this._init(entropy, nonce, pers);\n}\nmodule.exports = HmacDRBG;\n\nHmacDRBG.prototype._init = function init(entropy, nonce, pers) {\n var seed = entropy.concat(nonce).concat(pers);\n\n this.K = new Array(this.outLen / 8);\n this.V = new Array(this.outLen / 8);\n for (var i = 0; i < this.V.length; i++) {\n this.K[i] = 0x00;\n this.V[i] = 0x01;\n }\n\n this._update(seed);\n this._reseed = 1;\n this.reseedInterval = 0x1000000000000; // 2^48\n};\n\nHmacDRBG.prototype._hmac = function hmac() {\n return new hash.hmac(this.hash, this.K);\n};\n\nHmacDRBG.prototype._update = function update(seed) {\n var kmac = this._hmac()\n .update(this.V)\n .update([ 0x00 ]);\n if (seed)\n kmac = kmac.update(seed);\n this.K = kmac.digest();\n this.V = this._hmac().update(this.V).digest();\n if (!seed)\n return;\n\n this.K = this._hmac()\n .update(this.V)\n .update([ 0x01 ])\n .update(seed)\n .digest();\n this.V = this._hmac().update(this.V).digest();\n};\n\nHmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {\n // Optional entropy enc\n if (typeof entropyEnc !== 'string') {\n addEnc = add;\n add = entropyEnc;\n entropyEnc = null;\n }\n\n entropy = utils.toArray(entropy, entropyEnc);\n add = utils.toArray(add, addEnc);\n\n assert(entropy.length >= (this.minEntropy / 8),\n 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');\n\n this._update(entropy.concat(add || []));\n this._reseed = 1;\n};\n\nHmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {\n if (this._reseed > this.reseedInterval)\n throw new Error('Reseed is required');\n\n // Optional encoding\n if (typeof enc !== 'string') {\n addEnc = add;\n add = enc;\n enc = null;\n }\n\n // Optional additional data\n if (add) {\n add = utils.toArray(add, addEnc || 'hex');\n this._update(add);\n }\n\n var temp = [];\n while (temp.length < len) {\n this.V = this._hmac().update(this.V).digest();\n temp = temp.concat(this.V);\n }\n\n var res = temp.slice(0, len);\n this._update(add);\n this._reseed++;\n return utils.encode(res, enc);\n};\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n","'use strict';\n\nvar json = typeof JSON !== 'undefined' ? JSON : require('jsonify');\n\nvar isArray = Array.isArray || function (x) {\n\treturn {}.toString.call(x) === '[object Array]';\n};\n\nvar objectKeys = Object.keys || function (obj) {\n\tvar has = Object.prototype.hasOwnProperty || function () { return true; };\n\tvar keys = [];\n\tfor (var key in obj) {\n\t\tif (has.call(obj, key)) { keys.push(key); }\n\t}\n\treturn keys;\n};\n\nmodule.exports = function (obj, opts) {\n\tif (!opts) { opts = {}; }\n\tif (typeof opts === 'function') { opts = { cmp: opts }; }\n\tvar space = opts.space || '';\n\tif (typeof space === 'number') { space = Array(space + 1).join(' '); }\n\tvar cycles = typeof opts.cycles === 'boolean' ? opts.cycles : false;\n\tvar replacer = opts.replacer || function (key, value) { return value; };\n\n\tvar cmp = opts.cmp && (function (f) {\n\t\treturn function (node) {\n\t\t\treturn function (a, b) {\n\t\t\t\tvar aobj = { key: a, value: node[a] };\n\t\t\t\tvar bobj = { key: b, value: node[b] };\n\t\t\t\treturn f(aobj, bobj);\n\t\t\t};\n\t\t};\n\t}(opts.cmp));\n\n\tvar seen = [];\n\treturn (function stringify(parent, key, node, level) {\n\t\tvar indent = space ? '\\n' + new Array(level + 1).join(space) : '';\n\t\tvar colonSeparator = space ? ': ' : ':';\n\n\t\tif (node && node.toJSON && typeof node.toJSON === 'function') {\n\t\t\tnode = node.toJSON();\n\t\t}\n\n\t\tnode = replacer.call(parent, key, node);\n\n\t\tif (node === undefined) {\n\t\t\treturn;\n\t\t}\n\t\tif (typeof node !== 'object' || node === null) {\n\t\t\treturn json.stringify(node);\n\t\t}\n\t\tif (isArray(node)) {\n\t\t\tvar out = [];\n\t\t\tfor (var i = 0; i < node.length; i++) {\n\t\t\t\tvar item = stringify(node, i, node[i], level + 1) || json.stringify(null);\n\t\t\t\tout.push(indent + space + item);\n\t\t\t}\n\t\t\treturn '[' + out.join(',') + indent + ']';\n\t\t}\n\n\t\tif (seen.indexOf(node) !== -1) {\n\t\t\tif (cycles) { return json.stringify('__cycle__'); }\n\t\t\tthrow new TypeError('Converting circular structure to JSON');\n\t\t} else { seen.push(node); }\n\n\t\tvar keys = objectKeys(node).sort(cmp && cmp(node));\n\t\tvar out = [];\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tvar key = keys[i];\n\t\t\tvar value = stringify(node, key, node[key], level + 1);\n\n\t\t\tif (!value) { continue; }\n\n\t\t\tvar keyValue = json.stringify(key)\n\t\t\t\t\t+ colonSeparator\n\t\t\t\t\t+ value;\n\n\t\t\tout.push(indent + space + keyValue);\n\t\t}\n\t\tseen.splice(seen.indexOf(node), 1);\n\t\treturn '{' + out.join(',') + indent + '}';\n\n\t}({ '': obj }, '', obj, 0));\n};\n","'use strict';\n\nexports.parse = require('./lib/parse');\nexports.stringify = require('./lib/stringify');\n","'use strict';\n\nvar at; // The index of the current character\nvar ch; // The current character\nvar escapee = {\n\t'\"': '\"',\n\t'\\\\': '\\\\',\n\t'/': '/',\n\tb: '\\b',\n\tf: '\\f',\n\tn: '\\n',\n\tr: '\\r',\n\tt: '\\t'\n};\nvar text;\n\n// Call error when something is wrong.\nfunction error(m) {\n\tthrow {\n\t\tname: 'SyntaxError',\n\t\tmessage: m,\n\t\tat: at,\n\t\ttext: text\n\t};\n}\n\nfunction next(c) {\n\t// If a c parameter is provided, verify that it matches the current character.\n\tif (c && c !== ch) {\n\t\terror(\"Expected '\" + c + \"' instead of '\" + ch + \"'\");\n\t}\n\n\t// Get the next character. When there are no more characters, return the empty string.\n\n\tch = text.charAt(at);\n\tat += 1;\n\treturn ch;\n}\n\nfunction number() {\n\t// Parse a number value.\n\tvar num;\n\tvar str = '';\n\n\tif (ch === '-') {\n\t\tstr = '-';\n\t\tnext('-');\n\t}\n\twhile (ch >= '0' && ch <= '9') {\n\t\tstr += ch;\n\t\tnext();\n\t}\n\tif (ch === '.') {\n\t\tstr += '.';\n\t\twhile (next() && ch >= '0' && ch <= '9') {\n\t\t\tstr += ch;\n\t\t}\n\t}\n\tif (ch === 'e' || ch === 'E') {\n\t\tstr += ch;\n\t\tnext();\n\t\tif (ch === '-' || ch === '+') {\n\t\t\tstr += ch;\n\t\t\tnext();\n\t\t}\n\t\twhile (ch >= '0' && ch <= '9') {\n\t\t\tstr += ch;\n\t\t\tnext();\n\t\t}\n\t}\n\tnum = Number(str);\n\tif (!isFinite(num)) {\n\t\terror('Bad number');\n\t}\n\treturn num;\n}\n\nfunction string() {\n\t// Parse a string value.\n\tvar hex;\n\tvar i;\n\tvar str = '';\n\tvar uffff;\n\n\t// When parsing for string values, we must look for \" and \\ characters.\n\tif (ch === '\"') {\n\t\twhile (next()) {\n\t\t\tif (ch === '\"') {\n\t\t\t\tnext();\n\t\t\t\treturn str;\n\t\t\t} else if (ch === '\\\\') {\n\t\t\t\tnext();\n\t\t\t\tif (ch === 'u') {\n\t\t\t\t\tuffff = 0;\n\t\t\t\t\tfor (i = 0; i < 4; i += 1) {\n\t\t\t\t\t\thex = parseInt(next(), 16);\n\t\t\t\t\t\tif (!isFinite(hex)) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuffff = (uffff * 16) + hex;\n\t\t\t\t\t}\n\t\t\t\t\tstr += String.fromCharCode(uffff);\n\t\t\t\t} else if (typeof escapee[ch] === 'string') {\n\t\t\t\t\tstr += escapee[ch];\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstr += ch;\n\t\t\t}\n\t\t}\n\t}\n\terror('Bad string');\n}\n\n// Skip whitespace.\nfunction white() {\n\twhile (ch && ch <= ' ') {\n\t\tnext();\n\t}\n}\n\n// true, false, or null.\nfunction word() {\n\tswitch (ch) {\n\t\tcase 't':\n\t\t\tnext('t');\n\t\t\tnext('r');\n\t\t\tnext('u');\n\t\t\tnext('e');\n\t\t\treturn true;\n\t\tcase 'f':\n\t\t\tnext('f');\n\t\t\tnext('a');\n\t\t\tnext('l');\n\t\t\tnext('s');\n\t\t\tnext('e');\n\t\t\treturn false;\n\t\tcase 'n':\n\t\t\tnext('n');\n\t\t\tnext('u');\n\t\t\tnext('l');\n\t\t\tnext('l');\n\t\t\treturn null;\n\t\tdefault:\n\t\t\terror(\"Unexpected '\" + ch + \"'\");\n\t}\n}\n\n// Parse an array value.\nfunction array() {\n\tvar arr = [];\n\n\tif (ch === '[') {\n\t\tnext('[');\n\t\twhite();\n\t\tif (ch === ']') {\n\t\t\tnext(']');\n\t\t\treturn arr; // empty array\n\t\t}\n\t\twhile (ch) {\n\t\t\tarr.push(value()); // eslint-disable-line no-use-before-define\n\t\t\twhite();\n\t\t\tif (ch === ']') {\n\t\t\t\tnext(']');\n\t\t\t\treturn arr;\n\t\t\t}\n\t\t\tnext(',');\n\t\t\twhite();\n\t\t}\n\t}\n\terror('Bad array');\n}\n\n// Parse an object value.\nfunction object() {\n\tvar key;\n\tvar obj = {};\n\n\tif (ch === '{') {\n\t\tnext('{');\n\t\twhite();\n\t\tif (ch === '}') {\n\t\t\tnext('}');\n\t\t\treturn obj; // empty object\n\t\t}\n\t\twhile (ch) {\n\t\t\tkey = string();\n\t\t\twhite();\n\t\t\tnext(':');\n\t\t\tif (Object.prototype.hasOwnProperty.call(obj, key)) {\n\t\t\t\terror('Duplicate key \"' + key + '\"');\n\t\t\t}\n\t\t\tobj[key] = value(); // eslint-disable-line no-use-before-define\n\t\t\twhite();\n\t\t\tif (ch === '}') {\n\t\t\t\tnext('}');\n\t\t\t\treturn obj;\n\t\t\t}\n\t\t\tnext(',');\n\t\t\twhite();\n\t\t}\n\t}\n\terror('Bad object');\n}\n\n// Parse a JSON value. It could be an object, an array, a string, a number, or a word.\nfunction value() {\n\twhite();\n\tswitch (ch) {\n\t\tcase '{':\n\t\t\treturn object();\n\t\tcase '[':\n\t\t\treturn array();\n\t\tcase '\"':\n\t\t\treturn string();\n\t\tcase '-':\n\t\t\treturn number();\n\t\tdefault:\n\t\t\treturn ch >= '0' && ch <= '9' ? number() : word();\n\t}\n}\n\n// Return the json_parse function. It will have access to all of the above functions and variables.\nmodule.exports = function (source, reviver) {\n\tvar result;\n\n\ttext = source;\n\tat = 0;\n\tch = ' ';\n\tresult = value();\n\twhite();\n\tif (ch) {\n\t\terror('Syntax error');\n\t}\n\n\t// If there is a reviver function, we recursively walk the new structure,\n\t// passing each name/value pair to the reviver function for possible\n\t// transformation, starting with a temporary root object that holds the result\n\t// in an empty key. If there is not a reviver function, we simply return the\n\t// result.\n\n\treturn typeof reviver === 'function' ? (function walk(holder, key) {\n\t\tvar k;\n\t\tvar v;\n\t\tvar val = holder[key];\n\t\tif (val && typeof val === 'object') {\n\t\t\tfor (k in value) {\n\t\t\t\tif (Object.prototype.hasOwnProperty.call(val, k)) {\n\t\t\t\t\tv = walk(val, k);\n\t\t\t\t\tif (typeof v === 'undefined') {\n\t\t\t\t\t\tdelete val[k];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tval[k] = v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn reviver.call(holder, key, val);\n\t}({ '': result }, '')) : result;\n};\n","'use strict';\n\nvar escapable = /[\\\\\"\\x00-\\x1f\\x7f-\\x9f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g;\nvar gap;\nvar indent;\nvar meta = { // table of character substitutions\n\t'\\b': '\\\\b',\n\t'\\t': '\\\\t',\n\t'\\n': '\\\\n',\n\t'\\f': '\\\\f',\n\t'\\r': '\\\\r',\n\t'\"': '\\\\\"',\n\t'\\\\': '\\\\\\\\'\n};\nvar rep;\n\nfunction quote(string) {\n\t// If the string contains no control characters, no quote characters, and no\n\t// backslash characters, then we can safely slap some quotes around it.\n\t// Otherwise we must also replace the offending characters with safe escape sequences.\n\n\tescapable.lastIndex = 0;\n\treturn escapable.test(string) ? '\"' + string.replace(escapable, function (a) {\n\t\tvar c = meta[a];\n\t\treturn typeof c === 'string' ? c\n\t\t\t: '\\\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);\n\t}) + '\"' : '\"' + string + '\"';\n}\n\nfunction str(key, holder) {\n\t// Produce a string from holder[key].\n\tvar i; // The loop counter.\n\tvar k; // The member key.\n\tvar v; // The member value.\n\tvar length;\n\tvar mind = gap;\n\tvar partial;\n\tvar value = holder[key];\n\n\t// If the value has a toJSON method, call it to obtain a replacement value.\n\tif (value && typeof value === 'object' && typeof value.toJSON === 'function') {\n\t\tvalue = value.toJSON(key);\n\t}\n\n\t// If we were called with a replacer function, then call the replacer to obtain a replacement value.\n\tif (typeof rep === 'function') {\n\t\tvalue = rep.call(holder, key, value);\n\t}\n\n\t// What happens next depends on the value's type.\n\tswitch (typeof value) {\n\t\tcase 'string':\n\t\t\treturn quote(value);\n\n\t\tcase 'number':\n\t\t\t// JSON numbers must be finite. Encode non-finite numbers as null.\n\t\t\treturn isFinite(value) ? String(value) : 'null';\n\n\t\tcase 'boolean':\n\t\tcase 'null':\n\t\t\t// If the value is a boolean or null, convert it to a string. Note:\n\t\t\t// typeof null does not produce 'null'. The case is included here in\n\t\t\t// the remote chance that this gets fixed someday.\n\t\t\treturn String(value);\n\n\t\tcase 'object':\n\t\t\tif (!value) {\n\t\t\t\treturn 'null';\n\t\t\t}\n\t\t\tgap += indent;\n\t\t\tpartial = [];\n\n\t\t\t// Array.isArray\n\t\t\tif (Object.prototype.toString.apply(value) === '[object Array]') {\n\t\t\t\tlength = value.length;\n\t\t\t\tfor (i = 0; i < length; i += 1) {\n\t\t\t\t\tpartial[i] = str(i, value) || 'null';\n\t\t\t\t}\n\n\t\t\t\t// Join all of the elements together, separated with commas, and wrap them in brackets.\n\t\t\t\tv = partial.length === 0 ? '[]' : gap\n\t\t\t\t\t? '[\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + ']'\n\t\t\t\t\t: '[' + partial.join(',') + ']';\n\t\t\t\tgap = mind;\n\t\t\t\treturn v;\n\t\t\t}\n\n\t\t\t// If the replacer is an array, use it to select the members to be stringified.\n\t\t\tif (rep && typeof rep === 'object') {\n\t\t\t\tlength = rep.length;\n\t\t\t\tfor (i = 0; i < length; i += 1) {\n\t\t\t\t\tk = rep[i];\n\t\t\t\t\tif (typeof k === 'string') {\n\t\t\t\t\t\tv = str(k, value);\n\t\t\t\t\t\tif (v) {\n\t\t\t\t\t\t\tpartial.push(quote(k) + (gap ? ': ' : ':') + v);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Otherwise, iterate through all of the keys in the object.\n\t\t\t\tfor (k in value) {\n\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(value, k)) {\n\t\t\t\t\t\tv = str(k, value);\n\t\t\t\t\t\tif (v) {\n\t\t\t\t\t\t\tpartial.push(quote(k) + (gap ? ': ' : ':') + v);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Join all of the member texts together, separated with commas, and wrap them in braces.\n\n\t\t\tv = partial.length === 0 ? '{}' : gap\n\t\t\t\t? '{\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + '}'\n\t\t\t\t: '{' + partial.join(',') + '}';\n\t\t\tgap = mind;\n\t\t\treturn v;\n\t\tdefault:\n\t}\n}\n\nmodule.exports = function (value, replacer, space) {\n\tvar i;\n\tgap = '';\n\tindent = '';\n\n\t// If the space parameter is a number, make an indent string containing that many spaces.\n\tif (typeof space === 'number') {\n\t\tfor (i = 0; i < space; i += 1) {\n\t\t\tindent += ' ';\n\t\t}\n\t} else if (typeof space === 'string') {\n\t\t// If the space parameter is a string, it will be used as the indent string.\n\t\tindent = space;\n\t}\n\n\t// If there is a replacer, it must be a function or an array. Otherwise, throw an error.\n\trep = replacer;\n\tif (\n\t\treplacer\n\t\t&& typeof replacer !== 'function'\n\t\t&& (typeof replacer !== 'object' || typeof replacer.length !== 'number')\n\t) {\n\t\tthrow new Error('JSON.stringify');\n\t}\n\n\t// Make a fake root object containing our value under the key of ''.\n\t// Return the result of stringifying the value.\n\treturn str('', { '': value });\n};\n","\nmodule.exports = function load (src, opts, cb) {\n var head = document.head || document.getElementsByTagName('head')[0]\n var script = document.createElement('script')\n\n if (typeof opts === 'function') {\n cb = opts\n opts = {}\n }\n\n opts = opts || {}\n cb = cb || function() {}\n\n script.type = opts.type || 'text/javascript'\n script.charset = opts.charset || 'utf8';\n script.async = 'async' in opts ? !!opts.async : true\n script.src = src\n\n if (opts.attrs) {\n setAttributes(script, opts.attrs)\n }\n\n if (opts.text) {\n script.text = '' + opts.text\n }\n\n var onend = 'onload' in script ? stdOnEnd : ieOnEnd\n onend(script, cb)\n\n // some good legacy browsers (firefox) fail the 'in' detection above\n // so as a fallback we always set onload\n // old IE will ignore this and new IE will set onload\n if (!script.onload) {\n stdOnEnd(script, cb);\n }\n\n head.appendChild(script)\n}\n\nfunction setAttributes(script, attrs) {\n for (var attr in attrs) {\n script.setAttribute(attr, attrs[attr]);\n }\n}\n\nfunction stdOnEnd (script, cb) {\n script.onload = function () {\n this.onerror = this.onload = null\n cb(null, script)\n }\n script.onerror = function () {\n // this.onload = null here is necessary\n // because even IE9 works not like others\n this.onerror = this.onload = null\n cb(new Error('Failed to load ' + this.src), script)\n }\n}\n\nfunction ieOnEnd (script, cb) {\n script.onreadystatechange = function () {\n if (this.readyState != 'complete' && this.readyState != 'loaded') return\n this.onreadystatechange = null\n cb(null, script) // there is no way to catch loading errors in IE8\n }\n}\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeKeys = overArg(Object.keys, Object);\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = isEqual;\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeMax = Math.max,\n nativeNow = Date.now;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = merge;\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeMax = Math.max,\n nativeNow = Date.now;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\n/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\n/**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\nvar mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n});\n\n/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = mergeWith;\n","/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '