@coinflowlabs/vue 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coinflow-vue.js +2785 -2815
- package/dist/coinflow-vue.umd.cjs +11 -11
- package/dist/components/CoinflowPurchase.vue.d.ts +40 -58
- package/dist/components/CoinflowWithdraw.vue.d.ts +8 -41
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +9 -2
- package/dist/lib/common/CoinflowTypes.d.ts +19 -33
- package/dist/lib/common/CoinflowUtils.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(We,$e){typeof exports=="object"&&typeof module<"u"?$e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],$e):(We=typeof globalThis<"u"?globalThis:We||self,$e(We.VueTypeWriter={},We.Vue))})(this,(function(We,$e){"use strict";var Vc=(e=>(e.USER="user",e.BUSINESS="business",e.FIRST_PARTY="firstParty",e))(Vc||{}),Gc=(e=>(e.ASAP="asap",e.SAME_DAY="same_day",e.STANDARD="standard",e.CARD="card",e.IBAN="iban",e.PIX="pix",e.EFT="eft",e.VENMO="venmo",e.PAYPAL="paypal",e.WIRE="wire",e.INTERAC="interac",e.SWIFT="swift",e.CRYPTO="crypto",e))(Gc||{}),Hc=(e=>(e.Credits="Credits",e.USDC="USDC",e.Bank="Bank",e))(Hc||{});function dd(e){return"cardToken"in e}function hd(e){return"disableSavedPaymentMethods"in e}var $c=(e=>(e.Rounded="rounded",e.Sharp="sharp",e.Pill="pill",e))($c||{}),jc=(e=>(e.GUEST="guest",e.PRIVATE="private",e.BUSINESS="business",e))(jc||{}),Kc=(e=>(e.NoPreference="NoPreference",e.Frictionless="Frictionless",e.Challenge="Challenge",e))(Kc||{}),Wc=(e=>(e.debit="debit",e.credit="credit",e.prepaid="prepaid",e))(Wc||{}),zc=(e=>(e.card="card",e.ach="ach",e.fasterPayments="fasterPayments",e.sepa="sepa",e.pix="pix",e.usdc="usdc",e.googlePay="googlePay",e.applePay="applePay",e.paze="paze",e.credits="credits",e.crypto="crypto",e.wire="wire",e.cashApp="cashApp",e.apa="apa",e.paypal="paypal",e.venmo="venmo",e.interac="interac",e))(zc||{});const pd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",paze:"Paze",credits:"Credits",crypto:"Crypto",wire:"Wire Transfer",cashApp:"CashApp",apa:"APA",paypal:"PayPal",venmo:"Venmo",interac:"Interac"};var Zc=(e=>(e.VISA="VISA",e.MASTERCARD="MSTR",e.AMEX="AMEX",e.DISCOVER="DISC",e))(Zc||{});const md="rnredirect";function Us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ps(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var c=!1;try{c=this instanceof r}catch{}return c?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,c.get?c:{enumerable:!0,get:function(){return e[r]}})}),n}var Fs={},xo={},Yc;function gd(){if(Yc)return xo;Yc=1,xo.byteLength=v,xo.toByteArray=y,xo.fromByteArray=S;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,i=r.length;c<i;++c)e[c]=r[c],t[r.charCodeAt(c)]=c;t[45]=62,t[95]=63;function d(I){var B=I.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=I.indexOf("=");C===-1&&(C=B);var F=C===B?0:4-C%4;return[C,F]}function v(I){var B=d(I),C=B[0],F=B[1];return(C+F)*3/4-F}function l(I,B,C){return(B+C)*3/4-C}function y(I){var B,C=d(I),F=C[0],j=C[1],Q=new n(l(I,F,j)),W=0,se=j>0?F-4:F,ue;for(ue=0;ue<se;ue+=4)B=t[I.charCodeAt(ue)]<<18|t[I.charCodeAt(ue+1)]<<12|t[I.charCodeAt(ue+2)]<<6|t[I.charCodeAt(ue+3)],Q[W++]=B>>16&255,Q[W++]=B>>8&255,Q[W++]=B&255;return j===2&&(B=t[I.charCodeAt(ue)]<<2|t[I.charCodeAt(ue+1)]>>4,Q[W++]=B&255),j===1&&(B=t[I.charCodeAt(ue)]<<10|t[I.charCodeAt(ue+1)]<<4|t[I.charCodeAt(ue+2)]>>2,Q[W++]=B>>8&255,Q[W++]=B&255),Q}function A(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function O(I,B,C){for(var F,j=[],Q=B;Q<C;Q+=3)F=(I[Q]<<16&16711680)+(I[Q+1]<<8&65280)+(I[Q+2]&255),j.push(A(F));return j.join("")}function S(I){for(var B,C=I.length,F=C%3,j=[],Q=16383,W=0,se=C-F;W<se;W+=Q)j.push(O(I,W,W+Q>se?se:W+Q));return F===1?(B=I[C-1],j.push(e[B>>2]+e[B<<4&63]+"==")):F===2&&(B=(I[C-2]<<8)+I[C-1],j.push(e[B>>10]+e[B>>4&63]+e[B<<2&63]+"=")),j.join("")}return xo}var Ri={};var Xc;function vd(){return Xc||(Xc=1,Ri.read=function(e,t,n,r,c){var i,d,v=c*8-r-1,l=(1<<v)-1,y=l>>1,A=-7,O=n?c-1:0,S=n?-1:1,I=e[t+O];for(O+=S,i=I&(1<<-A)-1,I>>=-A,A+=v;A>0;i=i*256+e[t+O],O+=S,A-=8);for(d=i&(1<<-A)-1,i>>=-A,A+=r;A>0;d=d*256+e[t+O],O+=S,A-=8);if(i===0)i=1-y;else{if(i===l)return d?NaN:(I?-1:1)*(1/0);d=d+Math.pow(2,r),i=i-y}return(I?-1:1)*d*Math.pow(2,i-r)},Ri.write=function(e,t,n,r,c,i){var d,v,l,y=i*8-c-1,A=(1<<y)-1,O=A>>1,S=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:i-1,B=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(v=isNaN(t)?1:0,d=A):(d=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-d))<1&&(d--,l*=2),d+O>=1?t+=S/l:t+=S*Math.pow(2,1-O),t*l>=2&&(d++,l/=2),d+O>=A?(v=0,d=A):d+O>=1?(v=(t*l-1)*Math.pow(2,c),d=d+O):(v=t*Math.pow(2,O-1)*Math.pow(2,c),d=0));c>=8;e[n+I]=v&255,I+=B,v/=256,c-=8);for(d=d<<c|v,y+=c;y>0;e[n+I]=d&255,I+=B,d/=256,y-=8);e[n+I-B]|=C*128}),Ri}var qc;function Vs(){return qc||(qc=1,(function(e){const t=gd(),n=vd(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=v,e.SlowBuffer=Q,e.INSPECT_MAX_BYTES=50;const c=2147483647;e.kMaxLength=c,v.TYPED_ARRAY_SUPPORT=i(),!v.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const P=new Uint8Array(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,Uint8Array.prototype),Object.setPrototypeOf(P,E),P.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function d(P){if(P>c)throw new RangeError('The value "'+P+'" is invalid for option "size"');const E=new Uint8Array(P);return Object.setPrototypeOf(E,v.prototype),E}function v(P,E,b){if(typeof P=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(P)}return l(P,E,b)}v.poolSize=8192;function l(P,E,b){if(typeof P=="string")return S(P,E);if(ArrayBuffer.isView(P))return B(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(fe(P,ArrayBuffer)||P&&fe(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fe(P,SharedArrayBuffer)||P&&fe(P.buffer,SharedArrayBuffer)))return C(P,E,b);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const q=P.valueOf&&P.valueOf();if(q!=null&&q!==P)return v.from(q,E,b);const ve=F(P);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return v.from(P[Symbol.toPrimitive]("string"),E,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}v.from=function(P,E,b){return l(P,E,b)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function y(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function A(P,E,b){return y(P),P<=0?d(P):E!==void 0?typeof b=="string"?d(P).fill(E,b):d(P).fill(E):d(P)}v.alloc=function(P,E,b){return A(P,E,b)};function O(P){return y(P),d(P<0?0:j(P)|0)}v.allocUnsafe=function(P){return O(P)},v.allocUnsafeSlow=function(P){return O(P)};function S(P,E){if((typeof E!="string"||E==="")&&(E="utf8"),!v.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const b=W(P,E)|0;let q=d(b);const ve=q.write(P,E);return ve!==b&&(q=q.slice(0,ve)),q}function I(P){const E=P.length<0?0:j(P.length)|0,b=d(E);for(let q=0;q<E;q+=1)b[q]=P[q]&255;return b}function B(P){if(fe(P,Uint8Array)){const E=new Uint8Array(P);return C(E.buffer,E.byteOffset,E.byteLength)}return I(P)}function C(P,E,b){if(E<0||P.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<E+(b||0))throw new RangeError('"length" is outside of buffer bounds');let q;return E===void 0&&b===void 0?q=new Uint8Array(P):b===void 0?q=new Uint8Array(P,E):q=new Uint8Array(P,E,b),Object.setPrototypeOf(q,v.prototype),q}function F(P){if(v.isBuffer(P)){const E=j(P.length)|0,b=d(E);return b.length===0||P.copy(b,0,0,E),b}if(P.length!==void 0)return typeof P.length!="number"||pe(P.length)?d(0):I(P);if(P.type==="Buffer"&&Array.isArray(P.data))return I(P.data)}function j(P){if(P>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return P|0}function Q(P){return+P!=P&&(P=0),v.alloc(+P)}v.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==v.prototype},v.compare=function(E,b){if(fe(E,Uint8Array)&&(E=v.from(E,E.offset,E.byteLength)),fe(b,Uint8Array)&&(b=v.from(b,b.offset,b.byteLength)),!v.isBuffer(E)||!v.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===b)return 0;let q=E.length,ve=b.length;for(let be=0,L=Math.min(q,ve);be<L;++be)if(E[be]!==b[be]){q=E[be],ve=b[be];break}return q<ve?-1:ve<q?1:0},v.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},v.concat=function(E,b){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return v.alloc(0);let q;if(b===void 0)for(b=0,q=0;q<E.length;++q)b+=E[q].length;const ve=v.allocUnsafe(b);let be=0;for(q=0;q<E.length;++q){let L=E[q];if(fe(L,Uint8Array))be+L.length>ve.length?(v.isBuffer(L)||(L=v.from(L)),L.copy(ve,be)):Uint8Array.prototype.set.call(ve,L,be);else if(v.isBuffer(L))L.copy(ve,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=L.length}return ve};function W(P,E){if(v.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||fe(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);const b=P.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&b===0)return 0;let ve=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return vt(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return V(P).length;default:if(ve)return q?-1:vt(P).length;E=(""+E).toLowerCase(),ve=!0}}v.byteLength=W;function se(P,E,b){let q=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,E>>>=0,b<=E))return"";for(P||(P="utf8");;)switch(P){case"hex":return te(this,E,b);case"utf8":case"utf-8":return f(this,E,b);case"ascii":return $(this,E,b);case"latin1":case"binary":return Y(this,E,b);case"base64":return k(this,E,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,E,b);default:if(q)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),q=!0}}v.prototype._isBuffer=!0;function ue(P,E,b){const q=P[E];P[E]=P[b],P[b]=q}v.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 b=0;b<E;b+=2)ue(this,b,b+1);return this},v.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<E;b+=4)ue(this,b,b+3),ue(this,b+1,b+2);return this},v.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<E;b+=8)ue(this,b,b+7),ue(this,b+1,b+6),ue(this,b+2,b+5),ue(this,b+3,b+4);return this},v.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?f(this,0,E):se.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(E){if(!v.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:v.compare(this,E)===0},v.prototype.inspect=function(){let E="";const b=e.INSPECT_MAX_BYTES;return E=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(E+=" ... "),"<Buffer "+E+">"},r&&(v.prototype[r]=v.prototype.inspect),v.prototype.compare=function(E,b,q,ve,be){if(fe(E,Uint8Array)&&(E=v.from(E,E.offset,E.byteLength)),!v.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(b===void 0&&(b=0),q===void 0&&(q=E?E.length:0),ve===void 0&&(ve=0),be===void 0&&(be=this.length),b<0||q>E.length||ve<0||be>this.length)throw new RangeError("out of range index");if(ve>=be&&b>=q)return 0;if(ve>=be)return-1;if(b>=q)return 1;if(b>>>=0,q>>>=0,ve>>>=0,be>>>=0,this===E)return 0;let L=be-ve,re=q-b;const ee=Math.min(L,re),we=this.slice(ve,be),Se=E.slice(b,q);for(let Ne=0;Ne<ee;++Ne)if(we[Ne]!==Se[Ne]){L=we[Ne],re=Se[Ne];break}return L<re?-1:re<L?1:0};function oe(P,E,b,q,ve){if(P.length===0)return-1;if(typeof b=="string"?(q=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,pe(b)&&(b=ve?0:P.length-1),b<0&&(b=P.length+b),b>=P.length){if(ve)return-1;b=P.length-1}else if(b<0)if(ve)b=0;else return-1;if(typeof E=="string"&&(E=v.from(E,q)),v.isBuffer(E))return E.length===0?-1:Ee(P,E,b,q,ve);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(P,E,b):Uint8Array.prototype.lastIndexOf.call(P,E,b):Ee(P,[E],b,q,ve);throw new TypeError("val must be string, number or Buffer")}function Ee(P,E,b,q,ve){let be=1,L=P.length,re=E.length;if(q!==void 0&&(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(P.length<2||E.length<2)return-1;be=2,L/=2,re/=2,b/=2}function ee(Se,Ne){return be===1?Se[Ne]:Se.readUInt16BE(Ne*be)}let we;if(ve){let Se=-1;for(we=b;we<L;we++)if(ee(P,we)===ee(E,Se===-1?0:we-Se)){if(Se===-1&&(Se=we),we-Se+1===re)return Se*be}else Se!==-1&&(we-=we-Se),Se=-1}else for(b+re>L&&(b=L-re),we=b;we>=0;we--){let Se=!0;for(let Ne=0;Ne<re;Ne++)if(ee(P,we+Ne)!==ee(E,Ne)){Se=!1;break}if(Se)return we}return-1}v.prototype.includes=function(E,b,q){return this.indexOf(E,b,q)!==-1},v.prototype.indexOf=function(E,b,q){return oe(this,E,b,q,!0)},v.prototype.lastIndexOf=function(E,b,q){return oe(this,E,b,q,!1)};function Re(P,E,b,q){b=Number(b)||0;const ve=P.length-b;q?(q=Number(q),q>ve&&(q=ve)):q=ve;const be=E.length;q>be/2&&(q=be/2);let L;for(L=0;L<q;++L){const re=parseInt(E.substr(L*2,2),16);if(pe(re))return L;P[b+L]=re}return L}function ne(P,E,b,q){return Z(vt(E,P.length-b),P,b,q)}function ie(P,E,b,q){return Z(w(E),P,b,q)}function de(P,E,b,q){return Z(V(E),P,b,q)}function ge(P,E,b,q){return Z(x(E,P.length-b),P,b,q)}v.prototype.write=function(E,b,q,ve){if(b===void 0)ve="utf8",q=this.length,b=0;else if(q===void 0&&typeof b=="string")ve=b,q=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(q)?(q=q>>>0,ve===void 0&&(ve="utf8")):(ve=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-b;if((q===void 0||q>be)&&(q=be),E.length>0&&(q<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");let L=!1;for(;;)switch(ve){case"hex":return Re(this,E,b,q);case"utf8":case"utf-8":return ne(this,E,b,q);case"ascii":case"latin1":case"binary":return ie(this,E,b,q);case"base64":return de(this,E,b,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,E,b,q);default:if(L)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),L=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(P,E,b){return E===0&&b===P.length?t.fromByteArray(P):t.fromByteArray(P.slice(E,b))}function f(P,E,b){b=Math.min(P.length,b);const q=[];let ve=E;for(;ve<b;){const be=P[ve];let L=null,re=be>239?4:be>223?3:be>191?2:1;if(ve+re<=b){let ee,we,Se,Ne;switch(re){case 1:be<128&&(L=be);break;case 2:ee=P[ve+1],(ee&192)===128&&(Ne=(be&31)<<6|ee&63,Ne>127&&(L=Ne));break;case 3:ee=P[ve+1],we=P[ve+2],(ee&192)===128&&(we&192)===128&&(Ne=(be&15)<<12|(ee&63)<<6|we&63,Ne>2047&&(Ne<55296||Ne>57343)&&(L=Ne));break;case 4:ee=P[ve+1],we=P[ve+2],Se=P[ve+3],(ee&192)===128&&(we&192)===128&&(Se&192)===128&&(Ne=(be&15)<<18|(ee&63)<<12|(we&63)<<6|Se&63,Ne>65535&&Ne<1114112&&(L=Ne))}}L===null?(L=65533,re=1):L>65535&&(L-=65536,q.push(L>>>10&1023|55296),L=56320|L&1023),q.push(L),ve+=re}return M(q)}const R=4096;function M(P){const E=P.length;if(E<=R)return String.fromCharCode.apply(String,P);let b="",q=0;for(;q<E;)b+=String.fromCharCode.apply(String,P.slice(q,q+=R));return b}function $(P,E,b){let q="";b=Math.min(P.length,b);for(let ve=E;ve<b;++ve)q+=String.fromCharCode(P[ve]&127);return q}function Y(P,E,b){let q="";b=Math.min(P.length,b);for(let ve=E;ve<b;++ve)q+=String.fromCharCode(P[ve]);return q}function te(P,E,b){const q=P.length;(!E||E<0)&&(E=0),(!b||b<0||b>q)&&(b=q);let ve="";for(let be=E;be<b;++be)ve+=Me[P[be]];return ve}function ae(P,E,b){const q=P.slice(E,b);let ve="";for(let be=0;be<q.length-1;be+=2)ve+=String.fromCharCode(q[be]+q[be+1]*256);return ve}v.prototype.slice=function(E,b){const q=this.length;E=~~E,b=b===void 0?q:~~b,E<0?(E+=q,E<0&&(E=0)):E>q&&(E=q),b<0?(b+=q,b<0&&(b=0)):b>q&&(b=q),b<E&&(b=E);const ve=this.subarray(E,b);return Object.setPrototypeOf(ve,v.prototype),ve};function K(P,E,b){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+E>b)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=this[E],be=1,L=0;for(;++L<b&&(be*=256);)ve+=this[E+L]*be;return ve},v.prototype.readUintBE=v.prototype.readUIntBE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=this[E+--b],be=1;for(;b>0&&(be*=256);)ve+=this[E+--b]*be;return ve},v.prototype.readUint8=v.prototype.readUInt8=function(E,b){return E=E>>>0,b||K(E,1,this.length),this[E]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(E,b){return E=E>>>0,b||K(E,2,this.length),this[E]|this[E+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(E,b){return E=E>>>0,b||K(E,2,this.length),this[E]<<8|this[E+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(E,b){return E=E>>>0,b||K(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},v.prototype.readBigUInt64LE=tt(function(E){E=E>>>0,_t(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=b+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,be=this[++E]+this[++E]*2**8+this[++E]*2**16+q*2**24;return BigInt(ve)+(BigInt(be)<<BigInt(32))}),v.prototype.readBigUInt64BE=tt(function(E){E=E>>>0,_t(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=b*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],be=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+q;return(BigInt(ve)<<BigInt(32))+BigInt(be)}),v.prototype.readIntLE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=this[E],be=1,L=0;for(;++L<b&&(be*=256);)ve+=this[E+L]*be;return be*=128,ve>=be&&(ve-=Math.pow(2,8*b)),ve},v.prototype.readIntBE=function(E,b,q){E=E>>>0,b=b>>>0,q||K(E,b,this.length);let ve=b,be=1,L=this[E+--ve];for(;ve>0&&(be*=256);)L+=this[E+--ve]*be;return be*=128,L>=be&&(L-=Math.pow(2,8*b)),L},v.prototype.readInt8=function(E,b){return E=E>>>0,b||K(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},v.prototype.readInt16LE=function(E,b){E=E>>>0,b||K(E,2,this.length);const q=this[E]|this[E+1]<<8;return q&32768?q|4294901760:q},v.prototype.readInt16BE=function(E,b){E=E>>>0,b||K(E,2,this.length);const q=this[E+1]|this[E]<<8;return q&32768?q|4294901760:q},v.prototype.readInt32LE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},v.prototype.readInt32BE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},v.prototype.readBigInt64LE=tt(function(E){E=E>>>0,_t(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(q<<24);return(BigInt(ve)<<BigInt(32))+BigInt(b+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),v.prototype.readBigInt64BE=tt(function(E){E=E>>>0,_t(E,"offset");const b=this[E],q=this[E+7];(b===void 0||q===void 0)&&pt(E,this.length-8);const ve=(b<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(ve)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+q)}),v.prototype.readFloatLE=function(E,b){return E=E>>>0,b||K(E,4,this.length),n.read(this,E,!0,23,4)},v.prototype.readFloatBE=function(E,b){return E=E>>>0,b||K(E,4,this.length),n.read(this,E,!1,23,4)},v.prototype.readDoubleLE=function(E,b){return E=E>>>0,b||K(E,8,this.length),n.read(this,E,!0,52,8)},v.prototype.readDoubleBE=function(E,b){return E=E>>>0,b||K(E,8,this.length),n.read(this,E,!1,52,8)};function g(P,E,b,q,ve,be){if(!v.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>ve||E<be)throw new RangeError('"value" argument is out of bounds');if(b+q>P.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(E,b,q,ve){if(E=+E,b=b>>>0,q=q>>>0,!ve){const re=Math.pow(2,8*q)-1;g(this,E,b,q,re,0)}let be=1,L=0;for(this[b]=E&255;++L<q&&(be*=256);)this[b+L]=E/be&255;return b+q},v.prototype.writeUintBE=v.prototype.writeUIntBE=function(E,b,q,ve){if(E=+E,b=b>>>0,q=q>>>0,!ve){const re=Math.pow(2,8*q)-1;g(this,E,b,q,re,0)}let be=q-1,L=1;for(this[b+be]=E&255;--be>=0&&(L*=256);)this[b+be]=E/L&255;return b+q},v.prototype.writeUint8=v.prototype.writeUInt8=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,1,255,0),this[b]=E&255,b+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,65535,0),this[b]=E&255,this[b+1]=E>>>8,b+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,65535,0),this[b]=E>>>8,this[b+1]=E&255,b+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,4294967295,0),this[b+3]=E>>>24,this[b+2]=E>>>16,this[b+1]=E>>>8,this[b]=E&255,b+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,4294967295,0),this[b]=E>>>24,this[b+1]=E>>>16,this[b+2]=E>>>8,this[b+3]=E&255,b+4};function _(P,E,b,q,ve){ut(E,q,ve,P,b,7);let be=Number(E&BigInt(4294967295));P[b++]=be,be=be>>8,P[b++]=be,be=be>>8,P[b++]=be,be=be>>8,P[b++]=be;let L=Number(E>>BigInt(32)&BigInt(4294967295));return P[b++]=L,L=L>>8,P[b++]=L,L=L>>8,P[b++]=L,L=L>>8,P[b++]=L,b}function H(P,E,b,q,ve){ut(E,q,ve,P,b,7);let be=Number(E&BigInt(4294967295));P[b+7]=be,be=be>>8,P[b+6]=be,be=be>>8,P[b+5]=be,be=be>>8,P[b+4]=be;let L=Number(E>>BigInt(32)&BigInt(4294967295));return P[b+3]=L,L=L>>8,P[b+2]=L,L=L>>8,P[b+1]=L,L=L>>8,P[b]=L,b+8}v.prototype.writeBigUInt64LE=tt(function(E,b=0){return _(this,E,b,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=tt(function(E,b=0){return H(this,E,b,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeIntLE=function(E,b,q,ve){if(E=+E,b=b>>>0,!ve){const ee=Math.pow(2,8*q-1);g(this,E,b,q,ee-1,-ee)}let be=0,L=1,re=0;for(this[b]=E&255;++be<q&&(L*=256);)E<0&&re===0&&this[b+be-1]!==0&&(re=1),this[b+be]=(E/L>>0)-re&255;return b+q},v.prototype.writeIntBE=function(E,b,q,ve){if(E=+E,b=b>>>0,!ve){const ee=Math.pow(2,8*q-1);g(this,E,b,q,ee-1,-ee)}let be=q-1,L=1,re=0;for(this[b+be]=E&255;--be>=0&&(L*=256);)E<0&&re===0&&this[b+be+1]!==0&&(re=1),this[b+be]=(E/L>>0)-re&255;return b+q},v.prototype.writeInt8=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,1,127,-128),E<0&&(E=255+E+1),this[b]=E&255,b+1},v.prototype.writeInt16LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,32767,-32768),this[b]=E&255,this[b+1]=E>>>8,b+2},v.prototype.writeInt16BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,2,32767,-32768),this[b]=E>>>8,this[b+1]=E&255,b+2},v.prototype.writeInt32LE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,2147483647,-2147483648),this[b]=E&255,this[b+1]=E>>>8,this[b+2]=E>>>16,this[b+3]=E>>>24,b+4},v.prototype.writeInt32BE=function(E,b,q){return E=+E,b=b>>>0,q||g(this,E,b,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[b]=E>>>24,this[b+1]=E>>>16,this[b+2]=E>>>8,this[b+3]=E&255,b+4},v.prototype.writeBigInt64LE=tt(function(E,b=0){return _(this,E,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.prototype.writeBigInt64BE=tt(function(E,b=0){return H(this,E,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(P,E,b,q,ve,be){if(b+q>P.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function me(P,E,b,q,ve){return E=+E,b=b>>>0,ve||J(P,E,b,4),n.write(P,E,b,q,23,4),b+4}v.prototype.writeFloatLE=function(E,b,q){return me(this,E,b,!0,q)},v.prototype.writeFloatBE=function(E,b,q){return me(this,E,b,!1,q)};function ye(P,E,b,q,ve){return E=+E,b=b>>>0,ve||J(P,E,b,8),n.write(P,E,b,q,52,8),b+8}v.prototype.writeDoubleLE=function(E,b,q){return ye(this,E,b,!0,q)},v.prototype.writeDoubleBE=function(E,b,q){return ye(this,E,b,!1,q)},v.prototype.copy=function(E,b,q,ve){if(!v.isBuffer(E))throw new TypeError("argument should be a Buffer");if(q||(q=0),!ve&&ve!==0&&(ve=this.length),b>=E.length&&(b=E.length),b||(b=0),ve>0&&ve<q&&(ve=q),ve===q||E.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(q<0||q>=this.length)throw new RangeError("Index out of range");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),E.length-b<ve-q&&(ve=E.length-b+q);const be=ve-q;return this===E&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,q,ve):Uint8Array.prototype.set.call(E,this.subarray(q,ve),b),be},v.prototype.fill=function(E,b,q,ve){if(typeof E=="string"){if(typeof b=="string"?(ve=b,b=0,q=this.length):typeof q=="string"&&(ve=q,q=this.length),ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!v.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);if(E.length===1){const L=E.charCodeAt(0);(ve==="utf8"&&L<128||ve==="latin1")&&(E=L)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(b<0||this.length<b||this.length<q)throw new RangeError("Out of range index");if(q<=b)return this;b=b>>>0,q=q===void 0?this.length:q>>>0,E||(E=0);let be;if(typeof E=="number")for(be=b;be<q;++be)this[be]=E;else{const L=v.isBuffer(E)?E:v.from(E,ve),re=L.length;if(re===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(be=0;be<q-b;++be)this[be+b]=L[be%re]}return this};const Ue={};function Ke(P,E,b){Ue[P]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:E.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${P}]`,this.stack,delete this.name}get code(){return P}set code(ve){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ve,writable:!0})}toString(){return`${this.name} [${P}]: ${this.message}`}}}Ke("ERR_BUFFER_OUT_OF_BOUNDS",function(P){return P?`${P} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ke("ERR_INVALID_ARG_TYPE",function(P,E){return`The "${P}" argument must be of type number. Received type ${typeof E}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(P,E,b){let q=`The value of "${P}" is out of range.`,ve=b;return Number.isInteger(b)&&Math.abs(b)>2**32?ve=st(String(b)):typeof b=="bigint"&&(ve=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(ve=st(ve)),ve+="n"),q+=` It must be ${E}. Received ${ve}`,q},RangeError);function st(P){let E="",b=P.length;const q=P[0]==="-"?1:0;for(;b>=q+4;b-=3)E=`_${P.slice(b-3,b)}${E}`;return`${P.slice(0,b)}${E}`}function at(P,E,b){_t(E,"offset"),(P[E]===void 0||P[E+b]===void 0)&&pt(E,P.length-(b+1))}function ut(P,E,b,q,ve,be){if(P>b||P<E){const L=typeof E=="bigint"?"n":"";let re;throw E===0||E===BigInt(0)?re=`>= 0${L} and < 2${L} ** ${(be+1)*8}${L}`:re=`>= -(2${L} ** ${(be+1)*8-1}${L}) and < 2 ** ${(be+1)*8-1}${L}`,new Ue.ERR_OUT_OF_RANGE("value",re,P)}at(q,ve,be)}function _t(P,E){if(typeof P!="number")throw new Ue.ERR_INVALID_ARG_TYPE(E,"number",P)}function pt(P,E,b){throw Math.floor(P)!==P?(_t(P,b),new Ue.ERR_OUT_OF_RANGE("offset","an integer",P)):E<0?new Ue.ERR_BUFFER_OUT_OF_BOUNDS:new Ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,P)}const Rt=/[^+/0-9A-Za-z-_]/g;function Pt(P){if(P=P.split("=")[0],P=P.trim().replace(Rt,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function vt(P,E){E=E||1/0;let b;const q=P.length;let ve=null;const be=[];for(let L=0;L<q;++L){if(b=P.charCodeAt(L),b>55295&&b<57344){if(!ve){if(b>56319){(E-=3)>-1&&be.push(239,191,189);continue}else if(L+1===q){(E-=3)>-1&&be.push(239,191,189);continue}ve=b;continue}if(b<56320){(E-=3)>-1&&be.push(239,191,189),ve=b;continue}b=(ve-55296<<10|b-56320)+65536}else ve&&(E-=3)>-1&&be.push(239,191,189);if(ve=null,b<128){if((E-=1)<0)break;be.push(b)}else if(b<2048){if((E-=2)<0)break;be.push(b>>6|192,b&63|128)}else if(b<65536){if((E-=3)<0)break;be.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((E-=4)<0)break;be.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return be}function w(P){const E=[];for(let b=0;b<P.length;++b)E.push(P.charCodeAt(b)&255);return E}function x(P,E){let b,q,ve;const be=[];for(let L=0;L<P.length&&!((E-=2)<0);++L)b=P.charCodeAt(L),q=b>>8,ve=b%256,be.push(ve),be.push(q);return be}function V(P){return t.toByteArray(Pt(P))}function Z(P,E,b,q){let ve;for(ve=0;ve<q&&!(ve+b>=E.length||ve>=P.length);++ve)E[ve+b]=P[ve];return ve}function fe(P,E){return P instanceof E||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===E.name}function pe(P){return P!==P}const Me=(function(){const P="0123456789abcdef",E=new Array(256);for(let b=0;b<16;++b){const q=b*16;for(let ve=0;ve<16;++ve)E[q+ve]=P[b]+P[ve]}return E})();function tt(P){return typeof BigInt>"u"?Qe:P}function Qe(){throw new Error("BigInt not supported")}})(Fs)),Fs}var wt=Vs();const qr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Lo(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Gs(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function xr(e,...t){if(!Lo(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Jc(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Gs(e.outputLen),Gs(e.blockLen)}function bi(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 yd(e,t){xr(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Jr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Hs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Xn(e,t){return e<<32-t|e>>>t}const Qc=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",wd=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Lr(e){if(xr(e),Qc)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=wd[e[n]];return t}const ir={_0:48,_9:57,A:65,F:70,a:97,f:102};function eu(e){if(e>=ir._0&&e<=ir._9)return e-ir._0;if(e>=ir.A&&e<=ir.F)return e-(ir.A-10);if(e>=ir.a&&e<=ir.f)return e-(ir.a-10)}function Ai(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Qc)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let c=0,i=0;c<n;c++,i+=2){const d=eu(e.charCodeAt(i)),v=eu(e.charCodeAt(i+1));if(d===void 0||v===void 0){const l=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}r[c]=d*16+v}return r}function _d(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function $s(e){return typeof e=="string"&&(e=_d(e)),xr(e),e}function qn(...e){let t=0;for(let r=0;r<e.length;r++){const c=e[r];xr(c),t+=c.length}const n=new Uint8Array(t);for(let r=0,c=0;r<e.length;r++){const i=e[r];n.set(i,c),c+=i.length}return n}class tu{}function nu(e){const t=r=>e().update($s(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function js(e=32){if(qr&&typeof qr.getRandomValues=="function")return qr.getRandomValues(new Uint8Array(e));if(qr&&typeof qr.randomBytes=="function")return Uint8Array.from(qr.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function Ed(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const c=BigInt(32),i=BigInt(4294967295),d=Number(n>>c&i),v=Number(n&i),l=r?4:0,y=r?0:4;e.setUint32(t+l,d,r),e.setUint32(t+y,v,r)}function Rd(e,t,n){return e&t^~e&n}function bd(e,t,n){return e&t^e&n^t&n}class ru extends tu{constructor(t,n,r,c){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=c,this.buffer=new Uint8Array(t),this.view=Hs(this.buffer)}update(t){bi(this),t=$s(t),xr(t);const{view:n,buffer:r,blockLen:c}=this,i=t.length;for(let d=0;d<i;){const v=Math.min(c-this.pos,i-d);if(v===c){const l=Hs(t);for(;c<=i-d;d+=c)this.process(l,d);continue}r.set(t.subarray(d,d+v),this.pos),this.pos+=v,d+=v,this.pos===c&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){bi(this),yd(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:c,isLE:i}=this;let{pos:d}=this;n[d++]=128,Jr(this.buffer.subarray(d)),this.padOffset>c-d&&(this.process(r,0),d=0);for(let O=d;O<c;O++)n[O]=0;Ed(r,c-8,BigInt(this.length*8),i),this.process(r,0);const v=Hs(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=l/4,A=this.get();if(y>A.length)throw new Error("_sha2: outputLen bigger than state");for(let O=0;O<y;O++)v.setUint32(4*O,A[O],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:c,finished:i,destroyed:d,pos:v}=this;return t.destroyed=d,t.finished=i,t.length=c,t.pos=v,c%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const gr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_n=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Si=BigInt(2**32-1),ou=BigInt(32);function Ad(e,t=!1){return t?{h:Number(e&Si),l:Number(e>>ou&Si)}:{h:Number(e>>ou&Si)|0,l:Number(e&Si)|0}}function Sd(e,t=!1){const n=e.length;let r=new Uint32Array(n),c=new Uint32Array(n);for(let i=0;i<n;i++){const{h:d,l:v}=Ad(e[i],t);[r[i],c[i]]=[d,v]}return[r,c]}const iu=(e,t,n)=>e>>>n,su=(e,t,n)=>e<<32-n|t>>>n,Qr=(e,t,n)=>e>>>n|t<<32-n,eo=(e,t,n)=>e<<32-n|t>>>n,Ii=(e,t,n)=>e<<64-n|t>>>n-32,Oi=(e,t,n)=>e>>>n-32|t<<64-n;function sr(e,t,n,r){const c=(t>>>0)+(r>>>0);return{h:e+n+(c/2**32|0)|0,l:c|0}}const Id=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),Od=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Nd=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),Td=(e,t,n,r,c)=>t+n+r+c+(e/2**32|0)|0,xd=(e,t,n,r,c)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(c>>>0),Ld=(e,t,n,r,c,i)=>t+n+r+c+i+(e/2**32|0)|0,Cd=Uint32Array.from([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]),vr=new Uint32Array(64);class Md extends ru{constructor(t=32){super(64,t,8,!1),this.A=gr[0]|0,this.B=gr[1]|0,this.C=gr[2]|0,this.D=gr[3]|0,this.E=gr[4]|0,this.F=gr[5]|0,this.G=gr[6]|0,this.H=gr[7]|0}get(){const{A:t,B:n,C:r,D:c,E:i,F:d,G:v,H:l}=this;return[t,n,r,c,i,d,v,l]}set(t,n,r,c,i,d,v,l){this.A=t|0,this.B=n|0,this.C=r|0,this.D=c|0,this.E=i|0,this.F=d|0,this.G=v|0,this.H=l|0}process(t,n){for(let O=0;O<16;O++,n+=4)vr[O]=t.getUint32(n,!1);for(let O=16;O<64;O++){const S=vr[O-15],I=vr[O-2],B=Xn(S,7)^Xn(S,18)^S>>>3,C=Xn(I,17)^Xn(I,19)^I>>>10;vr[O]=C+vr[O-7]+B+vr[O-16]|0}let{A:r,B:c,C:i,D:d,E:v,F:l,G:y,H:A}=this;for(let O=0;O<64;O++){const S=Xn(v,6)^Xn(v,11)^Xn(v,25),I=A+S+Rd(v,l,y)+Cd[O]+vr[O]|0,C=(Xn(r,2)^Xn(r,13)^Xn(r,22))+bd(r,c,i)|0;A=y,y=l,l=v,v=d+I|0,d=i,i=c,c=r,r=I+C|0}r=r+this.A|0,c=c+this.B|0,i=i+this.C|0,d=d+this.D|0,v=v+this.E|0,l=l+this.F|0,y=y+this.G|0,A=A+this.H|0,this.set(r,c,i,d,v,l,y,A)}roundClean(){Jr(vr)}destroy(){this.set(0,0,0,0,0,0,0,0),Jr(this.buffer)}}const au=Sd(["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))),Bd=au[0],kd=au[1],yr=new Uint32Array(80),wr=new Uint32Array(80);class Dd extends ru{constructor(t=64){super(128,t,16,!1),this.Ah=_n[0]|0,this.Al=_n[1]|0,this.Bh=_n[2]|0,this.Bl=_n[3]|0,this.Ch=_n[4]|0,this.Cl=_n[5]|0,this.Dh=_n[6]|0,this.Dl=_n[7]|0,this.Eh=_n[8]|0,this.El=_n[9]|0,this.Fh=_n[10]|0,this.Fl=_n[11]|0,this.Gh=_n[12]|0,this.Gl=_n[13]|0,this.Hh=_n[14]|0,this.Hl=_n[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:c,Ch:i,Cl:d,Dh:v,Dl:l,Eh:y,El:A,Fh:O,Fl:S,Gh:I,Gl:B,Hh:C,Hl:F}=this;return[t,n,r,c,i,d,v,l,y,A,O,S,I,B,C,F]}set(t,n,r,c,i,d,v,l,y,A,O,S,I,B,C,F){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=c|0,this.Ch=i|0,this.Cl=d|0,this.Dh=v|0,this.Dl=l|0,this.Eh=y|0,this.El=A|0,this.Fh=O|0,this.Fl=S|0,this.Gh=I|0,this.Gl=B|0,this.Hh=C|0,this.Hl=F|0}process(t,n){for(let W=0;W<16;W++,n+=4)yr[W]=t.getUint32(n),wr[W]=t.getUint32(n+=4);for(let W=16;W<80;W++){const se=yr[W-15]|0,ue=wr[W-15]|0,oe=Qr(se,ue,1)^Qr(se,ue,8)^iu(se,ue,7),Ee=eo(se,ue,1)^eo(se,ue,8)^su(se,ue,7),Re=yr[W-2]|0,ne=wr[W-2]|0,ie=Qr(Re,ne,19)^Ii(Re,ne,61)^iu(Re,ne,6),de=eo(Re,ne,19)^Oi(Re,ne,61)^su(Re,ne,6),ge=Nd(Ee,de,wr[W-7],wr[W-16]),k=Td(ge,oe,ie,yr[W-7],yr[W-16]);yr[W]=k|0,wr[W]=ge|0}let{Ah:r,Al:c,Bh:i,Bl:d,Ch:v,Cl:l,Dh:y,Dl:A,Eh:O,El:S,Fh:I,Fl:B,Gh:C,Gl:F,Hh:j,Hl:Q}=this;for(let W=0;W<80;W++){const se=Qr(O,S,14)^Qr(O,S,18)^Ii(O,S,41),ue=eo(O,S,14)^eo(O,S,18)^Oi(O,S,41),oe=O&I^~O&C,Ee=S&B^~S&F,Re=xd(Q,ue,Ee,kd[W],wr[W]),ne=Ld(Re,j,se,oe,Bd[W],yr[W]),ie=Re|0,de=Qr(r,c,28)^Ii(r,c,34)^Ii(r,c,39),ge=eo(r,c,28)^Oi(r,c,34)^Oi(r,c,39),k=r&i^r&v^i&v,f=c&d^c&l^d&l;j=C|0,Q=F|0,C=I|0,F=B|0,I=O|0,B=S|0,{h:O,l:S}=sr(y|0,A|0,ne|0,ie|0),y=v|0,A=l|0,v=i|0,l=d|0,i=r|0,d=c|0;const R=Id(ie,ge,f);r=Od(R,ne,de,k),c=R|0}({h:r,l:c}=sr(this.Ah|0,this.Al|0,r|0,c|0)),{h:i,l:d}=sr(this.Bh|0,this.Bl|0,i|0,d|0),{h:v,l}=sr(this.Ch|0,this.Cl|0,v|0,l|0),{h:y,l:A}=sr(this.Dh|0,this.Dl|0,y|0,A|0),{h:O,l:S}=sr(this.Eh|0,this.El|0,O|0,S|0),{h:I,l:B}=sr(this.Fh|0,this.Fl|0,I|0,B|0),{h:C,l:F}=sr(this.Gh|0,this.Gl|0,C|0,F|0),{h:j,l:Q}=sr(this.Hh|0,this.Hl|0,j|0,Q|0),this.set(r,c,i,d,v,l,y,A,O,S,I,B,C,F,j,Q)}roundClean(){Jr(yr,wr)}destroy(){Jr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const cu=nu(()=>new Md),Ud=nu(()=>new Dd);const Ks=BigInt(0),Ws=BigInt(1);function Cr(e,t=""){if(typeof e!="boolean"){const n=t&&`"${t}"`;throw new Error(n+"expected boolean, got type="+typeof e)}return e}function Wn(e,t,n=""){const r=Lo(e),c=e?.length,i=t!==void 0;if(!r||i&&c!==t){const d=n&&`"${n}" `,v=i?` of length ${t}`:"",l=r?`length=${c}`:`type=${typeof e}`;throw new Error(d+"expected Uint8Array"+v+", got "+l)}return e}function Ni(e){const t=e.toString(16);return t.length&1?"0"+t:t}function uu(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Ks:BigInt("0x"+e)}function Ti(e){return uu(Lr(e))}function Co(e){return xr(e),uu(Lr(Uint8Array.from(e).reverse()))}function zs(e,t){return Ai(e.toString(16).padStart(t*2,"0"))}function fu(e,t){return zs(e,t).reverse()}function jt(e,t,n){let r;if(typeof t=="string")try{r=Ai(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(Lo(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const c=r.length;if(typeof n=="number"&&c!==n)throw new Error(e+" of length "+n+" expected, got "+c);return r}function lu(e){return Uint8Array.from(e)}const Zs=e=>typeof e=="bigint"&&Ks<=e;function Pd(e,t,n){return Zs(e)&&Zs(t)&&Zs(n)&&t<=e&&e<n}function Ys(e,t,n,r){if(!Pd(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function du(e){let t;for(t=0;e>Ks;e>>=Ws,t+=1);return t}const Mo=e=>(Ws<<BigInt(e))-Ws;function Fd(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");const r=I=>new Uint8Array(I),c=I=>Uint8Array.of(I);let i=r(e),d=r(e),v=0;const l=()=>{i.fill(1),d.fill(0),v=0},y=(...I)=>n(d,i,...I),A=(I=r(0))=>{d=y(c(0),I),i=y(),I.length!==0&&(d=y(c(1),I),i=y())},O=()=>{if(v++>=1e3)throw new Error("drbg: tried 1000 values");let I=0;const B=[];for(;I<t;){i=y();const C=i.slice();B.push(C),I+=i.length}return qn(...B)};return(I,B)=>{l(),A(I);let C;for(;!(C=B(O()));)A();return l(),C}}function Bo(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(c,i,d){const v=e[c];if(d&&v===void 0)return;const l=typeof v;if(l!==i||v===null)throw new Error(`param "${c}" is invalid: expected ${i}, got ${l}`)}Object.entries(t).forEach(([c,i])=>r(c,i,!1)),Object.entries(n).forEach(([c,i])=>r(c,i,!0))}function xi(e){const t=new WeakMap;return(n,...r)=>{const c=t.get(n);if(c!==void 0)return c;const i=e(n,...r);return t.set(n,i),i}}const Ln=BigInt(0),gn=BigInt(1),Mr=BigInt(2),hu=BigInt(3),pu=BigInt(4),mu=BigInt(5),Vd=BigInt(7),gu=BigInt(8),Gd=BigInt(9),vu=BigInt(16);function en(e,t){const n=e%t;return n>=Ln?n:t+n}function Kt(e,t,n){let r=e;for(;t-- >Ln;)r*=r,r%=n;return r}function yu(e,t){if(e===Ln)throw new Error("invert: expected non-zero number");if(t<=Ln)throw new Error("invert: expected positive modulus, got "+t);let n=en(e,t),r=t,c=Ln,i=gn;for(;n!==Ln;){const v=r/n,l=r%n,y=c-i*v;r=n,n=l,c=i,i=y}if(r!==gn)throw new Error("invert: does not exist");return en(c,t)}function Xs(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function wu(e,t){const n=(e.ORDER+gn)/pu,r=e.pow(t,n);return Xs(e,r,t),r}function Hd(e,t){const n=(e.ORDER-mu)/gu,r=e.mul(t,Mr),c=e.pow(r,n),i=e.mul(t,c),d=e.mul(e.mul(i,Mr),c),v=e.mul(i,e.sub(d,e.ONE));return Xs(e,v,t),v}function $d(e){const t=Br(e),n=_u(e),r=n(t,t.neg(t.ONE)),c=n(t,r),i=n(t,t.neg(r)),d=(e+Vd)/vu;return(v,l)=>{let y=v.pow(l,d),A=v.mul(y,r);const O=v.mul(y,c),S=v.mul(y,i),I=v.eql(v.sqr(A),l),B=v.eql(v.sqr(O),l);y=v.cmov(y,A,I),A=v.cmov(S,O,B);const C=v.eql(v.sqr(A),l),F=v.cmov(y,A,C);return Xs(v,F,l),F}}function _u(e){if(e<hu)throw new Error("sqrt is not defined for small field");let t=e-gn,n=0;for(;t%Mr===Ln;)t/=Mr,n++;let r=Mr;const c=Br(e);for(;Ru(c,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return wu;let i=c.pow(r,t);const d=(t+gn)/Mr;return function(l,y){if(l.is0(y))return y;if(Ru(l,y)!==1)throw new Error("Cannot find square root");let A=n,O=l.mul(l.ONE,i),S=l.pow(y,t),I=l.pow(y,d);for(;!l.eql(S,l.ONE);){if(l.is0(S))return l.ZERO;let B=1,C=l.sqr(S);for(;!l.eql(C,l.ONE);)if(B++,C=l.sqr(C),B===A)throw new Error("Cannot find square root");const F=gn<<BigInt(A-B-1),j=l.pow(O,F);A=B,O=l.sqr(j),S=l.mul(S,O),I=l.mul(I,j)}return I}}function jd(e){return e%pu===hu?wu:e%gu===mu?Hd:e%vu===Gd?$d(e):_u(e)}const Kd=(e,t)=>(en(e,t)&gn)===gn,Wd=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function zd(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},n=Wd.reduce((r,c)=>(r[c]="function",r),t);return Bo(e,n),e}function Zd(e,t,n){if(n<Ln)throw new Error("invalid exponent, negatives unsupported");if(n===Ln)return e.ONE;if(n===gn)return t;let r=e.ONE,c=t;for(;n>Ln;)n&gn&&(r=e.mul(r,c)),c=e.sqr(c),n>>=gn;return r}function Eu(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),c=t.reduce((d,v,l)=>e.is0(v)?d:(r[l]=d,e.mul(d,v)),e.ONE),i=e.inv(c);return t.reduceRight((d,v,l)=>e.is0(v)?d:(r[l]=e.mul(d,r[l]),e.mul(d,v)),i),r}function Ru(e,t){const n=(e.ORDER-gn)/Mr,r=e.pow(t,n),c=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),d=e.eql(r,e.neg(e.ONE));if(!c&&!i&&!d)throw new Error("invalid Legendre symbol result");return c?1:i?0:-1}function bu(e,t){t!==void 0&&Gs(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Br(e,t,n=!1,r={}){if(e<=Ln)throw new Error("invalid field: expected ORDER > 0, got "+e);let c,i,d=!1,v;if(typeof t=="object"&&t!=null){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const S=t;S.BITS&&(c=S.BITS),S.sqrt&&(i=S.sqrt),typeof S.isLE=="boolean"&&(n=S.isLE),typeof S.modFromBytes=="boolean"&&(d=S.modFromBytes),v=S.allowedLengths}else typeof t=="number"&&(c=t),r.sqrt&&(i=r.sqrt);const{nBitLength:l,nByteLength:y}=bu(e,c);if(y>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let A;const O=Object.freeze({ORDER:e,isLE:n,BITS:l,BYTES:y,MASK:Mo(l),ZERO:Ln,ONE:gn,allowedLengths:v,create:S=>en(S,e),isValid:S=>{if(typeof S!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof S);return Ln<=S&&S<e},is0:S=>S===Ln,isValidNot0:S=>!O.is0(S)&&O.isValid(S),isOdd:S=>(S&gn)===gn,neg:S=>en(-S,e),eql:(S,I)=>S===I,sqr:S=>en(S*S,e),add:(S,I)=>en(S+I,e),sub:(S,I)=>en(S-I,e),mul:(S,I)=>en(S*I,e),pow:(S,I)=>Zd(O,S,I),div:(S,I)=>en(S*yu(I,e),e),sqrN:S=>S*S,addN:(S,I)=>S+I,subN:(S,I)=>S-I,mulN:(S,I)=>S*I,inv:S=>yu(S,e),sqrt:i||(S=>(A||(A=jd(e)),A(O,S))),toBytes:S=>n?fu(S,y):zs(S,y),fromBytes:(S,I=!0)=>{if(v){if(!v.includes(S.length)||S.length>y)throw new Error("Field.fromBytes: expected "+v+" bytes, got "+S.length);const C=new Uint8Array(y);C.set(S,n?0:C.length-S.length),S=C}if(S.length!==y)throw new Error("Field.fromBytes: expected "+y+" bytes, got "+S.length);let B=n?Co(S):Ti(S);if(d&&(B=en(B,e)),!I&&!O.isValid(B))throw new Error("invalid field element: outside of range 0..ORDER");return B},invertBatch:S=>Eu(O,S),cmov:(S,I,B)=>B?I:S});return Object.freeze(O)}function Au(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Su(e){const t=Au(e);return t+Math.ceil(t/2)}function Yd(e,t,n=!1){const r=e.length,c=Au(t),i=Su(t);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const d=n?Co(e):Ti(e),v=en(d,t-gn)+gn;return n?fu(v,c):zs(v,c)}const to=BigInt(0),kr=BigInt(1);function Li(e,t){const n=t.negate();return e?n:t}function Dr(e,t){const n=Eu(e.Fp,t.map(r=>r.Z));return t.map((r,c)=>e.fromAffine(r.toAffine(n[c])))}function Iu(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function qs(e,t){Iu(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),c=2**e,i=Mo(e),d=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:c,shiftBy:d}}function Ou(e,t,n){const{windowSize:r,mask:c,maxNumber:i,shiftBy:d}=n;let v=Number(e&c),l=e>>d;v>r&&(v-=i,l+=kr);const y=t*r,A=y+Math.abs(v)-1,O=v===0,S=v<0,I=t%2!==0;return{nextN:l,offset:A,isZero:O,isNeg:S,isNegF:I,offsetF:y}}function Xd(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function qd(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const Js=new WeakMap,Nu=new WeakMap;function Qs(e){return Nu.get(e)||1}function Tu(e){if(e!==to)throw new Error("invalid wNAF")}class xu{constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let c=t;for(;n>to;)n&kr&&(r=r.add(c)),c=c.double(),n>>=kr;return r}precomputeWindow(t,n){const{windows:r,windowSize:c}=qs(n,this.bits),i=[];let d=t,v=d;for(let l=0;l<r;l++){v=d,i.push(v);for(let y=1;y<c;y++)v=v.add(d),i.push(v);d=v.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let c=this.ZERO,i=this.BASE;const d=qs(t,this.bits);for(let v=0;v<d.windows;v++){const{nextN:l,offset:y,isZero:A,isNeg:O,isNegF:S,offsetF:I}=Ou(r,v,d);r=l,A?i=i.add(Li(S,n[I])):c=c.add(Li(O,n[y]))}return Tu(r),{p:c,f:i}}wNAFUnsafe(t,n,r,c=this.ZERO){const i=qs(t,this.bits);for(let d=0;d<i.windows&&r!==to;d++){const{nextN:v,offset:l,isZero:y,isNeg:A}=Ou(r,d,i);if(r=v,!y){const O=n[l];c=c.add(A?O.negate():O)}}return Tu(r),c}getPrecomputes(t,n,r){let c=Js.get(n);return c||(c=this.precomputeWindow(n,t),t!==1&&(typeof r=="function"&&(c=r(c)),Js.set(n,c))),c}cached(t,n,r){const c=Qs(t);return this.wNAF(c,this.getPrecomputes(c,t,r),n)}unsafe(t,n,r,c){const i=Qs(t);return i===1?this._unsafeLadder(t,n,c):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,c)}createCache(t,n){Iu(n,this.bits),Nu.set(t,n),Js.delete(t)}hasCache(t){return Qs(t)!==1}}function Jd(e,t,n,r){let c=t,i=e.ZERO,d=e.ZERO;for(;n>to||r>to;)n&kr&&(i=i.add(c)),r&kr&&(d=d.add(c)),c=c.double(),n>>=kr,r>>=kr;return{p1:i,p2:d}}function Lu(e,t,n,r){Xd(n,e),qd(r,t);const c=n.length,i=r.length;if(c!==i)throw new Error("arrays of points and scalars must have equal length");const d=e.ZERO,v=du(BigInt(c));let l=1;v>12?l=v-3:v>4?l=v-2:v>0&&(l=2);const y=Mo(l),A=new Array(Number(y)+1).fill(d),O=Math.floor((t.BITS-1)/l)*l;let S=d;for(let I=O;I>=0;I-=l){A.fill(d);for(let C=0;C<i;C++){const F=r[C],j=Number(F>>BigInt(I)&y);A[j]=A[j].add(n[C])}let B=d;for(let C=A.length-1,F=d;C>0;C--)F=F.add(A[C]),B=B.add(F);if(S=S.add(B),I!==0)for(let C=0;C<l;C++)S=S.double()}return S}function Cu(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return zd(t),t}else return Br(e,{isLE:n})}function Mu(e,t,n={},r){if(r===void 0&&(r=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const l of["p","n","h"]){const y=t[l];if(!(typeof y=="bigint"&&y>to))throw new Error(`CURVE.${l} must be positive bigint`)}const c=Cu(t.p,n.Fp,r),i=Cu(t.n,n.Fn,r),v=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(const l of v)if(!c.isValid(t[l]))throw new Error(`CURVE.${l} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:c,Fn:i}}const _r=BigInt(0),ln=BigInt(1),ea=BigInt(2),Qd=BigInt(8);function eh(e,t,n,r){const c=e.sqr(n),i=e.sqr(r),d=e.add(e.mul(t.a,c),i),v=e.add(e.ONE,e.mul(t.d,e.mul(c,i)));return e.eql(d,v)}function th(e,t={}){const n=Mu("edwards",e,t,t.FpFnLE),{Fp:r,Fn:c}=n;let i=n.CURVE;const{h:d}=i;Bo(t,{},{uvRatio:"function"});const v=ea<<BigInt(c.BYTES*8)-ln,l=F=>r.create(F),y=t.uvRatio||((F,j)=>{try{return{isValid:!0,value:r.sqrt(r.div(F,j))}}catch{return{isValid:!1,value:_r}}});if(!eh(r,i,i.Gx,i.Gy))throw new Error("bad curve params: generator point");function A(F,j,Q=!1){const W=Q?ln:_r;return Ys("coordinate "+F,j,W,v),j}function O(F){if(!(F instanceof B))throw new Error("ExtendedPoint expected")}const S=xi((F,j)=>{const{X:Q,Y:W,Z:se}=F,ue=F.is0();j==null&&(j=ue?Qd:r.inv(se));const oe=l(Q*j),Ee=l(W*j),Re=r.mul(se,j);if(ue)return{x:_r,y:ln};if(Re!==ln)throw new Error("invZ was invalid");return{x:oe,y:Ee}}),I=xi(F=>{const{a:j,d:Q}=i;if(F.is0())throw new Error("bad point: ZERO");const{X:W,Y:se,Z:ue,T:oe}=F,Ee=l(W*W),Re=l(se*se),ne=l(ue*ue),ie=l(ne*ne),de=l(Ee*j),ge=l(ne*l(de+Re)),k=l(ie+l(Q*l(Ee*Re)));if(ge!==k)throw new Error("bad point: equation left != right (1)");const f=l(W*se),R=l(ue*oe);if(f!==R)throw new Error("bad point: equation left != right (2)");return!0});class B{constructor(j,Q,W,se){this.X=A("x",j),this.Y=A("y",Q),this.Z=A("z",W,!0),this.T=A("t",se),Object.freeze(this)}static CURVE(){return i}static fromAffine(j){if(j instanceof B)throw new Error("extended point not allowed");const{x:Q,y:W}=j||{};return A("x",Q),A("y",W),new B(Q,W,ln,l(Q*W))}static fromBytes(j,Q=!1){const W=r.BYTES,{a:se,d:ue}=i;j=lu(Wn(j,W,"point")),Cr(Q,"zip215");const oe=lu(j),Ee=j[W-1];oe[W-1]=Ee&-129;const Re=Co(oe),ne=Q?v:r.ORDER;Ys("point.y",Re,_r,ne);const ie=l(Re*Re),de=l(ie-ln),ge=l(ue*ie-se);let{isValid:k,value:f}=y(de,ge);if(!k)throw new Error("bad point: invalid y coordinate");const R=(f&ln)===ln,M=(Ee&128)!==0;if(!Q&&f===_r&&M)throw new Error("bad point: x=0 and x_0=1");return M!==R&&(f=l(-f)),B.fromAffine({x:f,y:Re})}static fromHex(j,Q=!1){return B.fromBytes(jt("point",j),Q)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(j=8,Q=!0){return C.createCache(this,j),Q||this.multiply(ea),this}assertValidity(){I(this)}equals(j){O(j);const{X:Q,Y:W,Z:se}=this,{X:ue,Y:oe,Z:Ee}=j,Re=l(Q*Ee),ne=l(ue*se),ie=l(W*Ee),de=l(oe*se);return Re===ne&&ie===de}is0(){return this.equals(B.ZERO)}negate(){return new B(l(-this.X),this.Y,this.Z,l(-this.T))}double(){const{a:j}=i,{X:Q,Y:W,Z:se}=this,ue=l(Q*Q),oe=l(W*W),Ee=l(ea*l(se*se)),Re=l(j*ue),ne=Q+W,ie=l(l(ne*ne)-ue-oe),de=Re+oe,ge=de-Ee,k=Re-oe,f=l(ie*ge),R=l(de*k),M=l(ie*k),$=l(ge*de);return new B(f,R,$,M)}add(j){O(j);const{a:Q,d:W}=i,{X:se,Y:ue,Z:oe,T:Ee}=this,{X:Re,Y:ne,Z:ie,T:de}=j,ge=l(se*Re),k=l(ue*ne),f=l(Ee*W*de),R=l(oe*ie),M=l((se+ue)*(Re+ne)-ge-k),$=R-f,Y=R+f,te=l(k-Q*ge),ae=l(M*$),K=l(Y*te),g=l(M*te),_=l($*Y);return new B(ae,K,_,g)}subtract(j){return this.add(j.negate())}multiply(j){if(!c.isValidNot0(j))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:Q,f:W}=C.cached(this,j,se=>Dr(B,se));return Dr(B,[Q,W])[0]}multiplyUnsafe(j,Q=B.ZERO){if(!c.isValid(j))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return j===_r?B.ZERO:this.is0()||j===ln?this:C.unsafe(this,j,W=>Dr(B,W),Q)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return C.unsafe(this,i.n).is0()}toAffine(j){return S(this,j)}clearCofactor(){return d===ln?this:this.multiplyUnsafe(d)}toBytes(){const{x:j,y:Q}=this.toAffine(),W=r.toBytes(Q);return W[W.length-1]|=j&ln?128:0,W}toHex(){return Lr(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(j){return Dr(B,j)}static msm(j,Q){return Lu(B,c,j,Q)}_setWindowSize(j){this.precompute(j)}toRawBytes(){return this.toBytes()}}B.BASE=new B(i.Gx,i.Gy,ln,l(i.Gx*i.Gy)),B.ZERO=new B(_r,ln,ln,_r),B.Fp=r,B.Fn=c;const C=new xu(B,c.BITS);return B.BASE.precompute(8),B}function nh(e,t,n={}){if(typeof t!="function")throw new Error('"hash" function param is required');Bo(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:c,Fp:i,Fn:d}=e,v=n.randomBytes||js,l=n.adjustScalarBytes||(ne=>ne),y=n.domain||((ne,ie,de)=>{if(Cr(de,"phflag"),ie.length||de)throw new Error("Contexts/pre-hash are not supported");return ne});function A(ne){return d.create(Co(ne))}function O(ne){const ie=W.secretKey;ne=jt("private key",ne,ie);const de=jt("hashed private key",t(ne),2*ie),ge=l(de.slice(0,ie)),k=de.slice(ie,2*ie),f=A(ge);return{head:ge,prefix:k,scalar:f}}function S(ne){const{head:ie,prefix:de,scalar:ge}=O(ne),k=c.multiply(ge),f=k.toBytes();return{head:ie,prefix:de,scalar:ge,point:k,pointBytes:f}}function I(ne){return S(ne).pointBytes}function B(ne=Uint8Array.of(),...ie){const de=qn(...ie);return A(t(y(de,jt("context",ne),!!r)))}function C(ne,ie,de={}){ne=jt("message",ne),r&&(ne=r(ne));const{prefix:ge,scalar:k,pointBytes:f}=S(ie),R=B(de.context,ge,ne),M=c.multiply(R).toBytes(),$=B(de.context,M,f,ne),Y=d.create(R+$*k);if(!d.isValid(Y))throw new Error("sign failed: invalid s");const te=qn(M,d.toBytes(Y));return Wn(te,W.signature,"result")}const F={zip215:!0};function j(ne,ie,de,ge=F){const{context:k,zip215:f}=ge,R=W.signature;ne=jt("signature",ne,R),ie=jt("message",ie),de=jt("publicKey",de,W.publicKey),f!==void 0&&Cr(f,"zip215"),r&&(ie=r(ie));const M=R/2,$=ne.subarray(0,M),Y=Co(ne.subarray(M,R));let te,ae,K;try{te=e.fromBytes(de,f),ae=e.fromBytes($,f),K=c.multiplyUnsafe(Y)}catch{return!1}if(!f&&te.isSmallOrder())return!1;const g=B(k,ae.toBytes(),te.toBytes(),ie);return ae.add(te.multiplyUnsafe(g)).subtract(K).clearCofactor().is0()}const Q=i.BYTES,W={secretKey:Q,publicKey:Q,signature:2*Q,seed:Q};function se(ne=v(W.seed)){return Wn(ne,W.seed,"seed")}function ue(ne){const ie=Re.randomSecretKey(ne);return{secretKey:ie,publicKey:I(ie)}}function oe(ne){return Lo(ne)&&ne.length===d.BYTES}function Ee(ne,ie){try{return!!e.fromBytes(ne,ie)}catch{return!1}}const Re={getExtendedPublicKey:S,randomSecretKey:se,isValidSecretKey:oe,isValidPublicKey:Ee,toMontgomery(ne){const{y:ie}=e.fromBytes(ne),de=W.publicKey,ge=de===32;if(!ge&&de!==57)throw new Error("only defined for 25519 and 448");const k=ge?i.div(ln+ie,ln-ie):i.div(ie-ln,ie+ln);return i.toBytes(k)},toMontgomerySecret(ne){const ie=W.secretKey;Wn(ne,ie);const de=t(ne.subarray(0,ie));return l(de).subarray(0,ie)},randomPrivateKey:se,precompute(ne=8,ie=e.BASE){return ie.precompute(ne,!1)}};return Object.freeze({keygen:ue,getPublicKey:I,sign:C,verify:j,utils:Re,Point:e,lengths:W})}function rh(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=Br(t.n,e.nBitLength,!0),c={Fp:n,Fn:r,uvRatio:e.uvRatio},i={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:c,hash:e.hash,eddsaOpts:i}}function oh(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}function ih(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:c}=rh(e),i=th(t,n),d=nh(i,r,c);return oh(e,d)}const sh=BigInt(1),Bu=BigInt(2);BigInt(3);const ah=BigInt(5),ch=BigInt(8),ta=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),ku={p:ta,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:ch,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function uh(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),c=BigInt(80),i=ta,v=e*e%i*e%i,l=Kt(v,Bu,i)*v%i,y=Kt(l,sh,i)*e%i,A=Kt(y,ah,i)*y%i,O=Kt(A,t,i)*A%i,S=Kt(O,n,i)*O%i,I=Kt(S,r,i)*S%i,B=Kt(I,c,i)*I%i,C=Kt(B,c,i)*I%i,F=Kt(C,t,i)*A%i;return{pow_p_5_8:Kt(F,Bu,i)*e%i,b2:v}}function fh(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Du=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function lh(e,t){const n=ta,r=en(t*t*t,n),c=en(r*r*t,n),i=uh(e*c).pow_p_5_8;let d=en(e*r*i,n);const v=en(t*d*d,n),l=d,y=en(d*Du,n),A=v===e,O=v===en(-e,n),S=v===en(-e*Du,n);return A&&(d=l),(O||S)&&(d=y),Kd(d,n)&&(d=en(-d,n)),{isValid:A||O,value:d}}const dh=Br(ku.p,{isLE:!0}),hh={...ku,Fp:dh,hash:Ud,adjustScalarBytes:fh,uvRatio:lh},ko=ih(hh);var Ci={exports:{}};const ph=Ps(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var mh=Ci.exports,Uu;function Pu(){return Uu||(Uu=1,(function(e){(function(t,n){function r(k,f){if(!k)throw new Error(f||"Assertion failed")}function c(k,f){k.super_=f;var R=function(){};R.prototype=f.prototype,k.prototype=new R,k.prototype.constructor=k}function i(k,f,R){if(i.isBN(k))return k;this.negative=0,this.words=null,this.length=0,this.red=null,k!==null&&((f==="le"||f==="be")&&(R=f,f=10),this._init(k||0,f||10,R||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=ph.Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,R){return f.cmp(R)>0?f:R},i.min=function(f,R){return f.cmp(R)<0?f:R},i.prototype._init=function(f,R,M){if(typeof f=="number")return this._initNumber(f,R,M);if(typeof f=="object")return this._initArray(f,R,M);R==="hex"&&(R=16),r(R===(R|0)&&R>=2&&R<=36),f=f.toString().replace(/\s+/g,"");var $=0;f[0]==="-"&&($++,this.negative=1),$<f.length&&(R===16?this._parseHex(f,$,M):(this._parseBase(f,R,$),M==="le"&&this._initArray(this.toArray(),R,M)))},i.prototype._initNumber=function(f,R,M){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),M==="le"&&this._initArray(this.toArray(),R,M)},i.prototype._initArray=function(f,R,M){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var Y,te,ae=0;if(M==="be")for($=f.length-1,Y=0;$>=0;$-=3)te=f[$]|f[$-1]<<8|f[$-2]<<16,this.words[Y]|=te<<ae&67108863,this.words[Y+1]=te>>>26-ae&67108863,ae+=24,ae>=26&&(ae-=26,Y++);else if(M==="le")for($=0,Y=0;$<f.length;$+=3)te=f[$]|f[$+1]<<8|f[$+2]<<16,this.words[Y]|=te<<ae&67108863,this.words[Y+1]=te>>>26-ae&67108863,ae+=24,ae>=26&&(ae-=26,Y++);return this._strip()};function v(k,f){var R=k.charCodeAt(f);if(R>=48&&R<=57)return R-48;if(R>=65&&R<=70)return R-55;if(R>=97&&R<=102)return R-87;r(!1,"Invalid character in "+k)}function l(k,f,R){var M=v(k,R);return R-1>=f&&(M|=v(k,R-1)<<4),M}i.prototype._parseHex=function(f,R,M){this.length=Math.ceil((f.length-R)/6),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var Y=0,te=0,ae;if(M==="be")for($=f.length-1;$>=R;$-=2)ae=l(f,R,$)<<Y,this.words[te]|=ae&67108863,Y>=18?(Y-=18,te+=1,this.words[te]|=ae>>>26):Y+=8;else{var K=f.length-R;for($=K%2===0?R+1:R;$<f.length;$+=2)ae=l(f,R,$)<<Y,this.words[te]|=ae&67108863,Y>=18?(Y-=18,te+=1,this.words[te]|=ae>>>26):Y+=8}this._strip()};function y(k,f,R,M){for(var $=0,Y=0,te=Math.min(k.length,R),ae=f;ae<te;ae++){var K=k.charCodeAt(ae)-48;$*=M,K>=49?Y=K-49+10:K>=17?Y=K-17+10:Y=K,r(K>=0&&Y<M,"Invalid character"),$+=Y}return $}i.prototype._parseBase=function(f,R,M){this.words=[0],this.length=1;for(var $=0,Y=1;Y<=67108863;Y*=R)$++;$--,Y=Y/R|0;for(var te=f.length-M,ae=te%$,K=Math.min(te,te-ae)+M,g=0,_=M;_<K;_+=$)g=y(f,_,_+$,R),this.imuln(Y),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g);if(ae!==0){var H=1;for(g=y(f,_,f.length,R),_=0;_<ae;_++)H*=R;this.imuln(H),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var R=0;R<this.length;R++)f.words[R]=this.words[R];f.length=this.length,f.negative=this.negative,f.red=this.red};function A(k,f){k.words=f.words,k.length=f.length,k.negative=f.negative,k.red=f.red}if(i.prototype._move=function(f){A(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch{i.prototype.inspect=O}else i.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","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"],I=[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],B=[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];i.prototype.toString=function(f,R){f=f||10,R=R|0||1;var M;if(f===16||f==="hex"){M="";for(var $=0,Y=0,te=0;te<this.length;te++){var ae=this.words[te],K=((ae<<$|Y)&16777215).toString(16);Y=ae>>>24-$&16777215,$+=2,$>=26&&($-=26,te--),Y!==0||te!==this.length-1?M=S[6-K.length]+K+M:M=K+M}for(Y!==0&&(M=Y.toString(16)+M);M.length%R!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(f===(f|0)&&f>=2&&f<=36){var g=I[f],_=B[f];M="";var H=this.clone();for(H.negative=0;!H.isZero();){var J=H.modrn(_).toString(f);H=H.idivn(_),H.isZero()?M=J+M:M=S[g-J.length]+J+M}for(this.isZero()&&(M="0"+M);M.length%R!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},d&&(i.prototype.toBuffer=function(f,R){return this.toArrayLike(d,f,R)}),i.prototype.toArray=function(f,R){return this.toArrayLike(Array,f,R)};var C=function(f,R){return f.allocUnsafe?f.allocUnsafe(R):new f(R)};i.prototype.toArrayLike=function(f,R,M){this._strip();var $=this.byteLength(),Y=M||Math.max(1,$);r($<=Y,"byte array longer than desired length"),r(Y>0,"Requested array length <= 0");var te=C(f,Y),ae=R==="le"?"LE":"BE";return this["_toArrayLike"+ae](te,$),te},i.prototype._toArrayLikeLE=function(f,R){for(var M=0,$=0,Y=0,te=0;Y<this.length;Y++){var ae=this.words[Y]<<te|$;f[M++]=ae&255,M<f.length&&(f[M++]=ae>>8&255),M<f.length&&(f[M++]=ae>>16&255),te===6?(M<f.length&&(f[M++]=ae>>24&255),$=0,te=0):($=ae>>>24,te+=2)}if(M<f.length)for(f[M++]=$;M<f.length;)f[M++]=0},i.prototype._toArrayLikeBE=function(f,R){for(var M=f.length-1,$=0,Y=0,te=0;Y<this.length;Y++){var ae=this.words[Y]<<te|$;f[M--]=ae&255,M>=0&&(f[M--]=ae>>8&255),M>=0&&(f[M--]=ae>>16&255),te===6?(M>=0&&(f[M--]=ae>>24&255),$=0,te=0):($=ae>>>24,te+=2)}if(M>=0)for(f[M--]=$;M>=0;)f[M--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var R=f,M=0;return R>=4096&&(M+=13,R>>>=13),R>=64&&(M+=7,R>>>=7),R>=8&&(M+=4,R>>>=4),R>=2&&(M+=2,R>>>=2),M+R},i.prototype._zeroBits=function(f){if(f===0)return 26;var R=f,M=0;return(R&8191)===0&&(M+=13,R>>>=13),(R&127)===0&&(M+=7,R>>>=7),(R&15)===0&&(M+=4,R>>>=4),(R&3)===0&&(M+=2,R>>>=2),(R&1)===0&&M++,M},i.prototype.bitLength=function(){var f=this.words[this.length-1],R=this._countBits(f);return(this.length-1)*26+R};function F(k){for(var f=new Array(k.bitLength()),R=0;R<f.length;R++){var M=R/26|0,$=R%26;f[R]=k.words[M]>>>$&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,R=0;R<this.length;R++){var M=this._zeroBits(this.words[R]);if(f+=M,M!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var R=0;R<f.length;R++)this.words[R]=this.words[R]|f.words[R];return this._strip()},i.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var R;this.length>f.length?R=f:R=this;for(var M=0;M<R.length;M++)this.words[M]=this.words[M]&f.words[M];return this.length=R.length,this._strip()},i.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var R,M;this.length>f.length?(R=this,M=f):(R=f,M=this);for(var $=0;$<M.length;$++)this.words[$]=R.words[$]^M.words[$];if(this!==R)for(;$<R.length;$++)this.words[$]=R.words[$];return this.length=R.length,this._strip()},i.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var R=Math.ceil(f/26)|0,M=f%26;this._expand(R),M>0&&R--;for(var $=0;$<R;$++)this.words[$]=~this.words[$]&67108863;for(M>0&&(this.words[$]=~this.words[$]&67108863>>26-M,$++);$<this.length;$++)this.words[$]=0;return this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,R){r(typeof f=="number"&&f>=0);var M=f/26|0,$=f%26;return this._expand(M+1),R?this.words[M]=this.words[M]|1<<$:this.words[M]=this.words[M]&~(1<<$),this._strip()},i.prototype.iadd=function(f){var R;if(this.negative!==0&&f.negative===0)return this.negative=0,R=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,R=this.isub(f),f.negative=1,R._normSign();var M,$;this.length>f.length?(M=this,$=f):(M=f,$=this);for(var Y=0,te=0;te<$.length;te++)R=(M.words[te]|0)+($.words[te]|0)+Y,this.words[te]=R&67108863,Y=R>>>26;for(;Y!==0&&te<M.length;te++)R=(M.words[te]|0)+Y,this.words[te]=R&67108863,Y=R>>>26;if(this.length=M.length,Y!==0)this.words[this.length]=Y,this.length++;else if(M!==this)for(;te<M.length;te++)this.words[te]=M.words[te];return this},i.prototype.add=function(f){var R;return f.negative!==0&&this.negative===0?(f.negative=0,R=this.sub(f),f.negative^=1,R):f.negative===0&&this.negative!==0?(this.negative=0,R=f.sub(this),this.negative=1,R):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var R=this.iadd(f);return f.negative=1,R._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var M=this.cmp(f);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var $,Y;M>0?($=this,Y=f):($=f,Y=this);for(var te=0,ae=0;ae<Y.length;ae++)R=($.words[ae]|0)-(Y.words[ae]|0)+te,te=R>>26,this.words[ae]=R&67108863;for(;te!==0&&ae<$.length;ae++)R=($.words[ae]|0)+te,te=R>>26,this.words[ae]=R&67108863;if(te===0&&ae<$.length&&$!==this)for(;ae<$.length;ae++)this.words[ae]=$.words[ae];return this.length=Math.max(this.length,ae),$!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function j(k,f,R){R.negative=f.negative^k.negative;var M=k.length+f.length|0;R.length=M,M=M-1|0;var $=k.words[0]|0,Y=f.words[0]|0,te=$*Y,ae=te&67108863,K=te/67108864|0;R.words[0]=ae;for(var g=1;g<M;g++){for(var _=K>>>26,H=K&67108863,J=Math.min(g,f.length-1),me=Math.max(0,g-k.length+1);me<=J;me++){var ye=g-me|0;$=k.words[ye]|0,Y=f.words[me]|0,te=$*Y+H,_+=te/67108864|0,H=te&67108863}R.words[g]=H|0,K=_|0}return K!==0?R.words[g]=K|0:R.length--,R._strip()}var Q=function(f,R,M){var $=f.words,Y=R.words,te=M.words,ae=0,K,g,_,H=$[0]|0,J=H&8191,me=H>>>13,ye=$[1]|0,Ue=ye&8191,Ke=ye>>>13,st=$[2]|0,at=st&8191,ut=st>>>13,_t=$[3]|0,pt=_t&8191,Rt=_t>>>13,Pt=$[4]|0,vt=Pt&8191,w=Pt>>>13,x=$[5]|0,V=x&8191,Z=x>>>13,fe=$[6]|0,pe=fe&8191,Me=fe>>>13,tt=$[7]|0,Qe=tt&8191,P=tt>>>13,E=$[8]|0,b=E&8191,q=E>>>13,ve=$[9]|0,be=ve&8191,L=ve>>>13,re=Y[0]|0,ee=re&8191,we=re>>>13,Se=Y[1]|0,Ne=Se&8191,Pe=Se>>>13,Ve=Y[2]|0,ce=Ve&8191,He=Ve>>>13,ze=Y[3]|0,qe=ze&8191,et=ze>>>13,ct=Y[4]|0,ot=ct&8191,rt=ct>>>13,$t=Y[5]|0,ht=$t&8191,gt=$t>>>13,tn=Y[6]|0,It=tn&8191,Nt=tn>>>13,lr=Y[7]|0,kt=lr&8191,Mt=lr>>>13,Hr=Y[8]|0,zt=Hr&8191,Zt=Hr>>>13,fs=Y[9]|0,Yt=fs&8191,Xt=fs>>>13;M.negative=f.negative^R.negative,M.length=19,K=Math.imul(J,ee),g=Math.imul(J,we),g=g+Math.imul(me,ee)|0,_=Math.imul(me,we);var zo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(zo>>>26)|0,zo&=67108863,K=Math.imul(Ue,ee),g=Math.imul(Ue,we),g=g+Math.imul(Ke,ee)|0,_=Math.imul(Ke,we),K=K+Math.imul(J,Ne)|0,g=g+Math.imul(J,Pe)|0,g=g+Math.imul(me,Ne)|0,_=_+Math.imul(me,Pe)|0;var Zo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Zo>>>26)|0,Zo&=67108863,K=Math.imul(at,ee),g=Math.imul(at,we),g=g+Math.imul(ut,ee)|0,_=Math.imul(ut,we),K=K+Math.imul(Ue,Ne)|0,g=g+Math.imul(Ue,Pe)|0,g=g+Math.imul(Ke,Ne)|0,_=_+Math.imul(Ke,Pe)|0,K=K+Math.imul(J,ce)|0,g=g+Math.imul(J,He)|0,g=g+Math.imul(me,ce)|0,_=_+Math.imul(me,He)|0;var Yo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Yo>>>26)|0,Yo&=67108863,K=Math.imul(pt,ee),g=Math.imul(pt,we),g=g+Math.imul(Rt,ee)|0,_=Math.imul(Rt,we),K=K+Math.imul(at,Ne)|0,g=g+Math.imul(at,Pe)|0,g=g+Math.imul(ut,Ne)|0,_=_+Math.imul(ut,Pe)|0,K=K+Math.imul(Ue,ce)|0,g=g+Math.imul(Ue,He)|0,g=g+Math.imul(Ke,ce)|0,_=_+Math.imul(Ke,He)|0,K=K+Math.imul(J,qe)|0,g=g+Math.imul(J,et)|0,g=g+Math.imul(me,qe)|0,_=_+Math.imul(me,et)|0;var Xo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Xo>>>26)|0,Xo&=67108863,K=Math.imul(vt,ee),g=Math.imul(vt,we),g=g+Math.imul(w,ee)|0,_=Math.imul(w,we),K=K+Math.imul(pt,Ne)|0,g=g+Math.imul(pt,Pe)|0,g=g+Math.imul(Rt,Ne)|0,_=_+Math.imul(Rt,Pe)|0,K=K+Math.imul(at,ce)|0,g=g+Math.imul(at,He)|0,g=g+Math.imul(ut,ce)|0,_=_+Math.imul(ut,He)|0,K=K+Math.imul(Ue,qe)|0,g=g+Math.imul(Ue,et)|0,g=g+Math.imul(Ke,qe)|0,_=_+Math.imul(Ke,et)|0,K=K+Math.imul(J,ot)|0,g=g+Math.imul(J,rt)|0,g=g+Math.imul(me,ot)|0,_=_+Math.imul(me,rt)|0;var dn=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(dn>>>26)|0,dn&=67108863,K=Math.imul(V,ee),g=Math.imul(V,we),g=g+Math.imul(Z,ee)|0,_=Math.imul(Z,we),K=K+Math.imul(vt,Ne)|0,g=g+Math.imul(vt,Pe)|0,g=g+Math.imul(w,Ne)|0,_=_+Math.imul(w,Pe)|0,K=K+Math.imul(pt,ce)|0,g=g+Math.imul(pt,He)|0,g=g+Math.imul(Rt,ce)|0,_=_+Math.imul(Rt,He)|0,K=K+Math.imul(at,qe)|0,g=g+Math.imul(at,et)|0,g=g+Math.imul(ut,qe)|0,_=_+Math.imul(ut,et)|0,K=K+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,rt)|0,g=g+Math.imul(Ke,ot)|0,_=_+Math.imul(Ke,rt)|0,K=K+Math.imul(J,ht)|0,g=g+Math.imul(J,gt)|0,g=g+Math.imul(me,ht)|0,_=_+Math.imul(me,gt)|0;var qo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(qo>>>26)|0,qo&=67108863,K=Math.imul(pe,ee),g=Math.imul(pe,we),g=g+Math.imul(Me,ee)|0,_=Math.imul(Me,we),K=K+Math.imul(V,Ne)|0,g=g+Math.imul(V,Pe)|0,g=g+Math.imul(Z,Ne)|0,_=_+Math.imul(Z,Pe)|0,K=K+Math.imul(vt,ce)|0,g=g+Math.imul(vt,He)|0,g=g+Math.imul(w,ce)|0,_=_+Math.imul(w,He)|0,K=K+Math.imul(pt,qe)|0,g=g+Math.imul(pt,et)|0,g=g+Math.imul(Rt,qe)|0,_=_+Math.imul(Rt,et)|0,K=K+Math.imul(at,ot)|0,g=g+Math.imul(at,rt)|0,g=g+Math.imul(ut,ot)|0,_=_+Math.imul(ut,rt)|0,K=K+Math.imul(Ue,ht)|0,g=g+Math.imul(Ue,gt)|0,g=g+Math.imul(Ke,ht)|0,_=_+Math.imul(Ke,gt)|0,K=K+Math.imul(J,It)|0,g=g+Math.imul(J,Nt)|0,g=g+Math.imul(me,It)|0,_=_+Math.imul(me,Nt)|0;var Jo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,K=Math.imul(Qe,ee),g=Math.imul(Qe,we),g=g+Math.imul(P,ee)|0,_=Math.imul(P,we),K=K+Math.imul(pe,Ne)|0,g=g+Math.imul(pe,Pe)|0,g=g+Math.imul(Me,Ne)|0,_=_+Math.imul(Me,Pe)|0,K=K+Math.imul(V,ce)|0,g=g+Math.imul(V,He)|0,g=g+Math.imul(Z,ce)|0,_=_+Math.imul(Z,He)|0,K=K+Math.imul(vt,qe)|0,g=g+Math.imul(vt,et)|0,g=g+Math.imul(w,qe)|0,_=_+Math.imul(w,et)|0,K=K+Math.imul(pt,ot)|0,g=g+Math.imul(pt,rt)|0,g=g+Math.imul(Rt,ot)|0,_=_+Math.imul(Rt,rt)|0,K=K+Math.imul(at,ht)|0,g=g+Math.imul(at,gt)|0,g=g+Math.imul(ut,ht)|0,_=_+Math.imul(ut,gt)|0,K=K+Math.imul(Ue,It)|0,g=g+Math.imul(Ue,Nt)|0,g=g+Math.imul(Ke,It)|0,_=_+Math.imul(Ke,Nt)|0,K=K+Math.imul(J,kt)|0,g=g+Math.imul(J,Mt)|0,g=g+Math.imul(me,kt)|0,_=_+Math.imul(me,Mt)|0;var Qo=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(Qo>>>26)|0,Qo&=67108863,K=Math.imul(b,ee),g=Math.imul(b,we),g=g+Math.imul(q,ee)|0,_=Math.imul(q,we),K=K+Math.imul(Qe,Ne)|0,g=g+Math.imul(Qe,Pe)|0,g=g+Math.imul(P,Ne)|0,_=_+Math.imul(P,Pe)|0,K=K+Math.imul(pe,ce)|0,g=g+Math.imul(pe,He)|0,g=g+Math.imul(Me,ce)|0,_=_+Math.imul(Me,He)|0,K=K+Math.imul(V,qe)|0,g=g+Math.imul(V,et)|0,g=g+Math.imul(Z,qe)|0,_=_+Math.imul(Z,et)|0,K=K+Math.imul(vt,ot)|0,g=g+Math.imul(vt,rt)|0,g=g+Math.imul(w,ot)|0,_=_+Math.imul(w,rt)|0,K=K+Math.imul(pt,ht)|0,g=g+Math.imul(pt,gt)|0,g=g+Math.imul(Rt,ht)|0,_=_+Math.imul(Rt,gt)|0,K=K+Math.imul(at,It)|0,g=g+Math.imul(at,Nt)|0,g=g+Math.imul(ut,It)|0,_=_+Math.imul(ut,Nt)|0,K=K+Math.imul(Ue,kt)|0,g=g+Math.imul(Ue,Mt)|0,g=g+Math.imul(Ke,kt)|0,_=_+Math.imul(Ke,Mt)|0,K=K+Math.imul(J,zt)|0,g=g+Math.imul(J,Zt)|0,g=g+Math.imul(me,zt)|0,_=_+Math.imul(me,Zt)|0;var ei=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ei>>>26)|0,ei&=67108863,K=Math.imul(be,ee),g=Math.imul(be,we),g=g+Math.imul(L,ee)|0,_=Math.imul(L,we),K=K+Math.imul(b,Ne)|0,g=g+Math.imul(b,Pe)|0,g=g+Math.imul(q,Ne)|0,_=_+Math.imul(q,Pe)|0,K=K+Math.imul(Qe,ce)|0,g=g+Math.imul(Qe,He)|0,g=g+Math.imul(P,ce)|0,_=_+Math.imul(P,He)|0,K=K+Math.imul(pe,qe)|0,g=g+Math.imul(pe,et)|0,g=g+Math.imul(Me,qe)|0,_=_+Math.imul(Me,et)|0,K=K+Math.imul(V,ot)|0,g=g+Math.imul(V,rt)|0,g=g+Math.imul(Z,ot)|0,_=_+Math.imul(Z,rt)|0,K=K+Math.imul(vt,ht)|0,g=g+Math.imul(vt,gt)|0,g=g+Math.imul(w,ht)|0,_=_+Math.imul(w,gt)|0,K=K+Math.imul(pt,It)|0,g=g+Math.imul(pt,Nt)|0,g=g+Math.imul(Rt,It)|0,_=_+Math.imul(Rt,Nt)|0,K=K+Math.imul(at,kt)|0,g=g+Math.imul(at,Mt)|0,g=g+Math.imul(ut,kt)|0,_=_+Math.imul(ut,Mt)|0,K=K+Math.imul(Ue,zt)|0,g=g+Math.imul(Ue,Zt)|0,g=g+Math.imul(Ke,zt)|0,_=_+Math.imul(Ke,Zt)|0,K=K+Math.imul(J,Yt)|0,g=g+Math.imul(J,Xt)|0,g=g+Math.imul(me,Yt)|0,_=_+Math.imul(me,Xt)|0;var ti=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ti>>>26)|0,ti&=67108863,K=Math.imul(be,Ne),g=Math.imul(be,Pe),g=g+Math.imul(L,Ne)|0,_=Math.imul(L,Pe),K=K+Math.imul(b,ce)|0,g=g+Math.imul(b,He)|0,g=g+Math.imul(q,ce)|0,_=_+Math.imul(q,He)|0,K=K+Math.imul(Qe,qe)|0,g=g+Math.imul(Qe,et)|0,g=g+Math.imul(P,qe)|0,_=_+Math.imul(P,et)|0,K=K+Math.imul(pe,ot)|0,g=g+Math.imul(pe,rt)|0,g=g+Math.imul(Me,ot)|0,_=_+Math.imul(Me,rt)|0,K=K+Math.imul(V,ht)|0,g=g+Math.imul(V,gt)|0,g=g+Math.imul(Z,ht)|0,_=_+Math.imul(Z,gt)|0,K=K+Math.imul(vt,It)|0,g=g+Math.imul(vt,Nt)|0,g=g+Math.imul(w,It)|0,_=_+Math.imul(w,Nt)|0,K=K+Math.imul(pt,kt)|0,g=g+Math.imul(pt,Mt)|0,g=g+Math.imul(Rt,kt)|0,_=_+Math.imul(Rt,Mt)|0,K=K+Math.imul(at,zt)|0,g=g+Math.imul(at,Zt)|0,g=g+Math.imul(ut,zt)|0,_=_+Math.imul(ut,Zt)|0,K=K+Math.imul(Ue,Yt)|0,g=g+Math.imul(Ue,Xt)|0,g=g+Math.imul(Ke,Yt)|0,_=_+Math.imul(Ke,Xt)|0;var ni=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ni>>>26)|0,ni&=67108863,K=Math.imul(be,ce),g=Math.imul(be,He),g=g+Math.imul(L,ce)|0,_=Math.imul(L,He),K=K+Math.imul(b,qe)|0,g=g+Math.imul(b,et)|0,g=g+Math.imul(q,qe)|0,_=_+Math.imul(q,et)|0,K=K+Math.imul(Qe,ot)|0,g=g+Math.imul(Qe,rt)|0,g=g+Math.imul(P,ot)|0,_=_+Math.imul(P,rt)|0,K=K+Math.imul(pe,ht)|0,g=g+Math.imul(pe,gt)|0,g=g+Math.imul(Me,ht)|0,_=_+Math.imul(Me,gt)|0,K=K+Math.imul(V,It)|0,g=g+Math.imul(V,Nt)|0,g=g+Math.imul(Z,It)|0,_=_+Math.imul(Z,Nt)|0,K=K+Math.imul(vt,kt)|0,g=g+Math.imul(vt,Mt)|0,g=g+Math.imul(w,kt)|0,_=_+Math.imul(w,Mt)|0,K=K+Math.imul(pt,zt)|0,g=g+Math.imul(pt,Zt)|0,g=g+Math.imul(Rt,zt)|0,_=_+Math.imul(Rt,Zt)|0,K=K+Math.imul(at,Yt)|0,g=g+Math.imul(at,Xt)|0,g=g+Math.imul(ut,Yt)|0,_=_+Math.imul(ut,Xt)|0;var ri=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ri>>>26)|0,ri&=67108863,K=Math.imul(be,qe),g=Math.imul(be,et),g=g+Math.imul(L,qe)|0,_=Math.imul(L,et),K=K+Math.imul(b,ot)|0,g=g+Math.imul(b,rt)|0,g=g+Math.imul(q,ot)|0,_=_+Math.imul(q,rt)|0,K=K+Math.imul(Qe,ht)|0,g=g+Math.imul(Qe,gt)|0,g=g+Math.imul(P,ht)|0,_=_+Math.imul(P,gt)|0,K=K+Math.imul(pe,It)|0,g=g+Math.imul(pe,Nt)|0,g=g+Math.imul(Me,It)|0,_=_+Math.imul(Me,Nt)|0,K=K+Math.imul(V,kt)|0,g=g+Math.imul(V,Mt)|0,g=g+Math.imul(Z,kt)|0,_=_+Math.imul(Z,Mt)|0,K=K+Math.imul(vt,zt)|0,g=g+Math.imul(vt,Zt)|0,g=g+Math.imul(w,zt)|0,_=_+Math.imul(w,Zt)|0,K=K+Math.imul(pt,Yt)|0,g=g+Math.imul(pt,Xt)|0,g=g+Math.imul(Rt,Yt)|0,_=_+Math.imul(Rt,Xt)|0;var oi=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(oi>>>26)|0,oi&=67108863,K=Math.imul(be,ot),g=Math.imul(be,rt),g=g+Math.imul(L,ot)|0,_=Math.imul(L,rt),K=K+Math.imul(b,ht)|0,g=g+Math.imul(b,gt)|0,g=g+Math.imul(q,ht)|0,_=_+Math.imul(q,gt)|0,K=K+Math.imul(Qe,It)|0,g=g+Math.imul(Qe,Nt)|0,g=g+Math.imul(P,It)|0,_=_+Math.imul(P,Nt)|0,K=K+Math.imul(pe,kt)|0,g=g+Math.imul(pe,Mt)|0,g=g+Math.imul(Me,kt)|0,_=_+Math.imul(Me,Mt)|0,K=K+Math.imul(V,zt)|0,g=g+Math.imul(V,Zt)|0,g=g+Math.imul(Z,zt)|0,_=_+Math.imul(Z,Zt)|0,K=K+Math.imul(vt,Yt)|0,g=g+Math.imul(vt,Xt)|0,g=g+Math.imul(w,Yt)|0,_=_+Math.imul(w,Xt)|0;var ii=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ii>>>26)|0,ii&=67108863,K=Math.imul(be,ht),g=Math.imul(be,gt),g=g+Math.imul(L,ht)|0,_=Math.imul(L,gt),K=K+Math.imul(b,It)|0,g=g+Math.imul(b,Nt)|0,g=g+Math.imul(q,It)|0,_=_+Math.imul(q,Nt)|0,K=K+Math.imul(Qe,kt)|0,g=g+Math.imul(Qe,Mt)|0,g=g+Math.imul(P,kt)|0,_=_+Math.imul(P,Mt)|0,K=K+Math.imul(pe,zt)|0,g=g+Math.imul(pe,Zt)|0,g=g+Math.imul(Me,zt)|0,_=_+Math.imul(Me,Zt)|0,K=K+Math.imul(V,Yt)|0,g=g+Math.imul(V,Xt)|0,g=g+Math.imul(Z,Yt)|0,_=_+Math.imul(Z,Xt)|0;var si=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(si>>>26)|0,si&=67108863,K=Math.imul(be,It),g=Math.imul(be,Nt),g=g+Math.imul(L,It)|0,_=Math.imul(L,Nt),K=K+Math.imul(b,kt)|0,g=g+Math.imul(b,Mt)|0,g=g+Math.imul(q,kt)|0,_=_+Math.imul(q,Mt)|0,K=K+Math.imul(Qe,zt)|0,g=g+Math.imul(Qe,Zt)|0,g=g+Math.imul(P,zt)|0,_=_+Math.imul(P,Zt)|0,K=K+Math.imul(pe,Yt)|0,g=g+Math.imul(pe,Xt)|0,g=g+Math.imul(Me,Yt)|0,_=_+Math.imul(Me,Xt)|0;var ai=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ai>>>26)|0,ai&=67108863,K=Math.imul(be,kt),g=Math.imul(be,Mt),g=g+Math.imul(L,kt)|0,_=Math.imul(L,Mt),K=K+Math.imul(b,zt)|0,g=g+Math.imul(b,Zt)|0,g=g+Math.imul(q,zt)|0,_=_+Math.imul(q,Zt)|0,K=K+Math.imul(Qe,Yt)|0,g=g+Math.imul(Qe,Xt)|0,g=g+Math.imul(P,Yt)|0,_=_+Math.imul(P,Xt)|0;var ci=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ci>>>26)|0,ci&=67108863,K=Math.imul(be,zt),g=Math.imul(be,Zt),g=g+Math.imul(L,zt)|0,_=Math.imul(L,Zt),K=K+Math.imul(b,Yt)|0,g=g+Math.imul(b,Xt)|0,g=g+Math.imul(q,Yt)|0,_=_+Math.imul(q,Xt)|0;var ui=(ae+K|0)+((g&8191)<<13)|0;ae=(_+(g>>>13)|0)+(ui>>>26)|0,ui&=67108863,K=Math.imul(be,Yt),g=Math.imul(be,Xt),g=g+Math.imul(L,Yt)|0,_=Math.imul(L,Xt);var fi=(ae+K|0)+((g&8191)<<13)|0;return ae=(_+(g>>>13)|0)+(fi>>>26)|0,fi&=67108863,te[0]=zo,te[1]=Zo,te[2]=Yo,te[3]=Xo,te[4]=dn,te[5]=qo,te[6]=Jo,te[7]=Qo,te[8]=ei,te[9]=ti,te[10]=ni,te[11]=ri,te[12]=oi,te[13]=ii,te[14]=si,te[15]=ai,te[16]=ci,te[17]=ui,te[18]=fi,ae!==0&&(te[19]=ae,M.length++),M};Math.imul||(Q=j);function W(k,f,R){R.negative=f.negative^k.negative,R.length=k.length+f.length;for(var M=0,$=0,Y=0;Y<R.length-1;Y++){var te=$;$=0;for(var ae=M&67108863,K=Math.min(Y,f.length-1),g=Math.max(0,Y-k.length+1);g<=K;g++){var _=Y-g,H=k.words[_]|0,J=f.words[g]|0,me=H*J,ye=me&67108863;te=te+(me/67108864|0)|0,ye=ye+ae|0,ae=ye&67108863,te=te+(ye>>>26)|0,$+=te>>>26,te&=67108863}R.words[Y]=ae,M=te,te=$}return M!==0?R.words[Y]=M:R.length--,R._strip()}function se(k,f,R){return W(k,f,R)}i.prototype.mulTo=function(f,R){var M,$=this.length+f.length;return this.length===10&&f.length===10?M=Q(this,f,R):$<63?M=j(this,f,R):$<1024?M=W(this,f,R):M=se(this,f,R),M},i.prototype.mul=function(f){var R=new i(null);return R.words=new Array(this.length+f.length),this.mulTo(f,R)},i.prototype.mulf=function(f){var R=new i(null);return R.words=new Array(this.length+f.length),se(this,f,R)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var R=f<0;R&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var M=0,$=0;$<this.length;$++){var Y=(this.words[$]|0)*f,te=(Y&67108863)+(M&67108863);M>>=26,M+=Y/67108864|0,M+=te>>>26,this.words[$]=te&67108863}return M!==0&&(this.words[$]=M,this.length++),f===0&&(this.length=1,this._normSign()),R?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var R=F(f);if(R.length===0)return new i(1);for(var M=this,$=0;$<R.length&&R[$]===0;$++,M=M.sqr());if(++$<R.length)for(var Y=M.sqr();$<R.length;$++,Y=Y.sqr())R[$]!==0&&(M=M.mul(Y));return M},i.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var R=f%26,M=(f-R)/26,$=67108863>>>26-R<<26-R,Y;if(R!==0){var te=0;for(Y=0;Y<this.length;Y++){var ae=this.words[Y]&$,K=(this.words[Y]|0)-ae<<R;this.words[Y]=K|te,te=ae>>>26-R}te&&(this.words[Y]=te,this.length++)}if(M!==0){for(Y=this.length-1;Y>=0;Y--)this.words[Y+M]=this.words[Y];for(Y=0;Y<M;Y++)this.words[Y]=0;this.length+=M}return this._strip()},i.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,R,M){r(typeof f=="number"&&f>=0);var $;R?$=(R-R%26)/26:$=0;var Y=f%26,te=Math.min((f-Y)/26,this.length),ae=67108863^67108863>>>Y<<Y,K=M;if($-=te,$=Math.max(0,$),K){for(var g=0;g<te;g++)K.words[g]=this.words[g];K.length=te}if(te!==0)if(this.length>te)for(this.length-=te,g=0;g<this.length;g++)this.words[g]=this.words[g+te];else this.words[0]=0,this.length=1;var _=0;for(g=this.length-1;g>=0&&(_!==0||g>=$);g--){var H=this.words[g]|0;this.words[g]=_<<26-Y|H>>>Y,_=H&ae}return K&&_!==0&&(K.words[K.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,R,M){return r(this.negative===0),this.iushrn(f,R,M)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var R=f%26,M=(f-R)/26,$=1<<R;if(this.length<=M)return!1;var Y=this.words[M];return!!(Y&$)},i.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var R=f%26,M=(f-R)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(R!==0&&M++,this.length=Math.min(M,this.length),R!==0){var $=67108863^67108863>>>R<<R;this.words[this.length-1]&=$}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var R=0;R<this.length&&this.words[R]>=67108864;R++)this.words[R]-=67108864,R===this.length-1?this.words[R+1]=1:this.words[R+1]++;return this.length=Math.max(this.length,R+1),this},i.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var R=0;R<this.length&&this.words[R]<0;R++)this.words[R]+=67108864,this.words[R+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,R,M){var $=f.length+M,Y;this._expand($);var te,ae=0;for(Y=0;Y<f.length;Y++){te=(this.words[Y+M]|0)+ae;var K=(f.words[Y]|0)*R;te-=K&67108863,ae=(te>>26)-(K/67108864|0),this.words[Y+M]=te&67108863}for(;Y<this.length-M;Y++)te=(this.words[Y+M]|0)+ae,ae=te>>26,this.words[Y+M]=te&67108863;if(ae===0)return this._strip();for(r(ae===-1),ae=0,Y=0;Y<this.length;Y++)te=-(this.words[Y]|0)+ae,ae=te>>26,this.words[Y]=te&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,R){var M=this.length-f.length,$=this.clone(),Y=f,te=Y.words[Y.length-1]|0,ae=this._countBits(te);M=26-ae,M!==0&&(Y=Y.ushln(M),$.iushln(M),te=Y.words[Y.length-1]|0);var K=$.length-Y.length,g;if(R!=="mod"){g=new i(null),g.length=K+1,g.words=new Array(g.length);for(var _=0;_<g.length;_++)g.words[_]=0}var H=$.clone()._ishlnsubmul(Y,1,K);H.negative===0&&($=H,g&&(g.words[K]=1));for(var J=K-1;J>=0;J--){var me=($.words[Y.length+J]|0)*67108864+($.words[Y.length+J-1]|0);for(me=Math.min(me/te|0,67108863),$._ishlnsubmul(Y,me,J);$.negative!==0;)me--,$.negative=0,$._ishlnsubmul(Y,1,J),$.isZero()||($.negative^=1);g&&(g.words[J]=me)}return g&&g._strip(),$._strip(),R!=="div"&&M!==0&&$.iushrn(M),{div:g||null,mod:$}},i.prototype.divmod=function(f,R,M){if(r(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var $,Y,te;return this.negative!==0&&f.negative===0?(te=this.neg().divmod(f,R),R!=="mod"&&($=te.div.neg()),R!=="div"&&(Y=te.mod.neg(),M&&Y.negative!==0&&Y.iadd(f)),{div:$,mod:Y}):this.negative===0&&f.negative!==0?(te=this.divmod(f.neg(),R),R!=="mod"&&($=te.div.neg()),{div:$,mod:te.mod}):(this.negative&f.negative)!==0?(te=this.neg().divmod(f.neg(),R),R!=="div"&&(Y=te.mod.neg(),M&&Y.negative!==0&&Y.isub(f)),{div:te.div,mod:Y}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?R==="div"?{div:this.divn(f.words[0]),mod:null}:R==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,R)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var R=this.divmod(f);if(R.mod.isZero())return R.div;var M=R.mod.abs(),$=f.abs().iushrn(1),Y=f.words[0]&1,te=M.cmp($);if(te<0||Y===1&&te===0)return R.div;var ae=new i(1);return ae.negative=this.negative^f.negative,R.div.iadd(ae)},i.prototype.modrn=function(f){var R=f<0;R&&(f=-f),r(f<=67108863);for(var M=(1<<26)%f,$=0,Y=this.length-1;Y>=0;Y--)$=(M*$+(this.words[Y]|0))%f;return R?-$:$},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var R=f<0;R&&(f=-f),r(f<=67108863);for(var M=0,$=this.length-1;$>=0;$--){var Y=(this.words[$]|0)+M*67108864;this.words[$]=Y/f|0,M=Y%f}return this._strip(),R?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var R=this,M=f.clone();R.negative!==0?R=R.umod(f):R=R.clone();for(var $=new i(1),Y=new i(0),te=new i(0),ae=new i(1),K=0;R.isEven()&&M.isEven();)R.iushrn(1),M.iushrn(1),++K;for(var g=M.clone(),_=R.clone();!R.isZero();){for(var H=0,J=1;(R.words[0]&J)===0&&H<26;++H,J<<=1);if(H>0)for(R.iushrn(H);H-- >0;)($.isOdd()||Y.isOdd())&&($.iadd(g),Y.isub(_)),$.iushrn(1),Y.iushrn(1);for(var me=0,ye=1;(M.words[0]&ye)===0&&me<26;++me,ye<<=1);if(me>0)for(M.iushrn(me);me-- >0;)(te.isOdd()||ae.isOdd())&&(te.iadd(g),ae.isub(_)),te.iushrn(1),ae.iushrn(1);R.cmp(M)>=0?(R.isub(M),$.isub(te),Y.isub(ae)):(M.isub(R),te.isub($),ae.isub(Y))}return{a:te,b:ae,gcd:M.iushln(K)}},i.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var R=this,M=f.clone();R.negative!==0?R=R.umod(f):R=R.clone();for(var $=new i(1),Y=new i(0),te=M.clone();R.cmpn(1)>0&&M.cmpn(1)>0;){for(var ae=0,K=1;(R.words[0]&K)===0&&ae<26;++ae,K<<=1);if(ae>0)for(R.iushrn(ae);ae-- >0;)$.isOdd()&&$.iadd(te),$.iushrn(1);for(var g=0,_=1;(M.words[0]&_)===0&&g<26;++g,_<<=1);if(g>0)for(M.iushrn(g);g-- >0;)Y.isOdd()&&Y.iadd(te),Y.iushrn(1);R.cmp(M)>=0?(R.isub(M),$.isub(Y)):(M.isub(R),Y.isub($))}var H;return R.cmpn(1)===0?H=$:H=Y,H.cmpn(0)<0&&H.iadd(f),H},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var R=this.clone(),M=f.clone();R.negative=0,M.negative=0;for(var $=0;R.isEven()&&M.isEven();$++)R.iushrn(1),M.iushrn(1);do{for(;R.isEven();)R.iushrn(1);for(;M.isEven();)M.iushrn(1);var Y=R.cmp(M);if(Y<0){var te=R;R=M,M=te}else if(Y===0||M.cmpn(1)===0)break;R.isub(M)}while(!0);return M.iushln($)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){r(typeof f=="number");var R=f%26,M=(f-R)/26,$=1<<R;if(this.length<=M)return this._expand(M+1),this.words[M]|=$,this;for(var Y=$,te=M;Y!==0&&te<this.length;te++){var ae=this.words[te]|0;ae+=Y,Y=ae>>>26,ae&=67108863,this.words[te]=ae}return Y!==0&&(this.words[te]=Y,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var R=f<0;if(this.negative!==0&&!R)return-1;if(this.negative===0&&R)return 1;this._strip();var M;if(this.length>1)M=1;else{R&&(f=-f),r(f<=67108863,"Number is too big");var $=this.words[0]|0;M=$===f?0:$<f?-1:1}return this.negative!==0?-M|0:M},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var R=this.ucmp(f);return this.negative!==0?-R|0:R},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var R=0,M=this.length-1;M>=0;M--){var $=this.words[M]|0,Y=f.words[M]|0;if($!==Y){$<Y?R=-1:$>Y&&(R=1);break}}return R},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new de(f)},i.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var ue={k256:null,p224:null,p192:null,p25519:null};function oe(k,f){this.name=k,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}oe.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},oe.prototype.ireduce=function(f){var R=f,M;do this.split(R,this.tmp),R=this.imulK(R),R=R.iadd(this.tmp),M=R.bitLength();while(M>this.n);var $=M<this.n?-1:R.ucmp(this.p);return $===0?(R.words[0]=0,R.length=1):$>0?R.isub(this.p):R.strip!==void 0?R.strip():R._strip(),R},oe.prototype.split=function(f,R){f.iushrn(this.n,0,R)},oe.prototype.imulK=function(f){return f.imul(this.k)};function Ee(){oe.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(Ee,oe),Ee.prototype.split=function(f,R){for(var M=4194303,$=Math.min(f.length,9),Y=0;Y<$;Y++)R.words[Y]=f.words[Y];if(R.length=$,f.length<=9){f.words[0]=0,f.length=1;return}var te=f.words[9];for(R.words[R.length++]=te&M,Y=10;Y<f.length;Y++){var ae=f.words[Y]|0;f.words[Y-10]=(ae&M)<<4|te>>>22,te=ae}te>>>=22,f.words[Y-10]=te,te===0&&f.length>10?f.length-=10:f.length-=9},Ee.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var R=0,M=0;M<f.length;M++){var $=f.words[M]|0;R+=$*977,f.words[M]=R&67108863,R=$*64+(R/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function Re(){oe.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(Re,oe);function ne(){oe.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(ne,oe);function ie(){oe.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(ie,oe),ie.prototype.imulK=function(f){for(var R=0,M=0;M<f.length;M++){var $=(f.words[M]|0)*19+R,Y=$&67108863;$>>>=26,f.words[M]=Y,R=$}return R!==0&&(f.words[f.length++]=R),f},i._prime=function(f){if(ue[f])return ue[f];var R;if(f==="k256")R=new Ee;else if(f==="p224")R=new Re;else if(f==="p192")R=new ne;else if(f==="p25519")R=new ie;else throw new Error("Unknown prime "+f);return ue[f]=R,R};function de(k){if(typeof k=="string"){var f=i._prime(k);this.m=f.p,this.prime=f}else r(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}de.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},de.prototype._verify2=function(f,R){r((f.negative|R.negative)===0,"red works only with positives"),r(f.red&&f.red===R.red,"red works only with red numbers")},de.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(A(f,f.umod(this.m)._forceRed(this)),f)},de.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},de.prototype.add=function(f,R){this._verify2(f,R);var M=f.add(R);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},de.prototype.iadd=function(f,R){this._verify2(f,R);var M=f.iadd(R);return M.cmp(this.m)>=0&&M.isub(this.m),M},de.prototype.sub=function(f,R){this._verify2(f,R);var M=f.sub(R);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},de.prototype.isub=function(f,R){this._verify2(f,R);var M=f.isub(R);return M.cmpn(0)<0&&M.iadd(this.m),M},de.prototype.shl=function(f,R){return this._verify1(f),this.imod(f.ushln(R))},de.prototype.imul=function(f,R){return this._verify2(f,R),this.imod(f.imul(R))},de.prototype.mul=function(f,R){return this._verify2(f,R),this.imod(f.mul(R))},de.prototype.isqr=function(f){return this.imul(f,f.clone())},de.prototype.sqr=function(f){return this.mul(f,f)},de.prototype.sqrt=function(f){if(f.isZero())return f.clone();var R=this.m.andln(3);if(r(R%2===1),R===3){var M=this.m.add(new i(1)).iushrn(2);return this.pow(f,M)}for(var $=this.m.subn(1),Y=0;!$.isZero()&&$.andln(1)===0;)Y++,$.iushrn(1);r(!$.isZero());var te=new i(1).toRed(this),ae=te.redNeg(),K=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new i(2*g*g).toRed(this);this.pow(g,K).cmp(ae)!==0;)g.redIAdd(ae);for(var _=this.pow(g,$),H=this.pow(f,$.addn(1).iushrn(1)),J=this.pow(f,$),me=Y;J.cmp(te)!==0;){for(var ye=J,Ue=0;ye.cmp(te)!==0;Ue++)ye=ye.redSqr();r(Ue<me);var Ke=this.pow(_,new i(1).iushln(me-Ue-1));H=H.redMul(Ke),_=Ke.redSqr(),J=J.redMul(_),me=Ue}return H},de.prototype.invm=function(f){var R=f._invmp(this.m);return R.negative!==0?(R.negative=0,this.imod(R).redNeg()):this.imod(R)},de.prototype.pow=function(f,R){if(R.isZero())return new i(1).toRed(this);if(R.cmpn(1)===0)return f.clone();var M=4,$=new Array(1<<M);$[0]=new i(1).toRed(this),$[1]=f;for(var Y=2;Y<$.length;Y++)$[Y]=this.mul($[Y-1],f);var te=$[0],ae=0,K=0,g=R.bitLength()%26;for(g===0&&(g=26),Y=R.length-1;Y>=0;Y--){for(var _=R.words[Y],H=g-1;H>=0;H--){var J=_>>H&1;if(te!==$[0]&&(te=this.sqr(te)),J===0&&ae===0){K=0;continue}ae<<=1,ae|=J,K++,!(K!==M&&(Y!==0||H!==0))&&(te=this.mul(te,$[ae]),K=0,ae=0)}g=26}return te},de.prototype.convertTo=function(f){var R=f.umod(this.m);return R===f?R.clone():R},de.prototype.convertFrom=function(f){var R=f.clone();return R.red=null,R},i.mont=function(f){return new ge(f)};function ge(k){de.call(this,k),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}c(ge,de),ge.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},ge.prototype.convertFrom=function(f){var R=this.imod(f.mul(this.rinv));return R.red=null,R},ge.prototype.imul=function(f,R){if(f.isZero()||R.isZero())return f.words[0]=0,f.length=1,f;var M=f.imul(R),$=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=M.isub($).iushrn(this.shift),te=Y;return Y.cmp(this.m)>=0?te=Y.isub(this.m):Y.cmpn(0)<0&&(te=Y.iadd(this.m)),te._forceRed(this)},ge.prototype.mul=function(f,R){if(f.isZero()||R.isZero())return new i(0)._forceRed(this);var M=f.mul(R),$=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Y=M.isub($).iushrn(this.shift),te=Y;return Y.cmp(this.m)>=0?te=Y.isub(this.m):Y.cmpn(0)<0&&(te=Y.iadd(this.m)),te._forceRed(this)},ge.prototype.invm=function(f){var R=this.imod(f._invmp(this.m).mul(this.r2));return R._forceRed(this)}})(e,mh)})(Ci)),Ci.exports}var gh=Pu();const Fu=Us(gh);var Mi={exports:{}};var Vu;function Gu(){return Vu||(Vu=1,(function(e,t){var n=Vs(),r=n.Buffer;function c(d,v){for(var l in d)v[l]=d[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=i);function i(d,v,l){return r(d,v,l)}i.prototype=Object.create(r.prototype),c(r,i),i.from=function(d,v,l){if(typeof d=="number")throw new TypeError("Argument must not be a number");return r(d,v,l)},i.alloc=function(d,v,l){if(typeof d!="number")throw new TypeError("Argument must be a number");var y=r(d);return v!==void 0?typeof l=="string"?y.fill(v,l):y.fill(v):y.fill(0),y},i.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return r(d)},i.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(d)}})(Mi,Mi.exports)),Mi.exports}var na,Hu;function vh(){if(Hu)return na;Hu=1;var e=Gu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),c=0;c<r.length;c++)r[c]=255;for(var i=0;i<n.length;i++){var d=n.charAt(i),v=d.charCodeAt(0);if(r[v]!==255)throw new TypeError(d+" is ambiguous");r[v]=i}var l=n.length,y=n.charAt(0),A=Math.log(l)/Math.log(256),O=Math.log(256)/Math.log(l);function S(C){if((Array.isArray(C)||C instanceof Uint8Array)&&(C=e.from(C)),!e.isBuffer(C))throw new TypeError("Expected Buffer");if(C.length===0)return"";for(var F=0,j=0,Q=0,W=C.length;Q!==W&&C[Q]===0;)Q++,F++;for(var se=(W-Q)*O+1>>>0,ue=new Uint8Array(se);Q!==W;){for(var oe=C[Q],Ee=0,Re=se-1;(oe!==0||Ee<j)&&Re!==-1;Re--,Ee++)oe+=256*ue[Re]>>>0,ue[Re]=oe%l>>>0,oe=oe/l>>>0;if(oe!==0)throw new Error("Non-zero carry");j=Ee,Q++}for(var ne=se-j;ne!==se&&ue[ne]===0;)ne++;for(var ie=y.repeat(F);ne<se;++ne)ie+=n.charAt(ue[ne]);return ie}function I(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return e.alloc(0);for(var F=0,j=0,Q=0;C[F]===y;)j++,F++;for(var W=(C.length-F)*A+1>>>0,se=new Uint8Array(W);F<C.length;){var ue=C.charCodeAt(F);if(ue>255)return;var oe=r[ue];if(oe===255)return;for(var Ee=0,Re=W-1;(oe!==0||Ee<Q)&&Re!==-1;Re--,Ee++)oe+=l*se[Re]>>>0,se[Re]=oe%256>>>0,oe=oe/256>>>0;if(oe!==0)throw new Error("Non-zero carry");Q=Ee,F++}for(var ne=W-Q;ne!==W&&se[ne]===0;)ne++;var ie=e.allocUnsafe(j+(W-ne));ie.fill(0,0,j);for(var de=j;ne!==W;)ie[de++]=se[ne++];return ie}function B(C){var F=I(C);if(F)return F;throw new Error("Non-base"+l+" character")}return{encode:S,decodeUnsafe:I,decode:B}}return na=t,na}var ra,$u;function yh(){if($u)return ra;$u=1;var e=vh(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return ra=e(t),ra}var wh=yh();const En=Us(wh),ju=cu;var Ot={},oa,Ku;function _h(){if(Ku)return oa;Ku=1;var e=Gu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),c=0;c<r.length;c++)r[c]=255;for(var i=0;i<n.length;i++){var d=n.charAt(i),v=d.charCodeAt(0);if(r[v]!==255)throw new TypeError(d+" is ambiguous");r[v]=i}var l=n.length,y=n.charAt(0),A=Math.log(l)/Math.log(256),O=Math.log(256)/Math.log(l);function S(C){if((Array.isArray(C)||C instanceof Uint8Array)&&(C=e.from(C)),!e.isBuffer(C))throw new TypeError("Expected Buffer");if(C.length===0)return"";for(var F=0,j=0,Q=0,W=C.length;Q!==W&&C[Q]===0;)Q++,F++;for(var se=(W-Q)*O+1>>>0,ue=new Uint8Array(se);Q!==W;){for(var oe=C[Q],Ee=0,Re=se-1;(oe!==0||Ee<j)&&Re!==-1;Re--,Ee++)oe+=256*ue[Re]>>>0,ue[Re]=oe%l>>>0,oe=oe/l>>>0;if(oe!==0)throw new Error("Non-zero carry");j=Ee,Q++}for(var ne=se-j;ne!==se&&ue[ne]===0;)ne++;for(var ie=y.repeat(F);ne<se;++ne)ie+=n.charAt(ue[ne]);return ie}function I(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return e.alloc(0);for(var F=0,j=0,Q=0;C[F]===y;)j++,F++;for(var W=(C.length-F)*A+1>>>0,se=new Uint8Array(W);F<C.length;){var ue=C.charCodeAt(F);if(ue>255)return;var oe=r[ue];if(oe===255)return;for(var Ee=0,Re=W-1;(oe!==0||Ee<Q)&&Re!==-1;Re--,Ee++)oe+=l*se[Re]>>>0,se[Re]=oe%256>>>0,oe=oe/256>>>0;if(oe!==0)throw new Error("Non-zero carry");Q=Ee,F++}for(var ne=W-Q;ne!==W&&se[ne]===0;)ne++;var ie=e.allocUnsafe(j+(W-ne));ie.fill(0,0,j);for(var de=j;ne!==W;)ie[de++]=se[ne++];return ie}function B(C){var F=I(C);if(F)return F;throw new Error("Non-base"+l+" character")}return{encode:S,decodeUnsafe:I,decode:B}}return oa=t,oa}var ia,Wu;function Eh(){if(Wu)return ia;Wu=1;var e=_h(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return ia=e(t),ia}function ar(e,t,n){return t<=e&&e<=n}function Bi(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function Rh(e){for(var t=String(e),n=t.length,r=0,c=[];r<n;){var i=t.charCodeAt(r);if(i<55296||i>57343)c.push(i);else if(56320<=i&&i<=57343)c.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)c.push(65533);else{var d=e.charCodeAt(r+1);if(56320<=d&&d<=57343){var v=i&1023,l=d&1023;c.push(65536+(v<<10)+l),r+=1}else c.push(65533)}r+=1}return c}function bh(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode((r>>10)+55296,(r&1023)+56320))}return t}var ki=-1;function sa(e){this.tokens=[].slice.call(e)}sa.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():ki},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var no=-1;function aa(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Di="utf-8";function Ui(e,t){if(!(this instanceof Ui))return new Ui(e,t);if(e=e!==void 0?String(e).toLowerCase():Di,e!==Di)throw new Error("Encoding not supported. Only utf-8 is supported");t=Bi(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Ui.prototype={decode:function(t,n){var r;typeof t=="object"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=Bi(n),this._streaming||(this._decoder=new Ah({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var c=new sa(r),i=[],d;!c.endOfStream()&&(d=this._decoder.handler(c,c.read()),d!==no);)d!==null&&(Array.isArray(d)?i.push.apply(i,d):i.push(d));if(!this._streaming){do{if(d=this._decoder.handler(c,c.read()),d===no)break;d!==null&&(Array.isArray(d)?i.push.apply(i,d):i.push(d))}while(!c.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),bh(i)}};function Pi(e,t){if(!(this instanceof Pi))return new Pi(e,t);if(e=e!==void 0?String(e).toLowerCase():Di,e!==Di)throw new Error("Encoding not supported. Only utf-8 is supported");t=Bi(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Pi.prototype={encode:function(t,n){t=t?String(t):"",n=Bi(n),this._streaming||(this._encoder=new Sh(this._options)),this._streaming=!!n.stream;for(var r=[],c=new sa(Rh(t)),i;!c.endOfStream()&&(i=this._encoder.handler(c,c.read()),i!==no);)Array.isArray(i)?r.push.apply(r,i):r.push(i);if(!this._streaming){for(;i=this._encoder.handler(c,c.read()),i!==no;)Array.isArray(i)?r.push.apply(r,i):r.push(i);this._encoder=null}return new Uint8Array(r)}};function Ah(e){var t=e.fatal,n=0,r=0,c=0,i=128,d=191;this.handler=function(v,l){if(l===ki&&c!==0)return c=0,aa(t);if(l===ki)return no;if(c===0){if(ar(l,0,127))return l;if(ar(l,194,223))c=1,n=l-192;else if(ar(l,224,239))l===224&&(i=160),l===237&&(d=159),c=2,n=l-224;else if(ar(l,240,244))l===240&&(i=144),l===244&&(d=143),c=3,n=l-240;else return aa(t);return n=n<<6*c,null}if(!ar(l,i,d))return n=c=r=0,i=128,d=191,v.prepend(l),aa(t);if(i=128,d=191,r+=1,n+=l-128<<6*(c-r),r!==c)return null;var y=n;return n=c=r=0,y}}function Sh(e){e.fatal,this.handler=function(t,n){if(n===ki)return no;if(ar(n,0,127))return n;var r,c;ar(n,128,2047)?(r=1,c=192):ar(n,2048,65535)?(r=2,c=224):ar(n,65536,1114111)&&(r=3,c=240);for(var i=[(n>>6*r)+c];r>0;){var d=n>>6*(r-1);i.push(128|d&63),r-=1}return i}}const Ih=Ps(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Ui,TextEncoder:Pi},Symbol.toStringTag,{value:"Module"})));var zu;function Oh(){if(zu)return Ot;zu=1;var e=Ot&&Ot.__createBinding||(Object.create?(function(ne,ie,de,ge){ge===void 0&&(ge=de),Object.defineProperty(ne,ge,{enumerable:!0,get:function(){return ie[de]}})}):(function(ne,ie,de,ge){ge===void 0&&(ge=de),ne[ge]=ie[de]})),t=Ot&&Ot.__setModuleDefault||(Object.create?(function(ne,ie){Object.defineProperty(ne,"default",{enumerable:!0,value:ie})}):function(ne,ie){ne.default=ie}),n=Ot&&Ot.__decorate||function(ne,ie,de,ge){var k=arguments.length,f=k<3?ie:ge===null?ge=Object.getOwnPropertyDescriptor(ie,de):ge,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(ne,ie,de,ge);else for(var M=ne.length-1;M>=0;M--)(R=ne[M])&&(f=(k<3?R(f):k>3?R(ie,de,f):R(ie,de))||f);return k>3&&f&&Object.defineProperty(ie,de,f),f},r=Ot&&Ot.__importStar||function(ne){if(ne&&ne.__esModule)return ne;var ie={};if(ne!=null)for(var de in ne)de!=="default"&&Object.hasOwnProperty.call(ne,de)&&e(ie,ne,de);return t(ie,ne),ie},c=Ot&&Ot.__importDefault||function(ne){return ne&&ne.__esModule?ne:{default:ne}};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.deserializeUnchecked=Ot.deserialize=Ot.serialize=Ot.BinaryReader=Ot.BinaryWriter=Ot.BorshError=Ot.baseDecode=Ot.baseEncode=void 0;const i=c(Pu()),d=c(Eh()),v=r(Ih),l=typeof TextDecoder!="function"?v.TextDecoder:TextDecoder,y=new l("utf-8",{fatal:!0});function A(ne){return typeof ne=="string"&&(ne=Buffer.from(ne,"utf8")),d.default.encode(Buffer.from(ne))}Ot.baseEncode=A;function O(ne){return Buffer.from(d.default.decode(ne))}Ot.baseDecode=O;const S=1024;class I extends Error{constructor(ie){super(ie),this.fieldPath=[],this.originalMessage=ie}addToFieldPath(ie){this.fieldPath.splice(0,0,ie),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ot.BorshError=I;class B{constructor(){this.buf=Buffer.alloc(S),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(S)]))}writeU8(ie){this.maybeResize(),this.buf.writeUInt8(ie,this.length),this.length+=1}writeU16(ie){this.maybeResize(),this.buf.writeUInt16LE(ie,this.length),this.length+=2}writeU32(ie){this.maybeResize(),this.buf.writeUInt32LE(ie,this.length),this.length+=4}writeU64(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",8)))}writeU128(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",16)))}writeU256(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",32)))}writeU512(ie){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(ie).toArray("le",64)))}writeBuffer(ie){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),ie,Buffer.alloc(S)]),this.length+=ie.length}writeString(ie){this.maybeResize();const de=Buffer.from(ie,"utf8");this.writeU32(de.length),this.writeBuffer(de)}writeFixedArray(ie){this.writeBuffer(Buffer.from(ie))}writeArray(ie,de){this.maybeResize(),this.writeU32(ie.length);for(const ge of ie)this.maybeResize(),de(ge)}toArray(){return this.buf.subarray(0,this.length)}}Ot.BinaryWriter=B;function C(ne,ie,de){const ge=de.value;de.value=function(...k){try{return ge.apply(this,k)}catch(f){if(f instanceof RangeError){const R=f.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(R)>=0)throw new I("Reached the end of buffer when deserializing")}throw f}}}class F{constructor(ie){this.buf=ie,this.offset=0}readU8(){const ie=this.buf.readUInt8(this.offset);return this.offset+=1,ie}readU16(){const ie=this.buf.readUInt16LE(this.offset);return this.offset+=2,ie}readU32(){const ie=this.buf.readUInt32LE(this.offset);return this.offset+=4,ie}readU64(){const ie=this.readBuffer(8);return new i.default(ie,"le")}readU128(){const ie=this.readBuffer(16);return new i.default(ie,"le")}readU256(){const ie=this.readBuffer(32);return new i.default(ie,"le")}readU512(){const ie=this.readBuffer(64);return new i.default(ie,"le")}readBuffer(ie){if(this.offset+ie>this.buf.length)throw new I(`Expected buffer length ${ie} isn't within bounds`);const de=this.buf.slice(this.offset,this.offset+ie);return this.offset+=ie,de}readString(){const ie=this.readU32(),de=this.readBuffer(ie);try{return y.decode(de)}catch(ge){throw new I(`Error decoding UTF-8 string: ${ge}`)}}readFixedArray(ie){return new Uint8Array(this.readBuffer(ie))}readArray(ie){const de=this.readU32(),ge=Array();for(let k=0;k<de;++k)ge.push(ie());return ge}}n([C],F.prototype,"readU8",null),n([C],F.prototype,"readU16",null),n([C],F.prototype,"readU32",null),n([C],F.prototype,"readU64",null),n([C],F.prototype,"readU128",null),n([C],F.prototype,"readU256",null),n([C],F.prototype,"readU512",null),n([C],F.prototype,"readString",null),n([C],F.prototype,"readFixedArray",null),n([C],F.prototype,"readArray",null),Ot.BinaryReader=F;function j(ne){return ne.charAt(0).toUpperCase()+ne.slice(1)}function Q(ne,ie,de,ge,k){try{if(typeof ge=="string")k[`write${j(ge)}`](de);else if(ge instanceof Array)if(typeof ge[0]=="number"){if(de.length!==ge[0])throw new I(`Expecting byte array of length ${ge[0]}, but got ${de.length} bytes`);k.writeFixedArray(de)}else if(ge.length===2&&typeof ge[1]=="number"){if(de.length!==ge[1])throw new I(`Expecting byte array of length ${ge[1]}, but got ${de.length} bytes`);for(let f=0;f<ge[1];f++)Q(ne,null,de[f],ge[0],k)}else k.writeArray(de,f=>{Q(ne,ie,f,ge[0],k)});else if(ge.kind!==void 0)switch(ge.kind){case"option":{de==null?k.writeU8(0):(k.writeU8(1),Q(ne,ie,de,ge.type,k));break}case"map":{k.writeU32(de.size),de.forEach((f,R)=>{Q(ne,ie,R,ge.key,k),Q(ne,ie,f,ge.value,k)});break}default:throw new I(`FieldType ${ge} unrecognized`)}else W(ne,de,k)}catch(f){throw f instanceof I&&f.addToFieldPath(ie),f}}function W(ne,ie,de){if(typeof ie.borshSerialize=="function"){ie.borshSerialize(de);return}const ge=ne.get(ie.constructor);if(!ge)throw new I(`Class ${ie.constructor.name} is missing in schema`);if(ge.kind==="struct")ge.fields.map(([k,f])=>{Q(ne,k,ie[k],f,de)});else if(ge.kind==="enum"){const k=ie[ge.field];for(let f=0;f<ge.values.length;++f){const[R,M]=ge.values[f];if(R===k){de.writeU8(f),Q(ne,R,ie[R],M,de);break}}}else throw new I(`Unexpected schema kind: ${ge.kind} for ${ie.constructor.name}`)}function se(ne,ie,de=B){const ge=new de;return W(ne,ie,ge),ge.toArray()}Ot.serialize=se;function ue(ne,ie,de,ge){try{if(typeof de=="string")return ge[`read${j(de)}`]();if(de instanceof Array){if(typeof de[0]=="number")return ge.readFixedArray(de[0]);if(typeof de[1]=="number"){const k=[];for(let f=0;f<de[1];f++)k.push(ue(ne,null,de[0],ge));return k}else return ge.readArray(()=>ue(ne,ie,de[0],ge))}if(de.kind==="option")return ge.readU8()?ue(ne,ie,de.type,ge):void 0;if(de.kind==="map"){let k=new Map;const f=ge.readU32();for(let R=0;R<f;R++){const M=ue(ne,ie,de.key,ge),$=ue(ne,ie,de.value,ge);k.set(M,$)}return k}return oe(ne,de,ge)}catch(k){throw k instanceof I&&k.addToFieldPath(ie),k}}function oe(ne,ie,de){if(typeof ie.borshDeserialize=="function")return ie.borshDeserialize(de);const ge=ne.get(ie);if(!ge)throw new I(`Class ${ie.name} is missing in schema`);if(ge.kind==="struct"){const k={};for(const[f,R]of ne.get(ie).fields)k[f]=ue(ne,f,R,de);return new ie(k)}if(ge.kind==="enum"){const k=de.readU8();if(k>=ge.values.length)throw new I(`Enum index: ${k} is out of range`);const[f,R]=ge.values[k],M=ue(ne,f,R,de);return new ie({[f]:M})}throw new I(`Unexpected schema kind: ${ge.kind} for ${ie.constructor.name}`)}function Ee(ne,ie,de,ge=F){const k=new ge(de),f=oe(ne,ie,k);if(k.offset<de.length)throw new I(`Unexpected ${de.length-k.offset} bytes after deserialized data`);return f}Ot.deserialize=Ee;function Re(ne,ie,de,ge=F){const k=new ge(de);return oe(ne,ie,k)}return Ot.deserializeUnchecked=Re,Ot}var ca=Oh(),Oe={},Zu;function Nh(){if(Zu)return Oe;Zu=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.s16=Oe.s8=Oe.nu64be=Oe.u48be=Oe.u40be=Oe.u32be=Oe.u24be=Oe.u16be=Oe.nu64=Oe.u48=Oe.u40=Oe.u32=Oe.u24=Oe.u16=Oe.u8=Oe.offset=Oe.greedy=Oe.Constant=Oe.UTF8=Oe.CString=Oe.Blob=Oe.Boolean=Oe.BitField=Oe.BitStructure=Oe.VariantLayout=Oe.Union=Oe.UnionLayoutDiscriminator=Oe.UnionDiscriminator=Oe.Structure=Oe.Sequence=Oe.DoubleBE=Oe.Double=Oe.FloatBE=Oe.Float=Oe.NearInt64BE=Oe.NearInt64=Oe.NearUInt64BE=Oe.NearUInt64=Oe.IntBE=Oe.Int=Oe.UIntBE=Oe.UInt=Oe.OffsetLayout=Oe.GreedyCount=Oe.ExternalLayout=Oe.bindConstructorLayout=Oe.nameWithProperty=Oe.Layout=Oe.uint8ArrayToBuffer=Oe.checkUint8Array=void 0,Oe.constant=Oe.utf8=Oe.cstr=Oe.blob=Oe.unionLayoutDiscriminator=Oe.union=Oe.seq=Oe.bits=Oe.struct=Oe.f64be=Oe.f64=Oe.f32be=Oe.f32=Oe.ns64be=Oe.s48be=Oe.s40be=Oe.s32be=Oe.s24be=Oe.s16be=Oe.ns64=Oe.s48=Oe.s40=Oe.s32=Oe.s24=void 0;const e=Vs();function t(g){if(!(g instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Oe.checkUint8Array=t;function n(g){return t(g),e.Buffer.from(g.buffer,g.byteOffset,g.length)}Oe.uint8ArrayToBuffer=n;let r=class{constructor(_,H){if(!Number.isInteger(_))throw new TypeError("span must be an integer");this.span=_,this.property=H}makeDestinationObject(){return{}}getSpan(_,H){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(_){const H=Object.create(this.constructor.prototype);return Object.assign(H,this),H.property=_,H}fromArray(_){}};Oe.Layout=r;function c(g,_){return _.property?g+"["+_.property+"]":g}Oe.nameWithProperty=c;function i(g,_){if(typeof g!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(g,"layout_"))throw new Error("Class is already bound to a layout");if(!(_&&_ instanceof r))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(_,"boundConstructor_"))throw new Error("layout is already bound to a constructor");g.layout_=_,_.boundConstructor_=g,_.makeDestinationObject=(()=>new g),Object.defineProperty(g.prototype,"encode",{value(H,J){return _.encode(this,H,J)},writable:!0}),Object.defineProperty(g,"decode",{value(H,J){return _.decode(H,J)},writable:!0})}Oe.bindConstructorLayout=i;class d extends r{isCount(){throw new Error("ExternalLayout is abstract")}}Oe.ExternalLayout=d;class v extends d{constructor(_=1,H){if(!Number.isInteger(_)||0>=_)throw new TypeError("elementSpan must be a (positive) integer");super(-1,H),this.elementSpan=_}isCount(){return!0}decode(_,H=0){t(_);const J=_.length-H;return Math.floor(J/this.elementSpan)}encode(_,H,J){return 0}}Oe.GreedyCount=v;class l extends d{constructor(_,H=0,J){if(!(_ instanceof r))throw new TypeError("layout must be a Layout");if(!Number.isInteger(H))throw new TypeError("offset must be integer or undefined");super(_.span,J||_.property),this.layout=_,this.offset=H}isCount(){return this.layout instanceof y||this.layout instanceof A}decode(_,H=0){return this.layout.decode(_,H+this.offset)}encode(_,H,J=0){return this.layout.encode(_,H,J+this.offset)}}Oe.OffsetLayout=l;class y extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readUIntLE(H,this.span)}encode(_,H,J=0){return n(H).writeUIntLE(_,J,this.span),this.span}}Oe.UInt=y;class A extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readUIntBE(H,this.span)}encode(_,H,J=0){return n(H).writeUIntBE(_,J,this.span),this.span}}Oe.UIntBE=A;class O extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readIntLE(H,this.span)}encode(_,H,J=0){return n(H).writeIntLE(_,J,this.span),this.span}}Oe.Int=O;class S extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readIntBE(H,this.span)}encode(_,H,J=0){return n(H).writeIntBE(_,J,this.span),this.span}}Oe.IntBE=S;const I=Math.pow(2,32);function B(g){const _=Math.floor(g/I),H=g-_*I;return{hi32:_,lo32:H}}function C(g,_){return g*I+_}class F extends r{constructor(_){super(8,_)}decode(_,H=0){const J=n(_),me=J.readUInt32LE(H),ye=J.readUInt32LE(H+4);return C(ye,me)}encode(_,H,J=0){const me=B(_),ye=n(H);return ye.writeUInt32LE(me.lo32,J),ye.writeUInt32LE(me.hi32,J+4),8}}Oe.NearUInt64=F;class j extends r{constructor(_){super(8,_)}decode(_,H=0){const J=n(_),me=J.readUInt32BE(H),ye=J.readUInt32BE(H+4);return C(me,ye)}encode(_,H,J=0){const me=B(_),ye=n(H);return ye.writeUInt32BE(me.hi32,J),ye.writeUInt32BE(me.lo32,J+4),8}}Oe.NearUInt64BE=j;class Q extends r{constructor(_){super(8,_)}decode(_,H=0){const J=n(_),me=J.readUInt32LE(H),ye=J.readInt32LE(H+4);return C(ye,me)}encode(_,H,J=0){const me=B(_),ye=n(H);return ye.writeUInt32LE(me.lo32,J),ye.writeInt32LE(me.hi32,J+4),8}}Oe.NearInt64=Q;class W extends r{constructor(_){super(8,_)}decode(_,H=0){const J=n(_),me=J.readInt32BE(H),ye=J.readUInt32BE(H+4);return C(me,ye)}encode(_,H,J=0){const me=B(_),ye=n(H);return ye.writeInt32BE(me.hi32,J),ye.writeUInt32BE(me.lo32,J+4),8}}Oe.NearInt64BE=W;class se extends r{constructor(_){super(4,_)}decode(_,H=0){return n(_).readFloatLE(H)}encode(_,H,J=0){return n(H).writeFloatLE(_,J),4}}Oe.Float=se;class ue extends r{constructor(_){super(4,_)}decode(_,H=0){return n(_).readFloatBE(H)}encode(_,H,J=0){return n(H).writeFloatBE(_,J),4}}Oe.FloatBE=ue;class oe extends r{constructor(_){super(8,_)}decode(_,H=0){return n(_).readDoubleLE(H)}encode(_,H,J=0){return n(H).writeDoubleLE(_,J),8}}Oe.Double=oe;class Ee extends r{constructor(_){super(8,_)}decode(_,H=0){return n(_).readDoubleBE(H)}encode(_,H,J=0){return n(H).writeDoubleBE(_,J),8}}Oe.DoubleBE=Ee;class Re extends r{constructor(_,H,J){if(!(_ instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(H instanceof d&&H.isCount()||Number.isInteger(H)&&0<=H))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let me=-1;!(H instanceof d)&&0<_.span&&(me=H*_.span),super(me,J),this.elementLayout=_,this.count=H}getSpan(_,H=0){if(0<=this.span)return this.span;let J=0,me=this.count;if(me instanceof d&&(me=me.decode(_,H)),0<this.elementLayout.span)J=me*this.elementLayout.span;else{let ye=0;for(;ye<me;)J+=this.elementLayout.getSpan(_,H+J),++ye}return J}decode(_,H=0){const J=[];let me=0,ye=this.count;for(ye instanceof d&&(ye=ye.decode(_,H));me<ye;)J.push(this.elementLayout.decode(_,H)),H+=this.elementLayout.getSpan(_,H),me+=1;return J}encode(_,H,J=0){const me=this.elementLayout,ye=_.reduce((Ue,Ke)=>Ue+me.encode(Ke,H,J+Ue),0);return this.count instanceof d&&this.count.encode(_.length,H,J),ye}}Oe.Sequence=Re;class ne extends r{constructor(_,H,J){if(!(Array.isArray(_)&&_.reduce((ye,Ue)=>ye&&Ue instanceof r,!0)))throw new TypeError("fields must be array of Layout instances");typeof H=="boolean"&&J===void 0&&(J=H,H=void 0);for(const ye of _)if(0>ye.span&&ye.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let me=-1;try{me=_.reduce((ye,Ue)=>ye+Ue.getSpan(),0)}catch{}super(me,H),this.fields=_,this.decodePrefixes=!!J}getSpan(_,H=0){if(0<=this.span)return this.span;let J=0;try{J=this.fields.reduce((me,ye)=>{const Ue=ye.getSpan(_,H);return H+=Ue,me+Ue},0)}catch{throw new RangeError("indeterminate span")}return J}decode(_,H=0){t(_);const J=this.makeDestinationObject();for(const me of this.fields)if(me.property!==void 0&&(J[me.property]=me.decode(_,H)),H+=me.getSpan(_,H),this.decodePrefixes&&_.length===H)break;return J}encode(_,H,J=0){const me=J;let ye=0,Ue=0;for(const Ke of this.fields){let st=Ke.span;if(Ue=0<st?st:0,Ke.property!==void 0){const at=_[Ke.property];at!==void 0&&(Ue=Ke.encode(at,H,J),0>st&&(st=Ke.getSpan(H,J)))}ye=J,J+=st}return ye+Ue-me}fromArray(_){const H=this.makeDestinationObject();for(const J of this.fields)J.property!==void 0&&0<_.length&&(H[J.property]=_.shift());return H}layoutFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const H of this.fields)if(H.property===_)return H}offsetOf(_){if(typeof _!="string")throw new TypeError("property must be string");let H=0;for(const J of this.fields){if(J.property===_)return H;0>J.span?H=-1:0<=H&&(H+=J.span)}}}Oe.Structure=ne;class ie{constructor(_){this.property=_}decode(_,H){throw new Error("UnionDiscriminator is abstract")}encode(_,H,J){throw new Error("UnionDiscriminator is abstract")}}Oe.UnionDiscriminator=ie;class de extends ie{constructor(_,H){if(!(_ instanceof d&&_.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(H||_.property||"variant"),this.layout=_}decode(_,H){return this.layout.decode(_,H)}encode(_,H,J){return this.layout.encode(_,H,J)}}Oe.UnionLayoutDiscriminator=de;class ge extends r{constructor(_,H,J){let me;if(_ instanceof y||_ instanceof A)me=new de(new l(_));else if(_ instanceof d&&_.isCount())me=new de(_);else if(_ instanceof ie)me=_;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(H===void 0&&(H=null),!(H===null||H instanceof r))throw new TypeError("defaultLayout must be null or a Layout");if(H!==null){if(0>H.span)throw new Error("defaultLayout must have constant span");H.property===void 0&&(H=H.replicate("content"))}let ye=-1;H&&(ye=H.span,0<=ye&&(_ instanceof y||_ instanceof A)&&(ye+=me.layout.span)),super(ye,J),this.discriminator=me,this.usesPrefixDiscriminator=_ instanceof y||_ instanceof A,this.defaultLayout=H,this.registry={};let Ue=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Ke){return Ue(Ke)},this.configGetSourceVariant=function(Ke){Ue=Ke.bind(this)}}getSpan(_,H=0){if(0<=this.span)return this.span;const J=this.getVariant(_,H);if(!J)throw new Error("unable to determine span for unrecognized variant");return J.getSpan(_,H)}defaultGetSourceVariant(_){if(Object.prototype.hasOwnProperty.call(_,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(_,this.defaultLayout.property))return;const H=this.registry[_[this.discriminator.property]];if(H&&(!H.layout||H.property&&Object.prototype.hasOwnProperty.call(_,H.property)))return H}else for(const H in this.registry){const J=this.registry[H];if(J.property&&Object.prototype.hasOwnProperty.call(_,J.property))return J}throw new Error("unable to infer src variant")}decode(_,H=0){let J;const me=this.discriminator,ye=me.decode(_,H),Ue=this.registry[ye];if(Ue===void 0){const Ke=this.defaultLayout;let st=0;this.usesPrefixDiscriminator&&(st=me.layout.span),J=this.makeDestinationObject(),J[me.property]=ye,J[Ke.property]=Ke.decode(_,H+st)}else J=Ue.decode(_,H);return J}encode(_,H,J=0){const me=this.getSourceVariant(_);if(me===void 0){const ye=this.discriminator,Ue=this.defaultLayout;let Ke=0;return this.usesPrefixDiscriminator&&(Ke=ye.layout.span),ye.encode(_[ye.property],H,J),Ke+Ue.encode(_[Ue.property],H,J+Ke)}return me.encode(_,H,J)}addVariant(_,H,J){const me=new k(this,_,H,J);return this.registry[_]=me,me}getVariant(_,H=0){let J;return _ instanceof Uint8Array?J=this.discriminator.decode(_,H):J=_,this.registry[J]}}Oe.Union=ge;class k extends r{constructor(_,H,J,me){if(!(_ instanceof ge))throw new TypeError("union must be a Union");if(!Number.isInteger(H)||0>H)throw new TypeError("variant must be a (non-negative) integer");if(typeof J=="string"&&me===void 0&&(me=J,J=null),J){if(!(J instanceof r))throw new TypeError("layout must be a Layout");if(_.defaultLayout!==null&&0<=J.span&&J.span>_.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof me!="string")throw new TypeError("variant must have a String property")}let ye=_.span;0>_.span&&(ye=J?J.span:0,0<=ye&&_.usesPrefixDiscriminator&&(ye+=_.discriminator.layout.span)),super(ye,me),this.union=_,this.variant=H,this.layout=J||null}getSpan(_,H=0){if(0<=this.span)return this.span;let J=0;this.union.usesPrefixDiscriminator&&(J=this.union.discriminator.layout.span);let me=0;return this.layout&&(me=this.layout.getSpan(_,H+J)),J+me}decode(_,H=0){const J=this.makeDestinationObject();if(this!==this.union.getVariant(_,H))throw new Error("variant mismatch");let me=0;return this.union.usesPrefixDiscriminator&&(me=this.union.discriminator.layout.span),this.layout?J[this.property]=this.layout.decode(_,H+me):this.property?J[this.property]=!0:this.union.usesPrefixDiscriminator&&(J[this.union.discriminator.property]=this.variant),J}encode(_,H,J=0){let me=0;if(this.union.usesPrefixDiscriminator&&(me=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(_,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,H,J);let ye=me;if(this.layout&&(this.layout.encode(_[this.property],H,J+me),ye+=this.layout.getSpan(H,J+me),0<=this.union.span&&ye>this.union.span))throw new Error("encoded variant overruns containing union");return ye}fromArray(_){if(this.layout)return this.layout.fromArray(_)}}Oe.VariantLayout=k;function f(g){return 0>g&&(g+=4294967296),g}class R extends r{constructor(_,H,J){if(!(_ instanceof y||_ instanceof A))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof H=="string"&&J===void 0&&(J=H,H=!1),4<_.span)throw new RangeError("word cannot exceed 32 bits");super(_.span,J),this.word=_,this.msb=!!H,this.fields=[];let me=0;this._packedSetValue=function(ye){return me=f(ye),this},this._packedGetValue=function(){return me}}decode(_,H=0){const J=this.makeDestinationObject(),me=this.word.decode(_,H);this._packedSetValue(me);for(const ye of this.fields)ye.property!==void 0&&(J[ye.property]=ye.decode(_));return J}encode(_,H,J=0){const me=this.word.decode(H,J);this._packedSetValue(me);for(const ye of this.fields)if(ye.property!==void 0){const Ue=_[ye.property];Ue!==void 0&&ye.encode(Ue)}return this.word.encode(this._packedGetValue(),H,J)}addField(_,H){const J=new M(this,_,H);return this.fields.push(J),J}addBoolean(_){const H=new $(this,_);return this.fields.push(H),H}fieldFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const H of this.fields)if(H.property===_)return H}}Oe.BitStructure=R;class M{constructor(_,H,J){if(!(_ instanceof R))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(H)||0>=H)throw new TypeError("bits must be positive integer");const me=8*_.span,ye=_.fields.reduce((Ue,Ke)=>Ue+Ke.bits,0);if(H+ye>me)throw new Error("bits too long for span remainder ("+(me-ye)+" of "+me+" remain)");this.container=_,this.bits=H,this.valueMask=(1<<H)-1,H===32&&(this.valueMask=4294967295),this.start=ye,this.container.msb&&(this.start=me-ye-H),this.wordMask=f(this.valueMask<<this.start),this.property=J}decode(_,H){const J=this.container._packedGetValue();return f(J&this.wordMask)>>>this.start}encode(_){if(typeof _!="number"||!Number.isInteger(_)||_!==f(_&this.valueMask))throw new TypeError(c("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const H=this.container._packedGetValue(),J=f(_<<this.start);this.container._packedSetValue(f(H&~this.wordMask)|J)}}Oe.BitField=M;class $ extends M{constructor(_,H){super(_,1,H)}decode(_,H){return!!super.decode(_,H)}encode(_){typeof _=="boolean"&&(_=+_),super.encode(_)}}Oe.Boolean=$;class Y extends r{constructor(_,H){if(!(_ instanceof d&&_.isCount()||Number.isInteger(_)&&0<=_))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let J=-1;_ instanceof d||(J=_),super(J,H),this.length=_}getSpan(_,H){let J=this.span;return 0>J&&(J=this.length.decode(_,H)),J}decode(_,H=0){let J=this.span;return 0>J&&(J=this.length.decode(_,H)),n(_).slice(H,H+J)}encode(_,H,J){let me=this.length;if(this.length instanceof d&&(me=_.length),!(_ instanceof Uint8Array&&me===_.length))throw new TypeError(c("Blob.encode",this)+" requires (length "+me+") Uint8Array as src");if(J+me>H.length)throw new RangeError("encoding overruns Uint8Array");const ye=n(_);return n(H).write(ye.toString("hex"),J,me,"hex"),this.length instanceof d&&this.length.encode(me,H,J),me}}Oe.Blob=Y;class te extends r{constructor(_){super(-1,_)}getSpan(_,H=0){t(_);let J=H;for(;J<_.length&&_[J]!==0;)J+=1;return 1+J-H}decode(_,H=0){const J=this.getSpan(_,H);return n(_).slice(H,H+J-1).toString("utf-8")}encode(_,H,J=0){typeof _!="string"&&(_=String(_));const me=e.Buffer.from(_,"utf8"),ye=me.length;if(J+ye>H.length)throw new RangeError("encoding overruns Buffer");const Ue=n(H);return me.copy(Ue,J),Ue[J+ye]=0,ye+1}}Oe.CString=te;class ae extends r{constructor(_,H){if(typeof _=="string"&&H===void 0&&(H=_,_=void 0),_===void 0)_=-1;else if(!Number.isInteger(_))throw new TypeError("maxSpan must be an integer");super(-1,H),this.maxSpan=_}getSpan(_,H=0){return t(_),_.length-H}decode(_,H=0){const J=this.getSpan(_,H);if(0<=this.maxSpan&&this.maxSpan<J)throw new RangeError("text length exceeds maxSpan");return n(_).slice(H,H+J).toString("utf-8")}encode(_,H,J=0){typeof _!="string"&&(_=String(_));const me=e.Buffer.from(_,"utf8"),ye=me.length;if(0<=this.maxSpan&&this.maxSpan<ye)throw new RangeError("text length exceeds maxSpan");if(J+ye>H.length)throw new RangeError("encoding overruns Buffer");return me.copy(n(H),J),ye}}Oe.UTF8=ae;class K extends r{constructor(_,H){super(0,H),this.value=_}decode(_,H){return this.value}encode(_,H,J){return 0}}return Oe.Constant=K,Oe.greedy=((g,_)=>new v(g,_)),Oe.offset=((g,_,H)=>new l(g,_,H)),Oe.u8=(g=>new y(1,g)),Oe.u16=(g=>new y(2,g)),Oe.u24=(g=>new y(3,g)),Oe.u32=(g=>new y(4,g)),Oe.u40=(g=>new y(5,g)),Oe.u48=(g=>new y(6,g)),Oe.nu64=(g=>new F(g)),Oe.u16be=(g=>new A(2,g)),Oe.u24be=(g=>new A(3,g)),Oe.u32be=(g=>new A(4,g)),Oe.u40be=(g=>new A(5,g)),Oe.u48be=(g=>new A(6,g)),Oe.nu64be=(g=>new j(g)),Oe.s8=(g=>new O(1,g)),Oe.s16=(g=>new O(2,g)),Oe.s24=(g=>new O(3,g)),Oe.s32=(g=>new O(4,g)),Oe.s40=(g=>new O(5,g)),Oe.s48=(g=>new O(6,g)),Oe.ns64=(g=>new Q(g)),Oe.s16be=(g=>new S(2,g)),Oe.s24be=(g=>new S(3,g)),Oe.s32be=(g=>new S(4,g)),Oe.s40be=(g=>new S(5,g)),Oe.s48be=(g=>new S(6,g)),Oe.ns64be=(g=>new W(g)),Oe.f32=(g=>new se(g)),Oe.f32be=(g=>new ue(g)),Oe.f64=(g=>new oe(g)),Oe.f64be=(g=>new Ee(g)),Oe.struct=((g,_,H)=>new ne(g,_,H)),Oe.bits=((g,_,H)=>new R(g,_,H)),Oe.seq=((g,_,H)=>new Re(g,_,H)),Oe.union=((g,_,H)=>new ge(g,_,H)),Oe.unionLayoutDiscriminator=((g,_)=>new de(g,_)),Oe.blob=((g,_)=>new Y(g,_)),Oe.cstr=(g=>new te(g)),Oe.utf8=((g,_)=>new ae(g,_)),Oe.constant=((g,_)=>new K(g,_)),Oe}var le=Nh(),Th=1,xh=2,Lh=3,Ch=4,Mh=5,Bh=6,kh=7,Dh=8,Uh=9,Ph=10,Fh=-32700,Vh=-32603,Gh=-32602,Hh=-32601,$h=-32600,jh=-32019,Kh=-32018,Wh=-32017,zh=-32016,Zh=-32015,Yh=-32014,Xh=-32013,qh=-32012,Jh=-32011,Qh=-32010,e2=-32009,t2=-32008,n2=-32007,r2=-32006,o2=-32005,i2=-32004,s2=-32003,a2=-32002,c2=-32001,u2=28e5,f2=2800001,l2=2800002,d2=2800003,h2=2800004,p2=2800005,m2=2800006,g2=2800007,v2=2800008,y2=2800009,w2=2800010,_2=2800011,E2=323e4,R2=32300001,b2=3230002,A2=3230003,S2=3230004,I2=361e4,O2=3610001,N2=3610002,T2=3610003,x2=3610004,L2=3610005,C2=3610006,M2=3610007,B2=3611e3,k2=3704e3,D2=3704001,U2=3704002,P2=3704003,F2=3704004,V2=4128e3,G2=4128001,H2=4128002,$2=4615e3,j2=4615001,K2=4615002,W2=4615003,z2=4615004,Z2=4615005,Y2=4615006,X2=4615007,q2=4615008,J2=4615009,Q2=4615010,e3=4615011,t3=4615012,n3=4615013,r3=4615014,o3=4615015,i3=4615016,s3=4615017,a3=4615018,c3=4615019,u3=4615020,f3=4615021,l3=4615022,d3=4615023,h3=4615024,p3=4615025,m3=4615026,g3=4615027,v3=4615028,y3=4615029,w3=4615030,_3=4615031,E3=4615032,R3=4615033,b3=4615034,A3=4615035,S3=4615036,I3=4615037,O3=4615038,N3=4615039,T3=4615040,x3=4615041,L3=4615042,C3=4615043,M3=4615044,B3=4615045,k3=4615046,D3=4615047,U3=4615048,P3=4615049,F3=4615050,V3=4615051,G3=4615052,H3=4615053,$3=4615054,j3=5508e3,K3=5508001,W3=5508002,z3=5508003,Z3=5508004,Y3=5508005,X3=5508006,q3=5508007,J3=5508008,Q3=5508009,e5=5508010,t5=5508011,n5=5607e3,r5=5607001,o5=5607002,i5=5607003,s5=5607004,a5=5607005,c5=5607006,u5=5607007,f5=5607008,l5=5607009,d5=5607010,h5=5607011,p5=5607012,m5=5607013,g5=5607014,v5=5607015,y5=5607016,w5=5607017,_5=5663e3,E5=5663001,R5=5663002,b5=5663003,A5=5663004,S5=5663005,I5=5663006,O5=5663007,N5=5663008,T5=5663009,x5=5663010,L5=5663011,C5=5663012,M5=5663013,B5=5663014,k5=5663015,D5=5663016,U5=5663017,P5=5663018,F5=5663019,V5=5663020,G5=5663021,H5=5663022,$5=705e4,j5=7050001,K5=7050002,W5=7050003,z5=7050004,Z5=7050005,Y5=7050006,X5=7050007,q5=7050008,J5=7050009,Q5=7050010,e6=7050011,t6=7050012,n6=7050013,r6=7050014,o6=7050015,i6=7050016,s6=7050017,a6=7050018,c6=7050019,u6=7050020,f6=7050021,l6=7050022,d6=7050023,h6=7050024,p6=7050025,m6=7050026,g6=7050027,v6=7050028,y6=7050029,w6=7050030,_6=7050031,E6=7050032,R6=7050033,b6=7050034,A6=7050035,S6=7050036,I6=7618e3,O6=7618001,N6=7618002,T6=7618003,x6=7618004,L6=7618005,C6=7618006,M6=7618007,B6=7618008,k6=7618009,Yu=8078e3,Xu=8078001,D6=8078002,U6=8078003,qu=8078004,Ju=8078005,Qu=8078006,P6=8078007,F6=8078008,V6=8078009,G6=8078010,e0=8078011,H6=8078012,$6=8078013,j6=8078014,K6=8078015,W6=8078016,z6=8078017,Z6=8078018,Y6=8078019,X6=8078020,q6=8078021,J6=8078022,Q6=8078023,ep=81e5,tp=8100001,np=8100002,rp=8100003,op=819e4,ip=8190001,sp=8190002,ap=8190003,cp=8190004,up=99e5,fp=9900001,lp=9900002,dp=9900003,hp=9900004,pp=9900005,mp=9900006;function t0(e){return Array.isArray(e)?"%5B"+e.map(t0).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function gp([e,t]){return`${e}=${t0(t)}`}function vp(e){const t=Object.entries(e).map(gp).join("&");return btoa(t)}var yp={[E2]:"Account not found at address: $address",[S2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[A2]:"Expected decoded account at address: $address",[b2]:"Failed to decode account data at address: $address",[R2]:"Accounts not found at addresses: $addresses",[y2]:"Unable to find a viable program address bump seed.",[l2]:"$putativeAddress is not a base58-encoded address.",[u2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[d2]:"The `CryptoKey` must be an `Ed25519` public key.",[_2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[v2]:"Invalid seeds; point must fall off the Ed25519 curve.",[h2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[m2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[g2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[p2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[w2]:"Program address cannot end with PDA marker.",[f2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Ch]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Th]:"The network has progressed past the last block for which this transaction could have been committed.",[Yu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[J6]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[X6]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Ju]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Qu]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[qu]:"Encoder and decoder must either both be fixed-size or variable-size.",[F6]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[D6]:"Expected a fixed-size codec, got a variable-size one.",[$6]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[U6]:"Expected a variable-size codec, got a fixed-size one.",[Y6]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Xu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Z6]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[V6]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[G6]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[K6]:"Invalid literal union variant. Expected one of [$variants], got $value.",[P6]:"Expected [$codecDescription] to have $expected items, got $actual.",[H6]:"Invalid value $value for base $base with alphabet $alphabet.",[W6]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[e0]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[j6]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[q6]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[z6]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Q6]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[B2]:"No random values implementation could be found.",[J2]:"instruction requires an uninitialized account",[d3]:"instruction tries to borrow reference for an account which is already borrowed",[h3]:"instruction left account with an outstanding borrowed reference",[f3]:"program other than the account's owner changed the size of the account data",[Z2]:"account data too small for instruction",[l3]:"instruction expected an executable account",[k3]:"An account does not have enough lamports to be rent-exempt",[U3]:"Program arithmetic overflowed",[B3]:"Failed to serialize or deserialize account data: $encodedData",[$3]:"Builtin programs must consume compute units",[E3]:"Cross-program invocation call depth too deep",[O3]:"Computational budget exceeded",[m3]:"custom program error: #$code",[s3]:"instruction contains duplicate accounts",[p3]:"instruction modifications of multiply-passed account differ",[w3]:"executable accounts must be rent exempt",[v3]:"instruction changed executable accounts data",[y3]:"instruction changed the balance of an executable account",[a3]:"instruction changed executable bit of an account",[r3]:"instruction modified data of an account it does not own",[n3]:"instruction spent from the balance of an account it does not own",[j2]:"generic instruction error",[F3]:"Provided owner is not allowed",[C3]:"Account is immutable",[M3]:"Incorrect authority provided",[X2]:"incorrect program id for instruction",[Y2]:"insufficient funds for instruction",[z2]:"invalid account data for instruction",[D3]:"Invalid account owner",[K2]:"invalid program argument",[g3]:"program returned invalid error code",[W2]:"invalid instruction data",[I3]:"Failed to reallocate account data",[S3]:"Provided seeds do not result in a valid address",[V3]:"Accounts data allocations exceeded the maximum allowed per transaction",[G3]:"Max accounts exceeded",[H3]:"Max instruction trace length exceeded",[A3]:"Length of the seed is too long for address generation",[R3]:"An account required by the instruction is missing",[q2]:"missing required signature for instruction",[t3]:"instruction illegally modified the program id of an account",[u3]:"insufficient account keys for instruction",[N3]:"Cross-program invocation with unauthorized signer or writable account",[T3]:"Failed to create program execution environment",[L3]:"Program failed to compile",[x3]:"Program failed to complete",[i3]:"instruction modified data of a read-only account",[o3]:"instruction changed the balance of a read-only account",[b3]:"Cross-program invocation reentrancy not allowed for this instruction",[c3]:"instruction modified rent epoch of an account",[e3]:"sum of account balances before and after instruction do not match",[Q2]:"instruction requires an initialized account",[$2]:"",[_3]:"Unsupported program id",[P3]:"Unsupported sysvar",[pp]:"Invalid instruction plan kind: $kind.",[N6]:"The provided instruction plan is empty.",[L6]:"No failed transaction plan result was found in the provided transaction plan result.",[x6]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[T6]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[I6]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[mp]:"Invalid transaction plan kind: $kind.",[O6]:"No more instructions to pack; the message packer has completed the instruction plan.",[C6]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[M6]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[B6]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[k6]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[V2]:"The instruction does not have any accounts.",[G2]:"The instruction does not have any data.",[H2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Mh]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[xh]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[lp]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[hp]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[fp]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[up]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[dp]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vh]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Gh]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[$h]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Hh]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Fh]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[qh]:"$__serverMessage",[c2]:"$__serverMessage",[i2]:"$__serverMessage",[Yh]:"$__serverMessage",[Wh]:"Epoch rewards period still active at slot $slot",[Qh]:"$__serverMessage",[e2]:"$__serverMessage",[jh]:"Failed to query long-term storage; please try again",[zh]:"Minimum context slot has not been reached",[o2]:"Node is unhealthy; behind by $numSlotsBehind slots",[t2]:"No snapshot",[a2]:"Transaction simulation failed",[Kh]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[n2]:"$__serverMessage",[Jh]:"Transaction history is not available from this node",[r2]:"$__serverMessage",[Xh]:"Transaction signature length mismatch",[s2]:"Transaction signature verification failure",[Zh]:"$__serverMessage",[k2]:"Key pair bytes must be of length 64, got $byteLength.",[D2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[U2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[F2]:"The provided private key does not match the provided public key.",[P2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Bh]:"Lamports value must be in the range [0, 2e64-1]",[kh]:"`$value` cannot be parsed as a `BigInt`",[Ph]:"$message",[Dh]:"`$value` cannot be parsed as a `Number`",[Lh]:"No nonce account could be found at address `$nonceAccountAddress`",[i5]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[m5]:"Attempted to sign an offchain message with an address that is not a signer for it",[o5]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[p5]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[n5]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[u5]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[f5]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[l5]:"Offchain message content must be non-empty",[a5]:"Offchain message must specify the address of at least one required signer",[d5]:"Offchain message envelope must reserve space for at least one signature",[s5]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[v5]:"The signatories of this offchain message must be listed in lexicographical order",[y5]:"An address must be listed no more than once among the signatories of an offchain message",[h5]:"Offchain message is missing signatures for addresses: $addresses.",[w5]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[r5]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[g5]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[c5]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[op]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[sp]:"WebSocket was closed before payload could be added to the send buffer",[ap]:"WebSocket connection closed",[cp]:"WebSocket failed to connect",[ip]:"Failed to obtain a subscription id from the server",[rp]:"Could not find an API plan for RPC method: `$method`",[ep]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[np]:"HTTP error ($statusCode): $message",[tp]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[j3]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[K3]:"The provided value does not implement the `KeyPairSigner` interface",[z3]:"The provided value does not implement the `MessageModifyingSigner` interface",[Z3]:"The provided value does not implement the `MessagePartialSigner` interface",[W3]:"The provided value does not implement any of the `MessageSigner` interfaces",[X3]:"The provided value does not implement the `TransactionModifyingSigner` interface",[q3]:"The provided value does not implement the `TransactionPartialSigner` interface",[J3]:"The provided value does not implement the `TransactionSendingSigner` interface",[Y3]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Q3]:"More than one `TransactionSendingSigner` was identified.",[e5]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[t5]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[M2]:"Cannot export a non-extractable key.",[O2]:"No digest implementation could be found.",[I2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[N2]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
1
|
+
(function(Ke,$e){typeof exports=="object"&&typeof module<"u"?$e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],$e):(Ke=typeof globalThis<"u"?globalThis:Ke||self,$e(Ke.VueTypeWriter={},Ke.Vue))})(this,(function(Ke,$e){"use strict";var Vc=(e=>(e.USER="user",e.BUSINESS="business",e.FIRST_PARTY="firstParty",e))(Vc||{}),Gc=(e=>(e.ASAP="asap",e.SAME_DAY="same_day",e.STANDARD="standard",e.CARD="card",e.IBAN="iban",e.PIX="pix",e.EFT="eft",e.VENMO="venmo",e.PAYPAL="paypal",e.WIRE="wire",e.INTERAC="interac",e.SWIFT="swift",e.CRYPTO="crypto",e))(Gc||{}),Hc=(e=>(e.Credits="Credits",e.USDC="USDC",e.Bank="Bank",e))(Hc||{});function md(e){return"cardToken"in e}function gd(e){return"disableSavedPaymentMethods"in e}var $c=(e=>(e.Rounded="rounded",e.Sharp="sharp",e.Pill="pill",e))($c||{}),jc=(e=>(e.GUEST="guest",e.PRIVATE="private",e.BUSINESS="business",e))(jc||{}),Kc=(e=>(e.NoPreference="NoPreference",e.Frictionless="Frictionless",e.Challenge="Challenge",e))(Kc||{}),Wc=(e=>(e.debit="debit",e.credit="credit",e.prepaid="prepaid",e))(Wc||{}),zc=(e=>(e.card="card",e.ach="ach",e.fasterPayments="fasterPayments",e.sepa="sepa",e.pix="pix",e.usdc="usdc",e.googlePay="googlePay",e.applePay="applePay",e.paze="paze",e.credits="credits",e.crypto="crypto",e.wire="wire",e.cashApp="cashApp",e.apa="apa",e.paypal="paypal",e.venmo="venmo",e.interac="interac",e))(zc||{});const vd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",paze:"Paze",credits:"Credits",crypto:"Crypto",wire:"Wire Transfer",cashApp:"CashApp",apa:"APA",paypal:"PayPal",venmo:"Venmo",interac:"Interac"};var Zc=(e=>(e.VISA="VISA",e.MASTERCARD="MSTR",e.AMEX="AMEX",e.DISCOVER="DISC",e))(Zc||{});const yd="rnredirect";var Yc=(e=>(e.Venmo="venmo",e.Plaid="plaid",e))(Yc||{});function Us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ps(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var c=!1;try{c=this instanceof r}catch{}return c?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,c.get?c:{enumerable:!0,get:function(){return e[r]}})}),n}var Fs={},xo={},Xc;function wd(){if(Xc)return xo;Xc=1,xo.byteLength=v,xo.toByteArray=y,xo.fromByteArray=S;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,i=r.length;c<i;++c)e[c]=r[c],t[r.charCodeAt(c)]=c;t[45]=62,t[95]=63;function d(I){var B=I.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=I.indexOf("=");C===-1&&(C=B);var F=C===B?0:4-C%4;return[C,F]}function v(I){var B=d(I),C=B[0],F=B[1];return(C+F)*3/4-F}function l(I,B,C){return(B+C)*3/4-C}function y(I){var B,C=d(I),F=C[0],j=C[1],Q=new n(l(I,F,j)),W=0,ae=j>0?F-4:F,fe;for(fe=0;fe<ae;fe+=4)B=t[I.charCodeAt(fe)]<<18|t[I.charCodeAt(fe+1)]<<12|t[I.charCodeAt(fe+2)]<<6|t[I.charCodeAt(fe+3)],Q[W++]=B>>16&255,Q[W++]=B>>8&255,Q[W++]=B&255;return j===2&&(B=t[I.charCodeAt(fe)]<<2|t[I.charCodeAt(fe+1)]>>4,Q[W++]=B&255),j===1&&(B=t[I.charCodeAt(fe)]<<10|t[I.charCodeAt(fe+1)]<<4|t[I.charCodeAt(fe+2)]>>2,Q[W++]=B>>8&255,Q[W++]=B&255),Q}function A(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function O(I,B,C){for(var F,j=[],Q=B;Q<C;Q+=3)F=(I[Q]<<16&16711680)+(I[Q+1]<<8&65280)+(I[Q+2]&255),j.push(A(F));return j.join("")}function S(I){for(var B,C=I.length,F=C%3,j=[],Q=16383,W=0,ae=C-F;W<ae;W+=Q)j.push(O(I,W,W+Q>ae?ae:W+Q));return F===1?(B=I[C-1],j.push(e[B>>2]+e[B<<4&63]+"==")):F===2&&(B=(I[C-2]<<8)+I[C-1],j.push(e[B>>10]+e[B>>4&63]+e[B<<2&63]+"=")),j.join("")}return xo}var Ri={};var qc;function _d(){return qc||(qc=1,Ri.read=function(e,t,n,r,c){var i,d,v=c*8-r-1,l=(1<<v)-1,y=l>>1,A=-7,O=n?c-1:0,S=n?-1:1,I=e[t+O];for(O+=S,i=I&(1<<-A)-1,I>>=-A,A+=v;A>0;i=i*256+e[t+O],O+=S,A-=8);for(d=i&(1<<-A)-1,i>>=-A,A+=r;A>0;d=d*256+e[t+O],O+=S,A-=8);if(i===0)i=1-y;else{if(i===l)return d?NaN:(I?-1:1)*(1/0);d=d+Math.pow(2,r),i=i-y}return(I?-1:1)*d*Math.pow(2,i-r)},Ri.write=function(e,t,n,r,c,i){var d,v,l,y=i*8-c-1,A=(1<<y)-1,O=A>>1,S=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:i-1,B=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(v=isNaN(t)?1:0,d=A):(d=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-d))<1&&(d--,l*=2),d+O>=1?t+=S/l:t+=S*Math.pow(2,1-O),t*l>=2&&(d++,l/=2),d+O>=A?(v=0,d=A):d+O>=1?(v=(t*l-1)*Math.pow(2,c),d=d+O):(v=t*Math.pow(2,O-1)*Math.pow(2,c),d=0));c>=8;e[n+I]=v&255,I+=B,v/=256,c-=8);for(d=d<<c|v,y+=c;y>0;e[n+I]=d&255,I+=B,d/=256,y-=8);e[n+I-B]|=C*128}),Ri}var Jc;function Vs(){return Jc||(Jc=1,(function(e){const t=wd(),n=_d(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=v,e.SlowBuffer=Q,e.INSPECT_MAX_BYTES=50;const c=2147483647;e.kMaxLength=c,v.TYPED_ARRAY_SUPPORT=i(),!v.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const P=new Uint8Array(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,Uint8Array.prototype),Object.setPrototypeOf(P,E),P.foo()===42}catch{return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function d(P){if(P>c)throw new RangeError('The value "'+P+'" is invalid for option "size"');const E=new Uint8Array(P);return Object.setPrototypeOf(E,v.prototype),E}function v(P,E,b){if(typeof P=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(P)}return l(P,E,b)}v.poolSize=8192;function l(P,E,b){if(typeof P=="string")return S(P,E);if(ArrayBuffer.isView(P))return B(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(J(P,ArrayBuffer)||P&&J(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(J(P,SharedArrayBuffer)||P&&J(P.buffer,SharedArrayBuffer)))return C(P,E,b);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const X=P.valueOf&&P.valueOf();if(X!=null&&X!==P)return v.from(X,E,b);const ve=F(P);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return v.from(P[Symbol.toPrimitive]("string"),E,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}v.from=function(P,E,b){return l(P,E,b)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function y(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function A(P,E,b){return y(P),P<=0?d(P):E!==void 0?typeof b=="string"?d(P).fill(E,b):d(P).fill(E):d(P)}v.alloc=function(P,E,b){return A(P,E,b)};function O(P){return y(P),d(P<0?0:j(P)|0)}v.allocUnsafe=function(P){return O(P)},v.allocUnsafeSlow=function(P){return O(P)};function S(P,E){if((typeof E!="string"||E==="")&&(E="utf8"),!v.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const b=W(P,E)|0;let X=d(b);const ve=X.write(P,E);return ve!==b&&(X=X.slice(0,ve)),X}function I(P){const E=P.length<0?0:j(P.length)|0,b=d(E);for(let X=0;X<E;X+=1)b[X]=P[X]&255;return b}function B(P){if(J(P,Uint8Array)){const E=new Uint8Array(P);return C(E.buffer,E.byteOffset,E.byteLength)}return I(P)}function C(P,E,b){if(E<0||P.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<E+(b||0))throw new RangeError('"length" is outside of buffer bounds');let X;return E===void 0&&b===void 0?X=new Uint8Array(P):b===void 0?X=new Uint8Array(P,E):X=new Uint8Array(P,E,b),Object.setPrototypeOf(X,v.prototype),X}function F(P){if(v.isBuffer(P)){const E=j(P.length)|0,b=d(E);return b.length===0||P.copy(b,0,0,E),b}if(P.length!==void 0)return typeof P.length!="number"||pe(P.length)?d(0):I(P);if(P.type==="Buffer"&&Array.isArray(P.data))return I(P.data)}function j(P){if(P>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return P|0}function Q(P){return+P!=P&&(P=0),v.alloc(+P)}v.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==v.prototype},v.compare=function(E,b){if(J(E,Uint8Array)&&(E=v.from(E,E.offset,E.byteLength)),J(b,Uint8Array)&&(b=v.from(b,b.offset,b.byteLength)),!v.isBuffer(E)||!v.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===b)return 0;let X=E.length,ve=b.length;for(let be=0,L=Math.min(X,ve);be<L;++be)if(E[be]!==b[be]){X=E[be],ve=b[be];break}return X<ve?-1:ve<X?1:0},v.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},v.concat=function(E,b){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return v.alloc(0);let X;if(b===void 0)for(b=0,X=0;X<E.length;++X)b+=E[X].length;const ve=v.allocUnsafe(b);let be=0;for(X=0;X<E.length;++X){let L=E[X];if(J(L,Uint8Array))be+L.length>ve.length?(v.isBuffer(L)||(L=v.from(L)),L.copy(ve,be)):Uint8Array.prototype.set.call(ve,L,be);else if(v.isBuffer(L))L.copy(ve,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=L.length}return ve};function W(P,E){if(v.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||J(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);const b=P.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&b===0)return 0;let ve=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return vt(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return V(P).length;default:if(ve)return X?-1:vt(P).length;E=(""+E).toLowerCase(),ve=!0}}v.byteLength=W;function ae(P,E,b){let X=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,E>>>=0,b<=E))return"";for(P||(P="utf8");;)switch(P){case"hex":return te(this,E,b);case"utf8":case"utf-8":return f(this,E,b);case"ascii":return $(this,E,b);case"latin1":case"binary":return Z(this,E,b);case"base64":return k(this,E,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,E,b);default:if(X)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),X=!0}}v.prototype._isBuffer=!0;function fe(P,E,b){const X=P[E];P[E]=P[b],P[b]=X}v.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 b=0;b<E;b+=2)fe(this,b,b+1);return this},v.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<E;b+=4)fe(this,b,b+3),fe(this,b+1,b+2);return this},v.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<E;b+=8)fe(this,b,b+7),fe(this,b+1,b+6),fe(this,b+2,b+5),fe(this,b+3,b+4);return this},v.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?f(this,0,E):ae.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(E){if(!v.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:v.compare(this,E)===0},v.prototype.inspect=function(){let E="";const b=e.INSPECT_MAX_BYTES;return E=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(E+=" ... "),"<Buffer "+E+">"},r&&(v.prototype[r]=v.prototype.inspect),v.prototype.compare=function(E,b,X,ve,be){if(J(E,Uint8Array)&&(E=v.from(E,E.offset,E.byteLength)),!v.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(b===void 0&&(b=0),X===void 0&&(X=E?E.length:0),ve===void 0&&(ve=0),be===void 0&&(be=this.length),b<0||X>E.length||ve<0||be>this.length)throw new RangeError("out of range index");if(ve>=be&&b>=X)return 0;if(ve>=be)return-1;if(b>=X)return 1;if(b>>>=0,X>>>=0,ve>>>=0,be>>>=0,this===E)return 0;let L=be-ve,oe=X-b;const ee=Math.min(L,oe),we=this.slice(ve,be),Se=E.slice(b,X);for(let Ne=0;Ne<ee;++Ne)if(we[Ne]!==Se[Ne]){L=we[Ne],oe=Se[Ne];break}return L<oe?-1:oe<L?1:0};function ie(P,E,b,X,ve){if(P.length===0)return-1;if(typeof b=="string"?(X=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,pe(b)&&(b=ve?0:P.length-1),b<0&&(b=P.length+b),b>=P.length){if(ve)return-1;b=P.length-1}else if(b<0)if(ve)b=0;else return-1;if(typeof E=="string"&&(E=v.from(E,X)),v.isBuffer(E))return E.length===0?-1:Ee(P,E,b,X,ve);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(P,E,b):Uint8Array.prototype.lastIndexOf.call(P,E,b):Ee(P,[E],b,X,ve);throw new TypeError("val must be string, number or Buffer")}function Ee(P,E,b,X,ve){let be=1,L=P.length,oe=E.length;if(X!==void 0&&(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(P.length<2||E.length<2)return-1;be=2,L/=2,oe/=2,b/=2}function ee(Se,Ne){return be===1?Se[Ne]:Se.readUInt16BE(Ne*be)}let we;if(ve){let Se=-1;for(we=b;we<L;we++)if(ee(P,we)===ee(E,Se===-1?0:we-Se)){if(Se===-1&&(Se=we),we-Se+1===oe)return Se*be}else Se!==-1&&(we-=we-Se),Se=-1}else for(b+oe>L&&(b=L-oe),we=b;we>=0;we--){let Se=!0;for(let Ne=0;Ne<oe;Ne++)if(ee(P,we+Ne)!==ee(E,Ne)){Se=!1;break}if(Se)return we}return-1}v.prototype.includes=function(E,b,X){return this.indexOf(E,b,X)!==-1},v.prototype.indexOf=function(E,b,X){return ie(this,E,b,X,!0)},v.prototype.lastIndexOf=function(E,b,X){return ie(this,E,b,X,!1)};function Re(P,E,b,X){b=Number(b)||0;const ve=P.length-b;X?(X=Number(X),X>ve&&(X=ve)):X=ve;const be=E.length;X>be/2&&(X=be/2);let L;for(L=0;L<X;++L){const oe=parseInt(E.substr(L*2,2),16);if(pe(oe))return L;P[b+L]=oe}return L}function re(P,E,b,X){return ne(vt(E,P.length-b),P,b,X)}function se(P,E,b,X){return ne(w(E),P,b,X)}function de(P,E,b,X){return ne(V(E),P,b,X)}function ge(P,E,b,X){return ne(x(E,P.length-b),P,b,X)}v.prototype.write=function(E,b,X,ve){if(b===void 0)ve="utf8",X=this.length,b=0;else if(X===void 0&&typeof b=="string")ve=b,X=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(X)?(X=X>>>0,ve===void 0&&(ve="utf8")):(ve=X,X=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-b;if((X===void 0||X>be)&&(X=be),E.length>0&&(X<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");let L=!1;for(;;)switch(ve){case"hex":return Re(this,E,b,X);case"utf8":case"utf-8":return re(this,E,b,X);case"ascii":case"latin1":case"binary":return se(this,E,b,X);case"base64":return de(this,E,b,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,E,b,X);default:if(L)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),L=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(P,E,b){return E===0&&b===P.length?t.fromByteArray(P):t.fromByteArray(P.slice(E,b))}function f(P,E,b){b=Math.min(P.length,b);const X=[];let ve=E;for(;ve<b;){const be=P[ve];let L=null,oe=be>239?4:be>223?3:be>191?2:1;if(ve+oe<=b){let ee,we,Se,Ne;switch(oe){case 1:be<128&&(L=be);break;case 2:ee=P[ve+1],(ee&192)===128&&(Ne=(be&31)<<6|ee&63,Ne>127&&(L=Ne));break;case 3:ee=P[ve+1],we=P[ve+2],(ee&192)===128&&(we&192)===128&&(Ne=(be&15)<<12|(ee&63)<<6|we&63,Ne>2047&&(Ne<55296||Ne>57343)&&(L=Ne));break;case 4:ee=P[ve+1],we=P[ve+2],Se=P[ve+3],(ee&192)===128&&(we&192)===128&&(Se&192)===128&&(Ne=(be&15)<<18|(ee&63)<<12|(we&63)<<6|Se&63,Ne>65535&&Ne<1114112&&(L=Ne))}}L===null?(L=65533,oe=1):L>65535&&(L-=65536,X.push(L>>>10&1023|55296),L=56320|L&1023),X.push(L),ve+=oe}return M(X)}const R=4096;function M(P){const E=P.length;if(E<=R)return String.fromCharCode.apply(String,P);let b="",X=0;for(;X<E;)b+=String.fromCharCode.apply(String,P.slice(X,X+=R));return b}function $(P,E,b){let X="";b=Math.min(P.length,b);for(let ve=E;ve<b;++ve)X+=String.fromCharCode(P[ve]&127);return X}function Z(P,E,b){let X="";b=Math.min(P.length,b);for(let ve=E;ve<b;++ve)X+=String.fromCharCode(P[ve]);return X}function te(P,E,b){const X=P.length;(!E||E<0)&&(E=0),(!b||b<0||b>X)&&(b=X);let ve="";for(let be=E;be<b;++be)ve+=Me[P[be]];return ve}function ce(P,E,b){const X=P.slice(E,b);let ve="";for(let be=0;be<X.length-1;be+=2)ve+=String.fromCharCode(X[be]+X[be+1]*256);return ve}v.prototype.slice=function(E,b){const X=this.length;E=~~E,b=b===void 0?X:~~b,E<0?(E+=X,E<0&&(E=0)):E>X&&(E=X),b<0?(b+=X,b<0&&(b=0)):b>X&&(b=X),b<E&&(b=E);const ve=this.subarray(E,b);return Object.setPrototypeOf(ve,v.prototype),ve};function K(P,E,b){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+E>b)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(E,b,X){E=E>>>0,b=b>>>0,X||K(E,b,this.length);let ve=this[E],be=1,L=0;for(;++L<b&&(be*=256);)ve+=this[E+L]*be;return ve},v.prototype.readUintBE=v.prototype.readUIntBE=function(E,b,X){E=E>>>0,b=b>>>0,X||K(E,b,this.length);let ve=this[E+--b],be=1;for(;b>0&&(be*=256);)ve+=this[E+--b]*be;return ve},v.prototype.readUint8=v.prototype.readUInt8=function(E,b){return E=E>>>0,b||K(E,1,this.length),this[E]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(E,b){return E=E>>>0,b||K(E,2,this.length),this[E]|this[E+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(E,b){return E=E>>>0,b||K(E,2,this.length),this[E]<<8|this[E+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(E,b){return E=E>>>0,b||K(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},v.prototype.readBigUInt64LE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],X=this[E+7];(b===void 0||X===void 0)&&ht(E,this.length-8);const ve=b+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,be=this[++E]+this[++E]*2**8+this[++E]*2**16+X*2**24;return BigInt(ve)+(BigInt(be)<<BigInt(32))}),v.prototype.readBigUInt64BE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],X=this[E+7];(b===void 0||X===void 0)&&ht(E,this.length-8);const ve=b*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],be=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+X;return(BigInt(ve)<<BigInt(32))+BigInt(be)}),v.prototype.readIntLE=function(E,b,X){E=E>>>0,b=b>>>0,X||K(E,b,this.length);let ve=this[E],be=1,L=0;for(;++L<b&&(be*=256);)ve+=this[E+L]*be;return be*=128,ve>=be&&(ve-=Math.pow(2,8*b)),ve},v.prototype.readIntBE=function(E,b,X){E=E>>>0,b=b>>>0,X||K(E,b,this.length);let ve=b,be=1,L=this[E+--ve];for(;ve>0&&(be*=256);)L+=this[E+--ve]*be;return be*=128,L>=be&&(L-=Math.pow(2,8*b)),L},v.prototype.readInt8=function(E,b){return E=E>>>0,b||K(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},v.prototype.readInt16LE=function(E,b){E=E>>>0,b||K(E,2,this.length);const X=this[E]|this[E+1]<<8;return X&32768?X|4294901760:X},v.prototype.readInt16BE=function(E,b){E=E>>>0,b||K(E,2,this.length);const X=this[E+1]|this[E]<<8;return X&32768?X|4294901760:X},v.prototype.readInt32LE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},v.prototype.readInt32BE=function(E,b){return E=E>>>0,b||K(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},v.prototype.readBigInt64LE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],X=this[E+7];(b===void 0||X===void 0)&&ht(E,this.length-8);const ve=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(X<<24);return(BigInt(ve)<<BigInt(32))+BigInt(b+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),v.prototype.readBigInt64BE=tt(function(E){E=E>>>0,Et(E,"offset");const b=this[E],X=this[E+7];(b===void 0||X===void 0)&&ht(E,this.length-8);const ve=(b<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(ve)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+X)}),v.prototype.readFloatLE=function(E,b){return E=E>>>0,b||K(E,4,this.length),n.read(this,E,!0,23,4)},v.prototype.readFloatBE=function(E,b){return E=E>>>0,b||K(E,4,this.length),n.read(this,E,!1,23,4)},v.prototype.readDoubleLE=function(E,b){return E=E>>>0,b||K(E,8,this.length),n.read(this,E,!0,52,8)},v.prototype.readDoubleBE=function(E,b){return E=E>>>0,b||K(E,8,this.length),n.read(this,E,!1,52,8)};function g(P,E,b,X,ve,be){if(!v.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>ve||E<be)throw new RangeError('"value" argument is out of bounds');if(b+X>P.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(E,b,X,ve){if(E=+E,b=b>>>0,X=X>>>0,!ve){const oe=Math.pow(2,8*X)-1;g(this,E,b,X,oe,0)}let be=1,L=0;for(this[b]=E&255;++L<X&&(be*=256);)this[b+L]=E/be&255;return b+X},v.prototype.writeUintBE=v.prototype.writeUIntBE=function(E,b,X,ve){if(E=+E,b=b>>>0,X=X>>>0,!ve){const oe=Math.pow(2,8*X)-1;g(this,E,b,X,oe,0)}let be=X-1,L=1;for(this[b+be]=E&255;--be>=0&&(L*=256);)this[b+be]=E/L&255;return b+X},v.prototype.writeUint8=v.prototype.writeUInt8=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,1,255,0),this[b]=E&255,b+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,2,65535,0),this[b]=E&255,this[b+1]=E>>>8,b+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,2,65535,0),this[b]=E>>>8,this[b+1]=E&255,b+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,4,4294967295,0),this[b+3]=E>>>24,this[b+2]=E>>>16,this[b+1]=E>>>8,this[b]=E&255,b+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,4,4294967295,0),this[b]=E>>>24,this[b+1]=E>>>16,this[b+2]=E>>>8,this[b+3]=E&255,b+4};function _(P,E,b,X,ve){ut(E,X,ve,P,b,7);let be=Number(E&BigInt(4294967295));P[b++]=be,be=be>>8,P[b++]=be,be=be>>8,P[b++]=be,be=be>>8,P[b++]=be;let L=Number(E>>BigInt(32)&BigInt(4294967295));return P[b++]=L,L=L>>8,P[b++]=L,L=L>>8,P[b++]=L,L=L>>8,P[b++]=L,b}function H(P,E,b,X,ve){ut(E,X,ve,P,b,7);let be=Number(E&BigInt(4294967295));P[b+7]=be,be=be>>8,P[b+6]=be,be=be>>8,P[b+5]=be,be=be>>8,P[b+4]=be;let L=Number(E>>BigInt(32)&BigInt(4294967295));return P[b+3]=L,L=L>>8,P[b+2]=L,L=L>>8,P[b+1]=L,L=L>>8,P[b]=L,b+8}v.prototype.writeBigUInt64LE=tt(function(E,b=0){return _(this,E,b,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeBigUInt64BE=tt(function(E,b=0){return H(this,E,b,BigInt(0),BigInt("0xffffffffffffffff"))}),v.prototype.writeIntLE=function(E,b,X,ve){if(E=+E,b=b>>>0,!ve){const ee=Math.pow(2,8*X-1);g(this,E,b,X,ee-1,-ee)}let be=0,L=1,oe=0;for(this[b]=E&255;++be<X&&(L*=256);)E<0&&oe===0&&this[b+be-1]!==0&&(oe=1),this[b+be]=(E/L>>0)-oe&255;return b+X},v.prototype.writeIntBE=function(E,b,X,ve){if(E=+E,b=b>>>0,!ve){const ee=Math.pow(2,8*X-1);g(this,E,b,X,ee-1,-ee)}let be=X-1,L=1,oe=0;for(this[b+be]=E&255;--be>=0&&(L*=256);)E<0&&oe===0&&this[b+be+1]!==0&&(oe=1),this[b+be]=(E/L>>0)-oe&255;return b+X},v.prototype.writeInt8=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,1,127,-128),E<0&&(E=255+E+1),this[b]=E&255,b+1},v.prototype.writeInt16LE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,2,32767,-32768),this[b]=E&255,this[b+1]=E>>>8,b+2},v.prototype.writeInt16BE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,2,32767,-32768),this[b]=E>>>8,this[b+1]=E&255,b+2},v.prototype.writeInt32LE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,4,2147483647,-2147483648),this[b]=E&255,this[b+1]=E>>>8,this[b+2]=E>>>16,this[b+3]=E>>>24,b+4},v.prototype.writeInt32BE=function(E,b,X){return E=+E,b=b>>>0,X||g(this,E,b,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[b]=E>>>24,this[b+1]=E>>>16,this[b+2]=E>>>8,this[b+3]=E&255,b+4},v.prototype.writeBigInt64LE=tt(function(E,b=0){return _(this,E,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),v.prototype.writeBigInt64BE=tt(function(E,b=0){return H(this,E,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q(P,E,b,X,ve,be){if(b+X>P.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function me(P,E,b,X,ve){return E=+E,b=b>>>0,ve||q(P,E,b,4),n.write(P,E,b,X,23,4),b+4}v.prototype.writeFloatLE=function(E,b,X){return me(this,E,b,!0,X)},v.prototype.writeFloatBE=function(E,b,X){return me(this,E,b,!1,X)};function ye(P,E,b,X,ve){return E=+E,b=b>>>0,ve||q(P,E,b,8),n.write(P,E,b,X,52,8),b+8}v.prototype.writeDoubleLE=function(E,b,X){return ye(this,E,b,!0,X)},v.prototype.writeDoubleBE=function(E,b,X){return ye(this,E,b,!1,X)},v.prototype.copy=function(E,b,X,ve){if(!v.isBuffer(E))throw new TypeError("argument should be a Buffer");if(X||(X=0),!ve&&ve!==0&&(ve=this.length),b>=E.length&&(b=E.length),b||(b=0),ve>0&&ve<X&&(ve=X),ve===X||E.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("Index out of range");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),E.length-b<ve-X&&(ve=E.length-b+X);const be=ve-X;return this===E&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,X,ve):Uint8Array.prototype.set.call(E,this.subarray(X,ve),b),be},v.prototype.fill=function(E,b,X,ve){if(typeof E=="string"){if(typeof b=="string"?(ve=b,b=0,X=this.length):typeof X=="string"&&(ve=X,X=this.length),ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!v.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);if(E.length===1){const L=E.charCodeAt(0);(ve==="utf8"&&L<128||ve==="latin1")&&(E=L)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(b<0||this.length<b||this.length<X)throw new RangeError("Out of range index");if(X<=b)return this;b=b>>>0,X=X===void 0?this.length:X>>>0,E||(E=0);let be;if(typeof E=="number")for(be=b;be<X;++be)this[be]=E;else{const L=v.isBuffer(E)?E:v.from(E,ve),oe=L.length;if(oe===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(be=0;be<X-b;++be)this[be+b]=L[be%oe]}return this};const Ue={};function We(P,E,b){Ue[P]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:E.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${P}]`,this.stack,delete this.name}get code(){return P}set code(ve){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ve,writable:!0})}toString(){return`${this.name} [${P}]: ${this.message}`}}}We("ERR_BUFFER_OUT_OF_BOUNDS",function(P){return P?`${P} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),We("ERR_INVALID_ARG_TYPE",function(P,E){return`The "${P}" argument must be of type number. Received type ${typeof E}`},TypeError),We("ERR_OUT_OF_RANGE",function(P,E,b){let X=`The value of "${P}" is out of range.`,ve=b;return Number.isInteger(b)&&Math.abs(b)>2**32?ve=st(String(b)):typeof b=="bigint"&&(ve=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(ve=st(ve)),ve+="n"),X+=` It must be ${E}. Received ${ve}`,X},RangeError);function st(P){let E="",b=P.length;const X=P[0]==="-"?1:0;for(;b>=X+4;b-=3)E=`_${P.slice(b-3,b)}${E}`;return`${P.slice(0,b)}${E}`}function at(P,E,b){Et(E,"offset"),(P[E]===void 0||P[E+b]===void 0)&&ht(E,P.length-(b+1))}function ut(P,E,b,X,ve,be){if(P>b||P<E){const L=typeof E=="bigint"?"n":"";let oe;throw E===0||E===BigInt(0)?oe=`>= 0${L} and < 2${L} ** ${(be+1)*8}${L}`:oe=`>= -(2${L} ** ${(be+1)*8-1}${L}) and < 2 ** ${(be+1)*8-1}${L}`,new Ue.ERR_OUT_OF_RANGE("value",oe,P)}at(X,ve,be)}function Et(P,E){if(typeof P!="number")throw new Ue.ERR_INVALID_ARG_TYPE(E,"number",P)}function ht(P,E,b){throw Math.floor(P)!==P?(Et(P,b),new Ue.ERR_OUT_OF_RANGE("offset","an integer",P)):E<0?new Ue.ERR_BUFFER_OUT_OF_BOUNDS:new Ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,P)}const Rt=/[^+/0-9A-Za-z-_]/g;function Pt(P){if(P=P.split("=")[0],P=P.trim().replace(Rt,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function vt(P,E){E=E||1/0;let b;const X=P.length;let ve=null;const be=[];for(let L=0;L<X;++L){if(b=P.charCodeAt(L),b>55295&&b<57344){if(!ve){if(b>56319){(E-=3)>-1&&be.push(239,191,189);continue}else if(L+1===X){(E-=3)>-1&&be.push(239,191,189);continue}ve=b;continue}if(b<56320){(E-=3)>-1&&be.push(239,191,189),ve=b;continue}b=(ve-55296<<10|b-56320)+65536}else ve&&(E-=3)>-1&&be.push(239,191,189);if(ve=null,b<128){if((E-=1)<0)break;be.push(b)}else if(b<2048){if((E-=2)<0)break;be.push(b>>6|192,b&63|128)}else if(b<65536){if((E-=3)<0)break;be.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((E-=4)<0)break;be.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return be}function w(P){const E=[];for(let b=0;b<P.length;++b)E.push(P.charCodeAt(b)&255);return E}function x(P,E){let b,X,ve;const be=[];for(let L=0;L<P.length&&!((E-=2)<0);++L)b=P.charCodeAt(L),X=b>>8,ve=b%256,be.push(ve),be.push(X);return be}function V(P){return t.toByteArray(Pt(P))}function ne(P,E,b,X){let ve;for(ve=0;ve<X&&!(ve+b>=E.length||ve>=P.length);++ve)E[ve+b]=P[ve];return ve}function J(P,E){return P instanceof E||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===E.name}function pe(P){return P!==P}const Me=(function(){const P="0123456789abcdef",E=new Array(256);for(let b=0;b<16;++b){const X=b*16;for(let ve=0;ve<16;++ve)E[X+ve]=P[b]+P[ve]}return E})();function tt(P){return typeof BigInt>"u"?Qe:P}function Qe(){throw new Error("BigInt not supported")}})(Fs)),Fs}var wt=Vs();const qr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Lo(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Gs(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function xr(e,...t){if(!Lo(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Qc(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Gs(e.outputLen),Gs(e.blockLen)}function bi(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 Ed(e,t){xr(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Jr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Hs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Xn(e,t){return e<<32-t|e>>>t}const eu=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Rd=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Lr(e){if(xr(e),eu)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Rd[e[n]];return t}const ir={_0:48,_9:57,A:65,F:70,a:97,f:102};function tu(e){if(e>=ir._0&&e<=ir._9)return e-ir._0;if(e>=ir.A&&e<=ir.F)return e-(ir.A-10);if(e>=ir.a&&e<=ir.f)return e-(ir.a-10)}function Ai(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(eu)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let c=0,i=0;c<n;c++,i+=2){const d=tu(e.charCodeAt(i)),v=tu(e.charCodeAt(i+1));if(d===void 0||v===void 0){const l=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}r[c]=d*16+v}return r}function bd(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function $s(e){return typeof e=="string"&&(e=bd(e)),xr(e),e}function qn(...e){let t=0;for(let r=0;r<e.length;r++){const c=e[r];xr(c),t+=c.length}const n=new Uint8Array(t);for(let r=0,c=0;r<e.length;r++){const i=e[r];n.set(i,c),c+=i.length}return n}class nu{}function ru(e){const t=r=>e().update($s(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function js(e=32){if(qr&&typeof qr.getRandomValues=="function")return qr.getRandomValues(new Uint8Array(e));if(qr&&typeof qr.randomBytes=="function")return Uint8Array.from(qr.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function Ad(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const c=BigInt(32),i=BigInt(4294967295),d=Number(n>>c&i),v=Number(n&i),l=r?4:0,y=r?0:4;e.setUint32(t+l,d,r),e.setUint32(t+y,v,r)}function Sd(e,t,n){return e&t^~e&n}function Id(e,t,n){return e&t^e&n^t&n}class ou extends nu{constructor(t,n,r,c){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=c,this.buffer=new Uint8Array(t),this.view=Hs(this.buffer)}update(t){bi(this),t=$s(t),xr(t);const{view:n,buffer:r,blockLen:c}=this,i=t.length;for(let d=0;d<i;){const v=Math.min(c-this.pos,i-d);if(v===c){const l=Hs(t);for(;c<=i-d;d+=c)this.process(l,d);continue}r.set(t.subarray(d,d+v),this.pos),this.pos+=v,d+=v,this.pos===c&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){bi(this),Ed(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:c,isLE:i}=this;let{pos:d}=this;n[d++]=128,Jr(this.buffer.subarray(d)),this.padOffset>c-d&&(this.process(r,0),d=0);for(let O=d;O<c;O++)n[O]=0;Ad(r,c-8,BigInt(this.length*8),i),this.process(r,0);const v=Hs(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const y=l/4,A=this.get();if(y>A.length)throw new Error("_sha2: outputLen bigger than state");for(let O=0;O<y;O++)v.setUint32(4*O,A[O],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:c,finished:i,destroyed:d,pos:v}=this;return t.destroyed=d,t.finished=i,t.length=c,t.pos=v,c%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const gr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_n=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Si=BigInt(2**32-1),iu=BigInt(32);function Od(e,t=!1){return t?{h:Number(e&Si),l:Number(e>>iu&Si)}:{h:Number(e>>iu&Si)|0,l:Number(e&Si)|0}}function Nd(e,t=!1){const n=e.length;let r=new Uint32Array(n),c=new Uint32Array(n);for(let i=0;i<n;i++){const{h:d,l:v}=Od(e[i],t);[r[i],c[i]]=[d,v]}return[r,c]}const su=(e,t,n)=>e>>>n,au=(e,t,n)=>e<<32-n|t>>>n,Qr=(e,t,n)=>e>>>n|t<<32-n,eo=(e,t,n)=>e<<32-n|t>>>n,Ii=(e,t,n)=>e<<64-n|t>>>n-32,Oi=(e,t,n)=>e>>>n-32|t<<64-n;function sr(e,t,n,r){const c=(t>>>0)+(r>>>0);return{h:e+n+(c/2**32|0)|0,l:c|0}}const Td=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),xd=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,Ld=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),Cd=(e,t,n,r,c)=>t+n+r+c+(e/2**32|0)|0,Md=(e,t,n,r,c)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(c>>>0),Bd=(e,t,n,r,c,i)=>t+n+r+c+i+(e/2**32|0)|0,kd=Uint32Array.from([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]),vr=new Uint32Array(64);class Dd extends ou{constructor(t=32){super(64,t,8,!1),this.A=gr[0]|0,this.B=gr[1]|0,this.C=gr[2]|0,this.D=gr[3]|0,this.E=gr[4]|0,this.F=gr[5]|0,this.G=gr[6]|0,this.H=gr[7]|0}get(){const{A:t,B:n,C:r,D:c,E:i,F:d,G:v,H:l}=this;return[t,n,r,c,i,d,v,l]}set(t,n,r,c,i,d,v,l){this.A=t|0,this.B=n|0,this.C=r|0,this.D=c|0,this.E=i|0,this.F=d|0,this.G=v|0,this.H=l|0}process(t,n){for(let O=0;O<16;O++,n+=4)vr[O]=t.getUint32(n,!1);for(let O=16;O<64;O++){const S=vr[O-15],I=vr[O-2],B=Xn(S,7)^Xn(S,18)^S>>>3,C=Xn(I,17)^Xn(I,19)^I>>>10;vr[O]=C+vr[O-7]+B+vr[O-16]|0}let{A:r,B:c,C:i,D:d,E:v,F:l,G:y,H:A}=this;for(let O=0;O<64;O++){const S=Xn(v,6)^Xn(v,11)^Xn(v,25),I=A+S+Sd(v,l,y)+kd[O]+vr[O]|0,C=(Xn(r,2)^Xn(r,13)^Xn(r,22))+Id(r,c,i)|0;A=y,y=l,l=v,v=d+I|0,d=i,i=c,c=r,r=I+C|0}r=r+this.A|0,c=c+this.B|0,i=i+this.C|0,d=d+this.D|0,v=v+this.E|0,l=l+this.F|0,y=y+this.G|0,A=A+this.H|0,this.set(r,c,i,d,v,l,y,A)}roundClean(){Jr(vr)}destroy(){this.set(0,0,0,0,0,0,0,0),Jr(this.buffer)}}const cu=Nd(["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))),Ud=cu[0],Pd=cu[1],yr=new Uint32Array(80),wr=new Uint32Array(80);class Fd extends ou{constructor(t=64){super(128,t,16,!1),this.Ah=_n[0]|0,this.Al=_n[1]|0,this.Bh=_n[2]|0,this.Bl=_n[3]|0,this.Ch=_n[4]|0,this.Cl=_n[5]|0,this.Dh=_n[6]|0,this.Dl=_n[7]|0,this.Eh=_n[8]|0,this.El=_n[9]|0,this.Fh=_n[10]|0,this.Fl=_n[11]|0,this.Gh=_n[12]|0,this.Gl=_n[13]|0,this.Hh=_n[14]|0,this.Hl=_n[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:c,Ch:i,Cl:d,Dh:v,Dl:l,Eh:y,El:A,Fh:O,Fl:S,Gh:I,Gl:B,Hh:C,Hl:F}=this;return[t,n,r,c,i,d,v,l,y,A,O,S,I,B,C,F]}set(t,n,r,c,i,d,v,l,y,A,O,S,I,B,C,F){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=c|0,this.Ch=i|0,this.Cl=d|0,this.Dh=v|0,this.Dl=l|0,this.Eh=y|0,this.El=A|0,this.Fh=O|0,this.Fl=S|0,this.Gh=I|0,this.Gl=B|0,this.Hh=C|0,this.Hl=F|0}process(t,n){for(let W=0;W<16;W++,n+=4)yr[W]=t.getUint32(n),wr[W]=t.getUint32(n+=4);for(let W=16;W<80;W++){const ae=yr[W-15]|0,fe=wr[W-15]|0,ie=Qr(ae,fe,1)^Qr(ae,fe,8)^su(ae,fe,7),Ee=eo(ae,fe,1)^eo(ae,fe,8)^au(ae,fe,7),Re=yr[W-2]|0,re=wr[W-2]|0,se=Qr(Re,re,19)^Ii(Re,re,61)^su(Re,re,6),de=eo(Re,re,19)^Oi(Re,re,61)^au(Re,re,6),ge=Ld(Ee,de,wr[W-7],wr[W-16]),k=Cd(ge,ie,se,yr[W-7],yr[W-16]);yr[W]=k|0,wr[W]=ge|0}let{Ah:r,Al:c,Bh:i,Bl:d,Ch:v,Cl:l,Dh:y,Dl:A,Eh:O,El:S,Fh:I,Fl:B,Gh:C,Gl:F,Hh:j,Hl:Q}=this;for(let W=0;W<80;W++){const ae=Qr(O,S,14)^Qr(O,S,18)^Ii(O,S,41),fe=eo(O,S,14)^eo(O,S,18)^Oi(O,S,41),ie=O&I^~O&C,Ee=S&B^~S&F,Re=Md(Q,fe,Ee,Pd[W],wr[W]),re=Bd(Re,j,ae,ie,Ud[W],yr[W]),se=Re|0,de=Qr(r,c,28)^Ii(r,c,34)^Ii(r,c,39),ge=eo(r,c,28)^Oi(r,c,34)^Oi(r,c,39),k=r&i^r&v^i&v,f=c&d^c&l^d&l;j=C|0,Q=F|0,C=I|0,F=B|0,I=O|0,B=S|0,{h:O,l:S}=sr(y|0,A|0,re|0,se|0),y=v|0,A=l|0,v=i|0,l=d|0,i=r|0,d=c|0;const R=Td(se,ge,f);r=xd(R,re,de,k),c=R|0}({h:r,l:c}=sr(this.Ah|0,this.Al|0,r|0,c|0)),{h:i,l:d}=sr(this.Bh|0,this.Bl|0,i|0,d|0),{h:v,l}=sr(this.Ch|0,this.Cl|0,v|0,l|0),{h:y,l:A}=sr(this.Dh|0,this.Dl|0,y|0,A|0),{h:O,l:S}=sr(this.Eh|0,this.El|0,O|0,S|0),{h:I,l:B}=sr(this.Fh|0,this.Fl|0,I|0,B|0),{h:C,l:F}=sr(this.Gh|0,this.Gl|0,C|0,F|0),{h:j,l:Q}=sr(this.Hh|0,this.Hl|0,j|0,Q|0),this.set(r,c,i,d,v,l,y,A,O,S,I,B,C,F,j,Q)}roundClean(){Jr(yr,wr)}destroy(){Jr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const uu=ru(()=>new Dd),Vd=ru(()=>new Fd);const Ks=BigInt(0),Ws=BigInt(1);function Cr(e,t=""){if(typeof e!="boolean"){const n=t&&`"${t}"`;throw new Error(n+"expected boolean, got type="+typeof e)}return e}function Wn(e,t,n=""){const r=Lo(e),c=e?.length,i=t!==void 0;if(!r||i&&c!==t){const d=n&&`"${n}" `,v=i?` of length ${t}`:"",l=r?`length=${c}`:`type=${typeof e}`;throw new Error(d+"expected Uint8Array"+v+", got "+l)}return e}function Ni(e){const t=e.toString(16);return t.length&1?"0"+t:t}function fu(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Ks:BigInt("0x"+e)}function Ti(e){return fu(Lr(e))}function Co(e){return xr(e),fu(Lr(Uint8Array.from(e).reverse()))}function zs(e,t){return Ai(e.toString(16).padStart(t*2,"0"))}function lu(e,t){return zs(e,t).reverse()}function jt(e,t,n){let r;if(typeof t=="string")try{r=Ai(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(Lo(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const c=r.length;if(typeof n=="number"&&c!==n)throw new Error(e+" of length "+n+" expected, got "+c);return r}function du(e){return Uint8Array.from(e)}const Zs=e=>typeof e=="bigint"&&Ks<=e;function Gd(e,t,n){return Zs(e)&&Zs(t)&&Zs(n)&&t<=e&&e<n}function Ys(e,t,n,r){if(!Gd(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function hu(e){let t;for(t=0;e>Ks;e>>=Ws,t+=1);return t}const Mo=e=>(Ws<<BigInt(e))-Ws;function Hd(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");const r=I=>new Uint8Array(I),c=I=>Uint8Array.of(I);let i=r(e),d=r(e),v=0;const l=()=>{i.fill(1),d.fill(0),v=0},y=(...I)=>n(d,i,...I),A=(I=r(0))=>{d=y(c(0),I),i=y(),I.length!==0&&(d=y(c(1),I),i=y())},O=()=>{if(v++>=1e3)throw new Error("drbg: tried 1000 values");let I=0;const B=[];for(;I<t;){i=y();const C=i.slice();B.push(C),I+=i.length}return qn(...B)};return(I,B)=>{l(),A(I);let C;for(;!(C=B(O()));)A();return l(),C}}function Bo(e,t,n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(c,i,d){const v=e[c];if(d&&v===void 0)return;const l=typeof v;if(l!==i||v===null)throw new Error(`param "${c}" is invalid: expected ${i}, got ${l}`)}Object.entries(t).forEach(([c,i])=>r(c,i,!1)),Object.entries(n).forEach(([c,i])=>r(c,i,!0))}function xi(e){const t=new WeakMap;return(n,...r)=>{const c=t.get(n);if(c!==void 0)return c;const i=e(n,...r);return t.set(n,i),i}}const Ln=BigInt(0),gn=BigInt(1),Mr=BigInt(2),pu=BigInt(3),mu=BigInt(4),gu=BigInt(5),$d=BigInt(7),vu=BigInt(8),jd=BigInt(9),yu=BigInt(16);function en(e,t){const n=e%t;return n>=Ln?n:t+n}function Kt(e,t,n){let r=e;for(;t-- >Ln;)r*=r,r%=n;return r}function wu(e,t){if(e===Ln)throw new Error("invert: expected non-zero number");if(t<=Ln)throw new Error("invert: expected positive modulus, got "+t);let n=en(e,t),r=t,c=Ln,i=gn;for(;n!==Ln;){const v=r/n,l=r%n,y=c-i*v;r=n,n=l,c=i,i=y}if(r!==gn)throw new Error("invert: does not exist");return en(c,t)}function Xs(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function _u(e,t){const n=(e.ORDER+gn)/mu,r=e.pow(t,n);return Xs(e,r,t),r}function Kd(e,t){const n=(e.ORDER-gu)/vu,r=e.mul(t,Mr),c=e.pow(r,n),i=e.mul(t,c),d=e.mul(e.mul(i,Mr),c),v=e.mul(i,e.sub(d,e.ONE));return Xs(e,v,t),v}function Wd(e){const t=Br(e),n=Eu(e),r=n(t,t.neg(t.ONE)),c=n(t,r),i=n(t,t.neg(r)),d=(e+$d)/yu;return(v,l)=>{let y=v.pow(l,d),A=v.mul(y,r);const O=v.mul(y,c),S=v.mul(y,i),I=v.eql(v.sqr(A),l),B=v.eql(v.sqr(O),l);y=v.cmov(y,A,I),A=v.cmov(S,O,B);const C=v.eql(v.sqr(A),l),F=v.cmov(y,A,C);return Xs(v,F,l),F}}function Eu(e){if(e<pu)throw new Error("sqrt is not defined for small field");let t=e-gn,n=0;for(;t%Mr===Ln;)t/=Mr,n++;let r=Mr;const c=Br(e);for(;bu(c,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return _u;let i=c.pow(r,t);const d=(t+gn)/Mr;return function(l,y){if(l.is0(y))return y;if(bu(l,y)!==1)throw new Error("Cannot find square root");let A=n,O=l.mul(l.ONE,i),S=l.pow(y,t),I=l.pow(y,d);for(;!l.eql(S,l.ONE);){if(l.is0(S))return l.ZERO;let B=1,C=l.sqr(S);for(;!l.eql(C,l.ONE);)if(B++,C=l.sqr(C),B===A)throw new Error("Cannot find square root");const F=gn<<BigInt(A-B-1),j=l.pow(O,F);A=B,O=l.sqr(j),S=l.mul(S,O),I=l.mul(I,j)}return I}}function zd(e){return e%mu===pu?_u:e%vu===gu?Kd:e%yu===jd?Wd(e):Eu(e)}const Zd=(e,t)=>(en(e,t)&gn)===gn,Yd=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Xd(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},n=Yd.reduce((r,c)=>(r[c]="function",r),t);return Bo(e,n),e}function qd(e,t,n){if(n<Ln)throw new Error("invalid exponent, negatives unsupported");if(n===Ln)return e.ONE;if(n===gn)return t;let r=e.ONE,c=t;for(;n>Ln;)n&gn&&(r=e.mul(r,c)),c=e.sqr(c),n>>=gn;return r}function Ru(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),c=t.reduce((d,v,l)=>e.is0(v)?d:(r[l]=d,e.mul(d,v)),e.ONE),i=e.inv(c);return t.reduceRight((d,v,l)=>e.is0(v)?d:(r[l]=e.mul(d,r[l]),e.mul(d,v)),i),r}function bu(e,t){const n=(e.ORDER-gn)/Mr,r=e.pow(t,n),c=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),d=e.eql(r,e.neg(e.ONE));if(!c&&!i&&!d)throw new Error("invalid Legendre symbol result");return c?1:i?0:-1}function Au(e,t){t!==void 0&&Gs(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Br(e,t,n=!1,r={}){if(e<=Ln)throw new Error("invalid field: expected ORDER > 0, got "+e);let c,i,d=!1,v;if(typeof t=="object"&&t!=null){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const S=t;S.BITS&&(c=S.BITS),S.sqrt&&(i=S.sqrt),typeof S.isLE=="boolean"&&(n=S.isLE),typeof S.modFromBytes=="boolean"&&(d=S.modFromBytes),v=S.allowedLengths}else typeof t=="number"&&(c=t),r.sqrt&&(i=r.sqrt);const{nBitLength:l,nByteLength:y}=Au(e,c);if(y>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let A;const O=Object.freeze({ORDER:e,isLE:n,BITS:l,BYTES:y,MASK:Mo(l),ZERO:Ln,ONE:gn,allowedLengths:v,create:S=>en(S,e),isValid:S=>{if(typeof S!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof S);return Ln<=S&&S<e},is0:S=>S===Ln,isValidNot0:S=>!O.is0(S)&&O.isValid(S),isOdd:S=>(S&gn)===gn,neg:S=>en(-S,e),eql:(S,I)=>S===I,sqr:S=>en(S*S,e),add:(S,I)=>en(S+I,e),sub:(S,I)=>en(S-I,e),mul:(S,I)=>en(S*I,e),pow:(S,I)=>qd(O,S,I),div:(S,I)=>en(S*wu(I,e),e),sqrN:S=>S*S,addN:(S,I)=>S+I,subN:(S,I)=>S-I,mulN:(S,I)=>S*I,inv:S=>wu(S,e),sqrt:i||(S=>(A||(A=zd(e)),A(O,S))),toBytes:S=>n?lu(S,y):zs(S,y),fromBytes:(S,I=!0)=>{if(v){if(!v.includes(S.length)||S.length>y)throw new Error("Field.fromBytes: expected "+v+" bytes, got "+S.length);const C=new Uint8Array(y);C.set(S,n?0:C.length-S.length),S=C}if(S.length!==y)throw new Error("Field.fromBytes: expected "+y+" bytes, got "+S.length);let B=n?Co(S):Ti(S);if(d&&(B=en(B,e)),!I&&!O.isValid(B))throw new Error("invalid field element: outside of range 0..ORDER");return B},invertBatch:S=>Ru(O,S),cmov:(S,I,B)=>B?I:S});return Object.freeze(O)}function Su(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function Iu(e){const t=Su(e);return t+Math.ceil(t/2)}function Jd(e,t,n=!1){const r=e.length,c=Su(t),i=Iu(t);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const d=n?Co(e):Ti(e),v=en(d,t-gn)+gn;return n?lu(v,c):zs(v,c)}const to=BigInt(0),kr=BigInt(1);function Li(e,t){const n=t.negate();return e?n:t}function Dr(e,t){const n=Ru(e.Fp,t.map(r=>r.Z));return t.map((r,c)=>e.fromAffine(r.toAffine(n[c])))}function Ou(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function qs(e,t){Ou(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),c=2**e,i=Mo(e),d=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:c,shiftBy:d}}function Nu(e,t,n){const{windowSize:r,mask:c,maxNumber:i,shiftBy:d}=n;let v=Number(e&c),l=e>>d;v>r&&(v-=i,l+=kr);const y=t*r,A=y+Math.abs(v)-1,O=v===0,S=v<0,I=t%2!==0;return{nextN:l,offset:A,isZero:O,isNeg:S,isNegF:I,offsetF:y}}function Qd(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function eh(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const Js=new WeakMap,Tu=new WeakMap;function Qs(e){return Tu.get(e)||1}function xu(e){if(e!==to)throw new Error("invalid wNAF")}class Lu{constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let c=t;for(;n>to;)n&kr&&(r=r.add(c)),c=c.double(),n>>=kr;return r}precomputeWindow(t,n){const{windows:r,windowSize:c}=qs(n,this.bits),i=[];let d=t,v=d;for(let l=0;l<r;l++){v=d,i.push(v);for(let y=1;y<c;y++)v=v.add(d),i.push(v);d=v.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let c=this.ZERO,i=this.BASE;const d=qs(t,this.bits);for(let v=0;v<d.windows;v++){const{nextN:l,offset:y,isZero:A,isNeg:O,isNegF:S,offsetF:I}=Nu(r,v,d);r=l,A?i=i.add(Li(S,n[I])):c=c.add(Li(O,n[y]))}return xu(r),{p:c,f:i}}wNAFUnsafe(t,n,r,c=this.ZERO){const i=qs(t,this.bits);for(let d=0;d<i.windows&&r!==to;d++){const{nextN:v,offset:l,isZero:y,isNeg:A}=Nu(r,d,i);if(r=v,!y){const O=n[l];c=c.add(A?O.negate():O)}}return xu(r),c}getPrecomputes(t,n,r){let c=Js.get(n);return c||(c=this.precomputeWindow(n,t),t!==1&&(typeof r=="function"&&(c=r(c)),Js.set(n,c))),c}cached(t,n,r){const c=Qs(t);return this.wNAF(c,this.getPrecomputes(c,t,r),n)}unsafe(t,n,r,c){const i=Qs(t);return i===1?this._unsafeLadder(t,n,c):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,c)}createCache(t,n){Ou(n,this.bits),Tu.set(t,n),Js.delete(t)}hasCache(t){return Qs(t)!==1}}function th(e,t,n,r){let c=t,i=e.ZERO,d=e.ZERO;for(;n>to||r>to;)n&kr&&(i=i.add(c)),r&kr&&(d=d.add(c)),c=c.double(),n>>=kr,r>>=kr;return{p1:i,p2:d}}function Cu(e,t,n,r){Qd(n,e),eh(r,t);const c=n.length,i=r.length;if(c!==i)throw new Error("arrays of points and scalars must have equal length");const d=e.ZERO,v=hu(BigInt(c));let l=1;v>12?l=v-3:v>4?l=v-2:v>0&&(l=2);const y=Mo(l),A=new Array(Number(y)+1).fill(d),O=Math.floor((t.BITS-1)/l)*l;let S=d;for(let I=O;I>=0;I-=l){A.fill(d);for(let C=0;C<i;C++){const F=r[C],j=Number(F>>BigInt(I)&y);A[j]=A[j].add(n[C])}let B=d;for(let C=A.length-1,F=d;C>0;C--)F=F.add(A[C]),B=B.add(F);if(S=S.add(B),I!==0)for(let C=0;C<l;C++)S=S.double()}return S}function Mu(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return Xd(t),t}else return Br(e,{isLE:n})}function Bu(e,t,n={},r){if(r===void 0&&(r=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(const l of["p","n","h"]){const y=t[l];if(!(typeof y=="bigint"&&y>to))throw new Error(`CURVE.${l} must be positive bigint`)}const c=Mu(t.p,n.Fp,r),i=Mu(t.n,n.Fn,r),v=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(const l of v)if(!c.isValid(t[l]))throw new Error(`CURVE.${l} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:c,Fn:i}}const _r=BigInt(0),ln=BigInt(1),ea=BigInt(2),nh=BigInt(8);function rh(e,t,n,r){const c=e.sqr(n),i=e.sqr(r),d=e.add(e.mul(t.a,c),i),v=e.add(e.ONE,e.mul(t.d,e.mul(c,i)));return e.eql(d,v)}function oh(e,t={}){const n=Bu("edwards",e,t,t.FpFnLE),{Fp:r,Fn:c}=n;let i=n.CURVE;const{h:d}=i;Bo(t,{},{uvRatio:"function"});const v=ea<<BigInt(c.BYTES*8)-ln,l=F=>r.create(F),y=t.uvRatio||((F,j)=>{try{return{isValid:!0,value:r.sqrt(r.div(F,j))}}catch{return{isValid:!1,value:_r}}});if(!rh(r,i,i.Gx,i.Gy))throw new Error("bad curve params: generator point");function A(F,j,Q=!1){const W=Q?ln:_r;return Ys("coordinate "+F,j,W,v),j}function O(F){if(!(F instanceof B))throw new Error("ExtendedPoint expected")}const S=xi((F,j)=>{const{X:Q,Y:W,Z:ae}=F,fe=F.is0();j==null&&(j=fe?nh:r.inv(ae));const ie=l(Q*j),Ee=l(W*j),Re=r.mul(ae,j);if(fe)return{x:_r,y:ln};if(Re!==ln)throw new Error("invZ was invalid");return{x:ie,y:Ee}}),I=xi(F=>{const{a:j,d:Q}=i;if(F.is0())throw new Error("bad point: ZERO");const{X:W,Y:ae,Z:fe,T:ie}=F,Ee=l(W*W),Re=l(ae*ae),re=l(fe*fe),se=l(re*re),de=l(Ee*j),ge=l(re*l(de+Re)),k=l(se+l(Q*l(Ee*Re)));if(ge!==k)throw new Error("bad point: equation left != right (1)");const f=l(W*ae),R=l(fe*ie);if(f!==R)throw new Error("bad point: equation left != right (2)");return!0});class B{constructor(j,Q,W,ae){this.X=A("x",j),this.Y=A("y",Q),this.Z=A("z",W,!0),this.T=A("t",ae),Object.freeze(this)}static CURVE(){return i}static fromAffine(j){if(j instanceof B)throw new Error("extended point not allowed");const{x:Q,y:W}=j||{};return A("x",Q),A("y",W),new B(Q,W,ln,l(Q*W))}static fromBytes(j,Q=!1){const W=r.BYTES,{a:ae,d:fe}=i;j=du(Wn(j,W,"point")),Cr(Q,"zip215");const ie=du(j),Ee=j[W-1];ie[W-1]=Ee&-129;const Re=Co(ie),re=Q?v:r.ORDER;Ys("point.y",Re,_r,re);const se=l(Re*Re),de=l(se-ln),ge=l(fe*se-ae);let{isValid:k,value:f}=y(de,ge);if(!k)throw new Error("bad point: invalid y coordinate");const R=(f&ln)===ln,M=(Ee&128)!==0;if(!Q&&f===_r&&M)throw new Error("bad point: x=0 and x_0=1");return M!==R&&(f=l(-f)),B.fromAffine({x:f,y:Re})}static fromHex(j,Q=!1){return B.fromBytes(jt("point",j),Q)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(j=8,Q=!0){return C.createCache(this,j),Q||this.multiply(ea),this}assertValidity(){I(this)}equals(j){O(j);const{X:Q,Y:W,Z:ae}=this,{X:fe,Y:ie,Z:Ee}=j,Re=l(Q*Ee),re=l(fe*ae),se=l(W*Ee),de=l(ie*ae);return Re===re&&se===de}is0(){return this.equals(B.ZERO)}negate(){return new B(l(-this.X),this.Y,this.Z,l(-this.T))}double(){const{a:j}=i,{X:Q,Y:W,Z:ae}=this,fe=l(Q*Q),ie=l(W*W),Ee=l(ea*l(ae*ae)),Re=l(j*fe),re=Q+W,se=l(l(re*re)-fe-ie),de=Re+ie,ge=de-Ee,k=Re-ie,f=l(se*ge),R=l(de*k),M=l(se*k),$=l(ge*de);return new B(f,R,$,M)}add(j){O(j);const{a:Q,d:W}=i,{X:ae,Y:fe,Z:ie,T:Ee}=this,{X:Re,Y:re,Z:se,T:de}=j,ge=l(ae*Re),k=l(fe*re),f=l(Ee*W*de),R=l(ie*se),M=l((ae+fe)*(Re+re)-ge-k),$=R-f,Z=R+f,te=l(k-Q*ge),ce=l(M*$),K=l(Z*te),g=l(M*te),_=l($*Z);return new B(ce,K,_,g)}subtract(j){return this.add(j.negate())}multiply(j){if(!c.isValidNot0(j))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:Q,f:W}=C.cached(this,j,ae=>Dr(B,ae));return Dr(B,[Q,W])[0]}multiplyUnsafe(j,Q=B.ZERO){if(!c.isValid(j))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return j===_r?B.ZERO:this.is0()||j===ln?this:C.unsafe(this,j,W=>Dr(B,W),Q)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return C.unsafe(this,i.n).is0()}toAffine(j){return S(this,j)}clearCofactor(){return d===ln?this:this.multiplyUnsafe(d)}toBytes(){const{x:j,y:Q}=this.toAffine(),W=r.toBytes(Q);return W[W.length-1]|=j&ln?128:0,W}toHex(){return Lr(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(j){return Dr(B,j)}static msm(j,Q){return Cu(B,c,j,Q)}_setWindowSize(j){this.precompute(j)}toRawBytes(){return this.toBytes()}}B.BASE=new B(i.Gx,i.Gy,ln,l(i.Gx*i.Gy)),B.ZERO=new B(_r,ln,ln,_r),B.Fp=r,B.Fn=c;const C=new Lu(B,c.BITS);return B.BASE.precompute(8),B}function ih(e,t,n={}){if(typeof t!="function")throw new Error('"hash" function param is required');Bo(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:c,Fp:i,Fn:d}=e,v=n.randomBytes||js,l=n.adjustScalarBytes||(re=>re),y=n.domain||((re,se,de)=>{if(Cr(de,"phflag"),se.length||de)throw new Error("Contexts/pre-hash are not supported");return re});function A(re){return d.create(Co(re))}function O(re){const se=W.secretKey;re=jt("private key",re,se);const de=jt("hashed private key",t(re),2*se),ge=l(de.slice(0,se)),k=de.slice(se,2*se),f=A(ge);return{head:ge,prefix:k,scalar:f}}function S(re){const{head:se,prefix:de,scalar:ge}=O(re),k=c.multiply(ge),f=k.toBytes();return{head:se,prefix:de,scalar:ge,point:k,pointBytes:f}}function I(re){return S(re).pointBytes}function B(re=Uint8Array.of(),...se){const de=qn(...se);return A(t(y(de,jt("context",re),!!r)))}function C(re,se,de={}){re=jt("message",re),r&&(re=r(re));const{prefix:ge,scalar:k,pointBytes:f}=S(se),R=B(de.context,ge,re),M=c.multiply(R).toBytes(),$=B(de.context,M,f,re),Z=d.create(R+$*k);if(!d.isValid(Z))throw new Error("sign failed: invalid s");const te=qn(M,d.toBytes(Z));return Wn(te,W.signature,"result")}const F={zip215:!0};function j(re,se,de,ge=F){const{context:k,zip215:f}=ge,R=W.signature;re=jt("signature",re,R),se=jt("message",se),de=jt("publicKey",de,W.publicKey),f!==void 0&&Cr(f,"zip215"),r&&(se=r(se));const M=R/2,$=re.subarray(0,M),Z=Co(re.subarray(M,R));let te,ce,K;try{te=e.fromBytes(de,f),ce=e.fromBytes($,f),K=c.multiplyUnsafe(Z)}catch{return!1}if(!f&&te.isSmallOrder())return!1;const g=B(k,ce.toBytes(),te.toBytes(),se);return ce.add(te.multiplyUnsafe(g)).subtract(K).clearCofactor().is0()}const Q=i.BYTES,W={secretKey:Q,publicKey:Q,signature:2*Q,seed:Q};function ae(re=v(W.seed)){return Wn(re,W.seed,"seed")}function fe(re){const se=Re.randomSecretKey(re);return{secretKey:se,publicKey:I(se)}}function ie(re){return Lo(re)&&re.length===d.BYTES}function Ee(re,se){try{return!!e.fromBytes(re,se)}catch{return!1}}const Re={getExtendedPublicKey:S,randomSecretKey:ae,isValidSecretKey:ie,isValidPublicKey:Ee,toMontgomery(re){const{y:se}=e.fromBytes(re),de=W.publicKey,ge=de===32;if(!ge&&de!==57)throw new Error("only defined for 25519 and 448");const k=ge?i.div(ln+se,ln-se):i.div(se-ln,se+ln);return i.toBytes(k)},toMontgomerySecret(re){const se=W.secretKey;Wn(re,se);const de=t(re.subarray(0,se));return l(de).subarray(0,se)},randomPrivateKey:ae,precompute(re=8,se=e.BASE){return se.precompute(re,!1)}};return Object.freeze({keygen:fe,getPublicKey:I,sign:C,verify:j,utils:Re,Point:e,lengths:W})}function sh(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=Br(t.n,e.nBitLength,!0),c={Fp:n,Fn:r,uvRatio:e.uvRatio},i={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:c,hash:e.hash,eddsaOpts:i}}function ah(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}function ch(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:c}=sh(e),i=oh(t,n),d=ih(i,r,c);return ah(e,d)}const uh=BigInt(1),ku=BigInt(2);BigInt(3);const fh=BigInt(5),lh=BigInt(8),ta=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),Du={p:ta,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:lh,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function dh(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),c=BigInt(80),i=ta,v=e*e%i*e%i,l=Kt(v,ku,i)*v%i,y=Kt(l,uh,i)*e%i,A=Kt(y,fh,i)*y%i,O=Kt(A,t,i)*A%i,S=Kt(O,n,i)*O%i,I=Kt(S,r,i)*S%i,B=Kt(I,c,i)*I%i,C=Kt(B,c,i)*I%i,F=Kt(C,t,i)*A%i;return{pow_p_5_8:Kt(F,ku,i)*e%i,b2:v}}function hh(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Uu=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function ph(e,t){const n=ta,r=en(t*t*t,n),c=en(r*r*t,n),i=dh(e*c).pow_p_5_8;let d=en(e*r*i,n);const v=en(t*d*d,n),l=d,y=en(d*Uu,n),A=v===e,O=v===en(-e,n),S=v===en(-e*Uu,n);return A&&(d=l),(O||S)&&(d=y),Zd(d,n)&&(d=en(-d,n)),{isValid:A||O,value:d}}const mh=Br(Du.p,{isLE:!0}),gh={...Du,Fp:mh,hash:Vd,adjustScalarBytes:hh,uvRatio:ph},ko=ch(gh);var Ci={exports:{}};const vh=Ps(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var yh=Ci.exports,Pu;function Fu(){return Pu||(Pu=1,(function(e){(function(t,n){function r(k,f){if(!k)throw new Error(f||"Assertion failed")}function c(k,f){k.super_=f;var R=function(){};R.prototype=f.prototype,k.prototype=new R,k.prototype.constructor=k}function i(k,f,R){if(i.isBN(k))return k;this.negative=0,this.words=null,this.length=0,this.red=null,k!==null&&((f==="le"||f==="be")&&(R=f,f=10),this._init(k||0,f||10,R||"be"))}typeof t=="object"?t.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=vh.Buffer}catch{}i.isBN=function(f){return f instanceof i?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===i.wordSize&&Array.isArray(f.words)},i.max=function(f,R){return f.cmp(R)>0?f:R},i.min=function(f,R){return f.cmp(R)<0?f:R},i.prototype._init=function(f,R,M){if(typeof f=="number")return this._initNumber(f,R,M);if(typeof f=="object")return this._initArray(f,R,M);R==="hex"&&(R=16),r(R===(R|0)&&R>=2&&R<=36),f=f.toString().replace(/\s+/g,"");var $=0;f[0]==="-"&&($++,this.negative=1),$<f.length&&(R===16?this._parseHex(f,$,M):(this._parseBase(f,R,$),M==="le"&&this._initArray(this.toArray(),R,M)))},i.prototype._initNumber=function(f,R,M){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),M==="le"&&this._initArray(this.toArray(),R,M)},i.prototype._initArray=function(f,R,M){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var Z,te,ce=0;if(M==="be")for($=f.length-1,Z=0;$>=0;$-=3)te=f[$]|f[$-1]<<8|f[$-2]<<16,this.words[Z]|=te<<ce&67108863,this.words[Z+1]=te>>>26-ce&67108863,ce+=24,ce>=26&&(ce-=26,Z++);else if(M==="le")for($=0,Z=0;$<f.length;$+=3)te=f[$]|f[$+1]<<8|f[$+2]<<16,this.words[Z]|=te<<ce&67108863,this.words[Z+1]=te>>>26-ce&67108863,ce+=24,ce>=26&&(ce-=26,Z++);return this._strip()};function v(k,f){var R=k.charCodeAt(f);if(R>=48&&R<=57)return R-48;if(R>=65&&R<=70)return R-55;if(R>=97&&R<=102)return R-87;r(!1,"Invalid character in "+k)}function l(k,f,R){var M=v(k,R);return R-1>=f&&(M|=v(k,R-1)<<4),M}i.prototype._parseHex=function(f,R,M){this.length=Math.ceil((f.length-R)/6),this.words=new Array(this.length);for(var $=0;$<this.length;$++)this.words[$]=0;var Z=0,te=0,ce;if(M==="be")for($=f.length-1;$>=R;$-=2)ce=l(f,R,$)<<Z,this.words[te]|=ce&67108863,Z>=18?(Z-=18,te+=1,this.words[te]|=ce>>>26):Z+=8;else{var K=f.length-R;for($=K%2===0?R+1:R;$<f.length;$+=2)ce=l(f,R,$)<<Z,this.words[te]|=ce&67108863,Z>=18?(Z-=18,te+=1,this.words[te]|=ce>>>26):Z+=8}this._strip()};function y(k,f,R,M){for(var $=0,Z=0,te=Math.min(k.length,R),ce=f;ce<te;ce++){var K=k.charCodeAt(ce)-48;$*=M,K>=49?Z=K-49+10:K>=17?Z=K-17+10:Z=K,r(K>=0&&Z<M,"Invalid character"),$+=Z}return $}i.prototype._parseBase=function(f,R,M){this.words=[0],this.length=1;for(var $=0,Z=1;Z<=67108863;Z*=R)$++;$--,Z=Z/R|0;for(var te=f.length-M,ce=te%$,K=Math.min(te,te-ce)+M,g=0,_=M;_<K;_+=$)g=y(f,_,_+$,R),this.imuln(Z),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g);if(ce!==0){var H=1;for(g=y(f,_,f.length,R),_=0;_<ce;_++)H*=R;this.imuln(H),this.words[0]+g<67108864?this.words[0]+=g:this._iaddn(g)}this._strip()},i.prototype.copy=function(f){f.words=new Array(this.length);for(var R=0;R<this.length;R++)f.words[R]=this.words[R];f.length=this.length,f.negative=this.negative,f.red=this.red};function A(k,f){k.words=f.words,k.length=f.length,k.negative=f.negative,k.red=f.red}if(i.prototype._move=function(f){A(f,this)},i.prototype.clone=function(){var f=new i(null);return this.copy(f),f},i.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch{i.prototype.inspect=O}else i.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","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"],I=[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],B=[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];i.prototype.toString=function(f,R){f=f||10,R=R|0||1;var M;if(f===16||f==="hex"){M="";for(var $=0,Z=0,te=0;te<this.length;te++){var ce=this.words[te],K=((ce<<$|Z)&16777215).toString(16);Z=ce>>>24-$&16777215,$+=2,$>=26&&($-=26,te--),Z!==0||te!==this.length-1?M=S[6-K.length]+K+M:M=K+M}for(Z!==0&&(M=Z.toString(16)+M);M.length%R!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}if(f===(f|0)&&f>=2&&f<=36){var g=I[f],_=B[f];M="";var H=this.clone();for(H.negative=0;!H.isZero();){var q=H.modrn(_).toString(f);H=H.idivn(_),H.isZero()?M=q+M:M=S[g-q.length]+q+M}for(this.isZero()&&(M="0"+M);M.length%R!==0;)M="0"+M;return this.negative!==0&&(M="-"+M),M}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},i.prototype.toJSON=function(){return this.toString(16,2)},d&&(i.prototype.toBuffer=function(f,R){return this.toArrayLike(d,f,R)}),i.prototype.toArray=function(f,R){return this.toArrayLike(Array,f,R)};var C=function(f,R){return f.allocUnsafe?f.allocUnsafe(R):new f(R)};i.prototype.toArrayLike=function(f,R,M){this._strip();var $=this.byteLength(),Z=M||Math.max(1,$);r($<=Z,"byte array longer than desired length"),r(Z>0,"Requested array length <= 0");var te=C(f,Z),ce=R==="le"?"LE":"BE";return this["_toArrayLike"+ce](te,$),te},i.prototype._toArrayLikeLE=function(f,R){for(var M=0,$=0,Z=0,te=0;Z<this.length;Z++){var ce=this.words[Z]<<te|$;f[M++]=ce&255,M<f.length&&(f[M++]=ce>>8&255),M<f.length&&(f[M++]=ce>>16&255),te===6?(M<f.length&&(f[M++]=ce>>24&255),$=0,te=0):($=ce>>>24,te+=2)}if(M<f.length)for(f[M++]=$;M<f.length;)f[M++]=0},i.prototype._toArrayLikeBE=function(f,R){for(var M=f.length-1,$=0,Z=0,te=0;Z<this.length;Z++){var ce=this.words[Z]<<te|$;f[M--]=ce&255,M>=0&&(f[M--]=ce>>8&255),M>=0&&(f[M--]=ce>>16&255),te===6?(M>=0&&(f[M--]=ce>>24&255),$=0,te=0):($=ce>>>24,te+=2)}if(M>=0)for(f[M--]=$;M>=0;)f[M--]=0},Math.clz32?i.prototype._countBits=function(f){return 32-Math.clz32(f)}:i.prototype._countBits=function(f){var R=f,M=0;return R>=4096&&(M+=13,R>>>=13),R>=64&&(M+=7,R>>>=7),R>=8&&(M+=4,R>>>=4),R>=2&&(M+=2,R>>>=2),M+R},i.prototype._zeroBits=function(f){if(f===0)return 26;var R=f,M=0;return(R&8191)===0&&(M+=13,R>>>=13),(R&127)===0&&(M+=7,R>>>=7),(R&15)===0&&(M+=4,R>>>=4),(R&3)===0&&(M+=2,R>>>=2),(R&1)===0&&M++,M},i.prototype.bitLength=function(){var f=this.words[this.length-1],R=this._countBits(f);return(this.length-1)*26+R};function F(k){for(var f=new Array(k.bitLength()),R=0;R<f.length;R++){var M=R/26|0,$=R%26;f[R]=k.words[M]>>>$&1}return f}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,R=0;R<this.length;R++){var M=this._zeroBits(this.words[R]);if(f+=M,M!==26)break}return f},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},i.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var R=0;R<f.length;R++)this.words[R]=this.words[R]|f.words[R];return this._strip()},i.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},i.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},i.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},i.prototype.iuand=function(f){var R;this.length>f.length?R=f:R=this;for(var M=0;M<R.length;M++)this.words[M]=this.words[M]&f.words[M];return this.length=R.length,this._strip()},i.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},i.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},i.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},i.prototype.iuxor=function(f){var R,M;this.length>f.length?(R=this,M=f):(R=f,M=this);for(var $=0;$<M.length;$++)this.words[$]=R.words[$]^M.words[$];if(this!==R)for(;$<R.length;$++)this.words[$]=R.words[$];return this.length=R.length,this._strip()},i.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},i.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},i.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},i.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var R=Math.ceil(f/26)|0,M=f%26;this._expand(R),M>0&&R--;for(var $=0;$<R;$++)this.words[$]=~this.words[$]&67108863;for(M>0&&(this.words[$]=~this.words[$]&67108863>>26-M,$++);$<this.length;$++)this.words[$]=0;return this._strip()},i.prototype.notn=function(f){return this.clone().inotn(f)},i.prototype.setn=function(f,R){r(typeof f=="number"&&f>=0);var M=f/26|0,$=f%26;return this._expand(M+1),R?this.words[M]=this.words[M]|1<<$:this.words[M]=this.words[M]&~(1<<$),this._strip()},i.prototype.iadd=function(f){var R;if(this.negative!==0&&f.negative===0)return this.negative=0,R=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,R=this.isub(f),f.negative=1,R._normSign();var M,$;this.length>f.length?(M=this,$=f):(M=f,$=this);for(var Z=0,te=0;te<$.length;te++)R=(M.words[te]|0)+($.words[te]|0)+Z,this.words[te]=R&67108863,Z=R>>>26;for(;Z!==0&&te<M.length;te++)R=(M.words[te]|0)+Z,this.words[te]=R&67108863,Z=R>>>26;if(this.length=M.length,Z!==0)this.words[this.length]=Z,this.length++;else if(M!==this)for(;te<M.length;te++)this.words[te]=M.words[te];return this},i.prototype.add=function(f){var R;return f.negative!==0&&this.negative===0?(f.negative=0,R=this.sub(f),f.negative^=1,R):f.negative===0&&this.negative!==0?(this.negative=0,R=f.sub(this),this.negative=1,R):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},i.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var R=this.iadd(f);return f.negative=1,R._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var M=this.cmp(f);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;var $,Z;M>0?($=this,Z=f):($=f,Z=this);for(var te=0,ce=0;ce<Z.length;ce++)R=($.words[ce]|0)-(Z.words[ce]|0)+te,te=R>>26,this.words[ce]=R&67108863;for(;te!==0&&ce<$.length;ce++)R=($.words[ce]|0)+te,te=R>>26,this.words[ce]=R&67108863;if(te===0&&ce<$.length&&$!==this)for(;ce<$.length;ce++)this.words[ce]=$.words[ce];return this.length=Math.max(this.length,ce),$!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(f){return this.clone().isub(f)};function j(k,f,R){R.negative=f.negative^k.negative;var M=k.length+f.length|0;R.length=M,M=M-1|0;var $=k.words[0]|0,Z=f.words[0]|0,te=$*Z,ce=te&67108863,K=te/67108864|0;R.words[0]=ce;for(var g=1;g<M;g++){for(var _=K>>>26,H=K&67108863,q=Math.min(g,f.length-1),me=Math.max(0,g-k.length+1);me<=q;me++){var ye=g-me|0;$=k.words[ye]|0,Z=f.words[me]|0,te=$*Z+H,_+=te/67108864|0,H=te&67108863}R.words[g]=H|0,K=_|0}return K!==0?R.words[g]=K|0:R.length--,R._strip()}var Q=function(f,R,M){var $=f.words,Z=R.words,te=M.words,ce=0,K,g,_,H=$[0]|0,q=H&8191,me=H>>>13,ye=$[1]|0,Ue=ye&8191,We=ye>>>13,st=$[2]|0,at=st&8191,ut=st>>>13,Et=$[3]|0,ht=Et&8191,Rt=Et>>>13,Pt=$[4]|0,vt=Pt&8191,w=Pt>>>13,x=$[5]|0,V=x&8191,ne=x>>>13,J=$[6]|0,pe=J&8191,Me=J>>>13,tt=$[7]|0,Qe=tt&8191,P=tt>>>13,E=$[8]|0,b=E&8191,X=E>>>13,ve=$[9]|0,be=ve&8191,L=ve>>>13,oe=Z[0]|0,ee=oe&8191,we=oe>>>13,Se=Z[1]|0,Ne=Se&8191,Pe=Se>>>13,Ve=Z[2]|0,ue=Ve&8191,He=Ve>>>13,ze=Z[3]|0,qe=ze&8191,et=ze>>>13,ct=Z[4]|0,ot=ct&8191,rt=ct>>>13,$t=Z[5]|0,pt=$t&8191,gt=$t>>>13,tn=Z[6]|0,It=tn&8191,Nt=tn>>>13,lr=Z[7]|0,kt=lr&8191,Mt=lr>>>13,Hr=Z[8]|0,zt=Hr&8191,Zt=Hr>>>13,fs=Z[9]|0,Yt=fs&8191,Xt=fs>>>13;M.negative=f.negative^R.negative,M.length=19,K=Math.imul(q,ee),g=Math.imul(q,we),g=g+Math.imul(me,ee)|0,_=Math.imul(me,we);var zo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(zo>>>26)|0,zo&=67108863,K=Math.imul(Ue,ee),g=Math.imul(Ue,we),g=g+Math.imul(We,ee)|0,_=Math.imul(We,we),K=K+Math.imul(q,Ne)|0,g=g+Math.imul(q,Pe)|0,g=g+Math.imul(me,Ne)|0,_=_+Math.imul(me,Pe)|0;var Zo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(Zo>>>26)|0,Zo&=67108863,K=Math.imul(at,ee),g=Math.imul(at,we),g=g+Math.imul(ut,ee)|0,_=Math.imul(ut,we),K=K+Math.imul(Ue,Ne)|0,g=g+Math.imul(Ue,Pe)|0,g=g+Math.imul(We,Ne)|0,_=_+Math.imul(We,Pe)|0,K=K+Math.imul(q,ue)|0,g=g+Math.imul(q,He)|0,g=g+Math.imul(me,ue)|0,_=_+Math.imul(me,He)|0;var Yo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(Yo>>>26)|0,Yo&=67108863,K=Math.imul(ht,ee),g=Math.imul(ht,we),g=g+Math.imul(Rt,ee)|0,_=Math.imul(Rt,we),K=K+Math.imul(at,Ne)|0,g=g+Math.imul(at,Pe)|0,g=g+Math.imul(ut,Ne)|0,_=_+Math.imul(ut,Pe)|0,K=K+Math.imul(Ue,ue)|0,g=g+Math.imul(Ue,He)|0,g=g+Math.imul(We,ue)|0,_=_+Math.imul(We,He)|0,K=K+Math.imul(q,qe)|0,g=g+Math.imul(q,et)|0,g=g+Math.imul(me,qe)|0,_=_+Math.imul(me,et)|0;var Xo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(Xo>>>26)|0,Xo&=67108863,K=Math.imul(vt,ee),g=Math.imul(vt,we),g=g+Math.imul(w,ee)|0,_=Math.imul(w,we),K=K+Math.imul(ht,Ne)|0,g=g+Math.imul(ht,Pe)|0,g=g+Math.imul(Rt,Ne)|0,_=_+Math.imul(Rt,Pe)|0,K=K+Math.imul(at,ue)|0,g=g+Math.imul(at,He)|0,g=g+Math.imul(ut,ue)|0,_=_+Math.imul(ut,He)|0,K=K+Math.imul(Ue,qe)|0,g=g+Math.imul(Ue,et)|0,g=g+Math.imul(We,qe)|0,_=_+Math.imul(We,et)|0,K=K+Math.imul(q,ot)|0,g=g+Math.imul(q,rt)|0,g=g+Math.imul(me,ot)|0,_=_+Math.imul(me,rt)|0;var dn=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(dn>>>26)|0,dn&=67108863,K=Math.imul(V,ee),g=Math.imul(V,we),g=g+Math.imul(ne,ee)|0,_=Math.imul(ne,we),K=K+Math.imul(vt,Ne)|0,g=g+Math.imul(vt,Pe)|0,g=g+Math.imul(w,Ne)|0,_=_+Math.imul(w,Pe)|0,K=K+Math.imul(ht,ue)|0,g=g+Math.imul(ht,He)|0,g=g+Math.imul(Rt,ue)|0,_=_+Math.imul(Rt,He)|0,K=K+Math.imul(at,qe)|0,g=g+Math.imul(at,et)|0,g=g+Math.imul(ut,qe)|0,_=_+Math.imul(ut,et)|0,K=K+Math.imul(Ue,ot)|0,g=g+Math.imul(Ue,rt)|0,g=g+Math.imul(We,ot)|0,_=_+Math.imul(We,rt)|0,K=K+Math.imul(q,pt)|0,g=g+Math.imul(q,gt)|0,g=g+Math.imul(me,pt)|0,_=_+Math.imul(me,gt)|0;var qo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(qo>>>26)|0,qo&=67108863,K=Math.imul(pe,ee),g=Math.imul(pe,we),g=g+Math.imul(Me,ee)|0,_=Math.imul(Me,we),K=K+Math.imul(V,Ne)|0,g=g+Math.imul(V,Pe)|0,g=g+Math.imul(ne,Ne)|0,_=_+Math.imul(ne,Pe)|0,K=K+Math.imul(vt,ue)|0,g=g+Math.imul(vt,He)|0,g=g+Math.imul(w,ue)|0,_=_+Math.imul(w,He)|0,K=K+Math.imul(ht,qe)|0,g=g+Math.imul(ht,et)|0,g=g+Math.imul(Rt,qe)|0,_=_+Math.imul(Rt,et)|0,K=K+Math.imul(at,ot)|0,g=g+Math.imul(at,rt)|0,g=g+Math.imul(ut,ot)|0,_=_+Math.imul(ut,rt)|0,K=K+Math.imul(Ue,pt)|0,g=g+Math.imul(Ue,gt)|0,g=g+Math.imul(We,pt)|0,_=_+Math.imul(We,gt)|0,K=K+Math.imul(q,It)|0,g=g+Math.imul(q,Nt)|0,g=g+Math.imul(me,It)|0,_=_+Math.imul(me,Nt)|0;var Jo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(Jo>>>26)|0,Jo&=67108863,K=Math.imul(Qe,ee),g=Math.imul(Qe,we),g=g+Math.imul(P,ee)|0,_=Math.imul(P,we),K=K+Math.imul(pe,Ne)|0,g=g+Math.imul(pe,Pe)|0,g=g+Math.imul(Me,Ne)|0,_=_+Math.imul(Me,Pe)|0,K=K+Math.imul(V,ue)|0,g=g+Math.imul(V,He)|0,g=g+Math.imul(ne,ue)|0,_=_+Math.imul(ne,He)|0,K=K+Math.imul(vt,qe)|0,g=g+Math.imul(vt,et)|0,g=g+Math.imul(w,qe)|0,_=_+Math.imul(w,et)|0,K=K+Math.imul(ht,ot)|0,g=g+Math.imul(ht,rt)|0,g=g+Math.imul(Rt,ot)|0,_=_+Math.imul(Rt,rt)|0,K=K+Math.imul(at,pt)|0,g=g+Math.imul(at,gt)|0,g=g+Math.imul(ut,pt)|0,_=_+Math.imul(ut,gt)|0,K=K+Math.imul(Ue,It)|0,g=g+Math.imul(Ue,Nt)|0,g=g+Math.imul(We,It)|0,_=_+Math.imul(We,Nt)|0,K=K+Math.imul(q,kt)|0,g=g+Math.imul(q,Mt)|0,g=g+Math.imul(me,kt)|0,_=_+Math.imul(me,Mt)|0;var Qo=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(Qo>>>26)|0,Qo&=67108863,K=Math.imul(b,ee),g=Math.imul(b,we),g=g+Math.imul(X,ee)|0,_=Math.imul(X,we),K=K+Math.imul(Qe,Ne)|0,g=g+Math.imul(Qe,Pe)|0,g=g+Math.imul(P,Ne)|0,_=_+Math.imul(P,Pe)|0,K=K+Math.imul(pe,ue)|0,g=g+Math.imul(pe,He)|0,g=g+Math.imul(Me,ue)|0,_=_+Math.imul(Me,He)|0,K=K+Math.imul(V,qe)|0,g=g+Math.imul(V,et)|0,g=g+Math.imul(ne,qe)|0,_=_+Math.imul(ne,et)|0,K=K+Math.imul(vt,ot)|0,g=g+Math.imul(vt,rt)|0,g=g+Math.imul(w,ot)|0,_=_+Math.imul(w,rt)|0,K=K+Math.imul(ht,pt)|0,g=g+Math.imul(ht,gt)|0,g=g+Math.imul(Rt,pt)|0,_=_+Math.imul(Rt,gt)|0,K=K+Math.imul(at,It)|0,g=g+Math.imul(at,Nt)|0,g=g+Math.imul(ut,It)|0,_=_+Math.imul(ut,Nt)|0,K=K+Math.imul(Ue,kt)|0,g=g+Math.imul(Ue,Mt)|0,g=g+Math.imul(We,kt)|0,_=_+Math.imul(We,Mt)|0,K=K+Math.imul(q,zt)|0,g=g+Math.imul(q,Zt)|0,g=g+Math.imul(me,zt)|0,_=_+Math.imul(me,Zt)|0;var ei=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ei>>>26)|0,ei&=67108863,K=Math.imul(be,ee),g=Math.imul(be,we),g=g+Math.imul(L,ee)|0,_=Math.imul(L,we),K=K+Math.imul(b,Ne)|0,g=g+Math.imul(b,Pe)|0,g=g+Math.imul(X,Ne)|0,_=_+Math.imul(X,Pe)|0,K=K+Math.imul(Qe,ue)|0,g=g+Math.imul(Qe,He)|0,g=g+Math.imul(P,ue)|0,_=_+Math.imul(P,He)|0,K=K+Math.imul(pe,qe)|0,g=g+Math.imul(pe,et)|0,g=g+Math.imul(Me,qe)|0,_=_+Math.imul(Me,et)|0,K=K+Math.imul(V,ot)|0,g=g+Math.imul(V,rt)|0,g=g+Math.imul(ne,ot)|0,_=_+Math.imul(ne,rt)|0,K=K+Math.imul(vt,pt)|0,g=g+Math.imul(vt,gt)|0,g=g+Math.imul(w,pt)|0,_=_+Math.imul(w,gt)|0,K=K+Math.imul(ht,It)|0,g=g+Math.imul(ht,Nt)|0,g=g+Math.imul(Rt,It)|0,_=_+Math.imul(Rt,Nt)|0,K=K+Math.imul(at,kt)|0,g=g+Math.imul(at,Mt)|0,g=g+Math.imul(ut,kt)|0,_=_+Math.imul(ut,Mt)|0,K=K+Math.imul(Ue,zt)|0,g=g+Math.imul(Ue,Zt)|0,g=g+Math.imul(We,zt)|0,_=_+Math.imul(We,Zt)|0,K=K+Math.imul(q,Yt)|0,g=g+Math.imul(q,Xt)|0,g=g+Math.imul(me,Yt)|0,_=_+Math.imul(me,Xt)|0;var ti=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ti>>>26)|0,ti&=67108863,K=Math.imul(be,Ne),g=Math.imul(be,Pe),g=g+Math.imul(L,Ne)|0,_=Math.imul(L,Pe),K=K+Math.imul(b,ue)|0,g=g+Math.imul(b,He)|0,g=g+Math.imul(X,ue)|0,_=_+Math.imul(X,He)|0,K=K+Math.imul(Qe,qe)|0,g=g+Math.imul(Qe,et)|0,g=g+Math.imul(P,qe)|0,_=_+Math.imul(P,et)|0,K=K+Math.imul(pe,ot)|0,g=g+Math.imul(pe,rt)|0,g=g+Math.imul(Me,ot)|0,_=_+Math.imul(Me,rt)|0,K=K+Math.imul(V,pt)|0,g=g+Math.imul(V,gt)|0,g=g+Math.imul(ne,pt)|0,_=_+Math.imul(ne,gt)|0,K=K+Math.imul(vt,It)|0,g=g+Math.imul(vt,Nt)|0,g=g+Math.imul(w,It)|0,_=_+Math.imul(w,Nt)|0,K=K+Math.imul(ht,kt)|0,g=g+Math.imul(ht,Mt)|0,g=g+Math.imul(Rt,kt)|0,_=_+Math.imul(Rt,Mt)|0,K=K+Math.imul(at,zt)|0,g=g+Math.imul(at,Zt)|0,g=g+Math.imul(ut,zt)|0,_=_+Math.imul(ut,Zt)|0,K=K+Math.imul(Ue,Yt)|0,g=g+Math.imul(Ue,Xt)|0,g=g+Math.imul(We,Yt)|0,_=_+Math.imul(We,Xt)|0;var ni=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ni>>>26)|0,ni&=67108863,K=Math.imul(be,ue),g=Math.imul(be,He),g=g+Math.imul(L,ue)|0,_=Math.imul(L,He),K=K+Math.imul(b,qe)|0,g=g+Math.imul(b,et)|0,g=g+Math.imul(X,qe)|0,_=_+Math.imul(X,et)|0,K=K+Math.imul(Qe,ot)|0,g=g+Math.imul(Qe,rt)|0,g=g+Math.imul(P,ot)|0,_=_+Math.imul(P,rt)|0,K=K+Math.imul(pe,pt)|0,g=g+Math.imul(pe,gt)|0,g=g+Math.imul(Me,pt)|0,_=_+Math.imul(Me,gt)|0,K=K+Math.imul(V,It)|0,g=g+Math.imul(V,Nt)|0,g=g+Math.imul(ne,It)|0,_=_+Math.imul(ne,Nt)|0,K=K+Math.imul(vt,kt)|0,g=g+Math.imul(vt,Mt)|0,g=g+Math.imul(w,kt)|0,_=_+Math.imul(w,Mt)|0,K=K+Math.imul(ht,zt)|0,g=g+Math.imul(ht,Zt)|0,g=g+Math.imul(Rt,zt)|0,_=_+Math.imul(Rt,Zt)|0,K=K+Math.imul(at,Yt)|0,g=g+Math.imul(at,Xt)|0,g=g+Math.imul(ut,Yt)|0,_=_+Math.imul(ut,Xt)|0;var ri=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ri>>>26)|0,ri&=67108863,K=Math.imul(be,qe),g=Math.imul(be,et),g=g+Math.imul(L,qe)|0,_=Math.imul(L,et),K=K+Math.imul(b,ot)|0,g=g+Math.imul(b,rt)|0,g=g+Math.imul(X,ot)|0,_=_+Math.imul(X,rt)|0,K=K+Math.imul(Qe,pt)|0,g=g+Math.imul(Qe,gt)|0,g=g+Math.imul(P,pt)|0,_=_+Math.imul(P,gt)|0,K=K+Math.imul(pe,It)|0,g=g+Math.imul(pe,Nt)|0,g=g+Math.imul(Me,It)|0,_=_+Math.imul(Me,Nt)|0,K=K+Math.imul(V,kt)|0,g=g+Math.imul(V,Mt)|0,g=g+Math.imul(ne,kt)|0,_=_+Math.imul(ne,Mt)|0,K=K+Math.imul(vt,zt)|0,g=g+Math.imul(vt,Zt)|0,g=g+Math.imul(w,zt)|0,_=_+Math.imul(w,Zt)|0,K=K+Math.imul(ht,Yt)|0,g=g+Math.imul(ht,Xt)|0,g=g+Math.imul(Rt,Yt)|0,_=_+Math.imul(Rt,Xt)|0;var oi=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(oi>>>26)|0,oi&=67108863,K=Math.imul(be,ot),g=Math.imul(be,rt),g=g+Math.imul(L,ot)|0,_=Math.imul(L,rt),K=K+Math.imul(b,pt)|0,g=g+Math.imul(b,gt)|0,g=g+Math.imul(X,pt)|0,_=_+Math.imul(X,gt)|0,K=K+Math.imul(Qe,It)|0,g=g+Math.imul(Qe,Nt)|0,g=g+Math.imul(P,It)|0,_=_+Math.imul(P,Nt)|0,K=K+Math.imul(pe,kt)|0,g=g+Math.imul(pe,Mt)|0,g=g+Math.imul(Me,kt)|0,_=_+Math.imul(Me,Mt)|0,K=K+Math.imul(V,zt)|0,g=g+Math.imul(V,Zt)|0,g=g+Math.imul(ne,zt)|0,_=_+Math.imul(ne,Zt)|0,K=K+Math.imul(vt,Yt)|0,g=g+Math.imul(vt,Xt)|0,g=g+Math.imul(w,Yt)|0,_=_+Math.imul(w,Xt)|0;var ii=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ii>>>26)|0,ii&=67108863,K=Math.imul(be,pt),g=Math.imul(be,gt),g=g+Math.imul(L,pt)|0,_=Math.imul(L,gt),K=K+Math.imul(b,It)|0,g=g+Math.imul(b,Nt)|0,g=g+Math.imul(X,It)|0,_=_+Math.imul(X,Nt)|0,K=K+Math.imul(Qe,kt)|0,g=g+Math.imul(Qe,Mt)|0,g=g+Math.imul(P,kt)|0,_=_+Math.imul(P,Mt)|0,K=K+Math.imul(pe,zt)|0,g=g+Math.imul(pe,Zt)|0,g=g+Math.imul(Me,zt)|0,_=_+Math.imul(Me,Zt)|0,K=K+Math.imul(V,Yt)|0,g=g+Math.imul(V,Xt)|0,g=g+Math.imul(ne,Yt)|0,_=_+Math.imul(ne,Xt)|0;var si=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(si>>>26)|0,si&=67108863,K=Math.imul(be,It),g=Math.imul(be,Nt),g=g+Math.imul(L,It)|0,_=Math.imul(L,Nt),K=K+Math.imul(b,kt)|0,g=g+Math.imul(b,Mt)|0,g=g+Math.imul(X,kt)|0,_=_+Math.imul(X,Mt)|0,K=K+Math.imul(Qe,zt)|0,g=g+Math.imul(Qe,Zt)|0,g=g+Math.imul(P,zt)|0,_=_+Math.imul(P,Zt)|0,K=K+Math.imul(pe,Yt)|0,g=g+Math.imul(pe,Xt)|0,g=g+Math.imul(Me,Yt)|0,_=_+Math.imul(Me,Xt)|0;var ai=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ai>>>26)|0,ai&=67108863,K=Math.imul(be,kt),g=Math.imul(be,Mt),g=g+Math.imul(L,kt)|0,_=Math.imul(L,Mt),K=K+Math.imul(b,zt)|0,g=g+Math.imul(b,Zt)|0,g=g+Math.imul(X,zt)|0,_=_+Math.imul(X,Zt)|0,K=K+Math.imul(Qe,Yt)|0,g=g+Math.imul(Qe,Xt)|0,g=g+Math.imul(P,Yt)|0,_=_+Math.imul(P,Xt)|0;var ci=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ci>>>26)|0,ci&=67108863,K=Math.imul(be,zt),g=Math.imul(be,Zt),g=g+Math.imul(L,zt)|0,_=Math.imul(L,Zt),K=K+Math.imul(b,Yt)|0,g=g+Math.imul(b,Xt)|0,g=g+Math.imul(X,Yt)|0,_=_+Math.imul(X,Xt)|0;var ui=(ce+K|0)+((g&8191)<<13)|0;ce=(_+(g>>>13)|0)+(ui>>>26)|0,ui&=67108863,K=Math.imul(be,Yt),g=Math.imul(be,Xt),g=g+Math.imul(L,Yt)|0,_=Math.imul(L,Xt);var fi=(ce+K|0)+((g&8191)<<13)|0;return ce=(_+(g>>>13)|0)+(fi>>>26)|0,fi&=67108863,te[0]=zo,te[1]=Zo,te[2]=Yo,te[3]=Xo,te[4]=dn,te[5]=qo,te[6]=Jo,te[7]=Qo,te[8]=ei,te[9]=ti,te[10]=ni,te[11]=ri,te[12]=oi,te[13]=ii,te[14]=si,te[15]=ai,te[16]=ci,te[17]=ui,te[18]=fi,ce!==0&&(te[19]=ce,M.length++),M};Math.imul||(Q=j);function W(k,f,R){R.negative=f.negative^k.negative,R.length=k.length+f.length;for(var M=0,$=0,Z=0;Z<R.length-1;Z++){var te=$;$=0;for(var ce=M&67108863,K=Math.min(Z,f.length-1),g=Math.max(0,Z-k.length+1);g<=K;g++){var _=Z-g,H=k.words[_]|0,q=f.words[g]|0,me=H*q,ye=me&67108863;te=te+(me/67108864|0)|0,ye=ye+ce|0,ce=ye&67108863,te=te+(ye>>>26)|0,$+=te>>>26,te&=67108863}R.words[Z]=ce,M=te,te=$}return M!==0?R.words[Z]=M:R.length--,R._strip()}function ae(k,f,R){return W(k,f,R)}i.prototype.mulTo=function(f,R){var M,$=this.length+f.length;return this.length===10&&f.length===10?M=Q(this,f,R):$<63?M=j(this,f,R):$<1024?M=W(this,f,R):M=ae(this,f,R),M},i.prototype.mul=function(f){var R=new i(null);return R.words=new Array(this.length+f.length),this.mulTo(f,R)},i.prototype.mulf=function(f){var R=new i(null);return R.words=new Array(this.length+f.length),ae(this,f,R)},i.prototype.imul=function(f){return this.clone().mulTo(f,this)},i.prototype.imuln=function(f){var R=f<0;R&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var M=0,$=0;$<this.length;$++){var Z=(this.words[$]|0)*f,te=(Z&67108863)+(M&67108863);M>>=26,M+=Z/67108864|0,M+=te>>>26,this.words[$]=te&67108863}return M!==0&&(this.words[$]=M,this.length++),f===0&&(this.length=1,this._normSign()),R?this.ineg():this},i.prototype.muln=function(f){return this.clone().imuln(f)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(f){var R=F(f);if(R.length===0)return new i(1);for(var M=this,$=0;$<R.length&&R[$]===0;$++,M=M.sqr());if(++$<R.length)for(var Z=M.sqr();$<R.length;$++,Z=Z.sqr())R[$]!==0&&(M=M.mul(Z));return M},i.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var R=f%26,M=(f-R)/26,$=67108863>>>26-R<<26-R,Z;if(R!==0){var te=0;for(Z=0;Z<this.length;Z++){var ce=this.words[Z]&$,K=(this.words[Z]|0)-ce<<R;this.words[Z]=K|te,te=ce>>>26-R}te&&(this.words[Z]=te,this.length++)}if(M!==0){for(Z=this.length-1;Z>=0;Z--)this.words[Z+M]=this.words[Z];for(Z=0;Z<M;Z++)this.words[Z]=0;this.length+=M}return this._strip()},i.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},i.prototype.iushrn=function(f,R,M){r(typeof f=="number"&&f>=0);var $;R?$=(R-R%26)/26:$=0;var Z=f%26,te=Math.min((f-Z)/26,this.length),ce=67108863^67108863>>>Z<<Z,K=M;if($-=te,$=Math.max(0,$),K){for(var g=0;g<te;g++)K.words[g]=this.words[g];K.length=te}if(te!==0)if(this.length>te)for(this.length-=te,g=0;g<this.length;g++)this.words[g]=this.words[g+te];else this.words[0]=0,this.length=1;var _=0;for(g=this.length-1;g>=0&&(_!==0||g>=$);g--){var H=this.words[g]|0;this.words[g]=_<<26-Z|H>>>Z,_=H&ce}return K&&_!==0&&(K.words[K.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(f,R,M){return r(this.negative===0),this.iushrn(f,R,M)},i.prototype.shln=function(f){return this.clone().ishln(f)},i.prototype.ushln=function(f){return this.clone().iushln(f)},i.prototype.shrn=function(f){return this.clone().ishrn(f)},i.prototype.ushrn=function(f){return this.clone().iushrn(f)},i.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var R=f%26,M=(f-R)/26,$=1<<R;if(this.length<=M)return!1;var Z=this.words[M];return!!(Z&$)},i.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var R=f%26,M=(f-R)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=M)return this;if(R!==0&&M++,this.length=Math.min(M,this.length),R!==0){var $=67108863^67108863>>>R<<R;this.words[this.length-1]&=$}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.maskn=function(f){return this.clone().imaskn(f)},i.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},i.prototype._iaddn=function(f){this.words[0]+=f;for(var R=0;R<this.length&&this.words[R]>=67108864;R++)this.words[R]-=67108864,R===this.length-1?this.words[R+1]=1:this.words[R+1]++;return this.length=Math.max(this.length,R+1),this},i.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var R=0;R<this.length&&this.words[R]<0;R++)this.words[R]+=67108864,this.words[R+1]-=1;return this._strip()},i.prototype.addn=function(f){return this.clone().iaddn(f)},i.prototype.subn=function(f){return this.clone().isubn(f)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(f,R,M){var $=f.length+M,Z;this._expand($);var te,ce=0;for(Z=0;Z<f.length;Z++){te=(this.words[Z+M]|0)+ce;var K=(f.words[Z]|0)*R;te-=K&67108863,ce=(te>>26)-(K/67108864|0),this.words[Z+M]=te&67108863}for(;Z<this.length-M;Z++)te=(this.words[Z+M]|0)+ce,ce=te>>26,this.words[Z+M]=te&67108863;if(ce===0)return this._strip();for(r(ce===-1),ce=0,Z=0;Z<this.length;Z++)te=-(this.words[Z]|0)+ce,ce=te>>26,this.words[Z]=te&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(f,R){var M=this.length-f.length,$=this.clone(),Z=f,te=Z.words[Z.length-1]|0,ce=this._countBits(te);M=26-ce,M!==0&&(Z=Z.ushln(M),$.iushln(M),te=Z.words[Z.length-1]|0);var K=$.length-Z.length,g;if(R!=="mod"){g=new i(null),g.length=K+1,g.words=new Array(g.length);for(var _=0;_<g.length;_++)g.words[_]=0}var H=$.clone()._ishlnsubmul(Z,1,K);H.negative===0&&($=H,g&&(g.words[K]=1));for(var q=K-1;q>=0;q--){var me=($.words[Z.length+q]|0)*67108864+($.words[Z.length+q-1]|0);for(me=Math.min(me/te|0,67108863),$._ishlnsubmul(Z,me,q);$.negative!==0;)me--,$.negative=0,$._ishlnsubmul(Z,1,q),$.isZero()||($.negative^=1);g&&(g.words[q]=me)}return g&&g._strip(),$._strip(),R!=="div"&&M!==0&&$.iushrn(M),{div:g||null,mod:$}},i.prototype.divmod=function(f,R,M){if(r(!f.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var $,Z,te;return this.negative!==0&&f.negative===0?(te=this.neg().divmod(f,R),R!=="mod"&&($=te.div.neg()),R!=="div"&&(Z=te.mod.neg(),M&&Z.negative!==0&&Z.iadd(f)),{div:$,mod:Z}):this.negative===0&&f.negative!==0?(te=this.divmod(f.neg(),R),R!=="mod"&&($=te.div.neg()),{div:$,mod:te.mod}):(this.negative&f.negative)!==0?(te=this.neg().divmod(f.neg(),R),R!=="div"&&(Z=te.mod.neg(),M&&Z.negative!==0&&Z.isub(f)),{div:te.div,mod:Z}):f.length>this.length||this.cmp(f)<0?{div:new i(0),mod:this}:f.length===1?R==="div"?{div:this.divn(f.words[0]),mod:null}:R==="mod"?{div:null,mod:new i(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new i(this.modrn(f.words[0]))}:this._wordDiv(f,R)},i.prototype.div=function(f){return this.divmod(f,"div",!1).div},i.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},i.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},i.prototype.divRound=function(f){var R=this.divmod(f);if(R.mod.isZero())return R.div;var M=R.mod.abs(),$=f.abs().iushrn(1),Z=f.words[0]&1,te=M.cmp($);if(te<0||Z===1&&te===0)return R.div;var ce=new i(1);return ce.negative=this.negative^f.negative,R.div.iadd(ce)},i.prototype.modrn=function(f){var R=f<0;R&&(f=-f),r(f<=67108863);for(var M=(1<<26)%f,$=0,Z=this.length-1;Z>=0;Z--)$=(M*$+(this.words[Z]|0))%f;return R?-$:$},i.prototype.modn=function(f){return this.modrn(f)},i.prototype.idivn=function(f){var R=f<0;R&&(f=-f),r(f<=67108863);for(var M=0,$=this.length-1;$>=0;$--){var Z=(this.words[$]|0)+M*67108864;this.words[$]=Z/f|0,M=Z%f}return this._strip(),R?this.ineg():this},i.prototype.divn=function(f){return this.clone().idivn(f)},i.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var R=this,M=f.clone();R.negative!==0?R=R.umod(f):R=R.clone();for(var $=new i(1),Z=new i(0),te=new i(0),ce=new i(1),K=0;R.isEven()&&M.isEven();)R.iushrn(1),M.iushrn(1),++K;for(var g=M.clone(),_=R.clone();!R.isZero();){for(var H=0,q=1;(R.words[0]&q)===0&&H<26;++H,q<<=1);if(H>0)for(R.iushrn(H);H-- >0;)($.isOdd()||Z.isOdd())&&($.iadd(g),Z.isub(_)),$.iushrn(1),Z.iushrn(1);for(var me=0,ye=1;(M.words[0]&ye)===0&&me<26;++me,ye<<=1);if(me>0)for(M.iushrn(me);me-- >0;)(te.isOdd()||ce.isOdd())&&(te.iadd(g),ce.isub(_)),te.iushrn(1),ce.iushrn(1);R.cmp(M)>=0?(R.isub(M),$.isub(te),Z.isub(ce)):(M.isub(R),te.isub($),ce.isub(Z))}return{a:te,b:ce,gcd:M.iushln(K)}},i.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var R=this,M=f.clone();R.negative!==0?R=R.umod(f):R=R.clone();for(var $=new i(1),Z=new i(0),te=M.clone();R.cmpn(1)>0&&M.cmpn(1)>0;){for(var ce=0,K=1;(R.words[0]&K)===0&&ce<26;++ce,K<<=1);if(ce>0)for(R.iushrn(ce);ce-- >0;)$.isOdd()&&$.iadd(te),$.iushrn(1);for(var g=0,_=1;(M.words[0]&_)===0&&g<26;++g,_<<=1);if(g>0)for(M.iushrn(g);g-- >0;)Z.isOdd()&&Z.iadd(te),Z.iushrn(1);R.cmp(M)>=0?(R.isub(M),$.isub(Z)):(M.isub(R),Z.isub($))}var H;return R.cmpn(1)===0?H=$:H=Z,H.cmpn(0)<0&&H.iadd(f),H},i.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var R=this.clone(),M=f.clone();R.negative=0,M.negative=0;for(var $=0;R.isEven()&&M.isEven();$++)R.iushrn(1),M.iushrn(1);do{for(;R.isEven();)R.iushrn(1);for(;M.isEven();)M.iushrn(1);var Z=R.cmp(M);if(Z<0){var te=R;R=M,M=te}else if(Z===0||M.cmpn(1)===0)break;R.isub(M)}while(!0);return M.iushln($)},i.prototype.invm=function(f){return this.egcd(f).a.umod(f)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(f){return this.words[0]&f},i.prototype.bincn=function(f){r(typeof f=="number");var R=f%26,M=(f-R)/26,$=1<<R;if(this.length<=M)return this._expand(M+1),this.words[M]|=$,this;for(var Z=$,te=M;Z!==0&&te<this.length;te++){var ce=this.words[te]|0;ce+=Z,Z=ce>>>26,ce&=67108863,this.words[te]=ce}return Z!==0&&(this.words[te]=Z,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(f){var R=f<0;if(this.negative!==0&&!R)return-1;if(this.negative===0&&R)return 1;this._strip();var M;if(this.length>1)M=1;else{R&&(f=-f),r(f<=67108863,"Number is too big");var $=this.words[0]|0;M=$===f?0:$<f?-1:1}return this.negative!==0?-M|0:M},i.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var R=this.ucmp(f);return this.negative!==0?-R|0:R},i.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var R=0,M=this.length-1;M>=0;M--){var $=this.words[M]|0,Z=f.words[M]|0;if($!==Z){$<Z?R=-1:$>Z&&(R=1);break}}return R},i.prototype.gtn=function(f){return this.cmpn(f)===1},i.prototype.gt=function(f){return this.cmp(f)===1},i.prototype.gten=function(f){return this.cmpn(f)>=0},i.prototype.gte=function(f){return this.cmp(f)>=0},i.prototype.ltn=function(f){return this.cmpn(f)===-1},i.prototype.lt=function(f){return this.cmp(f)===-1},i.prototype.lten=function(f){return this.cmpn(f)<=0},i.prototype.lte=function(f){return this.cmp(f)<=0},i.prototype.eqn=function(f){return this.cmpn(f)===0},i.prototype.eq=function(f){return this.cmp(f)===0},i.red=function(f){return new de(f)},i.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(f){return this.red=f,this},i.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},i.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},i.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},i.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},i.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},i.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},i.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},i.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var fe={k256:null,p224:null,p192:null,p25519:null};function ie(k,f){this.name=k,this.p=new i(f,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ie.prototype._tmp=function(){var f=new i(null);return f.words=new Array(Math.ceil(this.n/13)),f},ie.prototype.ireduce=function(f){var R=f,M;do this.split(R,this.tmp),R=this.imulK(R),R=R.iadd(this.tmp),M=R.bitLength();while(M>this.n);var $=M<this.n?-1:R.ucmp(this.p);return $===0?(R.words[0]=0,R.length=1):$>0?R.isub(this.p):R.strip!==void 0?R.strip():R._strip(),R},ie.prototype.split=function(f,R){f.iushrn(this.n,0,R)},ie.prototype.imulK=function(f){return f.imul(this.k)};function Ee(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(Ee,ie),Ee.prototype.split=function(f,R){for(var M=4194303,$=Math.min(f.length,9),Z=0;Z<$;Z++)R.words[Z]=f.words[Z];if(R.length=$,f.length<=9){f.words[0]=0,f.length=1;return}var te=f.words[9];for(R.words[R.length++]=te&M,Z=10;Z<f.length;Z++){var ce=f.words[Z]|0;f.words[Z-10]=(ce&M)<<4|te>>>22,te=ce}te>>>=22,f.words[Z-10]=te,te===0&&f.length>10?f.length-=10:f.length-=9},Ee.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var R=0,M=0;M<f.length;M++){var $=f.words[M]|0;R+=$*977,f.words[M]=R&67108863,R=$*64+(R/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function Re(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(Re,ie);function re(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(re,ie);function se(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(se,ie),se.prototype.imulK=function(f){for(var R=0,M=0;M<f.length;M++){var $=(f.words[M]|0)*19+R,Z=$&67108863;$>>>=26,f.words[M]=Z,R=$}return R!==0&&(f.words[f.length++]=R),f},i._prime=function(f){if(fe[f])return fe[f];var R;if(f==="k256")R=new Ee;else if(f==="p224")R=new Re;else if(f==="p192")R=new re;else if(f==="p25519")R=new se;else throw new Error("Unknown prime "+f);return fe[f]=R,R};function de(k){if(typeof k=="string"){var f=i._prime(k);this.m=f.p,this.prime=f}else r(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}de.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},de.prototype._verify2=function(f,R){r((f.negative|R.negative)===0,"red works only with positives"),r(f.red&&f.red===R.red,"red works only with red numbers")},de.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(A(f,f.umod(this.m)._forceRed(this)),f)},de.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},de.prototype.add=function(f,R){this._verify2(f,R);var M=f.add(R);return M.cmp(this.m)>=0&&M.isub(this.m),M._forceRed(this)},de.prototype.iadd=function(f,R){this._verify2(f,R);var M=f.iadd(R);return M.cmp(this.m)>=0&&M.isub(this.m),M},de.prototype.sub=function(f,R){this._verify2(f,R);var M=f.sub(R);return M.cmpn(0)<0&&M.iadd(this.m),M._forceRed(this)},de.prototype.isub=function(f,R){this._verify2(f,R);var M=f.isub(R);return M.cmpn(0)<0&&M.iadd(this.m),M},de.prototype.shl=function(f,R){return this._verify1(f),this.imod(f.ushln(R))},de.prototype.imul=function(f,R){return this._verify2(f,R),this.imod(f.imul(R))},de.prototype.mul=function(f,R){return this._verify2(f,R),this.imod(f.mul(R))},de.prototype.isqr=function(f){return this.imul(f,f.clone())},de.prototype.sqr=function(f){return this.mul(f,f)},de.prototype.sqrt=function(f){if(f.isZero())return f.clone();var R=this.m.andln(3);if(r(R%2===1),R===3){var M=this.m.add(new i(1)).iushrn(2);return this.pow(f,M)}for(var $=this.m.subn(1),Z=0;!$.isZero()&&$.andln(1)===0;)Z++,$.iushrn(1);r(!$.isZero());var te=new i(1).toRed(this),ce=te.redNeg(),K=this.m.subn(1).iushrn(1),g=this.m.bitLength();for(g=new i(2*g*g).toRed(this);this.pow(g,K).cmp(ce)!==0;)g.redIAdd(ce);for(var _=this.pow(g,$),H=this.pow(f,$.addn(1).iushrn(1)),q=this.pow(f,$),me=Z;q.cmp(te)!==0;){for(var ye=q,Ue=0;ye.cmp(te)!==0;Ue++)ye=ye.redSqr();r(Ue<me);var We=this.pow(_,new i(1).iushln(me-Ue-1));H=H.redMul(We),_=We.redSqr(),q=q.redMul(_),me=Ue}return H},de.prototype.invm=function(f){var R=f._invmp(this.m);return R.negative!==0?(R.negative=0,this.imod(R).redNeg()):this.imod(R)},de.prototype.pow=function(f,R){if(R.isZero())return new i(1).toRed(this);if(R.cmpn(1)===0)return f.clone();var M=4,$=new Array(1<<M);$[0]=new i(1).toRed(this),$[1]=f;for(var Z=2;Z<$.length;Z++)$[Z]=this.mul($[Z-1],f);var te=$[0],ce=0,K=0,g=R.bitLength()%26;for(g===0&&(g=26),Z=R.length-1;Z>=0;Z--){for(var _=R.words[Z],H=g-1;H>=0;H--){var q=_>>H&1;if(te!==$[0]&&(te=this.sqr(te)),q===0&&ce===0){K=0;continue}ce<<=1,ce|=q,K++,!(K!==M&&(Z!==0||H!==0))&&(te=this.mul(te,$[ce]),K=0,ce=0)}g=26}return te},de.prototype.convertTo=function(f){var R=f.umod(this.m);return R===f?R.clone():R},de.prototype.convertFrom=function(f){var R=f.clone();return R.red=null,R},i.mont=function(f){return new ge(f)};function ge(k){de.call(this,k),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}c(ge,de),ge.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},ge.prototype.convertFrom=function(f){var R=this.imod(f.mul(this.rinv));return R.red=null,R},ge.prototype.imul=function(f,R){if(f.isZero()||R.isZero())return f.words[0]=0,f.length=1,f;var M=f.imul(R),$=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Z=M.isub($).iushrn(this.shift),te=Z;return Z.cmp(this.m)>=0?te=Z.isub(this.m):Z.cmpn(0)<0&&(te=Z.iadd(this.m)),te._forceRed(this)},ge.prototype.mul=function(f,R){if(f.isZero()||R.isZero())return new i(0)._forceRed(this);var M=f.mul(R),$=M.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Z=M.isub($).iushrn(this.shift),te=Z;return Z.cmp(this.m)>=0?te=Z.isub(this.m):Z.cmpn(0)<0&&(te=Z.iadd(this.m)),te._forceRed(this)},ge.prototype.invm=function(f){var R=this.imod(f._invmp(this.m).mul(this.r2));return R._forceRed(this)}})(e,yh)})(Ci)),Ci.exports}var wh=Fu();const Vu=Us(wh);var Mi={exports:{}};var Gu;function Hu(){return Gu||(Gu=1,(function(e,t){var n=Vs(),r=n.Buffer;function c(d,v){for(var l in d)v[l]=d[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=i);function i(d,v,l){return r(d,v,l)}i.prototype=Object.create(r.prototype),c(r,i),i.from=function(d,v,l){if(typeof d=="number")throw new TypeError("Argument must not be a number");return r(d,v,l)},i.alloc=function(d,v,l){if(typeof d!="number")throw new TypeError("Argument must be a number");var y=r(d);return v!==void 0?typeof l=="string"?y.fill(v,l):y.fill(v):y.fill(0),y},i.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return r(d)},i.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(d)}})(Mi,Mi.exports)),Mi.exports}var na,$u;function _h(){if($u)return na;$u=1;var e=Hu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),c=0;c<r.length;c++)r[c]=255;for(var i=0;i<n.length;i++){var d=n.charAt(i),v=d.charCodeAt(0);if(r[v]!==255)throw new TypeError(d+" is ambiguous");r[v]=i}var l=n.length,y=n.charAt(0),A=Math.log(l)/Math.log(256),O=Math.log(256)/Math.log(l);function S(C){if((Array.isArray(C)||C instanceof Uint8Array)&&(C=e.from(C)),!e.isBuffer(C))throw new TypeError("Expected Buffer");if(C.length===0)return"";for(var F=0,j=0,Q=0,W=C.length;Q!==W&&C[Q]===0;)Q++,F++;for(var ae=(W-Q)*O+1>>>0,fe=new Uint8Array(ae);Q!==W;){for(var ie=C[Q],Ee=0,Re=ae-1;(ie!==0||Ee<j)&&Re!==-1;Re--,Ee++)ie+=256*fe[Re]>>>0,fe[Re]=ie%l>>>0,ie=ie/l>>>0;if(ie!==0)throw new Error("Non-zero carry");j=Ee,Q++}for(var re=ae-j;re!==ae&&fe[re]===0;)re++;for(var se=y.repeat(F);re<ae;++re)se+=n.charAt(fe[re]);return se}function I(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return e.alloc(0);for(var F=0,j=0,Q=0;C[F]===y;)j++,F++;for(var W=(C.length-F)*A+1>>>0,ae=new Uint8Array(W);F<C.length;){var fe=C.charCodeAt(F);if(fe>255)return;var ie=r[fe];if(ie===255)return;for(var Ee=0,Re=W-1;(ie!==0||Ee<Q)&&Re!==-1;Re--,Ee++)ie+=l*ae[Re]>>>0,ae[Re]=ie%256>>>0,ie=ie/256>>>0;if(ie!==0)throw new Error("Non-zero carry");Q=Ee,F++}for(var re=W-Q;re!==W&&ae[re]===0;)re++;var se=e.allocUnsafe(j+(W-re));se.fill(0,0,j);for(var de=j;re!==W;)se[de++]=ae[re++];return se}function B(C){var F=I(C);if(F)return F;throw new Error("Non-base"+l+" character")}return{encode:S,decodeUnsafe:I,decode:B}}return na=t,na}var ra,ju;function Eh(){if(ju)return ra;ju=1;var e=_h(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return ra=e(t),ra}var Rh=Eh();const En=Us(Rh),Ku=uu;var Ot={},oa,Wu;function bh(){if(Wu)return oa;Wu=1;var e=Hu().Buffer;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),c=0;c<r.length;c++)r[c]=255;for(var i=0;i<n.length;i++){var d=n.charAt(i),v=d.charCodeAt(0);if(r[v]!==255)throw new TypeError(d+" is ambiguous");r[v]=i}var l=n.length,y=n.charAt(0),A=Math.log(l)/Math.log(256),O=Math.log(256)/Math.log(l);function S(C){if((Array.isArray(C)||C instanceof Uint8Array)&&(C=e.from(C)),!e.isBuffer(C))throw new TypeError("Expected Buffer");if(C.length===0)return"";for(var F=0,j=0,Q=0,W=C.length;Q!==W&&C[Q]===0;)Q++,F++;for(var ae=(W-Q)*O+1>>>0,fe=new Uint8Array(ae);Q!==W;){for(var ie=C[Q],Ee=0,Re=ae-1;(ie!==0||Ee<j)&&Re!==-1;Re--,Ee++)ie+=256*fe[Re]>>>0,fe[Re]=ie%l>>>0,ie=ie/l>>>0;if(ie!==0)throw new Error("Non-zero carry");j=Ee,Q++}for(var re=ae-j;re!==ae&&fe[re]===0;)re++;for(var se=y.repeat(F);re<ae;++re)se+=n.charAt(fe[re]);return se}function I(C){if(typeof C!="string")throw new TypeError("Expected String");if(C.length===0)return e.alloc(0);for(var F=0,j=0,Q=0;C[F]===y;)j++,F++;for(var W=(C.length-F)*A+1>>>0,ae=new Uint8Array(W);F<C.length;){var fe=C.charCodeAt(F);if(fe>255)return;var ie=r[fe];if(ie===255)return;for(var Ee=0,Re=W-1;(ie!==0||Ee<Q)&&Re!==-1;Re--,Ee++)ie+=l*ae[Re]>>>0,ae[Re]=ie%256>>>0,ie=ie/256>>>0;if(ie!==0)throw new Error("Non-zero carry");Q=Ee,F++}for(var re=W-Q;re!==W&&ae[re]===0;)re++;var se=e.allocUnsafe(j+(W-re));se.fill(0,0,j);for(var de=j;re!==W;)se[de++]=ae[re++];return se}function B(C){var F=I(C);if(F)return F;throw new Error("Non-base"+l+" character")}return{encode:S,decodeUnsafe:I,decode:B}}return oa=t,oa}var ia,zu;function Ah(){if(zu)return ia;zu=1;var e=bh(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return ia=e(t),ia}function ar(e,t,n){return t<=e&&e<=n}function Bi(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function Sh(e){for(var t=String(e),n=t.length,r=0,c=[];r<n;){var i=t.charCodeAt(r);if(i<55296||i>57343)c.push(i);else if(56320<=i&&i<=57343)c.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)c.push(65533);else{var d=e.charCodeAt(r+1);if(56320<=d&&d<=57343){var v=i&1023,l=d&1023;c.push(65536+(v<<10)+l),r+=1}else c.push(65533)}r+=1}return c}function Ih(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode((r>>10)+55296,(r&1023)+56320))}return t}var ki=-1;function sa(e){this.tokens=[].slice.call(e)}sa.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():ki},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var no=-1;function aa(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Di="utf-8";function Ui(e,t){if(!(this instanceof Ui))return new Ui(e,t);if(e=e!==void 0?String(e).toLowerCase():Di,e!==Di)throw new Error("Encoding not supported. Only utf-8 is supported");t=Bi(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Ui.prototype={decode:function(t,n){var r;typeof t=="object"&&t instanceof ArrayBuffer?r=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):r=new Uint8Array(0),n=Bi(n),this._streaming||(this._decoder=new Oh({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!n.stream;for(var c=new sa(r),i=[],d;!c.endOfStream()&&(d=this._decoder.handler(c,c.read()),d!==no);)d!==null&&(Array.isArray(d)?i.push.apply(i,d):i.push(d));if(!this._streaming){do{if(d=this._decoder.handler(c,c.read()),d===no)break;d!==null&&(Array.isArray(d)?i.push.apply(i,d):i.push(d))}while(!c.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),Ih(i)}};function Pi(e,t){if(!(this instanceof Pi))return new Pi(e,t);if(e=e!==void 0?String(e).toLowerCase():Di,e!==Di)throw new Error("Encoding not supported. Only utf-8 is supported");t=Bi(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Pi.prototype={encode:function(t,n){t=t?String(t):"",n=Bi(n),this._streaming||(this._encoder=new Nh(this._options)),this._streaming=!!n.stream;for(var r=[],c=new sa(Sh(t)),i;!c.endOfStream()&&(i=this._encoder.handler(c,c.read()),i!==no);)Array.isArray(i)?r.push.apply(r,i):r.push(i);if(!this._streaming){for(;i=this._encoder.handler(c,c.read()),i!==no;)Array.isArray(i)?r.push.apply(r,i):r.push(i);this._encoder=null}return new Uint8Array(r)}};function Oh(e){var t=e.fatal,n=0,r=0,c=0,i=128,d=191;this.handler=function(v,l){if(l===ki&&c!==0)return c=0,aa(t);if(l===ki)return no;if(c===0){if(ar(l,0,127))return l;if(ar(l,194,223))c=1,n=l-192;else if(ar(l,224,239))l===224&&(i=160),l===237&&(d=159),c=2,n=l-224;else if(ar(l,240,244))l===240&&(i=144),l===244&&(d=143),c=3,n=l-240;else return aa(t);return n=n<<6*c,null}if(!ar(l,i,d))return n=c=r=0,i=128,d=191,v.prepend(l),aa(t);if(i=128,d=191,r+=1,n+=l-128<<6*(c-r),r!==c)return null;var y=n;return n=c=r=0,y}}function Nh(e){e.fatal,this.handler=function(t,n){if(n===ki)return no;if(ar(n,0,127))return n;var r,c;ar(n,128,2047)?(r=1,c=192):ar(n,2048,65535)?(r=2,c=224):ar(n,65536,1114111)&&(r=3,c=240);for(var i=[(n>>6*r)+c];r>0;){var d=n>>6*(r-1);i.push(128|d&63),r-=1}return i}}const Th=Ps(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Ui,TextEncoder:Pi},Symbol.toStringTag,{value:"Module"})));var Zu;function xh(){if(Zu)return Ot;Zu=1;var e=Ot&&Ot.__createBinding||(Object.create?(function(re,se,de,ge){ge===void 0&&(ge=de),Object.defineProperty(re,ge,{enumerable:!0,get:function(){return se[de]}})}):(function(re,se,de,ge){ge===void 0&&(ge=de),re[ge]=se[de]})),t=Ot&&Ot.__setModuleDefault||(Object.create?(function(re,se){Object.defineProperty(re,"default",{enumerable:!0,value:se})}):function(re,se){re.default=se}),n=Ot&&Ot.__decorate||function(re,se,de,ge){var k=arguments.length,f=k<3?se:ge===null?ge=Object.getOwnPropertyDescriptor(se,de):ge,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(re,se,de,ge);else for(var M=re.length-1;M>=0;M--)(R=re[M])&&(f=(k<3?R(f):k>3?R(se,de,f):R(se,de))||f);return k>3&&f&&Object.defineProperty(se,de,f),f},r=Ot&&Ot.__importStar||function(re){if(re&&re.__esModule)return re;var se={};if(re!=null)for(var de in re)de!=="default"&&Object.hasOwnProperty.call(re,de)&&e(se,re,de);return t(se,re),se},c=Ot&&Ot.__importDefault||function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.deserializeUnchecked=Ot.deserialize=Ot.serialize=Ot.BinaryReader=Ot.BinaryWriter=Ot.BorshError=Ot.baseDecode=Ot.baseEncode=void 0;const i=c(Fu()),d=c(Ah()),v=r(Th),l=typeof TextDecoder!="function"?v.TextDecoder:TextDecoder,y=new l("utf-8",{fatal:!0});function A(re){return typeof re=="string"&&(re=Buffer.from(re,"utf8")),d.default.encode(Buffer.from(re))}Ot.baseEncode=A;function O(re){return Buffer.from(d.default.decode(re))}Ot.baseDecode=O;const S=1024;class I extends Error{constructor(se){super(se),this.fieldPath=[],this.originalMessage=se}addToFieldPath(se){this.fieldPath.splice(0,0,se),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ot.BorshError=I;class B{constructor(){this.buf=Buffer.alloc(S),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(S)]))}writeU8(se){this.maybeResize(),this.buf.writeUInt8(se,this.length),this.length+=1}writeU16(se){this.maybeResize(),this.buf.writeUInt16LE(se,this.length),this.length+=2}writeU32(se){this.maybeResize(),this.buf.writeUInt32LE(se,this.length),this.length+=4}writeU64(se){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(se).toArray("le",8)))}writeU128(se){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(se).toArray("le",16)))}writeU256(se){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(se).toArray("le",32)))}writeU512(se){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(se).toArray("le",64)))}writeBuffer(se){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),se,Buffer.alloc(S)]),this.length+=se.length}writeString(se){this.maybeResize();const de=Buffer.from(se,"utf8");this.writeU32(de.length),this.writeBuffer(de)}writeFixedArray(se){this.writeBuffer(Buffer.from(se))}writeArray(se,de){this.maybeResize(),this.writeU32(se.length);for(const ge of se)this.maybeResize(),de(ge)}toArray(){return this.buf.subarray(0,this.length)}}Ot.BinaryWriter=B;function C(re,se,de){const ge=de.value;de.value=function(...k){try{return ge.apply(this,k)}catch(f){if(f instanceof RangeError){const R=f.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(R)>=0)throw new I("Reached the end of buffer when deserializing")}throw f}}}class F{constructor(se){this.buf=se,this.offset=0}readU8(){const se=this.buf.readUInt8(this.offset);return this.offset+=1,se}readU16(){const se=this.buf.readUInt16LE(this.offset);return this.offset+=2,se}readU32(){const se=this.buf.readUInt32LE(this.offset);return this.offset+=4,se}readU64(){const se=this.readBuffer(8);return new i.default(se,"le")}readU128(){const se=this.readBuffer(16);return new i.default(se,"le")}readU256(){const se=this.readBuffer(32);return new i.default(se,"le")}readU512(){const se=this.readBuffer(64);return new i.default(se,"le")}readBuffer(se){if(this.offset+se>this.buf.length)throw new I(`Expected buffer length ${se} isn't within bounds`);const de=this.buf.slice(this.offset,this.offset+se);return this.offset+=se,de}readString(){const se=this.readU32(),de=this.readBuffer(se);try{return y.decode(de)}catch(ge){throw new I(`Error decoding UTF-8 string: ${ge}`)}}readFixedArray(se){return new Uint8Array(this.readBuffer(se))}readArray(se){const de=this.readU32(),ge=Array();for(let k=0;k<de;++k)ge.push(se());return ge}}n([C],F.prototype,"readU8",null),n([C],F.prototype,"readU16",null),n([C],F.prototype,"readU32",null),n([C],F.prototype,"readU64",null),n([C],F.prototype,"readU128",null),n([C],F.prototype,"readU256",null),n([C],F.prototype,"readU512",null),n([C],F.prototype,"readString",null),n([C],F.prototype,"readFixedArray",null),n([C],F.prototype,"readArray",null),Ot.BinaryReader=F;function j(re){return re.charAt(0).toUpperCase()+re.slice(1)}function Q(re,se,de,ge,k){try{if(typeof ge=="string")k[`write${j(ge)}`](de);else if(ge instanceof Array)if(typeof ge[0]=="number"){if(de.length!==ge[0])throw new I(`Expecting byte array of length ${ge[0]}, but got ${de.length} bytes`);k.writeFixedArray(de)}else if(ge.length===2&&typeof ge[1]=="number"){if(de.length!==ge[1])throw new I(`Expecting byte array of length ${ge[1]}, but got ${de.length} bytes`);for(let f=0;f<ge[1];f++)Q(re,null,de[f],ge[0],k)}else k.writeArray(de,f=>{Q(re,se,f,ge[0],k)});else if(ge.kind!==void 0)switch(ge.kind){case"option":{de==null?k.writeU8(0):(k.writeU8(1),Q(re,se,de,ge.type,k));break}case"map":{k.writeU32(de.size),de.forEach((f,R)=>{Q(re,se,R,ge.key,k),Q(re,se,f,ge.value,k)});break}default:throw new I(`FieldType ${ge} unrecognized`)}else W(re,de,k)}catch(f){throw f instanceof I&&f.addToFieldPath(se),f}}function W(re,se,de){if(typeof se.borshSerialize=="function"){se.borshSerialize(de);return}const ge=re.get(se.constructor);if(!ge)throw new I(`Class ${se.constructor.name} is missing in schema`);if(ge.kind==="struct")ge.fields.map(([k,f])=>{Q(re,k,se[k],f,de)});else if(ge.kind==="enum"){const k=se[ge.field];for(let f=0;f<ge.values.length;++f){const[R,M]=ge.values[f];if(R===k){de.writeU8(f),Q(re,R,se[R],M,de);break}}}else throw new I(`Unexpected schema kind: ${ge.kind} for ${se.constructor.name}`)}function ae(re,se,de=B){const ge=new de;return W(re,se,ge),ge.toArray()}Ot.serialize=ae;function fe(re,se,de,ge){try{if(typeof de=="string")return ge[`read${j(de)}`]();if(de instanceof Array){if(typeof de[0]=="number")return ge.readFixedArray(de[0]);if(typeof de[1]=="number"){const k=[];for(let f=0;f<de[1];f++)k.push(fe(re,null,de[0],ge));return k}else return ge.readArray(()=>fe(re,se,de[0],ge))}if(de.kind==="option")return ge.readU8()?fe(re,se,de.type,ge):void 0;if(de.kind==="map"){let k=new Map;const f=ge.readU32();for(let R=0;R<f;R++){const M=fe(re,se,de.key,ge),$=fe(re,se,de.value,ge);k.set(M,$)}return k}return ie(re,de,ge)}catch(k){throw k instanceof I&&k.addToFieldPath(se),k}}function ie(re,se,de){if(typeof se.borshDeserialize=="function")return se.borshDeserialize(de);const ge=re.get(se);if(!ge)throw new I(`Class ${se.name} is missing in schema`);if(ge.kind==="struct"){const k={};for(const[f,R]of re.get(se).fields)k[f]=fe(re,f,R,de);return new se(k)}if(ge.kind==="enum"){const k=de.readU8();if(k>=ge.values.length)throw new I(`Enum index: ${k} is out of range`);const[f,R]=ge.values[k],M=fe(re,f,R,de);return new se({[f]:M})}throw new I(`Unexpected schema kind: ${ge.kind} for ${se.constructor.name}`)}function Ee(re,se,de,ge=F){const k=new ge(de),f=ie(re,se,k);if(k.offset<de.length)throw new I(`Unexpected ${de.length-k.offset} bytes after deserialized data`);return f}Ot.deserialize=Ee;function Re(re,se,de,ge=F){const k=new ge(de);return ie(re,se,k)}return Ot.deserializeUnchecked=Re,Ot}var ca=xh(),Oe={},Yu;function Lh(){if(Yu)return Oe;Yu=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.s16=Oe.s8=Oe.nu64be=Oe.u48be=Oe.u40be=Oe.u32be=Oe.u24be=Oe.u16be=Oe.nu64=Oe.u48=Oe.u40=Oe.u32=Oe.u24=Oe.u16=Oe.u8=Oe.offset=Oe.greedy=Oe.Constant=Oe.UTF8=Oe.CString=Oe.Blob=Oe.Boolean=Oe.BitField=Oe.BitStructure=Oe.VariantLayout=Oe.Union=Oe.UnionLayoutDiscriminator=Oe.UnionDiscriminator=Oe.Structure=Oe.Sequence=Oe.DoubleBE=Oe.Double=Oe.FloatBE=Oe.Float=Oe.NearInt64BE=Oe.NearInt64=Oe.NearUInt64BE=Oe.NearUInt64=Oe.IntBE=Oe.Int=Oe.UIntBE=Oe.UInt=Oe.OffsetLayout=Oe.GreedyCount=Oe.ExternalLayout=Oe.bindConstructorLayout=Oe.nameWithProperty=Oe.Layout=Oe.uint8ArrayToBuffer=Oe.checkUint8Array=void 0,Oe.constant=Oe.utf8=Oe.cstr=Oe.blob=Oe.unionLayoutDiscriminator=Oe.union=Oe.seq=Oe.bits=Oe.struct=Oe.f64be=Oe.f64=Oe.f32be=Oe.f32=Oe.ns64be=Oe.s48be=Oe.s40be=Oe.s32be=Oe.s24be=Oe.s16be=Oe.ns64=Oe.s48=Oe.s40=Oe.s32=Oe.s24=void 0;const e=Vs();function t(g){if(!(g instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Oe.checkUint8Array=t;function n(g){return t(g),e.Buffer.from(g.buffer,g.byteOffset,g.length)}Oe.uint8ArrayToBuffer=n;let r=class{constructor(_,H){if(!Number.isInteger(_))throw new TypeError("span must be an integer");this.span=_,this.property=H}makeDestinationObject(){return{}}getSpan(_,H){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(_){const H=Object.create(this.constructor.prototype);return Object.assign(H,this),H.property=_,H}fromArray(_){}};Oe.Layout=r;function c(g,_){return _.property?g+"["+_.property+"]":g}Oe.nameWithProperty=c;function i(g,_){if(typeof g!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(g,"layout_"))throw new Error("Class is already bound to a layout");if(!(_&&_ instanceof r))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(_,"boundConstructor_"))throw new Error("layout is already bound to a constructor");g.layout_=_,_.boundConstructor_=g,_.makeDestinationObject=(()=>new g),Object.defineProperty(g.prototype,"encode",{value(H,q){return _.encode(this,H,q)},writable:!0}),Object.defineProperty(g,"decode",{value(H,q){return _.decode(H,q)},writable:!0})}Oe.bindConstructorLayout=i;class d extends r{isCount(){throw new Error("ExternalLayout is abstract")}}Oe.ExternalLayout=d;class v extends d{constructor(_=1,H){if(!Number.isInteger(_)||0>=_)throw new TypeError("elementSpan must be a (positive) integer");super(-1,H),this.elementSpan=_}isCount(){return!0}decode(_,H=0){t(_);const q=_.length-H;return Math.floor(q/this.elementSpan)}encode(_,H,q){return 0}}Oe.GreedyCount=v;class l extends d{constructor(_,H=0,q){if(!(_ instanceof r))throw new TypeError("layout must be a Layout");if(!Number.isInteger(H))throw new TypeError("offset must be integer or undefined");super(_.span,q||_.property),this.layout=_,this.offset=H}isCount(){return this.layout instanceof y||this.layout instanceof A}decode(_,H=0){return this.layout.decode(_,H+this.offset)}encode(_,H,q=0){return this.layout.encode(_,H,q+this.offset)}}Oe.OffsetLayout=l;class y extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readUIntLE(H,this.span)}encode(_,H,q=0){return n(H).writeUIntLE(_,q,this.span),this.span}}Oe.UInt=y;class A extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readUIntBE(H,this.span)}encode(_,H,q=0){return n(H).writeUIntBE(_,q,this.span),this.span}}Oe.UIntBE=A;class O extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readIntLE(H,this.span)}encode(_,H,q=0){return n(H).writeIntLE(_,q,this.span),this.span}}Oe.Int=O;class S extends r{constructor(_,H){if(super(_,H),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(_,H=0){return n(_).readIntBE(H,this.span)}encode(_,H,q=0){return n(H).writeIntBE(_,q,this.span),this.span}}Oe.IntBE=S;const I=Math.pow(2,32);function B(g){const _=Math.floor(g/I),H=g-_*I;return{hi32:_,lo32:H}}function C(g,_){return g*I+_}class F extends r{constructor(_){super(8,_)}decode(_,H=0){const q=n(_),me=q.readUInt32LE(H),ye=q.readUInt32LE(H+4);return C(ye,me)}encode(_,H,q=0){const me=B(_),ye=n(H);return ye.writeUInt32LE(me.lo32,q),ye.writeUInt32LE(me.hi32,q+4),8}}Oe.NearUInt64=F;class j extends r{constructor(_){super(8,_)}decode(_,H=0){const q=n(_),me=q.readUInt32BE(H),ye=q.readUInt32BE(H+4);return C(me,ye)}encode(_,H,q=0){const me=B(_),ye=n(H);return ye.writeUInt32BE(me.hi32,q),ye.writeUInt32BE(me.lo32,q+4),8}}Oe.NearUInt64BE=j;class Q extends r{constructor(_){super(8,_)}decode(_,H=0){const q=n(_),me=q.readUInt32LE(H),ye=q.readInt32LE(H+4);return C(ye,me)}encode(_,H,q=0){const me=B(_),ye=n(H);return ye.writeUInt32LE(me.lo32,q),ye.writeInt32LE(me.hi32,q+4),8}}Oe.NearInt64=Q;class W extends r{constructor(_){super(8,_)}decode(_,H=0){const q=n(_),me=q.readInt32BE(H),ye=q.readUInt32BE(H+4);return C(me,ye)}encode(_,H,q=0){const me=B(_),ye=n(H);return ye.writeInt32BE(me.hi32,q),ye.writeUInt32BE(me.lo32,q+4),8}}Oe.NearInt64BE=W;class ae extends r{constructor(_){super(4,_)}decode(_,H=0){return n(_).readFloatLE(H)}encode(_,H,q=0){return n(H).writeFloatLE(_,q),4}}Oe.Float=ae;class fe extends r{constructor(_){super(4,_)}decode(_,H=0){return n(_).readFloatBE(H)}encode(_,H,q=0){return n(H).writeFloatBE(_,q),4}}Oe.FloatBE=fe;class ie extends r{constructor(_){super(8,_)}decode(_,H=0){return n(_).readDoubleLE(H)}encode(_,H,q=0){return n(H).writeDoubleLE(_,q),8}}Oe.Double=ie;class Ee extends r{constructor(_){super(8,_)}decode(_,H=0){return n(_).readDoubleBE(H)}encode(_,H,q=0){return n(H).writeDoubleBE(_,q),8}}Oe.DoubleBE=Ee;class Re extends r{constructor(_,H,q){if(!(_ instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(H instanceof d&&H.isCount()||Number.isInteger(H)&&0<=H))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let me=-1;!(H instanceof d)&&0<_.span&&(me=H*_.span),super(me,q),this.elementLayout=_,this.count=H}getSpan(_,H=0){if(0<=this.span)return this.span;let q=0,me=this.count;if(me instanceof d&&(me=me.decode(_,H)),0<this.elementLayout.span)q=me*this.elementLayout.span;else{let ye=0;for(;ye<me;)q+=this.elementLayout.getSpan(_,H+q),++ye}return q}decode(_,H=0){const q=[];let me=0,ye=this.count;for(ye instanceof d&&(ye=ye.decode(_,H));me<ye;)q.push(this.elementLayout.decode(_,H)),H+=this.elementLayout.getSpan(_,H),me+=1;return q}encode(_,H,q=0){const me=this.elementLayout,ye=_.reduce((Ue,We)=>Ue+me.encode(We,H,q+Ue),0);return this.count instanceof d&&this.count.encode(_.length,H,q),ye}}Oe.Sequence=Re;class re extends r{constructor(_,H,q){if(!(Array.isArray(_)&&_.reduce((ye,Ue)=>ye&&Ue instanceof r,!0)))throw new TypeError("fields must be array of Layout instances");typeof H=="boolean"&&q===void 0&&(q=H,H=void 0);for(const ye of _)if(0>ye.span&&ye.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let me=-1;try{me=_.reduce((ye,Ue)=>ye+Ue.getSpan(),0)}catch{}super(me,H),this.fields=_,this.decodePrefixes=!!q}getSpan(_,H=0){if(0<=this.span)return this.span;let q=0;try{q=this.fields.reduce((me,ye)=>{const Ue=ye.getSpan(_,H);return H+=Ue,me+Ue},0)}catch{throw new RangeError("indeterminate span")}return q}decode(_,H=0){t(_);const q=this.makeDestinationObject();for(const me of this.fields)if(me.property!==void 0&&(q[me.property]=me.decode(_,H)),H+=me.getSpan(_,H),this.decodePrefixes&&_.length===H)break;return q}encode(_,H,q=0){const me=q;let ye=0,Ue=0;for(const We of this.fields){let st=We.span;if(Ue=0<st?st:0,We.property!==void 0){const at=_[We.property];at!==void 0&&(Ue=We.encode(at,H,q),0>st&&(st=We.getSpan(H,q)))}ye=q,q+=st}return ye+Ue-me}fromArray(_){const H=this.makeDestinationObject();for(const q of this.fields)q.property!==void 0&&0<_.length&&(H[q.property]=_.shift());return H}layoutFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const H of this.fields)if(H.property===_)return H}offsetOf(_){if(typeof _!="string")throw new TypeError("property must be string");let H=0;for(const q of this.fields){if(q.property===_)return H;0>q.span?H=-1:0<=H&&(H+=q.span)}}}Oe.Structure=re;class se{constructor(_){this.property=_}decode(_,H){throw new Error("UnionDiscriminator is abstract")}encode(_,H,q){throw new Error("UnionDiscriminator is abstract")}}Oe.UnionDiscriminator=se;class de extends se{constructor(_,H){if(!(_ instanceof d&&_.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(H||_.property||"variant"),this.layout=_}decode(_,H){return this.layout.decode(_,H)}encode(_,H,q){return this.layout.encode(_,H,q)}}Oe.UnionLayoutDiscriminator=de;class ge extends r{constructor(_,H,q){let me;if(_ instanceof y||_ instanceof A)me=new de(new l(_));else if(_ instanceof d&&_.isCount())me=new de(_);else if(_ instanceof se)me=_;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(H===void 0&&(H=null),!(H===null||H instanceof r))throw new TypeError("defaultLayout must be null or a Layout");if(H!==null){if(0>H.span)throw new Error("defaultLayout must have constant span");H.property===void 0&&(H=H.replicate("content"))}let ye=-1;H&&(ye=H.span,0<=ye&&(_ instanceof y||_ instanceof A)&&(ye+=me.layout.span)),super(ye,q),this.discriminator=me,this.usesPrefixDiscriminator=_ instanceof y||_ instanceof A,this.defaultLayout=H,this.registry={};let Ue=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(We){return Ue(We)},this.configGetSourceVariant=function(We){Ue=We.bind(this)}}getSpan(_,H=0){if(0<=this.span)return this.span;const q=this.getVariant(_,H);if(!q)throw new Error("unable to determine span for unrecognized variant");return q.getSpan(_,H)}defaultGetSourceVariant(_){if(Object.prototype.hasOwnProperty.call(_,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(_,this.defaultLayout.property))return;const H=this.registry[_[this.discriminator.property]];if(H&&(!H.layout||H.property&&Object.prototype.hasOwnProperty.call(_,H.property)))return H}else for(const H in this.registry){const q=this.registry[H];if(q.property&&Object.prototype.hasOwnProperty.call(_,q.property))return q}throw new Error("unable to infer src variant")}decode(_,H=0){let q;const me=this.discriminator,ye=me.decode(_,H),Ue=this.registry[ye];if(Ue===void 0){const We=this.defaultLayout;let st=0;this.usesPrefixDiscriminator&&(st=me.layout.span),q=this.makeDestinationObject(),q[me.property]=ye,q[We.property]=We.decode(_,H+st)}else q=Ue.decode(_,H);return q}encode(_,H,q=0){const me=this.getSourceVariant(_);if(me===void 0){const ye=this.discriminator,Ue=this.defaultLayout;let We=0;return this.usesPrefixDiscriminator&&(We=ye.layout.span),ye.encode(_[ye.property],H,q),We+Ue.encode(_[Ue.property],H,q+We)}return me.encode(_,H,q)}addVariant(_,H,q){const me=new k(this,_,H,q);return this.registry[_]=me,me}getVariant(_,H=0){let q;return _ instanceof Uint8Array?q=this.discriminator.decode(_,H):q=_,this.registry[q]}}Oe.Union=ge;class k extends r{constructor(_,H,q,me){if(!(_ instanceof ge))throw new TypeError("union must be a Union");if(!Number.isInteger(H)||0>H)throw new TypeError("variant must be a (non-negative) integer");if(typeof q=="string"&&me===void 0&&(me=q,q=null),q){if(!(q instanceof r))throw new TypeError("layout must be a Layout");if(_.defaultLayout!==null&&0<=q.span&&q.span>_.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof me!="string")throw new TypeError("variant must have a String property")}let ye=_.span;0>_.span&&(ye=q?q.span:0,0<=ye&&_.usesPrefixDiscriminator&&(ye+=_.discriminator.layout.span)),super(ye,me),this.union=_,this.variant=H,this.layout=q||null}getSpan(_,H=0){if(0<=this.span)return this.span;let q=0;this.union.usesPrefixDiscriminator&&(q=this.union.discriminator.layout.span);let me=0;return this.layout&&(me=this.layout.getSpan(_,H+q)),q+me}decode(_,H=0){const q=this.makeDestinationObject();if(this!==this.union.getVariant(_,H))throw new Error("variant mismatch");let me=0;return this.union.usesPrefixDiscriminator&&(me=this.union.discriminator.layout.span),this.layout?q[this.property]=this.layout.decode(_,H+me):this.property?q[this.property]=!0:this.union.usesPrefixDiscriminator&&(q[this.union.discriminator.property]=this.variant),q}encode(_,H,q=0){let me=0;if(this.union.usesPrefixDiscriminator&&(me=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(_,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,H,q);let ye=me;if(this.layout&&(this.layout.encode(_[this.property],H,q+me),ye+=this.layout.getSpan(H,q+me),0<=this.union.span&&ye>this.union.span))throw new Error("encoded variant overruns containing union");return ye}fromArray(_){if(this.layout)return this.layout.fromArray(_)}}Oe.VariantLayout=k;function f(g){return 0>g&&(g+=4294967296),g}class R extends r{constructor(_,H,q){if(!(_ instanceof y||_ instanceof A))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof H=="string"&&q===void 0&&(q=H,H=!1),4<_.span)throw new RangeError("word cannot exceed 32 bits");super(_.span,q),this.word=_,this.msb=!!H,this.fields=[];let me=0;this._packedSetValue=function(ye){return me=f(ye),this},this._packedGetValue=function(){return me}}decode(_,H=0){const q=this.makeDestinationObject(),me=this.word.decode(_,H);this._packedSetValue(me);for(const ye of this.fields)ye.property!==void 0&&(q[ye.property]=ye.decode(_));return q}encode(_,H,q=0){const me=this.word.decode(H,q);this._packedSetValue(me);for(const ye of this.fields)if(ye.property!==void 0){const Ue=_[ye.property];Ue!==void 0&&ye.encode(Ue)}return this.word.encode(this._packedGetValue(),H,q)}addField(_,H){const q=new M(this,_,H);return this.fields.push(q),q}addBoolean(_){const H=new $(this,_);return this.fields.push(H),H}fieldFor(_){if(typeof _!="string")throw new TypeError("property must be string");for(const H of this.fields)if(H.property===_)return H}}Oe.BitStructure=R;class M{constructor(_,H,q){if(!(_ instanceof R))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(H)||0>=H)throw new TypeError("bits must be positive integer");const me=8*_.span,ye=_.fields.reduce((Ue,We)=>Ue+We.bits,0);if(H+ye>me)throw new Error("bits too long for span remainder ("+(me-ye)+" of "+me+" remain)");this.container=_,this.bits=H,this.valueMask=(1<<H)-1,H===32&&(this.valueMask=4294967295),this.start=ye,this.container.msb&&(this.start=me-ye-H),this.wordMask=f(this.valueMask<<this.start),this.property=q}decode(_,H){const q=this.container._packedGetValue();return f(q&this.wordMask)>>>this.start}encode(_){if(typeof _!="number"||!Number.isInteger(_)||_!==f(_&this.valueMask))throw new TypeError(c("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const H=this.container._packedGetValue(),q=f(_<<this.start);this.container._packedSetValue(f(H&~this.wordMask)|q)}}Oe.BitField=M;class $ extends M{constructor(_,H){super(_,1,H)}decode(_,H){return!!super.decode(_,H)}encode(_){typeof _=="boolean"&&(_=+_),super.encode(_)}}Oe.Boolean=$;class Z extends r{constructor(_,H){if(!(_ instanceof d&&_.isCount()||Number.isInteger(_)&&0<=_))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let q=-1;_ instanceof d||(q=_),super(q,H),this.length=_}getSpan(_,H){let q=this.span;return 0>q&&(q=this.length.decode(_,H)),q}decode(_,H=0){let q=this.span;return 0>q&&(q=this.length.decode(_,H)),n(_).slice(H,H+q)}encode(_,H,q){let me=this.length;if(this.length instanceof d&&(me=_.length),!(_ instanceof Uint8Array&&me===_.length))throw new TypeError(c("Blob.encode",this)+" requires (length "+me+") Uint8Array as src");if(q+me>H.length)throw new RangeError("encoding overruns Uint8Array");const ye=n(_);return n(H).write(ye.toString("hex"),q,me,"hex"),this.length instanceof d&&this.length.encode(me,H,q),me}}Oe.Blob=Z;class te extends r{constructor(_){super(-1,_)}getSpan(_,H=0){t(_);let q=H;for(;q<_.length&&_[q]!==0;)q+=1;return 1+q-H}decode(_,H=0){const q=this.getSpan(_,H);return n(_).slice(H,H+q-1).toString("utf-8")}encode(_,H,q=0){typeof _!="string"&&(_=String(_));const me=e.Buffer.from(_,"utf8"),ye=me.length;if(q+ye>H.length)throw new RangeError("encoding overruns Buffer");const Ue=n(H);return me.copy(Ue,q),Ue[q+ye]=0,ye+1}}Oe.CString=te;class ce extends r{constructor(_,H){if(typeof _=="string"&&H===void 0&&(H=_,_=void 0),_===void 0)_=-1;else if(!Number.isInteger(_))throw new TypeError("maxSpan must be an integer");super(-1,H),this.maxSpan=_}getSpan(_,H=0){return t(_),_.length-H}decode(_,H=0){const q=this.getSpan(_,H);if(0<=this.maxSpan&&this.maxSpan<q)throw new RangeError("text length exceeds maxSpan");return n(_).slice(H,H+q).toString("utf-8")}encode(_,H,q=0){typeof _!="string"&&(_=String(_));const me=e.Buffer.from(_,"utf8"),ye=me.length;if(0<=this.maxSpan&&this.maxSpan<ye)throw new RangeError("text length exceeds maxSpan");if(q+ye>H.length)throw new RangeError("encoding overruns Buffer");return me.copy(n(H),q),ye}}Oe.UTF8=ce;class K extends r{constructor(_,H){super(0,H),this.value=_}decode(_,H){return this.value}encode(_,H,q){return 0}}return Oe.Constant=K,Oe.greedy=((g,_)=>new v(g,_)),Oe.offset=((g,_,H)=>new l(g,_,H)),Oe.u8=(g=>new y(1,g)),Oe.u16=(g=>new y(2,g)),Oe.u24=(g=>new y(3,g)),Oe.u32=(g=>new y(4,g)),Oe.u40=(g=>new y(5,g)),Oe.u48=(g=>new y(6,g)),Oe.nu64=(g=>new F(g)),Oe.u16be=(g=>new A(2,g)),Oe.u24be=(g=>new A(3,g)),Oe.u32be=(g=>new A(4,g)),Oe.u40be=(g=>new A(5,g)),Oe.u48be=(g=>new A(6,g)),Oe.nu64be=(g=>new j(g)),Oe.s8=(g=>new O(1,g)),Oe.s16=(g=>new O(2,g)),Oe.s24=(g=>new O(3,g)),Oe.s32=(g=>new O(4,g)),Oe.s40=(g=>new O(5,g)),Oe.s48=(g=>new O(6,g)),Oe.ns64=(g=>new Q(g)),Oe.s16be=(g=>new S(2,g)),Oe.s24be=(g=>new S(3,g)),Oe.s32be=(g=>new S(4,g)),Oe.s40be=(g=>new S(5,g)),Oe.s48be=(g=>new S(6,g)),Oe.ns64be=(g=>new W(g)),Oe.f32=(g=>new ae(g)),Oe.f32be=(g=>new fe(g)),Oe.f64=(g=>new ie(g)),Oe.f64be=(g=>new Ee(g)),Oe.struct=((g,_,H)=>new re(g,_,H)),Oe.bits=((g,_,H)=>new R(g,_,H)),Oe.seq=((g,_,H)=>new Re(g,_,H)),Oe.union=((g,_,H)=>new ge(g,_,H)),Oe.unionLayoutDiscriminator=((g,_)=>new de(g,_)),Oe.blob=((g,_)=>new Z(g,_)),Oe.cstr=(g=>new te(g)),Oe.utf8=((g,_)=>new ce(g,_)),Oe.constant=((g,_)=>new K(g,_)),Oe}var le=Lh(),Ch=1,Mh=2,Bh=3,kh=4,Dh=5,Uh=6,Ph=7,Fh=8,Vh=9,Gh=10,Hh=-32700,$h=-32603,jh=-32602,Kh=-32601,Wh=-32600,zh=-32019,Zh=-32018,Yh=-32017,Xh=-32016,qh=-32015,Jh=-32014,Qh=-32013,e2=-32012,t2=-32011,n2=-32010,r2=-32009,o2=-32008,i2=-32007,s2=-32006,a2=-32005,c2=-32004,u2=-32003,f2=-32002,l2=-32001,d2=28e5,h2=2800001,p2=2800002,m2=2800003,g2=2800004,v2=2800005,y2=2800006,w2=2800007,_2=2800008,E2=2800009,R2=2800010,b2=2800011,A2=323e4,S2=32300001,I2=3230002,O2=3230003,N2=3230004,T2=361e4,x2=3610001,L2=3610002,C2=3610003,M2=3610004,B2=3610005,k2=3610006,D2=3610007,U2=3611e3,P2=3704e3,F2=3704001,V2=3704002,G2=3704003,H2=3704004,$2=4128e3,j2=4128001,K2=4128002,W2=4615e3,z2=4615001,Z2=4615002,Y2=4615003,X2=4615004,q2=4615005,J2=4615006,Q2=4615007,e3=4615008,t3=4615009,n3=4615010,r3=4615011,o3=4615012,i3=4615013,s3=4615014,a3=4615015,c3=4615016,u3=4615017,f3=4615018,l3=4615019,d3=4615020,h3=4615021,p3=4615022,m3=4615023,g3=4615024,v3=4615025,y3=4615026,w3=4615027,_3=4615028,E3=4615029,R3=4615030,b3=4615031,A3=4615032,S3=4615033,I3=4615034,O3=4615035,N3=4615036,T3=4615037,x3=4615038,L3=4615039,C3=4615040,M3=4615041,B3=4615042,k3=4615043,D3=4615044,U3=4615045,P3=4615046,F3=4615047,V3=4615048,G3=4615049,H3=4615050,$3=4615051,j3=4615052,K3=4615053,W3=4615054,z3=5508e3,Z3=5508001,Y3=5508002,X3=5508003,q3=5508004,J3=5508005,Q3=5508006,e5=5508007,t5=5508008,n5=5508009,r5=5508010,o5=5508011,i5=5607e3,s5=5607001,a5=5607002,c5=5607003,u5=5607004,f5=5607005,l5=5607006,d5=5607007,h5=5607008,p5=5607009,m5=5607010,g5=5607011,v5=5607012,y5=5607013,w5=5607014,_5=5607015,E5=5607016,R5=5607017,b5=5663e3,A5=5663001,S5=5663002,I5=5663003,O5=5663004,N5=5663005,T5=5663006,x5=5663007,L5=5663008,C5=5663009,M5=5663010,B5=5663011,k5=5663012,D5=5663013,U5=5663014,P5=5663015,F5=5663016,V5=5663017,G5=5663018,H5=5663019,$5=5663020,j5=5663021,K5=5663022,W5=705e4,z5=7050001,Z5=7050002,Y5=7050003,X5=7050004,q5=7050005,J5=7050006,Q5=7050007,e6=7050008,t6=7050009,n6=7050010,r6=7050011,o6=7050012,i6=7050013,s6=7050014,a6=7050015,c6=7050016,u6=7050017,f6=7050018,l6=7050019,d6=7050020,h6=7050021,p6=7050022,m6=7050023,g6=7050024,v6=7050025,y6=7050026,w6=7050027,_6=7050028,E6=7050029,R6=7050030,b6=7050031,A6=7050032,S6=7050033,I6=7050034,O6=7050035,N6=7050036,T6=7618e3,x6=7618001,L6=7618002,C6=7618003,M6=7618004,B6=7618005,k6=7618006,D6=7618007,U6=7618008,P6=7618009,Xu=8078e3,qu=8078001,F6=8078002,V6=8078003,Ju=8078004,Qu=8078005,e0=8078006,G6=8078007,H6=8078008,$6=8078009,j6=8078010,t0=8078011,K6=8078012,W6=8078013,z6=8078014,Z6=8078015,Y6=8078016,X6=8078017,q6=8078018,J6=8078019,Q6=8078020,ep=8078021,tp=8078022,np=8078023,rp=81e5,op=8100001,ip=8100002,sp=8100003,ap=819e4,cp=8190001,up=8190002,fp=8190003,lp=8190004,dp=99e5,hp=9900001,pp=9900002,mp=9900003,gp=9900004,vp=9900005,yp=9900006;function n0(e){return Array.isArray(e)?"%5B"+e.map(n0).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function wp([e,t]){return`${e}=${n0(t)}`}function _p(e){const t=Object.entries(e).map(wp).join("&");return btoa(t)}var Ep={[A2]:"Account not found at address: $address",[N2]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[O2]:"Expected decoded account at address: $address",[I2]:"Failed to decode account data at address: $address",[S2]:"Accounts not found at addresses: $addresses",[E2]:"Unable to find a viable program address bump seed.",[p2]:"$putativeAddress is not a base58-encoded address.",[d2]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[m2]:"The `CryptoKey` must be an `Ed25519` public key.",[b2]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[_2]:"Invalid seeds; point must fall off the Ed25519 curve.",[g2]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[y2]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[w2]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[v2]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[R2]:"Program address cannot end with PDA marker.",[h2]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[kh]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Ch]:"The network has progressed past the last block for which this transaction could have been committed.",[Xu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[tp]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Q6]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Qu]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[e0]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Ju]:"Encoder and decoder must either both be fixed-size or variable-size.",[H6]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[F6]:"Expected a fixed-size codec, got a variable-size one.",[W6]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[V6]:"Expected a variable-size codec, got a fixed-size one.",[J6]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[qu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[q6]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[$6]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[j6]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Z6]:"Invalid literal union variant. Expected one of [$variants], got $value.",[G6]:"Expected [$codecDescription] to have $expected items, got $actual.",[K6]:"Invalid value $value for base $base with alphabet $alphabet.",[Y6]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[t0]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[z6]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[ep]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[X6]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[np]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[U2]:"No random values implementation could be found.",[t3]:"instruction requires an uninitialized account",[m3]:"instruction tries to borrow reference for an account which is already borrowed",[g3]:"instruction left account with an outstanding borrowed reference",[h3]:"program other than the account's owner changed the size of the account data",[q2]:"account data too small for instruction",[p3]:"instruction expected an executable account",[P3]:"An account does not have enough lamports to be rent-exempt",[V3]:"Program arithmetic overflowed",[U3]:"Failed to serialize or deserialize account data: $encodedData",[W3]:"Builtin programs must consume compute units",[A3]:"Cross-program invocation call depth too deep",[x3]:"Computational budget exceeded",[y3]:"custom program error: #$code",[u3]:"instruction contains duplicate accounts",[v3]:"instruction modifications of multiply-passed account differ",[R3]:"executable accounts must be rent exempt",[_3]:"instruction changed executable accounts data",[E3]:"instruction changed the balance of an executable account",[f3]:"instruction changed executable bit of an account",[s3]:"instruction modified data of an account it does not own",[i3]:"instruction spent from the balance of an account it does not own",[z2]:"generic instruction error",[H3]:"Provided owner is not allowed",[k3]:"Account is immutable",[D3]:"Incorrect authority provided",[Q2]:"incorrect program id for instruction",[J2]:"insufficient funds for instruction",[X2]:"invalid account data for instruction",[F3]:"Invalid account owner",[Z2]:"invalid program argument",[w3]:"program returned invalid error code",[Y2]:"invalid instruction data",[T3]:"Failed to reallocate account data",[N3]:"Provided seeds do not result in a valid address",[$3]:"Accounts data allocations exceeded the maximum allowed per transaction",[j3]:"Max accounts exceeded",[K3]:"Max instruction trace length exceeded",[O3]:"Length of the seed is too long for address generation",[S3]:"An account required by the instruction is missing",[e3]:"missing required signature for instruction",[o3]:"instruction illegally modified the program id of an account",[d3]:"insufficient account keys for instruction",[L3]:"Cross-program invocation with unauthorized signer or writable account",[C3]:"Failed to create program execution environment",[B3]:"Program failed to compile",[M3]:"Program failed to complete",[c3]:"instruction modified data of a read-only account",[a3]:"instruction changed the balance of a read-only account",[I3]:"Cross-program invocation reentrancy not allowed for this instruction",[l3]:"instruction modified rent epoch of an account",[r3]:"sum of account balances before and after instruction do not match",[n3]:"instruction requires an initialized account",[W2]:"",[b3]:"Unsupported program id",[G3]:"Unsupported sysvar",[vp]:"Invalid instruction plan kind: $kind.",[L6]:"The provided instruction plan is empty.",[B6]:"No failed transaction plan result was found in the provided transaction plan result.",[M6]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[C6]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[T6]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[yp]:"Invalid transaction plan kind: $kind.",[x6]:"No more instructions to pack; the message packer has completed the instruction plan.",[k6]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[D6]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[U6]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[P6]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[$2]:"The instruction does not have any accounts.",[j2]:"The instruction does not have any data.",[K2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Dh]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Mh]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[pp]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[gp]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[hp]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[dp]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[mp]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[$h]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[jh]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[Wh]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Kh]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Hh]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[e2]:"$__serverMessage",[l2]:"$__serverMessage",[c2]:"$__serverMessage",[Jh]:"$__serverMessage",[Yh]:"Epoch rewards period still active at slot $slot",[n2]:"$__serverMessage",[r2]:"$__serverMessage",[zh]:"Failed to query long-term storage; please try again",[Xh]:"Minimum context slot has not been reached",[a2]:"Node is unhealthy; behind by $numSlotsBehind slots",[o2]:"No snapshot",[f2]:"Transaction simulation failed",[Zh]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[i2]:"$__serverMessage",[t2]:"Transaction history is not available from this node",[s2]:"$__serverMessage",[Qh]:"Transaction signature length mismatch",[u2]:"Transaction signature verification failure",[qh]:"$__serverMessage",[P2]:"Key pair bytes must be of length 64, got $byteLength.",[F2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[V2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[H2]:"The provided private key does not match the provided public key.",[G2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Uh]:"Lamports value must be in the range [0, 2e64-1]",[Ph]:"`$value` cannot be parsed as a `BigInt`",[Gh]:"$message",[Fh]:"`$value` cannot be parsed as a `Number`",[Bh]:"No nonce account could be found at address `$nonceAccountAddress`",[c5]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[y5]:"Attempted to sign an offchain message with an address that is not a signer for it",[a5]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[v5]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[i5]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[d5]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[h5]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[p5]:"Offchain message content must be non-empty",[f5]:"Offchain message must specify the address of at least one required signer",[m5]:"Offchain message envelope must reserve space for at least one signature",[u5]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[_5]:"The signatories of this offchain message must be listed in lexicographical order",[E5]:"An address must be listed no more than once among the signatories of an offchain message",[g5]:"Offchain message is missing signatures for addresses: $addresses.",[R5]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[s5]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[w5]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[l5]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[ap]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[up]:"WebSocket was closed before payload could be added to the send buffer",[fp]:"WebSocket connection closed",[lp]:"WebSocket failed to connect",[cp]:"Failed to obtain a subscription id from the server",[sp]:"Could not find an API plan for RPC method: `$method`",[rp]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[ip]:"HTTP error ($statusCode): $message",[op]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[z3]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Z3]:"The provided value does not implement the `KeyPairSigner` interface",[X3]:"The provided value does not implement the `MessageModifyingSigner` interface",[q3]:"The provided value does not implement the `MessagePartialSigner` interface",[Y3]:"The provided value does not implement any of the `MessageSigner` interfaces",[Q3]:"The provided value does not implement the `TransactionModifyingSigner` interface",[e5]:"The provided value does not implement the `TransactionPartialSigner` interface",[t5]:"The provided value does not implement the `TransactionSendingSigner` interface",[J3]:"The provided value does not implement any of the `TransactionSigner` interfaces",[n5]:"More than one `TransactionSendingSigner` was identified.",[r5]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[o5]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[D2]:"Cannot export a non-extractable key.",[x2]:"No digest implementation could be found.",[T2]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[L2]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
2
2
|
|
|
3
3
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
4
4
|
|
|
5
|
-
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[T2]:"No signature verification implementation could be found.",[x2]:"No key generation implementation could be found.",[L2]:"No signing implementation could be found.",[C2]:"No key export implementation could be found.",[Uh]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[i6]:"Transaction processing left an account with an outstanding borrowed reference",[j5]:"Account in use",[K5]:"Account loaded twice",[W5]:"Attempt to debit an account but found no record of a prior credit.",[d6]:"Transaction loads an address table account that doesn't exist",[X5]:"This transaction has already been processed",[q5]:"Blockhash not found",[J5]:"Loader call chain is too deep",[o6]:"Transactions are currently disabled due to cluster maintenance",[w6]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Z5]:"Insufficient funds for fee",[_6]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Y5]:"This account may not be used to pay transaction fees",[e6]:"Transaction contains an invalid account reference",[p6]:"Transaction loads an address table account with invalid data",[m6]:"Transaction address table lookup uses an invalid index",[h6]:"Transaction loads an address table account with an invalid owner",[R6]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[n6]:"This program may not be used for executing instructions",[g6]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[c6]:"Transaction loads a writable account that cannot be written",[E6]:"Transaction exceeded max loaded accounts data size cap",[Q5]:"Transaction requires a fee but has no signature present",[z5]:"Attempt to load a program that does not exist",[A6]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[b6]:"ResanitizationNeeded",[r6]:"Transaction failed to sanitize accounts offsets correctly",[t6]:"Transaction did not pass signature verification",[l6]:"Transaction locked too many accounts",[S6]:"Sum of account balances before and after transaction do not match",[$5]:"The transaction failed with the error `$errorName`",[a6]:"Transaction version is unsupported",[f6]:"Transaction would exceed account data limit within the block",[y6]:"Transaction would exceed total account data limit",[u6]:"Transaction would exceed max account limit within the block",[s6]:"Transaction would exceed max Block Cost Limit",[v6]:"Transaction would exceed max Vote Cost Limit",[k5]:"Attempted to sign a transaction with an address that is not a signer for it",[x5]:"Transaction is missing an address at index: $index.",[D5]:"Transaction has no expected signers therefore it cannot be encoded",[V5]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[R5]:"Transaction does not have a blockhash lifetime",[b5]:"Transaction is not a durable nonce transaction",[S5]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[I5]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[N5]:"No fee payer set in CompiledTransaction",[O5]:"Could not find program address at index $index",[P5]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[F5]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[L5]:"Transaction is missing a fee payer.",[C5]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[B5]:"Transaction first instruction is not advance nonce account instruction.",[M5]:"Transaction with no instructions cannot be durable nonce transaction.",[_5]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[E5]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[U5]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[T5]:"Transaction is missing signatures for addresses: $addresses.",[A5]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[G5]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[H5]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},cr="i",Jn="t";function wp(e,t={}){const n=yp[e];if(n.length===0)return"";let r;function c(d){if(r[Jn]===2){const v=n.slice(r[cr]+1,d);i.push(v in t?`${t[v]}`:`$${v}`)}else r[Jn]===1&&i.push(n.slice(r[cr],d))}const i=[];return n.split("").forEach((d,v)=>{if(v===0){r={[cr]:0,[Jn]:n[0]==="\\"?0:n[0]==="$"?2:1};return}let l;switch(r[Jn]){case 0:l={[cr]:v,[Jn]:1};break;case 1:d==="\\"?l={[cr]:v,[Jn]:0}:d==="$"&&(l={[cr]:v,[Jn]:2});break;case 2:d==="\\"?l={[cr]:v,[Jn]:0}:d==="$"?l={[cr]:v,[Jn]:2}:d.match(/\w/)||(l={[cr]:v,[Jn]:1});break}l&&(r!==l&&c(v),r=l)}),c(),i.join("")}function _p(e,t={}){if(process.env.NODE_ENV!=="production")return wp(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${vp(t)}'`),`${n}\``}}var ro=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,r;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([i,d])=>{i==="cause"?r={cause:d.value}:(n===void 0&&(n={__code:e}),Object.defineProperty(n,i,d))});const c=_p(e,n);super(c,r),this.context=Object.freeze(n===void 0?{__code:e}:n),this.name="SolanaError"}};function Ep(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function Rp(e){return Object.freeze({...e,encode:t=>{const n=new Uint8Array(Ep(t,e));return e.write(t,n,0),n}})}function bp(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function oo(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function Ap(e,t){if(oo(e)!==oo(t))throw new ro(qu);if(oo(e)&&oo(t)&&e.fixedSize!==t.fixedSize)throw new ro(Ju,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!oo(e)&&!oo(t)&&e.maxSize!==t.maxSize)throw new ro(Qu,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function Sp(e,t,n=0){if(t.length-n<=0)throw new ro(Yu,{codecDescription:e})}function Ip(e,t,n,r=0){const c=n.length-r;if(c<t)throw new ro(Xu,{bytesLength:c,codecDescription:e,expected:t})}function Op(e,t,n){const r=e.byteOffset+(t??0),c=n??e.byteLength;let i;return typeof SharedArrayBuffer>"u"?i=e.buffer:e.buffer instanceof SharedArrayBuffer?(i=new ArrayBuffer(e.length),new Uint8Array(i).set(new Uint8Array(e))):i=e.buffer,(r===0||r===-e.byteLength)&&c===e.byteLength?i:i.slice(r,r+c)}function Np(e,t,n,r){if(r<t||r>n)throw new ro(e0,{codecDescription:e,max:n,min:t,value:r})}function n0(e){return e?.endian!==1}function Tp(e){return Rp({fixedSize:e.size,write(t,n,r){e.range&&Np(e.name,e.range[0],e.range[1],t);const c=new ArrayBuffer(e.size);return e.set(new DataView(c),t,n0(e.config)),n.set(new Uint8Array(c),r),r+e.size}})}function xp(e){return bp({fixedSize:e.size,read(t,n=0){Sp(e.name,t,n),Ip(e.name,e.size,t,n);const r=new DataView(Op(t,n,e.size));return[e.get(r,n0(e.config)),n+e.size]}})}var Lp=(e={})=>Tp({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),Cp=(e={})=>xp({config:e,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8}),Mp=(e={})=>Ap(Lp(e),Cp(e));class Bp extends TypeError{constructor(t,n){let r;const{message:c,explanation:i,...d}=t,{path:v}=t,l=v.length===0?c:`At path: ${v.join(".")} -- ${c}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}}function kp(e){return Do(e)&&typeof e[Symbol.iterator]=="function"}function Do(e){return typeof e=="object"&&e!=null}function Fi(e){return Do(e)&&!Array.isArray(e)}function zn(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function Dp(e){const{done:t,value:n}=e.next();return t?void 0:n}function Up(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:c,branch:i}=t,{type:d}=n,{refinement:v,message:l=`Expected a value of type \`${d}\`${v?` with refinement \`${v}\``:""}, but received: \`${zn(r)}\``}=e;return{value:r,type:d,refinement:v,key:c[c.length-1],path:c,branch:i,...e,message:l}}function*r0(e,t,n,r){kp(e)||(e=[e]);for(const c of e){const i=Up(c,t,n,r);i&&(yield i)}}function*ua(e,t,n={}){const{path:r=[],branch:c=[e],coerce:i=!1,mask:d=!1}=n,v={path:r,branch:c,mask:d};i&&(e=t.coercer(e,v));let l="valid";for(const y of t.validator(e,v))y.explanation=n.message,l="not_valid",yield[y,void 0];for(let[y,A,O]of t.entries(e,v)){const S=ua(A,O,{path:y===void 0?r:[...r,y],branch:y===void 0?c:[...c,A],coerce:i,mask:d,message:n.message});for(const I of S)I[0]?(l=I[0].refinement!=null?"not_refined":"not_valid",yield[I[0],void 0]):i&&(A=I[1],y===void 0?e=A:e instanceof Map?e.set(y,A):e instanceof Set?e.add(A):Do(e)&&(A!==void 0||y in e)&&(e[y]=A))}if(l!=="not_valid")for(const y of t.refiner(e,v))y.explanation=n.message,l="not_refined",yield[y,void 0];l==="valid"&&(yield[void 0,e])}let Qn=class{constructor(t){const{type:n,schema:r,validator:c,refiner:i,coercer:d=l=>l,entries:v=function*(){}}=t;this.type=n,this.schema=r,this.entries=v,this.coercer=d,c?this.validator=(l,y)=>{const A=c(l,y);return r0(A,y,this,l)}:this.validator=()=>[],i?this.refiner=(l,y)=>{const A=i(l,y);return r0(A,y,this,l)}:this.refiner=()=>[]}assert(t,n){return Pp(t,this,n)}create(t,n){return Uo(t,this,n)}is(t){return o0(t,this)}mask(t,n){return Fp(t,this,n)}validate(t,n={}){return Po(t,this,n)}};function Pp(e,t,n){const r=Po(e,t,{message:n});if(r[0])throw r[0]}function Uo(e,t,n){const r=Po(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Fp(e,t,n){const r=Po(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function o0(e,t){return!Po(e,t)[0]}function Po(e,t,n={}){const r=ua(e,t,n),c=Dp(r);return c[0]?[new Bp(c[0],function*(){for(const d of r)d[0]&&(yield d[0])}),void 0]:[void 0,c[1]]}function Ur(e,t){return new Qn({type:e,schema:null,validator:t})}function Vp(){return Ur("any",()=>!0)}function Je(e){return new Qn({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${zn(t)}`}})}function er(){return Ur("boolean",e=>typeof e=="boolean")}function fa(e){return Ur("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${zn(t)}`)}function Ut(e){const t=zn(e),n=typeof e;return new Qn({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${t}\`, but received: ${zn(r)}`}})}function Gp(){return Ur("never",()=>!1)}function Xe(e){return new Qn({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function Ie(){return Ur("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${zn(e)}`)}function nt(e){return new Qn({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function i0(e,t){return new Qn({type:"record",schema:null,*entries(n){if(Do(n))for(const r in n){const c=n[r];yield[r,r,e],yield[r,c,t]}},validator(n){return Fi(n)||`Expected an object, but received: ${zn(n)}`},coercer(n){return Fi(n)?{...n}:n}})}function Ze(){return Ur("string",e=>typeof e=="string"||`Expected a string, but received: ${zn(e)}`)}function la(e){const t=Gp();return new Qn({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let c=0;c<r;c++)yield[c,n[c],e[c]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${zn(n)}`},coercer(n){return Array.isArray(n)?n.slice():n}})}function Ge(e){const t=Object.keys(e);return new Qn({type:"type",schema:e,*entries(n){if(Do(n))for(const r of t)yield[r,n[r],e[r]]},validator(n){return Fi(n)||`Expected an object, but received: ${zn(n)}`},coercer(n){return Fi(n)?{...n}:n}})}function Nn(e){const t=e.map(n=>n.type).join(" | ");return new Qn({type:"union",schema:null,coercer(n,r){for(const c of e){const[i,d]=c.validate(n,{coerce:!0,mask:r.mask});if(!i)return d}return n},validator(n,r){const c=[];for(const i of e){const[...d]=ua(n,i,r),[v]=d;if(v[0])for(const[l]of d)l&&c.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${zn(n)}`,...c]}})}function io(){return Ur("unknown",()=>!0)}function Fo(e,t,n){return new Qn({...e,coercer:(r,c)=>o0(r,t)?e.coercer(n(r,c),c):e.coercer(r,c)})}var Vi,Hp=new Uint8Array(16);function s0(){if(!Vi&&(Vi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Vi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vi(Hp)}const $p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gi(e){return typeof e=="string"&&$p.test(e)}for(var vn=[],da=0;da<256;++da)vn.push((da+256).toString(16).substr(1));function Hi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(vn[e[t+0]]+vn[e[t+1]]+vn[e[t+2]]+vn[e[t+3]]+"-"+vn[e[t+4]]+vn[e[t+5]]+"-"+vn[e[t+6]]+vn[e[t+7]]+"-"+vn[e[t+8]]+vn[e[t+9]]+"-"+vn[e[t+10]]+vn[e[t+11]]+vn[e[t+12]]+vn[e[t+13]]+vn[e[t+14]]+vn[e[t+15]]).toLowerCase();if(!Gi(n))throw TypeError("Stringified UUID is invalid");return n}var a0,ha,pa=0,ma=0;function jp(e,t,n){var r=t&&n||0,c=t||new Array(16);e=e||{};var i=e.node||a0,d=e.clockseq!==void 0?e.clockseq:ha;if(i==null||d==null){var v=e.random||(e.rng||s0)();i==null&&(i=a0=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),d==null&&(d=ha=(v[6]<<8|v[7])&16383)}var l=e.msecs!==void 0?e.msecs:Date.now(),y=e.nsecs!==void 0?e.nsecs:ma+1,A=l-pa+(y-ma)/1e4;if(A<0&&e.clockseq===void 0&&(d=d+1&16383),(A<0||l>pa)&&e.nsecs===void 0&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");pa=l,ma=y,ha=d,l+=122192928e5;var O=((l&268435455)*1e4+y)%4294967296;c[r++]=O>>>24&255,c[r++]=O>>>16&255,c[r++]=O>>>8&255,c[r++]=O&255;var S=l/4294967296*1e4&268435455;c[r++]=S>>>8&255,c[r++]=S&255,c[r++]=S>>>24&15|16,c[r++]=S>>>16&255,c[r++]=d>>>8|128,c[r++]=d&255;for(var I=0;I<6;++I)c[r+I]=i[I];return t||Hi(c)}function c0(e){if(!Gi(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function Kp(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Wp="6ba7b810-9dad-11d1-80b4-00c04fd430c8",zp="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function u0(e,t,n){function r(c,i,d,v){if(typeof c=="string"&&(c=Kp(c)),typeof i=="string"&&(i=c0(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+c.length);if(l.set(i),l.set(c,i.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,d){v=v||0;for(var y=0;y<16;++y)d[v+y]=l[y];return d}return Hi(l)}try{r.name=e}catch{}return r.DNS=Wp,r.URL=zp,r}function Zp(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return Yp(Xp(qp(e),e.length*8))}function Yp(e){for(var t=[],n=e.length*32,r="0123456789abcdef",c=0;c<n;c+=8){var i=e[c>>5]>>>c%32&255,d=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(d)}return t}function f0(e){return(e+64>>>9<<4)+14+1}function Xp(e,t){e[t>>5]|=128<<t%32,e[f0(t)-1]=t;for(var n=1732584193,r=-271733879,c=-1732584194,i=271733878,d=0;d<e.length;d+=16){var v=n,l=r,y=c,A=i;n=Rn(n,r,c,i,e[d],7,-680876936),i=Rn(i,n,r,c,e[d+1],12,-389564586),c=Rn(c,i,n,r,e[d+2],17,606105819),r=Rn(r,c,i,n,e[d+3],22,-1044525330),n=Rn(n,r,c,i,e[d+4],7,-176418897),i=Rn(i,n,r,c,e[d+5],12,1200080426),c=Rn(c,i,n,r,e[d+6],17,-1473231341),r=Rn(r,c,i,n,e[d+7],22,-45705983),n=Rn(n,r,c,i,e[d+8],7,1770035416),i=Rn(i,n,r,c,e[d+9],12,-1958414417),c=Rn(c,i,n,r,e[d+10],17,-42063),r=Rn(r,c,i,n,e[d+11],22,-1990404162),n=Rn(n,r,c,i,e[d+12],7,1804603682),i=Rn(i,n,r,c,e[d+13],12,-40341101),c=Rn(c,i,n,r,e[d+14],17,-1502002290),r=Rn(r,c,i,n,e[d+15],22,1236535329),n=bn(n,r,c,i,e[d+1],5,-165796510),i=bn(i,n,r,c,e[d+6],9,-1069501632),c=bn(c,i,n,r,e[d+11],14,643717713),r=bn(r,c,i,n,e[d],20,-373897302),n=bn(n,r,c,i,e[d+5],5,-701558691),i=bn(i,n,r,c,e[d+10],9,38016083),c=bn(c,i,n,r,e[d+15],14,-660478335),r=bn(r,c,i,n,e[d+4],20,-405537848),n=bn(n,r,c,i,e[d+9],5,568446438),i=bn(i,n,r,c,e[d+14],9,-1019803690),c=bn(c,i,n,r,e[d+3],14,-187363961),r=bn(r,c,i,n,e[d+8],20,1163531501),n=bn(n,r,c,i,e[d+13],5,-1444681467),i=bn(i,n,r,c,e[d+2],9,-51403784),c=bn(c,i,n,r,e[d+7],14,1735328473),r=bn(r,c,i,n,e[d+12],20,-1926607734),n=An(n,r,c,i,e[d+5],4,-378558),i=An(i,n,r,c,e[d+8],11,-2022574463),c=An(c,i,n,r,e[d+11],16,1839030562),r=An(r,c,i,n,e[d+14],23,-35309556),n=An(n,r,c,i,e[d+1],4,-1530992060),i=An(i,n,r,c,e[d+4],11,1272893353),c=An(c,i,n,r,e[d+7],16,-155497632),r=An(r,c,i,n,e[d+10],23,-1094730640),n=An(n,r,c,i,e[d+13],4,681279174),i=An(i,n,r,c,e[d],11,-358537222),c=An(c,i,n,r,e[d+3],16,-722521979),r=An(r,c,i,n,e[d+6],23,76029189),n=An(n,r,c,i,e[d+9],4,-640364487),i=An(i,n,r,c,e[d+12],11,-421815835),c=An(c,i,n,r,e[d+15],16,530742520),r=An(r,c,i,n,e[d+2],23,-995338651),n=Sn(n,r,c,i,e[d],6,-198630844),i=Sn(i,n,r,c,e[d+7],10,1126891415),c=Sn(c,i,n,r,e[d+14],15,-1416354905),r=Sn(r,c,i,n,e[d+5],21,-57434055),n=Sn(n,r,c,i,e[d+12],6,1700485571),i=Sn(i,n,r,c,e[d+3],10,-1894986606),c=Sn(c,i,n,r,e[d+10],15,-1051523),r=Sn(r,c,i,n,e[d+1],21,-2054922799),n=Sn(n,r,c,i,e[d+8],6,1873313359),i=Sn(i,n,r,c,e[d+15],10,-30611744),c=Sn(c,i,n,r,e[d+6],15,-1560198380),r=Sn(r,c,i,n,e[d+13],21,1309151649),n=Sn(n,r,c,i,e[d+4],6,-145523070),i=Sn(i,n,r,c,e[d+11],10,-1120210379),c=Sn(c,i,n,r,e[d+2],15,718787259),r=Sn(r,c,i,n,e[d+9],21,-343485551),n=Er(n,v),r=Er(r,l),c=Er(c,y),i=Er(i,A)}return[n,r,c,i]}function qp(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(f0(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Er(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Jp(e,t){return e<<t|e>>>32-t}function $i(e,t,n,r,c,i){return Er(Jp(Er(Er(t,e),Er(r,i)),c),n)}function Rn(e,t,n,r,c,i,d){return $i(t&n|~t&r,e,t,c,i,d)}function bn(e,t,n,r,c,i,d){return $i(t&r|n&~r,e,t,c,i,d)}function An(e,t,n,r,c,i,d){return $i(t^n^r,e,t,c,i,d)}function Sn(e,t,n,r,c,i,d){return $i(n^(t|~r),e,t,c,i,d)}var Qp=u0("v3",48,Zp);function e4(e,t,n){e=e||{};var r=e.random||(e.rng||s0)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var c=0;c<16;++c)t[n+c]=r[c];return t}return Hi(r)}function t4(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function ga(e,t){return e<<t|e>>>32-t}function n4(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var c=0;c<r.length;++c)e.push(r.charCodeAt(c))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,d=Math.ceil(i/16),v=new Array(d),l=0;l<d;++l){for(var y=new Uint32Array(16),A=0;A<16;++A)y[A]=e[l*64+A*4]<<24|e[l*64+A*4+1]<<16|e[l*64+A*4+2]<<8|e[l*64+A*4+3];v[l]=y}v[d-1][14]=(e.length-1)*8/Math.pow(2,32),v[d-1][14]=Math.floor(v[d-1][14]),v[d-1][15]=(e.length-1)*8&4294967295;for(var O=0;O<d;++O){for(var S=new Uint32Array(80),I=0;I<16;++I)S[I]=v[O][I];for(var B=16;B<80;++B)S[B]=ga(S[B-3]^S[B-8]^S[B-14]^S[B-16],1);for(var C=n[0],F=n[1],j=n[2],Q=n[3],W=n[4],se=0;se<80;++se){var ue=Math.floor(se/20),oe=ga(C,5)+t4(ue,F,j,Q)+W+t[ue]+S[se]>>>0;W=Q,Q=j,j=ga(F,30)>>>0,F=C,C=oe}n[0]=n[0]+C>>>0,n[1]=n[1]+F>>>0,n[2]=n[2]+j>>>0,n[3]=n[3]+Q>>>0,n[4]=n[4]+W>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var r4=u0("v5",80,n4);const o4="00000000-0000-0000-0000-000000000000";function i4(e){if(!Gi(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const l0=Ps(Object.freeze(Object.defineProperty({__proto__:null,NIL:o4,parse:c0,stringify:Hi,v1:jp,v3:Qp,v4:e4,v5:r4,validate:Gi,version:i4},Symbol.toStringTag,{value:"Module"})));var va,d0;function s4(){if(d0)return va;d0=1;const e=l0.v4;return va=function(n,r,c,i){if(typeof n!="string")throw new TypeError(n+" must be a string");i=i||{};const d=typeof i.version=="number"?i.version:2;if(d!==1&&d!==2)throw new TypeError(d+" must be 1 or 2");const v={method:n};if(d===2&&(v.jsonrpc="2.0"),r){if(typeof r!="object"&&!Array.isArray(r))throw new TypeError(r+" must be an object, array or omitted");v.params=r}if(typeof c>"u"){const l=typeof i.generator=="function"?i.generator:function(){return e()};v.id=l(v,i)}else d===2&&c===null?i.notificationIdNull&&(v.id=null):v.id=c;return v},va}var ya,h0;function a4(){if(h0)return ya;h0=1;const e=l0.v4,t=s4(),n=function(r,c){if(!(this instanceof n))return new n(r,c);c||(c={}),this.options={reviver:typeof c.reviver<"u"?c.reviver:null,replacer:typeof c.replacer<"u"?c.replacer:null,generator:typeof c.generator<"u"?c.generator:function(){return e()},version:typeof c.version<"u"?c.version:2,notificationIdNull:typeof c.notificationIdNull=="boolean"?c.notificationIdNull:!1},this.callServer=r};return ya=n,n.prototype.request=function(r,c,i,d){const v=this;let l=null;const y=Array.isArray(r)&&typeof c=="function";if(this.options.version===1&&y)throw new TypeError("JSON-RPC 1.0 does not support batching");if(y||!y&&r&&typeof r=="object"&&typeof c=="function")d=c,l=r;else{typeof i=="function"&&(d=i,i=void 0);const S=typeof d=="function";try{l=t(r,c,i,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(I){if(S){d(I);return}throw I}if(!S)return l}let O;try{O=JSON.stringify(l,this.options.replacer)}catch(S){d(S);return}return this.callServer(O,function(S,I){v._parseResponse(S,I,d)}),l},n.prototype._parseResponse=function(r,c,i){if(r){i(r);return}if(!c){i();return}let d;try{d=JSON.parse(c,this.options.reviver)}catch(v){i(v);return}if(i.length===3)if(Array.isArray(d)){const v=function(y){return typeof y.error<"u"},l=function(y){return!v(y)};i(null,d.filter(v),d.filter(l));return}else{i(null,d.error,d.result);return}i(null,d)},ya}a4();var wa={exports:{}},p0;function c4(){return p0||(p0=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function c(l,y,A){this.fn=l,this.context=y,this.once=A||!1}function i(l,y,A,O,S){if(typeof A!="function")throw new TypeError("The listener must be a function");var I=new c(A,O||l,S),B=n?n+y:y;return l._events[B]?l._events[B].fn?l._events[B]=[l._events[B],I]:l._events[B].push(I):(l._events[B]=I,l._eventsCount++),l}function d(l,y){--l._eventsCount===0?l._events=new r:delete l._events[y]}function v(){this._events=new r,this._eventsCount=0}v.prototype.eventNames=function(){var y=[],A,O;if(this._eventsCount===0)return y;for(O in A=this._events)t.call(A,O)&&y.push(n?O.slice(1):O);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(A)):y},v.prototype.listeners=function(y){var A=n?n+y:y,O=this._events[A];if(!O)return[];if(O.fn)return[O.fn];for(var S=0,I=O.length,B=new Array(I);S<I;S++)B[S]=O[S].fn;return B},v.prototype.listenerCount=function(y){var A=n?n+y:y,O=this._events[A];return O?O.fn?1:O.length:0},v.prototype.emit=function(y,A,O,S,I,B){var C=n?n+y:y;if(!this._events[C])return!1;var F=this._events[C],j=arguments.length,Q,W;if(F.fn){switch(F.once&&this.removeListener(y,F.fn,void 0,!0),j){case 1:return F.fn.call(F.context),!0;case 2:return F.fn.call(F.context,A),!0;case 3:return F.fn.call(F.context,A,O),!0;case 4:return F.fn.call(F.context,A,O,S),!0;case 5:return F.fn.call(F.context,A,O,S,I),!0;case 6:return F.fn.call(F.context,A,O,S,I,B),!0}for(W=1,Q=new Array(j-1);W<j;W++)Q[W-1]=arguments[W];F.fn.apply(F.context,Q)}else{var se=F.length,ue;for(W=0;W<se;W++)switch(F[W].once&&this.removeListener(y,F[W].fn,void 0,!0),j){case 1:F[W].fn.call(F[W].context);break;case 2:F[W].fn.call(F[W].context,A);break;case 3:F[W].fn.call(F[W].context,A,O);break;case 4:F[W].fn.call(F[W].context,A,O,S);break;default:if(!Q)for(ue=1,Q=new Array(j-1);ue<j;ue++)Q[ue-1]=arguments[ue];F[W].fn.apply(F[W].context,Q)}}return!0},v.prototype.on=function(y,A,O){return i(this,y,A,O,!1)},v.prototype.once=function(y,A,O){return i(this,y,A,O,!0)},v.prototype.removeListener=function(y,A,O,S){var I=n?n+y:y;if(!this._events[I])return this;if(!A)return d(this,I),this;var B=this._events[I];if(B.fn)B.fn===A&&(!S||B.once)&&(!O||B.context===O)&&d(this,I);else{for(var C=0,F=[],j=B.length;C<j;C++)(B[C].fn!==A||S&&!B[C].once||O&&B[C].context!==O)&&F.push(B[C]);F.length?this._events[I]=F.length===1?F[0]:F:d(this,I)}return this},v.prototype.removeAllListeners=function(y){var A;return y?(A=n?n+y:y,this._events[A]&&d(this,A)):(this._events=new r,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prefixed=n,v.EventEmitter=v,e.exports=v})(wa)),wa.exports}c4();class m0 extends tu{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Jc(t);const r=$s(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const c=this.blockLen,i=new Uint8Array(c);i.set(r.length>c?t.create().update(r).digest():r);for(let d=0;d<i.length;d++)i[d]^=54;this.iHash.update(i),this.oHash=t.create();for(let d=0;d<i.length;d++)i[d]^=106;this.oHash.update(i),Jr(i)}update(t){return bi(this),this.iHash.update(t),this}digestInto(t){bi(this),xr(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:c,destroyed:i,blockLen:d,outputLen:v}=this;return t=t,t.finished=c,t.destroyed=i,t.blockLen=d,t.outputLen=v,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const g0=(e,t,n)=>new m0(e,t).update(n).digest();g0.create=(e,t)=>new m0(e,t);const v0=(e,t)=>(e+(e>=0?t:-t)/y0)/t;function u4(e,t,n){const[[r,c],[i,d]]=t,v=v0(d*e,n),l=v0(-c*e,n);let y=e-v*r-l*i,A=-v*c-l*d;const O=y<fr,S=A<fr;O&&(y=-y),S&&(A=-A);const I=Mo(Math.ceil(du(n)/2))+so;if(y<fr||y>=I||A<fr||A>=I)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:O,k1:y,k2neg:S,k2:A}}function _a(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Ea(e,t){const n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return Cr(n.lowS,"lowS"),Cr(n.prehash,"prehash"),n.format!==void 0&&_a(n.format),n}class f4 extends Error{constructor(t=""){super(t)}}const ur={Err:f4,_tlv:{encode:(e,t)=>{const{Err:n}=ur;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,c=Ni(r);if(c.length/2&128)throw new n("tlv.encode: long form length too big");const i=r>127?Ni(c.length/2|128):"";return Ni(e)+i+c+t},decode(e,t){const{Err:n}=ur;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const c=t[r++],i=!!(c&128);let d=0;if(!i)d=c;else{const l=c&127;if(!l)throw new n("tlv.decode(long): indefinite length not supported");if(l>4)throw new n("tlv.decode(long): byte length is too big");const y=t.subarray(r,r+l);if(y.length!==l)throw new n("tlv.decode: length bytes not complete");if(y[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const A of y)d=d<<8|A;if(r+=l,d<128)throw new n("tlv.decode(long): not minimal encoding")}const v=t.subarray(r,r+d);if(v.length!==d)throw new n("tlv.decode: wrong value length");return{v,l:t.subarray(r+d)}}},_int:{encode(e){const{Err:t}=ur;if(e<fr)throw new t("integer: negative integers are not allowed");let n=Ni(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=ur;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Ti(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=ur,c=jt("signature",e),{v:i,l:d}=r.decode(48,c);if(d.length)throw new t("invalid signature: left bytes after parsing");const{v,l}=r.decode(2,i),{v:y,l:A}=r.decode(2,l);if(A.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(v),s:n.decode(y)}},hexFromSig(e){const{_tlv:t,_int:n}=ur,r=t.encode(2,n.encode(e.r)),c=t.encode(2,n.encode(e.s)),i=r+c;return t.encode(48,i)}},fr=BigInt(0),so=BigInt(1),y0=BigInt(2),ji=BigInt(3),l4=BigInt(4);function ao(e,t){const{BYTES:n}=e;let r;if(typeof t=="bigint")r=t;else{let c=jt("private key",t);try{r=e.fromBytes(c)}catch{throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function d4(e,t={}){const n=Mu("weierstrass",e,t),{Fp:r,Fn:c}=n;let i=n.CURVE;const{h:d,n:v}=i;Bo(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:l}=t;if(l&&(!r.is0(i.a)||typeof l.beta!="bigint"||!Array.isArray(l.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const y=_0(r,c);function A(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function O(ge,k,f){const{x:R,y:M}=k.toAffine(),$=r.toBytes(R);if(Cr(f,"isCompressed"),f){A();const Y=!r.isOdd(M);return qn(w0(Y),$)}else return qn(Uint8Array.of(4),$,r.toBytes(M))}function S(ge){Wn(ge,void 0,"Point");const{publicKey:k,publicKeyUncompressed:f}=y,R=ge.length,M=ge[0],$=ge.subarray(1);if(R===k&&(M===2||M===3)){const Y=r.fromBytes($);if(!r.isValid(Y))throw new Error("bad point: is not on curve, wrong x");const te=C(Y);let ae;try{ae=r.sqrt(te)}catch(_){const H=_ instanceof Error?": "+_.message:"";throw new Error("bad point: is not on curve, sqrt error"+H)}A();const K=r.isOdd(ae);return(M&1)===1!==K&&(ae=r.neg(ae)),{x:Y,y:ae}}else if(R===f&&M===4){const Y=r.BYTES,te=r.fromBytes($.subarray(0,Y)),ae=r.fromBytes($.subarray(Y,Y*2));if(!F(te,ae))throw new Error("bad point: is not on curve");return{x:te,y:ae}}else throw new Error(`bad point: got length ${R}, expected compressed=${k} or uncompressed=${f}`)}const I=t.toBytes||O,B=t.fromBytes||S;function C(ge){const k=r.sqr(ge),f=r.mul(k,ge);return r.add(r.add(f,r.mul(ge,i.a)),i.b)}function F(ge,k){const f=r.sqr(k),R=C(ge);return r.eql(f,R)}if(!F(i.Gx,i.Gy))throw new Error("bad curve params: generator point");const j=r.mul(r.pow(i.a,ji),l4),Q=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(j,Q)))throw new Error("bad curve params: a or b");function W(ge,k,f=!1){if(!r.isValid(k)||f&&r.is0(k))throw new Error(`bad point coordinate ${ge}`);return k}function se(ge){if(!(ge instanceof ne))throw new Error("ProjectivePoint expected")}function ue(ge){if(!l||!l.basises)throw new Error("no endo");return u4(ge,l.basises,c.ORDER)}const oe=xi((ge,k)=>{const{X:f,Y:R,Z:M}=ge;if(r.eql(M,r.ONE))return{x:f,y:R};const $=ge.is0();k==null&&(k=$?r.ONE:r.inv(M));const Y=r.mul(f,k),te=r.mul(R,k),ae=r.mul(M,k);if($)return{x:r.ZERO,y:r.ZERO};if(!r.eql(ae,r.ONE))throw new Error("invZ was invalid");return{x:Y,y:te}}),Ee=xi(ge=>{if(ge.is0()){if(t.allowInfinityPoint&&!r.is0(ge.Y))return;throw new Error("bad point: ZERO")}const{x:k,y:f}=ge.toAffine();if(!r.isValid(k)||!r.isValid(f))throw new Error("bad point: x or y not field elements");if(!F(k,f))throw new Error("bad point: equation left != right");if(!ge.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function Re(ge,k,f,R,M){return f=new ne(r.mul(f.X,ge),f.Y,f.Z),k=Li(R,k),f=Li(M,f),k.add(f)}class ne{constructor(k,f,R){this.X=W("x",k),this.Y=W("y",f,!0),this.Z=W("z",R),Object.freeze(this)}static CURVE(){return i}static fromAffine(k){const{x:f,y:R}=k||{};if(!k||!r.isValid(f)||!r.isValid(R))throw new Error("invalid affine point");if(k instanceof ne)throw new Error("projective point not allowed");return r.is0(f)&&r.is0(R)?ne.ZERO:new ne(f,R,r.ONE)}static fromBytes(k){const f=ne.fromAffine(B(Wn(k,void 0,"point")));return f.assertValidity(),f}static fromHex(k){return ne.fromBytes(jt("pointHex",k))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(k=8,f=!0){return de.createCache(this,k),f||this.multiply(ji),this}assertValidity(){Ee(this)}hasEvenY(){const{y:k}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(k)}equals(k){se(k);const{X:f,Y:R,Z:M}=this,{X:$,Y,Z:te}=k,ae=r.eql(r.mul(f,te),r.mul($,M)),K=r.eql(r.mul(R,te),r.mul(Y,M));return ae&&K}negate(){return new ne(this.X,r.neg(this.Y),this.Z)}double(){const{a:k,b:f}=i,R=r.mul(f,ji),{X:M,Y:$,Z:Y}=this;let te=r.ZERO,ae=r.ZERO,K=r.ZERO,g=r.mul(M,M),_=r.mul($,$),H=r.mul(Y,Y),J=r.mul(M,$);return J=r.add(J,J),K=r.mul(M,Y),K=r.add(K,K),te=r.mul(k,K),ae=r.mul(R,H),ae=r.add(te,ae),te=r.sub(_,ae),ae=r.add(_,ae),ae=r.mul(te,ae),te=r.mul(J,te),K=r.mul(R,K),H=r.mul(k,H),J=r.sub(g,H),J=r.mul(k,J),J=r.add(J,K),K=r.add(g,g),g=r.add(K,g),g=r.add(g,H),g=r.mul(g,J),ae=r.add(ae,g),H=r.mul($,Y),H=r.add(H,H),g=r.mul(H,J),te=r.sub(te,g),K=r.mul(H,_),K=r.add(K,K),K=r.add(K,K),new ne(te,ae,K)}add(k){se(k);const{X:f,Y:R,Z:M}=this,{X:$,Y,Z:te}=k;let ae=r.ZERO,K=r.ZERO,g=r.ZERO;const _=i.a,H=r.mul(i.b,ji);let J=r.mul(f,$),me=r.mul(R,Y),ye=r.mul(M,te),Ue=r.add(f,R),Ke=r.add($,Y);Ue=r.mul(Ue,Ke),Ke=r.add(J,me),Ue=r.sub(Ue,Ke),Ke=r.add(f,M);let st=r.add($,te);return Ke=r.mul(Ke,st),st=r.add(J,ye),Ke=r.sub(Ke,st),st=r.add(R,M),ae=r.add(Y,te),st=r.mul(st,ae),ae=r.add(me,ye),st=r.sub(st,ae),g=r.mul(_,Ke),ae=r.mul(H,ye),g=r.add(ae,g),ae=r.sub(me,g),g=r.add(me,g),K=r.mul(ae,g),me=r.add(J,J),me=r.add(me,J),ye=r.mul(_,ye),Ke=r.mul(H,Ke),me=r.add(me,ye),ye=r.sub(J,ye),ye=r.mul(_,ye),Ke=r.add(Ke,ye),J=r.mul(me,Ke),K=r.add(K,J),J=r.mul(st,Ke),ae=r.mul(Ue,ae),ae=r.sub(ae,J),J=r.mul(Ue,me),g=r.mul(st,g),g=r.add(g,J),new ne(ae,K,g)}subtract(k){return this.add(k.negate())}is0(){return this.equals(ne.ZERO)}multiply(k){const{endo:f}=t;if(!c.isValidNot0(k))throw new Error("invalid scalar: out of range");let R,M;const $=Y=>de.cached(this,Y,te=>Dr(ne,te));if(f){const{k1neg:Y,k1:te,k2neg:ae,k2:K}=ue(k),{p:g,f:_}=$(te),{p:H,f:J}=$(K);M=_.add(J),R=Re(f.beta,g,H,Y,ae)}else{const{p:Y,f:te}=$(k);R=Y,M=te}return Dr(ne,[R,M])[0]}multiplyUnsafe(k){const{endo:f}=t,R=this;if(!c.isValid(k))throw new Error("invalid scalar: out of range");if(k===fr||R.is0())return ne.ZERO;if(k===so)return R;if(de.hasCache(this))return this.multiply(k);if(f){const{k1neg:M,k1:$,k2neg:Y,k2:te}=ue(k),{p1:ae,p2:K}=Jd(ne,R,$,te);return Re(f.beta,ae,K,M,Y)}else return de.unsafe(R,k)}multiplyAndAddUnsafe(k,f,R){const M=this.multiplyUnsafe(f).add(k.multiplyUnsafe(R));return M.is0()?void 0:M}toAffine(k){return oe(this,k)}isTorsionFree(){const{isTorsionFree:k}=t;return d===so?!0:k?k(ne,this):de.unsafe(this,v).is0()}clearCofactor(){const{clearCofactor:k}=t;return d===so?this:k?k(ne,this):this.multiplyUnsafe(d)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}toBytes(k=!0){return Cr(k,"isCompressed"),this.assertValidity(),I(ne,this,k)}toHex(k=!0){return Lr(this.toBytes(k))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(k=!0){return this.toBytes(k)}_setWindowSize(k){this.precompute(k)}static normalizeZ(k){return Dr(ne,k)}static msm(k,f){return Lu(ne,c,k,f)}static fromPrivateKey(k){return ne.BASE.multiply(ao(c,k))}}ne.BASE=new ne(i.Gx,i.Gy,r.ONE),ne.ZERO=new ne(r.ZERO,r.ONE,r.ZERO),ne.Fp=r,ne.Fn=c;const ie=c.BITS,de=new xu(ne,t.endo?Math.ceil(ie/2):ie);return ne.BASE.precompute(8),ne}function w0(e){return Uint8Array.of(e?2:3)}function _0(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function h4(e,t={}){const{Fn:n}=e,r=t.randomBytes||js,c=Object.assign(_0(e.Fp,n),{seed:Su(n.ORDER)});function i(I){try{return!!ao(n,I)}catch{return!1}}function d(I,B){const{publicKey:C,publicKeyUncompressed:F}=c;try{const j=I.length;return B===!0&&j!==C||B===!1&&j!==F?!1:!!e.fromBytes(I)}catch{return!1}}function v(I=r(c.seed)){return Yd(Wn(I,c.seed,"seed"),n.ORDER)}function l(I,B=!0){return e.BASE.multiply(ao(n,I)).toBytes(B)}function y(I){const B=v(I);return{secretKey:B,publicKey:l(B)}}function A(I){if(typeof I=="bigint")return!1;if(I instanceof e)return!0;const{secretKey:B,publicKey:C,publicKeyUncompressed:F}=c;if(n.allowedLengths||B===C)return;const j=jt("key",I).length;return j===C||j===F}function O(I,B,C=!0){if(A(I)===!0)throw new Error("first arg must be private key");if(A(B)===!1)throw new Error("second arg must be public key");const F=ao(n,I);return e.fromHex(B).multiply(F).toBytes(C)}return Object.freeze({getPublicKey:l,getSharedSecret:O,keygen:y,Point:e,utils:{isValidSecretKey:i,isValidPublicKey:d,randomSecretKey:v,isValidPrivateKey:i,randomPrivateKey:v,normPrivateKeyToScalar:I=>ao(n,I),precompute(I=8,B=e.BASE){return B.precompute(I,!1)}},lengths:c})}function p4(e,t,n={}){Jc(t),Bo(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||js,c=n.hmac||((f,...R)=>g0(t,f,qn(...R))),{Fp:i,Fn:d}=e,{ORDER:v,BITS:l}=d,{keygen:y,getPublicKey:A,getSharedSecret:O,utils:S,lengths:I}=h4(e,n),B={prehash:!1,lowS:typeof n.lowS=="boolean"?n.lowS:!1,format:void 0,extraEntropy:!1},C="compact";function F(f){const R=v>>so;return f>R}function j(f,R){if(!d.isValidNot0(R))throw new Error(`invalid signature ${f}: out of range 1..Point.Fn.ORDER`);return R}function Q(f,R){_a(R);const M=I.signature,$=R==="compact"?M:R==="recovered"?M+1:void 0;return Wn(f,$,`${R} signature`)}class W{constructor(R,M,$){this.r=j("r",R),this.s=j("s",M),$!=null&&(this.recovery=$),Object.freeze(this)}static fromBytes(R,M=C){Q(R,M);let $;if(M==="der"){const{r:K,s:g}=ur.toSig(Wn(R));return new W(K,g)}M==="recovered"&&($=R[0],M="compact",R=R.subarray(1));const Y=d.BYTES,te=R.subarray(0,Y),ae=R.subarray(Y,Y*2);return new W(d.fromBytes(te),d.fromBytes(ae),$)}static fromHex(R,M){return this.fromBytes(Ai(R),M)}addRecoveryBit(R){return new W(this.r,this.s,R)}recoverPublicKey(R){const M=i.ORDER,{r:$,s:Y,recovery:te}=this;if(te==null||![0,1,2,3].includes(te))throw new Error("recovery id invalid");if(v*y0<M&&te>1)throw new Error("recovery id is ambiguous for h>1 curve");const K=te===2||te===3?$+v:$;if(!i.isValid(K))throw new Error("recovery id 2 or 3 invalid");const g=i.toBytes(K),_=e.fromBytes(qn(w0((te&1)===0),g)),H=d.inv(K),J=ue(jt("msgHash",R)),me=d.create(-J*H),ye=d.create(Y*H),Ue=e.BASE.multiplyUnsafe(me).add(_.multiplyUnsafe(ye));if(Ue.is0())throw new Error("point at infinify");return Ue.assertValidity(),Ue}hasHighS(){return F(this.s)}toBytes(R=C){if(_a(R),R==="der")return Ai(ur.hexFromSig(this));const M=d.toBytes(this.r),$=d.toBytes(this.s);if(R==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return qn(Uint8Array.of(this.recovery),M,$)}return qn(M,$)}toHex(R){return Lr(this.toBytes(R))}assertValidity(){}static fromCompact(R){return W.fromBytes(jt("sig",R),"compact")}static fromDER(R){return W.fromBytes(jt("sig",R),"der")}normalizeS(){return this.hasHighS()?new W(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Lr(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Lr(this.toBytes("compact"))}}const se=n.bits2int||function(R){if(R.length>8192)throw new Error("input is too large");const M=Ti(R),$=R.length*8-l;return $>0?M>>BigInt($):M},ue=n.bits2int_modN||function(R){return d.create(se(R))},oe=Mo(l);function Ee(f){return Ys("num < 2^"+l,f,fr,oe),d.toBytes(f)}function Re(f,R){return Wn(f,void 0,"message"),R?Wn(t(f),void 0,"prehashed message"):f}function ne(f,R,M){if(["recovered","canonical"].some(me=>me in M))throw new Error("sign() legacy options not supported");const{lowS:$,prehash:Y,extraEntropy:te}=Ea(M,B);f=Re(f,Y);const ae=ue(f),K=ao(d,R),g=[Ee(K),Ee(ae)];if(te!=null&&te!==!1){const me=te===!0?r(I.secretKey):te;g.push(jt("extraEntropy",me))}const _=qn(...g),H=ae;function J(me){const ye=se(me);if(!d.isValidNot0(ye))return;const Ue=d.inv(ye),Ke=e.BASE.multiply(ye).toAffine(),st=d.create(Ke.x);if(st===fr)return;const at=d.create(Ue*d.create(H+st*K));if(at===fr)return;let ut=(Ke.x===st?0:2)|Number(Ke.y&so),_t=at;return $&&F(at)&&(_t=d.neg(at),ut^=1),new W(st,_t,ut)}return{seed:_,k2sig:J}}function ie(f,R,M={}){f=jt("message",f);const{seed:$,k2sig:Y}=ne(f,R,M);return Fd(t.outputLen,d.BYTES,c)($,Y)}function de(f){let R;const M=typeof f=="string"||Lo(f),$=!M&&f!==null&&typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint";if(!M&&!$)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if($)R=new W(f.r,f.s);else if(M){try{R=W.fromBytes(jt("sig",f),"der")}catch(Y){if(!(Y instanceof ur.Err))throw Y}if(!R)try{R=W.fromBytes(jt("sig",f),"compact")}catch{return!1}}return R||!1}function ge(f,R,M,$={}){const{lowS:Y,prehash:te,format:ae}=Ea($,B);if(M=jt("publicKey",M),R=Re(jt("message",R),te),"strict"in $)throw new Error("options.strict was renamed to lowS");const K=ae===void 0?de(f):W.fromBytes(jt("sig",f),ae);if(K===!1)return!1;try{const g=e.fromBytes(M);if(Y&&K.hasHighS())return!1;const{r:_,s:H}=K,J=ue(R),me=d.inv(H),ye=d.create(J*me),Ue=d.create(_*me),Ke=e.BASE.multiplyUnsafe(ye).add(g.multiplyUnsafe(Ue));return Ke.is0()?!1:d.create(Ke.x)===_}catch{return!1}}function k(f,R,M={}){const{prehash:$}=Ea(M,B);return R=Re(R,$),W.fromBytes(f,"recovered").recoverPublicKey(R).toBytes()}return Object.freeze({keygen:y,getPublicKey:A,getSharedSecret:O,utils:S,lengths:I,Point:e,sign:ie,verify:ge,recoverPublicKey:k,Signature:W,hash:t})}function m4(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(d=>Math.ceil(d/2)))):void 0;const c=Br(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),i={Fp:n,Fn:c,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function g4(e){const{CURVE:t,curveOpts:n}=m4(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function v4(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,bu(n.Fn.ORDER,n.Fn.BITS))})}function y4(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:c}=g4(e),i=d4(t,n),d=p4(i,r,c);return v4(e,d)}function w4(e,t){const n=r=>y4({...e,hash:r});return{...n(t),create:n}}const Ra={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},_4={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},E0=BigInt(2);function E4(e){const t=Ra.p,n=BigInt(3),r=BigInt(6),c=BigInt(11),i=BigInt(22),d=BigInt(23),v=BigInt(44),l=BigInt(88),y=e*e*e%t,A=y*y*e%t,O=Kt(A,n,t)*A%t,S=Kt(O,n,t)*A%t,I=Kt(S,E0,t)*y%t,B=Kt(I,c,t)*I%t,C=Kt(B,i,t)*B%t,F=Kt(C,v,t)*C%t,j=Kt(F,l,t)*F%t,Q=Kt(j,v,t)*C%t,W=Kt(Q,n,t)*A%t,se=Kt(W,d,t)*B%t,ue=Kt(se,r,t)*y%t,oe=Kt(ue,E0,t);if(!ba.eql(ba.sqr(oe),e))throw new Error("Cannot find square root");return oe}const ba=Br(Ra.p,{sqrt:E4}),R4=w4({...Ra,Fp:ba,lowS:!0,endo:_4},cu);ko.utils.randomPrivateKey,ko.getPublicKey;function R0(e){try{return ko.ExtendedPoint.fromHex(e),!0}catch{return!1}}const b0=(e,t)=>ko.sign(e,t.slice(0,32)),b4=ko.verify,Aa=e=>wt.Buffer.isBuffer(e)?e:e instanceof Uint8Array?wt.Buffer.from(e.buffer,e.byteOffset,e.byteLength):wt.Buffer.from(e);class A0{constructor(t){Object.assign(this,t)}encode(){return wt.Buffer.from(ca.serialize(Vo,this))}static decode(t){return ca.deserialize(Vo,this,t)}static decodeUnchecked(t){return ca.deserializeUnchecked(Vo,this,t)}}const Vo=new Map;var S0;const I0=32,Zn=32;function A4(e){return e._bn!==void 0}let O0=1;class ft extends A0{constructor(t){if(super({}),this._bn=void 0,A4(t))this._bn=t._bn;else{if(typeof t=="string"){const n=En.decode(t);if(n.length!=Zn)throw new Error("Invalid public key input");this._bn=new Fu(n)}else this._bn=new Fu(t);if(this._bn.byteLength()>Zn)throw new Error("Invalid public key input")}}static unique(){const t=new ft(O0);return O0+=1,new ft(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return En.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(wt.Buffer);if(t.length===Zn)return t;const n=wt.Buffer.alloc(32);return t.copy(n,32-t.length),n}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,n,r){const c=wt.Buffer.concat([t.toBuffer(),wt.Buffer.from(n),r.toBuffer()]),i=ju(c);return new ft(i)}static createProgramAddressSync(t,n){let r=wt.Buffer.alloc(0);t.forEach(function(i){if(i.length>I0)throw new TypeError("Max seed length exceeded");r=wt.Buffer.concat([r,Aa(i)])}),r=wt.Buffer.concat([r,n.toBuffer(),wt.Buffer.from("ProgramDerivedAddress")]);const c=ju(r);if(R0(c))throw new Error("Invalid seeds, address must fall off the curve");return new ft(c)}static async createProgramAddress(t,n){return this.createProgramAddressSync(t,n)}static findProgramAddressSync(t,n){let r=255,c;for(;r!=0;){try{const i=t.concat(wt.Buffer.from([r]));c=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[c,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,n){return this.findProgramAddressSync(t,n)}static isOnCurve(t){const n=new ft(t);return R0(n.toBytes())}}S0=ft,ft.default=new S0("11111111111111111111111111111111"),Vo.set(ft,{kind:"struct",fields:[["_bn","u256"]]}),new ft("BPFLoader1111111111111111111111111111111111");const Pr=1232,Go=127,Rr=64,N0=129;class co{constructor(t,n){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const n of this.keySegments()){if(t<n.length)return n[t];t-=n.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const r=new Map;this.keySegments().flat().forEach((i,d)=>{r.set(i.toBase58(),d)});const c=i=>{const d=r.get(i.toBase58());if(d===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return d};return t.map(i=>({programIdIndex:c(i.programId),accountKeyIndexes:i.keys.map(d=>c(d.pubkey)),data:i.data}))}}const Et=(e="publicKey")=>le.blob(32,e),S4=(e="signature")=>le.blob(64,e),uo=(e="string")=>{const t=le.struct([le.u32("length"),le.u32("lengthPadding"),le.blob(le.offset(le.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),c=t;return c.decode=(i,d)=>n(i,d).chars.toString(),c.encode=(i,d,v)=>{const l={chars:wt.Buffer.from(i,"utf8")};return r(l,d,v)},c.alloc=i=>le.u32().span+le.u32().span+wt.Buffer.from(i,"utf8").length,c},I4=(e="authorized")=>le.struct([Et("staker"),Et("withdrawer")],e),O4=(e="lockup")=>le.struct([le.ns64("unixTimestamp"),le.ns64("epoch"),Et("custodian")],e),N4=(e="voteInit")=>le.struct([Et("nodePubkey"),Et("authorizedVoter"),Et("authorizedWithdrawer"),le.u8("commission")],e),T4=(e="voteAuthorizeWithSeedArgs")=>le.struct([le.u32("voteAuthorizationType"),Et("currentAuthorityDerivedKeyOwnerPubkey"),uo("currentAuthorityDerivedKeySeed"),Et("newAuthorized")],e);function Bn(e){let t=0,n=0;for(;;){let r=e.shift();if(t|=(r&127)<<n*7,n+=1,(r&128)===0)break}return t}function kn(e,t){let n=t;for(;;){let r=n&127;if(n>>=7,n==0){e.push(r);break}else r|=128,e.push(r)}}function Lt(e,t){if(!e)throw new Error(t||"Assertion failed")}class Ki{constructor(t,n){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}static compile(t,n){const r=new Map,c=d=>{const v=d.toBase58();let l=r.get(v);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(v,l)),l},i=c(n);i.isSigner=!0,i.isWritable=!0;for(const d of t){c(d.programId).isInvoked=!0;for(const v of d.keys){const l=c(v.pubkey);l.isSigner||=v.isSigner,l.isWritable||=v.isWritable}}return new Ki(n,r)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];Lt(t.length<=256,"Max static account keys length exceeded");const n=t.filter(([,l])=>l.isSigner&&l.isWritable),r=t.filter(([,l])=>l.isSigner&&!l.isWritable),c=t.filter(([,l])=>!l.isSigner&&l.isWritable),i=t.filter(([,l])=>!l.isSigner&&!l.isWritable),d={numRequiredSignatures:n.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:i.length};{Lt(n.length>0,"Expected at least one writable signer key");const[l]=n[0];Lt(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const v=[...n.map(([l])=>new ft(l)),...r.map(([l])=>new ft(l)),...c.map(([l])=>new ft(l)),...i.map(([l])=>new ft(l))];return[d,v]}extractTableLookup(t){const[n,r]=this.drainKeysFoundInLookupTable(t.state.addresses,d=>!d.isSigner&&!d.isInvoked&&d.isWritable),[c,i]=this.drainKeysFoundInLookupTable(t.state.addresses,d=>!d.isSigner&&!d.isInvoked&&!d.isWritable);if(!(n.length===0&&c.length===0))return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:c},{writable:r,readonly:i}]}drainKeysFoundInLookupTable(t,n){const r=new Array,c=new Array;for(const[i,d]of this.keyMetaMap.entries())if(n(d)){const v=new ft(i),l=t.findIndex(y=>y.equals(v));l>=0&&(Lt(l<256,"Max lookup table index exceeded"),r.push(l),c.push(v),this.keyMetaMap.delete(i))}return[r,c]}}const T0="Reached end of buffer unexpectedly";function sn(e){if(e.length===0)throw new Error(T0);return e.shift()}function an(e,...t){const[n]=t;if(t.length===2?n+(t[1]??0)>e.length:n>=e.length)throw new Error(T0);return e.splice(...t)}class Fr{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(n=>new ft(n)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(n=>this.indexToProgramIds.set(n.programIdIndex,this.accountKeys[n.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:En.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new co(this.staticAccountKeys)}static compile(t){const n=Ki.compile(t.instructions,t.payerKey),[r,c]=n.getMessageComponents(),d=new co(c).compileInstructions(t.instructions).map(v=>({programIdIndex:v.programIdIndex,accounts:v.accountKeyIndexes,data:En.encode(v.data)}));return new Fr({header:r,accountKeys:c,recentBlockhash:t.recentBlockhash,instructions:d})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const r=t-n,i=this.accountKeys.length-n-this.header.numReadonlyUnsignedAccounts;return r<i}else{const r=n-this.header.numReadonlySignedAccounts;return t<r}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,n)=>!this.isProgramId(n))}serialize(){const t=this.accountKeys.length;let n=[];kn(n,t);const r=this.instructions.map(O=>{const{accounts:S,programIdIndex:I}=O,B=Array.from(En.decode(O.data));let C=[];kn(C,S.length);let F=[];return kn(F,B.length),{programIdIndex:I,keyIndicesCount:wt.Buffer.from(C),keyIndices:S,dataLength:wt.Buffer.from(F),data:B}});let c=[];kn(c,r.length);let i=wt.Buffer.alloc(Pr);wt.Buffer.from(c).copy(i);let d=c.length;r.forEach(O=>{const I=le.struct([le.u8("programIdIndex"),le.blob(O.keyIndicesCount.length,"keyIndicesCount"),le.seq(le.u8("keyIndex"),O.keyIndices.length,"keyIndices"),le.blob(O.dataLength.length,"dataLength"),le.seq(le.u8("userdatum"),O.data.length,"data")]).encode(O,i,d);d+=I}),i=i.slice(0,d);const v=le.struct([le.blob(1,"numRequiredSignatures"),le.blob(1,"numReadonlySignedAccounts"),le.blob(1,"numReadonlyUnsignedAccounts"),le.blob(n.length,"keyCount"),le.seq(Et("key"),t,"keys"),Et("recentBlockhash")]),l={numRequiredSignatures:wt.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:wt.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:wt.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:wt.Buffer.from(n),keys:this.accountKeys.map(O=>Aa(O.toBytes())),recentBlockhash:En.decode(this.recentBlockhash)};let y=wt.Buffer.alloc(2048);const A=v.encode(l,y);return i.copy(y,A),y.slice(0,A+i.length)}static from(t){let n=[...t];const r=sn(n);if(r!==(r&Go))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const c=sn(n),i=sn(n),d=Bn(n);let v=[];for(let S=0;S<d;S++){const I=an(n,0,Zn);v.push(new ft(wt.Buffer.from(I)))}const l=an(n,0,Zn),y=Bn(n);let A=[];for(let S=0;S<y;S++){const I=sn(n),B=Bn(n),C=an(n,0,B),F=Bn(n),j=an(n,0,F),Q=En.encode(wt.Buffer.from(j));A.push({programIdIndex:I,accounts:C,data:Q})}const O={header:{numRequiredSignatures:r,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:i},recentBlockhash:En.encode(wt.Buffer.from(l)),accountKeys:v,instructions:A};return new Fr(O)}}class Ho{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const n of this.addressTableLookups)t+=n.readonlyIndexes.length+n.writableIndexes.length;return t}getAccountKeys(t){let n;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");n=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)n=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new co(this.staticAccountKeys,n)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r){const c=t-r,i=this.addressTableLookups.reduce((d,v)=>d+v.writableIndexes.length,0);return c<i}else if(t>=this.header.numRequiredSignatures){const c=t-n,d=r-n-this.header.numReadonlyUnsignedAccounts;return c<d}else{const c=n-this.header.numReadonlySignedAccounts;return t<c}}resolveAddressTableLookups(t){const n={writable:[],readonly:[]};for(const r of this.addressTableLookups){const c=t.find(i=>i.key.equals(r.accountKey));if(!c)throw new Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(const i of r.writableIndexes)if(i<c.state.addresses.length)n.writable.push(c.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`);for(const i of r.readonlyIndexes)if(i<c.state.addresses.length)n.readonly.push(c.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`)}return n}static compile(t){const n=Ki.compile(t.instructions,t.payerKey),r=new Array,c={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const A of i){const O=n.extractTableLookup(A);if(O!==void 0){const[S,{writable:I,readonly:B}]=O;r.push(S),c.writable.push(...I),c.readonly.push(...B)}}const[d,v]=n.getMessageComponents(),y=new co(v,c).compileInstructions(t.instructions);return new Ho({header:d,staticAccountKeys:v,recentBlockhash:t.recentBlockhash,compiledInstructions:y,addressTableLookups:r})}serialize(){const t=Array();kn(t,this.staticAccountKeys.length);const n=this.serializeInstructions(),r=Array();kn(r,this.compiledInstructions.length);const c=this.serializeAddressTableLookups(),i=Array();kn(i,this.addressTableLookups.length);const d=le.struct([le.u8("prefix"),le.struct([le.u8("numRequiredSignatures"),le.u8("numReadonlySignedAccounts"),le.u8("numReadonlyUnsignedAccounts")],"header"),le.blob(t.length,"staticAccountKeysLength"),le.seq(Et(),this.staticAccountKeys.length,"staticAccountKeys"),Et("recentBlockhash"),le.blob(r.length,"instructionsLength"),le.blob(n.length,"serializedInstructions"),le.blob(i.length,"addressTableLookupsLength"),le.blob(c.length,"serializedAddressTableLookups")]),v=new Uint8Array(Pr),y=d.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(A=>A.toBytes()),recentBlockhash:En.decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:n,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:c},v);return v.slice(0,y)}serializeInstructions(){let t=0;const n=new Uint8Array(Pr);for(const r of this.compiledInstructions){const c=Array();kn(c,r.accountKeyIndexes.length);const i=Array();kn(i,r.data.length);const d=le.struct([le.u8("programIdIndex"),le.blob(c.length,"encodedAccountKeyIndexesLength"),le.seq(le.u8(),r.accountKeyIndexes.length,"accountKeyIndexes"),le.blob(i.length,"encodedDataLength"),le.blob(r.data.length,"data")]);t+=d.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(c),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:r.data},n,t)}return n.slice(0,t)}serializeAddressTableLookups(){let t=0;const n=new Uint8Array(Pr);for(const r of this.addressTableLookups){const c=Array();kn(c,r.writableIndexes.length);const i=Array();kn(i,r.readonlyIndexes.length);const d=le.struct([Et("accountKey"),le.blob(c.length,"encodedWritableIndexesLength"),le.seq(le.u8(),r.writableIndexes.length,"writableIndexes"),le.blob(i.length,"encodedReadonlyIndexesLength"),le.seq(le.u8(),r.readonlyIndexes.length,"readonlyIndexes")]);t+=d.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(c),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:r.readonlyIndexes},n,t)}return n.slice(0,t)}static deserialize(t){let n=[...t];const r=sn(n),c=r&Go;Lt(r!==c,"Expected versioned message but received legacy message");const i=c;Lt(i===0,`Expected versioned message with version 0 but found version ${i}`);const d={numRequiredSignatures:sn(n),numReadonlySignedAccounts:sn(n),numReadonlyUnsignedAccounts:sn(n)},v=[],l=Bn(n);for(let B=0;B<l;B++)v.push(new ft(an(n,0,Zn)));const y=En.encode(an(n,0,Zn)),A=Bn(n),O=[];for(let B=0;B<A;B++){const C=sn(n),F=Bn(n),j=an(n,0,F),Q=Bn(n),W=new Uint8Array(an(n,0,Q));O.push({programIdIndex:C,accountKeyIndexes:j,data:W})}const S=Bn(n),I=[];for(let B=0;B<S;B++){const C=new ft(an(n,0,Zn)),F=Bn(n),j=an(n,0,F),Q=Bn(n),W=an(n,0,Q);I.push({accountKey:C,writableIndexes:j,readonlyIndexes:W})}return new Ho({header:d,staticAccountKeys:v,recentBlockhash:y,compiledInstructions:O,addressTableLookups:I})}}const x0=3,x4=4,L4=8,C4=16;function Wi(e){const t=an(e,0,4);return t[0]+t[1]*2**8+t[2]*2**16+t[3]*2**24}function M4(e){const t=an(e,0,8);let n=BigInt(0);for(let r=t.length-1;r>=0;r--)n=n<<BigInt(8)|BigInt(t[r]);return Lt(n<=BigInt(Number.MAX_SAFE_INTEGER),"Expected u64 value to be within the safe integer range"),Number(n)}class zi{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.transactionConfig=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.transactionConfig=t.transactionConfig??{computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null}}get version(){return 1}get addressTableLookups(){return[]}getAccountKeys(){return new co(this.staticAccountKeys)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r)return!1;if(t>=this.header.numRequiredSignatures){const c=t-n,d=r-n-this.header.numReadonlyUnsignedAccounts;return c<d}else{const c=n-this.header.numReadonlySignedAccounts;return t<c}}serialize(){throw new Error("Serialization of version 1 transaction messages is not supported")}static deserialize(t){let n=[...t];const r=sn(n),c=r&Go;Lt(r!==c,"Expected versioned message but received legacy message");const i=c;Lt(i===1,`Expected versioned message with version 1 but found version ${i}`);const d={numRequiredSignatures:sn(n),numReadonlySignedAccounts:sn(n),numReadonlyUnsignedAccounts:sn(n)},v=Wi(n);Lt((v&-32)===0,"Unexpected bits set in the transaction config mask");const l=v&x0;Lt(l===0||l===x0,"Expected both or neither of the priority fee bits to be set in the transaction config mask");const y=En.encode(an(n,0,Zn)),A=sn(n),O=sn(n),S=[];for(let F=0;F<O;F++)S.push(new ft(an(n,0,Zn)));const I={computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null};l!==0&&(I.priorityFee=M4(n)),v&x4&&(I.computeUnitLimit=Wi(n)),v&L4&&(I.loadedAccountsDataSizeLimit=Wi(n)),v&C4&&(I.heapSize=Wi(n));const B=[];for(let F=0;F<A;F++){const j=sn(n),Q=sn(n),W=sn(n)+sn(n)*256;B.push({accountKeyIndexesLength:Q,dataLength:W,programIdIndex:j})}const C=[];for(const F of B)C.push({programIdIndex:F.programIdIndex,accountKeyIndexes:an(n,0,F.accountKeyIndexesLength),data:new Uint8Array(an(n,0,F.dataLength))});return Lt(n.length===0,"Expected no bytes to remain after deserializing a version 1 message"),new zi({header:d,staticAccountKeys:S,recentBlockhash:y,compiledInstructions:C,transactionConfig:I})}}const Zi={deserializeMessageVersion(e){const t=e[0],n=t&Go;return n===t?"legacy":n},deserialize:e=>{const t=Zi.deserializeMessageVersion(e);if(t==="legacy")return Fr.from(e);if(t===0)return Ho.deserialize(e);if(t===1)return zi.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}},B4=wt.Buffer.alloc(Rr).fill(0);class Sa{constructor(t){this.keys=void 0,this.programId=void 0,this.data=wt.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:n,isWritable:r})=>({pubkey:t.toJSON(),isSigner:n,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}}class Yi{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:n,nonceInfo:r}=t;this.minNonceContextSlot=n,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:n,lastValidBlockHeight:r}=t;this.recentBlockhash=n,this.lastValidBlockHeight=r}else{const{recentBlockhash:n,nonceInfo:r}=t;r&&(this.nonceInfo=r),this.recentBlockhash=n}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(n=>{"instructions"in n?this.instructions=this.instructions.concat(n.instructions):"data"in n&&"programId"in n&&"keys"in n?this.instructions.push(n):this.instructions.push(new Sa(n))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?n=[this.nonceInfo.nonceInstruction,...this.instructions]:n=this.instructions):(t=this.recentBlockhash,n=this.instructions),!t)throw new Error("Transaction recentBlockhash required");n.length<1&&console.warn("No instructions provided");let r;if(this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let C=0;C<n.length;C++)if(n[C].programId===void 0)throw new Error(`Transaction instruction index ${C} has undefined program id`);const c=[],i=[];n.forEach(C=>{C.keys.forEach(j=>{i.push({...j})});const F=C.programId.toString();c.includes(F)||c.push(F)}),c.forEach(C=>{i.push({pubkey:new ft(C),isSigner:!1,isWritable:!1})});const d=[];i.forEach(C=>{const F=C.pubkey.toString(),j=d.findIndex(Q=>Q.pubkey.toString()===F);j>-1?(d[j].isWritable=d[j].isWritable||C.isWritable,d[j].isSigner=d[j].isSigner||C.isSigner):d.push(C)}),d.sort(function(C,F){if(C.isSigner!==F.isSigner)return C.isSigner?-1:1;if(C.isWritable!==F.isWritable)return C.isWritable?-1:1;const j={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return C.pubkey.toBase58().localeCompare(F.pubkey.toBase58(),"en",j)});const v=d.findIndex(C=>C.pubkey.equals(r));if(v>-1){const[C]=d.splice(v,1);C.isSigner=!0,C.isWritable=!0,d.unshift(C)}else d.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(const C of this.signatures){const F=d.findIndex(j=>j.pubkey.equals(C.publicKey));if(F>-1)d[F].isSigner||(d[F].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${C.publicKey.toString()}`)}let l=0,y=0,A=0;const O=[],S=[];d.forEach(({pubkey:C,isSigner:F,isWritable:j})=>{F?(O.push(C.toString()),l+=1,j||(y+=1)):(S.push(C.toString()),j||(A+=1))});const I=O.concat(S),B=n.map(C=>{const{data:F,programId:j}=C;return{programIdIndex:I.indexOf(j.toString()),accounts:C.keys.map(Q=>I.indexOf(Q.pubkey.toString())),data:En.encode(F)}});return B.forEach(C=>{Lt(C.programIdIndex>=0),C.accounts.forEach(F=>Lt(F>=0))}),new Fr({header:{numRequiredSignatures:l,numReadonlySignedAccounts:y,numReadonlyUnsignedAccounts:A},accountKeys:I,recentBlockhash:t,instructions:B})}_compile(){const t=this.compileMessage(),n=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===n.length&&this.signatures.every((c,i)=>n[i].equals(c.publicKey))||(this.signatures=n.map(r=>({signature:null,publicKey:r}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");const n=new Set;this.signatures=t.filter(r=>{const c=r.toString();return n.has(c)?!1:(n.add(c),!0)}).map(r=>({signature:null,publicKey:r}))}sign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,r=[];for(const i of t){const d=i.publicKey.toString();n.has(d)||(n.add(d),r.push(i))}this.signatures=r.map(i=>({signature:null,publicKey:i.publicKey}));const c=this._compile();this._partialSign(c,...r)}partialSign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,r=[];for(const i of t){const d=i.publicKey.toString();n.has(d)||(n.add(d),r.push(i))}const c=this._compile();this._partialSign(c,...r)}_partialSign(t,...n){const r=t.serialize();n.forEach(c=>{const i=b0(r,c.secretKey);this._addSignature(c.publicKey,Aa(i))})}addSignature(t,n){this._compile(),this._addSignature(t,n)}_addSignature(t,n){Lt(n.length===64);const r=this.signatures.findIndex(c=>t.equals(c.publicKey));if(r<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[r].signature=wt.Buffer.from(n)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,n){const r={};for(const{signature:c,publicKey:i}of this.signatures)c===null?n&&(r.missing||=[]).push(i):b4(c,t,i.toBytes())||(r.invalid||=[]).push(i);return r.invalid||r.missing?r:void 0}serialize(t){const{requireAllSignatures:n,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),c=this.serializeMessage();if(r){const i=this._getMessageSignednessErrors(c,n);if(i){let d="Signature verification failed.";throw i.invalid&&(d+=`
|
|
5
|
+
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[C2]:"No signature verification implementation could be found.",[M2]:"No key generation implementation could be found.",[B2]:"No signing implementation could be found.",[k2]:"No key export implementation could be found.",[Vh]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[c6]:"Transaction processing left an account with an outstanding borrowed reference",[z5]:"Account in use",[Z5]:"Account loaded twice",[Y5]:"Attempt to debit an account but found no record of a prior credit.",[m6]:"Transaction loads an address table account that doesn't exist",[Q5]:"This transaction has already been processed",[e6]:"Blockhash not found",[t6]:"Loader call chain is too deep",[a6]:"Transactions are currently disabled due to cluster maintenance",[R6]:"Transaction contains a duplicate instruction ($index) that is not allowed",[q5]:"Insufficient funds for fee",[b6]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[J5]:"This account may not be used to pay transaction fees",[r6]:"Transaction contains an invalid account reference",[v6]:"Transaction loads an address table account with invalid data",[y6]:"Transaction address table lookup uses an invalid index",[g6]:"Transaction loads an address table account with an invalid owner",[S6]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[i6]:"This program may not be used for executing instructions",[w6]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[l6]:"Transaction loads a writable account that cannot be written",[A6]:"Transaction exceeded max loaded accounts data size cap",[n6]:"Transaction requires a fee but has no signature present",[X5]:"Attempt to load a program that does not exist",[O6]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[I6]:"ResanitizationNeeded",[s6]:"Transaction failed to sanitize accounts offsets correctly",[o6]:"Transaction did not pass signature verification",[p6]:"Transaction locked too many accounts",[N6]:"Sum of account balances before and after transaction do not match",[W5]:"The transaction failed with the error `$errorName`",[f6]:"Transaction version is unsupported",[h6]:"Transaction would exceed account data limit within the block",[E6]:"Transaction would exceed total account data limit",[d6]:"Transaction would exceed max account limit within the block",[u6]:"Transaction would exceed max Block Cost Limit",[_6]:"Transaction would exceed max Vote Cost Limit",[P5]:"Attempted to sign a transaction with an address that is not a signer for it",[M5]:"Transaction is missing an address at index: $index.",[F5]:"Transaction has no expected signers therefore it cannot be encoded",[$5]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[S5]:"Transaction does not have a blockhash lifetime",[I5]:"Transaction is not a durable nonce transaction",[N5]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[T5]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[L5]:"No fee payer set in CompiledTransaction",[x5]:"Could not find program address at index $index",[G5]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[H5]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[B5]:"Transaction is missing a fee payer.",[k5]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[U5]:"Transaction first instruction is not advance nonce account instruction.",[D5]:"Transaction with no instructions cannot be durable nonce transaction.",[b5]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[A5]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[V5]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[C5]:"Transaction is missing signatures for addresses: $addresses.",[O5]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[j5]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[K5]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},cr="i",Jn="t";function Rp(e,t={}){const n=Ep[e];if(n.length===0)return"";let r;function c(d){if(r[Jn]===2){const v=n.slice(r[cr]+1,d);i.push(v in t?`${t[v]}`:`$${v}`)}else r[Jn]===1&&i.push(n.slice(r[cr],d))}const i=[];return n.split("").forEach((d,v)=>{if(v===0){r={[cr]:0,[Jn]:n[0]==="\\"?0:n[0]==="$"?2:1};return}let l;switch(r[Jn]){case 0:l={[cr]:v,[Jn]:1};break;case 1:d==="\\"?l={[cr]:v,[Jn]:0}:d==="$"&&(l={[cr]:v,[Jn]:2});break;case 2:d==="\\"?l={[cr]:v,[Jn]:0}:d==="$"?l={[cr]:v,[Jn]:2}:d.match(/\w/)||(l={[cr]:v,[Jn]:1});break}l&&(r!==l&&c(v),r=l)}),c(),i.join("")}function bp(e,t={}){if(process.env.NODE_ENV!=="production")return Rp(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${_p(t)}'`),`${n}\``}}var ro=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,r;t&&Object.entries(Object.getOwnPropertyDescriptors(t)).forEach(([i,d])=>{i==="cause"?r={cause:d.value}:(n===void 0&&(n={__code:e}),Object.defineProperty(n,i,d))});const c=bp(e,n);super(c,r),this.context=Object.freeze(n===void 0?{__code:e}:n),this.name="SolanaError"}};function Ap(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function Sp(e){return Object.freeze({...e,encode:t=>{const n=new Uint8Array(Ap(t,e));return e.write(t,n,0),n}})}function Ip(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function oo(e){return"fixedSize"in e&&typeof e.fixedSize=="number"}function Op(e,t){if(oo(e)!==oo(t))throw new ro(Ju);if(oo(e)&&oo(t)&&e.fixedSize!==t.fixedSize)throw new ro(Qu,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!oo(e)&&!oo(t)&&e.maxSize!==t.maxSize)throw new ro(e0,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function Np(e,t,n=0){if(t.length-n<=0)throw new ro(Xu,{codecDescription:e})}function Tp(e,t,n,r=0){const c=n.length-r;if(c<t)throw new ro(qu,{bytesLength:c,codecDescription:e,expected:t})}function xp(e,t,n){const r=e.byteOffset+(t??0),c=n??e.byteLength;let i;return typeof SharedArrayBuffer>"u"?i=e.buffer:e.buffer instanceof SharedArrayBuffer?(i=new ArrayBuffer(e.length),new Uint8Array(i).set(new Uint8Array(e))):i=e.buffer,(r===0||r===-e.byteLength)&&c===e.byteLength?i:i.slice(r,r+c)}function Lp(e,t,n,r){if(r<t||r>n)throw new ro(t0,{codecDescription:e,max:n,min:t,value:r})}function r0(e){return e?.endian!==1}function Cp(e){return Sp({fixedSize:e.size,write(t,n,r){e.range&&Lp(e.name,e.range[0],e.range[1],t);const c=new ArrayBuffer(e.size);return e.set(new DataView(c),t,r0(e.config)),n.set(new Uint8Array(c),r),r+e.size}})}function Mp(e){return Ip({fixedSize:e.size,read(t,n=0){Np(e.name,t,n),Tp(e.name,e.size,t,n);const r=new DataView(xp(t,n,e.size));return[e.get(r,r0(e.config)),n+e.size]}})}var Bp=(e={})=>Cp({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,n,r)=>t.setBigUint64(0,BigInt(n),r),size:8}),kp=(e={})=>Mp({config:e,get:(t,n)=>t.getBigUint64(0,n),name:"u64",size:8}),Dp=(e={})=>Op(Bp(e),kp(e));class Up extends TypeError{constructor(t,n){let r;const{message:c,explanation:i,...d}=t,{path:v}=t,l=v.length===0?c:`At path: ${v.join(".")} -- ${c}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...n()])}}function Pp(e){return Do(e)&&typeof e[Symbol.iterator]=="function"}function Do(e){return typeof e=="object"&&e!=null}function Fi(e){return Do(e)&&!Array.isArray(e)}function zn(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function Fp(e){const{done:t,value:n}=e.next();return t?void 0:n}function Vp(e,t,n,r){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:c,branch:i}=t,{type:d}=n,{refinement:v,message:l=`Expected a value of type \`${d}\`${v?` with refinement \`${v}\``:""}, but received: \`${zn(r)}\``}=e;return{value:r,type:d,refinement:v,key:c[c.length-1],path:c,branch:i,...e,message:l}}function*o0(e,t,n,r){Pp(e)||(e=[e]);for(const c of e){const i=Vp(c,t,n,r);i&&(yield i)}}function*ua(e,t,n={}){const{path:r=[],branch:c=[e],coerce:i=!1,mask:d=!1}=n,v={path:r,branch:c,mask:d};i&&(e=t.coercer(e,v));let l="valid";for(const y of t.validator(e,v))y.explanation=n.message,l="not_valid",yield[y,void 0];for(let[y,A,O]of t.entries(e,v)){const S=ua(A,O,{path:y===void 0?r:[...r,y],branch:y===void 0?c:[...c,A],coerce:i,mask:d,message:n.message});for(const I of S)I[0]?(l=I[0].refinement!=null?"not_refined":"not_valid",yield[I[0],void 0]):i&&(A=I[1],y===void 0?e=A:e instanceof Map?e.set(y,A):e instanceof Set?e.add(A):Do(e)&&(A!==void 0||y in e)&&(e[y]=A))}if(l!=="not_valid")for(const y of t.refiner(e,v))y.explanation=n.message,l="not_refined",yield[y,void 0];l==="valid"&&(yield[void 0,e])}let Qn=class{constructor(t){const{type:n,schema:r,validator:c,refiner:i,coercer:d=l=>l,entries:v=function*(){}}=t;this.type=n,this.schema=r,this.entries=v,this.coercer=d,c?this.validator=(l,y)=>{const A=c(l,y);return o0(A,y,this,l)}:this.validator=()=>[],i?this.refiner=(l,y)=>{const A=i(l,y);return o0(A,y,this,l)}:this.refiner=()=>[]}assert(t,n){return Gp(t,this,n)}create(t,n){return Uo(t,this,n)}is(t){return i0(t,this)}mask(t,n){return Hp(t,this,n)}validate(t,n={}){return Po(t,this,n)}};function Gp(e,t,n){const r=Po(e,t,{message:n});if(r[0])throw r[0]}function Uo(e,t,n){const r=Po(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Hp(e,t,n){const r=Po(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function i0(e,t){return!Po(e,t)[0]}function Po(e,t,n={}){const r=ua(e,t,n),c=Fp(r);return c[0]?[new Up(c[0],function*(){for(const d of r)d[0]&&(yield d[0])}),void 0]:[void 0,c[1]]}function Ur(e,t){return new Qn({type:e,schema:null,validator:t})}function $p(){return Ur("any",()=>!0)}function Je(e){return new Qn({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${zn(t)}`}})}function er(){return Ur("boolean",e=>typeof e=="boolean")}function fa(e){return Ur("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${zn(t)}`)}function Ut(e){const t=zn(e),n=typeof e;return new Qn({type:"literal",schema:n==="string"||n==="number"||n==="boolean"?e:null,validator(r){return r===e||`Expected the literal \`${t}\`, but received: ${zn(r)}`}})}function jp(){return Ur("never",()=>!1)}function Xe(e){return new Qn({...e,validator:(t,n)=>t===null||e.validator(t,n),refiner:(t,n)=>t===null||e.refiner(t,n)})}function Ie(){return Ur("number",e=>typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${zn(e)}`)}function nt(e){return new Qn({...e,validator:(t,n)=>t===void 0||e.validator(t,n),refiner:(t,n)=>t===void 0||e.refiner(t,n)})}function s0(e,t){return new Qn({type:"record",schema:null,*entries(n){if(Do(n))for(const r in n){const c=n[r];yield[r,r,e],yield[r,c,t]}},validator(n){return Fi(n)||`Expected an object, but received: ${zn(n)}`},coercer(n){return Fi(n)?{...n}:n}})}function Ze(){return Ur("string",e=>typeof e=="string"||`Expected a string, but received: ${zn(e)}`)}function la(e){const t=jp();return new Qn({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let c=0;c<r;c++)yield[c,n[c],e[c]||t]}},validator(n){return Array.isArray(n)||`Expected an array, but received: ${zn(n)}`},coercer(n){return Array.isArray(n)?n.slice():n}})}function Ge(e){const t=Object.keys(e);return new Qn({type:"type",schema:e,*entries(n){if(Do(n))for(const r of t)yield[r,n[r],e[r]]},validator(n){return Fi(n)||`Expected an object, but received: ${zn(n)}`},coercer(n){return Fi(n)?{...n}:n}})}function Tn(e){const t=e.map(n=>n.type).join(" | ");return new Qn({type:"union",schema:null,coercer(n,r){for(const c of e){const[i,d]=c.validate(n,{coerce:!0,mask:r.mask});if(!i)return d}return n},validator(n,r){const c=[];for(const i of e){const[...d]=ua(n,i,r),[v]=d;if(v[0])for(const[l]of d)l&&c.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${zn(n)}`,...c]}})}function io(){return Ur("unknown",()=>!0)}function Fo(e,t,n){return new Qn({...e,coercer:(r,c)=>i0(r,t)?e.coercer(n(r,c),c):e.coercer(r,c)})}var Vi,Kp=new Uint8Array(16);function a0(){if(!Vi&&(Vi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Vi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Vi(Kp)}const Wp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Gi(e){return typeof e=="string"&&Wp.test(e)}for(var vn=[],da=0;da<256;++da)vn.push((da+256).toString(16).substr(1));function Hi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(vn[e[t+0]]+vn[e[t+1]]+vn[e[t+2]]+vn[e[t+3]]+"-"+vn[e[t+4]]+vn[e[t+5]]+"-"+vn[e[t+6]]+vn[e[t+7]]+"-"+vn[e[t+8]]+vn[e[t+9]]+"-"+vn[e[t+10]]+vn[e[t+11]]+vn[e[t+12]]+vn[e[t+13]]+vn[e[t+14]]+vn[e[t+15]]).toLowerCase();if(!Gi(n))throw TypeError("Stringified UUID is invalid");return n}var c0,ha,pa=0,ma=0;function zp(e,t,n){var r=t&&n||0,c=t||new Array(16);e=e||{};var i=e.node||c0,d=e.clockseq!==void 0?e.clockseq:ha;if(i==null||d==null){var v=e.random||(e.rng||a0)();i==null&&(i=c0=[v[0]|1,v[1],v[2],v[3],v[4],v[5]]),d==null&&(d=ha=(v[6]<<8|v[7])&16383)}var l=e.msecs!==void 0?e.msecs:Date.now(),y=e.nsecs!==void 0?e.nsecs:ma+1,A=l-pa+(y-ma)/1e4;if(A<0&&e.clockseq===void 0&&(d=d+1&16383),(A<0||l>pa)&&e.nsecs===void 0&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");pa=l,ma=y,ha=d,l+=122192928e5;var O=((l&268435455)*1e4+y)%4294967296;c[r++]=O>>>24&255,c[r++]=O>>>16&255,c[r++]=O>>>8&255,c[r++]=O&255;var S=l/4294967296*1e4&268435455;c[r++]=S>>>8&255,c[r++]=S&255,c[r++]=S>>>24&15|16,c[r++]=S>>>16&255,c[r++]=d>>>8|128,c[r++]=d&255;for(var I=0;I<6;++I)c[r+I]=i[I];return t||Hi(c)}function u0(e){if(!Gi(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function Zp(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Yp="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Xp="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function f0(e,t,n){function r(c,i,d,v){if(typeof c=="string"&&(c=Zp(c)),typeof i=="string"&&(i=u0(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+c.length);if(l.set(i),l.set(c,i.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,d){v=v||0;for(var y=0;y<16;++y)d[v+y]=l[y];return d}return Hi(l)}try{r.name=e}catch{}return r.DNS=Yp,r.URL=Xp,r}function qp(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return Jp(Qp(e4(e),e.length*8))}function Jp(e){for(var t=[],n=e.length*32,r="0123456789abcdef",c=0;c<n;c+=8){var i=e[c>>5]>>>c%32&255,d=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(d)}return t}function l0(e){return(e+64>>>9<<4)+14+1}function Qp(e,t){e[t>>5]|=128<<t%32,e[l0(t)-1]=t;for(var n=1732584193,r=-271733879,c=-1732584194,i=271733878,d=0;d<e.length;d+=16){var v=n,l=r,y=c,A=i;n=Rn(n,r,c,i,e[d],7,-680876936),i=Rn(i,n,r,c,e[d+1],12,-389564586),c=Rn(c,i,n,r,e[d+2],17,606105819),r=Rn(r,c,i,n,e[d+3],22,-1044525330),n=Rn(n,r,c,i,e[d+4],7,-176418897),i=Rn(i,n,r,c,e[d+5],12,1200080426),c=Rn(c,i,n,r,e[d+6],17,-1473231341),r=Rn(r,c,i,n,e[d+7],22,-45705983),n=Rn(n,r,c,i,e[d+8],7,1770035416),i=Rn(i,n,r,c,e[d+9],12,-1958414417),c=Rn(c,i,n,r,e[d+10],17,-42063),r=Rn(r,c,i,n,e[d+11],22,-1990404162),n=Rn(n,r,c,i,e[d+12],7,1804603682),i=Rn(i,n,r,c,e[d+13],12,-40341101),c=Rn(c,i,n,r,e[d+14],17,-1502002290),r=Rn(r,c,i,n,e[d+15],22,1236535329),n=bn(n,r,c,i,e[d+1],5,-165796510),i=bn(i,n,r,c,e[d+6],9,-1069501632),c=bn(c,i,n,r,e[d+11],14,643717713),r=bn(r,c,i,n,e[d],20,-373897302),n=bn(n,r,c,i,e[d+5],5,-701558691),i=bn(i,n,r,c,e[d+10],9,38016083),c=bn(c,i,n,r,e[d+15],14,-660478335),r=bn(r,c,i,n,e[d+4],20,-405537848),n=bn(n,r,c,i,e[d+9],5,568446438),i=bn(i,n,r,c,e[d+14],9,-1019803690),c=bn(c,i,n,r,e[d+3],14,-187363961),r=bn(r,c,i,n,e[d+8],20,1163531501),n=bn(n,r,c,i,e[d+13],5,-1444681467),i=bn(i,n,r,c,e[d+2],9,-51403784),c=bn(c,i,n,r,e[d+7],14,1735328473),r=bn(r,c,i,n,e[d+12],20,-1926607734),n=An(n,r,c,i,e[d+5],4,-378558),i=An(i,n,r,c,e[d+8],11,-2022574463),c=An(c,i,n,r,e[d+11],16,1839030562),r=An(r,c,i,n,e[d+14],23,-35309556),n=An(n,r,c,i,e[d+1],4,-1530992060),i=An(i,n,r,c,e[d+4],11,1272893353),c=An(c,i,n,r,e[d+7],16,-155497632),r=An(r,c,i,n,e[d+10],23,-1094730640),n=An(n,r,c,i,e[d+13],4,681279174),i=An(i,n,r,c,e[d],11,-358537222),c=An(c,i,n,r,e[d+3],16,-722521979),r=An(r,c,i,n,e[d+6],23,76029189),n=An(n,r,c,i,e[d+9],4,-640364487),i=An(i,n,r,c,e[d+12],11,-421815835),c=An(c,i,n,r,e[d+15],16,530742520),r=An(r,c,i,n,e[d+2],23,-995338651),n=Sn(n,r,c,i,e[d],6,-198630844),i=Sn(i,n,r,c,e[d+7],10,1126891415),c=Sn(c,i,n,r,e[d+14],15,-1416354905),r=Sn(r,c,i,n,e[d+5],21,-57434055),n=Sn(n,r,c,i,e[d+12],6,1700485571),i=Sn(i,n,r,c,e[d+3],10,-1894986606),c=Sn(c,i,n,r,e[d+10],15,-1051523),r=Sn(r,c,i,n,e[d+1],21,-2054922799),n=Sn(n,r,c,i,e[d+8],6,1873313359),i=Sn(i,n,r,c,e[d+15],10,-30611744),c=Sn(c,i,n,r,e[d+6],15,-1560198380),r=Sn(r,c,i,n,e[d+13],21,1309151649),n=Sn(n,r,c,i,e[d+4],6,-145523070),i=Sn(i,n,r,c,e[d+11],10,-1120210379),c=Sn(c,i,n,r,e[d+2],15,718787259),r=Sn(r,c,i,n,e[d+9],21,-343485551),n=Er(n,v),r=Er(r,l),c=Er(c,y),i=Er(i,A)}return[n,r,c,i]}function e4(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(l0(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Er(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function t4(e,t){return e<<t|e>>>32-t}function $i(e,t,n,r,c,i){return Er(t4(Er(Er(t,e),Er(r,i)),c),n)}function Rn(e,t,n,r,c,i,d){return $i(t&n|~t&r,e,t,c,i,d)}function bn(e,t,n,r,c,i,d){return $i(t&r|n&~r,e,t,c,i,d)}function An(e,t,n,r,c,i,d){return $i(t^n^r,e,t,c,i,d)}function Sn(e,t,n,r,c,i,d){return $i(n^(t|~r),e,t,c,i,d)}var n4=f0("v3",48,qp);function r4(e,t,n){e=e||{};var r=e.random||(e.rng||a0)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var c=0;c<16;++c)t[n+c]=r[c];return t}return Hi(r)}function o4(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function ga(e,t){return e<<t|e>>>32-t}function i4(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var c=0;c<r.length;++c)e.push(r.charCodeAt(c))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,d=Math.ceil(i/16),v=new Array(d),l=0;l<d;++l){for(var y=new Uint32Array(16),A=0;A<16;++A)y[A]=e[l*64+A*4]<<24|e[l*64+A*4+1]<<16|e[l*64+A*4+2]<<8|e[l*64+A*4+3];v[l]=y}v[d-1][14]=(e.length-1)*8/Math.pow(2,32),v[d-1][14]=Math.floor(v[d-1][14]),v[d-1][15]=(e.length-1)*8&4294967295;for(var O=0;O<d;++O){for(var S=new Uint32Array(80),I=0;I<16;++I)S[I]=v[O][I];for(var B=16;B<80;++B)S[B]=ga(S[B-3]^S[B-8]^S[B-14]^S[B-16],1);for(var C=n[0],F=n[1],j=n[2],Q=n[3],W=n[4],ae=0;ae<80;++ae){var fe=Math.floor(ae/20),ie=ga(C,5)+o4(fe,F,j,Q)+W+t[fe]+S[ae]>>>0;W=Q,Q=j,j=ga(F,30)>>>0,F=C,C=ie}n[0]=n[0]+C>>>0,n[1]=n[1]+F>>>0,n[2]=n[2]+j>>>0,n[3]=n[3]+Q>>>0,n[4]=n[4]+W>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var s4=f0("v5",80,i4);const a4="00000000-0000-0000-0000-000000000000";function c4(e){if(!Gi(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const d0=Ps(Object.freeze(Object.defineProperty({__proto__:null,NIL:a4,parse:u0,stringify:Hi,v1:zp,v3:n4,v4:r4,v5:s4,validate:Gi,version:c4},Symbol.toStringTag,{value:"Module"})));var va,h0;function u4(){if(h0)return va;h0=1;const e=d0.v4;return va=function(n,r,c,i){if(typeof n!="string")throw new TypeError(n+" must be a string");i=i||{};const d=typeof i.version=="number"?i.version:2;if(d!==1&&d!==2)throw new TypeError(d+" must be 1 or 2");const v={method:n};if(d===2&&(v.jsonrpc="2.0"),r){if(typeof r!="object"&&!Array.isArray(r))throw new TypeError(r+" must be an object, array or omitted");v.params=r}if(typeof c>"u"){const l=typeof i.generator=="function"?i.generator:function(){return e()};v.id=l(v,i)}else d===2&&c===null?i.notificationIdNull&&(v.id=null):v.id=c;return v},va}var ya,p0;function f4(){if(p0)return ya;p0=1;const e=d0.v4,t=u4(),n=function(r,c){if(!(this instanceof n))return new n(r,c);c||(c={}),this.options={reviver:typeof c.reviver<"u"?c.reviver:null,replacer:typeof c.replacer<"u"?c.replacer:null,generator:typeof c.generator<"u"?c.generator:function(){return e()},version:typeof c.version<"u"?c.version:2,notificationIdNull:typeof c.notificationIdNull=="boolean"?c.notificationIdNull:!1},this.callServer=r};return ya=n,n.prototype.request=function(r,c,i,d){const v=this;let l=null;const y=Array.isArray(r)&&typeof c=="function";if(this.options.version===1&&y)throw new TypeError("JSON-RPC 1.0 does not support batching");if(y||!y&&r&&typeof r=="object"&&typeof c=="function")d=c,l=r;else{typeof i=="function"&&(d=i,i=void 0);const S=typeof d=="function";try{l=t(r,c,i,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(I){if(S){d(I);return}throw I}if(!S)return l}let O;try{O=JSON.stringify(l,this.options.replacer)}catch(S){d(S);return}return this.callServer(O,function(S,I){v._parseResponse(S,I,d)}),l},n.prototype._parseResponse=function(r,c,i){if(r){i(r);return}if(!c){i();return}let d;try{d=JSON.parse(c,this.options.reviver)}catch(v){i(v);return}if(i.length===3)if(Array.isArray(d)){const v=function(y){return typeof y.error<"u"},l=function(y){return!v(y)};i(null,d.filter(v),d.filter(l));return}else{i(null,d.error,d.result);return}i(null,d)},ya}f4();var wa={exports:{}},m0;function l4(){return m0||(m0=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function c(l,y,A){this.fn=l,this.context=y,this.once=A||!1}function i(l,y,A,O,S){if(typeof A!="function")throw new TypeError("The listener must be a function");var I=new c(A,O||l,S),B=n?n+y:y;return l._events[B]?l._events[B].fn?l._events[B]=[l._events[B],I]:l._events[B].push(I):(l._events[B]=I,l._eventsCount++),l}function d(l,y){--l._eventsCount===0?l._events=new r:delete l._events[y]}function v(){this._events=new r,this._eventsCount=0}v.prototype.eventNames=function(){var y=[],A,O;if(this._eventsCount===0)return y;for(O in A=this._events)t.call(A,O)&&y.push(n?O.slice(1):O);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(A)):y},v.prototype.listeners=function(y){var A=n?n+y:y,O=this._events[A];if(!O)return[];if(O.fn)return[O.fn];for(var S=0,I=O.length,B=new Array(I);S<I;S++)B[S]=O[S].fn;return B},v.prototype.listenerCount=function(y){var A=n?n+y:y,O=this._events[A];return O?O.fn?1:O.length:0},v.prototype.emit=function(y,A,O,S,I,B){var C=n?n+y:y;if(!this._events[C])return!1;var F=this._events[C],j=arguments.length,Q,W;if(F.fn){switch(F.once&&this.removeListener(y,F.fn,void 0,!0),j){case 1:return F.fn.call(F.context),!0;case 2:return F.fn.call(F.context,A),!0;case 3:return F.fn.call(F.context,A,O),!0;case 4:return F.fn.call(F.context,A,O,S),!0;case 5:return F.fn.call(F.context,A,O,S,I),!0;case 6:return F.fn.call(F.context,A,O,S,I,B),!0}for(W=1,Q=new Array(j-1);W<j;W++)Q[W-1]=arguments[W];F.fn.apply(F.context,Q)}else{var ae=F.length,fe;for(W=0;W<ae;W++)switch(F[W].once&&this.removeListener(y,F[W].fn,void 0,!0),j){case 1:F[W].fn.call(F[W].context);break;case 2:F[W].fn.call(F[W].context,A);break;case 3:F[W].fn.call(F[W].context,A,O);break;case 4:F[W].fn.call(F[W].context,A,O,S);break;default:if(!Q)for(fe=1,Q=new Array(j-1);fe<j;fe++)Q[fe-1]=arguments[fe];F[W].fn.apply(F[W].context,Q)}}return!0},v.prototype.on=function(y,A,O){return i(this,y,A,O,!1)},v.prototype.once=function(y,A,O){return i(this,y,A,O,!0)},v.prototype.removeListener=function(y,A,O,S){var I=n?n+y:y;if(!this._events[I])return this;if(!A)return d(this,I),this;var B=this._events[I];if(B.fn)B.fn===A&&(!S||B.once)&&(!O||B.context===O)&&d(this,I);else{for(var C=0,F=[],j=B.length;C<j;C++)(B[C].fn!==A||S&&!B[C].once||O&&B[C].context!==O)&&F.push(B[C]);F.length?this._events[I]=F.length===1?F[0]:F:d(this,I)}return this},v.prototype.removeAllListeners=function(y){var A;return y?(A=n?n+y:y,this._events[A]&&d(this,A)):(this._events=new r,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prefixed=n,v.EventEmitter=v,e.exports=v})(wa)),wa.exports}l4();class g0 extends nu{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Qc(t);const r=$s(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const c=this.blockLen,i=new Uint8Array(c);i.set(r.length>c?t.create().update(r).digest():r);for(let d=0;d<i.length;d++)i[d]^=54;this.iHash.update(i),this.oHash=t.create();for(let d=0;d<i.length;d++)i[d]^=106;this.oHash.update(i),Jr(i)}update(t){return bi(this),this.iHash.update(t),this}digestInto(t){bi(this),xr(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:c,destroyed:i,blockLen:d,outputLen:v}=this;return t=t,t.finished=c,t.destroyed=i,t.blockLen=d,t.outputLen=v,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const v0=(e,t,n)=>new g0(e,t).update(n).digest();v0.create=(e,t)=>new g0(e,t);const y0=(e,t)=>(e+(e>=0?t:-t)/w0)/t;function d4(e,t,n){const[[r,c],[i,d]]=t,v=y0(d*e,n),l=y0(-c*e,n);let y=e-v*r-l*i,A=-v*c-l*d;const O=y<fr,S=A<fr;O&&(y=-y),S&&(A=-A);const I=Mo(Math.ceil(hu(n)/2))+so;if(y<fr||y>=I||A<fr||A>=I)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:O,k1:y,k2neg:S,k2:A}}function _a(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Ea(e,t){const n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return Cr(n.lowS,"lowS"),Cr(n.prehash,"prehash"),n.format!==void 0&&_a(n.format),n}class h4 extends Error{constructor(t=""){super(t)}}const ur={Err:h4,_tlv:{encode:(e,t)=>{const{Err:n}=ur;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,c=Ni(r);if(c.length/2&128)throw new n("tlv.encode: long form length too big");const i=r>127?Ni(c.length/2|128):"";return Ni(e)+i+c+t},decode(e,t){const{Err:n}=ur;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const c=t[r++],i=!!(c&128);let d=0;if(!i)d=c;else{const l=c&127;if(!l)throw new n("tlv.decode(long): indefinite length not supported");if(l>4)throw new n("tlv.decode(long): byte length is too big");const y=t.subarray(r,r+l);if(y.length!==l)throw new n("tlv.decode: length bytes not complete");if(y[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const A of y)d=d<<8|A;if(r+=l,d<128)throw new n("tlv.decode(long): not minimal encoding")}const v=t.subarray(r,r+d);if(v.length!==d)throw new n("tlv.decode: wrong value length");return{v,l:t.subarray(r+d)}}},_int:{encode(e){const{Err:t}=ur;if(e<fr)throw new t("integer: negative integers are not allowed");let n=Ni(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=ur;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Ti(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=ur,c=jt("signature",e),{v:i,l:d}=r.decode(48,c);if(d.length)throw new t("invalid signature: left bytes after parsing");const{v,l}=r.decode(2,i),{v:y,l:A}=r.decode(2,l);if(A.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(v),s:n.decode(y)}},hexFromSig(e){const{_tlv:t,_int:n}=ur,r=t.encode(2,n.encode(e.r)),c=t.encode(2,n.encode(e.s)),i=r+c;return t.encode(48,i)}},fr=BigInt(0),so=BigInt(1),w0=BigInt(2),ji=BigInt(3),p4=BigInt(4);function ao(e,t){const{BYTES:n}=e;let r;if(typeof t=="bigint")r=t;else{let c=jt("private key",t);try{r=e.fromBytes(c)}catch{throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function m4(e,t={}){const n=Bu("weierstrass",e,t),{Fp:r,Fn:c}=n;let i=n.CURVE;const{h:d,n:v}=i;Bo(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:l}=t;if(l&&(!r.is0(i.a)||typeof l.beta!="bigint"||!Array.isArray(l.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const y=E0(r,c);function A(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function O(ge,k,f){const{x:R,y:M}=k.toAffine(),$=r.toBytes(R);if(Cr(f,"isCompressed"),f){A();const Z=!r.isOdd(M);return qn(_0(Z),$)}else return qn(Uint8Array.of(4),$,r.toBytes(M))}function S(ge){Wn(ge,void 0,"Point");const{publicKey:k,publicKeyUncompressed:f}=y,R=ge.length,M=ge[0],$=ge.subarray(1);if(R===k&&(M===2||M===3)){const Z=r.fromBytes($);if(!r.isValid(Z))throw new Error("bad point: is not on curve, wrong x");const te=C(Z);let ce;try{ce=r.sqrt(te)}catch(_){const H=_ instanceof Error?": "+_.message:"";throw new Error("bad point: is not on curve, sqrt error"+H)}A();const K=r.isOdd(ce);return(M&1)===1!==K&&(ce=r.neg(ce)),{x:Z,y:ce}}else if(R===f&&M===4){const Z=r.BYTES,te=r.fromBytes($.subarray(0,Z)),ce=r.fromBytes($.subarray(Z,Z*2));if(!F(te,ce))throw new Error("bad point: is not on curve");return{x:te,y:ce}}else throw new Error(`bad point: got length ${R}, expected compressed=${k} or uncompressed=${f}`)}const I=t.toBytes||O,B=t.fromBytes||S;function C(ge){const k=r.sqr(ge),f=r.mul(k,ge);return r.add(r.add(f,r.mul(ge,i.a)),i.b)}function F(ge,k){const f=r.sqr(k),R=C(ge);return r.eql(f,R)}if(!F(i.Gx,i.Gy))throw new Error("bad curve params: generator point");const j=r.mul(r.pow(i.a,ji),p4),Q=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(j,Q)))throw new Error("bad curve params: a or b");function W(ge,k,f=!1){if(!r.isValid(k)||f&&r.is0(k))throw new Error(`bad point coordinate ${ge}`);return k}function ae(ge){if(!(ge instanceof re))throw new Error("ProjectivePoint expected")}function fe(ge){if(!l||!l.basises)throw new Error("no endo");return d4(ge,l.basises,c.ORDER)}const ie=xi((ge,k)=>{const{X:f,Y:R,Z:M}=ge;if(r.eql(M,r.ONE))return{x:f,y:R};const $=ge.is0();k==null&&(k=$?r.ONE:r.inv(M));const Z=r.mul(f,k),te=r.mul(R,k),ce=r.mul(M,k);if($)return{x:r.ZERO,y:r.ZERO};if(!r.eql(ce,r.ONE))throw new Error("invZ was invalid");return{x:Z,y:te}}),Ee=xi(ge=>{if(ge.is0()){if(t.allowInfinityPoint&&!r.is0(ge.Y))return;throw new Error("bad point: ZERO")}const{x:k,y:f}=ge.toAffine();if(!r.isValid(k)||!r.isValid(f))throw new Error("bad point: x or y not field elements");if(!F(k,f))throw new Error("bad point: equation left != right");if(!ge.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function Re(ge,k,f,R,M){return f=new re(r.mul(f.X,ge),f.Y,f.Z),k=Li(R,k),f=Li(M,f),k.add(f)}class re{constructor(k,f,R){this.X=W("x",k),this.Y=W("y",f,!0),this.Z=W("z",R),Object.freeze(this)}static CURVE(){return i}static fromAffine(k){const{x:f,y:R}=k||{};if(!k||!r.isValid(f)||!r.isValid(R))throw new Error("invalid affine point");if(k instanceof re)throw new Error("projective point not allowed");return r.is0(f)&&r.is0(R)?re.ZERO:new re(f,R,r.ONE)}static fromBytes(k){const f=re.fromAffine(B(Wn(k,void 0,"point")));return f.assertValidity(),f}static fromHex(k){return re.fromBytes(jt("pointHex",k))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(k=8,f=!0){return de.createCache(this,k),f||this.multiply(ji),this}assertValidity(){Ee(this)}hasEvenY(){const{y:k}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(k)}equals(k){ae(k);const{X:f,Y:R,Z:M}=this,{X:$,Y:Z,Z:te}=k,ce=r.eql(r.mul(f,te),r.mul($,M)),K=r.eql(r.mul(R,te),r.mul(Z,M));return ce&&K}negate(){return new re(this.X,r.neg(this.Y),this.Z)}double(){const{a:k,b:f}=i,R=r.mul(f,ji),{X:M,Y:$,Z}=this;let te=r.ZERO,ce=r.ZERO,K=r.ZERO,g=r.mul(M,M),_=r.mul($,$),H=r.mul(Z,Z),q=r.mul(M,$);return q=r.add(q,q),K=r.mul(M,Z),K=r.add(K,K),te=r.mul(k,K),ce=r.mul(R,H),ce=r.add(te,ce),te=r.sub(_,ce),ce=r.add(_,ce),ce=r.mul(te,ce),te=r.mul(q,te),K=r.mul(R,K),H=r.mul(k,H),q=r.sub(g,H),q=r.mul(k,q),q=r.add(q,K),K=r.add(g,g),g=r.add(K,g),g=r.add(g,H),g=r.mul(g,q),ce=r.add(ce,g),H=r.mul($,Z),H=r.add(H,H),g=r.mul(H,q),te=r.sub(te,g),K=r.mul(H,_),K=r.add(K,K),K=r.add(K,K),new re(te,ce,K)}add(k){ae(k);const{X:f,Y:R,Z:M}=this,{X:$,Y:Z,Z:te}=k;let ce=r.ZERO,K=r.ZERO,g=r.ZERO;const _=i.a,H=r.mul(i.b,ji);let q=r.mul(f,$),me=r.mul(R,Z),ye=r.mul(M,te),Ue=r.add(f,R),We=r.add($,Z);Ue=r.mul(Ue,We),We=r.add(q,me),Ue=r.sub(Ue,We),We=r.add(f,M);let st=r.add($,te);return We=r.mul(We,st),st=r.add(q,ye),We=r.sub(We,st),st=r.add(R,M),ce=r.add(Z,te),st=r.mul(st,ce),ce=r.add(me,ye),st=r.sub(st,ce),g=r.mul(_,We),ce=r.mul(H,ye),g=r.add(ce,g),ce=r.sub(me,g),g=r.add(me,g),K=r.mul(ce,g),me=r.add(q,q),me=r.add(me,q),ye=r.mul(_,ye),We=r.mul(H,We),me=r.add(me,ye),ye=r.sub(q,ye),ye=r.mul(_,ye),We=r.add(We,ye),q=r.mul(me,We),K=r.add(K,q),q=r.mul(st,We),ce=r.mul(Ue,ce),ce=r.sub(ce,q),q=r.mul(Ue,me),g=r.mul(st,g),g=r.add(g,q),new re(ce,K,g)}subtract(k){return this.add(k.negate())}is0(){return this.equals(re.ZERO)}multiply(k){const{endo:f}=t;if(!c.isValidNot0(k))throw new Error("invalid scalar: out of range");let R,M;const $=Z=>de.cached(this,Z,te=>Dr(re,te));if(f){const{k1neg:Z,k1:te,k2neg:ce,k2:K}=fe(k),{p:g,f:_}=$(te),{p:H,f:q}=$(K);M=_.add(q),R=Re(f.beta,g,H,Z,ce)}else{const{p:Z,f:te}=$(k);R=Z,M=te}return Dr(re,[R,M])[0]}multiplyUnsafe(k){const{endo:f}=t,R=this;if(!c.isValid(k))throw new Error("invalid scalar: out of range");if(k===fr||R.is0())return re.ZERO;if(k===so)return R;if(de.hasCache(this))return this.multiply(k);if(f){const{k1neg:M,k1:$,k2neg:Z,k2:te}=fe(k),{p1:ce,p2:K}=th(re,R,$,te);return Re(f.beta,ce,K,M,Z)}else return de.unsafe(R,k)}multiplyAndAddUnsafe(k,f,R){const M=this.multiplyUnsafe(f).add(k.multiplyUnsafe(R));return M.is0()?void 0:M}toAffine(k){return ie(this,k)}isTorsionFree(){const{isTorsionFree:k}=t;return d===so?!0:k?k(re,this):de.unsafe(this,v).is0()}clearCofactor(){const{clearCofactor:k}=t;return d===so?this:k?k(re,this):this.multiplyUnsafe(d)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}toBytes(k=!0){return Cr(k,"isCompressed"),this.assertValidity(),I(re,this,k)}toHex(k=!0){return Lr(this.toBytes(k))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(k=!0){return this.toBytes(k)}_setWindowSize(k){this.precompute(k)}static normalizeZ(k){return Dr(re,k)}static msm(k,f){return Cu(re,c,k,f)}static fromPrivateKey(k){return re.BASE.multiply(ao(c,k))}}re.BASE=new re(i.Gx,i.Gy,r.ONE),re.ZERO=new re(r.ZERO,r.ONE,r.ZERO),re.Fp=r,re.Fn=c;const se=c.BITS,de=new Lu(re,t.endo?Math.ceil(se/2):se);return re.BASE.precompute(8),re}function _0(e){return Uint8Array.of(e?2:3)}function E0(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function g4(e,t={}){const{Fn:n}=e,r=t.randomBytes||js,c=Object.assign(E0(e.Fp,n),{seed:Iu(n.ORDER)});function i(I){try{return!!ao(n,I)}catch{return!1}}function d(I,B){const{publicKey:C,publicKeyUncompressed:F}=c;try{const j=I.length;return B===!0&&j!==C||B===!1&&j!==F?!1:!!e.fromBytes(I)}catch{return!1}}function v(I=r(c.seed)){return Jd(Wn(I,c.seed,"seed"),n.ORDER)}function l(I,B=!0){return e.BASE.multiply(ao(n,I)).toBytes(B)}function y(I){const B=v(I);return{secretKey:B,publicKey:l(B)}}function A(I){if(typeof I=="bigint")return!1;if(I instanceof e)return!0;const{secretKey:B,publicKey:C,publicKeyUncompressed:F}=c;if(n.allowedLengths||B===C)return;const j=jt("key",I).length;return j===C||j===F}function O(I,B,C=!0){if(A(I)===!0)throw new Error("first arg must be private key");if(A(B)===!1)throw new Error("second arg must be public key");const F=ao(n,I);return e.fromHex(B).multiply(F).toBytes(C)}return Object.freeze({getPublicKey:l,getSharedSecret:O,keygen:y,Point:e,utils:{isValidSecretKey:i,isValidPublicKey:d,randomSecretKey:v,isValidPrivateKey:i,randomPrivateKey:v,normPrivateKeyToScalar:I=>ao(n,I),precompute(I=8,B=e.BASE){return B.precompute(I,!1)}},lengths:c})}function v4(e,t,n={}){Qc(t),Bo(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||js,c=n.hmac||((f,...R)=>v0(t,f,qn(...R))),{Fp:i,Fn:d}=e,{ORDER:v,BITS:l}=d,{keygen:y,getPublicKey:A,getSharedSecret:O,utils:S,lengths:I}=g4(e,n),B={prehash:!1,lowS:typeof n.lowS=="boolean"?n.lowS:!1,format:void 0,extraEntropy:!1},C="compact";function F(f){const R=v>>so;return f>R}function j(f,R){if(!d.isValidNot0(R))throw new Error(`invalid signature ${f}: out of range 1..Point.Fn.ORDER`);return R}function Q(f,R){_a(R);const M=I.signature,$=R==="compact"?M:R==="recovered"?M+1:void 0;return Wn(f,$,`${R} signature`)}class W{constructor(R,M,$){this.r=j("r",R),this.s=j("s",M),$!=null&&(this.recovery=$),Object.freeze(this)}static fromBytes(R,M=C){Q(R,M);let $;if(M==="der"){const{r:K,s:g}=ur.toSig(Wn(R));return new W(K,g)}M==="recovered"&&($=R[0],M="compact",R=R.subarray(1));const Z=d.BYTES,te=R.subarray(0,Z),ce=R.subarray(Z,Z*2);return new W(d.fromBytes(te),d.fromBytes(ce),$)}static fromHex(R,M){return this.fromBytes(Ai(R),M)}addRecoveryBit(R){return new W(this.r,this.s,R)}recoverPublicKey(R){const M=i.ORDER,{r:$,s:Z,recovery:te}=this;if(te==null||![0,1,2,3].includes(te))throw new Error("recovery id invalid");if(v*w0<M&&te>1)throw new Error("recovery id is ambiguous for h>1 curve");const K=te===2||te===3?$+v:$;if(!i.isValid(K))throw new Error("recovery id 2 or 3 invalid");const g=i.toBytes(K),_=e.fromBytes(qn(_0((te&1)===0),g)),H=d.inv(K),q=fe(jt("msgHash",R)),me=d.create(-q*H),ye=d.create(Z*H),Ue=e.BASE.multiplyUnsafe(me).add(_.multiplyUnsafe(ye));if(Ue.is0())throw new Error("point at infinify");return Ue.assertValidity(),Ue}hasHighS(){return F(this.s)}toBytes(R=C){if(_a(R),R==="der")return Ai(ur.hexFromSig(this));const M=d.toBytes(this.r),$=d.toBytes(this.s);if(R==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return qn(Uint8Array.of(this.recovery),M,$)}return qn(M,$)}toHex(R){return Lr(this.toBytes(R))}assertValidity(){}static fromCompact(R){return W.fromBytes(jt("sig",R),"compact")}static fromDER(R){return W.fromBytes(jt("sig",R),"der")}normalizeS(){return this.hasHighS()?new W(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Lr(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Lr(this.toBytes("compact"))}}const ae=n.bits2int||function(R){if(R.length>8192)throw new Error("input is too large");const M=Ti(R),$=R.length*8-l;return $>0?M>>BigInt($):M},fe=n.bits2int_modN||function(R){return d.create(ae(R))},ie=Mo(l);function Ee(f){return Ys("num < 2^"+l,f,fr,ie),d.toBytes(f)}function Re(f,R){return Wn(f,void 0,"message"),R?Wn(t(f),void 0,"prehashed message"):f}function re(f,R,M){if(["recovered","canonical"].some(me=>me in M))throw new Error("sign() legacy options not supported");const{lowS:$,prehash:Z,extraEntropy:te}=Ea(M,B);f=Re(f,Z);const ce=fe(f),K=ao(d,R),g=[Ee(K),Ee(ce)];if(te!=null&&te!==!1){const me=te===!0?r(I.secretKey):te;g.push(jt("extraEntropy",me))}const _=qn(...g),H=ce;function q(me){const ye=ae(me);if(!d.isValidNot0(ye))return;const Ue=d.inv(ye),We=e.BASE.multiply(ye).toAffine(),st=d.create(We.x);if(st===fr)return;const at=d.create(Ue*d.create(H+st*K));if(at===fr)return;let ut=(We.x===st?0:2)|Number(We.y&so),Et=at;return $&&F(at)&&(Et=d.neg(at),ut^=1),new W(st,Et,ut)}return{seed:_,k2sig:q}}function se(f,R,M={}){f=jt("message",f);const{seed:$,k2sig:Z}=re(f,R,M);return Hd(t.outputLen,d.BYTES,c)($,Z)}function de(f){let R;const M=typeof f=="string"||Lo(f),$=!M&&f!==null&&typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint";if(!M&&!$)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if($)R=new W(f.r,f.s);else if(M){try{R=W.fromBytes(jt("sig",f),"der")}catch(Z){if(!(Z instanceof ur.Err))throw Z}if(!R)try{R=W.fromBytes(jt("sig",f),"compact")}catch{return!1}}return R||!1}function ge(f,R,M,$={}){const{lowS:Z,prehash:te,format:ce}=Ea($,B);if(M=jt("publicKey",M),R=Re(jt("message",R),te),"strict"in $)throw new Error("options.strict was renamed to lowS");const K=ce===void 0?de(f):W.fromBytes(jt("sig",f),ce);if(K===!1)return!1;try{const g=e.fromBytes(M);if(Z&&K.hasHighS())return!1;const{r:_,s:H}=K,q=fe(R),me=d.inv(H),ye=d.create(q*me),Ue=d.create(_*me),We=e.BASE.multiplyUnsafe(ye).add(g.multiplyUnsafe(Ue));return We.is0()?!1:d.create(We.x)===_}catch{return!1}}function k(f,R,M={}){const{prehash:$}=Ea(M,B);return R=Re(R,$),W.fromBytes(f,"recovered").recoverPublicKey(R).toBytes()}return Object.freeze({keygen:y,getPublicKey:A,getSharedSecret:O,utils:S,lengths:I,Point:e,sign:se,verify:ge,recoverPublicKey:k,Signature:W,hash:t})}function y4(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(d=>Math.ceil(d/2)))):void 0;const c=Br(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),i={Fp:n,Fn:c,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}function w4(e){const{CURVE:t,curveOpts:n}=y4(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function _4(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,Au(n.Fn.ORDER,n.Fn.BITS))})}function E4(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:c}=w4(e),i=m4(t,n),d=v4(i,r,c);return _4(e,d)}function R4(e,t){const n=r=>E4({...e,hash:r});return{...n(t),create:n}}const Ra={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},b4={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},R0=BigInt(2);function A4(e){const t=Ra.p,n=BigInt(3),r=BigInt(6),c=BigInt(11),i=BigInt(22),d=BigInt(23),v=BigInt(44),l=BigInt(88),y=e*e*e%t,A=y*y*e%t,O=Kt(A,n,t)*A%t,S=Kt(O,n,t)*A%t,I=Kt(S,R0,t)*y%t,B=Kt(I,c,t)*I%t,C=Kt(B,i,t)*B%t,F=Kt(C,v,t)*C%t,j=Kt(F,l,t)*F%t,Q=Kt(j,v,t)*C%t,W=Kt(Q,n,t)*A%t,ae=Kt(W,d,t)*B%t,fe=Kt(ae,r,t)*y%t,ie=Kt(fe,R0,t);if(!ba.eql(ba.sqr(ie),e))throw new Error("Cannot find square root");return ie}const ba=Br(Ra.p,{sqrt:A4}),S4=R4({...Ra,Fp:ba,lowS:!0,endo:b4},uu);ko.utils.randomPrivateKey,ko.getPublicKey;function b0(e){try{return ko.ExtendedPoint.fromHex(e),!0}catch{return!1}}const A0=(e,t)=>ko.sign(e,t.slice(0,32)),I4=ko.verify,Aa=e=>wt.Buffer.isBuffer(e)?e:e instanceof Uint8Array?wt.Buffer.from(e.buffer,e.byteOffset,e.byteLength):wt.Buffer.from(e);class S0{constructor(t){Object.assign(this,t)}encode(){return wt.Buffer.from(ca.serialize(Vo,this))}static decode(t){return ca.deserialize(Vo,this,t)}static decodeUnchecked(t){return ca.deserializeUnchecked(Vo,this,t)}}const Vo=new Map;var I0;const O0=32,Zn=32;function O4(e){return e._bn!==void 0}let N0=1;class ft extends S0{constructor(t){if(super({}),this._bn=void 0,O4(t))this._bn=t._bn;else{if(typeof t=="string"){const n=En.decode(t);if(n.length!=Zn)throw new Error("Invalid public key input");this._bn=new Vu(n)}else this._bn=new Vu(t);if(this._bn.byteLength()>Zn)throw new Error("Invalid public key input")}}static unique(){const t=new ft(N0);return N0+=1,new ft(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return En.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(wt.Buffer);if(t.length===Zn)return t;const n=wt.Buffer.alloc(32);return t.copy(n,32-t.length),n}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,n,r){const c=wt.Buffer.concat([t.toBuffer(),wt.Buffer.from(n),r.toBuffer()]),i=Ku(c);return new ft(i)}static createProgramAddressSync(t,n){let r=wt.Buffer.alloc(0);t.forEach(function(i){if(i.length>O0)throw new TypeError("Max seed length exceeded");r=wt.Buffer.concat([r,Aa(i)])}),r=wt.Buffer.concat([r,n.toBuffer(),wt.Buffer.from("ProgramDerivedAddress")]);const c=Ku(r);if(b0(c))throw new Error("Invalid seeds, address must fall off the curve");return new ft(c)}static async createProgramAddress(t,n){return this.createProgramAddressSync(t,n)}static findProgramAddressSync(t,n){let r=255,c;for(;r!=0;){try{const i=t.concat(wt.Buffer.from([r]));c=this.createProgramAddressSync(i,n)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[c,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,n){return this.findProgramAddressSync(t,n)}static isOnCurve(t){const n=new ft(t);return b0(n.toBytes())}}I0=ft,ft.default=new I0("11111111111111111111111111111111"),Vo.set(ft,{kind:"struct",fields:[["_bn","u256"]]}),new ft("BPFLoader1111111111111111111111111111111111");const Pr=1232,Go=127,Rr=64,T0=129;class co{constructor(t,n){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const n of this.keySegments()){if(t<n.length)return n[t];t-=n.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const r=new Map;this.keySegments().flat().forEach((i,d)=>{r.set(i.toBase58(),d)});const c=i=>{const d=r.get(i.toBase58());if(d===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return d};return t.map(i=>({programIdIndex:c(i.programId),accountKeyIndexes:i.keys.map(d=>c(d.pubkey)),data:i.data}))}}const _t=(e="publicKey")=>le.blob(32,e),N4=(e="signature")=>le.blob(64,e),uo=(e="string")=>{const t=le.struct([le.u32("length"),le.u32("lengthPadding"),le.blob(le.offset(le.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),c=t;return c.decode=(i,d)=>n(i,d).chars.toString(),c.encode=(i,d,v)=>{const l={chars:wt.Buffer.from(i,"utf8")};return r(l,d,v)},c.alloc=i=>le.u32().span+le.u32().span+wt.Buffer.from(i,"utf8").length,c},T4=(e="authorized")=>le.struct([_t("staker"),_t("withdrawer")],e),x4=(e="lockup")=>le.struct([le.ns64("unixTimestamp"),le.ns64("epoch"),_t("custodian")],e),L4=(e="voteInit")=>le.struct([_t("nodePubkey"),_t("authorizedVoter"),_t("authorizedWithdrawer"),le.u8("commission")],e),C4=(e="voteAuthorizeWithSeedArgs")=>le.struct([le.u32("voteAuthorizationType"),_t("currentAuthorityDerivedKeyOwnerPubkey"),uo("currentAuthorityDerivedKeySeed"),_t("newAuthorized")],e);function Bn(e){let t=0,n=0;for(;;){let r=e.shift();if(t|=(r&127)<<n*7,n+=1,(r&128)===0)break}return t}function kn(e,t){let n=t;for(;;){let r=n&127;if(n>>=7,n==0){e.push(r);break}else r|=128,e.push(r)}}function Lt(e,t){if(!e)throw new Error(t||"Assertion failed")}class Ki{constructor(t,n){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}static compile(t,n){const r=new Map,c=d=>{const v=d.toBase58();let l=r.get(v);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(v,l)),l},i=c(n);i.isSigner=!0,i.isWritable=!0;for(const d of t){c(d.programId).isInvoked=!0;for(const v of d.keys){const l=c(v.pubkey);l.isSigner||=v.isSigner,l.isWritable||=v.isWritable}}return new Ki(n,r)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];Lt(t.length<=256,"Max static account keys length exceeded");const n=t.filter(([,l])=>l.isSigner&&l.isWritable),r=t.filter(([,l])=>l.isSigner&&!l.isWritable),c=t.filter(([,l])=>!l.isSigner&&l.isWritable),i=t.filter(([,l])=>!l.isSigner&&!l.isWritable),d={numRequiredSignatures:n.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:i.length};{Lt(n.length>0,"Expected at least one writable signer key");const[l]=n[0];Lt(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const v=[...n.map(([l])=>new ft(l)),...r.map(([l])=>new ft(l)),...c.map(([l])=>new ft(l)),...i.map(([l])=>new ft(l))];return[d,v]}extractTableLookup(t){const[n,r]=this.drainKeysFoundInLookupTable(t.state.addresses,d=>!d.isSigner&&!d.isInvoked&&d.isWritable),[c,i]=this.drainKeysFoundInLookupTable(t.state.addresses,d=>!d.isSigner&&!d.isInvoked&&!d.isWritable);if(!(n.length===0&&c.length===0))return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:c},{writable:r,readonly:i}]}drainKeysFoundInLookupTable(t,n){const r=new Array,c=new Array;for(const[i,d]of this.keyMetaMap.entries())if(n(d)){const v=new ft(i),l=t.findIndex(y=>y.equals(v));l>=0&&(Lt(l<256,"Max lookup table index exceeded"),r.push(l),c.push(v),this.keyMetaMap.delete(i))}return[r,c]}}const x0="Reached end of buffer unexpectedly";function sn(e){if(e.length===0)throw new Error(x0);return e.shift()}function an(e,...t){const[n]=t;if(t.length===2?n+(t[1]??0)>e.length:n>=e.length)throw new Error(x0);return e.splice(...t)}class Fr{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(n=>new ft(n)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(n=>this.indexToProgramIds.set(n.programIdIndex,this.accountKeys[n.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:En.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new co(this.staticAccountKeys)}static compile(t){const n=Ki.compile(t.instructions,t.payerKey),[r,c]=n.getMessageComponents(),d=new co(c).compileInstructions(t.instructions).map(v=>({programIdIndex:v.programIdIndex,accounts:v.accountKeyIndexes,data:En.encode(v.data)}));return new Fr({header:r,accountKeys:c,recentBlockhash:t.recentBlockhash,instructions:d})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const r=t-n,i=this.accountKeys.length-n-this.header.numReadonlyUnsignedAccounts;return r<i}else{const r=n-this.header.numReadonlySignedAccounts;return t<r}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,n)=>!this.isProgramId(n))}serialize(){const t=this.accountKeys.length;let n=[];kn(n,t);const r=this.instructions.map(O=>{const{accounts:S,programIdIndex:I}=O,B=Array.from(En.decode(O.data));let C=[];kn(C,S.length);let F=[];return kn(F,B.length),{programIdIndex:I,keyIndicesCount:wt.Buffer.from(C),keyIndices:S,dataLength:wt.Buffer.from(F),data:B}});let c=[];kn(c,r.length);let i=wt.Buffer.alloc(Pr);wt.Buffer.from(c).copy(i);let d=c.length;r.forEach(O=>{const I=le.struct([le.u8("programIdIndex"),le.blob(O.keyIndicesCount.length,"keyIndicesCount"),le.seq(le.u8("keyIndex"),O.keyIndices.length,"keyIndices"),le.blob(O.dataLength.length,"dataLength"),le.seq(le.u8("userdatum"),O.data.length,"data")]).encode(O,i,d);d+=I}),i=i.slice(0,d);const v=le.struct([le.blob(1,"numRequiredSignatures"),le.blob(1,"numReadonlySignedAccounts"),le.blob(1,"numReadonlyUnsignedAccounts"),le.blob(n.length,"keyCount"),le.seq(_t("key"),t,"keys"),_t("recentBlockhash")]),l={numRequiredSignatures:wt.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:wt.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:wt.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:wt.Buffer.from(n),keys:this.accountKeys.map(O=>Aa(O.toBytes())),recentBlockhash:En.decode(this.recentBlockhash)};let y=wt.Buffer.alloc(2048);const A=v.encode(l,y);return i.copy(y,A),y.slice(0,A+i.length)}static from(t){let n=[...t];const r=sn(n);if(r!==(r&Go))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const c=sn(n),i=sn(n),d=Bn(n);let v=[];for(let S=0;S<d;S++){const I=an(n,0,Zn);v.push(new ft(wt.Buffer.from(I)))}const l=an(n,0,Zn),y=Bn(n);let A=[];for(let S=0;S<y;S++){const I=sn(n),B=Bn(n),C=an(n,0,B),F=Bn(n),j=an(n,0,F),Q=En.encode(wt.Buffer.from(j));A.push({programIdIndex:I,accounts:C,data:Q})}const O={header:{numRequiredSignatures:r,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:i},recentBlockhash:En.encode(wt.Buffer.from(l)),accountKeys:v,instructions:A};return new Fr(O)}}class Ho{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const n of this.addressTableLookups)t+=n.readonlyIndexes.length+n.writableIndexes.length;return t}getAccountKeys(t){let n;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");n=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)n=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new co(this.staticAccountKeys,n)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r){const c=t-r,i=this.addressTableLookups.reduce((d,v)=>d+v.writableIndexes.length,0);return c<i}else if(t>=this.header.numRequiredSignatures){const c=t-n,d=r-n-this.header.numReadonlyUnsignedAccounts;return c<d}else{const c=n-this.header.numReadonlySignedAccounts;return t<c}}resolveAddressTableLookups(t){const n={writable:[],readonly:[]};for(const r of this.addressTableLookups){const c=t.find(i=>i.key.equals(r.accountKey));if(!c)throw new Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(const i of r.writableIndexes)if(i<c.state.addresses.length)n.writable.push(c.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`);for(const i of r.readonlyIndexes)if(i<c.state.addresses.length)n.readonly.push(c.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${r.accountKey.toBase58()}`)}return n}static compile(t){const n=Ki.compile(t.instructions,t.payerKey),r=new Array,c={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const A of i){const O=n.extractTableLookup(A);if(O!==void 0){const[S,{writable:I,readonly:B}]=O;r.push(S),c.writable.push(...I),c.readonly.push(...B)}}const[d,v]=n.getMessageComponents(),y=new co(v,c).compileInstructions(t.instructions);return new Ho({header:d,staticAccountKeys:v,recentBlockhash:t.recentBlockhash,compiledInstructions:y,addressTableLookups:r})}serialize(){const t=Array();kn(t,this.staticAccountKeys.length);const n=this.serializeInstructions(),r=Array();kn(r,this.compiledInstructions.length);const c=this.serializeAddressTableLookups(),i=Array();kn(i,this.addressTableLookups.length);const d=le.struct([le.u8("prefix"),le.struct([le.u8("numRequiredSignatures"),le.u8("numReadonlySignedAccounts"),le.u8("numReadonlyUnsignedAccounts")],"header"),le.blob(t.length,"staticAccountKeysLength"),le.seq(_t(),this.staticAccountKeys.length,"staticAccountKeys"),_t("recentBlockhash"),le.blob(r.length,"instructionsLength"),le.blob(n.length,"serializedInstructions"),le.blob(i.length,"addressTableLookupsLength"),le.blob(c.length,"serializedAddressTableLookups")]),v=new Uint8Array(Pr),y=d.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(A=>A.toBytes()),recentBlockhash:En.decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:n,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:c},v);return v.slice(0,y)}serializeInstructions(){let t=0;const n=new Uint8Array(Pr);for(const r of this.compiledInstructions){const c=Array();kn(c,r.accountKeyIndexes.length);const i=Array();kn(i,r.data.length);const d=le.struct([le.u8("programIdIndex"),le.blob(c.length,"encodedAccountKeyIndexesLength"),le.seq(le.u8(),r.accountKeyIndexes.length,"accountKeyIndexes"),le.blob(i.length,"encodedDataLength"),le.blob(r.data.length,"data")]);t+=d.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(c),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:r.data},n,t)}return n.slice(0,t)}serializeAddressTableLookups(){let t=0;const n=new Uint8Array(Pr);for(const r of this.addressTableLookups){const c=Array();kn(c,r.writableIndexes.length);const i=Array();kn(i,r.readonlyIndexes.length);const d=le.struct([_t("accountKey"),le.blob(c.length,"encodedWritableIndexesLength"),le.seq(le.u8(),r.writableIndexes.length,"writableIndexes"),le.blob(i.length,"encodedReadonlyIndexesLength"),le.seq(le.u8(),r.readonlyIndexes.length,"readonlyIndexes")]);t+=d.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(c),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:r.readonlyIndexes},n,t)}return n.slice(0,t)}static deserialize(t){let n=[...t];const r=sn(n),c=r&Go;Lt(r!==c,"Expected versioned message but received legacy message");const i=c;Lt(i===0,`Expected versioned message with version 0 but found version ${i}`);const d={numRequiredSignatures:sn(n),numReadonlySignedAccounts:sn(n),numReadonlyUnsignedAccounts:sn(n)},v=[],l=Bn(n);for(let B=0;B<l;B++)v.push(new ft(an(n,0,Zn)));const y=En.encode(an(n,0,Zn)),A=Bn(n),O=[];for(let B=0;B<A;B++){const C=sn(n),F=Bn(n),j=an(n,0,F),Q=Bn(n),W=new Uint8Array(an(n,0,Q));O.push({programIdIndex:C,accountKeyIndexes:j,data:W})}const S=Bn(n),I=[];for(let B=0;B<S;B++){const C=new ft(an(n,0,Zn)),F=Bn(n),j=an(n,0,F),Q=Bn(n),W=an(n,0,Q);I.push({accountKey:C,writableIndexes:j,readonlyIndexes:W})}return new Ho({header:d,staticAccountKeys:v,recentBlockhash:y,compiledInstructions:O,addressTableLookups:I})}}const L0=3,M4=4,B4=8,k4=16;function Wi(e){const t=an(e,0,4);return t[0]+t[1]*2**8+t[2]*2**16+t[3]*2**24}function D4(e){const t=an(e,0,8);let n=BigInt(0);for(let r=t.length-1;r>=0;r--)n=n<<BigInt(8)|BigInt(t[r]);return Lt(n<=BigInt(Number.MAX_SAFE_INTEGER),"Expected u64 value to be within the safe integer range"),Number(n)}class zi{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.transactionConfig=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.transactionConfig=t.transactionConfig??{computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null}}get version(){return 1}get addressTableLookups(){return[]}getAccountKeys(){return new co(this.staticAccountKeys)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const n=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(t>=r)return!1;if(t>=this.header.numRequiredSignatures){const c=t-n,d=r-n-this.header.numReadonlyUnsignedAccounts;return c<d}else{const c=n-this.header.numReadonlySignedAccounts;return t<c}}serialize(){throw new Error("Serialization of version 1 transaction messages is not supported")}static deserialize(t){let n=[...t];const r=sn(n),c=r&Go;Lt(r!==c,"Expected versioned message but received legacy message");const i=c;Lt(i===1,`Expected versioned message with version 1 but found version ${i}`);const d={numRequiredSignatures:sn(n),numReadonlySignedAccounts:sn(n),numReadonlyUnsignedAccounts:sn(n)},v=Wi(n);Lt((v&-32)===0,"Unexpected bits set in the transaction config mask");const l=v&L0;Lt(l===0||l===L0,"Expected both or neither of the priority fee bits to be set in the transaction config mask");const y=En.encode(an(n,0,Zn)),A=sn(n),O=sn(n),S=[];for(let F=0;F<O;F++)S.push(new ft(an(n,0,Zn)));const I={computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null};l!==0&&(I.priorityFee=D4(n)),v&M4&&(I.computeUnitLimit=Wi(n)),v&B4&&(I.loadedAccountsDataSizeLimit=Wi(n)),v&k4&&(I.heapSize=Wi(n));const B=[];for(let F=0;F<A;F++){const j=sn(n),Q=sn(n),W=sn(n)+sn(n)*256;B.push({accountKeyIndexesLength:Q,dataLength:W,programIdIndex:j})}const C=[];for(const F of B)C.push({programIdIndex:F.programIdIndex,accountKeyIndexes:an(n,0,F.accountKeyIndexesLength),data:new Uint8Array(an(n,0,F.dataLength))});return Lt(n.length===0,"Expected no bytes to remain after deserializing a version 1 message"),new zi({header:d,staticAccountKeys:S,recentBlockhash:y,compiledInstructions:C,transactionConfig:I})}}const Zi={deserializeMessageVersion(e){const t=e[0],n=t&Go;return n===t?"legacy":n},deserialize:e=>{const t=Zi.deserializeMessageVersion(e);if(t==="legacy")return Fr.from(e);if(t===0)return Ho.deserialize(e);if(t===1)return zi.deserialize(e);throw new Error(`Transaction message version ${t} deserialization is not supported`)}},U4=wt.Buffer.alloc(Rr).fill(0);class Sa{constructor(t){this.keys=void 0,this.programId=void 0,this.data=wt.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:n,isWritable:r})=>({pubkey:t.toJSON(),isSigner:n,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}}class Yi{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:n,nonceInfo:r}=t;this.minNonceContextSlot=n,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:n,lastValidBlockHeight:r}=t;this.recentBlockhash=n,this.lastValidBlockHeight=r}else{const{recentBlockhash:n,nonceInfo:r}=t;r&&(this.nonceInfo=r),this.recentBlockhash=n}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(n=>{"instructions"in n?this.instructions=this.instructions.concat(n.instructions):"data"in n&&"programId"in n&&"keys"in n?this.instructions.push(n):this.instructions.push(new Sa(n))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?n=[this.nonceInfo.nonceInstruction,...this.instructions]:n=this.instructions):(t=this.recentBlockhash,n=this.instructions),!t)throw new Error("Transaction recentBlockhash required");n.length<1&&console.warn("No instructions provided");let r;if(this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let C=0;C<n.length;C++)if(n[C].programId===void 0)throw new Error(`Transaction instruction index ${C} has undefined program id`);const c=[],i=[];n.forEach(C=>{C.keys.forEach(j=>{i.push({...j})});const F=C.programId.toString();c.includes(F)||c.push(F)}),c.forEach(C=>{i.push({pubkey:new ft(C),isSigner:!1,isWritable:!1})});const d=[];i.forEach(C=>{const F=C.pubkey.toString(),j=d.findIndex(Q=>Q.pubkey.toString()===F);j>-1?(d[j].isWritable=d[j].isWritable||C.isWritable,d[j].isSigner=d[j].isSigner||C.isSigner):d.push(C)}),d.sort(function(C,F){if(C.isSigner!==F.isSigner)return C.isSigner?-1:1;if(C.isWritable!==F.isWritable)return C.isWritable?-1:1;const j={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return C.pubkey.toBase58().localeCompare(F.pubkey.toBase58(),"en",j)});const v=d.findIndex(C=>C.pubkey.equals(r));if(v>-1){const[C]=d.splice(v,1);C.isSigner=!0,C.isWritable=!0,d.unshift(C)}else d.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(const C of this.signatures){const F=d.findIndex(j=>j.pubkey.equals(C.publicKey));if(F>-1)d[F].isSigner||(d[F].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${C.publicKey.toString()}`)}let l=0,y=0,A=0;const O=[],S=[];d.forEach(({pubkey:C,isSigner:F,isWritable:j})=>{F?(O.push(C.toString()),l+=1,j||(y+=1)):(S.push(C.toString()),j||(A+=1))});const I=O.concat(S),B=n.map(C=>{const{data:F,programId:j}=C;return{programIdIndex:I.indexOf(j.toString()),accounts:C.keys.map(Q=>I.indexOf(Q.pubkey.toString())),data:En.encode(F)}});return B.forEach(C=>{Lt(C.programIdIndex>=0),C.accounts.forEach(F=>Lt(F>=0))}),new Fr({header:{numRequiredSignatures:l,numReadonlySignedAccounts:y,numReadonlyUnsignedAccounts:A},accountKeys:I,recentBlockhash:t,instructions:B})}_compile(){const t=this.compileMessage(),n=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===n.length&&this.signatures.every((c,i)=>n[i].equals(c.publicKey))||(this.signatures=n.map(r=>({signature:null,publicKey:r}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");const n=new Set;this.signatures=t.filter(r=>{const c=r.toString();return n.has(c)?!1:(n.add(c),!0)}).map(r=>({signature:null,publicKey:r}))}sign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,r=[];for(const i of t){const d=i.publicKey.toString();n.has(d)||(n.add(d),r.push(i))}this.signatures=r.map(i=>({signature:null,publicKey:i.publicKey}));const c=this._compile();this._partialSign(c,...r)}partialSign(...t){if(t.length===0)throw new Error("No signers");const n=new Set,r=[];for(const i of t){const d=i.publicKey.toString();n.has(d)||(n.add(d),r.push(i))}const c=this._compile();this._partialSign(c,...r)}_partialSign(t,...n){const r=t.serialize();n.forEach(c=>{const i=A0(r,c.secretKey);this._addSignature(c.publicKey,Aa(i))})}addSignature(t,n){this._compile(),this._addSignature(t,n)}_addSignature(t,n){Lt(n.length===64);const r=this.signatures.findIndex(c=>t.equals(c.publicKey));if(r<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[r].signature=wt.Buffer.from(n)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,n){const r={};for(const{signature:c,publicKey:i}of this.signatures)c===null?n&&(r.missing||=[]).push(i):I4(c,t,i.toBytes())||(r.invalid||=[]).push(i);return r.invalid||r.missing?r:void 0}serialize(t){const{requireAllSignatures:n,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),c=this.serializeMessage();if(r){const i=this._getMessageSignednessErrors(c,n);if(i){let d="Signature verification failed.";throw i.invalid&&(d+=`
|
|
6
6
|
Invalid signature for public key${i.invalid.length===1?"":"(s)"} [\`${i.invalid.map(v=>v.toBase58()).join("`, `")}\`].`),i.missing&&(d+=`
|
|
7
|
-
Missing signature for public key${i.missing.length===1?"":"(s)"} [\`${i.missing.map(v=>v.toBase58()).join("`, `")}\`].`),new Error(d)}}return this._serialize(c)}_serialize(t){const{signatures:n}=this,r=[];kn(r,n.length);const c=r.length+n.length*64+t.length,i=wt.Buffer.alloc(c);return Lt(n.length<256),wt.Buffer.from(r).copy(i,0),n.forEach(({signature:d},v)=>{d!==null&&(Lt(d.length===64,"signature has invalid length"),wt.Buffer.from(d).copy(i,r.length+v*64))}),t.copy(i,r.length+n.length*64),Lt(i.length<=Pr,`Transaction too large: ${i.length} > ${Pr}`),i}get keys(){return Lt(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Lt(this.instructions.length===1),this.instructions[0].programId}get data(){return Lt(this.instructions.length===1),this.instructions[0].data}static from(t){let n=[...t];const r=Bn(n);let c=[];for(let i=0;i<r;i++){const d=an(n,0,Rr);c.push(En.encode(wt.Buffer.from(d)))}return Yi.populate(Fr.from(n),c)}static populate(t,n=[]){const r=new Yi;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((c,i)=>{const d={signature:c==En.encode(B4)?null:En.decode(c),publicKey:t.accountKeys[i]};r.signatures.push(d)}),t.instructions.forEach(c=>{const i=c.accounts.map(d=>{const v=t.accountKeys[d];return{pubkey:v,isSigner:r.signatures.some(l=>l.publicKey.toString()===v.toString())||t.isAccountSigner(d),isWritable:t.isAccountWritable(d)}});r.instructions.push(new Sa({keys:i,programId:t.accountKeys[c.programIdIndex],data:En.decode(c.data)}))}),r._message=t,r._json=r.toJSON(),r}}class Xi{get version(){return this.message.version}constructor(t,n){if(this.signatures=void 0,this.message=void 0,n!==void 0)Lt(n.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=n;else{const r=[];for(let c=0;c<t.header.numRequiredSignatures;c++)r.push(new Uint8Array(Rr));this.signatures=r}this.message=t}serialize(){const t=this.message.serialize(),n=Array();kn(n,this.signatures.length);const r=le.struct([le.blob(n.length,"encodedSignaturesLength"),le.seq(S4(),this.signatures.length,"signatures"),le.blob(t.length,"serializedMessage")]),c=new Uint8Array(2048),i=r.encode({encodedSignaturesLength:new Uint8Array(n),signatures:this.signatures,serializedMessage:t},c);return c.slice(0,i)}static deserialize(t){if(t[0]===N0)return this.deserializeV1(t);let n=[...t];const r=[],c=Bn(n);for(let d=0;d<c;d++)r.push(new Uint8Array(an(n,0,Rr)));const i=Zi.deserialize(new Uint8Array(n));return new Xi(i,r)}static deserializeV1(t){const n=t[1],r=n*Rr,c=t.length-r;Lt(c>0,"Expected transaction to have enough bytes for its signatures");const i=Zi.deserialize(t.slice(0,c)),d=[];for(let v=0;v<n;v++){const l=c+v*Rr;d.push(t.slice(l,l+Rr))}return new Xi(i,d)}sign(t){const n=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const c of t){const i=r.findIndex(d=>d.equals(c.publicKey));Lt(i>=0,`Cannot sign with non signer key ${c.publicKey.toBase58()}`),this.signatures[i]=b0(n,c.secretKey)}}addSignature(t,n){Lt(n.byteLength===64,"Signature must be 64 bytes long");const c=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));Lt(c>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[c]=n}}new ft("SysvarC1ock11111111111111111111111111111111"),new ft("SysvarEpochSchedu1e111111111111111111111111"),new ft("Sysvar1nstructions1111111111111111111111111"),new ft("SysvarRecentB1ockHashes11111111111111111111"),new ft("SysvarRent111111111111111111111111111111111"),new ft("SysvarRewards111111111111111111111111111111"),new ft("SysvarS1otHashes111111111111111111111111111"),new ft("SysvarS1otHistory11111111111111111111111111"),new ft("SysvarStakeHistory1111111111111111111111111");const L0=le.nu64("lamportsPerSignature");le.struct([le.u32("version"),le.u32("state"),Et("authorizedPubkey"),Et("nonce"),le.struct([L0],"feeCalculator")]).span;function fo(e){const t=le.blob(8,e),n=t.decode.bind(t),r=t.encode.bind(t),c=t,i=Mp();return c.decode=(d,v)=>{const l=n(d,v);return i.decode(l)},c.encode=(d,v,l)=>{const y=i.encode(d);return r(y,v,l)},c}Object.freeze({Create:{index:0,layout:le.struct([le.u32("instruction"),le.ns64("lamports"),le.ns64("space"),Et("programId")])},Assign:{index:1,layout:le.struct([le.u32("instruction"),Et("programId")])},Transfer:{index:2,layout:le.struct([le.u32("instruction"),fo("lamports")])},CreateWithSeed:{index:3,layout:le.struct([le.u32("instruction"),Et("base"),uo("seed"),le.ns64("lamports"),le.ns64("space"),Et("programId")])},AdvanceNonceAccount:{index:4,layout:le.struct([le.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:le.struct([le.u32("instruction"),Et("authorized")])},AuthorizeNonceAccount:{index:7,layout:le.struct([le.u32("instruction"),Et("authorized")])},Allocate:{index:8,layout:le.struct([le.u32("instruction"),le.ns64("space")])},AllocateWithSeed:{index:9,layout:le.struct([le.u32("instruction"),Et("base"),uo("seed"),le.ns64("space"),Et("programId")])},AssignWithSeed:{index:10,layout:le.struct([le.u32("instruction"),Et("base"),uo("seed"),Et("programId")])},TransferWithSeed:{index:11,layout:le.struct([le.u32("instruction"),fo("lamports"),uo("seed"),Et("programId")])},UpgradeNonceAccount:{index:12,layout:le.struct([le.u32("instruction")])}}),new ft("11111111111111111111111111111111"),new ft("BPFLoader2111111111111111111111111111111111"),le.struct([le.u32("typeIndex"),fo("deactivationSlot"),le.nu64("lastExtendedSlot"),le.u8("lastExtendedStartIndex"),le.u8(),le.seq(Et(),le.offset(le.u8(),-1),"authority")]);const Wt=Fo(fa(ft),Ze(),e=>new ft(e)),C0=la([Ze(),Ut("base64")]),Ia=Fo(fa(wt.Buffer),C0,e=>wt.Buffer.from(e[0],"base64"));function M0(e){return Nn([Ge({jsonrpc:Ut("2.0"),id:Ze(),result:e}),Ge({jsonrpc:Ut("2.0"),id:Ze(),error:Ge({code:io(),message:Ze(),data:nt(Vp())})})])}const k4=M0(io());function Ct(e){return Fo(M0(e),k4,t=>"error"in t?t:{...t,result:Uo(t.result,e)})}function Yn(e){return Ct(Ge({context:Ge({slot:Ie()}),value:e}))}function qi(e){return Ge({context:Ge({slot:Ie()}),value:e})}const D4=Ge({foundation:Ie(),foundationTerm:Ie(),initial:Ie(),taper:Ie(),terminal:Ie()});Ct(Je(Xe(Ge({epoch:Ie(),effectiveSlot:Ie(),amount:Ie(),postBalance:Ie(),commission:nt(Xe(Ie()))}))));const U4=Je(Ge({slot:Ie(),prioritizationFee:Ie()})),P4=Ge({total:Ie(),validator:Ie(),foundation:Ie(),epoch:Ie()}),F4=Ge({epoch:Ie(),slotIndex:Ie(),slotsInEpoch:Ie(),absoluteSlot:Ie(),blockHeight:nt(Ie()),transactionCount:nt(Ie())}),V4=Ge({slotsPerEpoch:Ie(),leaderScheduleSlotOffset:Ie(),warmup:er(),firstNormalEpoch:Ie(),firstNormalSlot:Ie()}),G4=i0(Ze(),Je(Ie())),Vr=Xe(Nn([Ge({}),Ze()])),H4=Ge({err:Vr}),$4=Ut("receivedSignature");Ge({"solana-core":Ze(),"feature-set":nt(Ie())});const j4=Ge({program:Ze(),programId:Wt,parsed:io()}),K4=Ge({programId:Wt,accounts:Je(Wt),data:Ze()});Yn(Ge({err:Xe(Nn([Ge({}),Ze()])),logs:Xe(Je(Ze())),accounts:nt(Xe(Je(Xe(Ge({executable:er(),owner:Ze(),lamports:Ie(),data:Je(Ze()),rentEpoch:nt(Ie())}))))),unitsConsumed:nt(Ie()),returnData:nt(Xe(Ge({programId:Ze(),data:la([Ze(),Ut("base64")])}))),innerInstructions:nt(Xe(Je(Ge({index:Ie(),instructions:Je(Nn([j4,K4]))}))))})),Yn(Ge({byIdentity:i0(Ze(),Je(Ie())),range:Ge({firstSlot:Ie(),lastSlot:Ie()})})),Ct(D4),Ct(P4),Ct(U4),Ct(F4),Ct(V4),Ct(G4),Ct(Ie()),Yn(Ge({total:Ie(),circulating:Ie(),nonCirculating:Ie(),nonCirculatingAccounts:Je(Wt)}));const W4=Ge({amount:Ze(),uiAmount:Xe(Ie()),decimals:Ie(),uiAmountString:nt(Ze())});Yn(Je(Ge({address:Wt,amount:Ze(),uiAmount:Xe(Ie()),decimals:Ie(),uiAmountString:nt(Ze())}))),Yn(Je(Ge({pubkey:Wt,account:Ge({executable:er(),owner:Wt,lamports:Ie(),data:Ia,rentEpoch:Ie()})})));const Oa=Ge({program:Ze(),parsed:io(),space:Ie()});Yn(Je(Ge({pubkey:Wt,account:Ge({executable:er(),owner:Wt,lamports:Ie(),data:Oa,rentEpoch:Ie()})}))),Yn(Je(Ge({lamports:Ie(),address:Wt})));const Na=Ge({executable:er(),owner:Wt,lamports:Ie(),data:Ia,rentEpoch:Ie()});Ge({pubkey:Wt,account:Na});const z4=Fo(Nn([fa(wt.Buffer),Oa]),Nn([C0,Oa]),e=>Array.isArray(e)?Uo(e,Ia):e),Z4=Ge({executable:er(),owner:Wt,lamports:Ie(),data:z4,rentEpoch:Ie()});Ge({pubkey:Wt,account:Z4}),Ge({state:Nn([Ut("active"),Ut("inactive"),Ut("activating"),Ut("deactivating")]),active:Ie(),inactive:Ie()}),Ct(Je(Ge({signature:Ze(),slot:Ie(),err:Vr,memo:Xe(Ze()),blockTime:nt(Xe(Ie()))}))),Ct(Je(Ge({signature:Ze(),slot:Ie(),err:Vr,memo:Xe(Ze()),blockTime:nt(Xe(Ie()))}))),Ge({subscription:Ie(),result:qi(Na)});const Y4=Ge({pubkey:Wt,account:Na});Ge({subscription:Ie(),result:qi(Y4)});const X4=Ge({parent:Ie(),slot:Ie(),root:Ie()});Ge({subscription:Ie(),result:X4});const q4=Nn([Ge({type:Nn([Ut("firstShredReceived"),Ut("completed"),Ut("optimisticConfirmation"),Ut("root")]),slot:Ie(),timestamp:Ie()}),Ge({type:Ut("createdBank"),parent:Ie(),slot:Ie(),timestamp:Ie()}),Ge({type:Ut("frozen"),slot:Ie(),timestamp:Ie(),stats:Ge({numTransactionEntries:Ie(),numSuccessfulTransactions:Ie(),numFailedTransactions:Ie(),maxTransactionsPerEntry:Ie()})}),Ge({type:Ut("dead"),slot:Ie(),timestamp:Ie(),err:Ze()})]);Ge({subscription:Ie(),result:q4}),Ge({subscription:Ie(),result:qi(Nn([H4,$4]))}),Ge({subscription:Ie(),result:Ie()}),Ge({pubkey:Ze(),gossip:Xe(Ze()),tpu:Xe(Ze()),rpc:Xe(Ze()),version:Xe(Ze())});const B0=Ge({votePubkey:Ze(),nodePubkey:Ze(),activatedStake:Ie(),epochVoteAccount:er(),epochCredits:Je(la([Ie(),Ie(),Ie()])),commission:Ie(),lastVote:Ie(),rootSlot:Xe(Ie())});Ct(Ge({current:Je(B0),delinquent:Je(B0)}));const J4=Nn([Ut("processed"),Ut("confirmed"),Ut("finalized")]),Q4=Ge({slot:Ie(),confirmations:Xe(Ie()),err:Vr,confirmationStatus:nt(J4)});Yn(Je(Xe(Q4))),Ct(Ie());const k0=Ge({accountKey:Wt,writableIndexes:Je(Ie()),readonlyIndexes:Je(Ie())}),D0=Ge({computeUnitLimit:Xe(Ie()),heapSize:Xe(Ie()),loadedAccountsDataSizeLimit:Xe(Ie()),priorityFee:Xe(Ie())}),Ta=Ge({signatures:Je(Ze()),message:Ge({accountKeys:Je(Ze()),header:Ge({numRequiredSignatures:Ie(),numReadonlySignedAccounts:Ie(),numReadonlyUnsignedAccounts:Ie()}),instructions:Je(Ge({accounts:Je(Ie()),data:Ze(),programIdIndex:Ie()})),recentBlockhash:Ze(),addressTableLookups:nt(Je(k0)),transactionConfig:nt(Xe(D0))})}),U0=Ge({pubkey:Wt,signer:er(),writable:er(),source:nt(Nn([Ut("transaction"),Ut("lookupTable")]))}),P0=Ge({accountKeys:Je(U0),signatures:Je(Ze())}),F0=Ge({parsed:io(),program:Ze(),programId:Wt}),V0=Ge({accounts:Je(Wt),data:Ze(),programId:Wt}),e8=Nn([V0,F0]),t8=Nn([Ge({parsed:io(),program:Ze(),programId:Ze()}),Ge({accounts:Je(Ze()),data:Ze(),programId:Ze()})]),G0=Fo(e8,t8,e=>"accounts"in e?Uo(e,V0):Uo(e,F0)),H0=Ge({signatures:Je(Ze()),message:Ge({accountKeys:Je(U0),instructions:Je(G0),recentBlockhash:Ze(),addressTableLookups:nt(Xe(Je(k0))),transactionConfig:nt(Xe(D0))})}),Ji=Ge({accountIndex:Ie(),mint:Ze(),owner:nt(Ze()),programId:nt(Ze()),uiTokenAmount:W4}),$0=Ge({writable:Je(Wt),readonly:Je(Wt)}),Qi=Ge({err:Vr,fee:Ie(),innerInstructions:nt(Xe(Je(Ge({index:Ie(),instructions:Je(Ge({accounts:Je(Ie()),data:Ze(),programIdIndex:Ie()}))})))),preBalances:Je(Ie()),postBalances:Je(Ie()),logMessages:nt(Xe(Je(Ze()))),preTokenBalances:nt(Xe(Je(Ji))),postTokenBalances:nt(Xe(Je(Ji))),loadedAddresses:nt($0),computeUnitsConsumed:nt(Ie()),costUnits:nt(Ie())}),xa=Ge({err:Vr,fee:Ie(),innerInstructions:nt(Xe(Je(Ge({index:Ie(),instructions:Je(G0)})))),preBalances:Je(Ie()),postBalances:Je(Ie()),logMessages:nt(Xe(Je(Ze()))),preTokenBalances:nt(Xe(Je(Ji))),postTokenBalances:nt(Xe(Je(Ji))),loadedAddresses:nt($0),computeUnitsConsumed:nt(Ie()),costUnits:nt(Ie())}),lo=Nn([Ut(0),Ut(1),Ut("legacy")]),Gr=Ge({pubkey:Ze(),lamports:Ie(),postBalance:Xe(Ie()),rewardType:Xe(Ze()),commission:nt(Xe(Ie()))});Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:Ta,meta:Xe(Qi),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:P0,meta:Xe(Qi),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:H0,meta:Xe(xa),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:P0,meta:Xe(xa),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:Ta,meta:Xe(Qi)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),signatures:Je(Ze()),blockTime:Xe(Ie())}))),Ct(Xe(Ge({slot:Ie(),meta:Xe(Qi),blockTime:nt(Xe(Ie())),transaction:Ta,version:nt(lo)}))),Ct(Xe(Ge({slot:Ie(),transaction:H0,meta:Xe(xa),blockTime:nt(Xe(Ie())),version:nt(lo)}))),Yn(Ge({blockhash:Ze(),lastValidBlockHeight:Ie()})),Yn(er());const n8=Ge({slot:Ie(),numTransactions:Ie(),numSlots:Ie(),samplePeriodSecs:Ie()});Ct(Je(n8)),Yn(Xe(Ge({feeCalculator:Ge({lamportsPerSignature:Ie()})}))),Ct(Ze()),Ct(Ze());const r8=Ge({err:Vr,logs:Je(Ze()),signature:Ze()});Ge({result:qi(r8),subscription:Ie()}),Object.freeze({CreateLookupTable:{index:0,layout:le.struct([le.u32("instruction"),fo("recentSlot"),le.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:le.struct([le.u32("instruction")])},ExtendLookupTable:{index:2,layout:le.struct([le.u32("instruction"),fo(),le.seq(Et(),le.offset(le.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:le.struct([le.u32("instruction")])},CloseLookupTable:{index:4,layout:le.struct([le.u32("instruction")])}}),new ft("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:le.struct([le.u8("instruction"),le.u32("units"),le.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:le.struct([le.u8("instruction"),le.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:le.struct([le.u8("instruction"),le.u32("units")])},SetComputeUnitPrice:{index:3,layout:le.struct([le.u8("instruction"),fo("microLamports")])}}),new ft("ComputeBudget111111111111111111111111111111"),le.struct([le.u8("numSignatures"),le.u8("padding"),le.u16("signatureOffset"),le.u16("signatureInstructionIndex"),le.u16("publicKeyOffset"),le.u16("publicKeyInstructionIndex"),le.u16("messageDataOffset"),le.u16("messageDataSize"),le.u16("messageInstructionIndex")]),new ft("Ed25519SigVerify111111111111111111111111111"),R4.utils.isValidPrivateKey,le.struct([le.u8("numSignatures"),le.u16("signatureOffset"),le.u8("signatureInstructionIndex"),le.u16("ethAddressOffset"),le.u8("ethAddressInstructionIndex"),le.u16("messageDataOffset"),le.u16("messageDataSize"),le.u8("messageInstructionIndex"),le.blob(20,"ethAddress"),le.blob(64,"signature"),le.u8("recoveryId")]),new ft("KeccakSecp256k11111111111111111111111111111");var j0;new ft("StakeConfig11111111111111111111111111111111");class La{constructor(t,n,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}}j0=La,La.default=new j0(0,0,ft.default),Object.freeze({Initialize:{index:0,layout:le.struct([le.u32("instruction"),I4(),O4()])},Authorize:{index:1,layout:le.struct([le.u32("instruction"),Et("newAuthorized"),le.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:le.struct([le.u32("instruction")])},Split:{index:3,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},Withdraw:{index:4,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},Deactivate:{index:5,layout:le.struct([le.u32("instruction")])},Merge:{index:7,layout:le.struct([le.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:le.struct([le.u32("instruction"),Et("newAuthorized"),le.u32("stakeAuthorizationType"),uo("authoritySeed"),Et("authorityOwner")])}}),new ft("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:le.struct([le.u32("instruction"),N4()])},Authorize:{index:1,layout:le.struct([le.u32("instruction"),Et("newAuthorized"),le.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:le.struct([le.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:le.struct([le.u32("instruction"),T4()])}}),new ft("Vote111111111111111111111111111111111111111"),new ft("Va1idator1nfo111111111111111111111111111111"),Ge({name:Ze(),website:nt(Ze()),details:nt(Ze()),iconUrl:nt(Ze()),keybaseUsername:nt(Ze())}),new ft("Vote111111111111111111111111111111111111111"),le.struct([Et("nodePubkey"),Et("authorizedWithdrawer"),le.u8("commission"),le.nu64(),le.seq(le.struct([le.nu64("slot"),le.u32("confirmationCount")]),le.offset(le.u32(),-8),"votes"),le.u8("rootSlotValid"),le.nu64("rootSlot"),le.nu64(),le.seq(le.struct([le.nu64("epoch"),Et("authorizedVoter")]),le.offset(le.u32(),-8),"authorizedVoters"),le.struct([le.seq(le.struct([Et("authorizedPubkey"),le.nu64("epochOfLastAuthorizedSwitch"),le.nu64("targetEpoch")]),32,"buf"),le.nu64("idx"),le.u8("isEmpty")],"priorVoters"),le.nu64(),le.seq(le.struct([le.nu64("epoch"),le.nu64("credits"),le.nu64("prevCredits")]),le.offset(le.u32(),-8),"epochCredits"),le.struct([le.nu64("slot"),le.nu64("timestamp")],"lastTimestamp")]);const o8=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:L0,Lockup:La,MAX_SEED_LENGTH:I0,Message:Fr,MessageAccountKeys:co,MessageV0:Ho,MessageV1:zi,PACKET_DATA_SIZE:Pr,PUBLIC_KEY_LENGTH:Zn,PublicKey:ft,SIGNATURE_LENGTH_IN_BYTES:Rr,SOLANA_SCHEMA:Vo,Struct:A0,Transaction:Yi,TransactionInstruction:Sa,VERSION_1_MESSAGE_PREFIX:N0,VERSION_PREFIX_MASK:Go,VersionedMessage:Zi,VersionedTransaction:Xi},Symbol.toStringTag,{value:"Module"}));function i8(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let y=0;y<t.length;y++)t[y]=255;for(let y=0;y<e.length;y++){const A=e.charAt(y),O=A.charCodeAt(0);if(t[O]!==255)throw new TypeError(A+" is ambiguous");t[O]=y}const n=e.length,r=e.charAt(0),c=Math.log(n)/Math.log(256),i=Math.log(256)/Math.log(n);function d(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";let A=0,O=0,S=0;const I=y.length;for(;S!==I&&y[S]===0;)S++,A++;const B=(I-S)*i+1>>>0,C=new Uint8Array(B);for(;S!==I;){let Q=y[S],W=0;for(let se=B-1;(Q!==0||W<O)&&se!==-1;se--,W++)Q+=256*C[se]>>>0,C[se]=Q%n>>>0,Q=Q/n>>>0;if(Q!==0)throw new Error("Non-zero carry");O=W,S++}let F=B-O;for(;F!==B&&C[F]===0;)F++;let j=r.repeat(A);for(;F<B;++F)j+=e.charAt(C[F]);return j}function v(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;let A=0,O=0,S=0;for(;y[A]===r;)O++,A++;const I=(y.length-A)*c+1>>>0,B=new Uint8Array(I);for(;A<y.length;){const Q=y.charCodeAt(A);if(Q>255)return;let W=t[Q];if(W===255)return;let se=0;for(let ue=I-1;(W!==0||se<S)&&ue!==-1;ue--,se++)W+=n*B[ue]>>>0,B[ue]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=se,A++}let C=I-S;for(;C!==I&&B[C]===0;)C++;const F=new Uint8Array(O+(I-C));let j=O;for(;C!==I;)F[j++]=B[C++];return F}function l(y){const A=v(y);if(A)return A;throw new Error("Non-base"+n+" character")}return{encode:d,decodeUnsafe:v,decode:l}}var s8="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const a8=i8(s8),es=o8,br=a8;var Ca={exports:{}},K0;function c8(){return K0||(K0=1,(function(e){var t=(function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function d(l,y){if(!i[l]){i[l]={};for(var A=0;A<l.length;A++)i[l][l.charAt(A)]=A}return i[l][y]}var v={compressToBase64:function(l){if(l==null)return"";var y=v._compress(l,6,function(A){return r.charAt(A)});switch(y.length%4){default:case 0:return y;case 1:return y+"===";case 2:return y+"==";case 3:return y+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:v._decompress(l.length,32,function(y){return d(r,l.charAt(y))})},compressToUTF16:function(l){return l==null?"":v._compress(l,15,function(y){return n(y+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:v._decompress(l.length,16384,function(y){return l.charCodeAt(y)-32})},compressToUint8Array:function(l){for(var y=v.compress(l),A=new Uint8Array(y.length*2),O=0,S=y.length;O<S;O++){var I=y.charCodeAt(O);A[O*2]=I>>>8,A[O*2+1]=I%256}return A},decompressFromUint8Array:function(l){if(l==null)return v.decompress(l);for(var y=new Array(l.length/2),A=0,O=y.length;A<O;A++)y[A]=l[A*2]*256+l[A*2+1];var S=[];return y.forEach(function(I){S.push(n(I))}),v.decompress(S.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":v._compress(l,6,function(y){return c.charAt(y)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),v._decompress(l.length,32,function(y){return d(c,l.charAt(y))}))},compress:function(l){return v._compress(l,16,function(y){return n(y)})},_compress:function(l,y,A){if(l==null)return"";var O,S,I={},B={},C="",F="",j="",Q=2,W=3,se=2,ue=[],oe=0,Ee=0,Re;for(Re=0;Re<l.length;Re+=1)if(C=l.charAt(Re),Object.prototype.hasOwnProperty.call(I,C)||(I[C]=W++,B[C]=!0),F=j+C,Object.prototype.hasOwnProperty.call(I,F))j=F;else{if(Object.prototype.hasOwnProperty.call(B,j)){if(j.charCodeAt(0)<256){for(O=0;O<se;O++)oe=oe<<1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++;for(S=j.charCodeAt(0),O=0;O<8;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}else{for(S=1,O=0;O<se;O++)oe=oe<<1|S,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=0;for(S=j.charCodeAt(0),O=0;O<16;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}Q--,Q==0&&(Q=Math.pow(2,se),se++),delete B[j]}else for(S=I[j],O=0;O<se;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1;Q--,Q==0&&(Q=Math.pow(2,se),se++),I[F]=W++,j=String(C)}if(j!==""){if(Object.prototype.hasOwnProperty.call(B,j)){if(j.charCodeAt(0)<256){for(O=0;O<se;O++)oe=oe<<1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++;for(S=j.charCodeAt(0),O=0;O<8;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}else{for(S=1,O=0;O<se;O++)oe=oe<<1|S,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=0;for(S=j.charCodeAt(0),O=0;O<16;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1}Q--,Q==0&&(Q=Math.pow(2,se),se++),delete B[j]}else for(S=I[j],O=0;O<se;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1;Q--,Q==0&&(Q=Math.pow(2,se),se++)}for(S=2,O=0;O<se;O++)oe=oe<<1|S&1,Ee==y-1?(Ee=0,ue.push(A(oe)),oe=0):Ee++,S=S>>1;for(;;)if(oe=oe<<1,Ee==y-1){ue.push(A(oe));break}else Ee++;return ue.join("")},decompress:function(l){return l==null?"":l==""?null:v._decompress(l.length,32768,function(y){return l.charCodeAt(y)})},_decompress:function(l,y,A){var O=[],S=4,I=4,B=3,C="",F=[],j,Q,W,se,ue,oe,Ee,Re={val:A(0),position:y,index:1};for(j=0;j<3;j+=1)O[j]=j;for(W=0,ue=Math.pow(2,2),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;switch(W){case 0:for(W=0,ue=Math.pow(2,8),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;Ee=n(W);break;case 1:for(W=0,ue=Math.pow(2,16),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;Ee=n(W);break;case 2:return""}for(O[3]=Ee,Q=Ee,F.push(Ee);;){if(Re.index>l)return"";for(W=0,ue=Math.pow(2,B),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;switch(Ee=W){case 0:for(W=0,ue=Math.pow(2,8),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;O[I++]=n(W),Ee=I-1,S--;break;case 1:for(W=0,ue=Math.pow(2,16),oe=1;oe!=ue;)se=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(se>0?1:0)*oe,oe<<=1;O[I++]=n(W),Ee=I-1,S--;break;case 2:return F.join("")}if(S==0&&(S=Math.pow(2,B),B++),O[Ee])C=O[Ee];else if(Ee===I)C=Q+Q.charAt(0);else return null;F.push(C),O[I++]=Q+C.charAt(0),S--,Q=C,S==0&&(S=Math.pow(2,B),B++)}}};return v})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Ca)),Ca.exports}var u8=c8();const In=Us(u8);var Ma=(e=>(e.USD="USD",e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ANG="ANG",e.AOA="AOA",e.ARS="ARS",e.AUD="AUD",e.AWG="AWG",e.AZN="AZN",e.BAM="BAM",e.BBD="BBD",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BMD="BMD",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BTN="BTN",e.BWP="BWP",e.BYN="BYN",e.BZD="BZD",e.CAD="CAD",e.CHF="CHF",e.CLF="CLF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CUP="CUP",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EGP="EGP",e.ETB="ETB",e.EUR="EUR",e.FJD="FJD",e.GBP="GBP",e.GEL="GEL",e.GHS="GHS",e.GMD="GMD",e.GNF="GNF",e.GTQ="GTQ",e.GYD="GYD",e.HKD="HKD",e.HNL="HNL",e.HTG="HTG",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KGS="KGS",e.KHR="KHR",e.KMF="KMF",e.KRW="KRW",e.KWD="KWD",e.KYD="KYD",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.LRD="LRD",e.LSL="LSL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MRU="MRU",e.MUR="MUR",e.MWK="MWK",e.MVR="MVR",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PGK="PGK",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RWF="RWF",e.SAR="SAR",e.SCR="SCR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SLE="SLE",e.SLL="SLL",e.SOS="SOS",e.SRD="SRD",e.STN="STN",e.SVC="SVC",e.SYP="SYP",e.SZL="SZL",e.THB="THB",e.TJS="TJS",e.TMT="TMT",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.UYU="UYU",e.UZS="UZS",e.VND="VND",e.VUV="VUV",e.WST="WST",e.XAF="XAF",e.XCD="XCD",e.XOF="XOF",e.XPF="XPF",e.YER="YER",e.ZAR="ZAR",e.ZMW="ZMW",e.ZWL="ZWL",e.CDF="CDF",e.ERN="ERN",e.FKP="FKP",e.KPW="KPW",e.RUB="RUB",e.SBD="SBD",e.SHP="SHP",e.SSP="SSP",e.VES="VES",e))(Ma||{});const f8={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BND:"096",BOB:"068",BRL:"986",BTN:"064",BWP:"072",BZD:"084",CAD:"124",CHF:"756",CLP:"152",CNY:"156",COP:"170",CRC:"188",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ETB:"230",EUR:"978",GBP:"826",GEL:"981",GHS:"936",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HTG:"332",HUF:"348",IDR:"360",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MRU:"929",MUR:"480",MVR:"462",MXN:"484",MYR:"458",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RWF:"646",SAR:"682",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SLE:"925",SLL:"694",SOS:"706",STN:"930",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",UYU:"858",UZS:"860",VND:"704",XAF:"950",XCD:"951",XOF:"952",XPF:"953",YER:"886",ZAR:"710",ZMW:"967",ARS:"032",BMD:"060",BSD:"044",BYN:"933",CUP:"192",FJD:"242",ILS:"376",LAK:"418",LBP:"422",MWK:"454",MZN:"943",PGK:"598",SRD:"968",TOP:"776",VUV:"548",WST:"882",ZWL:"932",CLF:"990",CDF:"976",ERN:"232",FKP:"238",KPW:"408",RUB:"643",SBD:"090",SHP:"654",SSP:"728",VES:"928"},W0={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function l8(e){return e in W0}const z0={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function d8(e){return e in z0}const h8=new Set(["CLF"]),p8=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),m8=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function g8(e){return h8.has(e)?4:p8.has(e)?3:m8.has(e)?0:2}function v8(e,t){return e.currency===t}function y8(e){return{base:e.to,rate:1/e.rate,to:e.base}}var w8={269:function(e,t,n){function r(o,a){return new Promise((s=>setTimeout(s,o,a)))}function c(o){return!!o&&typeof o.then=="function"}function i(o,a){try{const s=o();c(s)?s.then((u=>a(!0,u)),(u=>a(!1,u))):a(!0,s)}catch(s){a(!1,s)}}async function d(o,a,s=16){const u=Array(o.length);let h=Date.now();for(let m=0;m<o.length;++m){u[m]=a(o[m],m);const p=Date.now();p>=h+s&&(h=p,await new Promise((N=>{const U=new MessageChannel;U.port1.onmessage=()=>N(),U.port2.postMessage(null)})))}return u}function v(o){return o.then(void 0,(()=>{})),o}function l(o){return parseInt(o)}function y(o){return parseFloat(o)}function A(o,a){return typeof o=="number"&&isNaN(o)?a:o}function O(o){return o.reduce(((a,s)=>a+(s?1:0)),0)}function S(o,a){const s=o[0]>>>16,u=65535&o[0],h=o[1]>>>16,m=65535&o[1],p=a[0]>>>16,N=65535&a[0],U=a[1]>>>16;let G=0,T=0,D=0,z=0;z+=m+(65535&a[1]),D+=z>>>16,z&=65535,D+=h+U,T+=D>>>16,D&=65535,T+=u+N,G+=T>>>16,T&=65535,G+=s+p,G&=65535,o[0]=G<<16|T,o[1]=D<<16|z}function I(o,a){const s=o[0]>>>16,u=65535&o[0],h=o[1]>>>16,m=65535&o[1],p=a[0]>>>16,N=65535&a[0],U=a[1]>>>16,G=65535&a[1];let T=0,D=0,z=0,X=0;X+=m*G,z+=X>>>16,X&=65535,z+=h*G,D+=z>>>16,z&=65535,z+=m*U,D+=z>>>16,z&=65535,D+=u*G,T+=D>>>16,D&=65535,D+=h*U,T+=D>>>16,D&=65535,D+=m*N,T+=D>>>16,D&=65535,T+=s*G+u*U+h*N+m*p,T&=65535,o[0]=T<<16|D,o[1]=z<<16|X}function B(o,a){const s=o[0];(a%=64)==32?(o[0]=o[1],o[1]=s):a<32?(o[0]=s<<a|o[1]>>>32-a,o[1]=o[1]<<a|s>>>32-a):(a-=32,o[0]=o[1]<<a|s>>>32-a,o[1]=s<<a|o[1]>>>32-a)}function C(o,a){(a%=64)!=0&&(a<32?(o[0]=o[1]>>>32-a,o[1]=o[1]<<a):(o[0]=o[1]<<a-32,o[1]=0))}function F(o,a){o[0]^=a[0],o[1]^=a[1]}n.r(t),n.d(t,{ERROR_API_KEY_EXPIRED:function(){return Ls},ERROR_API_KEY_INVALID:function(){return xs},ERROR_API_KEY_MISSING:function(){return Ts},ERROR_BAD_REQUEST_FORMAT:function(){return ed},ERROR_BAD_RESPONSE_FORMAT:function(){return cc},ERROR_CLIENT_TIMEOUT:function(){return ic},ERROR_CSP_BLOCK:function(){return uc},ERROR_FORBIDDEN_ENDPOINT:function(){return Hf},ERROR_FORBIDDEN_HEADER:function(){return id},ERROR_FORBIDDEN_ORIGIN:function(){return od},ERROR_GENERAL_SERVER_FAILURE:function(){return td},ERROR_HANDLE_AGENT_DATA:function(){return lc},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return Gf},ERROR_INTEGRATION_FAILURE:function(){return $f},ERROR_INVALID_ENDPOINT:function(){return fc},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return zf},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return Wf},ERROR_NETWORK_ABORT:function(){return ac},ERROR_NETWORK_CONNECTION:function(){return sc},ERROR_NETWORK_RESTRICTED:function(){return Kf},ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:function(){return Zf},ERROR_RATE_LIMIT:function(){return rd},ERROR_SERVER_TIMEOUT:function(){return nd},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return Ff},ERROR_TOKEN_EXPIRED:function(){return Wy},ERROR_TOKEN_INVALID:function(){return Ky},ERROR_TOKEN_MISSING:function(){return jy},ERROR_UNSUPPORTED_VERSION:function(){return Vf},ERROR_WRONG_REGION:function(){return Pf},default:function(){return zy},defaultEndpoint:function(){return gs},defaultTlsEndpoint:function(){return vs},handleAgentData:function(){return Dl},load:function(){return kl},makeBotdModule:function(){return xy},makeConsoleDebugModule:function(){return Gy},makeIdentificationModule:function(){return Fy},makeLatencyReportModule:function(){return L7},makeRemoteDebugModule:function(){return $y},makeValidationModule:function(){return Vy}});const j=[4283543511,3981806797],Q=[3301882366,444984403];function W(o){const a=[0,o[0]>>>1];F(o,a),I(o,j),a[1]=o[0]>>>1,F(o,a),I(o,Q),a[1]=o[0]>>>1,F(o,a)}const se=[2277735313,289559509],ue=[1291169091,658871167],oe=[0,5],Ee=[0,1390208809],Re=[0,944331445];function ne(o){return typeof o!="function"}function ie(o,a,s,u){const h=Object.keys(o).filter((p=>!(function(N,U){for(let G=0,T=N.length;G<T;++G)if(N[G]===U)return!0;return!1})(s,p))),m=v(d(h,(p=>(function(N,U){const G=v(new Promise((T=>{const D=Date.now();i(N.bind(null,U),((...z)=>{const X=Date.now()-D;if(!z[0])return T((()=>({error:z[1],duration:X})));const he=z[1];if(ne(he))return T((()=>({value:he,duration:X})));T((()=>new Promise((_e=>{const Be=Date.now();i(he,((...Te)=>{const xe=X+Date.now()-Be;if(!Te[0])return _e({error:Te[1],duration:xe});_e({value:Te[1],duration:xe})}))}))))}))})));return function(){return G.then((T=>T()))}})(o[p],a)),u));return async function(){const p=await m,N=await d(p,(T=>v(T())),u),U=await Promise.all(N),G={};for(let T=0;T<h.length;++T)G[h[T]]=U[T];return G}}function de(o,a){const s=u=>ne(u)?a(u):()=>{const h=u();return c(h)?h.then(a):a(h)};return u=>{const h=o(u);return c(h)?h.then(s):s(h)}}function ge(){const o=window,a=navigator;return O(["MSCSSMatrix"in o,"msSetImmediate"in o,"msIndexedDB"in o,"msMaxTouchPoints"in a,"msPointerEnabled"in a])>=4}function k(){const o=window,a=navigator;return O(["msWriteProfilerMark"in o,"MSStream"in o,"msLaunchUri"in a,"msSaveBlob"in a])>=3&&!ge()}function f(){const o=window,a=navigator;return O(["webkitPersistentStorage"in a,"webkitTemporaryStorage"in a,(a.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in o,"BatteryManager"in o,"webkitMediaStream"in o,"webkitSpeechGrammar"in o])>=5}function R(){const o=window;return O(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,navigator.vendor.indexOf("Apple")===0,"RGBColor"in o,"WebKitMediaKeys"in o])>=4}function M(){const o=window,{HTMLElement:a,Document:s}=o;return O(["safari"in o,!("ongestureend"in o),!("TouchEvent"in o),!("orientation"in o),a&&!("autocapitalize"in a.prototype),s&&"pointerLockElement"in s.prototype])>=4}function $(){var o,a;const s=window;return O(["buildID"in navigator,"MozAppearance"in((a=(o=document.documentElement)===null||o===void 0?void 0:o.style)!==null&&a!==void 0?a:{}),"onmozfullscreenchange"in s,"mozInnerScreenX"in s,"CSSMozDocumentRule"in s,"CanvasCaptureMediaStream"in s])>=4}function Y(){const{CSS:o}=window;return O([o.supports("selector(::details-content)"),o.supports("selector(::before::marker)"),o.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function te(){const o=document;return o.fullscreenElement||o.msFullscreenElement||o.mozFullScreenElement||o.webkitFullscreenElement||null}function ae(){const o=f(),a=$(),s=window,u=navigator,h="connection";return o?O([!("SharedWorker"in s),u[h]&&"ontypechange"in u[h],!("sinkId"in new Audio)])>=2:!!a&&O(["onorientationchange"in s,"orientation"in s,/android/i.test(u.appVersion)])>=2}function K(){const o=navigator,a=window,s=Audio.prototype,{visualViewport:u}=a;return O(["srLatency"in s,"srChannelCount"in s,"devicePosture"in o,u&&"segments"in u,"getTextInformation"in Image.prototype])>=3}function g(){const o=window,a=o.OfflineAudioContext||o.webkitOfflineAudioContext;if(!a)return-2;if(R()&&!M()&&!(function(){const U=window;return O(["DOMRectList"in U,"RTCPeerConnectionIceEvent"in U,"SVGGeometryElement"in U,"ontransitioncancel"in U])>=3})())return-1;const s=new a(1,5e3,44100),u=s.createOscillator();u.type="triangle",u.frequency.value=1e4;const h=s.createDynamicsCompressor();h.threshold.value=-50,h.knee.value=40,h.ratio.value=12,h.attack.value=0,h.release.value=.25,u.connect(h),h.connect(s.destination),u.start(0);const[m,p]=(function(U){let G=()=>{};return[new Promise(((T,D)=>{let z=!1,X=0,he=0;U.oncomplete=Te=>T(Te.renderedBuffer);const _e=()=>{setTimeout((()=>D(_("timeout"))),Math.min(500,he+5e3-Date.now()))},Be=()=>{try{const Te=U.startRendering();switch(c(Te)&&v(Te),U.state){case"running":he=Date.now(),z&&_e();break;case"suspended":document.hidden||X++,z&&X>=3?D(_("suspended")):setTimeout(Be,500)}}catch(Te){D(Te)}};Be(),G=()=>{z||(z=!0,he>0&&_e())}})),G]})(s),N=v(m.then((U=>(function(G){let T=0;for(let D=0;D<G.length;++D)T+=Math.abs(G[D]);return T})(U.getChannelData(0).subarray(4500))),(U=>{if(U.name==="timeout"||U.name==="suspended")return-3;throw U})));return()=>(p(),N)}function _(o){const a=new Error(o);return a.name=o,a}async function H(o,a,s=50){var u,h,m;const p=document;for(;!p.body;)await r(s);const N=p.createElement("iframe");try{for(await new Promise(((U,G)=>{let T=!1;const D=()=>{T=!0,U()};N.onload=D,N.onerror=he=>{T=!0,G(he)};const{style:z}=N;z.setProperty("display","block","important"),z.position="absolute",z.top="0",z.left="0",z.visibility="hidden",a&&"srcdoc"in N?N.srcdoc=a:N.src="about:blank",p.body.appendChild(N);const X=()=>{var he,_e;T||(((_e=(he=N.contentWindow)===null||he===void 0?void 0:he.document)===null||_e===void 0?void 0:_e.readyState)==="complete"?D():setTimeout(X,10))};X()}));!(!((h=(u=N.contentWindow)===null||u===void 0?void 0:u.document)===null||h===void 0)&&h.body);)await r(s);return await o(N,N.contentWindow)}finally{(m=N.parentNode)===null||m===void 0||m.removeChild(N)}}function J(o){const[a,s]=(function(h){var m,p;const N=`Unexpected syntax '${h}'`,U=/^\s*([a-z-]*)(.*)$/i.exec(h),G=U[1]||void 0,T={},D=/([.:#][\w-]+|\[.+?\])/gi,z=(X,he)=>{T[X]=T[X]||[],T[X].push(he)};for(;;){const X=D.exec(U[2]);if(!X)break;const he=X[0];switch(he[0]){case".":z("class",he.slice(1));break;case"#":z("id",he.slice(1));break;case"[":{const _e=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(he);if(!_e)throw new Error(N);z(_e[1],(p=(m=_e[4])!==null&&m!==void 0?m:_e[5])!==null&&p!==void 0?p:"");break}default:throw new Error(N)}}return[G,T]})(o),u=document.createElement(a??"div");for(const h of Object.keys(s)){const m=s[h].join(" ");h==="style"?me(u.style,m):u.setAttribute(h,m)}return u}function me(o,a){for(const s of a.split(";")){const u=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(s);if(u){const[,h,m,,p]=u;o.setProperty(h,m,p||"")}}}function ye(o){let a,s,u=!1;const[h,m]=(function(){const p=document.createElement("canvas");return p.width=1,p.height=1,[p,p.getContext("2d")]})();return(function(p,N){return!(!N||!p.toDataURL)})(h,m)?(u=(function(p){return p.rect(0,0,10,10),p.rect(2,2,6,6),!p.isPointInPath(5,5,"evenodd")})(m),[a,s]=(function(p,N){(function(G,T){G.width=240,G.height=60,T.textBaseline="alphabetic",T.fillStyle="#f60",T.fillRect(100,1,62,20),T.fillStyle="#069",T.font='11pt "Times New Roman"';const D="Cwm fjordbank gly 😃";T.fillText(D,2,15),T.fillStyle="rgba(102, 204, 0, 0.2)",T.font="18pt Arial",T.fillText(D,4,45)})(p,N);const U=Ue(p);return U!==Ue(p)?["unstable","unstable"]:((function(G,T){G.width=122,G.height=110,T.globalCompositeOperation="multiply";for(const[D,z,X]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])T.fillStyle=D,T.beginPath(),T.arc(z,X,40,0,2*Math.PI,!0),T.closePath(),T.fill();T.fillStyle="#f9c",T.arc(60,60,60,0,2*Math.PI,!0),T.arc(60,60,20,0,2*Math.PI,!0),T.fill("evenodd")})(p,N),[Ue(p),U])})(h,m)):a=s="unsupported",{winding:u,geometry:a,text:s}}function Ue(o){return o.toDataURL()}function Ke(){const o=screen,a=u=>A(l(u),null),s=[a(o.width),a(o.height)];return s.sort().reverse(),s}let st,at;function ut(){return(function(){if(at!==void 0)return;const o=()=>{const a=_t();pt(a)?at=setTimeout(o,2500):(st=a,at=void 0)};o()})(),async()=>{let o=_t();if(pt(o)){if(st)return[...st];te()&&(await(function(){const a=document;return(a.exitFullscreen||a.msExitFullscreen||a.mozCancelFullScreen||a.webkitExitFullscreen).call(a)})(),o=_t())}return pt(o)||(st=o),o}}function _t(){const o=screen;return[A(y(o.availTop),null),A(y(o.width)-y(o.availWidth)-A(y(o.availLeft),0),null),A(y(o.height)-y(o.availHeight)-A(y(o.availTop),0),null),A(y(o.availLeft),null)]}function pt(o){for(let a=0;a<4;++a)if(o[a])return!1;return!0}function Rt(o){o.style.setProperty("visibility","hidden","important"),o.style.setProperty("display","block","important")}function Pt(o){return matchMedia(`(inverted-colors: ${o})`).matches}function vt(o){return matchMedia(`(forced-colors: ${o})`).matches}function w(o){return matchMedia(`(prefers-contrast: ${o})`).matches}function x(o){return matchMedia(`(prefers-reduced-motion: ${o})`).matches}function V(o){return matchMedia(`(prefers-reduced-transparency: ${o})`).matches}function Z(o){return matchMedia(`(dynamic-range: ${o})`).matches}const fe=Math,pe=()=>0,Me=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),tt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Qe=["FRAGMENT_SHADER","VERTEX_SHADER"],P=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],E="WEBGL_debug_renderer_info";function b(o){if(o.webgl)return o.webgl.context;const a=document.createElement("canvas");let s;a.addEventListener("webglCreateContextError",(()=>s=void 0));for(const u of["webgl","experimental-webgl"]){try{s=a.getContext(u)}catch{}if(s)break}return o.webgl={context:s},s}function q(o,a,s){const u=o.getShaderPrecisionFormat(o[a],o[s]);return u?[u.rangeMin,u.rangeMax,u.precision]:[]}function ve(o){return Object.keys(o.__proto__).filter(be)}function be(o){return typeof o=="string"&&!o.match(/[^A-Z0-9_x]/)}function L(){return $()}function re(o){return typeof o.getParameter=="function"}const ee=async function({debug:o}={}){if(!R()&&!ae())return;const a=(function(){const p=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',p("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",p("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",p("LnNwb25zb3JpdA=="),".ylamainos",p("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",p("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",p("LmhlYWRlci1ibG9ja2VkLWFk"),p("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",p("I2FkXzMwMFgyNTA="),p("I2Jhbm5lcmZsb2F0MjI="),p("I2NhbXBhaWduLWJhbm5lcg=="),p("I0FkLUNvbnRlbnQ=")],adGuardChinese:[p("LlppX2FkX2FfSA=="),p("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",p("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),p("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",p("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",p("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",p("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),p("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),p("LmFkZ29vZ2xl"),p("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[p("YW1wLWF1dG8tYWRz"),p("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",p("I2FkX2ludmlld19hcmVh")],adGuardRussian:[p("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),p("LnJlY2xhbWE="),'div[id^="smi2adblock"]',p("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[p("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),p("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",p("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),p("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),p("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",p("I3Jla2xhbWk="),p("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),p("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),p("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[p("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",p("LndpZGdldF9wb19hZHNfd2lkZ2V0"),p("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",p("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[p("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),p("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",p("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",p("I3Jla2xhbW5pLWJveA=="),p("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",p("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[p("I2FkdmVydGVudGll"),p("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",p("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",p("LnNwb25zb3JsaW5rZ3J1ZW4="),p("I3dlcmJ1bmdza3k="),p("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),p("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[p("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",p("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[p("LnJla2xhbW9zX3RhcnBhcw=="),p("LnJla2xhbW9zX251b3JvZG9z"),p("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),p("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),p("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[p("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[p("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),p("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",p("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[p("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),p("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),p("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",p("LmFkX19tYWlu"),p("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[p("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[p("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),p("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[p("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),p("I2xpdmVyZUFkV3JhcHBlcg=="),p("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),p("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[p("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",p("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),p("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),p("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[p("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),p("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),p("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",p("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),p("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),p("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),p("ZGl2I3NrYXBpZWNfYWQ=")],ro:[p("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),p("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),p("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[p("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),p("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),p("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",p("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),p("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",p("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}})(),s=Object.keys(a),u=[].concat(...s.map((p=>a[p]))),h=await(async function(p){var N;const U=document,G=U.createElement("div"),T=new Array(p.length),D={};Rt(G);for(let z=0;z<p.length;++z){const X=J(p[z]);X.tagName==="DIALOG"&&X.show();const he=U.createElement("div");Rt(he),he.appendChild(X),G.appendChild(he),T[z]=X}for(;!U.body;)await r(50);U.body.appendChild(G);try{for(let z=0;z<p.length;++z)T[z].offsetParent||(D[p[z]]=!0)}finally{(N=G.parentNode)===null||N===void 0||N.removeChild(G)}return D})(u);o&&(function(p,N){let U="DOM blockers debug:\n```";for(const G of Object.keys(p)){U+=`
|
|
7
|
+
Missing signature for public key${i.missing.length===1?"":"(s)"} [\`${i.missing.map(v=>v.toBase58()).join("`, `")}\`].`),new Error(d)}}return this._serialize(c)}_serialize(t){const{signatures:n}=this,r=[];kn(r,n.length);const c=r.length+n.length*64+t.length,i=wt.Buffer.alloc(c);return Lt(n.length<256),wt.Buffer.from(r).copy(i,0),n.forEach(({signature:d},v)=>{d!==null&&(Lt(d.length===64,"signature has invalid length"),wt.Buffer.from(d).copy(i,r.length+v*64))}),t.copy(i,r.length+n.length*64),Lt(i.length<=Pr,`Transaction too large: ${i.length} > ${Pr}`),i}get keys(){return Lt(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Lt(this.instructions.length===1),this.instructions[0].programId}get data(){return Lt(this.instructions.length===1),this.instructions[0].data}static from(t){let n=[...t];const r=Bn(n);let c=[];for(let i=0;i<r;i++){const d=an(n,0,Rr);c.push(En.encode(wt.Buffer.from(d)))}return Yi.populate(Fr.from(n),c)}static populate(t,n=[]){const r=new Yi;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((c,i)=>{const d={signature:c==En.encode(U4)?null:En.decode(c),publicKey:t.accountKeys[i]};r.signatures.push(d)}),t.instructions.forEach(c=>{const i=c.accounts.map(d=>{const v=t.accountKeys[d];return{pubkey:v,isSigner:r.signatures.some(l=>l.publicKey.toString()===v.toString())||t.isAccountSigner(d),isWritable:t.isAccountWritable(d)}});r.instructions.push(new Sa({keys:i,programId:t.accountKeys[c.programIdIndex],data:En.decode(c.data)}))}),r._message=t,r._json=r.toJSON(),r}}class Xi{get version(){return this.message.version}constructor(t,n){if(this.signatures=void 0,this.message=void 0,n!==void 0)Lt(n.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=n;else{const r=[];for(let c=0;c<t.header.numRequiredSignatures;c++)r.push(new Uint8Array(Rr));this.signatures=r}this.message=t}serialize(){const t=this.message.serialize(),n=Array();kn(n,this.signatures.length);const r=le.struct([le.blob(n.length,"encodedSignaturesLength"),le.seq(N4(),this.signatures.length,"signatures"),le.blob(t.length,"serializedMessage")]),c=new Uint8Array(2048),i=r.encode({encodedSignaturesLength:new Uint8Array(n),signatures:this.signatures,serializedMessage:t},c);return c.slice(0,i)}static deserialize(t){if(t[0]===T0)return this.deserializeV1(t);let n=[...t];const r=[],c=Bn(n);for(let d=0;d<c;d++)r.push(new Uint8Array(an(n,0,Rr)));const i=Zi.deserialize(new Uint8Array(n));return new Xi(i,r)}static deserializeV1(t){const n=t[1],r=n*Rr,c=t.length-r;Lt(c>0,"Expected transaction to have enough bytes for its signatures");const i=Zi.deserialize(t.slice(0,c)),d=[];for(let v=0;v<n;v++){const l=c+v*Rr;d.push(t.slice(l,l+Rr))}return new Xi(i,d)}sign(t){const n=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const c of t){const i=r.findIndex(d=>d.equals(c.publicKey));Lt(i>=0,`Cannot sign with non signer key ${c.publicKey.toBase58()}`),this.signatures[i]=A0(n,c.secretKey)}}addSignature(t,n){Lt(n.byteLength===64,"Signature must be 64 bytes long");const c=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));Lt(c>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[c]=n}}new ft("SysvarC1ock11111111111111111111111111111111"),new ft("SysvarEpochSchedu1e111111111111111111111111"),new ft("Sysvar1nstructions1111111111111111111111111"),new ft("SysvarRecentB1ockHashes11111111111111111111"),new ft("SysvarRent111111111111111111111111111111111"),new ft("SysvarRewards111111111111111111111111111111"),new ft("SysvarS1otHashes111111111111111111111111111"),new ft("SysvarS1otHistory11111111111111111111111111"),new ft("SysvarStakeHistory1111111111111111111111111");const C0=le.nu64("lamportsPerSignature");le.struct([le.u32("version"),le.u32("state"),_t("authorizedPubkey"),_t("nonce"),le.struct([C0],"feeCalculator")]).span;function fo(e){const t=le.blob(8,e),n=t.decode.bind(t),r=t.encode.bind(t),c=t,i=Dp();return c.decode=(d,v)=>{const l=n(d,v);return i.decode(l)},c.encode=(d,v,l)=>{const y=i.encode(d);return r(y,v,l)},c}Object.freeze({Create:{index:0,layout:le.struct([le.u32("instruction"),le.ns64("lamports"),le.ns64("space"),_t("programId")])},Assign:{index:1,layout:le.struct([le.u32("instruction"),_t("programId")])},Transfer:{index:2,layout:le.struct([le.u32("instruction"),fo("lamports")])},CreateWithSeed:{index:3,layout:le.struct([le.u32("instruction"),_t("base"),uo("seed"),le.ns64("lamports"),le.ns64("space"),_t("programId")])},AdvanceNonceAccount:{index:4,layout:le.struct([le.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:le.struct([le.u32("instruction"),_t("authorized")])},AuthorizeNonceAccount:{index:7,layout:le.struct([le.u32("instruction"),_t("authorized")])},Allocate:{index:8,layout:le.struct([le.u32("instruction"),le.ns64("space")])},AllocateWithSeed:{index:9,layout:le.struct([le.u32("instruction"),_t("base"),uo("seed"),le.ns64("space"),_t("programId")])},AssignWithSeed:{index:10,layout:le.struct([le.u32("instruction"),_t("base"),uo("seed"),_t("programId")])},TransferWithSeed:{index:11,layout:le.struct([le.u32("instruction"),fo("lamports"),uo("seed"),_t("programId")])},UpgradeNonceAccount:{index:12,layout:le.struct([le.u32("instruction")])}}),new ft("11111111111111111111111111111111"),new ft("BPFLoader2111111111111111111111111111111111"),le.struct([le.u32("typeIndex"),fo("deactivationSlot"),le.nu64("lastExtendedSlot"),le.u8("lastExtendedStartIndex"),le.u8(),le.seq(_t(),le.offset(le.u8(),-1),"authority")]);const Wt=Fo(fa(ft),Ze(),e=>new ft(e)),M0=la([Ze(),Ut("base64")]),Ia=Fo(fa(wt.Buffer),M0,e=>wt.Buffer.from(e[0],"base64"));function B0(e){return Tn([Ge({jsonrpc:Ut("2.0"),id:Ze(),result:e}),Ge({jsonrpc:Ut("2.0"),id:Ze(),error:Ge({code:io(),message:Ze(),data:nt($p())})})])}const P4=B0(io());function Ct(e){return Fo(B0(e),P4,t=>"error"in t?t:{...t,result:Uo(t.result,e)})}function Yn(e){return Ct(Ge({context:Ge({slot:Ie()}),value:e}))}function qi(e){return Ge({context:Ge({slot:Ie()}),value:e})}const F4=Ge({foundation:Ie(),foundationTerm:Ie(),initial:Ie(),taper:Ie(),terminal:Ie()});Ct(Je(Xe(Ge({epoch:Ie(),effectiveSlot:Ie(),amount:Ie(),postBalance:Ie(),commission:nt(Xe(Ie()))}))));const V4=Je(Ge({slot:Ie(),prioritizationFee:Ie()})),G4=Ge({total:Ie(),validator:Ie(),foundation:Ie(),epoch:Ie()}),H4=Ge({epoch:Ie(),slotIndex:Ie(),slotsInEpoch:Ie(),absoluteSlot:Ie(),blockHeight:nt(Ie()),transactionCount:nt(Ie())}),$4=Ge({slotsPerEpoch:Ie(),leaderScheduleSlotOffset:Ie(),warmup:er(),firstNormalEpoch:Ie(),firstNormalSlot:Ie()}),j4=s0(Ze(),Je(Ie())),Vr=Xe(Tn([Ge({}),Ze()])),K4=Ge({err:Vr}),W4=Ut("receivedSignature");Ge({"solana-core":Ze(),"feature-set":nt(Ie())});const z4=Ge({program:Ze(),programId:Wt,parsed:io()}),Z4=Ge({programId:Wt,accounts:Je(Wt),data:Ze()});Yn(Ge({err:Xe(Tn([Ge({}),Ze()])),logs:Xe(Je(Ze())),accounts:nt(Xe(Je(Xe(Ge({executable:er(),owner:Ze(),lamports:Ie(),data:Je(Ze()),rentEpoch:nt(Ie())}))))),unitsConsumed:nt(Ie()),returnData:nt(Xe(Ge({programId:Ze(),data:la([Ze(),Ut("base64")])}))),innerInstructions:nt(Xe(Je(Ge({index:Ie(),instructions:Je(Tn([z4,Z4]))}))))})),Yn(Ge({byIdentity:s0(Ze(),Je(Ie())),range:Ge({firstSlot:Ie(),lastSlot:Ie()})})),Ct(F4),Ct(G4),Ct(V4),Ct(H4),Ct($4),Ct(j4),Ct(Ie()),Yn(Ge({total:Ie(),circulating:Ie(),nonCirculating:Ie(),nonCirculatingAccounts:Je(Wt)}));const Y4=Ge({amount:Ze(),uiAmount:Xe(Ie()),decimals:Ie(),uiAmountString:nt(Ze())});Yn(Je(Ge({address:Wt,amount:Ze(),uiAmount:Xe(Ie()),decimals:Ie(),uiAmountString:nt(Ze())}))),Yn(Je(Ge({pubkey:Wt,account:Ge({executable:er(),owner:Wt,lamports:Ie(),data:Ia,rentEpoch:Ie()})})));const Oa=Ge({program:Ze(),parsed:io(),space:Ie()});Yn(Je(Ge({pubkey:Wt,account:Ge({executable:er(),owner:Wt,lamports:Ie(),data:Oa,rentEpoch:Ie()})}))),Yn(Je(Ge({lamports:Ie(),address:Wt})));const Na=Ge({executable:er(),owner:Wt,lamports:Ie(),data:Ia,rentEpoch:Ie()});Ge({pubkey:Wt,account:Na});const X4=Fo(Tn([fa(wt.Buffer),Oa]),Tn([M0,Oa]),e=>Array.isArray(e)?Uo(e,Ia):e),q4=Ge({executable:er(),owner:Wt,lamports:Ie(),data:X4,rentEpoch:Ie()});Ge({pubkey:Wt,account:q4}),Ge({state:Tn([Ut("active"),Ut("inactive"),Ut("activating"),Ut("deactivating")]),active:Ie(),inactive:Ie()}),Ct(Je(Ge({signature:Ze(),slot:Ie(),err:Vr,memo:Xe(Ze()),blockTime:nt(Xe(Ie()))}))),Ct(Je(Ge({signature:Ze(),slot:Ie(),err:Vr,memo:Xe(Ze()),blockTime:nt(Xe(Ie()))}))),Ge({subscription:Ie(),result:qi(Na)});const J4=Ge({pubkey:Wt,account:Na});Ge({subscription:Ie(),result:qi(J4)});const Q4=Ge({parent:Ie(),slot:Ie(),root:Ie()});Ge({subscription:Ie(),result:Q4});const e8=Tn([Ge({type:Tn([Ut("firstShredReceived"),Ut("completed"),Ut("optimisticConfirmation"),Ut("root")]),slot:Ie(),timestamp:Ie()}),Ge({type:Ut("createdBank"),parent:Ie(),slot:Ie(),timestamp:Ie()}),Ge({type:Ut("frozen"),slot:Ie(),timestamp:Ie(),stats:Ge({numTransactionEntries:Ie(),numSuccessfulTransactions:Ie(),numFailedTransactions:Ie(),maxTransactionsPerEntry:Ie()})}),Ge({type:Ut("dead"),slot:Ie(),timestamp:Ie(),err:Ze()})]);Ge({subscription:Ie(),result:e8}),Ge({subscription:Ie(),result:qi(Tn([K4,W4]))}),Ge({subscription:Ie(),result:Ie()}),Ge({pubkey:Ze(),gossip:Xe(Ze()),tpu:Xe(Ze()),rpc:Xe(Ze()),version:Xe(Ze())});const k0=Ge({votePubkey:Ze(),nodePubkey:Ze(),activatedStake:Ie(),epochVoteAccount:er(),epochCredits:Je(la([Ie(),Ie(),Ie()])),commission:Ie(),lastVote:Ie(),rootSlot:Xe(Ie())});Ct(Ge({current:Je(k0),delinquent:Je(k0)}));const t8=Tn([Ut("processed"),Ut("confirmed"),Ut("finalized")]),n8=Ge({slot:Ie(),confirmations:Xe(Ie()),err:Vr,confirmationStatus:nt(t8)});Yn(Je(Xe(n8))),Ct(Ie());const D0=Ge({accountKey:Wt,writableIndexes:Je(Ie()),readonlyIndexes:Je(Ie())}),U0=Ge({computeUnitLimit:Xe(Ie()),heapSize:Xe(Ie()),loadedAccountsDataSizeLimit:Xe(Ie()),priorityFee:Xe(Ie())}),Ta=Ge({signatures:Je(Ze()),message:Ge({accountKeys:Je(Ze()),header:Ge({numRequiredSignatures:Ie(),numReadonlySignedAccounts:Ie(),numReadonlyUnsignedAccounts:Ie()}),instructions:Je(Ge({accounts:Je(Ie()),data:Ze(),programIdIndex:Ie()})),recentBlockhash:Ze(),addressTableLookups:nt(Je(D0)),transactionConfig:nt(Xe(U0))})}),P0=Ge({pubkey:Wt,signer:er(),writable:er(),source:nt(Tn([Ut("transaction"),Ut("lookupTable")]))}),F0=Ge({accountKeys:Je(P0),signatures:Je(Ze())}),V0=Ge({parsed:io(),program:Ze(),programId:Wt}),G0=Ge({accounts:Je(Wt),data:Ze(),programId:Wt}),r8=Tn([G0,V0]),o8=Tn([Ge({parsed:io(),program:Ze(),programId:Ze()}),Ge({accounts:Je(Ze()),data:Ze(),programId:Ze()})]),H0=Fo(r8,o8,e=>"accounts"in e?Uo(e,G0):Uo(e,V0)),$0=Ge({signatures:Je(Ze()),message:Ge({accountKeys:Je(P0),instructions:Je(H0),recentBlockhash:Ze(),addressTableLookups:nt(Xe(Je(D0))),transactionConfig:nt(Xe(U0))})}),Ji=Ge({accountIndex:Ie(),mint:Ze(),owner:nt(Ze()),programId:nt(Ze()),uiTokenAmount:Y4}),j0=Ge({writable:Je(Wt),readonly:Je(Wt)}),Qi=Ge({err:Vr,fee:Ie(),innerInstructions:nt(Xe(Je(Ge({index:Ie(),instructions:Je(Ge({accounts:Je(Ie()),data:Ze(),programIdIndex:Ie()}))})))),preBalances:Je(Ie()),postBalances:Je(Ie()),logMessages:nt(Xe(Je(Ze()))),preTokenBalances:nt(Xe(Je(Ji))),postTokenBalances:nt(Xe(Je(Ji))),loadedAddresses:nt(j0),computeUnitsConsumed:nt(Ie()),costUnits:nt(Ie())}),xa=Ge({err:Vr,fee:Ie(),innerInstructions:nt(Xe(Je(Ge({index:Ie(),instructions:Je(H0)})))),preBalances:Je(Ie()),postBalances:Je(Ie()),logMessages:nt(Xe(Je(Ze()))),preTokenBalances:nt(Xe(Je(Ji))),postTokenBalances:nt(Xe(Je(Ji))),loadedAddresses:nt(j0),computeUnitsConsumed:nt(Ie()),costUnits:nt(Ie())}),lo=Tn([Ut(0),Ut(1),Ut("legacy")]),Gr=Ge({pubkey:Ze(),lamports:Ie(),postBalance:Xe(Ie()),rewardType:Xe(Ze()),commission:nt(Xe(Ie()))});Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:Ta,meta:Xe(Qi),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:F0,meta:Xe(Qi),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:$0,meta:Xe(xa),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:F0,meta:Xe(xa),version:nt(lo)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),rewards:nt(Je(Gr)),blockTime:Xe(Ie()),blockHeight:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),transactions:Je(Ge({transaction:Ta,meta:Xe(Qi)})),rewards:nt(Je(Gr)),blockTime:Xe(Ie())}))),Ct(Xe(Ge({blockhash:Ze(),previousBlockhash:Ze(),parentSlot:Ie(),signatures:Je(Ze()),blockTime:Xe(Ie())}))),Ct(Xe(Ge({slot:Ie(),meta:Xe(Qi),blockTime:nt(Xe(Ie())),transaction:Ta,version:nt(lo)}))),Ct(Xe(Ge({slot:Ie(),transaction:$0,meta:Xe(xa),blockTime:nt(Xe(Ie())),version:nt(lo)}))),Yn(Ge({blockhash:Ze(),lastValidBlockHeight:Ie()})),Yn(er());const i8=Ge({slot:Ie(),numTransactions:Ie(),numSlots:Ie(),samplePeriodSecs:Ie()});Ct(Je(i8)),Yn(Xe(Ge({feeCalculator:Ge({lamportsPerSignature:Ie()})}))),Ct(Ze()),Ct(Ze());const s8=Ge({err:Vr,logs:Je(Ze()),signature:Ze()});Ge({result:qi(s8),subscription:Ie()}),Object.freeze({CreateLookupTable:{index:0,layout:le.struct([le.u32("instruction"),fo("recentSlot"),le.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:le.struct([le.u32("instruction")])},ExtendLookupTable:{index:2,layout:le.struct([le.u32("instruction"),fo(),le.seq(_t(),le.offset(le.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:le.struct([le.u32("instruction")])},CloseLookupTable:{index:4,layout:le.struct([le.u32("instruction")])}}),new ft("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:le.struct([le.u8("instruction"),le.u32("units"),le.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:le.struct([le.u8("instruction"),le.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:le.struct([le.u8("instruction"),le.u32("units")])},SetComputeUnitPrice:{index:3,layout:le.struct([le.u8("instruction"),fo("microLamports")])}}),new ft("ComputeBudget111111111111111111111111111111"),le.struct([le.u8("numSignatures"),le.u8("padding"),le.u16("signatureOffset"),le.u16("signatureInstructionIndex"),le.u16("publicKeyOffset"),le.u16("publicKeyInstructionIndex"),le.u16("messageDataOffset"),le.u16("messageDataSize"),le.u16("messageInstructionIndex")]),new ft("Ed25519SigVerify111111111111111111111111111"),S4.utils.isValidPrivateKey,le.struct([le.u8("numSignatures"),le.u16("signatureOffset"),le.u8("signatureInstructionIndex"),le.u16("ethAddressOffset"),le.u8("ethAddressInstructionIndex"),le.u16("messageDataOffset"),le.u16("messageDataSize"),le.u8("messageInstructionIndex"),le.blob(20,"ethAddress"),le.blob(64,"signature"),le.u8("recoveryId")]),new ft("KeccakSecp256k11111111111111111111111111111");var K0;new ft("StakeConfig11111111111111111111111111111111");class La{constructor(t,n,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}}K0=La,La.default=new K0(0,0,ft.default),Object.freeze({Initialize:{index:0,layout:le.struct([le.u32("instruction"),T4(),x4()])},Authorize:{index:1,layout:le.struct([le.u32("instruction"),_t("newAuthorized"),le.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:le.struct([le.u32("instruction")])},Split:{index:3,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},Withdraw:{index:4,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},Deactivate:{index:5,layout:le.struct([le.u32("instruction")])},Merge:{index:7,layout:le.struct([le.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:le.struct([le.u32("instruction"),_t("newAuthorized"),le.u32("stakeAuthorizationType"),uo("authoritySeed"),_t("authorityOwner")])}}),new ft("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:le.struct([le.u32("instruction"),L4()])},Authorize:{index:1,layout:le.struct([le.u32("instruction"),_t("newAuthorized"),le.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:le.struct([le.u32("instruction"),le.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:le.struct([le.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:le.struct([le.u32("instruction"),C4()])}}),new ft("Vote111111111111111111111111111111111111111"),new ft("Va1idator1nfo111111111111111111111111111111"),Ge({name:Ze(),website:nt(Ze()),details:nt(Ze()),iconUrl:nt(Ze()),keybaseUsername:nt(Ze())}),new ft("Vote111111111111111111111111111111111111111"),le.struct([_t("nodePubkey"),_t("authorizedWithdrawer"),le.u8("commission"),le.nu64(),le.seq(le.struct([le.nu64("slot"),le.u32("confirmationCount")]),le.offset(le.u32(),-8),"votes"),le.u8("rootSlotValid"),le.nu64("rootSlot"),le.nu64(),le.seq(le.struct([le.nu64("epoch"),_t("authorizedVoter")]),le.offset(le.u32(),-8),"authorizedVoters"),le.struct([le.seq(le.struct([_t("authorizedPubkey"),le.nu64("epochOfLastAuthorizedSwitch"),le.nu64("targetEpoch")]),32,"buf"),le.nu64("idx"),le.u8("isEmpty")],"priorVoters"),le.nu64(),le.seq(le.struct([le.nu64("epoch"),le.nu64("credits"),le.nu64("prevCredits")]),le.offset(le.u32(),-8),"epochCredits"),le.struct([le.nu64("slot"),le.nu64("timestamp")],"lastTimestamp")]);const a8=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:C0,Lockup:La,MAX_SEED_LENGTH:O0,Message:Fr,MessageAccountKeys:co,MessageV0:Ho,MessageV1:zi,PACKET_DATA_SIZE:Pr,PUBLIC_KEY_LENGTH:Zn,PublicKey:ft,SIGNATURE_LENGTH_IN_BYTES:Rr,SOLANA_SCHEMA:Vo,Struct:S0,Transaction:Yi,TransactionInstruction:Sa,VERSION_1_MESSAGE_PREFIX:T0,VERSION_PREFIX_MASK:Go,VersionedMessage:Zi,VersionedTransaction:Xi},Symbol.toStringTag,{value:"Module"}));function c8(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let y=0;y<t.length;y++)t[y]=255;for(let y=0;y<e.length;y++){const A=e.charAt(y),O=A.charCodeAt(0);if(t[O]!==255)throw new TypeError(A+" is ambiguous");t[O]=y}const n=e.length,r=e.charAt(0),c=Math.log(n)/Math.log(256),i=Math.log(256)/Math.log(n);function d(y){if(y instanceof Uint8Array||(ArrayBuffer.isView(y)?y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength):Array.isArray(y)&&(y=Uint8Array.from(y))),!(y instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(y.length===0)return"";let A=0,O=0,S=0;const I=y.length;for(;S!==I&&y[S]===0;)S++,A++;const B=(I-S)*i+1>>>0,C=new Uint8Array(B);for(;S!==I;){let Q=y[S],W=0;for(let ae=B-1;(Q!==0||W<O)&&ae!==-1;ae--,W++)Q+=256*C[ae]>>>0,C[ae]=Q%n>>>0,Q=Q/n>>>0;if(Q!==0)throw new Error("Non-zero carry");O=W,S++}let F=B-O;for(;F!==B&&C[F]===0;)F++;let j=r.repeat(A);for(;F<B;++F)j+=e.charAt(C[F]);return j}function v(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return new Uint8Array;let A=0,O=0,S=0;for(;y[A]===r;)O++,A++;const I=(y.length-A)*c+1>>>0,B=new Uint8Array(I);for(;A<y.length;){const Q=y.charCodeAt(A);if(Q>255)return;let W=t[Q];if(W===255)return;let ae=0;for(let fe=I-1;(W!==0||ae<S)&&fe!==-1;fe--,ae++)W+=n*B[fe]>>>0,B[fe]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=ae,A++}let C=I-S;for(;C!==I&&B[C]===0;)C++;const F=new Uint8Array(O+(I-C));let j=O;for(;C!==I;)F[j++]=B[C++];return F}function l(y){const A=v(y);if(A)return A;throw new Error("Non-base"+n+" character")}return{encode:d,decodeUnsafe:v,decode:l}}var u8="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const f8=c8(u8),es=a8,br=f8;var Ca={exports:{}},W0;function l8(){return W0||(W0=1,(function(e){var t=(function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function d(l,y){if(!i[l]){i[l]={};for(var A=0;A<l.length;A++)i[l][l.charAt(A)]=A}return i[l][y]}var v={compressToBase64:function(l){if(l==null)return"";var y=v._compress(l,6,function(A){return r.charAt(A)});switch(y.length%4){default:case 0:return y;case 1:return y+"===";case 2:return y+"==";case 3:return y+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:v._decompress(l.length,32,function(y){return d(r,l.charAt(y))})},compressToUTF16:function(l){return l==null?"":v._compress(l,15,function(y){return n(y+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:v._decompress(l.length,16384,function(y){return l.charCodeAt(y)-32})},compressToUint8Array:function(l){for(var y=v.compress(l),A=new Uint8Array(y.length*2),O=0,S=y.length;O<S;O++){var I=y.charCodeAt(O);A[O*2]=I>>>8,A[O*2+1]=I%256}return A},decompressFromUint8Array:function(l){if(l==null)return v.decompress(l);for(var y=new Array(l.length/2),A=0,O=y.length;A<O;A++)y[A]=l[A*2]*256+l[A*2+1];var S=[];return y.forEach(function(I){S.push(n(I))}),v.decompress(S.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":v._compress(l,6,function(y){return c.charAt(y)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),v._decompress(l.length,32,function(y){return d(c,l.charAt(y))}))},compress:function(l){return v._compress(l,16,function(y){return n(y)})},_compress:function(l,y,A){if(l==null)return"";var O,S,I={},B={},C="",F="",j="",Q=2,W=3,ae=2,fe=[],ie=0,Ee=0,Re;for(Re=0;Re<l.length;Re+=1)if(C=l.charAt(Re),Object.prototype.hasOwnProperty.call(I,C)||(I[C]=W++,B[C]=!0),F=j+C,Object.prototype.hasOwnProperty.call(I,F))j=F;else{if(Object.prototype.hasOwnProperty.call(B,j)){if(j.charCodeAt(0)<256){for(O=0;O<ae;O++)ie=ie<<1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++;for(S=j.charCodeAt(0),O=0;O<8;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1}else{for(S=1,O=0;O<ae;O++)ie=ie<<1|S,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=0;for(S=j.charCodeAt(0),O=0;O<16;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1}Q--,Q==0&&(Q=Math.pow(2,ae),ae++),delete B[j]}else for(S=I[j],O=0;O<ae;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1;Q--,Q==0&&(Q=Math.pow(2,ae),ae++),I[F]=W++,j=String(C)}if(j!==""){if(Object.prototype.hasOwnProperty.call(B,j)){if(j.charCodeAt(0)<256){for(O=0;O<ae;O++)ie=ie<<1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++;for(S=j.charCodeAt(0),O=0;O<8;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1}else{for(S=1,O=0;O<ae;O++)ie=ie<<1|S,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=0;for(S=j.charCodeAt(0),O=0;O<16;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1}Q--,Q==0&&(Q=Math.pow(2,ae),ae++),delete B[j]}else for(S=I[j],O=0;O<ae;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1;Q--,Q==0&&(Q=Math.pow(2,ae),ae++)}for(S=2,O=0;O<ae;O++)ie=ie<<1|S&1,Ee==y-1?(Ee=0,fe.push(A(ie)),ie=0):Ee++,S=S>>1;for(;;)if(ie=ie<<1,Ee==y-1){fe.push(A(ie));break}else Ee++;return fe.join("")},decompress:function(l){return l==null?"":l==""?null:v._decompress(l.length,32768,function(y){return l.charCodeAt(y)})},_decompress:function(l,y,A){var O=[],S=4,I=4,B=3,C="",F=[],j,Q,W,ae,fe,ie,Ee,Re={val:A(0),position:y,index:1};for(j=0;j<3;j+=1)O[j]=j;for(W=0,fe=Math.pow(2,2),ie=1;ie!=fe;)ae=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(ae>0?1:0)*ie,ie<<=1;switch(W){case 0:for(W=0,fe=Math.pow(2,8),ie=1;ie!=fe;)ae=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(ae>0?1:0)*ie,ie<<=1;Ee=n(W);break;case 1:for(W=0,fe=Math.pow(2,16),ie=1;ie!=fe;)ae=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(ae>0?1:0)*ie,ie<<=1;Ee=n(W);break;case 2:return""}for(O[3]=Ee,Q=Ee,F.push(Ee);;){if(Re.index>l)return"";for(W=0,fe=Math.pow(2,B),ie=1;ie!=fe;)ae=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(ae>0?1:0)*ie,ie<<=1;switch(Ee=W){case 0:for(W=0,fe=Math.pow(2,8),ie=1;ie!=fe;)ae=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(ae>0?1:0)*ie,ie<<=1;O[I++]=n(W),Ee=I-1,S--;break;case 1:for(W=0,fe=Math.pow(2,16),ie=1;ie!=fe;)ae=Re.val&Re.position,Re.position>>=1,Re.position==0&&(Re.position=y,Re.val=A(Re.index++)),W|=(ae>0?1:0)*ie,ie<<=1;O[I++]=n(W),Ee=I-1,S--;break;case 2:return F.join("")}if(S==0&&(S=Math.pow(2,B),B++),O[Ee])C=O[Ee];else if(Ee===I)C=Q+Q.charAt(0);else return null;F.push(C),O[I++]=Q+C.charAt(0),S--,Q=C,S==0&&(S=Math.pow(2,B),B++)}}};return v})();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Ca)),Ca.exports}var d8=l8();const In=Us(d8);var Ma=(e=>(e.USD="USD",e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ANG="ANG",e.AOA="AOA",e.ARS="ARS",e.AUD="AUD",e.AWG="AWG",e.AZN="AZN",e.BAM="BAM",e.BBD="BBD",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BMD="BMD",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BTN="BTN",e.BWP="BWP",e.BYN="BYN",e.BZD="BZD",e.CAD="CAD",e.CHF="CHF",e.CLF="CLF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CUP="CUP",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EGP="EGP",e.ETB="ETB",e.EUR="EUR",e.FJD="FJD",e.GBP="GBP",e.GEL="GEL",e.GHS="GHS",e.GMD="GMD",e.GNF="GNF",e.GTQ="GTQ",e.GYD="GYD",e.HKD="HKD",e.HNL="HNL",e.HTG="HTG",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KGS="KGS",e.KHR="KHR",e.KMF="KMF",e.KRW="KRW",e.KWD="KWD",e.KYD="KYD",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.LRD="LRD",e.LSL="LSL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MRU="MRU",e.MUR="MUR",e.MWK="MWK",e.MVR="MVR",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PGK="PGK",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RWF="RWF",e.SAR="SAR",e.SCR="SCR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SLE="SLE",e.SLL="SLL",e.SOS="SOS",e.SRD="SRD",e.STN="STN",e.SVC="SVC",e.SYP="SYP",e.SZL="SZL",e.THB="THB",e.TJS="TJS",e.TMT="TMT",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.UYU="UYU",e.UZS="UZS",e.VND="VND",e.VUV="VUV",e.WST="WST",e.XAF="XAF",e.XCD="XCD",e.XOF="XOF",e.XPF="XPF",e.YER="YER",e.ZAR="ZAR",e.ZMW="ZMW",e.ZWL="ZWL",e.CDF="CDF",e.ERN="ERN",e.FKP="FKP",e.KPW="KPW",e.RUB="RUB",e.SBD="SBD",e.SHP="SHP",e.SSP="SSP",e.VES="VES",e))(Ma||{});const h8={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BND:"096",BOB:"068",BRL:"986",BTN:"064",BWP:"072",BZD:"084",CAD:"124",CHF:"756",CLP:"152",CNY:"156",COP:"170",CRC:"188",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ETB:"230",EUR:"978",GBP:"826",GEL:"981",GHS:"936",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HTG:"332",HUF:"348",IDR:"360",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MRU:"929",MUR:"480",MVR:"462",MXN:"484",MYR:"458",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RWF:"646",SAR:"682",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SLE:"925",SLL:"694",SOS:"706",STN:"930",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",UYU:"858",UZS:"860",VND:"704",XAF:"950",XCD:"951",XOF:"952",XPF:"953",YER:"886",ZAR:"710",ZMW:"967",ARS:"032",BMD:"060",BSD:"044",BYN:"933",CUP:"192",FJD:"242",ILS:"376",LAK:"418",LBP:"422",MWK:"454",MZN:"943",PGK:"598",SRD:"968",TOP:"776",VUV:"548",WST:"882",ZWL:"932",CLF:"990",CDF:"976",ERN:"232",FKP:"238",KPW:"408",RUB:"643",SBD:"090",SHP:"654",SSP:"728",VES:"928"},z0={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function p8(e){return e in z0}const Z0={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function m8(e){return e in Z0}const g8=new Set(["CLF"]),v8=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),y8=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function w8(e){return g8.has(e)?4:v8.has(e)?3:y8.has(e)?0:2}function _8(e,t){return e.currency===t}function E8(e){return{base:e.to,rate:1/e.rate,to:e.base}}var R8={269:function(e,t,n){function r(o,a){return new Promise((s=>setTimeout(s,o,a)))}function c(o){return!!o&&typeof o.then=="function"}function i(o,a){try{const s=o();c(s)?s.then((u=>a(!0,u)),(u=>a(!1,u))):a(!0,s)}catch(s){a(!1,s)}}async function d(o,a,s=16){const u=Array(o.length);let h=Date.now();for(let m=0;m<o.length;++m){u[m]=a(o[m],m);const p=Date.now();p>=h+s&&(h=p,await new Promise((N=>{const U=new MessageChannel;U.port1.onmessage=()=>N(),U.port2.postMessage(null)})))}return u}function v(o){return o.then(void 0,(()=>{})),o}function l(o){return parseInt(o)}function y(o){return parseFloat(o)}function A(o,a){return typeof o=="number"&&isNaN(o)?a:o}function O(o){return o.reduce(((a,s)=>a+(s?1:0)),0)}function S(o,a){const s=o[0]>>>16,u=65535&o[0],h=o[1]>>>16,m=65535&o[1],p=a[0]>>>16,N=65535&a[0],U=a[1]>>>16;let G=0,T=0,D=0,z=0;z+=m+(65535&a[1]),D+=z>>>16,z&=65535,D+=h+U,T+=D>>>16,D&=65535,T+=u+N,G+=T>>>16,T&=65535,G+=s+p,G&=65535,o[0]=G<<16|T,o[1]=D<<16|z}function I(o,a){const s=o[0]>>>16,u=65535&o[0],h=o[1]>>>16,m=65535&o[1],p=a[0]>>>16,N=65535&a[0],U=a[1]>>>16,G=65535&a[1];let T=0,D=0,z=0,Y=0;Y+=m*G,z+=Y>>>16,Y&=65535,z+=h*G,D+=z>>>16,z&=65535,z+=m*U,D+=z>>>16,z&=65535,D+=u*G,T+=D>>>16,D&=65535,D+=h*U,T+=D>>>16,D&=65535,D+=m*N,T+=D>>>16,D&=65535,T+=s*G+u*U+h*N+m*p,T&=65535,o[0]=T<<16|D,o[1]=z<<16|Y}function B(o,a){const s=o[0];(a%=64)==32?(o[0]=o[1],o[1]=s):a<32?(o[0]=s<<a|o[1]>>>32-a,o[1]=o[1]<<a|s>>>32-a):(a-=32,o[0]=o[1]<<a|s>>>32-a,o[1]=s<<a|o[1]>>>32-a)}function C(o,a){(a%=64)!=0&&(a<32?(o[0]=o[1]>>>32-a,o[1]=o[1]<<a):(o[0]=o[1]<<a-32,o[1]=0))}function F(o,a){o[0]^=a[0],o[1]^=a[1]}n.r(t),n.d(t,{ERROR_API_KEY_EXPIRED:function(){return Ls},ERROR_API_KEY_INVALID:function(){return xs},ERROR_API_KEY_MISSING:function(){return Ts},ERROR_BAD_REQUEST_FORMAT:function(){return rd},ERROR_BAD_RESPONSE_FORMAT:function(){return cc},ERROR_CLIENT_TIMEOUT:function(){return ic},ERROR_CSP_BLOCK:function(){return uc},ERROR_FORBIDDEN_ENDPOINT:function(){return Kf},ERROR_FORBIDDEN_HEADER:function(){return cd},ERROR_FORBIDDEN_ORIGIN:function(){return ad},ERROR_GENERAL_SERVER_FAILURE:function(){return od},ERROR_HANDLE_AGENT_DATA:function(){return lc},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return jf},ERROR_INTEGRATION_FAILURE:function(){return Wf},ERROR_INVALID_ENDPOINT:function(){return fc},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return Xf},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return Yf},ERROR_NETWORK_ABORT:function(){return ac},ERROR_NETWORK_CONNECTION:function(){return sc},ERROR_NETWORK_RESTRICTED:function(){return Zf},ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:function(){return qf},ERROR_RATE_LIMIT:function(){return sd},ERROR_SERVER_TIMEOUT:function(){return id},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return Hf},ERROR_TOKEN_EXPIRED:function(){return Zy},ERROR_TOKEN_INVALID:function(){return zy},ERROR_TOKEN_MISSING:function(){return Wy},ERROR_UNSUPPORTED_VERSION:function(){return $f},ERROR_WRONG_REGION:function(){return Gf},default:function(){return Yy},defaultEndpoint:function(){return gs},defaultTlsEndpoint:function(){return vs},handleAgentData:function(){return Fl},load:function(){return Pl},makeBotdModule:function(){return Cy},makeConsoleDebugModule:function(){return $y},makeIdentificationModule:function(){return Gy},makeLatencyReportModule:function(){return M7},makeRemoteDebugModule:function(){return Ky},makeValidationModule:function(){return Hy}});const j=[4283543511,3981806797],Q=[3301882366,444984403];function W(o){const a=[0,o[0]>>>1];F(o,a),I(o,j),a[1]=o[0]>>>1,F(o,a),I(o,Q),a[1]=o[0]>>>1,F(o,a)}const ae=[2277735313,289559509],fe=[1291169091,658871167],ie=[0,5],Ee=[0,1390208809],Re=[0,944331445];function re(o){return typeof o!="function"}function se(o,a,s,u){const h=Object.keys(o).filter((p=>!(function(N,U){for(let G=0,T=N.length;G<T;++G)if(N[G]===U)return!0;return!1})(s,p))),m=v(d(h,(p=>(function(N,U){const G=v(new Promise((T=>{const D=Date.now();i(N.bind(null,U),((...z)=>{const Y=Date.now()-D;if(!z[0])return T((()=>({error:z[1],duration:Y})));const he=z[1];if(re(he))return T((()=>({value:he,duration:Y})));T((()=>new Promise((_e=>{const Be=Date.now();i(he,((...Te)=>{const xe=Y+Date.now()-Be;if(!Te[0])return _e({error:Te[1],duration:xe});_e({value:Te[1],duration:xe})}))}))))}))})));return function(){return G.then((T=>T()))}})(o[p],a)),u));return async function(){const p=await m,N=await d(p,(T=>v(T())),u),U=await Promise.all(N),G={};for(let T=0;T<h.length;++T)G[h[T]]=U[T];return G}}function de(o,a){const s=u=>re(u)?a(u):()=>{const h=u();return c(h)?h.then(a):a(h)};return u=>{const h=o(u);return c(h)?h.then(s):s(h)}}function ge(){const o=window,a=navigator;return O(["MSCSSMatrix"in o,"msSetImmediate"in o,"msIndexedDB"in o,"msMaxTouchPoints"in a,"msPointerEnabled"in a])>=4}function k(){const o=window,a=navigator;return O(["msWriteProfilerMark"in o,"MSStream"in o,"msLaunchUri"in a,"msSaveBlob"in a])>=3&&!ge()}function f(){const o=window,a=navigator;return O(["webkitPersistentStorage"in a,"webkitTemporaryStorage"in a,(a.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in o,"BatteryManager"in o,"webkitMediaStream"in o,"webkitSpeechGrammar"in o])>=5}function R(){const o=window;return O(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,navigator.vendor.indexOf("Apple")===0,"RGBColor"in o,"WebKitMediaKeys"in o])>=4}function M(){const o=window,{HTMLElement:a,Document:s}=o;return O(["safari"in o,!("ongestureend"in o),!("TouchEvent"in o),!("orientation"in o),a&&!("autocapitalize"in a.prototype),s&&"pointerLockElement"in s.prototype])>=4}function $(){var o,a;const s=window;return O(["buildID"in navigator,"MozAppearance"in((a=(o=document.documentElement)===null||o===void 0?void 0:o.style)!==null&&a!==void 0?a:{}),"onmozfullscreenchange"in s,"mozInnerScreenX"in s,"CSSMozDocumentRule"in s,"CanvasCaptureMediaStream"in s])>=4}function Z(){const{CSS:o}=window;return O([o.supports("selector(::details-content)"),o.supports("selector(::before::marker)"),o.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function te(){const o=document;return o.fullscreenElement||o.msFullscreenElement||o.mozFullScreenElement||o.webkitFullscreenElement||null}function ce(){const o=f(),a=$(),s=window,u=navigator,h="connection";return o?O([!("SharedWorker"in s),u[h]&&"ontypechange"in u[h],!("sinkId"in new Audio)])>=2:!!a&&O(["onorientationchange"in s,"orientation"in s,/android/i.test(u.appVersion)])>=2}function K(){const o=navigator,a=window,s=Audio.prototype,{visualViewport:u}=a;return O(["srLatency"in s,"srChannelCount"in s,"devicePosture"in o,u&&"segments"in u,"getTextInformation"in Image.prototype])>=3}function g(){const o=window,a=o.OfflineAudioContext||o.webkitOfflineAudioContext;if(!a)return-2;if(R()&&!M()&&!(function(){const U=window;return O(["DOMRectList"in U,"RTCPeerConnectionIceEvent"in U,"SVGGeometryElement"in U,"ontransitioncancel"in U])>=3})())return-1;const s=new a(1,5e3,44100),u=s.createOscillator();u.type="triangle",u.frequency.value=1e4;const h=s.createDynamicsCompressor();h.threshold.value=-50,h.knee.value=40,h.ratio.value=12,h.attack.value=0,h.release.value=.25,u.connect(h),h.connect(s.destination),u.start(0);const[m,p]=(function(U){let G=()=>{};return[new Promise(((T,D)=>{let z=!1,Y=0,he=0;U.oncomplete=Te=>T(Te.renderedBuffer);const _e=()=>{setTimeout((()=>D(_("timeout"))),Math.min(500,he+5e3-Date.now()))},Be=()=>{try{const Te=U.startRendering();switch(c(Te)&&v(Te),U.state){case"running":he=Date.now(),z&&_e();break;case"suspended":document.hidden||Y++,z&&Y>=3?D(_("suspended")):setTimeout(Be,500)}}catch(Te){D(Te)}};Be(),G=()=>{z||(z=!0,he>0&&_e())}})),G]})(s),N=v(m.then((U=>(function(G){let T=0;for(let D=0;D<G.length;++D)T+=Math.abs(G[D]);return T})(U.getChannelData(0).subarray(4500))),(U=>{if(U.name==="timeout"||U.name==="suspended")return-3;throw U})));return()=>(p(),N)}function _(o){const a=new Error(o);return a.name=o,a}async function H(o,a,s=50){var u,h,m;const p=document;for(;!p.body;)await r(s);const N=p.createElement("iframe");try{for(await new Promise(((U,G)=>{let T=!1;const D=()=>{T=!0,U()};N.onload=D,N.onerror=he=>{T=!0,G(he)};const{style:z}=N;z.setProperty("display","block","important"),z.position="absolute",z.top="0",z.left="0",z.visibility="hidden",a&&"srcdoc"in N?N.srcdoc=a:N.src="about:blank",p.body.appendChild(N);const Y=()=>{var he,_e;T||(((_e=(he=N.contentWindow)===null||he===void 0?void 0:he.document)===null||_e===void 0?void 0:_e.readyState)==="complete"?D():setTimeout(Y,10))};Y()}));!(!((h=(u=N.contentWindow)===null||u===void 0?void 0:u.document)===null||h===void 0)&&h.body);)await r(s);return await o(N,N.contentWindow)}finally{(m=N.parentNode)===null||m===void 0||m.removeChild(N)}}function q(o){const[a,s]=(function(h){var m,p;const N=`Unexpected syntax '${h}'`,U=/^\s*([a-z-]*)(.*)$/i.exec(h),G=U[1]||void 0,T={},D=/([.:#][\w-]+|\[.+?\])/gi,z=(Y,he)=>{T[Y]=T[Y]||[],T[Y].push(he)};for(;;){const Y=D.exec(U[2]);if(!Y)break;const he=Y[0];switch(he[0]){case".":z("class",he.slice(1));break;case"#":z("id",he.slice(1));break;case"[":{const _e=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(he);if(!_e)throw new Error(N);z(_e[1],(p=(m=_e[4])!==null&&m!==void 0?m:_e[5])!==null&&p!==void 0?p:"");break}default:throw new Error(N)}}return[G,T]})(o),u=document.createElement(a??"div");for(const h of Object.keys(s)){const m=s[h].join(" ");h==="style"?me(u.style,m):u.setAttribute(h,m)}return u}function me(o,a){for(const s of a.split(";")){const u=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(s);if(u){const[,h,m,,p]=u;o.setProperty(h,m,p||"")}}}function ye(o){let a,s,u=!1;const[h,m]=(function(){const p=document.createElement("canvas");return p.width=1,p.height=1,[p,p.getContext("2d")]})();return(function(p,N){return!(!N||!p.toDataURL)})(h,m)?(u=(function(p){return p.rect(0,0,10,10),p.rect(2,2,6,6),!p.isPointInPath(5,5,"evenodd")})(m),[a,s]=(function(p,N){(function(G,T){G.width=240,G.height=60,T.textBaseline="alphabetic",T.fillStyle="#f60",T.fillRect(100,1,62,20),T.fillStyle="#069",T.font='11pt "Times New Roman"';const D="Cwm fjordbank gly 😃";T.fillText(D,2,15),T.fillStyle="rgba(102, 204, 0, 0.2)",T.font="18pt Arial",T.fillText(D,4,45)})(p,N);const U=Ue(p);return U!==Ue(p)?["unstable","unstable"]:((function(G,T){G.width=122,G.height=110,T.globalCompositeOperation="multiply";for(const[D,z,Y]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])T.fillStyle=D,T.beginPath(),T.arc(z,Y,40,0,2*Math.PI,!0),T.closePath(),T.fill();T.fillStyle="#f9c",T.arc(60,60,60,0,2*Math.PI,!0),T.arc(60,60,20,0,2*Math.PI,!0),T.fill("evenodd")})(p,N),[Ue(p),U])})(h,m)):a=s="unsupported",{winding:u,geometry:a,text:s}}function Ue(o){return o.toDataURL()}function We(){const o=screen,a=u=>A(l(u),null),s=[a(o.width),a(o.height)];return s.sort().reverse(),s}let st,at;function ut(){return(function(){if(at!==void 0)return;const o=()=>{const a=Et();ht(a)?at=setTimeout(o,2500):(st=a,at=void 0)};o()})(),async()=>{let o=Et();if(ht(o)){if(st)return[...st];te()&&(await(function(){const a=document;return(a.exitFullscreen||a.msExitFullscreen||a.mozCancelFullScreen||a.webkitExitFullscreen).call(a)})(),o=Et())}return ht(o)||(st=o),o}}function Et(){const o=screen;return[A(y(o.availTop),null),A(y(o.width)-y(o.availWidth)-A(y(o.availLeft),0),null),A(y(o.height)-y(o.availHeight)-A(y(o.availTop),0),null),A(y(o.availLeft),null)]}function ht(o){for(let a=0;a<4;++a)if(o[a])return!1;return!0}function Rt(o){o.style.setProperty("visibility","hidden","important"),o.style.setProperty("display","block","important")}function Pt(o){return matchMedia(`(inverted-colors: ${o})`).matches}function vt(o){return matchMedia(`(forced-colors: ${o})`).matches}function w(o){return matchMedia(`(prefers-contrast: ${o})`).matches}function x(o){return matchMedia(`(prefers-reduced-motion: ${o})`).matches}function V(o){return matchMedia(`(prefers-reduced-transparency: ${o})`).matches}function ne(o){return matchMedia(`(dynamic-range: ${o})`).matches}const J=Math,pe=()=>0,Me=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),tt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Qe=["FRAGMENT_SHADER","VERTEX_SHADER"],P=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],E="WEBGL_debug_renderer_info";function b(o){if(o.webgl)return o.webgl.context;const a=document.createElement("canvas");let s;a.addEventListener("webglCreateContextError",(()=>s=void 0));for(const u of["webgl","experimental-webgl"]){try{s=a.getContext(u)}catch{}if(s)break}return o.webgl={context:s},s}function X(o,a,s){const u=o.getShaderPrecisionFormat(o[a],o[s]);return u?[u.rangeMin,u.rangeMax,u.precision]:[]}function ve(o){return Object.keys(o.__proto__).filter(be)}function be(o){return typeof o=="string"&&!o.match(/[^A-Z0-9_x]/)}function L(){return $()}function oe(o){return typeof o.getParameter=="function"}const ee=async function({debug:o}={}){if(!R()&&!ce())return;const a=(function(){const p=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',p("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",p("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",p("LnNwb25zb3JpdA=="),".ylamainos",p("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",p("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",p("LmhlYWRlci1ibG9ja2VkLWFk"),p("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",p("I2FkXzMwMFgyNTA="),p("I2Jhbm5lcmZsb2F0MjI="),p("I2NhbXBhaWduLWJhbm5lcg=="),p("I0FkLUNvbnRlbnQ=")],adGuardChinese:[p("LlppX2FkX2FfSA=="),p("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",p("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),p("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",p("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",p("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",p("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),p("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),p("LmFkZ29vZ2xl"),p("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[p("YW1wLWF1dG8tYWRz"),p("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",p("I2FkX2ludmlld19hcmVh")],adGuardRussian:[p("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),p("LnJlY2xhbWE="),'div[id^="smi2adblock"]',p("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[p("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),p("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",p("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),p("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),p("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",p("I3Jla2xhbWk="),p("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),p("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),p("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[p("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",p("LndpZGdldF9wb19hZHNfd2lkZ2V0"),p("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",p("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[p("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),p("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",p("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",p("I3Jla2xhbW5pLWJveA=="),p("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",p("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[p("I2FkdmVydGVudGll"),p("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",p("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",p("LnNwb25zb3JsaW5rZ3J1ZW4="),p("I3dlcmJ1bmdza3k="),p("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),p("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[p("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",p("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[p("LnJla2xhbW9zX3RhcnBhcw=="),p("LnJla2xhbW9zX251b3JvZG9z"),p("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),p("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),p("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[p("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[p("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),p("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",p("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[p("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),p("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),p("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",p("LmFkX19tYWlu"),p("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[p("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[p("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),p("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[p("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),p("I2xpdmVyZUFkV3JhcHBlcg=="),p("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),p("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[p("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",p("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),p("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),p("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[p("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),p("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),p("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",p("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),p("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),p("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),p("ZGl2I3NrYXBpZWNfYWQ=")],ro:[p("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),p("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),p("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),p("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[p("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),p("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),p("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",p("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),p("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",p("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}})(),s=Object.keys(a),u=[].concat(...s.map((p=>a[p]))),h=await(async function(p){var N;const U=document,G=U.createElement("div"),T=new Array(p.length),D={};Rt(G);for(let z=0;z<p.length;++z){const Y=q(p[z]);Y.tagName==="DIALOG"&&Y.show();const he=U.createElement("div");Rt(he),he.appendChild(Y),G.appendChild(he),T[z]=Y}for(;!U.body;)await r(50);U.body.appendChild(G);try{for(let z=0;z<p.length;++z)T[z].offsetParent||(D[p[z]]=!0)}finally{(N=G.parentNode)===null||N===void 0||N.removeChild(G)}return D})(u);o&&(function(p,N){let U="DOM blockers debug:\n```";for(const G of Object.keys(p)){U+=`
|
|
8
8
|
${G}:`;for(const T of p[G])U+=`
|
|
9
9
|
${N[T]?"🚫":"➡️"} ${T}`}console.log(`${U}
|
|
10
|
-
\`\`\``)})(a,h);const m=s.filter((p=>{const N=a[p];return O(N.map((U=>h[U])))>.6*N.length}));return m.sort(),m},we=function(){return navigator.oscpu},Se=function(){const o=navigator,a=[],s=o.language||o.userLanguage||o.browserLanguage||o.systemLanguage;if(s!==void 0&&a.push([s]),Array.isArray(o.languages))f()&&(function(){const u=window;return O([!("MediaSettingsRange"in u),"RTCEncodedAudioFrame"in u,""+u.Intl=="[object Intl]",""+u.Reflect=="[object Reflect]"])>=3})()||a.push(o.languages);else if(typeof o.languages=="string"){const u=o.languages;u&&a.push(u.split(","))}return a},Ne=function(){return window.screen.colorDepth},Pe=function(){return A(y(navigator.deviceMemory),void 0)},Ve=function(){const o=A(l(navigator.hardwareConcurrency),void 0);return o!==void 0&&$()&&Y()?o>=8?8:4:o},ce=function(){var o;const a=(o=window.Intl)===null||o===void 0?void 0:o.DateTimeFormat;if(a){const u=new a().resolvedOptions().timeZone;if(u)return u}const s=-(function(){const u=new Date().getFullYear();return Math.max(y(new Date(u,0,1).getTimezoneOffset()),y(new Date(u,6,1).getTimezoneOffset()))})();return`UTC${s>=0?"+":""}${s}`},He=function(){try{return!!window.sessionStorage}catch{return!0}},ze=function(){try{return!!window.localStorage}catch{return!0}},qe=function(){return!!window.openDatabase},et=function(){return navigator.cpuClass},ct=function(){const{platform:o}=navigator;return o==="MacIntel"&&R()&&!M()?(function(){if(navigator.platform==="iPad")return!0;const a=screen,s=a.width/a.height;return O(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,s>.65&&s<1.53])>=2})()?"iPad":"iPhone":o},ot=function(){const o=navigator.plugins;if(!o)return;const a=[];for(let s=0;s<o.length;++s){const u=o[s];if(!u)continue;const h=[];for(let m=0;m<u.length;++m){const p=u[m];h.push({type:p.type,suffixes:p.suffixes})}a.push({name:u.name,description:u.description,mimeTypes:h})}return a},rt=function(){const o=navigator;let a,s=0;o.maxTouchPoints!==void 0?s=l(o.maxTouchPoints):o.msMaxTouchPoints!==void 0&&(s=o.msMaxTouchPoints);try{document.createEvent("TouchEvent"),a=!0}catch{a=!1}return{maxTouchPoints:s,touchEvent:a,touchStart:"ontouchstart"in window}},$t=function(){return navigator.vendor||""},ht=function(){const o=[];for(const a of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const s=window[a];s&&typeof s=="object"&&o.push(a)}return o.sort()},gt=function(){const o=document;try{o.cookie="cookietest=1; SameSite=Strict;";const a=o.cookie.indexOf("cookietest=")!==-1;return o.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",a}catch{return!1}},tn=function(){for(const o of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${o})`).matches)return o},It=function(){return!!Pt("inverted")||!Pt("none")&&void 0},Nt=function(){return!!vt("active")||!vt("none")&&void 0},lr=function(){if(matchMedia("(min-monochrome: 0)").matches){for(let o=0;o<=100;++o)if(matchMedia(`(max-monochrome: ${o})`).matches)return o;throw new Error("Too high value")}},kt=function(){return w("no-preference")?0:w("high")||w("more")?1:w("low")||w("less")?-1:w("forced")?10:void 0},Mt=function(){return!!x("reduce")||!x("no-preference")&&void 0},Hr=function(){return!!V("reduce")||!V("no-preference")&&void 0},zt=function(){return!!Z("high")||!Z("standard")&&void 0},Zt=function(){const o=fe.acos||pe,a=fe.acosh||pe,s=fe.asin||pe,u=fe.asinh||pe,h=fe.atanh||pe,m=fe.atan||pe,p=fe.sin||pe,N=fe.sinh||pe,U=fe.cos||pe,G=fe.cosh||pe,T=fe.tan||pe,D=fe.tanh||pe,z=fe.exp||pe,X=fe.expm1||pe,he=fe.log1p||pe;return{acos:o(.12312423423423424),acosh:a(1e308),acoshPf:(_e=1e154,fe.log(_e+fe.sqrt(_e*_e-1))),asin:s(.12312423423423424),asinh:u(1),asinhPf:fe.log(1+fe.sqrt(2)),atanh:h(.5),atanhPf:fe.log(3)/2,atan:m(.5),sin:p(-1e300),sinh:N(1),sinhPf:fe.exp(1)-1/fe.exp(1)/2,cos:U(10.000000000123),cosh:G(1),coshPf:(fe.exp(1)+1/fe.exp(1))/2,tan:T(-1e300),tanh:D(1),tanhPf:(fe.exp(2)-1)/(fe.exp(2)+1),exp:z(1),expm1:X(1),expm1Pf:fe.exp(1)-1,log1p:he(10),log1pPf:fe.log(11),powPI:fe.pow(fe.PI,-100)};var _e},fs=function(){return navigator.pdfViewerEnabled},Yt=function(){const o=new Float32Array(1),a=new Uint8Array(o.buffer);return o[0]=1/0,o[0]=o[0]-o[0],a[3]},Xt=function(){var o;const a=document.createElement("a"),s=(o=a.attributionSourceId)!==null&&o!==void 0?o:a.attributionsourceid;return s===void 0?void 0:String(s)},zo=function(){if(!ae()&&!R())return-2;if(!window.AudioContext)return-1;const o=new AudioContext().baseLatency;return o==null?-1:isFinite(o)?o:-3},Zo=function(){if(!window.Intl)return-1;const o=window.Intl.DateTimeFormat;if(!o)return-2;const a=o().resolvedOptions().locale;return a||a===""?a:-3},Yo=function({cache:o}){var a,s,u,h,m,p;const N=b(o);if(!N)return-1;if(!re(N))return-2;const U=L()?null:N.getExtension(E);return{version:((a=N.getParameter(N.VERSION))===null||a===void 0?void 0:a.toString())||"",vendor:((s=N.getParameter(N.VENDOR))===null||s===void 0?void 0:s.toString())||"",vendorUnmasked:U?(u=N.getParameter(U.UNMASKED_VENDOR_WEBGL))===null||u===void 0?void 0:u.toString():"",renderer:((h=N.getParameter(N.RENDERER))===null||h===void 0?void 0:h.toString())||"",rendererUnmasked:U?(m=N.getParameter(U.UNMASKED_RENDERER_WEBGL))===null||m===void 0?void 0:m.toString():"",shadingLanguageVersion:((p=N.getParameter(N.SHADING_LANGUAGE_VERSION))===null||p===void 0?void 0:p.toString())||""}},Xo=function({cache:o}){const a=b(o);if(!a)return-1;if(!re(a))return-2;const s=a.getSupportedExtensions(),u=a.getContextAttributes(),h=[],m=[],p=[],N=[],U=[];if(u)for(const T of Object.keys(u))m.push(`${T}=${u[T]}`);const G=ve(a);for(const T of G){const D=a[T];p.push(`${T}=${D}${Me.has(D)?`=${a.getParameter(D)}`:""}`)}if(s)for(const T of s){if(T===E&&L()||T==="WEBGL_polygon_mode"&&(f()||R()))continue;const D=a.getExtension(T);if(D)for(const z of ve(D)){const X=D[z];N.push(`${z}=${X}${tt.has(X)?`=${a.getParameter(X)}`:""}`)}else h.push(T)}for(const T of Qe)for(const D of P){const z=q(a,T,D);U.push(`${T}.${D}=${z.join(",")}`)}return N.sort(),p.sort(),{contextAttributes:m,parameters:p,shaderPrecisions:U,extensions:s,extensionParameters:N,unsupportedExtensions:h}},dn=function(o,a){const s=(function(z){const X=new Uint8Array(z.length);for(let he=0;he<z.length;he++){const _e=z.charCodeAt(he);if(_e>127)return new TextEncoder().encode(z);X[he]=_e}return X})(o);a=a||0;const u=[0,s.length],h=u[1]%16,m=u[1]-h,p=[0,a],N=[0,a],U=[0,0],G=[0,0];let T;for(T=0;T<m;T+=16)U[0]=s[T+4]|s[T+5]<<8|s[T+6]<<16|s[T+7]<<24,U[1]=s[T]|s[T+1]<<8|s[T+2]<<16|s[T+3]<<24,G[0]=s[T+12]|s[T+13]<<8|s[T+14]<<16|s[T+15]<<24,G[1]=s[T+8]|s[T+9]<<8|s[T+10]<<16|s[T+11]<<24,I(U,se),B(U,31),I(U,ue),F(p,U),B(p,27),S(p,N),I(p,oe),S(p,Ee),I(G,ue),B(G,33),I(G,se),F(N,G),B(N,31),S(N,p),I(N,oe),S(N,Re);U[0]=0,U[1]=0,G[0]=0,G[1]=0;const D=[0,0];switch(h){case 15:D[1]=s[T+14],C(D,48),F(G,D);case 14:D[1]=s[T+13],C(D,40),F(G,D);case 13:D[1]=s[T+12],C(D,32),F(G,D);case 12:D[1]=s[T+11],C(D,24),F(G,D);case 11:D[1]=s[T+10],C(D,16),F(G,D);case 10:D[1]=s[T+9],C(D,8),F(G,D);case 9:D[1]=s[T+8],F(G,D),I(G,ue),B(G,33),I(G,se),F(N,G);case 8:D[1]=s[T+7],C(D,56),F(U,D);case 7:D[1]=s[T+6],C(D,48),F(U,D);case 6:D[1]=s[T+5],C(D,40),F(U,D);case 5:D[1]=s[T+4],C(D,32),F(U,D);case 4:D[1]=s[T+3],C(D,24),F(U,D);case 3:D[1]=s[T+2],C(D,16),F(U,D);case 2:D[1]=s[T+1],C(D,8),F(U,D);case 1:D[1]=s[T],F(U,D),I(U,se),B(U,31),I(U,ue),F(p,U)}return F(p,u),F(N,u),S(p,N),S(N,p),W(p),W(N),S(p,N),S(N,p),("00000000"+(p[0]>>>0).toString(16)).slice(-8)+("00000000"+(p[1]>>>0).toString(16)).slice(-8)+("00000000"+(N[0]>>>0).toString(16)).slice(-8)+("00000000"+(N[1]>>>0).toString(16)).slice(-8)},qo="awesomium",Jo="cef",Qo="cefsharp",ei="coachjs",ti="fminer",ni="geb",ri="nightmarejs",oi="phantomas",ii="phantomjs",si="rhino",ai="selenium",ci="webdriverio",ui="webdriver",fi="headless_chrome";class qt extends Error{constructor(a,s){super(s),this.state=a,this.name="BotdError",Object.setPrototypeOf(this,qt.prototype)}}function Om(o,a){return o.indexOf(a)!==-1}function Nm(o,a){if("find"in o)return o.find(a);for(let s=0;s<o.length;s++)if(a(o[s],s,o))return o[s]}function Af(o){return Object.getOwnPropertyNames(o)}function Sf(o,...a){for(const s of a)if(typeof s=="string"){if(Om(o,s))return!0}else if(Nm(o,(u=>s.test(u)))!=null)return!0;return!1}const Tm=function(){return navigator.userAgent},xm=function(){const o=navigator.appVersion;if(o==null)throw new qt(-1,"navigator.appVersion is undefined");return o},Lm=function(){if(navigator.connection===void 0)throw new qt(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new qt(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},Cm=function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},Mm=function(){if(navigator.plugins===void 0)throw new qt(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new qt(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},Bm=function(){try{null[0]()}catch(o){if(o instanceof Error&&o.stack!=null)return o.stack.toString()}throw new qt(-3,"errorTrace signal unexpected behaviour")},km=function(){const{productSub:o}=navigator;if(o===void 0)throw new qt(-1,"navigator.productSub is undefined");return o},Dm=function(){if(window.external===void 0)throw new qt(-1,"window.external is undefined");const{external:o}=window;if(typeof o.toString!="function")throw new qt(-2,"window.external.toString is not a function");return o.toString()},Um=function(){if(navigator.mimeTypes===void 0)throw new qt(-1,"navigator.mimeTypes is undefined");const{mimeTypes:o}=navigator;let a=Object.getPrototypeOf(o)===MimeTypeArray.prototype;for(let s=0;s<o.length;s++)a&&(a=Object.getPrototypeOf(o[s])===MimeType.prototype);return a},Pm=async function(){if(window.Notification===void 0)throw new qt(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new qt(-1,"navigator.permissions is undefined");const{permissions:o}=navigator;if(typeof o.query!="function")throw new qt(-2,"navigator.permissions.query is not a function");try{const a=await o.query({name:"notifications"});return window.Notification.permission==="denied"&&a.state==="prompt"}catch{throw new qt(-3,"notificationPermissions signal unexpected behaviour")}},Fm=function(){if(document.documentElement===void 0)throw new qt(-1,"document.documentElement is undefined");const{documentElement:o}=document;if(typeof o.getAttributeNames!="function")throw new qt(-2,"document.documentElement.getAttributeNames is not a function");return o.getAttributeNames()},Vm=function(){if(Function.prototype.bind===void 0)throw new qt(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},Gm=function(){const{process:o}=window,a="window.process is";if(o===void 0)throw new qt(-1,`${a} undefined`);if(o&&typeof o!="object")throw new qt(-3,`${a} not an object`);return o},Hm=function(){const o={[qo]:{window:["awesomium"]},[Jo]:{window:["RunPerfTest"]},[Qo]:{window:["CefSharp"]},[ei]:{window:["emit"]},[ti]:{window:["fmget_targets"]},[ni]:{window:["geb"]},[ri]:{window:["__nightmare","nightmare"]},[oi]:{window:["__phantomas"]},[ii]:{window:["callPhantom","_phantom"]},[si]:{window:["spawn"]},[ai]:{window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},[ci]:{window:["wdioElectron"]},[ui]:{window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},[fi]:{window:["domAutomation","domAutomationController"]}};let a;const s={},u=Af(window);let h=[];for(a in window.document!==void 0&&(h=Af(window.document)),o){const m=o[a];if(m!==void 0){const p=m.window!==void 0&&Sf(u,...m.window),N=!(m.document===void 0||!h.length)&&Sf(h,...m.document);s[a]=p||N}}return s};function $m({cache:o,esc:a=!0}){const s=function(m,p){return m(p)};if(!a)return{s:-5,v:null};const u={s:-2,v:null},h=s(sl,o);return s(pg,h).then((m=>{(function(p,N,U){p(N,U)})(ls,u,m)})).catch((m=>ls(u,wc(m)))),u}function Za(o,a,s){const u=new Error(o);return a!==void 0&&(u.requestId=a),s!==void 0&&(u.raw=s),u}function jm(o){const a=function(m,p){return m<p},s=function(m,p){return m+p},u=function(m,p){return m%p},h=function(m,p){return m-p};for(let m=0;a(m,o.length);m++)o[m]=s(65,u(o[m],h(122,65)))}function ls(o,a){for(const s of Object.keys(o))delete o[s];Object.assign(o,a)}function $r(o){return o.then(void 0,(()=>{})),o}async function Km(){const o=function(h){return h()},a=await o(c1);let s=null;if(!(function(h){return h===0})((function(h,m){return h(m,453955339)})(Ae,a)))return a;if(s=(function(h,m){return h(m,1801730948)})(Ae,a),!(function(h){return h()})(Jm))return{s:-1,v:null};const u=o(ng);return u?{s:0,v:[s,u]}:{s:-5,v:null}}function jr(o){return o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}function Ya(o,a){const s=o.join(""),u=s.split(""),h=Array(s.length);for(let m=0;m<h.length;++m)h[m]=u.splice(a[m%a.length],1);return h.join("")}function If(){const o=function(a,s){return a(s)};if(!(function(a){return a in window})(o(Dt,1)))return!1;try{return new window[o(Dt,1)],!0}catch(a){if((function(s){return s instanceof Error})(a)&&(function(s,u){return s===u})(a.name,(function(s){return s(2)})(Dt)))return!1;throw a}}function ds(o){var a;const s=(a=performance.timeOrigin)!==null&&a!==void 0?a:Date.now()-performance.now();return Math.round(o.getTime()-s)}function Wm(o){return o&&typeof o=="object"?o:o!=null?{tag:o}:void 0}function zm(){const o=/{(.*?)}/.exec(location.hash);return!!o&&Mn(o[1])===3025844545}function Zm(o){let a="";for(let s=128512;s<=128591;s++){const u=String.fromCodePoint(s);a+=u}return nr(((s,u)=>{const h=u.document.createElement("span");h.style.whiteSpace="nowrap",h.innerText=a,u.document.body.append(h);const m=H1(h,u);return u.document.body.removeChild(h),{s:0,v:m}}),o.sis)}function Ym(o){const a=o.filter((u=>Mn(u.name.slice(0,i1))===pv)),s=[];if(a.length>0){const u=new Map;a.forEach((h=>{const m=h.name.codePointAt(i1);if(m!==void 0){const p=u.get(m)||0;u.set(m,p+1)}})),u.forEach(((h,m)=>{s.push(m,h)}))}return{s:o.length?0:1,v:s}}function hs(){return Ya([Nr(o=new Image().style,2882756133),Nr(o,3858258232)],[18,23,22,11,23,17,3,20,4,22,19,11,25,13,23,22,7,7,17,18,4,18,11,8,11,8,3,5,2,4,3,3,5,6,5,3,1,2,2,0,0]);var o}function Xm(o,a,s,u,h,m){return Ao(a,(()=>({e:9,tryNumber:h,url:u,timeout:o})),(({status:p,getHeader:N,body:U})=>({e:10,tryNumber:h,status:p,retryAfter:N("retry-after"),body:U})),(p=>({e:11,tryNumber:h,error:p})),(()=>A1({url:u,timeout:o,abort:m,container:s})))}function Of(){const o=window,a=o[tl];return o[tl]=typeof a=="string"?a:hi(10)}function qm({cache:o}){const a=b(o);return a?((function(s){s.clearColor(0,0,1,1);const u=s.createProgram();if(!u)return;function h(N,U){const G=s.createShader(35633-N);u&&G&&(s.shaderSource(G,U),s.compileShader(G),s.attachShader(u,G))}h(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),h(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),s.linkProgram(u),s.useProgram(u),s.enableVertexAttribArray(0);const m=s.getUniformLocation(u,"t"),p=s.createBuffer();s.bindBuffer(34962,p),s.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),s.vertexAttribPointer(0,2,5126,!1,0,0),s.clear(16384),s.uniform1f(m,3.65),s.drawArrays(4,0,3)})(a),{s:0,v:dn(a.canvas.toDataURL())}):{s:-1,v:null}}function hn(o,a){return de(o,(s=>({s:s==null?a:0,v:s??null})))}function ps(o){if(typeof TextDecoder=="function"){const s=new TextDecoder().decode(o);if(s)return s}const a=jr(o);return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))}const Xa="0123456789abcdef",qa=65535;function Jm(){const o=function(a,s){return a(s)};return o(je,0)&&navigator[o(je,0)]}function Ja(o,a,s,u,h,m){var p;const N=[];for(const U of o){const G=U.event;G.e!==s&&G.e!==u&&G.e!==h||G.stage===m&&((N[p=G.tryNumber]||(N[p]={}))[G.e]=U)}return N.map((U=>{var G,T,D,z,X,he;const _e=(G=U[s])===null||G===void 0?void 0:G.timestamp,Be=(D=(T=U[u])===null||T===void 0?void 0:T.timestamp)!==null&&D!==void 0?D:(z=U[h])===null||z===void 0?void 0:z.timestamp,Te=(X=U[s])===null||X===void 0?void 0:X.event.url,xe=(he=U[h])===null||he===void 0?void 0:he.event.error;return _e&&Be&&Te?vl(Te,_e,Be,xe,a[Te]):null})).filter((U=>!!U))}let Qa;function Jt(o,a){let s;return u=>(s||(s=(function(h,m){return vi(Nc(new Uint32Array(h),[],m))})(o,a)),Kr(s[u]))}function Qm(o){if(typeof o!="object"||!o)return o;const a=o.modules;return a instanceof Array?{...o,modules:a.map((s=>{if(typeof s!="object"||!s)return s;const{key:u}=s;return typeof u=="string"?{key:u}:s}))}:o}function eg(o,a){return Object.prototype.hasOwnProperty.call(o,a)}function Nf(o){return{s:0,v:o}}async function tg(o){return nr(((a,s)=>{const u=s.document.createElement("div");u.style.border=".5px dotted transparent",s.document.body.appendChild(u);const h=u.offsetHeight;return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function ng(){const o=function(a,s){return a(s)};return document[o(je,1)](o(je,2))[o(je,3)]((function(a){return a(4)})(je))}function rg(){const o=function(a,s,u){return a(s,u)};return(function(a){return a in navigator})((function(a){return a(1)})(Vn))&&o(Ae,navigator,770559087)&&(function(a,s){return a===s})(typeof o(Ae,o(Ae,navigator,770559087),616412651),(function(a){return a(2)})(Vn))}function og(){const{performance:o}=window;if(!o?.now)return{s:-1,v:null};let a=1,s=1,u=o.now(),h=u;for(let m=0;m<5e4;m++)if((u=h)<(h=o.now())){const p=h-u;p>a?p<s&&(s=p):p<a&&(s=a,a=p)}return{s:0,v:[a,s]}}function ig(){const o=function(s,u,h){return s(u,h)},a=function(s,u,h){return s(u,h)};return a(Dn,(function(s){return s(250,{s:-2,v:null})})(On),(async()=>{const s=o(Ae,navigator,1417288500);return!((function(u){return u===null})(s)||(function(u){return u===void 0})(s))&&a(Ae,s,3686698663)?await o(Ae,s,3686698663)().then((()=>({s:0,v:""})),(u=>({s:0,v:Ae(u,3065852031)}))):{s:-1,v:null}}))}const ec=new Uint32Array(2);async function Tf(){const o=function(u){return u()},a=function(u){return u()},s=function(u,h,m){return u(h,m)};return await s(Dn,s(On,ry,{s:-2,v:null}),(async()=>o(L1)?o(If)?{s:0,v:await a(v7)}:{s:-1,v:null}:{s:-3,v:null}))}function sg(){const o=window;return Sr(["mediaSession"in navigator,"BigInt64Array"in o,"FormDataEvent"in o,"ImageBitmap"in o,"WebGL2RenderingContext"in o,"onclose"in o])>=4}async function ms(o,a,s){const u=function(h,m,p,N){return h(m,p,N)};for(const h of o)try{return!!await u(El,h,a,s)}catch{}return!1}const xf=new Uint8Array(1);function li(o,a){const s=new Error(a);return s.name=o,s}function Lf(o){return o.arr.subarray(0,o.len)}function Cf(){return St(30)}function ag(){const o=function(N,U,G){return N(U,G)},a=function(N,U){return N===U},s=function(N,U,G){return N(U,G)},u=o(Ae,window,4177808745);if(!(!(a(u,null)||a(u,void 0))&&o(Ae,u,1108488788)))return{s:-1,v:null};const h=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],m=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];let p=0;for(const N of m)p<<=1,p|=s(Ae,u,1108488788)(Uint8Array.of(...h,...N))?1:0;return{s:0,v:p}}async function cg(){const o=function(m){return m()},a=function(m,p,N,U){return m(p,N,U)},s=function(m,p){return m(p)},u=function(m,p,N,U){return m(p,N,U)},h=function(m,p){return m(p)};if(o(Bg))return!(function(m,p){return m in p})((function(m){return m(19)})(xt),window[(function(m){return m(20)})(xt)][(function(m){return m(21)})(xt)]);if(o(sg)){const[m,p]=await Promise.all([a(Q1,s(xt,22),(()=>!0),(()=>!1)),u(Q1,h(xt,23),(()=>!1),(N=>N instanceof Error&&N.name===xt(24)))]);return(function(N,U){return N&&U})(m,p)}return!1}function ug(){const o=function(T,D){return T(D)},a=function(T,D){return T(D)},s=function(T,D){return T in D},u=function(T,D){return T(D)},h=function(T,D){return T in D},m=function(T,D){return T(D)},p=function(T,D){return T(D)},N=function(T,D){return T in D};var U,G;if(!(function(T){return T()})(f))return o(_c,!1);try{const T=window,D=(function(X){return X(Navigator,2741656292)})(Ae),z=((function(X){return X===null})(G=(function(X){return X===null})(U=document[o(yo,0)])||(function(X){return X===void 0})(U)?void 0:(function(X,he){return X(he,3217087507)})(Ae,U))||(function(X){return X===void 0})(G)?void 0:G.call(U))||[];return a(_c,(function(X){return X>=2})(o(Sr,[s(u(yo,1),D),h(m(yo,2),T),h(o(yo,3),T),p(yo,4).some((X=>z.includes(X))),!N(u(yo,5),D)])))}catch{return a(_c,!1)}}function fg(o){if(o)return{p:o.path?1:void 0,q:o.query?1:void 0,f:o.fragment?1:void 0}}const lg=Array.isArray;var tc="3.12.9";const gs={default:"endpoint"},Mf={default:"tEndpoint"},vs={default:"tlsEndpoint"},nc="_vid";function ys(o){return o instanceof Error||o!==null&&typeof o=="object"&&"name"in o}function dg(o){const a=function(m,p){return m(p)},s=function(m,p,N){return m(p,N)},u=function(m,p){return m(p)},h=function(m,p){return m(p)};return(function(m,p,N){return m(p,N)})(nr,((m,p)=>{const N=new Promise((U=>{const G=function(D,z){return a(D,z)};let T;(function(D){return D()})(f)?(T=new Error,T.name=" ",s(Ae,Object,1973166116)(T,u(Zr,0),{get:U.bind(null,!0)})):(T=s(Ae,p[u(Zr,1)],1297038992)(u(Zr,2)),T.toString=()=>"",(function(D){return D(Object,1973166116)})(Ae)(T,a(Zr,3),{get:()=>{G(U,!0);const D=new Error;throw D.name="",D}})),p[h(Zr,4)](p[h(Zr,5)].debug,0,T),p[(function(D){return D(4)})(Zr)]((()=>{(function(D,z){(function(X,he){X(he)})(D,z)})(U,!1)}))}));return u($r,N).then((U=>({s:0,v:U})))}),(function(m,p){return m(p,3569745779)})(Ae,o))}function ws(o,a){const s={},u={};for(const[h,m]of Object.entries(o))a.includes(h)?s[h]=m:u[h]=m;return{picked:s,rest:u}}function hg(){const o=function(m){return m()},a=function(m,p,N){return m(p,N)},s="test";if(!o(R)||o(fv))return{s:-1,v:null};const u=(function(m){return m(window,693717494)})(Ae),h=a(Ae,window,1703339950);try{(function(m){m(null,null,null,null)})(u)}catch{return{s:0,v:!0}}try{return a(Ae,h,2330630162)(s,"1"),a(Ae,h,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function Kr(o){if(o instanceof Array)return o.map(Kr);if(o&&typeof o=="object"){const a={};for(const s of Object.keys(o))a[s]=Kr(o[s]);return a}return o}function Bf(o,a,s){const u=function(h,m){return h+m};return u(a,Math.floor((function(h,m){return h*m})((function(h){return h/256})(o),u((function(h,m){return h-m})(s,a),1))))}async function pg(o){const a=function(m,p,N){return m(p,N)},s=function(m,p){return m(p)},u=await(function(m,p){return m(p,!1)})(U1,o);switch(a(Ae,u,453955339)){case-3:return{s:-4,v:null};case-1:return{s:-1,v:null};case-2:return{s:-3,v:null}}const h=(function(m,p){return m(p)})(vo,s(Yr,0));return{s:0,v:s(Gn,await a(ay,(function(m,p){return m(p,1801730948)})(Ae,u),h))}}function mg(o,a){const s=function(h,m){return h===m};var u;try{return(function(h){return h===null})(u=(function(h,m){return h(m,34843658)})(Ae,o))||s(u,void 0)||u.call(o,a||Math.random().toString()),0}catch(h){if((function(m){return m instanceof Error})(h)&&s(h.name,x1))return-7;throw h}}function rc(o,a){return new Promise(((s,u)=>{let h=!1;a?.then((()=>h=!0),(()=>h=!0)),(typeof o=="function"?rc(Promise.resolve(),a).then(o):o).then((m=>{h||s(m)}),(m=>{h||u(m)}))}))}function gg(){return(function(a,s){return a==s})(typeof navigator[o=Pn,o(1)],(function(a){return a(4)})(Pn));var o}const oc=new Uint8Array([110,117,108,108]),kf=new Uint8Array([116,114,117,101]),Df=new Uint8Array([102,97,108,115,101]),Uf={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},vg=(()=>{const o=new Uint8Array(128);for(const[a,s]of Object.entries(Uf))o[s.charCodeAt(0)]=a.charCodeAt(0);return o})(),yg=/[\x00-\x1F"\\]/g,ic="Client timeout",sc="Network connection error",ac="Network request aborted",cc="Response cannot be parsed",uc="Blocked by CSP",fc="The endpoint parameter is not a valid URL",lc="Handle on demand agent data error";function wg(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}async function _g(){const o=function(_e,Be,Te){return _e(Be,Te)},a=function(_e,Be){return _e(Be)},s=function(_e,Be,Te){return _e(Be,Te)},u=function(_e,Be,Te){return _e(Be,Te)},h=function(_e,Be){return _e(Be)},m=function(_e,Be){return _e(Be)},p=function(_e,Be,Te){return _e(Be,Te)},N=function(_e,Be){return _e!==Be},U=function(_e,Be,Te){return _e(Be,Te)},G=function(_e,Be){return _e===Be},T=function(_e,Be){return _e!==Be},D=p(Ae,navigator,701619454);if(!D||N(typeof D,h(or,0))||N(typeof U(Ae,D,2758837156),h(or,1)))return{s:-1,v:null};const z=Math.random().toString().split(".")[1],X=await p(Ae,D,2758837156)(z),he=U(Ae,X,1915421369);if(G(he,void 0)||(function(_e,Be){return _e!==Be})(typeof(function(_e,Be){return _e(Be,2758837156)})(Ae,he),m(or,1))||T(typeof(function(_e,Be){return _e(Be,3538568711)})(Ae,X),(function(_e){return _e(1)})(or)))return{s:-1,v:null};try{const _e=await new Promise(((Te,xe)=>{try{const Fe=s(Ae,he,2758837156)("1");Fe[h(or,2)]=()=>{o(Ae,o(Ae,Fe,325763347),138212912)("s",a(or,3))},Fe[h(or,4)]=async()=>{o(Ae,s(Ae,Fe,325763347),318865860)(),(function(ke,Ce){ke(Ce)})(Te,await u(Ae,X,3538568711)())},Fe[a(or,5)]=()=>{a(xe,u(Ae,Fe,1574812785))}}catch(Fe){m(xe,Fe)}})),Be=G(_e,null)||G(_e,void 0)?void 0:(function(Te,xe){return Te(xe,3505086064)})(Ae,_e);return G(Be,void 0)||T(typeof Be,h(or,6))?{s:-3,v:null}:{s:0,v:Be}}finally{G(typeof(function(_e,Be){return _e(Be,974290055)})(Ae,D),(function(_e){return _e(1)})(or))&&(function(_e,Be){return _e(Be,974290055)})(Ae,D)(z).catch((()=>{}))}}function Eg(o){return o.some((a=>a.type==="agentEvent"&&(a.event.e===4||a.event.e===5)))}const Pf=Hn("WrongRegion"),Ff=Hn("SubscriptionNotActive"),Vf=Hn("UnsupportedVersion"),Gf=Hn("InstallationMethodRestricted"),Hf=Hn("HostnameRestricted"),$f=Hn("IntegrationFailed"),jf=Hn("VisitorNotFound"),Kf=Hn("NetworkRestricted"),Wf=Hn("InvalidProxyIntegrationSecret"),zf=Hn("InvalidProxyIntegrationHeaders"),Zf=Hn("ProxyIntegrationSecretEnvironmentMismatch");function Rg(o){const a=function(Te,xe){return Te(xe)},s=function(Te,xe){return Te<xe},u=function(Te,xe){return Te/xe},h=function(Te,xe,Fe){return Te(xe,Fe)},m=function(Te,xe){return Te+xe},p=function(Te,xe){return Te+xe},N=function(Te,xe){return Te+xe},U=function(Te,xe){return Te-xe},G=function(Te,xe){return Te(xe)},T=a(dn,o),D=new Uint8Array(16);for(let Te=0;s(Te,T.length);Te+=2)D[u(Te,2)]=h(parseInt,m(m(p(m("",T[Te]),""),T[N(Te,1)]),""),16);const z=a(Gn,D),X=(function(Te,xe,Fe,ke){return Te(xe,Fe,ke)})(Bf,D[h(parseInt,T[U(T.length,1)],16)],r9,o9),he=z.slice(0,Math.min(U(z.length,2),X)),_e=h(oy,G(Ir,he),i9),Be=G(Gn,G(ty,(function(Te,xe){return Te(xe)})(Y1,_e))).slice(0,s9);return h(jg,o,(function(Te,xe,Fe){return Te(xe,Fe)})(z7,(function(Te){return Te+""})((function(Te,xe){return Te+xe})((function(Te){return Te+""})((function(Te,xe){return""+xe})(0,he)),Be)).replace(new RegExp(G(Wr,1),"g"),"-").replace(new RegExp((function(Te){return Te(2)})(Wr),"g"),"_"),D))}function _s(o){const[a,s]=l1(o,"#"),[u,h]=l1(a,"?");let m,p;const N=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(u);return N?(m=(N[1]||"")+(N[4]||""),p=N[5]||""):(m="",p=u),{origin:m,path:p,query:h.length?h.join("?"):null,fragment:s.length?s.join("#"):null}}function bg(){if(o=Xv,!(o()&&(function(s){return s()})(rg)))return{s:-1,v:null};var o;const a={s:-4,v:null};return(function(s){return s()})(By).then((s=>(async function(u){const h=function(m,p){return m(p)};switch(u){case h(Vn,4):return{s:-2,v:null};case(function(m,p){return m(p)})(Vn,5):return{s:-3,v:null};case h(Vn,7):return new Promise((m=>{(function(p,N,U){return p(N,U)})(Ae,(function(p,N,U){return p(N,U)})(Ae,navigator,2646664628),3555432007)((p=>m((function(N){const U=function(Be,Te){return Be(Te)};if(!N)return{s:-5,v:null};const{accuracy:G,altitude:T,altitudeAccuracy:D,latitude:z,longitude:X,heading:he,speed:_e}=(function(Be,Te,xe){return Be(Te,xe)})(Ae,N,3631081861);return{s:0,v:{[U(Vn,8)]:z,[U(Vn,9)]:X,[U(Vn,10)]:T,[U(Vn,11)]:G,[U(Vn,12)]:D,h:he,s:_e,t:(function(Be,Te,xe){return Be(Te,xe)})(Ae,N,2782324286)}}})(p))),(p=>m((function(N){const U=function(G,T,D){return G(T,D)};switch(U(Ae,N,1997877400)){case(function(G,T,D){return G(T,D)})(Ae,N,3788099005):return{s:-3,v:null};case(function(G,T,D){return G(T,D)})(Ae,N,2796740938):return{s:-5,v:null};case U(Ae,N,3187968904):return{s:-4,v:null};default:return{s:-5,v:null}}})(p))),(function(p,N){return p(N)})(Vn,6))}));default:return{s:-5,v:null}}})(s))).then((s=>{(function(u,h,m){u(h,m)})(ls,a,s)})).catch((()=>ls(a,{s:-5,v:null}))),a}function Ag(o){const a={};for(const s of Object.keys(o)){const u=o[s];if("value"in u){const{rest:h}=ws(u,["value"]);a[s]=h}else a[s]=u}return a}async function Sg(){try{return await new FontFace("font","local('Arial')").load(),{s:0,v:!0}}catch{return{s:0,v:!1}}}function Yf(o,a){return u1(o,a?j7:Ol,K7,Nl)}function Ig(o){const a=function(u,h){return u+h},s=function(u,h){return u(h)};return a(a(s(Qt,4),(function(u,h,m){return u(h,m)})(hc,o,s(Qt,5))),"")}function Sr(o){return o.reduce(((a,s)=>a+(s?1:0)),0)}function Xf(o,a){try{document.cookie}catch(s){if((function(u){if(!(u instanceof DOMException))return!1;const h=u.message;return a7.test(h)||c7.test(h)||u7.test(h)})(s))return a;throw s}return o()}function vo(o){const a=atob(o),s=a.length,u=new Uint8Array(s);for(let h=0;h<s;h++)u[h]=a.charCodeAt(h);return u}function Og(){return o=Dn,a=On(2e3,{s:-2,v:null}),o(a,Xg);var o,a}function dr(o){return typeof o=="number"?o===0?null:Math.round(o):null}const qf="[Fingerprint]";function Jf(){const o=function(u,h){return u(h)},a=function(u,h){return u===h};var s;return!f()||!(function(u){return u in document})(o(St,15))||(a(s=document[o(St,15)],null)||a(s,void 0)?void 0:(function(u,h){return u(h,2256349940)})(Ae,s)().includes(o(St,16)))}function Ng(o){let a;try{o&&typeof o=="object"&&"message"in o?(a=String(o.message),"name"in o&&(a=`${o.name}: ${a}`)):a=String(o)}catch(s){a=`Code 3017: ${s}`}return _o(a,500)}const Tg=2e3;function xg({level:o,message:a}){o==="error"?console.error(a):o==="warning"?console.warn(a):console.log(a)}function Lg(){return{s:0,v:!!navigator.onLine}}function dc(o){return o.byteLength>Z7&&o1()}function Qf(o,a){let s=0;return()=>Math.random()*Math.min(a,o*Math.pow(2,s++))}function el(o){return o?{query:!0,fragment:!0}:void 0}async function Dn(o,a){let s,u,h;try{s=a().then((p=>u=[!0,p]),(p=>u=[!1,p]))}catch(p){u=[!1,p]}const m=o.then((p=>h=[!0,p]),(p=>h=[!1,p]));return await Promise.race([s,m]),()=>{if(u){if(u[0])return u[1];throw u[1]}if(h){if(h[0])return h[1];throw h[1]}throw new Error("96375")}}function Cg(o,a,s,u){const h=(function*(U,G,T){let D=0,z=0;for(;D<U.length&&z<G.length;)T(U[D],G[z])?(yield U[D],D++):(yield G[z],z++);for(;D<U.length;D++)yield U[D];for(;z<G.length;z++)yield G[z]})(o.map((U=>({t:ds(U.time),s:U.state==="visible"?"v":"h"}))),a,((U,G)=>U.t<G.t)),m=[];let p;const N=()=>{m.length===0&&p!==void 0&&m.push({t:s,s:p})};for(;m.length<100;){const U=h.next();if(U.done)break;const G=U.value,T=G.t,D=G.s;if(T>u)break;T<s?p=D:D!==p&&(N(),m.push(G),p=D)}return N(),m}const tl="__fpjs_pvid";function Mg(){return navigator.mimeTypes===void 0?{s:-1,v:null}:navigator.mimeTypes.length===void 0?{s:-3,v:null}:{s:0,v:navigator.mimeTypes.length}}function hc(o,a){const s=_s(o);let{query:u}=s;for(const[h,m]of Object.entries(a))for(const p of Array.isArray(m)?m:[m])u=`${u?`${u}&`:""}${h}=${n7(p)}`;return s.query=u,Es(s)}function Bg(){const o=window;return Sr(["fromAsync"in Array,"OffscreenCanvas"in o,"CompressionStream"in o,"isWellFormed"in String.prototype])>=3}function kg(o,a,s){return On(Math.min(Math.max(a,o+1e4-Date.now()),s))}const Dg=/Blocked a frame.*cross-origin frame/,Ug=/Failed to execute\s+'([^']+)'\s+on\s+'([^']+)'/,Pg=/Permission denied.*cross-origin object/,Fg=/Context not access storage/,Vg=/(\w+)\(\)\s+called for opaque origin/,Gg=3538568711,Hg=986543999;function $g(o){const a=function(p,N,U){return p(N,U)},s=function(p,N,U){return p(N,U)},u=function(p,N){return p<N},h=function(p,N,U){return p(N,U)},m=a(Ae,Object,1110892003)(o,(function(p){return p(0)})($v));if(m&&s(Ae,m,2813370411))return!0;for(let p=0;u(p,o.length);p++){const N=s(Ae,Object,1110892003)(o,p);if(N&&(h(Ae,N,2813370411)||a(Ae,N,1651707638)))return!0}return!1}const nl="stripped",pc=["path","query","fragment"];function jg(o,a){const s=_s(o);let u=s.origin+s.path;return u&&!u.endsWith("/")&&(u+="/"),u+=a,s.origin="",s.path=u,Es(s)}function Kg(){const o=function(s){return s()},a=function(s,u,h){return s(u,h)};return a(Dn,a(On,250,{s:-3,v:null}),(async()=>o(R)||o($)?o(uv):{s:-1,v:null}))}function Wg(){return Dt(0)}function zg(o){return G1(o,av)}function Zg(){const o=[],a=Object.getOwnPropertyNames(window);for(let s=0;s<a.length;s++){const u=a[s],h=Mn(u);if(Gv.has(h)&&o.push(u),h===E1){const m=a[s+1]||"";o.push(m)}}return{s:0,v:o}}function Yg(){const o=window;try{return o.self!==o.top}catch{return!0}}async function rl(o){if(!o1())return[!1,o];const[a,s]=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),u=await(async function(m,p){const N=p.writable.getWriter();N.write(m),N.close();const U=p.readable.getReader(),G=[];let T=0;for(;;){const{value:X,done:he}=await U.read();if(he)break;G.push(X),T+=X.byteLength}if(G.length===1)return G[0];const D=new Uint8Array(T);let z=0;for(const X of G)D.set(X,z),z+=X.byteLength;return D})(o,s);return[!0,a?u:(function(m){return new Uint8Array(m.buffer,m.byteOffset+2,m.byteLength-6)})(u)]}async function Xg(){const o=function(D){return D()},a=function(D,z){return D(z)},s=function(D,z){return D+z},u=function(D,z){return D+z},h=function(D,z){return D(z)},m=function(D,z){return D===z},p=function(D,z,X){return D(z,X)};var N;const U=window,G=o(sy),T=a(zv,0);try{const D=T[s(u(s(u((function(he){return he+""})((function(he,_e){return""+_e})(0,a(mc,G[0]))),(function(he,_e){return he(_e)})(mc,G[1])),""),h(mc,G[2])),"")],z=Object.values(D),X={};for(const he of Object.keys(U).slice(...z)){const _e=m(N=p(Ae,Object,1110892003)(U,he),null)||m(N,void 0)?void 0:p(Ae,N,494360628);X[h(Mn,he)]={i:!0,t:null,s:he.slice(-3),e:12,p:h(String,_e).slice(0,50)}}return{s:-3,v:X}}catch{if(await o(cg))return{s:-4,v:null};const z=await(function(X,he){return X(he)})(x7,G);return z?{s:0,v:z}:{s:-1,v:null}}}function qg(o){var a;const s=(a=o[13])===null||a===void 0?void 0:a.event.result;if(!s)return{};const u={};for(const h in s)u[h]=Math.round(s[h].duration);return u}function mc(o){const a=function(u,h){return u+h},s=function(u,h){return u+h};return a(a(s(s("",Xa[(function(u){return u>>4})(o)]),""),Xa[(function(u){return u%16})(o)]),"")}function gc(o,a){var s;try{(s=localStorage==null?void 0:localStorage.setItem)===null||s===void 0||s.call(localStorage,o,a)}catch{}}function vc(o){return`${o}_lr`}const ol=b7(_y);function Jg({url:o,body:a}){var s;const u=(function(){var m;const p=(m=window.event)===null||m===void 0?void 0:m.type;return p==="pagehide"||p==="unload"})();if(u)try{if(!((s=navigator.sendBeacon)===null||s===void 0)&&s.call(navigator,o,a))return!0}catch(m){if(!(m instanceof Error&&m.message==="Illegal invocation"))throw m}const h=new XMLHttpRequest;h.open("POST",o,!u),a instanceof Blob&&h.setRequestHeader("Content-Type",a.type);try{h.send(a)}catch{return!1}return!0}function il(o){const a={};return new Set(o).forEach((s=>{const u=(function(m){if(!URL.prototype)return m;try{return new URL(m,window.location.origin).toString()}catch{return m}})(s),h=performance.getEntriesByName(u,"resource");a[s]=h})),a}function Qg(o){const a=new Uint8Array(o.length/2);for(let s=0;s<o.length;s+=2)a[s/2]=parseInt(o[s]+o[s+1],16);return a}function sl(o){return(function(a,s){return a(s,2660613247)})(Ae,o)||(o[(function(a){return a(0)})(St)]={})}async function al({urlHashing:o}){const a=(function(){var s,u;const h=[];let m=window;for(;;)try{const p=(s=m.location)===null||s===void 0?void 0:s.href,N=(u=m.document)===null||u===void 0?void 0:u.referrer;if(p===void 0||N===void 0)return{s:1,v:h};h.push({l:p,f:N});const U=m.parent;if(!U||U===m)return{s:0,v:h};m=U}catch(p){if(e9(p))return{s:1,v:h};throw p}})();return{...a,v:await N7(a.v,o)}}async function e7(){const o=Ae(window,2796484463);if(o)return new Promise((a=>{(function(s,u,h,m,p){s(0,1,m,p)})(o,0,0,(()=>a(!0)),(()=>a(!1)))}))}function yc(o,a){const s=function(u,h,m){return u(h,m)};return!!o&&(function(u,h){return u===h})(s(Ae,o,3814588639),s(Ae,a,3814588639))}function cl(o){return Gn(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function ul(){const o=navigator.language;return o?{s:0,v:o}:{s:-1,v:null}}async function t7(){const o=function(p){return p()},a=function(p,N){return p(N)},s=function(p,N){return p(N)},u=function(p,N){return p(N)},h=function(p,N,U){return p(N,U)};if(o($)||ae())return!1;let m=!1;if(Vv()){const p={type:a(St,20),audio:s(St,21),video:a(St,22),keySystemConfiguration:{keySystem:w1,video:u(St,23)}},N=await h(Ae,h(Ae,navigator,2900309608),3516168465)(p);m=(function(U,G,T){return U(G,T)})(eg,N,(function(U){return U(24)})(St))&&N[(function(U){return U(24)})(St)]}return m&&!(function(p){return p in navigator})((function(p){return p(25)})(St))||!o(f)}function fl(){return[8,4,4,4,12].map((o=>h1(o,Xa))).join("-")}function Es({origin:o,path:a,query:s,fragment:u}){return o+a+(s===null?"":`?${s}`)+(u===null?"":`#${u}`)}function n7(o){return o.split("/").map(encodeURIComponent).join("/")}function r7(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function o7(o=`${qf} `){const a={};return s=>{switch(s.e){case 15:a[s.getCallId]=s.body;break;case 18:console.log(`${o}Visitor id request`,a[s.getCallId]);break;case 19:console.log(`${o}Visitor id response`,s.body);break;case 16:case 17:delete a[s.getCallId]}}}function ll(){const{webdriver:o}=navigator;return o===null?{s:-1,v:null}:o===void 0?{s:-2,v:null}:{s:0,v:o}}function i7(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function dl(o){return lg(o)?(function(a){if(a.length===0)throw pl();return a[Math.floor(As()*a.length)]})(o):(function(a){const s=As();let u=0,h=0;for(const[,m]of a)u+=m;for(const[m,p]of a){if(s>=h/u&&s<(h+p)/u)return m;h+=p}throw pl()})(Object.entries(o))}async function s7(o,a,s){const u=function(Le,De){return Le(De)},h=function(Le,De){return Le*De},m=function(Le,De){return Le(De)},p=function(Le,De){return Le(De)},N=function(Le,De){return Le(De)},U=function(Le,De){return Le(De)},G=function(Le,De){return Le(De)},T=function(Le,De){return Le/De},D=function(Le,De){return Le+De},z=function(Le,De){return Le(De)},X=function(Le,De){return Le(De)},he=function(Le,De){return Le(De)},_e=function(Le,De){return Le(De)},Be=function(Le,De){return Le|De},Te=function(Le,De){return Le(De)},xe=function(Le,De){return Le(De)},Fe=function(Le,De){return Le(De)},ke=function(Le,De){return Le(De)},Ce=function(Le,De){return Le(De)},Ye=function(Le,De){return Le*De},it=function(Le,De){return Le(De)},dt=function(Le,De){return Le(De)},mt=function(Le,De){return Le(De)},Bt=function(Le,De){return Le<De},Ft=function(Le,De){return Le(De)},Vt=function(Le,De){return Le(De)},pn=function(Le,De){return Le(De)},bt=function(Le,De){return Le(De)},Tt=function(Le,De){return Le(De)},At=function(Le,De){return Le(De)},yt=function(Le,De){return Le(De)},lt=function(Le,De){return Le(De)},Gt=function(Le,De){return Le(De)},Ht=function(Le,De){return Le(De)},mn=function(Le,De){return Le===De},nn=function(Le,De){return Le(De)},yn=function(Le,De){return Le(De)},$n=function(Le,De){return Le(De)},wn=function(Le,De){return Le(De)},rn=function(Le,De){return Le(De)},un=function(Le,De){return Le(De)},on=function(Le,De){return Le+De},jn=function(Le,De){return Le+De},Xr=function(Le,De){return Le(De)},Dc=function(Le,De){return Le*De},So=function(Le,De){return Le+De},Cs=function(Le,De){return Le+De},_i=function(Le,De){return Le(De)},Ms=function(Le,De){return Le<De},Io=function(Le,De){return Le(De)},Uc=function(Le,De){return Le(De)},xn=function(Le,De){return Le*De},Tr=function(Le,De){return Le*De},pr=function(Le,De){return Le+De},Oo=function(Le,De){return Le+De},mr=function(Le,De){return Le+De},fn=await o[(function(Le){return Le(6)})(je)]({requiredFeatures:a}),No=Math.PI,sd=[[0,1,0,T(No,7)],[1,0,0,T(No,8)],[0,1,1,T(No,4)],[1,2,1,T(No,8)]],Pc=sd.length,Bs=new Uint8Array(h(Pc,D(D(yi,Eo),Ro))),ad=navigator[z(je,0)][u(je,7)]();s[U(je,8)]({device:fn,format:ad});const cd=fn[(function(Le){return Le(9)})(je)]({label:(function(Le){return Le(10)})(je),code:X(je,11)}),Fc=fn[he(je,12)]({label:N(je,13),layout:(function(Le){return Le(14)})(je),vertex:{module:cd},fragment:{module:cd,targets:[{format:ad}]},primitive:_e(je,15)}),Zy=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],Yy=new Uint8Array(z(Array,h(7,9)).fill(void 0).map(((Le,De)=>Zy[De%3])).flat()),ud=fn[m(je,16)]({label:N(je,17),size:[7,9],format:he(je,18),usage:Be(window[Te(je,19)][(function(Le){return Le(20)})(je)],window[p(je,19)][u(je,21)])});fn[xe(je,22)][Fe(je,23)]({texture:ud},Yy,{bytesPerRow:h(7,4)},{width:7,height:9});const Xy=fn[ke(je,24)]((function(Le){return Le(25)})(je)),qy=fn[Ce(je,26)]({layout:Fc[N(je,27)](0),entries:[{binding:0,resource:Xy},{binding:1,resource:ud[p(je,28)]()}]}),fd=sd.map((Le=>{const De=fn[(function(Kn){return Kn(29)})(je)]({label:u(je,30),size:h(4,Float32Array[m(je,31)]),usage:window[p(je,32)][N(je,33)],mappedAtCreation:!0});return new Float32Array(De[m(je,34)]())[U(je,35)](Le),De[u(je,36)](),fn[U(je,26)]({layout:Fc[G(je,27)](1),entries:[{binding:0,resource:{buffer:De}}]})})),ks=fn[(function(Le){return Le(37)})(je)]((function(Le){return Le(38)})(je)),Ds=fn[_e(je,29)]({size:Ye(ks[(function(Le){return Le(39)})(je)],8),usage:Be(window[xe(je,32)][it(je,40)],window[dt(je,32)][Ce(je,41)])}),To=fn[dt(je,29)]({size:h(Ds[it(je,42)],Pc),usage:Be(window[ke(je,32)][(function(Le){return Le(21)})(je)],window[mt(je,32)][mt(je,43)])}),ld={label:Te(je,44),colorAttachments:(function(Le){return Le(45)})(je),timestampWrites:{querySet:ks,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}};for(let Le=0;Bt(Le,fd.length);Le++){const De=fd[Le];ld[he(je,46)][0][Ft(je,47)]=s[m(je,48)]()[Vt(je,28)]();const Kn=fn[pn(je,49)](mt(je,50)),Ei=Kn[bt(je,51)](ld);Ei[p(je,52)](Fc),Ei[X(je,53)](0,qy),Ei[Tt(je,53)](1,De);const Jy=window[At(je,54)][At(je,55)]();Ei[yt(je,56)](48),Ei[lt(je,57)](),Kn[Gt(je,58)](ks,0,ks[Ht(je,39)],Ds,0),mn(To[nn(je,59)],yn(je,60))&&Kn[$n(je,61)](Ds,0,To,h(Le,16),Ds[pn(je,42)]);const Qy=Kn[yt(je,62)]();fn[wn(je,22)][Fe(je,63)]([Qy]);const ew=rn(q7,s[un(je,2)]);Bs[yn(je,35)](ew,D(Ro,Ye(Le,on(jn(yi,Eo),Ro)))),Bs[Xr(je,35)](new Uint8Array(new Float64Array([Jy])[he(je,64)]),Dc(Le,So(Cs(yi,Eo),Ro)))}if(mn(To[(function(Le){return Le(59)})(je)],G(je,60))){await To[yt(je,65)](window[_i(je,66)][G(je,67)]);const Le=To[it(je,34)](),De=new Uint8Array(Le);for(let Kn=0;Ms(Kn,Pc);Kn++)Bs[Io(je,35)](De[Uc(je,68)](xn(Kn,Eo),Tr(pr(Kn,1),Eo)),Oo(on(Ro,yi),Ye(Kn,D(mr(yi,Eo),Ro))));To[Io(je,36)]()}return _i(Gn,Bs)}const a7=/The document is sandboxed and lacks the 'allow-same-origin' flag/,c7=/The operation is insecure/,u7=/Forbidden in a sandboxed document without the 'allow-same-origin' flag/;function f7(o){const a=il(o.map((s=>s.url)).filter((s=>!!s)));return o.map(((s,u)=>{const h=o.length>1&&u<o.length-1&&!("error"in s);return vl(s.url,ds(s.startedAt),ds(s.finishedAt),h?"Unknown":s.error,a[s.url])}))}function l7(o){const a=o.match(dy);return!!a&&(function(s,u){return s===u})((function(s,u){return s(u)})(Mn,a[1]),ly)}async function d7(o){return(function(a){return a()})(f)||(function(a){return a()})(R)?await(function(a,s){return a(s)})(dg,o):{s:-1,v:null}}function h7(){const o=(function(){const a=new Error,s=(function(u){return u.fileName?u.fileName.split(" ")[0]:u.sourceURL?u.sourceURL:null})(a);if(s)return s;if(a.stack){const u=(function(h){const[m,p]=h.split(`
|
|
11
|
-
`),N=D7.exec(p)||U7.exec(m);return N?N[1]:void 0})(a.stack);if(u)return u}return null})();return{u:o?_o(o,$7):null}}function p7(){const o=function(Ce,Ye){return Ce(Ye)},a=function(Ce,Ye,it){return Ce(Ye,it)},s=function(Ce){return Ce()},u=function(Ce,Ye){return Ce<Ye},h=function(Ce,Ye){return Ce<Ye},m=function(Ce,Ye){return Ce*Ye},p=function(Ce){return Ce()},N=function(Ce,Ye){return Ce*Ye},U=function(Ce){return Ce()},G=function(Ce,Ye){return Ce*Ye},T=function(Ce,Ye){return Ce(Ye)},D=function(Ce,Ye){return Ce+Ye},z=function(Ce,Ye){return Ce+Ye},X=function(Ce,Ye){return Ce(Ye)},he=function(Ce,Ye){return Ce(Ye)},_e=function(Ce,Ye,it){return Ce(Ye,it)},Be=document[o(hr,0)](o(hr,1)),Te=a(Ae,Be,1590906722)(o(hr,2));if(!Te)return{s:-1,v:null};Be[o(hr,3)]=wi,Be[(function(Ce){return Ce(4)})(hr)]=wi;const xe=s(iv),Fe=(function(Ce,Ye,it,dt,mt){return Ce(Ye,it,dt,mt)})(Dv,xe[0],xe[1],xe[2],xe[3]);for(let Ce=0;u(Ce,wi);Ce++)for(let Ye=0;h(Ye,wi);Ye++){const it=Math.floor(m(p(Fe),256)),dt=Math.floor(N(U(Fe),256)),mt=Math.floor(G(s(Fe),256));Te[T(hr,5)]=D(D(D(D(D(z(X(hr,6),it),","),dt),","),mt),he(hr,7)),_e(Ae,Te,2027710893)(Ye,Ce,1,1)}const ke=_e(Ae,Te,2240176009)(0,0,(function(Ce,Ye){return Ce(Ye,2350531887)})(Ae,Be),a(Ae,Be,4115522831));return{s:0,v:{s:xe,p:Array.from(_e(Ae,ke,2918445923)),d:wi}}}function hl(){const o=function(s,u){return s in u},a=function(s,u){return s(u)};return(o(a(St,11),window)||o(a(St,12),window)||(function(s){return s in window})((function(s){return s(13)})(St)))&&(function(s){return s in navigator})((function(s){return s(14)})(St))}function m7(){const o=navigator,a=["webkitPersistentStorage","connectionSpeed","xr","hid"],s=[];for(const u of Object.getOwnPropertyNames(Object.getPrototypeOf(o)))if(!a.includes(u))try{const h=o[u];typeof h=="function"&&h.name!==void 0&&s.push(h.name)}catch(h){return{s:-1,v:[h instanceof Error?h.message:String(h)]}}return{s:0,v:s}}function g7(){const o=function(a,s){return a(s)};try{return o(Nf,!!window[o(zr,0)])}catch{return(function(s){return s(!0)})(Nf)}}async function v7(){const o=L1(),a=await Promise.all(o.map(Oy)),s={};return o.forEach(((u,h)=>{const m=(function(p,N){return p(N)})(Mn,u).toString(16);s[m]=a[h]})),s}async function y7(){const o=function(u){return u()},a=function(u,h){return u===h};if((function(u){return u()})(f)&&o(_7))return{s:-3,v:null};const s=await Promise.race([(function(u){return u(100,null)})(gi),o(e7)]);return a(s,null)?{s:-2,v:null}:a(s,void 0)?{s:-1,v:null}:{s:0,v:s}}function w7(o){const a=document.createDocumentFragment(),s=p(a,"mrow"),u=p(s,"munderover"),h=p(u,"mmultiscripts");p(h,"mo","∏");const m=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];function p(U,G,T=""){const D=document.createElement(G);return D.textContent=T,U.append(D),D}function N(U,G,T,D,z){const X=document.createElement("mmultiscripts");return p(X,"mi",U),p(X,"mi",G),p(X,"mi",T),p(X,"mprescripts"),p(X,"mi",D),p(X,"mi",z),X}for(const U of m){const G=N(...U);h.append(G)}return nr(((U,G)=>{const T=document.createElement("math");T.style.whiteSpace="nowrap",T.append(a),G.document.body.append(T);const D=H1(T,G);return G.document.body.removeChild(T),{s:0,v:D}}),o.sis)}function pl(){return new TypeError("Can't pick from nothing")}function cn(o){return de(o,(a=>({s:0,v:a})))}function _7(){const o=window;return Sr(["ClipboardItem"in o,"PerformanceEventTiming"in o,"RTCSctpTransport"in o])>=2}const E7=o=>o instanceof Error&&o.message==="Illegal invocation";async function R7(){const o=function(T,D,z){return T(D,z)},a=function(T,D){return T===D},s=function(T,D,z){return T(D,z)},u=function(T,D,z){return T(D,z)},h=function(T,D){return T!==D},m=function(T,D,z){return T(D,z)},p=function(T,D,z){return T(D,z)},N=navigator,U=o(Ae,N,1417288500),G=o(Ae,N,2706846255);if(!G&&!(!(a(U,null)||a(U,void 0))&&s(Ae,U,3538568711)))return{s:-1,v:null};if(G){const T=await Promise.race([u(gi,250,void 0),new Promise((D=>{o(Ae,G,1291883197)(((z,X)=>D(X)))}))]);if(h(T,void 0))return{s:0,v:T}}try{if(!((function(T){return T===null})(U)||(function(T){return T===void 0})(U))&&s(Ae,U,3538568711)){const T=await Promise.race([m(gi,250,void 0),p(Ae,U,3538568711)().then((D=>Ae(D,1813778413)))]);if(h(T,void 0))return{s:1,v:T}}return{s:-2,v:null}}catch(T){if((function(D,z){return D(z)})(xc,T))return{s:-101,v:null};throw T}}const ml=[3,7];function b7(o){return a=>{const s=[],u=new Map,h=window.setInterval((function(){const p=s.shift();if(p){const[N,U]=p,G=$r(o(U));u.set(N,G)}}),1);function m(){window.clearInterval(h)}return a.then(m,m),[s,u,a]}}function A7(){const o=document[a=Lc,a(0)]("a");var a;return(function(s,u){return s(u,868071530)})(Ae,o)[(function(s){return s(1)})(Lc)]=(function(s){return s(2)})(Lc),{s:0,v:(function(s,u){return s(u,2350531887)})(Ae,(function(s,u){return s(u,868071530)})(Ae,o))}}function S7(o){const a=function(m,p){return m(p)},s=function(m,p){return m+p},u=function(m,p){return m+p};let h=a(Wr,3);return(function(m,p){return m!==p})(o,a(Wr,4))&&(h=s((function(m,p){return m+p})(u(s("",o),"."),h),"")),s(u((function(m){return m(5)})(Wr),h),"/")}function I7(o,a){const s=function(m,p){return m(p)},u=(function(m){return m(0)})(Qt);u[(function(m){return m(1)})(Qt)]=s(Ig,a),u[(function(m){return m(2)})(Qt)]=o;const h={};return h[s(Qt,3)]=[u],h}function O7(o){const a=function(u,h){return u(h)},s=function(u,h,m){return u(h,m)};return(function(u,h){return u===h})(o.name,a(Qt,9))&&s(Ae,new RegExp(a(Qt,10)),3632233996)(s(Ae,o,3065852031))}async function gl(o=mi(0)){const a=function(z,X){return z(X)},s=function(z,X){return z+X},u=function(z,X){return z+X},h=function(z,X,he){return z(X,he)},m=function(z,X){return z===X},p=function(z,X){return z(X)},N=function(z,X){return z===X},U=function(z,X){return z===X};var G,T;const[D]=o.split("/").slice(-1);try{const z=new window[a(mi,1)]([],o),X=new window[a(mi,2)](s(u(u(s(s((function(he,_e){return he+_e})((function(he){return he(3)})(mi),h(Ae,z,4081332993)||""),""),D),a(mi,4)),h(Ae,z,3034174415)),""));return m(m(G=h(Ae,X,3518522040),null)||m(G,void 0)?void 0:G.substring(1),"")?{n:D,l:-2}:{n:D,l:p(Mn,N(T=h(Ae,X,3518522040),null)||U(T,void 0)?void 0:T.substring(1))}}catch{return{n:D,l:-1}}}function Rs(o,a){Al(o,o.len+a.length),o.arr.set(a,o.len),o.len+=a.length}async function N7(o,a){return Promise.all(o.map((async s=>{const[u,h]=await Promise.all([Is(s.l,a),Is(s.f,a)]);return{l:u,f:h}})))}function vl(o,a,s,u,h){const m=(function(p,N,U){if(!p)return;let G;for(let T=p.length-1;T>=0;T--){const D=p[T];if(D.startTime<N-1)break;D.responseEnd<=U+1&&(G=D)}return G})(h,a,s);return{s:dr(m?.startTime)||Math.round(a),e:dr(m?.responseEnd)||Math.round(s),u:o||null,er:u?String(u):null,ds:dr(m?.domainLookupStart),de:dr(m?.domainLookupEnd),cs:dr(m?.connectStart),css:dr(m?.secureConnectionStart),ce:dr(m?.connectEnd),qs:dr(m?.requestStart),ss:dr(m?.responseStart)}}function T7(o,a,s,u,h,m,p,N,U,G,T,D,z){const X={modules:o,apiKey:u,ii:N,imi:U,storageKey:p,ab:T,urlHashing:G};function he(it){if(!z)return;const dt=hi(8);switch(it){case"get":return(function(mt,Bt){return Ft=>{const Vt={...Ft,getCallId:Bt};return mt(Vt)}})(z,dt);case"collect":return(function(mt,Bt){return Ft=>{const Vt={...Ft,collectCallId:Bt};return mt(Vt)}})(z,dt)}}const _e=it=>On(it??1e4).then((()=>Promise.reject(new Error(ic)))),Be=async(it,dt,mt)=>{var Bt;const Ft=_e(it.timeout);mt(await Te(it,Ft,dt));for(const Vt of o)(Bt=Vt.onCollectResponse)===null||Bt===void 0||Bt.call(Vt,p)},Te=async({timeout:it=1e4,tag:dt,linkedId:mt},Bt,Ft)=>{const Vt=$r(Promise.all([Ye(Ft),Ce(it,!1,Ft)])),[pn,bt]=await Promise.race([Bt,Vt]),Tt=await Rl({...X,components:pn,tag:dt,tls:bt,linkedId:Os(mt)});return await(async function(At,yt){const lt=[Ac(),[]],Gt=Ss(lt),Ht=Ss(At),[mn,nn]=dc(Ht)?await rl(Ht):[!1,Ht],yn=Yf(nn,mn);return Un(yt,(()=>({e:24,agentMetadata:lt,body:At,isCompressed:mn}))),`${cl(Gt)}:${cl(yn)}`})(Tt,Ft)},xe=async({tag:it,linkedId:dt},mt,Bt,Ft)=>{if(!D)return;const Vt=await ke();let pn=!1;Bt.catch((()=>pn=!0));try{return await b1(h,{...X,tls:Vt,tag:it,linkedId:Os(dt),fast:!0},mt,Bt,Ft)}catch(bt){if(pn)throw bt;return void(ys(bt)&&bt.message===jf||console.warn(bt))}},Fe=({timeout:it=1e4,tag:dt,linkedId:mt,disableTls:Bt,extendedResult:Ft,exposeComponents:Vt,environment:pn,products:bt},Tt,At)=>{const yt=$r(Promise.all([Ye(At),Ce(it,Bt,At)]));return async(lt,Gt)=>{const[Ht,mn]=await Promise.race([Gt,yt]);return await b1(h,{...X,components:Ht,customComponent:pn,tag:dt,tls:mn,linkedId:Os(mt),extendedResult:Ft,exposeComponents:Vt,algorithm:m,products:hv(bt,"products"),requestId:lt},Tt,Gt,At)}},ke=()=>s?.(0,50,!1,void 0),Ce=(it,dt,mt)=>s?.(.1*it,.4*it,dt,mt),Ye=async it=>{try{const dt=await a();return Un(it,(()=>({e:13,result:dt}))),dt}catch(dt){throw Un(it,(()=>({e:14,error:dt}))),dt}};return{get:(it={})=>{const dt=he("get");return Ao(dt,(()=>({e:3,options:it})),(mt=>({e:4,result:mt})),(mt=>({e:5,error:mt})),(()=>Tl((mt=>(async(Bt,Ft,Vt)=>{const pn=Ll();try{const bt=ol(pn),Tt=_e(Bt.timeout),At=Fe(Bt,bt,Ft),yt=await xe(Bt,bt,Tt,Ft);yt?(Vt(yt),await At(yt.requestId,Tt)):Vt(await At(void 0,Tt))}finally{pn.resolve()}})(it,dt,mt)))))},collect:(it={})=>{const dt=he("collect");return Ao(dt,(()=>({e:21,options:it})),(mt=>({e:22,result:mt})),(mt=>({e:23,error:mt})),(()=>Tl((mt=>Be(it,dt,mt)))))}}}async function x7(o){const a=function(he,_e){return he(_e)},s=function(he,_e){return he<_e},u=function(he,_e){return he(_e)},h=function(he,_e,Be,Te,xe){return he(_e,Be,Te,xe)},m=function(he,_e){return he(_e)},p=function(he,_e){return he(_e)};var N;const U=window[p(xt,3)],G=(function(he){return he===null})(N=U[m(xt,4)])||(function(he){return he===void 0})(N)?void 0:N.bind(U);if(!G)return null;const T=(function(he){return he(5)})(xt),D=p(xt,6),z={};let X;if(await Promise.all(T.map((async he=>{try{const _e=await(function(Fe,ke,Ce){return Fe(ke,Ce)})(G,he,D),Be=await _e[a(xt,7)](),Te=Be[a(xt,8)]();let xe=[92,189,203];for(let Fe=0;s(Fe,3);Fe++)try{return void(z[u(Mn,he)]=await h(Wv,Be,Te,o,xe))}catch(ke){if(a(uy,ke)){xe=m(Av,o);continue}throw u(jm,xe),ke}}catch(_e){X=_e}}))),X&&(function(he){return he===0})(Object.keys(z).length))throw X;return z}function yl(o){return Xf((()=>{const a=`${o}=`;for(const s of document.cookie.split(";")){let u=0;for(;s[u]===" "&&u<s.length;)++u;if(s.indexOf(a)===u)return s.slice(u+a.length)}}),void 0)}function di(o){try{(function(a,s){return a(s,318865860)})(Ae,o)()}catch{}}function wc(o){return{e:Ng(o)}}const L7=function(){const o=(function(){const s={},u=[],h=[];let m=!1;const p=bo(document,"visibilitychange",N);function N(){h.push({t:Math.round(performance.now()),s:Ec()?"v":"h"})}function U(G,T,D){var z,X,he,_e,Be,Te,xe,Fe,ke,Ce,Ye,it,dt,mt,Bt,Ft,Vt,pn,bt,Tt,At;const yt=(function(xn,Tr,pr,Oo){const mr=[];return xn[Tr]&&(mr.push(...xn[Tr].commonEvents),Oo==="get"&&pr&&mr.push(...xn[Tr].getCalls[pr]||[]),Oo==="collect"&&pr&&mr.push(...xn[Tr].collectCalls[pr]||[])),mr})(s,G,T,D),lt={};for(const xn of yt)lt[xn.event.e]=xn;const Gt=(z=lt[4])!==null&&z!==void 0?z:lt[5],Ht=(X=lt[22])!==null&&X!==void 0?X:lt[23],mn=lt[3]&&Gt,nn=lt[21]&&Ht,yn=mn||nn;if(!(lt[0]&<[1]&<[12]&&yn))return;const{token:$n,apiKey:wn=$n,storageKey:rn=nc,modules:un,ldi:on,aggressiveOptimization:jn=!1,optimizeRepeatedVisits:Xr=!1}=lt[0].event.options;if(!wn)return;const Dc=Math.min(lt[0].timestamp,ds((he=on?.attempts[0].startedAt)!==null&&he!==void 0?he:new Date("8524-04-28"))),So=(_e=lt[5])===null||_e===void 0?void 0:_e.event.error,Cs=(Be=lt[4])===null||Be===void 0?void 0:Be.event.result,_i=(Te=lt[23])===null||Te===void 0?void 0:Te.event.error,Ms=(xe=lt[13])!==null&&xe!==void 0?xe:lt[14],Io=il(u),Uc={am:nn?"collect":"get",v:"1",dt:new Date().toISOString(),ci:Ac(),pi:Of(),ai:G,ri:hi(12),c:wn,rid:(ke=(Fe=Cs?.requestId)!==null&&Fe!==void 0?Fe:So?.requestId)!==null&&ke!==void 0?ke:null,er:(Ce=So?.message)!==null&&Ce!==void 0?Ce:null,cr:(Ye=_i?.message)!==null&&Ye!==void 0?Ye:null,mo:un.map((xn=>xn.key)).filter((xn=>!!xn)),sa:f7((it=on?.attempts)!==null&&it!==void 0?it:[]),ls:lt[0].timestamp,le:lt[1].timestamp,ca:Ja(yt,Io,9,10,11),ss:lt[12].timestamp,se:(dt=Ms?.timestamp)!==null&&dt!==void 0?dt:null,sd:qg(lt),gs:(Bt=(mt=lt[3])===null||mt===void 0?void 0:mt.timestamp)!==null&&Bt!==void 0?Bt:null,ge:(Ft=Gt?.timestamp)!==null&&Ft!==void 0?Ft:null,cs:(pn=(Vt=lt[21])===null||Vt===void 0?void 0:Vt.timestamp)!==null&&pn!==void 0?pn:null,ce:(bt=Ht?.timestamp)!==null&&bt!==void 0?bt:null,fa:Ja(yt,Io,18,19,20,0),ia:Ja(yt,Io,18,19,20,1),vs:Cg((Tt=on?.visibilityStates)!==null&&Tt!==void 0?Tt:[],h,Dc,(At=Gt?.timestamp)!==null&&At!==void 0?At:Ht?.timestamp),ab:lt[1].event.ab,ao:jn,or:Xr};((xn,Tr)=>{(function(pr,Oo){const mr=vc(Oo),fn=Oc(mr)||[];fn.splice(0,fn.length-2);const No=u1(Ss(pr),ml,3,7);fn.push([pr.ri,Gn(No)]),gc(mr,JSON.stringify(fn))})(xn,Tr)})(Uc,rn)}return N(),{addEvent:function(G){if(!m)switch((function(T){const D=T.event;if(!Il(D))return;const{agentId:z}=D;if(s[z]||(s[z]={commonEvents:[],getCalls:{},collectCalls:{}}),V1(D)){const{getCallId:X}=D;let he=s[z].getCalls[X];return he||(he=[]),he.push(T),void(s[z].getCalls[X]=he)}if(y1(D)){const{collectCallId:X}=D;let he=s[z].collectCalls[X];return he||(he=[]),he.push(T),void(s[z].collectCalls[X]=he)}s[z].commonEvents.push(T)})({timestamp:Math.round(performance.now()),event:G}),G.e){case 9:case 18:u.push(G.url);break;case 4:case 5:U(G.agentId,G.getCallId,"get");break;case 22:case 23:U(G.agentId,G.collectCallId,"collect")}},destroy:()=>{m=!0,p()}}})();let a=new Set;return{toRequest(s){const u=(function(h){const m=Oc(vc(h))||[],p=[];return m.forEach((N=>{try{const U=vi(Nc(vo(N[1]),ml,7));p.push(U)}catch{}})),p})(s);return a=new Set(u.map((h=>h.ri))),{lr:u}},onGetResponse(s,u){T1(u,a)},onCollectResponse(s){T1(s,a)},addEvent:o.addEvent,destroy:o.destroy}};class C7{constructor(a){this.onReportReady=a,this.isStopped=!1,this.pageStartTimestamp=(function(){var N,U;const G=performance;if(G.timeOrigin){const T=(U=(N=G.getEntriesByType)===null||N===void 0?void 0:N.call(G,"navigation"))===null||U===void 0?void 0:U[0];if(T)return G.timeOrigin+(T.responseStart||T.unloadEventEnd)}return G.timing.domLoading||G.timing.responseStart||G.timing.unloadEventEnd})(),this.events={};const s=window,u=document,h=[[u,"readystatechange",()=>this.handleDocumentReadyStateChange()],[u,"visibilitychange",()=>this.handleVisibilityChange()],[u,"pageshow",()=>this.handlePageTransition(!0)],[u,"pagehide",()=>this.handlePageTransition(!1)],[s,"unload",()=>this.handlePageUnload()]];for(const[N,U,G]of h)N.addEventListener(U,G);const m=(function(N){const U=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((G=>bo(document,G,N,void 0)));return()=>{for(const G of U)G()}})((()=>this.handleFullscreenChange())),p=(function(N){const U=window,{connection:G}=navigator;if(G)return bo(G,"change",N);{const T=bo(U,"online",N),D=bo(U,"offline",N);return()=>{T(),D()}}})((()=>this.handleNetworkConnectionChange()));this.stop=()=>{this.isStopped=!0;for(const[N,U,G]of h)N.removeEventListener(U,G);m(),p()}}addEvent(a){var s;if(this.isStopped)return;const u={time:new Date,type:"agentEvent",event:a};if(a.e===0){const h=a.options;this.urlHashing=(s=h?.urlHashing)!==null&&s!==void 0?s:el(h?.stripUrlParams),u.documentReadyState=document.readyState,u.isPageVisible=Ec(),u.isFullscreen=W1(),u.network=xl()}switch(this.storeAgentEvent(u),a.e){case 2:this.submitReport(a.agentId,void 0);break;case 4:case 5:this.submitReport(a.agentId,a.getCallId)}}handleDocumentReadyStateChange(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})}handleVisibilityChange(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ec()})}handlePageTransition(a){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:a})}handleFullscreenChange(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:W1()})}handleNetworkConnectionChange(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:xl()})}handlePageUnload(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(const a of Object.keys(this.events)){const s=this.events[a];if(Object.keys(s.getCalls).length===0)this.submitReport(a,void 0);else for(const u of Object.keys(s.getCalls))Eg(s.getCalls[u])||this.submitReport(a,u)}this.stop()}storeAgentEvent(a){const s=a.event;if(!Il(s))return;const{agentId:u}=s;if(this.events[u]||(this.events[u]={commonEvents:[],getCalls:{},collectCalls:{}}),V1(s)){const{getCallId:h}=s;let m=this.events[u].getCalls[h];return m||(m=[]),m.push(a),void(this.events[u].getCalls[h]=m)}if(y1(s)){const{collectCallId:h}=s;let m=this.events[u].collectCalls[h];return m||(m=[]),m.push(a),void(this.events[u].collectCalls[h]=m)}this.events[u].commonEvents.push(a)}storeEnvironmentEvent(a){for(const s of Object.keys(this.events))this.events[s].commonEvents.push(a)}submitReport(a,s){const u=(function(m,p,N){const U=[];return m[p]&&(U.push(...m[p].commonEvents),N!==void 0&&U.push(...m[p].getCalls[N]||[])),U.sort(((G,T)=>G.time.getTime()-T.time.getTime())),U})(this.events,a,s),h=(function(m,p,N){var U,G,T,D,z,X,he,_e,Be;const Te=(function(Fe){const ke={};for(const Ce of Fe)Ce.type==="agentEvent"&&(ke[Ce.event.e]=Ce);return ke})(m);let xe="null";for(const[Fe,ke]of[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]])if(Te[Fe]){xe=ke;break}return{time:((U=m[m.length-1])===null||U===void 0?void 0:U.time)||new Date,pageUrl:location.href,pageStartTime:new Date(p),isInIframe:Yg(),agentVersion:(G=Te[0])===null||G===void 0?void 0:G.event.version,userAgent:navigator.userAgent,pageViewId:Of(),agentId:(T=Te[0])===null||T===void 0?void 0:T.event.agentId,getCallId:(D=Te[3])===null||D===void 0?void 0:D.event.getCallId,requestId:(X=(z=Te[4])===null||z===void 0?void 0:z.event.result.requestId)!==null&&X!==void 0?X:(_e=(he=Te[5])===null||he===void 0?void 0:he.event.error)===null||_e===void 0?void 0:_e.requestId,visitorId:(Be=Te[4])===null||Be===void 0?void 0:Be.event.result.visitorId,identificationState:xe,events:m,urlHashing:N}})(u,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(h)}catch(m){console.error(m)}}}function Un(o,a,...s){o&&s1((()=>{const u=a(...s);u!==void 0&&o(u)}))}function M7(){return{s:0,v:new URL("C:/").protocol}}function Cn(o){const a=u=>({s:0,v:u}),s=u=>{if(!(u instanceof qt))throw u;const{state:h}=u;if(typeof h!="number")throw new Error(`Unexpected non-numeric error state ${JSON.stringify(h)}. Error message: ${u.message}`);return{s:h,v:null}};return()=>{try{const u=o();return(function(h){return!!h&&typeof h.then=="function"})(u)?u.then(a,s):a(u)}catch(u){return s(u)}}}async function B7(){const o=function(u,h,m){return u(h,m)},a=function(u,h,m){return u(h,m)},s=function(u,h){return u(h)};return(function(u){return u in navigator})(s(Fn,10))?{s:0,v:await Promise.all(Ay.map((async u=>{try{const h=await o(Ae,o(Ae,navigator,2900309608),3516168465)(u);let m=0;return a(Ae,h,4146387716)&&(m+=1),a(Ae,h,1965183968)&&(m+=2),(function(p,N){return p(N,2920301991)})(Ae,h)&&(m+=4),m}catch(h){return(function(m){return m instanceof Error})(h)?o(Ae,h,3065852031):s(String,h)}})))}:{s:-1,v:null}}function hi(o){return h1(o,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}const wl="js-agent",k7={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warn",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warn",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Gn(o){const a=jr(o),s=Math.ceil(a.length/qa),u=[];for(let h=0;h<s;h++){const m=h*qa,p=a.slice(m,Math.min(m+qa,a.length));u.push(String.fromCharCode.apply(null,p))}return btoa(u.join(""))}function bs(o,a,...s){const u=document,h="visibilitychange",m=()=>u.hidden?N():p(),{start:p,stop:N}=(function(U,G,T,...D){let z,X=!1,he=U,_e=0;const Be=()=>{X||z||(_e=Date.now(),z=Tc((()=>{X=!0,T(...D)}),he))};return G&&Be(),{start:Be,stop:()=>{!X&&z&&(z(),z=void 0,he-=Date.now()-_e)}}})(a,!u.hidden,(()=>{u.removeEventListener(h,m),o(...s)}));return u.addEventListener(h,m),()=>{u.removeEventListener(h,m),N()}}function _l(){const o=function(u,h,m){return u(h,m)},a=function(u,h,m){return u(h,m)},s=function(u,h,m){return u(h,m)};return(function(u,h,m){return u(h,m)})(Dn,o(On,1e3,{s:-2,v:null}),(async()=>{const u=await(h=Km,h());var h;if((function(m){return m!==0})(o(Ae,u,453955339)))return u;try{const[m,p]=o(Ae,u,1801730948),[N,U,G]=await o(n9,m,p);return{s:0,v:{s:G,f:N,v:a(Ae,U,4112659446),a:s(Ae,U,1956208378)}}}catch(m){if((function(p){return p instanceof TypeError})(m)&&(function(p,N){return p(N)})(l7,s(Ae,m,3065852031)))return{s:-7,v:null};throw m}}))}const D7=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,U7=/@([^(^\s^}]+):(\d)+:(\d)+/i;async function P7({cache:o}){const a=function(m,p){return m(p)},s=function(m){return m()},u=function(m,p,N){return m(p,N)};if(!(function(m){return m()})(hl)||!s(Jf))return()=>({s:-1,v:null});if(s(ae))return()=>({s:-3,v:null});const h=a(sl,o);return u(Dn,u(On,250,{s:-2,v:null}),(async()=>{const m=await Promise.all(Cv.map((async N=>{const[U,G]=N;return[U,await a(G,h)]}))),p={};for(const[N,U]of m)p[N]=U;return{s:0,v:p}}))}function El(o,a={},s){const u=function(m,p){return m!==p};var h;return u(s,null)&&u(s,void 0)||(s=[(function(m){return m()})(Cf)]),(function(m){return m!==null})(h=a[o])&&(function(m){return m!==void 0})(h)?h:a[o]=(function(m){return m(navigator,3994889901)})(Ae)(o,s)}async function Rl({modules:o,components:a={},customComponent:s,apiKey:u,tls:h,tag:m,extendedResult:p,exposeComponents:N,linkedId:U,algorithm:G,imi:T,storageKey:D,products:z,urlHashing:X,ii:he,ab:_e,fast:Be,requestId:Te}){const xe={c:u,t:Wm(m),cbd:p?1:void 0,lid:U,a:G,m:T.m,l:T.l,ec:N?1:void 0,mo:o.map((Fe=>Fe.key)).filter((Fe=>!!Fe)),pr:z,s56:h,s67:s?{s:0,v:s}:{s:-1,v:null},sc:h7(),uh:fg(X),ii:he,gt:1,ab:_e,hu:Be?0:Te?1:void 0,ri:Te,...qv(a)};return await Promise.all(o.map((async({toRequest:Fe})=>{Fe&&Object.assign(xe,await Fe(D,X))}))),xe}function F7(){return(function({location:o,origin:a}){const s=o.origin,u=o.ancestorOrigins;let h=null;if(u){h=new Array(u.length);for(let m=0;m<u.length;++m)h[m]=u[m]}return{s:0,v:{w:a??null,l:s??null,a:h}}})(window)}function V7(o,a){const s=function(u,h){return u(h)};(function(u,h){u(h)})($r,o[(function(u){return u(5)})(Pn)]()[s(Pn,6)](s(Pn,7),a))}function G7(){return o=Dn,a=On(Ny,{s:-2,v:null}),o(a,Bv);var o,a}function bl(){return{s:0,v:eval.toString().length}}async function H7(o){const a=function(u,h){return u!==h};var s;return a(s=(function(u,h){return u(h,3414765911)})(Ae,o),null)&&a(s,void 0)?s:await(function(u,h){return u(h,3779360887)})(Ae,o)()}const $7=1e3;function Al(o,a){if(o.arr.length<a){const s=new Uint8Array(Math.max(2*o.arr.length,a));s.set(o.arr),o.arr=s}}function Mn(o){return Y1(Ir(o))}function Sl(o){var a,s;try{return(s=(a=localStorage==null?void 0:localStorage.getItem)===null||a===void 0?void 0:a.call(localStorage,o))!==null&&s!==void 0?s:void 0}catch{}}function Il(o){return"agentId"in o}function _c(o){return{s:0,v:o}}const Ol=[3,13],j7=[3,14],K7=3,Nl=9;function W7(o){return G1(o,Ym)}function z7(o,a){const s=function(G,T){return G<T},u=function(G,T,D,z){return G(T,D,z)},h=function(G,T){return G&T},m=function(G,T){return G+T};let p=0,N=0,U="";for(;s(p,o.length);)N=u(Bf,a[h(p,15)],a9,c9),U+=o.slice(p,m(p,N)),U+="/",p+=N;return U.slice(0,-1)}const Z7=1024;function Y7(){const o=Object.getOwnPropertyDescriptor(document,"createElement");return o?{s:0,v:!("writeable"in o)}:{s:-1,v:null}}async function X7(o,a){const s=function(G,T,D){return G(T,D)},u=function(G,T){return G!==T},h=function(G,T,D){return G(T,D)},m=s(I7,o,a),{s:p,v:N}=s(Mv,m,!0);if(u(p,0))return p;const U=h(Nv,N,a);try{const{s:G,v:T}=await h(Ae,U,142982734)();return u(G,0)?G:(await h(Ae,N,76151562)(T),0)}finally{(function(G,T){return G(T,107910612)})(Ae,U)()}}function q7(o){return(function(a,s){return a(s)})(Qg,(function(a,s){return a(s)})(dn,o[(function(a){return a(69)})(je)]()))}function J7(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}async function Q7(o,a){const s=function(p,N,U){return p(N,U)},u=function(p,N,U){return p(N,U)};let h;try{h=s(Ae,o,882066760)(a)}catch(p){if(!(function(N){return N instanceof Error})(p)||!u(Ae,new RegExp((function(N){return N(11)})(Qt),"i"),3632233996)(u(Ae,p,3065852031)))throw p;h=new Promise(((N,U)=>{s(Ae,o,882066760)(N,U,a)}))}const m=await h;return(function(p){return p===void 0})(m)?{s:-8,v:null}:{s:0,v:m}}function e9(o){if(!o||typeof o!="object")return!1;const a=o;return!(!ge()&&!k()||a.name!=="Error"&&a.name!=="TypeError"||a.message!=="Permission denied")||a.name==="SecurityError"}function Tl(o){return new Promise(((a,s)=>{o(a,s).then((()=>s(new Error("Action didn't call `resolve` or `reject`"))),s)}))}function t9(o,a){return Math.floor(As()*(a-o+1))+o}function xl(){const{connection:o,onLine:a}=navigator;return{online:a,downlink:o?.downlink,downlinkMax:o?.downlinkMax,effectiveType:o?.effectiveType,roundTrip:o?.rtt,saveData:o?.saveData,type:o?.type}}async function n9(o,a){const s=Array.from((function(m){return m===null})(o)||(function(m){return m===void 0})(o)?void 0:o[(function(m){return m(5)})(je)].values()),[u,h]=await Promise.all([(function(m,p,N,U){return m(p,N,U)})(s7,o,s,a),(function(m,p){return m(p)})(Zv,o)]);return[u,h,s]}function Ec(){return!document.hidden}var Wr=Jt([3237452699,2611787672,3045311674,2962332150,4003383289,4090353905,3805249708,3028587956,2899958253,2946027702,4002601983,4204452091,4039413417,3970602410,3953912762,2631244730,3973421252,2844251834,2861027766,2946406891,3050675130,3806041579,2961425392,4023946731,3800865722,4208313581,2776941242,3806041513,4208313085,2743259834,3806041513,4208314361,3012023994,3968505257,3045300922,2799294954,4001684968,2648037617],4);function As(){return crypto?(crypto.getRandomValues(ec),(1048576*ec[0]+(1048575&ec[1]))/4503599627370496):Math.random()}function Ll(){let o,a;const s=new Promise(((u,h)=>{o=u,a=h}));return s.resolve=o,s.reject=a,s}const r9=8,o9=22,i9=[202,206],s9=2;function pi(o,a,s){if(o.length!==a.length||o.length!==s.length)throw new Error("Invalid encryption configuration: all input arrays must have the same length.");const u=new Array(o.length).fill(void 0);return h=>{var m;if(u.every((p=>p===null)))return null;for(let p=0;p<o.length;p++)if(u[p]!==null&&(u[p]||(u[p]=bv(o[p],a[p],s[p])),u[p]!==null))return Kr((m=u[p])===null||m===void 0?void 0:m[h]);return null}}const a9=4,c9=7;function Rc(o){const a=function(z,X){return z(X)},s=function(z,X){return z(X)},u=function(z,X){return z(X)},h=function(z,X){return z(X)},m=function(z,X){return z===X};var p;const[N]=o.split("/").slice(-1),U=new window[a(Dt,1)],G=(function(z,X){return z(X,3626513111)})(Nr,new window[a(Dt,5)]("")[(function(z){return z(6)})(Dt)]("")),T=document[s(Dt,7)](G);T[a(Dt,8)]=u(Dt,3);const D=new window[(function(z){return z(9)})(Dt)]([],o,h(Dt,10));try{U[a(Dt,11)][(function(z){return z(12)})(Dt)](D)}catch(z){if((function(X){return X instanceof Error})(z)&&m(z.name,(function(X){return X(2)})(Dt))&&(function(X){return X!==-1})(m(p=z[u(Dt,13)],null)||(function(X){return X===void 0})(p)?void 0:p.indexOf(h(Dt,14))))return[N,-3,null];throw z}return T[u(Dt,15)]=U[(function(z){return z(15)})(Dt)],m(typeof T[(function(z){return z(16)})(Dt)],s(Dt,17))?[N,-4,null]:(function(z){return z===0})(T[(function(z){return z(16)})(Dt)].length)?[N,-2,null]:[N,0,T[h(Dt,16)][0]]}function Cl(o,a){return new Promise((s=>setTimeout(s,o,a)))}function Ml(o,a,s,u){switch(o.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return S1(a,s,!0,u);case"NotAvailableWithoutUA":return S1(a,s,void 0,u);default:return{error:Za(Fv(o),a,o),stop:o.code==="VisitorNotFound"}}}function u9(o,a,s,u){const h=u.bodyData;return h===void 0?X1(u):(function(m){return m instanceof Object&&m.v==="2"&&m.products instanceof Object})(h)?(function(m,p,N,U){var G;const{notifications:T,requestId:D,sealedResult:z,error:X,products:he}=m,_e=(function(Te){const xe=[];for(const Fe of Object.keys(Te)){const ke=Te[Fe];ke&&xe.push(ke)}return xe})(he);bc(T);for(const Te of _e)bc(Te.notifications);if(X)return Ml(X,D,z,N);for(const{error:Te}of _e)if(Te)return Ml(Te,D,z,N);(function(Te,xe,Fe){var ke;for(const Ce of xe)(ke=Ce.onGetResponse)===null||ke===void 0||ke.call(Ce,Te,Fe)})(m,p,U);const Be=(G=he.identification)===null||G===void 0?void 0:G.data;return{result:Be?{requestId:D,...z===void 0?{}:{sealedResult:z},...Be.result}:Bl(D,z,N)}})(h,o,a,s):X1(u)}function Bl(o,a,s){const u={requestId:o,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(a!==void 0&&(u.sealedResult=a),!s)return u;const h="n/a";return{...u,incognito:!1,browserName:h,browserVersion:h,device:h,ip:h,os:h,osVersion:h,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}}}const f9={noop:["a","b"]};function Ss(o){const a=v1(),s=new WeakSet,u=h=>{if(typeof h=="string"){const m=h.replace(yg,(p=>"\\"+(Uf[p]||"u"+p.charCodeAt(0).toString(16).padStart(4,"0"))));return tr(a,34),Rs(a,Ir(m)),void tr(a,34)}if(typeof h=="number"||h===!0||h===!1)return(Number.isNaN(h)||h===1/0||h===-1/0)&&(h=null),void Rs(a,Ir(String(h)));if(typeof h=="object"&&h){if(s.has(h))throw new TypeError("Recursive input");s.add(h);const{toJSON:m}=h;if(typeof m=="function")return void u(m.call(h));if(h instanceof Number||h instanceof String)return void u(h.valueOf());let p=!0;const N=()=>{p?p=!1:tr(a,44)};if(Array.isArray(h)){tr(a,91);for(const U of h)N(),u(U);tr(a,93)}else{tr(a,123);for(const[U,G]of Object.entries(h))Dy(G)||(N(),u(U),tr(a,58),u(G));tr(a,125)}s.delete(h)}else Rs(a,oc)};return u(o),Lf(a)}function l9(){const o=(function(s,u){return s(u,3966979758)})(Ae,new window[a=F1,a(0)](""));var a;return(function(s,u){return s!==u})(typeof o,(function(s){return s(1)})(F1))?{s:-1,v:null}:{s:0,v:{isTrusted:o}}}async function Is(o,a){if(k1(a))return o;const s=_s(o);return await Promise.all(pc.map((async u=>{const h=s[u];var m;a[u]&&h&&(s[u]=await(async function(p){var N;if(p==="")return"";const U=(N=window.crypto)===null||N===void 0?void 0:N.subtle;return U?.digest?Gn(await U.digest("SHA-256",Ir(p))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"):nl})(u==="query"?(m=h,m.split("&").sort().join("&")):h))}))),Es(s)}function bc(o){o?.forEach(xg)}function Ac(){return`js/${tc}`}const kl=async function(o){const a=(function(h){const m=h.filter((p=>!!p));return m.length?(...p)=>{for(const N of m)s1((()=>N(...p)))}:void 0})([zm()&&o7(),...(o?.modules||[]).map((h=>h.addEvent))]),s=a&&(function(h,m){return p=>{const N={...p,agentId:m};return h(N)}})(a,hi(8)),[u]=await Ao(s,(()=>({e:0,version:tc,options:o})),(([,h])=>({e:1,ab:h})),(h=>({e:2,error:h})),(()=>{var h;const{token:m,apiKey:p=m,region:N="us",tlsEndpoint:U=vs,disableTls:G,storageKey:T=nc,endpoint:D=gs,te:z=Mf,integrationInfo:X=[],algorithm:he,imi:_e={m:"s"},stripUrlParams:Be,urlHashing:Te=el(Be),modules:xe,abTests:Fe={},externalABSelections:ke={},optimizeRepeatedVisits:Ce=!1,aggressiveOptimization:Ye=!1,extendedSignalCollection:it=!0}=o;if(!p||typeof p!="string")throw new Error("API key required");const dt=(function(bt,Tt,At){const yt={...At},lt=Object.entries(bt);for(const[Gt,Ht]of lt){const mn=Tt[Gt];if(mn)try{yt[Gt]=dl(mn);continue}catch(nn){console.error(nn)}yt[Gt]=dl(Ht)}return yt})((function(bt){const Tt={...f9};for(const At of bt)Object.assign(Tt,At.ab);return Tt})(xe),Fe,ke),mt=(function(bt,Tt){const At=function(yt,lt){return yt(lt)};return(Array.isArray(bt)?bt:[bt]).map((yt=>(function(lt,Gt,Ht){return lt(Gt,Ht)})(yc,yt,gs)?At(S7,Tt):At(String,yt)))})(D,N),Bt=(h=(function(bt){for(const Tt of bt)if(Tt.tls)return Tt.tls})(xe))===null||h===void 0?void 0:h(U,mt,p,G,void 0,s);Un(s,(()=>({e:12})));const Ft=(function(bt,Tt){return(function(At,yt,lt){return At(yt,lt)})(yc,bt,Mf)?(function(At,yt){return At(yt)})(Iy,Tt):(function(At,yt){return At(yt)})(String,bt)})(z,N),Vt={aq:[],ipq:!1,si:null,siw:null,ip:null,dc:{adb:0,crs:0,asib:0}};(async function(bt,Tt=50){bt.ip=$r((async function(At,yt){var lt,Gt;const{dc:Ht}=At,mn=document;for(;!mn.body;)Ht.adb++,await Cl(yt);const nn=mn.createElement("iframe");for(await new Promise(((yn,$n)=>{let wn=!1;const rn=()=>{wn=!0,yn()};nn.onload=rn,nn.onerror=jn=>{wn=!0,$n(jn)};const{style:un}=nn;un.setProperty("display","block","important"),un.position="absolute",un.top="0",un.left="0",un.visibility="hidden",nn.src="about:blank",mn.body.appendChild(nn);const on=()=>{var jn,Xr;Ht.crs++,wn||(((Xr=(jn=nn.contentWindow)===null||jn===void 0?void 0:jn.document)===null||Xr===void 0?void 0:Xr.readyState)==="complete"?rn():setTimeout(on,10))};on()}));!(!((Gt=(lt=nn.contentWindow)===null||lt===void 0?void 0:lt.document)===null||Gt===void 0)&&Gt.body);)Ht.asib++,await Cl(yt);At.si=nn,At.siw=nn.contentWindow})(bt,Tt))})(Vt);const pn=(function(bt,Tt,At){const yt={...At,cache:{}},[lt,Gt]=(function(yn){const $n={},wn={},rn={};for(const{sources:on}of yn)on&&(Object.assign($n,on.stage1),Object.assign(wn,on.stage2),Object.assign(rn,on.stage3));const un=wn;return Object.assign(un,rn),[$n,un]})(bt),Ht=(function(yn){return yn?1e5:50})(Tt),mn=ie(lt,yt,[],Ht),nn=$r((function(yn=50){return(function($n,wn=1/0){const{requestIdleCallback:rn}=window;return rn?new Promise((un=>rn.call(window,(()=>un()),{timeout:wn}))):r(Math.min($n,wn))})(yn,2*yn)})(8).then((()=>ie(Gt,yt,[],Ht))));return async()=>{const[yn,$n]=await Promise.all([mn(),nn.then((rn=>rn()))]);(function(rn){const{si:un,aq:on}=rn;for(un&&un.parentNode&&un.parentNode.removeChild(un),rn.si=null,rn.siw=null,rn.ip=null;on.length>0;){const jn=on.shift();jn&&jn.reject(new Error("Iframe cleanup called"))}rn.ipq=!1})(yt.sis);const wn=$n;return Object.assign(wn,yn),wn}})(xe,Ye,{urlHashing:Te,ab:dt,te:Ft,sis:Vt,esc:it});return[T7(xe,pn,Bt,p,mt,Os(he),T,X,_e,Te,dt,Ce,s),dt]}));return u},Dl=function(o,a={}){const{storageKey:s=nc,do:u}=a;try{const h=(function(m){const p=vo(m);let N=p;try{N=g1(p,!1)}catch{}try{return vi(N)}catch{}return null})(o);h!==null?(h.visitorToken&&Z1(h.visitorToken,kc(s)),bc(h.notifications),Un(u,(()=>({e:25,result:{response:h}})))):Un(u,(()=>({e:25,result:{error:new Error("Failed to decode response")}})))}catch(h){throw Un(u,(()=>({e:25,result:{error:h instanceof Error?h:new Error(String(h))}}))),Za(lc,void 0,h)}},d9=["32926","32928"];function Ir(o){const a=new Uint8Array(o.length);for(let s=0;s<o.length;s++){const u=o.charCodeAt(s);if(u>127)return new TextEncoder().encode(o);a[s]=u}return a}function Ul(o){return de(o,(a=>typeof a=="number"?{s:a,v:null}:{s:0,v:a}))}const h9=hn(ee,-1),p9=de(g,(o=>o===-1||o===-2||o===-3?{s:o,v:null}:{s:0,v:o})),m9=de(ut,(o=>({s:0,v:o.map((a=>a===null?-1:a))}))),Pl=hn(we,-1),Fl=cn(Se),g9=hn(Ne,-1),Vl=hn(Pe,-1),Gl=de(Ke,(o=>({s:0,v:o.map((a=>a===null?-1:a))}))),Hl=hn(Ve,-1),v9=cn(ce),y9=cn(He),w9=cn(ze),_9=cn(qe),E9=hn(et,-1),$l=hn(ct,-1),R9=hn(ot,-1),b9=de((()=>ye()),(o=>{const{geometry:a,text:s}=o,u=a==="unsupported"?-1:a==="unstable"?-2:0;return{s:u,v:{...o,geometry:u===0?dn(a):"",text:u===0?dn(s):""}}})),jl=cn(rt),Kl=cn($t),A9=cn(ht),S9=cn(gt),I9=hn(tn,-1),O9=hn(It,-1),N9=hn(Nt,-1),T9=hn(lr,-1),x9=hn(kt,-1),L9=hn(Mt,-1),C9=hn(Hr,-1),M9=hn(zt,-1),B9=de(Zt,(o=>({s:0,v:dn(Object.keys(o).map((a=>`${a}=${o[a]}`)).join(","))}))),k9=hn(fs,-1),D9=cn(Yt),U9=hn(Xt,-1),P9=de(zo,(o=>o===-1||o===-2||o===-3?{s:o,v:null}:{s:0,v:o})),Wl=Ul(Yo),zl=de((Zl=Xo,o=>{const a=o.cache;if(a.webGlRawValues)return Kr(a.webGlRawValues);const s=Zl(o);return typeof s=="number"?s:(function(u,h){const m=h;if(m.webGlRawValues)return Kr(m.webGlRawValues);const p=u.parameters.map((U=>{const[G,T,D]=U.split("=",3);return D!==void 0||d9.includes(T)?`${G}(${T})=null`:`${G}=${T}`})),N=u.extensionParameters.map((U=>{const[G,T,D]=U.split("=",3);return D!==void 0&&T!=="34047"?`${G}(${T})=${D}`:`${G}=${T}`}));return m.webGlRawValues={contextAttributes:u.contextAttributes,parameters:p,parameters2:u.parameters,shaderPrecisions:u.shaderPrecisions,extensions:u.extensions||[],extensionParameters:N,extensionParameters2:u.extensionParameters,unsupportedExtensions:u.unsupportedExtensions},Kr(m.webGlRawValues)})(s,o.cache)}),(o=>typeof o=="number"?{s:o,v:null}:{s:0,v:{contextAttributes:dn(o.contextAttributes.join("&")),parameters:dn(o.parameters.join("&")),parameters2:dn(o.parameters2.join("&")),shaderPrecisions:dn(o.shaderPrecisions.join("&")),extensions:dn(o.extensions.join(",")),extensionParameters:dn(o.extensionParameters.join(",")),extensionParameters2:dn(o.extensionParameters2.join("&")),unsupportedExtensions:o.unsupportedExtensions}}));var Zl;const F9=Ul(Zo),V9=Cn(Tm),G9=Cn(xm),H9=Cn(Lm),$9=Cn(Pm),j9=Cn(Mm),K9=Cn(Bm),W9=Cn(km),z9=Cn(Fm),Z9=Cn(Dm),Y9=Cn(Um),X9=Cn(Vm),q9=Cn(Gm),J9=Cn(Cm),Q9=Cn(Hm),Yl=cn(ge),Xl=cn(k),ql=cn(f),Jl=cn(R),Ql=cn(M),e1=cn($),t1=cn(ae),n1=cn(f1),ev=cn(K);var yo=Jt([2835032359,1872962713,180684482,500584696,63730940,1306150896,499189429,1304843e3,499189429,1019630328,29509878,1301219064,432166651,131555836,449206012,881788660,499271611,13452797,478218427,29509878,1301219064,181096700,47596011,1301248443,30231546,114771964,847334134],4);function tv(o){return nr(((a,s)=>{const u=s.screen,h=m=>{const p=parseInt(m);return typeof p=="number"&&isNaN(p)?-1:p};return{s:0,v:{w:h(u.width),h:h(u.height)}}}),o.sis)}function nv(){if(typeof window.matchMedia!="function")return{s:-2,v:null};const o=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return o.matches===void 0?{s:-1,v:null}:{s:0,v:o.matches}}function rv(){if(navigator.plugins===void 0)return{s:-1,v:null};const{plugins:o}=navigator;let a=Object.getPrototypeOf(o)===PluginArray.prototype;for(let s=0;s<o.length;s++)a&&(a=Object.getPrototypeOf(o[s])===Plugin.prototype);return{s:0,v:a}}function ov(){const o=function(s,u){return s(u)},a=window[o(Mc,1)](document[o(Mc,2)]);return{s:0,v:(function(s){return s>=4})(o(Sr,Sy.map((s=>Ae(a,2297974007)(s)!==""))))}}const wo=["monospace","sans-serif","serif"],r1=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Sc(o){switch(o){case 0:return"load() start";case 1:return"load() success";case 2:return"load() fail";case 3:return"get() start";case 4:return"get() success";case 5:return"get() fail";case 21:return"collect() start";case 22:return"collect() success";case 23:return"collect() fail";case 25:return"handleOnDemandResponse() completed";case 6:return"TLS start";case 7:return"TLS success";case 8:return"TLS fail";case 9:return"TLS attempt start";case 10:return"TLS attempt success";case 11:return"TLS attempt fail";case 12:return"Signals start";case 13:return"Signals success";case 14:return"Signals fail";case 15:return"Ingress start";case 16:return"Ingress success";case 17:return"Ingress fail";case 18:return"Ingress attempt start";case 19:return"Ingress attempt success";case 20:return"Ingress attempt fail";case 24:return"collect() result ready"}}function iv(){const o=function(u,h){return u|h},a=new Uint32Array(4);return(function(u,h){return u(h,2617745417)})(Ae,window[s=hr,s(8)])(a),[o(a[0],0),o(a[1],0),(function(u){return 0|u})(a[2]),o(a[3],0)];var s}const sv="mmMwWLliI0fiflO&1",Ic={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function av(o){const a=u=>u.replace(/([,\\])/g,"\\$1"),s=o.map((u=>[a(u.voiceURI),a(u.name),a(u.lang),u.localService?"1":"0",u.default?"1":"0"].join(","))).sort();return{s:o.length?0:1,v:dn(JSON.stringify(s))}}var cv=Jt([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);async function uv(){const o=function(T,D,z){return T(D,z)},a=function(T,D){return T(D)},s=function(T,D){return T(D)},u=function(T,D){return T instanceof D},h=function(T,D){return T(D)},m=function(T,D,z){return T(D,z)},p=function(T,D){return T(D)},N=window[p(zr,0)];if(!N)return{s:-2,v:null};const U=(function(T){return T+""})((G=(function(T){return T(16)})(hi),""+G));var G;return new Promise(((T,D)=>{try{const z=(function(X,he){return X(he,2758837156)})(Ae,N)(U,1);z[p(zr,1)]=()=>{(function(X,he){(function(_e,Be){_e(Be)})(X,he)})(T,{s:-5,v:null})},z[a(zr,2)]=X=>{const he=o(Ae,o(Ae,X,1181691900),325763347);try{return o(Ae,(function(_e,Be){return _e(Be,138212912)})(Ae,he)("-",a(zr,3)),2928708052)(new window[s(zr,4)]),void s(T,{s:0,v:""})}catch(_e){if(u(_e,Error))return void h(T,{s:0,v:m(Ae,_e,3065852031)});s(D,_e)}finally{o(Ae,he,318865860)(),m(Ae,N,3885781331)(U)}}}catch(z){if(!(function(X){return X()})(R))return void h(T,{s:-5,v:null});if(u(z,Error)&&(function(X,he){return X===he})(z.name,(function(X){return X(5)})(zr)))return void(function(X){X({s:-4,v:null})})(T);(function(X,he){X(he)})(D,z)}}))}function fv(){const o=window,a=navigator;return Sr(["maxTouchPoints"in a,"mediaCapabilities"in a,"PointerEvent"in o,"visualViewport"in o,"onafterprint"in o])>=4}async function lv(o){return nr(((a,s)=>{const u=s.document.createElement("div");u.style.width="100px",u.style.height="100px",u.style.overflow="scroll",u.style.visibility="hidden",s.document.body.appendChild(u);const h=u.offsetWidth===u.clientWidth;return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function o1(){return typeof CompressionStream<"u"}async function dv(o){return await(function(a){return nr(((s,{document:u})=>{const h=u.body;h.style.fontSize="48px";const m=u.createElement("div");m.style.setProperty("visibility","hidden","important");const p={},N={},U=X=>{const he=u.createElement("span"),{style:_e}=he;return _e.position="absolute",_e.top="0",_e.left="0",_e.fontFamily=X,he.textContent="mmMwWLliI0O&1",m.appendChild(he),he},G=(X,he)=>U(`'${X}',${he}`),T=wo.map(U),D=(()=>{const X={};for(const he of r1)X[he]=wo.map((_e=>G(he,_e)));return X})();h.appendChild(m);for(let X=0;X<wo.length;X++)p[wo[X]]=T[X].offsetWidth,N[wo[X]]=T[X].offsetHeight;const z=r1.filter((X=>(he=>wo.some(((_e,Be)=>he[Be].offsetWidth!==p[_e]||he[Be].offsetHeight!==N[_e])))(D[X])));return h.removeChild(m),h.style.fontSize="",{s:0,v:z}}),a.sis)})(o)}function hv(o,a){if(o!==void 0){if(!Array.isArray(o))throw new TypeError(`Expected ${a} to be an array, a ${(function(s){return typeof s=="object"?s?Object.prototype.toString.call(s):"null":typeof s})(o)} is given`);return o.map(String)}}const pv=1655763047,i1=6;async function s1(o,a){try{return await o()}catch(s){return console.error(s),a}}const mv=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function a1(){return li("CSPError","The request is blocked by the CSP")}function gv(){const o=function(s,u){return s===u},a=(function(s){return s(navigator,3087401394)})(Ae);return o(a,void 0)||o(a,null)?{s:-1,v:null}:{s:0,v:a}}async function vv(){var o;const{userAgentData:a}=navigator;if(!a||typeof a!="object")return{s:-1,v:null};const s={},u=[];return typeof a.getHighEntropyValues=="function"&&await Promise.all(mv.map((async h=>{try{const m=(await a.getHighEntropyValues([h]))[h];m!==void 0&&(s[h]=typeof m=="string"?m:JSON.stringify(m))}catch(m){if(!(m instanceof Error&&m.name==="NotAllowedError"))throw m;u.push(h)}}))),{s:0,v:{b:a.brands.map((h=>({b:h.brand,v:h.version}))),m:a.mobile,p:(o=a.platform)!==null&&o!==void 0?o:null,h:s,nah:u}}}function yv({status:o,body:a}){return o===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(a)?{result:{s:0,v:a}}:{error:{s:-5,v:_o(`${o}: ${a}`,255)}}}async function c1(){const o=function(h,m,p){return h(m,p)},a=function(h,m,p){return h(m,p)},s=o(Ae,navigator,3179935986);if(!s)return{s:-3,v:null};let u=null;try{u=await o(Ae,s,1678473624)()}catch(h){if(h instanceof Error&&$())return{s:-3,v:a(Ae,h,3065852031)};throw h}return u?{s:0,v:u}:{s:-4,v:null}}function u1(o,a,s,u,h=gy){const m=h()%(s+1),p=jr(o),N=1+a.length+1+m+u+p.length,U=new ArrayBuffer(N),G=new Uint8Array(U);let T=0;const D=h();G[T++]=D;for(const X of a)G[T++]=D+X;G[T++]=D+m;for(let X=0;X<m;++X)G[T++]=h();const z=new Uint8Array(u);for(let X=0;X<u;++X)z[X]=h(),G[T++]=z[X];for(let X=0;X<p.length;++X)G[T++]=p[X]^z[X%u];return U}function f1(){const o=window;return Sr([!("PushManager"in o),!("AudioBuffer"in o),!("RTCPeerConnection"in o),!("geolocation"in navigator),!("ServiceWorker"in o)])>=3}function wv(o=!1){const a=function(h,m,p){return h(m,p)},s=function(h,m){return h(m)},u=(function(h){return h()})(Cf);return a(Ae,u,621177879)&&(a(Ae,u,621177879)[0][s(St,26)]=s(St,27)),o&&(u[s(St,28)]=(function(h){return h(29)})(St)),u}function Ae(o,a){const s=o[Nr(o,a)];return typeof s=="function"?s.bind(o):s}async function _v(o){return nr(((a,s)=>{if(!$())return{s:-1,v:null};const u=s.document.createElement("input");u.type="radio",s.document.body.appendChild(u);const h=s.getComputedStyle(u).getPropertyValue("font-family");return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function l1(o,a){if(a==="")return[o,[]];const s=o.split(a);return[s[0],s.length>1?s.slice(1):[]]}function Ev(){var o,a;const s=Pv(0),u={};for(const[h,m]of s)for(const p of m){const N=(a=(o=Object.getOwnPropertyDescriptor(window[h],p))===null||o===void 0?void 0:o.get)===null||a===void 0?void 0:a.toString();N!==void 0&&(u[`${h}.${p}`]=N)}return{s:0,v:u}}var Dt=pi([[290799128,256122120,104421910,67116302,755371265,505093152,152897830,504707661,470222364,504898635,1531393810,35461445,285283613,151395398,386279171,454440300,1259148302,67715140,117915663,1445400833,70599515,280581,270008841,369435995,272236574,119803980,704973062,135268614,184563807,1026755337,824180753,521019142,404440330,1310525212,689393240,992889883,118162967,75079,371069214,14400,67440946,336725549,100928582,419697754,37884160,822483751,151655985,440867606,34934535,1544297499,69023765,1530421525,521022789,352788490,152182535,1095068179,168111383,102371362,1379942426,218301962,410405200,674697750,150995736,1460669954,289295192,422585355,276197185,1241580055,503401029,169544981,956309037,1628772625,269702473,1481182751,12887,860704273,607786827,1079856400,370150428,234881091,407897606,354309752,1157892134,252333381,1264080656,304025857,1627786793,302143352,172563473,34688007,17172047,337261841,285893380,117845831,1448695310,152569103,1095068178,68628788,120395278,352653340,1245924639,288361223,2951185,3425555]],[hs],[1]);function Or(o,a=Cc,s=null,u=by){const h={type:(m=Fn,m(1)),video:{contentType:o,...a}};var m;return s?{...h,audio:{contentType:s,...u}}:h}function Oc(o){const a=Sl(o);if(!a)return[];try{const s=a?JSON.parse(a):[];return Array.isArray(s)?s:[]}catch{return[]}}function Nc(o,a,s){const u=()=>{throw new Error("Invalid data")},h=jr(o);h.length<a.length+2&&u();for(let D=0;D<a.length;++D)m1(h[1+D],h[0])!==a[D]&&u();const m=1+a.length,p=m1(h[m],h[0]);h.length<m+1+p+s&&u();const N=m+1+p,U=N+s,G=new ArrayBuffer(h.length-U),T=new Uint8Array(G);for(let D=0;D<T.length;++D)T[D]=h[U+D]^h[N+D%s];return G}var mi=Jt([752472786,243421427,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function d1(o){return o>=48&&o<58||o===45}function Rv(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function bv(o,a,s){const u=Ir(a());try{return vi((function(h,m,p){const N=jr(h),U=new ArrayBuffer(N.length-p),G=new Uint8Array(U);for(let T=0;T<N.length;++T)G[T]=N[T]^m[T%m.length];return U})(new Uint32Array(o),u,s))}catch(h){if(ys(h)&&h.name==="SyntaxError")return null;throw h}}function h1(o,a,s=As){let u="";for(let h=0;h<o;h++)u+=a.charAt(s()*a.length);return u}function p1(o){return o&&o.length<=1e3?o:void 0}function On(o,a){return new Promise((s=>bs(s,o,a)))}function tr(o,a){Al(o,o.len+1),o.arr[o.len++]=a}function Av(o){const a=function(z,X){return z*X},s=function(z,X){return z>=X},u=function(z,X){return z(X)},h=function(z,X){return z+X},m=function(z,X){return z<<X},p=function(z,X){return z%X},N=function(z,X){return z%X},U=function(z,X){return z+X},G=new Uint8Array([Date.now()%1024,a(Math.random(),65536)]),T=G.length;let D=jv;for(let z=(function(X){return X-1})(o.length);s(z,0);z--){const X=o[u(xt,2)](h(m(z,8),D));G[p(z,T)]^=h(X,a(G[N(U(z,1),T)],17)),D=X}return u(Ir,(function(z,X){return z(X)})(Gn,G).slice(0,3))}function m1(o,a){return(o-a+256)%256}function Sv(){return o=Dn,a=On(450,{s:-2,v:null}),o(a,_g);var o,a}function Iv(){const o=Ae(navigator,2698072953);return o?{s:0,v:(function(a,s){return a(s)})($g,o)}:{s:-1,v:null}}async function Ov(){const o=function(T,D){return T(D)},a=function(T,D){return T<D},s=function(T,D,z){return T(D,z)},u=function(T,D){return T-D};if(Hy())return[-1,NaN];const h=new Uint8Array([0]),m=(function(T){return T(0)})(Pn),p=await navigator[o(Pn,1)](o(Pn,2),m),N=await p[o(Pn,3)]();let U=await(function(T,D,z){return T(D,z)})(R1,N,h);const G=a(U,M1);if(G){const T=u(u(s(t9,M1,Qv),U),1);for(let D=0;a(D,T);D++)s(V7,N,h);U=await s(R1,N,h)}return[G?1:0,U]}function Nv(o,a){const s=function(xe,Fe){return xe(Fe)},u=function(xe,Fe){return xe===Fe},h=function(xe,Fe){return xe(Fe)},m=function(xe,Fe){return xe!==Fe},p=function(xe,Fe){return xe in Fe},N=function(xe,Fe){return xe(Fe)},U=function(xe,Fe){return xe in Fe},G=function(xe){return xe()},T=function(xe,Fe){return xe(Fe)},D=function(xe,Fe){return xe!==Fe};function z(xe,Fe){return s(X,xe)&&(function(ke,Ce){return ke===Ce})((function(ke,Ce){return ke(Ce,3920415024)})(Ae,xe),Yv)&&(function(ke,Ce){return ke(Ce,4101391790)})(Ae,xe).includes(Fe)}function X(xe){return u(typeof xe,h(Qt,12))&&m(xe,null)&&p(N(Qt,13),xe)&&U(h(Qt,14),xe)}let he=null,_e=!1;async function Be(){const xe=s(mg,o);if(D(xe,0))return{s:xe,v:null};const{s:Fe,v:ke}=await s(Q7,o);return(function(Ce){return Ce!==0})(Fe)?{s:Fe,v:null}:{s:0,v:ke}}a&&(function(xe,Fe){return xe(Fe,123626528)})(Ae,o)((function(xe){return xe(15)})(Qt),(xe=>{(function(Fe,ke,Ce){return Fe(ke,Ce)})(z,xe,a)&&(he?(G(he),he=null,s(di,o)):_e=!0)}));const Te={[T(Qt,17)]:()=>di(o),[s(Qt,18)]:async()=>{const xe=await G(Be);return D((function(Fe,ke){return Fe(ke,453955339)})(Ae,xe),0)&&s(di,o),xe}};return a?(function(xe){return xe(Object,1914874273)})(Ae)(Te,{[N(Qt,19)]:function(){(function(xe,Fe){return xe===Fe})((function(xe,Fe){return xe(Fe,4184312542)})(Ae,o),(function(xe){return xe(16)})(Qt))||(_e?T(di,o):he=(function(xe,Fe,ke,Ce){return xe(Fe,5e3,Ce)})(bs,di,0,o))}}):Te}function Tv(o){const a={type:"manual",level:"debug",source:"client",timestamp_ms:o.time.getTime()};switch(o.type){case"documentReadyState":return{...a,body:{message:`Document ready state becomes "${o.state}"`}};case"pageVisibilityToggle":return{...a,body:{message:"Page becomes "+(o.isVisible?"visible (in foreground)":"invisible (in background)")}};case"pageTransition":return{...a,body:{message:o.isShown?"Page is restored from browser history":"Page is about to go to browser history"}};case"fullscreenToggle":return{...a,body:{message:"Programmatic fullscreen "+(o.isFullscreen?"on":"off")}};case"networkChange":return{...a,body:{...o.network,message:"Network connection changes"}};case"pageUnload":return{...a,body:{message:"Page is about to unload (terminate)"}}}const s=o.event,u=(h,m="info")=>{const{rest:p}=ws(h,["e","agentId","getCallId"]),N={...a,level:m,body:{message:Sc(s.e),...p}};for(const U of["documentReadyState","isPageVisible","isFullscreen","network"])o[U]!==void 0&&(N.body[U]=o[U]);return N};switch(s.e){case 0:{const{picked:h,rest:m}=ws(s,["version","options"]);return u({...m,options:Qm(h.options)})}case 1:case 3:case 4:case 21:case 22:case 6:case 9:case 12:case 16:case 18:return u(s);case 2:case 5:case 23:case 8:case 11:case 14:case 17:case 20:return u(s,"error");case 7:{const h=s.result;return u({...s,result:{...h,v:"v"in h?h.v&&_o(h.v,1e3):void 0}})}case 10:return u({...s,body:_o(s.body,1e3)});case 13:{const h=u({...s,result:Ag(s.result)});return h.body.message+=" (the values are omitted)",h}case 19:{let h=s.body;return h instanceof ArrayBuffer&&(h=`(base64) ${h.byteLength>1800?`${Gn(new Uint8Array(h,0,1800))}...`:Gn(h)}`),u({...s,body:h})}case 15:return(h=>{const{rest:m}=ws(h,["e","agentId","getCallId"]),p=m.body,N=Object.values(p).some((U=>U&&typeof U=="object"&&"e"in U&&!("s"in U&&"v"in U)));return{...a,level:N?"warn":"info",body:{message:Sc(s.e),stage:m.stage,isCompressed:m.isCompressed,signals:{...p}}}})({...s})}}function Tc(o,a,...s){const u=Date.now()+a;let h=0;const m=()=>{h=setTimeout((()=>{Date.now()<u?m():o(...s)}),u-Date.now())};return m(),()=>clearTimeout(h)}function xc(o){return(o instanceof DOMException||o instanceof TypeError)&&(Dg.test(o.message)||(function(a){const s=a.match(Ug);return!!s&&Mn(s[1])===Gg&&Mn(s[2])===Hg})(o.message)||Pg.test(o.message)||Fg.test(o.message)||Vg.test(o.message))}function Os(o){return o===void 0?void 0:`${o}`}var zr=Jt([3924185679,3632893699,2980828376,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function Hn(o){let a="";for(let s=0;s<o.length;++s)if(s>0){const u=o[s].toLowerCase();u!==o[s]?a+=` ${u}`:a+=o[s]}else a+=o[s].toUpperCase();return a}function g1(o,a){return Nc(o,Ol,Nl)}function v1(){return{len:0,arr:new Uint8Array(128)}}function xv(){return{s:0,v:Cy(Navigator.prototype,my)}}function y1(o){const a=o;return!!a.collectCallId&&typeof a.collectCallId=="string"}var St=Jt([2051009255,196400063,2525527446,4044416111,199305624,3777599729,664183563,2527137204,2959068455,280520411,4185511866,2144517134,3586067896,2987975794,1370780368,4217690097,2128325203,3518040290,2987517477,485718477,3408514487,1624764753,2525516212,3089101692,314277853,3777352609,1742208334,3751877875,4284477294,451175574,3090727933,1792130846,3451262692,4048669481,1370783684,4184381064,1876294928,2595627001,3189040251,285179857,3022493366,635026462,3602651639,2954672238,249917143,3022514673,664183579,3685769165,2736568422,1408460740,3831682485,1926610701,2533302452,3122262854,83050709,3022493344,1087813162,3516795391,2552037231,1608872657,3309737727,1657845296,3451270903,4048663672,149384902,3682584502,1792915224,3886684381,3054101874,519391961,3027814326,1859318097,3332770295,3205678702,1609525469,4167997183,2077073694,2578913506,3122262886,1606035925,4285518270,2077593628,3636076535,3054821986,1606035911,4184396215,1826273817,3686077407,2959063593,179857115,3765358778,634502420,3701674487,4048663658,351432409,4185430450,1859625224,2527613364,2803104104,702703057,3027158186,2127950151,2612794610,3897157222,435775636,2876823478,2077880609,2164071586,2404366395,1374366102,4184381096,1708238611,3299486178,4048008302,418538178,3865484220,1754589257,3619035641,4045515640,1291156949,3543761149,1475469901,2533318580,2701786985,1609793493,2788918761,697885517,3652325360,2803688558,1319905745,4264138979,1674820120,2162778082,4048660019,166879939,2687604411,667542345,3684786157,2802770793,249917146,3307835121,1323797546,4051773653,2318390612,1608081380,4247361710,1927784984,3652585957,3055482186,1370781895,4151957233,664188427,3602649012,3171542398,1608874193,3243808511,1223786530,3952488387,2200224840,1370768608,3849242609,1708898830,3517121730,2287055992,267615126,3799571872,650165528,3517977850,4044940645,1609377769,3798129338,1791013433,3517121730,2286400632,334719126,3126236848,1874965087,3582989055,3122657147,350380760,2888419254,1754703910,3517387769,2854871653,1203007172,4068398577,1721482260,3622324710,2954424932,1607087815,4148151486,629466963,2532385188,2382416758],5);function Lv(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};const o=new window.SharedArrayBuffer(1);return o.byteLength===void 0?{s:-1,v:null}:{s:0,v:o.byteLength}}const Cv=[[St(1),o=>B1(!1,o)],[St(2),()=>B1(!0)],[St(3),()=>ms(St(4))],[St(5),()=>ms(St(6))],[St(7),()=>ms(St(8))],[St(9),()=>ms(St(10))]];function Mv(o,a){const s=function(m,p){return m(p)},u=a?window[(function(m){return m(7)})(Qt)]||window[s(Qt,8)]:window[(function(m){return m(7)})(Qt)];if(!u)return{s:-3,v:null};let h;try{h=new u(o)}catch(m){if((function(p){return p instanceof Error})(m)){if((function(p,N){return p===N})(m.name,x1))return{s:-6,v:null};if(s(O7,m))return{s:-9,v:null}}throw m}return{s:0,v:h}}async function Bv(){const o=function(p,N){return p(N)},a=function(p,N,U){return p(N,U)},s=function(p,N){return p!==N},u=window[o(Bc,1)];if(!u||(function(p,N){return p!==N})(typeof a(Ae,u,3192107409),o(Bc,2)))return{s:-1,v:null};const h=await a(Ae,u,3192107409)(),m={};for(const[p,N]of Object.entries(h)){const U=Ty[p];s(U,void 0)&&(m[U]=N)}return{s:0,v:m}}async function kv(){return gg()?(function(o,a){return o(a,(async()=>{const s=await(function(u){return u()})(Ov);return(function(u){return u===-1})(s[0])?{s:-3,v:null}:{s:0,v:s}}))})(Dn,(function(o,a){return o(a,{s:-2,v:null})})(On,ey)):()=>({s:-1,v:null})}const w1=St(19);function Dv(o,a,s,u){return function(){const h=a<<9;let m=5*o;return m=9*(m<<7|m>>>25),u^=a,a^=s^=o,o^=u,s^=h,u=u<<11|u>>>21,(m>>>0)/4294967296}}function Uv(){var o,a,s=function(p,N){return p===N},u=function(p,N){return p===N},h=function(p,N,U){return p(N,U)};const m=s(a=(function(p){return p===null})(o=window[(function(p){return p(0)})(cv)])||u(o,void 0)?void 0:h(Ae,o,3933025333),null)||u(a,void 0)?void 0:h(Ae,a,3098533860);return s(m,null)||s(m,void 0)?{s:-1,v:null}:{s:0,v:m}}function _1(){return{s:0,v:!!window.isSecureContext}}var Pv=Jt([1348463336,3803023018,4141740428,4039893696,3740108228,2696994793,2396890353,3287272953,2760289937,3639185880,3800550087,3229721822,3655845628,3956859780,3417230991,3987529206,3465536455,3286746798,3788241285,4155412936,2931392987,2279597529,2175059177,4024282809,2296682185,4202925994,3049385931,3321024229,4001931456,3270216648,2932772850,2345464011,3303269088,2766070917,4157718512],5);function Fv({code:o,message:a}){var s;return o===void 0?a:(s=(function(u){switch(u){case"TokenRequired":return"API key required";case"TokenNotFound":return"API key not found";case"TokenExpired":return"API key expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableForAIBots":return"Not available for AI bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}})(o))!==null&&s!==void 0?s:Hn(o)}function Vv(){const o=function(s,u){return s in u},a=function(s,u){return s(u)};return o(a(St,17),navigator)&&o(a(St,18),(function(s){return s(navigator,2900309608)})(Ae))}const E1=4191585516,Gv=new Set([4106781067,3209949814,2612078219,2382064880,3225112721,1018714844,2899793226,2094258580,3169460974,3079760821,392195965,3461410589,3582327722,1731918890,1767246934,3419607467,1110225616,1455947556,450291099,176445009,1998723369,2961538051,3413933903,2299562828,3945560591,485550147,3336694844,3737152292,2669437517,3860417393,E1]);function _o(o,a,s="..."){return o.length<=a?o:`${o.slice(0,Math.max(0,a-s.length))}${s}`}async function R1(o,a){const s=function(m,p){return m(p)},u=function(m,p){return m(p)},h=o[s(Pn,5)]();return await h[u(Pn,6)](s(Pn,7),a),u(Number,h[u(Pn,8)])}async function b1(o,a,s,u,h){if(o.length===0)throw new TypeError("The list of endpoints is empty");const m=o.map((G=>(function(T,{apiKey:D}){return hc(T,{ci:Ac(),q:D})})(G,a))),p=await Rl(a),N=Ss(p),U=a.fast?0:1;return await Ao(h,(()=>({e:15,stage:U,body:p,isCompressed:dc(N)})),(G=>({e:16,stage:U,result:G})),(G=>({e:17,stage:U,error:G})),(async()=>(function({result:G,failedAttempts:T,aborted:D}){if(G)return G;const z=T[0];if(!z)throw D&&!D.resolve?D.error:new Error("aborted");const{level:X,error:he}=z;if(X===0&&he instanceof Error){switch(he.name){case"CSPError":throw new Error(uc);case"InvalidURLError":throw new Error(fc);case"AbortError":throw new Error(ac)}throw new Error(sc)}throw he})(await q1(m,hy.bind(null,N,h,U,s),u9.bind(null,a.modules,!!a.extendedResult,a.storageKey),1/0,u))))}function Hv(){var o;return{s:0,v:(o=performance.timeOrigin)!==null&&o!==void 0?o:Date.now()-performance.now()}}function A1(o){const a=Math.random();return(function(s,u,h){const[m]=s;m.push([u,h])})(o.container,a,o),(function(s,u,h){let m;function p(){window.clearInterval(m)}const[,N,U]=s,G=new Promise(((T,D)=>{m=window.setInterval((function(){const z=N.get(u);if(z)return N.delete(u),z.then(T,D)}),1)}));return G.then(p,p),h?.then(p,p),U.then(p,p),G})(o.container,a,o.abort)}var $v=Jt([1024705730,641842159,2578743392,3876471597,2070139803],6);function gi(o,a){return new Promise((s=>Tc(s,o,a)))}var xt=pi([[855787288,642990106,254096950,926556982,87375404,1278677006,408486424,1479671850,1785924,253259062,240523559,673514752,658445118,1391164,607131925,722936367,271014668,151655183,36375323,656347974,1445350919,353197617,423242801,1160005147,1512002869,420283957,536958245,86705444,656408603,100677635,20185122,556090667,202191150,724518191,792405557,102894606,623247373,587992400,658457902,186065947,138173228,910037367,2368541,1529157659,892869409,976305177,203760670,1010441050,942083341,505880599,858547496,472786520,104733226,488840738,977151779,154821378,1044189198,942025224,606622265,960446235,537939522,1427451664,1594829109,757486355,521087014,119085350,638781191,792409347,3607069,137245730,740307761,975647282,992231996,556677182,121255207,522468654,103100716,805591826,205345105,352982566,809188375,538263045,590744875,204342828,87438137,657730594,355141642,1430208096,990394680,70993686,825163804,1060643342,419658253,86454317,808395603,960181563,1394880291,723543328,1059455265,422468123,1512636726,523643153,874654019,741018648,472326400,438382882,19791956,101085447,788741643,117637695,134556468,576544002,1817775652,828261639,390094395,253639961,1880502074,370026788,807930146,3016495,1527136534,71514660,945292548,304222e3,1580941075,2110514,203960841,321666847,858338073,408755024,134358831,521999910,104796679,1141842004,1376664580,355614474,1581667629,1510485767,671100941,1062295126,370957148,254414105,1535071780,561394448,1494427185,539892273,120535346,203499292,522594859,471863338,775098909,1597979140,907887673,758332434,655825187,758207319,419572773,2133349379,909508638,122886204,123473464,1463621412,641018151,1376126269,1462121850,472787007,725356864,341384543,206715932,20988416,404560468,236535349,136583426,654445841,943666452,840316960,1027350080,674639121,153557559,1510280726,961623300,1008474660,973157633,443359752,656934418,1461592383,472779801,238290498,1058027540,644034587,68093212,1597246981,1544182280,469976413,238374721,1174618196,1194143029,336400700,2066110510,34473564,1344553036,873275941,372524551,591344222,623860493,641412978,288168465,742072848,958995498,604449289,221971308,1495672659,723588667,355544366,808599331,459040,943462687,908866865,942887995,908264973,36774146,503972959,657396518,255140875,922816319,1426597669,724636239,873869836,422207e3,738338618,403715596,687875167,874774529,1040791559,120850268,604126999,775167011,470361864,992484109,419635991,743185,154018116,641337180,755635292,254040613,222176514,857754138,2505515,707068717,101333848,757538096,621551931,37443895,1547319336,456857894,3999031,908491345,775432019,439162173,706096427,358119961,1058025846,437977936,102439689,574895878,356259076,372648449,1142819334,742401113,1058341645,1362637919,70005800,202582592,1192122395,236594727,839523131,1750337312,207570485,590873144,123355928,22029379,67645968,269812016,638015583,757087233,657734424,1345271600,740439809,1561926978,1560608781,285688601,387387163,910180890,959256594,456272657,573188414,943880979,1029446156,1073890833,1029574938,1007884807,693115144,222574848,436674607,1174818049,1545405479,1275535655,823416647,86462535,523833608,974464036,658321980,1114075158,185861637,487922498,471600394,639451455,537999451,520699919,1079979324,236797980,168450619,393283123,456001101,186713889,1493375013,488440356,923600390,756164122,655898448,825951036,1411784533,34609698,1208103527,1128159247,253245995,940584251,573441833,19400266,993726249,18425437,139266084,137047810,190711400,1527646996,36582975,978979125,287314201,108201025,1057162756,1583308301,489622303,293476447,840836395,406279465,554701144,471161609,861221689,722419267,1360213011,1143874879,909322020,2035428162,438440025,106244122,322058780,891553820,1360617229,860762642,723856384,322969613,238895933,842924835,1879190897,52179258,453527317,643782993,169476647,858128388,1091178016,453267755,1179072280,1511742509,1364295471,894177538,1547456852,339630853,942212098,640433433,930292802,1599102517,1279285263,1160643877,829502250,1143043844,1530134532,559155459,188100392,1815413542,890521399,220333865,1042559767,520753679,1899432762,369635096,825252367,186328081,1513044992,104291868,842078054,537864570,823793936,1163282459,453314382,1632586541,1159401523,151472718,219612436,1343881243,302413385,67122704,252322835,289281282,520961808,570699029,470824736,843333652,387845450,1180440642,355535121,472254981,206261077,341444100,285219076,439879490,1158377805,188762957,457966854,420087833,2046827521,722541333,1263228164,1510343692,503979288,772677403,942886173,118822420,1074859273,339172401,203161933,353775648,386806050,1363745804,34035503,1295078920,654974826,103553585,17500434,84149518,1212816394,341192510,303115534,305863945,1314328859,136125003,239478532,1129799731,185012293,504893725,1243356169,158746440,1226710058,169542741,940646154,352652561,439419943,376860481,469959197,520567564,16778499,994532938,805575194,201332246,424232781,219809552,825559315,2019624473,285350999,201785371,1129190437,352980301,353764925,1159268906,235294021,236258823,1128289801,269945915,35194673,437005072,85329174,387714572,274102343,83897604,956964102,285213966,1079384090,117586755,995588193,739054110,33755162,289099606,292814850,388764421,575359829,254878242,892283406,674169947,873859604,690695688,556934411,1532961317,269620487,137047589,19803402,891619353,774844708,773205285,420423187,589300788,539835481,959397124,537535801,589641006,622930724,673579048,167981855,671091755,437650701,756498733,704784648,774251013,975510574,335745584,1040792358,134424354,772089349,891158532,18422329,1041391729,139998271,286612271,626670900,958605350,856111142,724383270,372644648,773794620,855909183,540223547,203108701,906494980,1040720168,807150682,571218739,219101490,371001128,137049628,705576492,808659290,705692733,791022080,538653958,671624507,739063102,809906233,639962113,637745182,744239416,236529698,811540526,626862600,788995891,606877246,842204468,573770006,638135325,892486697,791755096,842940166,218240539,974075680,1007048511,555429381,388115255,1057830682,907621664,941633087,892021814,705508445,656356372,641149279,592446271,960046629,421476140,36057648,673325652,639245336,253309464,286404120,19138609,941505862,52178751,537019707,103819782,990131740,87893776,572400132,940786999,991251806,420435997,705108243,621752107,792157219,556736060,860304940,908527152,707673142,893072223,87437101,69927728,540938258,421737780,56494849,220529437,637555989,587807551,201721412,1293836041,809393727,2165761,119747921,760221964,942670122,523578142,1023565147,1946881594,1495147345,302056256,118113602,33882179,1024137755,1462240834,138296332,33948685,202726697,185470982,1577530626,18037005,758717254,857941269,959654443,858460691,640372776,555703830,321330014,1482629131,492570962,473434659,589234776,1042363916,725122873,521305974,1495996214,824716089,120401469,1175858246,603988531,723400211,590361130,892885286,728181053,874711586,704914987,607397390,673849635,858927916,1980441910,271717152,588463451,186264864,439096898,237511981,336863746,1445603842,958933259,655710269,739654685,707734794,691939104,17112595,1479220487,17311610,1585157,253636865,792142081,858725420,892469556,975571478,794635822,554644258,218577412,974917174,219283825,219108949,320604719,839200021,358887210,1009990432,895033669,270346552,369371943,170854914,288163108,822414375,135800369,201547047,218968081,537737542,185541933,1023878402,621038898,302923324,896737594,722614578,18820911,907806763,119221853,34611475,85931888,134429956,219358233,51716651,436478992,772030467,169813541,134233615,270402344,353573131,318904915,654518079,773797416,222570033,974721590,893719153,186589236,689707610,822608991,1027559461,103755568,890844441,740165382,370948908,170874206,742132011,823276892,252001627,185024067,236004399,542196259,655377180,573518398,772752423,68573239,993141293,671090230,50540551,207364644,688129835,51264102,69160960,823668001,186531879,1721438,542523258,51782502,839058447,889528634,1058743644,909337639,855709264,691550208,1111303721,908535824,639830843,437662578,4131881,639639610,404095542,907748360,756363024,774594342,925979405,909059125,574562367,1041766962,2833664,906497055,773928241,354893625,86265618,186593554,771772968,911815229,705440282,237767514,22363698,991902554,576651358,641030188,842007853,1044645642,791428699,674312229,591608893,572594698,102513465,838863909,236594769,324688386,336408621,371011385,823482709,772604988,671293188,673386800,121376300,673579281,841623353,254488125,890642453,359400763,171709191,1077742878,1158229763,942290951,761559636,808342563,1529619006,73138759,371406637,924855586,489358620,823667740,773799490,2118792263,510668586,50463006,979182891,56492606,1308764941,205980450,855642373,121183505,674956826,605370372,67440411,1277167410,573652306,1594245935,375074050,1194403380,555890965,255144200,1194992947,136513541,875576142,1024269850,1510682155,1042688287,168629537,354423099,369503541,355479608,21052219,855835153,1345463855,1042756404,190065709,973626116,761204497,123093823,1915165206,459220566,370027800,1580407058,506730774,1025124126,1510744383,387514687,1141319970,1565204261,1359103771,185995575,35596554,84096006,672404008,857878564,3032093,207364681,555304731,488660742,557915986,861239815,1074597388,372852262,506478175,755175171,2581879,100939293,537605408,956701468,1060906552,202447182,84023075,925892957,1448158238,455885632,456995842,236397832,789581071,486539295,923009595,1632458001,772084274,288971043,504107035,184943133,825691398,1313151757,219814218,370679576,1229983007,134546550,33752117,420092230,101057883,353308952,927730989,320602150,437864198,403773963,3948554,603989776,303508501,119413321,1192230914,441860171,122042880,471431969,101403907,871429,1175061276,438371390,1050900,201330949,1079580686,1498700612,174478106,438317072,1145045533,403514955,18481974,639055628,1866663195,486674503,286853695,826998811]],[hs],[0]);const jv=137;function Kv(o,a,s,u,h,m){const p=u?[]:(function(D,z,X){return(function(he,_e){const Be=function(Ce,Ye,it){return Ce(Ye,it)},Te=function(Ce,Ye){return Ce(Ye)},xe=function(Ce,Ye){return Ce(Ye)},Fe=Array.isArray(he)?he:[he],ke=[];for(const Ce of Fe)if(Be(yc,Ce,vs))for(const Ye of _e)ke.push(Te(Rg,Ye));else ke.push(xe(String,Ce));return ke})(D,z).map((he=>hc(he,{q:X})))})(o,a,s);if(p.length===0)return()=>Promise.resolve({s:-1,v:null});Un(m,(()=>({e:6})));const N=Ll(),U=ol(N),G=Date.now(),T=q1(p,Xm.bind(null,5e3,m,U),yv,Math.max(10,p.length),h);return T.then((()=>N.resolve()),(()=>N.resolve())),async function(D,z,X,he){if(X)return{s:-1,v:null};try{await Promise.race([T,kg(G,D,z)]);const _e=(function({result:Be,failedAttempts:Te}){if(Be!==void 0)return Be;const xe=Te[0];if(!xe)return{s:-3,v:null};if(xe.level===1)return xe.error;const{error:Fe,endpoint:ke}=xe;if(Fe instanceof Error){const{name:Ce,message:Ye}=Fe;switch(Ce){case"AbortError":return{s:-2,v:Ye};case"TimeoutError":return{s:-3,v:Ye};case"CSPError":return{s:-6,v:Ye};case"InvalidURLError":return{s:-7,v:`Invalid URL: ${_o(ke,255)}`};case"TypeError":return{s:-4,v:Ye}}}return wc(Fe)})(T.current);return Un(he,(()=>({e:7,result:_e}))),_e}catch(_e){throw Un(he,(()=>({e:8,error:_e}))),_e}}}function S1(o,a,s,u){return{result:{...Bl(o,a,u),bot:{probability:1,...s===void 0?void 0:{safe:s}}}}}function I1(){const o=navigator.languages;return o?{s:0,v:o}:{s:-1,v:null}}function Wv(o,a,s,u){const h=function(m,p){return m(p)};return new Promise(((m,p)=>{a[h(xt,9)]=N=>m({i:ps(u),t:Mn(N[xt(10)]),s:a[xt(11)],e:a[xt(12)],p:Gn(N[xt(13)])}),o[h(xt,14)](s),a[h(xt,15)](h(xt,16),u).catch(p)}))}var zv=Jt([229858650,783927519,3141207808,1645003411,2911373879,2084179082,2213201945,422262047,444852958,2568452659,961273073,4070116913,628296898,2516094721,19227916,46464143,2382904866,572186108,3147382845,1043469467,2611845399,171192596,1251730630,2338154040,2064948222,4070131749,623646351,2180159838,1719303453],7);async function Zv(o){var a;return(function(s){return s!==null})(a=o[(function(s){return s(70)})(je)])&&(function(s){return s!==void 0})(a)?a:await o[(function(s){return s(71)})(je)]()}function O1(){return C1("dark")?{s:0,v:!0}:C1("light")?{s:0,v:!1}:{s:-1,v:null}}var Qt=Jt([2849665133,3102332852,3030028940,2360597915,3649086422,4118989755,2159729800,2492790230,3150617845,3422263962,3398214861,3000338617,2163578059,3720000219,2782764965,3422263962,3600523980,2895432685,2292567243,3617170646,3986333093,2578762955,2596645530,2227996313,2259142812,3700204490,3100285842,3422263963,3903489002,2496302258,2360989318,3615531995,4120169401,2192956830,3971720145,3000875412,2277047195,3431641814,4124477118,2273483461,3481713107,2781523129,3321219718,3599275162,4157376185,2293418634,3418993356,3067464120,3120021895,4221285085,3000403896,2260651146,2496373974,3051664885,2293418634,3735466700,2345307313,3287931573,3669330832,3151268020,2192890251,2525727716,3051664893,3382957959,3448764377,3201075897,3045840518,3837111258,2966063285,2276644252,3402212556,3201145010,3048463771,2462561764,2816128395,2359614875,3837109206,4221223093,2209732555,2594026717,2782776315,2862995355,2592912343,2781727739,3422263941,3683431633,3202123702,2359548301,3617301981,4120169381,2595804298,2496377821,3100936949,2257903002,3683432918,3117908131,2331350219,3431510730,2748951986,2294283144,3565992406,2564589462,2612190863,3687578522,2999682747,2277103530,3516773597,3220146104,2625885836,3601643978,2325387955],3);const Yv=400;function N1(o,a,s){const u=Nr(o,a);if(!u)return"";const h=vo(s),m=Array(h.length);for(let p=0;p<h.length;p++)m[p]=h[p]^u.charCodeAt(p%u.length);return String.fromCharCode.apply(null,m)}function T1(o,a){const s=vc(o);if(a.size===0)return;const u=Oc(s).filter((h=>!a.has(h[0])));u.length!==0?gc(s,JSON.stringify(u)):(function(h){var m;try{(m=localStorage==null?void 0:localStorage.removeItem)===null||m===void 0||m.call(localStorage,h)}catch{}})(s)}function vi(o){const a=v1(),s=jr(o);let u=0;const h=()=>(G(),s[u]===34?m():d1(s[u])?p():T(oc)?(u+=oc.length,null):T(kf)?(u+=kf.length,!0):T(Df)?(u+=Df.length,!1):s[u]===91?N():s[u]===123?U():D()),m=()=>{for(a.len=0;u++,s[u]!==34;){if(s[u]===92){if(u++,s[u]===117){const he=parseInt(ps(s.subarray(u+1,u+5)),16);Rs(a,Ir(String.fromCharCode(he))),u+=4;continue}const X=vg[s[u]];if(X){tr(a,X);continue}return D()}if(s[u]===void 0)return D();tr(a,s[u])}return u++,ps(Lf(a))},p=()=>{const X=u;for(;s[u]===46||s[u]===101||s[u]===69||s[u]===43||d1(s[u]);)u++;return Number(ps(s.subarray(X,u)))},N=()=>{const X=[];for(u++;;){if(G(),s[u]===93){u++;break}if(X.length){if(s[u]!==44)return D();u++}X.push(h())}return X},U=()=>{const X={};let he=!0;for(u++;;){if(G(),s[u]===125){u++;break}if(!he){if(s[u]!==44)return D();u++,G()}if(s[u]!==34)return D();const _e=m();if(G(),s[u]!==58)return D();u++,Object.defineProperty(X,_e,{value:h(),configurable:!0,enumerable:!0,writable:!0}),he=!1}return X},G=()=>{for(;s[u]===32||s[u]===10||s[u]===13||s[u]===9;)u++},T=X=>{for(let he=0;he<X.length;he++)if(s[u+he]!==X[he])return!1;return!0},D=()=>{throw new SyntaxError("Unexpected "+(u<s.length?`byte ${u}`:"end"))},z=h();return G(),s[u]!==void 0&&D(),z}const x1=Qt(6);function L1(){return Ns(0)}function Xv(){return(function(o){return o in navigator})(Vn(0))&&(function(o){return o!==void 0})((function(o){return o(navigator,2646664628)})(Ae))}function C1(o){return matchMedia(`(prefers-color-scheme: ${o})`).matches}function qv(o){const a={};for(const s of Object.keys(o)){const u=o[s];if(u){const h="error"in u?wc(u.error):u.value;a[s]=h}}return a}function Jv(o){return nr(((a,s)=>{const u={},h=s.document.createElement("div");s.document.body.appendChild(h);const m={AccentColor:"ac",AccentColorText:"act",ActiveText:"at",ActiveBorder:"ab",ActiveCaption:"aca",AppWorkspace:"aw",Background:"b",ButtonHighlight:"bh",ButtonShadow:"bs",ButtonBorder:"bb",ButtonFace:"bf",ButtonText:"bt",FieldText:"ft",GrayText:"gt",Highlight:"h",HighlightText:"ht",InactiveBorder:"ib",InactiveCaption:"ic",InactiveCaptionText:"ict",InfoBackground:"ib",InfoText:"it",LinkText:"lt",Mark:"m",Menu:"me",Scrollbar:"s",ThreeDDarkShadow:"tdds",ThreeDFace:"tdf",ThreeDHighlight:"tdh",ThreeDLightShadow:"tdls",ThreeDShadow:"tds",VisitedText:"vt",Window:"w",WindowFrame:"wf",WindowText:"wt",Selecteditem:"si",Selecteditemtext:"sit"};for(const N of Object.keys(m))u[m[N]]=(p=N,h.style.color=p,s.getComputedStyle(h).color);var p;return s.document.body.removeChild(h),{s:0,v:u}}),o.sis)}var Pn=pi([[1158230590,352328197,922751784,234887733,1045777409,235013451,1077693209,86185296,321396490,462366,488115742,1213075980,4402479,184943903,188551425,1398147351,268897603,491523647,306988571,1261376568,269223502,570890009,34866732,470426899,403966778,253756433,304419089,491347009,508233756,403654977,421396492,1329803025,184551506,1057755406,136120322,118163754,373378420,453843998,1159464460,319444544,855642889,402851378,1191248155,151015493,219352090,67375366,17696018,1263095066,420348421,21908811,168961297,171640095,14413]],[function(){return Ya([Nr(o=new Image().style,2487676862),Nr(o,41374024)],[5,23,47,9,35,9,44,7,37,41,19,25,32,26,30,32,8,31,12,15,40,18,15,20,9,4,2,13,21,17,18,34,40,2,48]);var o}],[2]);const M1=10,Qv=2500;async function B1(o=!1,a){return(function(s){return s===0})((function(s,u){return s(u,453955339)})(Ae,await(function(s,u,h){return s(u,h)})(U1,a,o)))}async function nr(o,a){const{aq:s,ip:u}=a;if(u===null)throw new Error("Shared iframe is not available");try{await Promise.race([u,(h=`Iframe initialization timed out, debugCounters: ${JSON.stringify(a.dc)}`,On(Tg).then((()=>Promise.reject(new Error(h)))))])}catch(p){if(xc(p))return{s:-101,v:null};throw p}var h;return await new Promise(((p,N)=>{const U={action:o,resolve:p,reject:N};s.push(U),(async function(G){const{aq:T,ipq:D,si:z,siw:X}=G;if(!D&&T.length!==0){for(G.ipq=!0;T.length>0;){const he=T.shift();if(he)try{const _e=await he.action(z,X);he.resolve(_e)}catch(_e){he.reject(_e)}}G.ipq=!1}})(a)}))}const ey=500;function ty(o){return new Uint8Array([(function(a){return a>>24})(o),(function(a){return a>>16})(o),(function(a){return a>>8})(o),o])}var Ns=pi([[89472536,67911963,202988290,386077465,1866537770,1224742518,488243476,419627011,184819487,437598027,340225859,172033032,437716482,471155211,1095068177,1092107040,419499526,423762697,100665116,490210839,1194790674,673115,85280006,1510540548,2756129,939992591,1246643516,1108281098,52370449,641031181,822350097,201595136,1447512348,1107565334,605101077,923815180,201460231,369557787,421401919,370608902,386208007,1158809130,67652933,420829977,1325996060,705104933,100734005,18485518,1079117841,520555597,117716299,441132557,117836552,454886414,1079380231,235285315,167851373,438045445,354104902,218503945,1450723136,1261309460,853525,339100932,1443038736,103498560,3566862,1175192861,252709131,16777237,1984516105,1829509143,185926151,436356353,185073670,1779174662,991969605,50610456,1275666182,419565839,202771726,1124408096,135546735,168313092,253563142,135813653,822480166,72178038,222758157,52298251,454823449,56244746,1427123716,67914571,353589766,51775754,625419022,219166498,1258491144,521093188,151601409,456523793,678234648,169481234,118557701,391005526,241568771,422784012,438716682,1309089280,806492,990010373,638390299,134885451,1481180934,17176407,655231834,2049314574,84410418,220531716,167778574,105923661,106502459,185600556,170279180,1046087172,151977997,35061763,1263338788,84282176,52366156,1544356616,420816433,50605842,1229146882,1511529224,186319630,4664589,35268139,100748290,1379942427,1174536207,322636309,208471067,373756952,7684,1481509910,69665358,440083533,1174866696,403505177,1129127711,956961098,571674714,285606663,67257606,151460637,725827670,862785030,168106503,289803037,203297033,1197361671,1327110967,169477163,84548876,1840656,1325404447,537919532,1158350651,118114894,454640143,269026054,471146315,372321280,1196229131,421140297,17891399,256321038,167983925,135074069,1379942427,1174536207,523897886,187303186,16788313,1007685120,1447054106,1193610767,121055758,235738112,118572573,1091181577,956569372,1632457991,1191843846,387122178,420174362,755830297,929124171,222888474,50727960,118447621,1229986830,202905462,51517293,1159661069,219156518,1296957445,772541034,285869946,471598093,437591628,102564608,341211207,72035854,453396244,286989059,252909895,100927823,207059041,440798984,347163,218169348,389222492,3416153,1128989210,404424777,102242906,1193875213,338048784,17827353,1077939469,33558354,973080134,923734551,118361931,390678349,407312666,756351505,606227719,1078676741,1275397643,369236248,102176796,152328767,505090338,1195966464,68884054,402849858,604117287,387586598,184555596,52366851,290079565,39467274,337061379,1044450054,822546697,1309087752,202009165,100891182,1259996933,521093188,51986689,390009692,187041819,1296385283,1528366088,1539,1194856717,20458516,188762957,374080774,100861208,604249353,906778884,134487574,1444022019,51205721,688201243,275581722,638910490,553654793,438246915,1191185666,68310648,100862061,1157897218,203233559,1296957442,1829962602,35198010,17122832,1079118092,101515597,370942795,117714965,54019863,889585674,1079385113,386672195,236790637,420024595,406539288,689707789,956765442,1198474037,1091441944,102564636,119409668,205263381,108670990,151781382,1313753605,457245696,855645709,391058950,235019008,471534109,474699863,756351517,540018203,272974679,51463965,386470914,67506497,1297423660,1224806753,520230941,878058775,289625664,571801658,289411104,88480259,1641997,388317194,1477786881,50998065,521022728,202398474,33949981,1095115776,1582986863,239750725,289150477,469830174,14416]],[hs],[2]);function k1(o){return!(o&&pc.some((a=>o[a])))}function ny(){try{throw"a"}catch(o){try{return o.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}const ry=500;function oy(o,a){const s=function(p,N){return p<N},u=function(p,N){return p+N},h=(function(p,N){return p+N})(o.length,a.length),m=new Uint8Array(h);for(let p=0;s(p,o.length);p++)m[p]=o[p];for(let p=0;s(p,a.length);p++)m[u(p,o.length)]=a[p];return m}function iy(){const o=function(G,T){return G-T},a=function(G,T){return G*T},s=function(G,T){return G>=T},u=function(G,T){return G===T},h=function(G,T){return G%T},m=function(G,T){return G|T},p=function(G,T){return G**T},N=[];let U=Math.random();for(let G=o(a(6,4096),1);s(G,0);--G)if(u(h(G,4096),0)){const T=Math.random();N.push(m(a(o(U,T),p(2,31)),0)),U=T}return{s:0,v:N}}function sy(){const o=function(u,h){return u!==h},a=function(u,h){return u(h)},s=a(vo,(function(u){return u(0)})(xt));return Object.defineProperty(s,(function(u){return u(2)})(xt),{value:function(u){var h;const m=o(h=this[a(xt,1)],null)&&o(h,void 0)?h:0,p=this[m];return this[m]=(function(N,U){return N|U})((function(N,U){return N&U})(p,~u),(function(N,U){return N&U})(~p,u)),this[(function(N){return N(1)})(xt)]=(function(N){return N+1})(m),p}}),s}var je=pi([[37637135,1447917654,1074862848,221320987,185417728,1279479069,287641348,1585126709,277761,1427768864,1124076042,2035529,455018507,23675461,120393521,1444036433,1141263183,303105822,319645969,1275726848,36457547,388709920,101924677,1077349638,303367169,135938595,1112349448,153357637,121505586,1480802129,1141246529,839976462,805901,167780891,1160643090,438979704,100941378,1381385537,33619995,505875729,119147817,153229835,20323964,453520970,1308901389,134224668,324158218,140184588,136785483,455937847,1145648204,1494293834,320544012,1971969,319380746,359333889,104340027,1544500554,1141003010,1209157132,67441480,1511480093,104666369,1328827942,1075133262,152198427,149830,1477446935,1427587336,1194921745,1547195181,353853786,470698257,1510890510,1159481353,521949703,526588437,192026238,239739657,442307401,256466199,1481069662,1091916807,191889498,175708721,1578723163,1142444571,403526171,474109016,436863826,1513165895,1227047982,1410678607,1310151680,1326799388,156435474,491723532,153230682,91688828,286089482,471550231,1511481182,945321480,218765652,526583891,1131496748,1561928206,1498942025,241044293,373446478,340072261,510001485,1114971518,789340426,1464415314,121639178,474109261,339869763,510074189,1131496749,1561862926,1482164809,241043525,373445966,1430675269,981021962,289151081,206126103,1314788169,308153156,524440649,373424195,493296973,1131496750,1562058766,290982473,974735686,324366422,140184588,1466392143,1131765368,286482698,1325800471,394831,169369099,54987290,657872206,120986675,1565553235,1209411907,253564417,1280836866,470686025,237312859,522912050,201357853,1141003025,1511147020,386751269,1310132765,292225025,270091815,865110,1465648906,67108874,184644125,1192692237,309397319,1601199207,404362525,1330912518,34669650,1212173143,1113211225,1316896855,104596079,39597315,1195772422,1364869959,1430658377,184767552,1513967123,321592373,1510961754,218960155,420305921,1258684700,1108743697,506609673,1547125293,1478042203,1494042381,1327128087,1225806877,387334407,191907615,108599857,101923614,291246082,1381515331,1447304521,1514364485,1348950091,1165318776,1145925391,391666511,1465401923,1413749065,1497586757,1348951883,1081432952,1129147407,374889295,1364738371,1346640201,1531141957,1549950795,1378683704,100689750,151848977,420305920,474366537,1073758992,140973855,1579227002,219771980,1499072079,391076631,390618884,475275347,337911369,489691709,454256461,1207961623,6036480,1329684253,1510738463,1010648577,791688480,1565554302,1431968600,236390922,1477205770,1258697756,359674705,2890289,1326676557,1393764638,1225000704,625476693,167839243,1328283662,75056996,121710658,1276451417,319888927,386887006,1176443398,661342039,372705078,1543910474,1465139282,357826574,487414111,186456605,1529830456,1282104626,101128728,1142492674,122947073,370019595,559220289,661996366,322568504,437138263,22894923,1427576601,1725955,1907229,523115079,388700960,67910512,1432095759,139985219,487414091,469762058,443565827,293290614,16209,1326529286,822482699,151870732,1275724032,238767179,456461092,1480802125,1426131009,441995264,152915527,167780869,1165052930,389480762,1447896833,1074862848,69211931,387799325,1279479052,70125060,388696895,1447917639,1075187217,236586839,1229602839,993994827,322112307,658250785,285621072,1968588097,874523178,657942583,657137952,1265183017,571878774,656737658,56118071,336660254,1195642624,436608286,523123202,388700960,390297089,1427442705,202711306,386744597,1276396363,556535562,388825661,1448835153,1393888269,1124073738,105513240,437127707,153234434,489367856,1480796758,1427181121,85596973,268918562,386802457,1161763592,3820664,286604102,1443954741,39214669,285820951,135933196,1161366273,171461752,1480796497,1965894465,824910122,540507936,723659301,1265187369,654911862,302460769,1377901318,1125192974,725421897,1008740640,1164397610,1059916595,286337602,1326791431,1297487624,286088775,458048331,388629257,293290614,16209,1140930566,69667613,507776785,504765259,1165052930,389285664,419442256,56118035,251731212,1464995601,223167252,321198856,595280502,758325110,1915829052,606223904,642384199,825638694,1158167604,455756920,1480802137,1899308097,540090416,1195642657,167840283,102439938,1585126695,390275448,1393888271,337122105,1045565184,1113342297,1266171991,1584021604,1447888658,1159005711,1532363296,282183,1112349960,138353989,34999078,121856001,1141245463,1294536525,151473735,439229702,254283539,104270649,1447917648,1443954709,106323533,271276288,662811,523123219,388700960,390297089,1427442705,203108618,17189896,17563948,1161366275,511382904,402929730,1146508097,85659905,407527168,185421125,891619072,389873713,117443153,56118032,822089500,151870732,1275724032,37243979,472919072,454237511,223746326,319881805,135938563,185336072,157893189,1585125691,353582593,56118036,1125129226,1707849,402849818,37633794,386537254,1447917655,1912866830,67113755,273285447,504234503,1160710935,490359928,19080019,1393626885,339090747,386747139,139281227,337772558,1349864508,419639120,223747338,117510221,1192904707,251809093,506998551,1585122618,556866817,1812203566,1125193216,540675913,1112353576,87956805,321592373,1447917658,1076889111,857805595,1195642665,17367296,359219781,388767537,270544464,1140857090,119159581,3477258],[386942744,1229409564,135333655,220795160,755369005,1162041120,503777537,1079123715,101517389,52050726,1427192580,236473163,17109769,173424715,371009796,1292251441,203046987,50927385,503982872,1446053403,2376539,169555715,117837325,355405073,438900482,405154853,1145049870,34409291,436733206,2017924890,638784598,973210372,286198279,134625543,1778647041,1009795397,268569364,290080074,202965528,507332635,134354452,152965423,402923329,102564125,236739842,706150459,290790203,240978695,52177998,454823436,1197226506,251672392,419431940,285429263,286416394,290006535,454303788,1090915598,354048009,1091132175,356080479,1362842883,236919825,1209617177,1075316761,1093555476,337803338,1427785501,1461339656,1327303942,2047102737,571952141,1411208983,1326531854,1276973337,957501722,745215771,457971551,407048258,1413810758,189744919,1549274479,1208835629,122683732,290717969,1259620628,638538288,504780064,289608031,404029529,1326585167,1276018207,1460741645,67916804,1511283736,5195038,273234948,18622334,507904847,352344385,1426083608,1329023043,947075610,202117450,224136543,1162101260,1076894017,225976393,122166853,524816962,356848732,759700802,1934427230,839535692,39204446,173872912,827003996,778964035,457907295,1396720145,1175783745,475925317,240979582,341646696,1346527045,877014553,34144849,994774908,138743678,457380169,375002446,172294213,223881039,1179478043,1108677450,1146689345,924407616,357832018,155268902,1497649743,1094734404,220025925,438702086,70325591,1643545,408686104,873550429,472322827,1550150419,16787279,34278407,1180648471,637797448,705626696,68491267,202001233,153046535,1929861143,640029993,1109330433,340264718,221009951,287179034,392108605,33756966,84029457,1074532368,341187916,1850366843,185875050,105454599,253041247,1598032221,1531017813,1582329169,520750428,38280011,172363532,1397193033,1599825007,201611598,1293566492,152902925,1513770251,1228544271,386943257,1528448786,1477775372,271666946,1530556186,1142562583,337331719,1090600968,2015169296,974674202,89939485,4923146,505091400,2018055445,1735348549,1363894105,1447319620,1480607296,1381915715,1364935032,1364940655,1564958533,1482178904,1447053120,1951357028,1430470776,1598381646,1532780110,1111776323,1113088073,1112109901,1346787403,1409356039,504713500,1259350291,386693676,273026379,1577274897,121837076,1479285852,473648920,390531163,55525907,105650965,460533334,104543053,118166278,51401991,102436100,894245895,1766327564,1560547859,790446857,822095617,1632649257,544018770,218371856,1594628871,1241852697,390673753,318898225,1543849261,420228884,1090781211,558652764,655163434,1325931325,508117330,525344259,520690773,85014549,84018010,1126112264,878009691,135922955,1259218440,425033074,491261958,134813266,220011032,1211127597,1534153233,487532364,270076938,306978074,439238914,980298315,677136966,218171141,16778500,1951154752,1996624386,202705923,437853723,336330837,756226304,606995002,374278681,189012548,386466882,387778316,474766640,72698209,520751643,118564625,824054024,788928801,1158290237,18434638,85723410,1581910529,50410823,206135566,119147077,270153991,1313754636,101132047,1297688929,135073796,355993372,437918484,1450723095,103155988,169542172,1465403663,353242630,103158868,1500917265,1026695245,404360509,973741573,822219547,390290262,1009987360,909389373,623721020,1682123578,67903563,824389676,1078217532,436798749,1197361674,354289187,521285926,236526109,173431126,353177886,771897901,352983332,1242711104,706153743,387711750,1431205399,84157967,1226512898,391600150,404031771,218106372,463655,1162482194,67700042,201393710,20649781,472001799,1293750808,118966599,286787601,506267706,376860481,469959197,169290252,1293748502,738480196,1866662918,1027487047,607402026,691414576,220997944,2019637031,926361687,68033578,473498121,1192693518,790779512,892871434,1229409572,603983891,68944909,755120940,1263341619,470555456,424820800,34144769,341211207,50603539,236599298,287706393,391663133,319831107,1297053222,201657107,487396891,1245924636,438372881,1467564803,206261002,18488836,625886550,807019577,638652732,758393632,792740939,808860735,1982210107,705844568,1162154527,606742093,757868074,1783451184,808257051,53943568,1313479195,206441271,387124483,337319170,1011697446,1196966233,1162304324,1298094684,1632580729,51255864,1380653101,152833856,1581915406,402663239,120202771,407720773,285678367,1076433227,252062531,456402476,17498899,67241733,1245924639,53545988,39931221,438965010,454105369,201932032,205132824,376860481,469959197,17640204,184618269,990256173,1628639760,88411209,403573006,155930199,739118874,694227212,117787993,805699599,168304137,370358301,1130059303,922943536,118365952,1259412253,69162560,755641148,136131120,1145772055,504699968,521797641,303512068,424111939,1196236296,352784457,1314410014,1091380740,168261231,520359188,353973005,222041630,1450723078,909312026,169674243,5654345,67961882,1261175836,439837007,488644127,503778831,439157540,637539342,625171286,437131532,1447512327,17498374,1682118685,842400075,1075120659,50678596,371142940,1229982465,874984310,705102862,1225657094,740710232,1296969773,555096682,102565685,1246054939,221512470,540872219,1431860777,402861320,424494405,285213966,137697306,102578176,152771889,3489800]],[function(){return(function(o,a){const s=Ae(o,704082790);return Ya([Nr(a,3017323393),N1(o,859837811,"QjslADtOBipACA")||N1(s,72906005,"Tjo/DSpIETFCCQ")],[20,1,24,23,23,21,14,8,11,8,6,13,1,1,12,4,9,10,6,2,1,2,0,1,2,1,1])})(navigator,document.createElement("frameset"))},hs],[1,1]);async function ay(o,a){const s=function(T,D){return T(D)},u=function(T,D,z){return T(D,z)},h=function(T,D){return T(D)},m=function(T,D,z){return T(D,z)},p=function(T,D,z){return T(D,z)},N=function(T,D){return T(D)},U=await m(Ae,o,552725026)(),G=p(Ae,U,3695949181)();try{const T=new Promise(((z,X)=>{const he=function(Fe,ke,Ce){return u(Fe,ke,Ce)};let _e,Be=!1;const Te=()=>{Be=!0,(function(Fe){return Fe!==void 0})(_e)&&window[s(Yr,1)](_e),u(Ae,G,244589941)((function(Fe){return Fe(2)})(Yr),xe)},xe=Fe=>{if(!Be)if((function(ke){return(function(Ce){return Ce===2})(ke)})(he(Ae,he(Ae,Fe,3065852031),740233146)))(function(ke,Ce){return m(ke,Ce,2552575352)})(Ae,G)(a).catch((ke=>{(function(Ce){(function(Ye){Ye()})(Ce)})(Te),(function(Ce,Ye){h(Ce,Ye)})(X,ke)}));else{(function(Ce){(function(Ye){Ye()})(Ce)})(Te);const ke=new Uint8Array((function(Ce,Ye){return p(Ce,Ye,3065852031)})(Ae,Fe));(function(Ce,Ye){h(Ce,Ye)})(z,ke)}};m(Ae,G,123626528)(h(Yr,2),xe),_e=window[s(Yr,3)]((()=>{Be||(function(Fe){Fe()})(Te)}),vy)})),D=N(vo,h(Yr,4));return await(function(z,X){return z(X,2250224811)})(Ae,G)(N(Yr,5),D),await T}finally{try{await u(Ae,G,318865860)()}catch{}}}function cy({clientId:o,token:a="pubef3f54bbe39b4277dd16624a5e8312d2"}){const s=new C7((async u=>{const h=`https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=${a}&dd-evp-origin=browser&dd-evp-origin-version=1.0.0`,m=(function(p,N,U=fl()){var G;const{level:T,message:D}=k7[N.identificationState],z=(function(Te,xe){if(k1(xe))return Te;const Fe=_s(Te);for(const ke of pc)xe[ke]&&Fe[ke]&&(Fe[ke]=nl);return Es(Fe)})(N.pageUrl,N.urlHashing),X=N.events.map(Tv),he=X.some((Te=>Te.level==="error")),_e=X.some((Te=>Te.level==="warn")),Be={ddsource:"browser",ddtags:`env:dev,service:${wl}`,service:wl,date:N.time.getTime(),message:D,level:he?"error":_e?"warn":T,clientId:p,framework:"Fingerprint",language:"javascript",uuid:U,notifier:{name:"Fingerprint monitoring",version:tc},request:{url:z,query_string:((G=/\?.*$/.exec(z))!==null&&G!==void 0?G:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:N.userAgent,code_version:N.agentVersion}},person:N.visitorId===void 0?void 0:{id:`visitorId:${N.visitorId}`},body:{telemetry:[{level:"debug",source:"client",timestamp_ms:N.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}},...X],message:{body:D}},custom:{isInIframe:N.isInIframe,pageViewId:N.pageViewId,agentId:N.agentId,getCallId:N.getCallId,requestId:N.requestId,identificationState:N.identificationState}};return JSON.stringify([Be])})(o,u);await(async function(p,N){const U=Qf(1e3,1e4),G=new Blob([N],{type:"application/json"});for(;!navigator.onLine||!Jg({url:p,body:G});)await gi(U())})(h,m)}));return s.addEvent.bind(s)}function uy(o){return(function(a,s){return a(s)})(ys,o)&&(function(a,s){return a===s})((function(a){return a+""})(""+o),(function(a){return a(17)})(xt))}const yi=16,Eo=16,Ro=8;function fy(){const o=function(h,m){return h(m)},a=function(h,m){return h(m)},s=function(h,m){return h(m)},u=function(h,m,p,N){return h(m,p,N)};return[o(Or,(function(h){return h(2)})(Fn)),a(Or,(function(h){return h(3)})(Fn)),(function(h,m){return h(m)})(Or,a(Fn,4)),s(Or,(function(h){return h(5)})(Fn)),a(Or,o(Fn,6)),(function(h,m,p){return h(m,p)})(Or,s(Fn,7),Ry),u(Or,(function(h){return h(4)})(Fn),Cc,(function(h){return h(8)})(Fn)),u(Or,s(Fn,6),Cc,(function(h){return h(9)})(Fn))]}const ly=4169850297,dy=new RegExp(Jt([39174333,51812406,885210665,4099360837,1242130291,1365653239,2003041115,1707369036,3273002536,359933e3,1948332465],5)(0));function hy(o,a,s,u,h,m,p){return Ao(a,(()=>({e:18,stage:s,tryNumber:m,url:h})),(({status:N,getHeader:U,body:G,bodyData:T,wasSecret:D})=>({e:19,stage:s,tryNumber:m,status:N,retryAfter:U("retry-after"),body:T??G,wasSecret:D})),(N=>({e:20,stage:s,tryNumber:m,error:N})),(async()=>{const N=await(async function({body:U,...G}){const[T,D]=dc(U)?await rl(U):[!1,U],z=await A1({...G,body:Yf(D,T),responseFormat:"binary"});let X=z.body,he=!1;try{X=g1(X,!1),he=!0}catch{}return{...z,body:X,wasSecret:he}})({url:h,method:"post",headers:{"Content-Type":"text/plain"},body:o,withCredentials:!0,abort:p,container:u});return(function(U){let G;try{G=vi(U.body)}catch{}return{...U,bodyData:G}})(N)}))}function D1(o,a,s,u){Xf((()=>{const h=`${o}=${a}`,m=`expires=${new Date(Date.now()+24*s*60*60*1e3).toUTCString()}`,p=u?`domain=${u}`:"";document.cookie=[h,"path=/",m,p,"SameSite=Lax"].join("; ")}),void 0)}async function py(){try{return{s:0,v:await(function(o,a=4e3){return H(((s,u)=>{const h=u.document,m=h.body,p=m.style;p.width=`${a}px`,p.webkitTextSizeAdjust="none",p.setProperty("text-size-adjust","none"),f()?m.style.setProperty("zoom",""+1/u.devicePixelRatio):R()&&m.style.setProperty("zoom","reset");const N=h.createElement("div");return N.textContent=[...Array(a/20|0)].map((()=>"word")).join(" "),m.appendChild(N),o(h,m)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')})(((o,a)=>{const s={},u={};for(const h of Object.keys(Ic)){const[m={},p=sv]=Ic[h],N=o.createElement("span");N.textContent=p,N.style.whiteSpace="nowrap";for(const U of Object.keys(m)){const G=m[U];G!==void 0&&(N.style[U]=G)}s[h]=N,a.append(o.createElement("br"),N)}for(const h of Object.keys(Ic))u[h]=s[h].getBoundingClientRect().width;return u}))}}catch(o){if(xc(o))return{s:-101,v:null};throw o}}async function U1(o,a=!1){const s=function(m){return m()},u=function(m,p,N,U){return m(p,N,U)};if(!s(hl)||!s(Jf))return{s:-1,v:null};if(!await s(t7))return{s:-2,v:null};const h=(function(m,p){return m(p)})(wv,a);try{return{s:0,v:await u(El,w1,o,[h])}}catch{return{s:-3,v:null}}}var Zr=Jt([1058085656,755065913,591387725,129841502,4267773802,944664064,1500447153,1699147887,1224620868,4264117283,677258056,1080570024,1964094248,134111503,3007202158,269444104],5);function P1(){const o=window.devicePixelRatio;return o==null?{s:-1,v:null}:{s:0,v:o}}const my=new Set([2882888216,2306836488,1040191956,1447924955]);function gy(){return crypto.getRandomValues(xf),xf[0]}var F1=Jt([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function V1(o){const a=o;return!!a.getCallId&&typeof a.getCallId=="string"}var Yr=Jt([346417124,3652618933,3415905489,3253897955,2294399372,4070113219,3251407103,3790651278,3281774077,3704133079,3942300820,3367225321,4294875871,2331302290,3768121793,3888880373,3201419702,3231249615,3437080024,3100701610,3314799614,3758005657,2210585768,4271564258,3438535137,3202800573,3366777040,3303964898,2682776755,3951621071,2159973508,4008833771,3834510307,3721574652,3975475112,3700541151,4124803294,3095585942,3247897010,3807349469,2666921394,4072405711,2195887329,3154092449,4294345125,3888048838,3053383582,3253728495,3755524068,2532356992,3435067859,4275287775,2625825195,3434202529,2160370131,2496716211,3113534649,4075273716,3919438518,3752838589,3723725017,2465382589,3869810136,3740114311,2948853427,3773496770,3803351801,3952999656,3740726744,2264707582,3201236378,3332498654,3857093830,3972063642,3719283692,3236399861,2408578979,3722477823,4189761762,3783784893,3166361052,3976174325,3992312192,3924749508,4276728450,2564278682,2994979003,4089872596,2710490283,3249730500,4072511186,2699427004,3432903858,4089558744,2598495113,3216571058,3875126671,2916413345,3019038131,4278096123,2714560668,3499681728,3520970703,2935474610,3734566863,4058549465,2397888693,3649293503,3790334595,3033720459,3649291238,2229842819,2563889641,3264725957,3623783675,2180889534,3197950130,2179985116,3085158067,3549095404,3535397375,2516315025,3700870369,2398731507,3196105632,3331032025,3858610141,2949954204,4193226680,2211417304,2866061727,3686171852,3520654823,3791248297,3214074061,4223644355,2513361645,4204459429,3355152593,2543437536,3918648781,4004747161,2596587405,3366839520,3874003956,2564812727,3331441115,4223968132,2542187179,3485269211,4124110847,2381307884,2997600697,3723726493,3185957288,3387744482,4075417541,3084055278,3014969267,2582359544,3951294654,3332217343,3669592518,3787970999,4176905458,2178456300,2716330417,3651767969,3741234428,2851648183,2777211119,2180229583,2946350571,3869178341,3621566446,2529215113,3723682e3,4124946404,3939286952,3332032457,4053920986,3204036799,3015689465,4039568325,2541866927,3438010588,3590034112,3988905614,3012558810,3304832485,2514985405,4002541807,3973679769,3017591728,3314470877,4193238482,2983185323,3264972264,3523058939,3162627819,4076263902,2647437262,3018252672,3668479922,4022960577,2681128378,3770581153,3252335833,3218734243,4069981417,3655439325,2751195028,3466326249,3623659993,2646785979,3298870747,4208626831,2599543454,2776731315,3887244174,2862472074,3734230266,3522074095,2681794463,3198743013,3251027585,2541803933,3682660317,4092635365,3218268138,4209959352,3485381324,3992056763,3550215898,2197416672,3184325562,3887632123,2580524480,3185951914,4018929093,3506082243,4120164232,4021671336,3755912151,2899963828,2834666750,3321478363,4224970168,4020933798,3689123266,2915296700,3422263976,3838548215,3133982865,3415790008,2177603831,2834997692,3650017490,3487625157,3906333850,3182528216,4157315303,2566904730,3348889560,3536107236,2212357867,3903450322,3538718683,3184319646,3348299721,4176648412,2206643087,3919638749,3821647567,4220247017,4021982374,3953703640],3);const vy=5e3;async function G1({cache:o},a){const{speechSynthesis:s}=window;if(typeof s?.getVoices!="function")return{s:-1,v:null};o.tts||(o.tts=(async function(h){const m=()=>{return R()?(U=()=>h.getVoices(),()=>{let G=null,T=null;try{T=U()}catch(D){G=D}return[G,T]})():[null,h.getVoices()];var U};if((function(U){var G;return!U.addEventListener||$()&&f1()||R()&&Mn((G=window.origin)!==null&&G!==void 0?G:"")===548031109})(h)){const[U,G]=m();if(U)throw U;return{v:G}}const p={v:null};let N;try{await new Promise(((U,G)=>{let T;const D=()=>{const[z,X]=m();return Array.isArray(X)&&X.length?(p.v=X,T?.(),T=Tc(U,50)):T||(T=bs(U,600)),[z,X]};N=bo(h,"voiceschanged",(()=>{try{const[z]=D();z&&G(z)}catch(z){G(z)}})),D()}))}finally{N&&bs(N,1e4)}return p})(s));const u=await o.tts;return()=>u.v?a(u.v):{s:-2,v:null}}function yy(o){const a=kc(o);let[s,u]=(function(h){return[yl(h),Sl(h)]})(a);return s=p1(s),u=p1(u),s!==void 0&&u!==void 0?{s:0,v:s||u}:s!==void 0?{s:1,v:s}:u!==void 0?{s:2,v:u}:{s:-1,v:null}}function wy(){return(function(o){const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(o),"hardwareConcurrency");if(!a||!a.get)return{s:-1,v:null};const s=window.Function,u=window.Object;let h=!1;try{h=delete window.Function&&delete window.Object}catch{h=!1}if(!h)return m(),{s:-2,v:null};try{return a.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{m()}function m(){try{window.Function=s,window.Object=u}catch{}}})(navigator)}var Lc=Jt([3268306020,1189123365,3125061564,2812436647,1370270536,3104304876,2864333227,1189143047,3863391919,3133019362,232973317,2689380846,4109895146,502529820,4262523388,3806594546,334622221,3994352377,4074964461,100137739,2705777380,4025355697,502660630,4145147134,4043052789,502594832,3875927031,3958246626,2028005125],3);function H1(o,a){const s={},u=["x","y","left","right","bottom","height","top","width"],h=o.getBoundingClientRect();for(const p of u)p in h&&(s[p]=h[p]);const m=a.getComputedStyle(o,null).getPropertyValue("font-family");return s.font=m,s}function $1(o){const a=location.hostname,s=$();(function(u,h){let m=u.length-(u.slice(-1)==="."?1:0);do if(m=m>0?u.lastIndexOf(".",m-1):-1,h(u.slice(m+1))===!0)return!0;while(m>=0);return!1})(a,(u=>{if(!s||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(u)||u===a)return o(u)}))||o()}function j1(o){const a=Number(o);return isNaN(a)?-1:a}var hr=Jt([4216757916,2482823581,3322768783,3940655043,2767747340,149091984,3502500195,1661791409,2978971883,4181675939,4172402883,2313775364,95272926,2491872360,792833511,4287662331,4050917852,2915032708,2164222495,1336127956,3386158881,792833466,3817182206,3224306427],7);const wi=4;function _y(o){return(function(a,s,u,h){const m=document,p="securitypolicyviolation";let N;const U=T=>{const D=new URL(a,location.href),{blockedURI:z}=T;z!==D.href&&z!==D.protocol.slice(0,-1)&&z!==D.origin||(N=T,G())};m.addEventListener(p,U);const G=()=>m.removeEventListener(p,U);return h?.then(G,G),Promise.resolve().then(s).then((T=>(G(),T)),(T=>new Promise((D=>{const z=new MessageChannel;z.port1.onmessage=()=>D(),z.port2.postMessage(null)})).then((()=>{if(G(),N)return(()=>{throw a1()})();throw T}))))})(o.url,(()=>(function({url:a,method:s="get",body:u,headers:h,withCredentials:m=!1,timeout:p,responseFormat:N,abort:U}){return new Promise(((G,T)=>{if((function(z){if(URL.prototype)try{return new URL(z,location.href),!1}catch(X){if(X instanceof Error&&X.name==="TypeError")return!0;throw X}})(a))throw li("InvalidURLError","Invalid URL");const D=new XMLHttpRequest;try{D.open(s,a,!0)}catch(z){throw z instanceof Error&&/violate.+content security policy/i.test(z.message)?a1():z}if(D.withCredentials=m,D.timeout=p===void 0?0:Math.max(p,1),N==="binary"&&(D.responseType="arraybuffer"),h)for(const z of Object.keys(h))D.setRequestHeader(z,h[z]);D.onload=()=>G((function(z){return{body:z.response,status:z.status,statusText:z.statusText,getHeader:X=>(function(he,_e){const Be=new RegExp(`^${Te=_e,Te.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}: (.*)$`,"im").exec(he);var Te;return Be?Be[1]:void 0})(z.getAllResponseHeaders(),X)}})(D)),D.ontimeout=()=>T(li("TimeoutError","The request timed out")),D.onabort=()=>T(li("AbortError","The request is aborted")),D.onerror=()=>T(li("TypeError",navigator.onLine?"Connection error":"Network offline")),D.send((function(z){const X=()=>{try{return new Blob([]),!1}catch{return!0}};if(z instanceof ArrayBuffer){if(!X())return new Uint8Array(z)}else if(z?.buffer instanceof ArrayBuffer&&X())return z.buffer;return z})(u)),U?.catch((()=>{})).then((()=>{D.onabort=null,D.abort()}))}))})(o)),0,o.abort)}function K1(){const o=Date.now();return{s:0,v:[j1(o),j1(o-6e4*new Date().getTimezoneOffset())]}}var rr=Jt([1346232286,2962034951,861670240,68735456,3321456994,2017670418,588174816,2179169902,858485284,68735456,3321456994,2017670418,588174816,2195947118,858485284,68735456,3321456994,2017670418,588174816,2212724334,858485284,68735456,3321456994,1665545490,471454207,3270010982,858485267,303616480,4159274862,1634877202,1917620990,4076171370,2019769865,1300451,3654247266,1665152014,1913701858,3521131307,2138969112,856284652,3605299026,1399464463,889640696,3588055669,1634598930,1040833768,3387710818,863184143,822973089,3740554623,1919827201,571458782,4075320934,1952527893,892388351,3236184437,2137930757,687996136,2465817704,1886024268,1023534069,3572006263,1702835508,587580152,3825169495,1952657672,823452671,2628744288,1768308034,537776606,3288298603,1114977584,889508325,3522773621,1025848583,671210927,3269616980,1398945537,889640696,3588055669,1886323474,51566057,3588911219,2082831426,607373548,3622593384,1768031237,890422777,3270001012,1969633331,607372008,2464708198,1886024268,957277685,3724508769,2002855202,1295080,3638453090,1667380225,922862814,2460037986,1149186317,1057413603,3318709365,1667380742,873388495,3823796078,862071305,822973089,3757654655,1952461074,906413519,3654247266,2137928718,705291242,2460037986,1147746573,1057413603,3318709365,1667380742,587650754,3704382818,2087270153,1913970408,3655349035,2121466638,889704959,3605750853,2001216005,604357611,3622075718,2137144590,1917620985,3874844778,1953702405,907408117,3288298593,2082831426,623036652,3270014817,1954363699,1027775663,3587926374,1768039442,571786444,3304616814,1025843973,671210927,3305075793,1682253829,570808043,3523175238,1668481817,1912984804,3521131307,1701386520,607372008,3823662694,1952657672,1024455679,3588456055,863249422,822973089,3303233663,1700012549,50714604,3588845679,1667630610,1006817764,2628739682,1768308034,1057808334,3304673397,2087662337,588570344,3719249189,2118395905,286449633,3555485043,2137144584,605680377,3588055650,2087060242,1912986877,3521131307,2087195416,890553853,3690954320,1684546055,1058333693,3588911221,1954363699,1027775663,3754846566,1701978125,638515688,3303830120,1651064585,118674909,3622200168,1634877202,1027775663,3754846566,1701978125,571467752,3758061164,2018779157,1916327415,3521131307,2087195416,890553853,3690954320,1684546055,705291261,2628733026,1768308034,537780174,3890767218,1986798095,538304511,3589765204,858485306,320393696,3321724008,2119185684,570940415,3288163432,1433744688,1040571876,3739383924,2082831426,958580972,3268048233,1651975439,588635357,3305075793,1682253829,570808043,2460038004,1115631885,823320569,3318707296,1667380742,370080254,3723128949,1114848773,889704953,3719249189,1700014081,922862306,3606598498,1651848454,892788420,3370673525,1986405427,1917620968,3824513130,1886732052,892655082,3271058815,2135827205,922862283,3303240810,1986405427,1917620968,3824513130,1886732052,892655082,3271058815,2135827205,605214171,3302910306,862074625,591568080,3739509619,858485255,957209057,2460181107,1969648204,890552556,3739500405,1025851142,822399407,3270010231,2120302121,587584675,3236193124,2137536788,826449071,3304943715,2135826949,877584363,3554961250,858485253,536990956,4194268275,1063794190,824624100,3522133355,1967536899,890552556,2460038005,1883317001,822271201,3570170468,1953701889,1917620991,3758056258,1919315986,588502510,2431287150,1634214416,689226472,2460037927,1277522010],6);const Ey=rr(0);function W1(){return!!te()}var Fn=Jt([1435303418,2123044869,1559249858,283799713,233274796,1387864800,182614752,469727664,1304044256,1320890352,536361710,468150447,469727664,1287529184,1391864050,316833504,1554463399,468677044,249968557,497755126,502168749,149562801,1319447026,867379436,1555245292,402471662,1373928870,334069173,300431609,233340326,1190883071,145306848,300842155,485388269,497755055,502168749,251471281,1319444978,1320826610,1555245292,402471662,1373928870,1170172079,451181538,1140358055,1340632746,1218783724,1303532780,1555782380,402471662,1373928870,1170172079,451181538,1140358055,1340632739,1321152236,1555245810,402471662,1373928870,1170172079,451181538,1140358055,1340632739,1321152236,1555573746,199899886,1373925798,1173127085,451181538,1140358055,234776749,531182816,300055735,1257993709,300431609,233340326,1257993727,1321154211,1386819052,451835360,533232043,401177010,402616750,598305703],4);const z1=1e6,Cc={width:1920,height:1080,bitrate:5*z1,framerate:30},Ry={width:3840,height:2160,bitrate:20*z1,framerate:60},by=Fn(0);function bo(o,a,s,u){return o.addEventListener(a,s,u),()=>o.removeEventListener(a,s,u)}const Ay=fy();function Z1(o,a){(function(s,u){$1((h=>{(function(m,p){D1(m,"",-1,p)})(s,h)})),$1((h=>(D1(s,u,365,h),yl(s)===u)))})(a,o),gc(a,o)}var Mc=Jt([1844342124,1731613500,990986353,203511828,207120145,2115912049,489049920,1598038361,559087932,1081151567,1276649489,823205686,36704522,505363536,2115063679,153178895,1480597849,1046283050,1097948932,1329626654,2119767866,1097947136,1581284894,911344434,138088735,1208300629,1896886385,774330634,1226653267,5769255,138364185,1481604894,1044975164,673665544,1493186128,236853565],3);const Sy=Mc(0);var or=Jt([1879312905,2234210727,1020072502,1551618835,3372564357,919471162,1383433502,3607443400,1036386878,356305173,2232696003,847580021,285859349,2639409619,612703099,506889564,3289590996,2077492028,506889564,3355585474,2072728107,305451550,4199689154],3);function Y1(o){const a=jr(o);Qa=Qa||(function(){let u;const h=new Uint32Array(256);for(let m=0;m<256;m++){u=m;for(let p=0;p<8;p++)u=1&u?3988292384^u>>>1:u>>>1;h[m]=u}return h})();let s=-1;for(let u=0;u<a.length;u++)s=s>>>8^Qa[255&(s^a[u])];return~s>>>0}function X1(o){return{error:Za(cc,void 0,{httpStatusCode:o.status,bodyBase64:Gn(o.body)})}}var Vn=Jt([1710548451,3119540450,126326602,2433453468,2359230870,415292490,2567278741,2375621521,1153467142,2652734674,2375621761,332321286,2634648786,3234482823,76387599,2215215519,3231582091,415292437,2147847554,3235662486,25990412,3695871637,2358594201,227447305,2551155640,2542996387,293703962,2182928594,3235646871,227514652,3525089183,3535821272,1255063640,2567996317,2744982927,1388352783,3527712704,2358319749,1250333980,2433007836,2396144832,1255068167,3695873681,3230861760,75747908,2907341201],3);function q1(o,a,s,u=1/0,h){const m={failedAttempts:[]},[p,N]=(function(T){const D=(function(he){const _e=[...he];return{current:()=>_e[0],postpone(){const Be=_e.shift();Be!==void 0&&_e.push(Be)},exclude(){_e.shift()}}})(T),z=Qf(200,1e4),X=new Set;return[D.current(),(he,_e,Be)=>{let Te;if(_e)Te=(function(Fe){const ke=Fe.getHeader("retry-after");if(!ke)return;if(/^\s*\d+(\.\d+)?\s*$/.test(ke))return 1e3*parseFloat(ke);const Ce=new Date(ke);return isNaN(Ce)?void 0:Ce.getTime()-Date.now()})(_e),Te!==void 0?D.postpone():D.exclude();else if(Be instanceof Error&&(Be.name==="CSPError"||Be.name==="InvalidURLError"))D.exclude(),Te=0;else{const Fe=Date.now()-he.getTime()<50,ke=D.current();ke&&Fe&&!X.has(ke)&&(X.add(ke),Te=0),D.postpone()}const xe=D.current();return xe===void 0?void 0:[xe,Te??he.getTime()+z()-Date.now()]}]})(o),U=(G=[h?.then((T=>m.aborted={resolve:!0,value:T}),(T=>m.aborted={resolve:!1,error:T})),(async()=>{if(p===void 0)return;let T=p;for(let D=0;D<u;++D){const z=new Date;let X,he;try{X=await rc((()=>a(T,D,h)),h)}catch(Be){he=Be,m.failedAttempts.push({level:0,endpoint:T,error:Be})}if(X){const Be=s(X);if("result"in Be){m.result=Be.result;break}if(m.failedAttempts.push({level:1,endpoint:T,error:Be.error}),Be.stop)break}const _e=N(z,X,he);if(!_e)break;await rc(gi(_e[1]),h),T=_e[0]}})()],Promise.race(G.filter((T=>!!T)))).then((()=>m));var G;return{then:U.then.bind(U),current:m}}function Iy(o){const a=function(s,u){return s+u};return a(a("",(function(s){return s(6)})(Wr)[o]),(function(s){return s(7)})(Wr))}function Nr(o,a){let s=o;for(;s;){const u=Object.getOwnPropertyNames(s);for(let h=0;h<u.length;h++){const m=u[h];if(Mn(m)==a)return m}s=Object.getPrototypeOf(s)}return""}function Oy(o){const a=function(u,h){return u(h)},s=function(u,h){return u(h)};return new Promise((u=>{const h=(function(m,p){return m+p})((function(m,p){return m+p})(a(Ns,1),o),(function(m){return m(2)})(Ns));try{const[,m,p]=(function(N,U){return N(U)})(Rc,h);if((function(N){return N!==0})(m))return void s(u,m);p[a(Ns,3)]((()=>u(0)),(()=>u(-1)))}catch{s(u,-2)}}))}var Bc=Jt([3180672052,4136321821,1069993656,3701007392,745851388,3604256741,4280449231,2679085715,3668516990,1943205530,3515015719,796709882,3083637708,3961536391,3585578196,2683904356,2093990364,3615946797,2034223591,3083640489,3929227153,3640576901,2548503396,1876095948,3431189038,930339069,3789133282,2975952850,3706046676,2208919359,1271918795,3735025958,611570924,3789134555,3862000347,3588345271,2684300664,1925838043,2597103921,577620960,3885685417,4280447448,3487227027,2564957300,1065859019,2496980017,611634871,3570702309,3892474321,3387284885,2227709816,1943597533,3566723639,1629986790,4141455352,4167119263,3707494303,2231238769,1775497418,3398694934,577362129,3083573986,3895476103,2444745859,2447519807,1221719254,3617120301,828298210,4225602286,3877795017,3468133076,3668516968,1774579866,3515213094,539481082,3319567353,4164121295,3635905236,3668521854,1774579866,3515213094,858248186,2946142457,2838722719,3320879834,2246387305,668203729,3515284258,1629986801,3083966446,4079370129,3472612738,3437571188,1959650777,3683569191,645515513,4036676777,2837869788,3320879834,2246387305,668203729,3700685088,561172951,4036676777,2808184798,3387809236,2683841912,2122841047,3901943345,644469479,2946138856,4213209247,2679741060,2482977656,1926555350,3583947053,642703092,3789391080,3999344543,2444741534,2196973119,1959721949,3570197804,645582836,4158102217,3999344543,2444745370,2196973119,1959721949,3586975020,709743612,4225612517,2838194650,3505429196,3668520813,1774579866,3515213094,858248186,4040527850,2975951315,3303398868,3567730239,1910497512,3720210474,644873964,3788936175,2838461652,3371408090,2684297331,1084226519],7);const Ny=450,Ty=Bc(0);async function J1({te:o}){const a=function(p){return p()},s=function(p,N){return p===N},u=function(p,N,U){return p(N,U)},h=a(fl),m=await u(Dn,u(On,300,-4),X7.bind(null,h,o));return()=>{const p=a(m);return s(p,0)||s(p,-4)?{s:p,v:{u:h,e:[],s:[]}}:{s:p,v:null}}}const xy=function(){return{key:"bd",sources:{stage1:{s94:J1,s167:$m},stage2:{s106:$9,s154:P7,s158:ky,s160:W7,s97:Tf,s70:_l,s152:tg,s163:d7},stage3:{s1:Pl,s2:Fl,s4:Vl,s5:Gl,s7:Hl,s15:$l,s19:jl,s27:Kl,s74:Wl,s75:zl,s24:bl,s44:O1,s45:K1,s57:P1,s59:Yl,s60:Xl,s61:ql,s62:Jl,s63:Ql,s64:e1,s65:t1,s68:n1,s69:al,s72:ll,s82:ul,s83:I1,s99:_1,s101:V9,s103:G9,s104:H9,s117:j9,s119:K9,s123:W9,s131:z9,s133:Z9,s136:Y9,s148:X9,s149:q9,s150:J9,s157:Q9,s102:Rv,s118:rv,s120:ny,s130:My,s132:wg,s135:Mg,s139:i7,s142:nv,s144:Lv,s145:m7,s146:J7,s151:Y7,s153:Lg,s155:Ev,s156:Zg,s159:wy,s162:Iv,s165:l9,s166:xv}}}};async function Ly(){const o=function(ke,Ce,Ye){return ke(Ce,Ye)},a=function(ke,Ce){return ke(Ce)},s=function(ke,Ce,Ye){return ke(Ce,Ye)},u=function(ke,Ce){return ke+Ce},h=function(ke,Ce){return ke in Ce},m=function(ke,Ce,Ye){return ke(Ce,Ye)},p=function(ke,Ce){return ke(Ce)},N=function(ke,Ce,Ye){return ke(Ce,Ye)},U=function(ke,Ce){return ke(Ce)},G=function(ke,Ce){return ke(Ce)},T=function(ke,Ce){return ke+Ce},D=function(ke,Ce){return ke+Ce},z=function(ke,Ce){return ke+Ce},X=function(ke,Ce){return ke(Ce)},he=function(ke,Ce,Ye){return ke(Ce,Ye)},_e=await(Be=c1,Be());var Be;if((function(ke){return ke===-3})(o(Ae,_e,453955339))){let ke=null;return(function(Ce,Ye){return Ce===Ye})(typeof o(Ae,_e,1801730948),a(rr,1))&&(ke=s(Ae,_e,1801730948)),{s:-1,v:ke}}if((function(ke){return ke===-4})(s(Ae,_e,453955339)))return{s:-2,v:null};const Te=s(Ae,_e,1801730948),xe=[];let Fe="";try{if(Te)for(const it of Ey)Fe=u(u(a(rr,2),it),""),xe.push(h(it,o(Ae,Te,1455634619))?m(Ae,Te,1455634619)[it]:null);Fe=a(rr,3);const ke=await(function(it,dt){return it(dt)})(H7,Te);Fe=a(rr,4);const Ce=(function(it,dt){return it(dt,1843675174)})(Ae,ke);Fe=p(rr,5);const Ye=N(Ae,ke,154121870);return Fe=p(rr,6),{s:0,v:{ds:Ce,dv:Ye,f:h(U(rr,7),ke)?N(Ae,ke,4163855836):null,l:xe}}}catch(ke){if(G(E7,ke))return{s:-3,v:T(D(T(z(X(rr,8),Fe),G(rr,9)),he(Ae,ke,3065852031)),"")};throw ke}}function Cy(o,a){const s=[],u=Object.getOwnPropertyNames(o);for(let h=0;h<u.length;h++){const m=u[h],p=Mn(m);a.has(p)&&s.push({i:h,n:m})}return{l:u.length,p:s}}function My(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}async function By(){const o=function(s,u,h){return s(u,h)},a=await o(Ae,o(Ae,navigator,770559087),616412651)((function(s){return s(3)})(Vn));return o(Ae,a,2744374011)}function ky(o){return nr(((a,s)=>{const{webdriver:u}=s.navigator;return u===null?{s:-1,v:null}:u===void 0?{s:-2,v:null}:{s:0,v:u}}),o.sis)}function Dy(o){return o===void 0||typeof o=="function"||typeof o=="symbol"}async function Ao(o,a,s,u,h){let m;Un(o,a);try{m=await h()}catch(p){throw Un(o,u,p),p}return Un(o,s,m),m}function kc(o){return`${o}_t`}async function Uy(o){const a=function(p,N){return p(N)},s=function(p,N){return p(N)},[u,h,m]=a(Rc,o);return(function(p){return p!==0})(h)?{n:u,l:h}:await new Promise((p=>{m[(function(N){return N(3)})(Dt)]((N=>{a(p,{n:u,l:N[s(Dt,4)]})}),(()=>{(function(N,U){s(N,U)})(p,{n:u,l:-1})}))}))}async function Py(){const o=function(m){return m()},a=function(m,p){return m(p)},s=function(m,p,N){return m(p,N)},u=function(m,p,N){return m(p,N)},h=(function(m){return m()})(Wg);return h?o(If)?await u(Dn,s(On,350,{s:-2,v:null}),(async()=>({s:0,v:await Promise.all(h.map(Uy))}))):await u(Dn,s(On,350,{s:-1,v:null}),(async()=>({s:-1,v:await Promise.all([a(gl,h[0])])}))):await s(Dn,s(On,350,{s:-3,v:null}),(async()=>({s:-3,v:await Promise.all([o(gl)])})))}const Fy=function(){return{key:"id",sources:{stage1:{s94:J1,s213:bg},stage2:{s52:zg,s6:m9,s58:vv,s20:dv,s36:h9,s51:py,s21:p9,s79:Py,s69:al,s23:y7,s29:R7,s84:tv,s85:Kg,s89:ig,s17:b9,s87:Jv,s92:w7,s93:Zm,s95:kv,s97:Tf,s70:_l,s204:lv,s206:_v,s207:Sg,s210:Ly,s211:B7,s214:Sv,s215:G7},stage3:{s22:ag,s30:gv,s33:ug,s44:O1,s45:K1,s49:og,s50:Uv,s57:P1,s59:Yl,s60:Xl,s61:ql,s62:Jl,s63:Ql,s64:e1,s65:t1,s66:U9,s68:n1,s71:F7,s24:bl,s72:ll,s1:Pl,s2:Fl,s3:g9,s4:Vl,s5:Gl,s7:Hl,s9:v9,s10:y9,s11:w9,s12:g7,s13:_9,s14:E9,s15:$l,s16:R9,s19:jl,s27:Kl,s28:A9,s32:S9,s37:I9,s41:O9,s39:N9,s42:T9,s38:x9,s43:L9,s40:M9,s46:B9,s80:k9,s81:D9,s82:ul,s83:I1,s86:hg,s91:C9,s96:P9,s98:r7,s99:_1,s200:Hv,s201:ev,s202:F9,s205:M7,s203:A7,s209:p7,s212:ov,s74:Wl,s75:zl,s76:qm}},tls:Kv,async toRequest(o,a){const s=location.href,u=document.referrer,[h,m]=await Promise.all([s&&Is(s,a),u&&Is(u,a)]);return{url:h,cr:m||void 0,s55:yy(o),s48:iy()}},onGetResponse(o,a){var s,u,h;(function(m,p){const N=kc(m);p&&Z1(p,N)})(a,(h=(u=(s=o.products)===null||s===void 0?void 0:s.identification)===null||u===void 0?void 0:u.data)===null||h===void 0?void 0:h.visitorToken)}}};function Q1(o,a,s){return new Promise((u=>{const[,h,m]=(function(p,N){return p(N)})(Rc,o);if((function(p){return p!==0})(h))return(function(p){return p(!1)})(u);m[(function(p){return p(25)})(xt)]((()=>u(a())),(p=>u(s(p))))}))}const Vy=function(){return{key:"si",sources:{stage2:{s77:Og}}}},Gy=function(o){return{addEvent:(function(a=qf){return s=>{let u=console.log;switch(s.e){case 2:case 5:case 8:case 11:case 14:case 20:u=console.error;break;case 13:{const h=s.result;Object.keys(h).some((m=>"error"in h[m]))&&(u=console.warn);break}case 25:u=s.result.error?console.error:console.log;break;case 17:{const{error:h,stage:m}=s;u=m===0&&ys(h)&&h.message===jf?console.log:console.error}}u.apply(console,(function(h,{e:m,stage:p,...N}){const U=[h,new Date().toISOString().slice(11),Sc(m)];if(p!==void 0)switch(p){case 0:U.push("(fast)");break;case 1:U.push("(final)");break;default:N.stage=p}return U.push(N),U})(a,s))}})(o)}};function Hy(){var o;const a=window;return Sr(["Iterator"in a,a.Error&&"isError"in a.Error,a.Atomics&&"pause"in a.Atomics,((o=a.Document)===null||o===void 0?void 0:o.prototype)&&"fragmentDirective"in a.Document.prototype,a.CSSRule&&!("UNKNOWN_RULE"in a.CSSRule),!("SVGDocument"in a)])>=4}const $y=function(o){return{addEvent:cy(o)}},Ts="API key required",xs="API key not found",Ls="API key expired",ed="Request cannot be parsed",td="Request failed",nd="Request failed to process",rd="Too many requests, rate limit exceeded",od="Not available for this origin",id="Not available with restricted header",jy=Ts,Ky=xs,Wy=Ls;var zy={load:kl,handleAgentData:Dl,defaultEndpoint:gs,defaultTlsEndpoint:vs,ERROR_CLIENT_TIMEOUT:ic,ERROR_NETWORK_CONNECTION:sc,ERROR_NETWORK_ABORT:ac,ERROR_WRONG_REGION:Pf,ERROR_SUBSCRIPTION_NOT_ACTIVE:Ff,ERROR_API_KEY_MISSING:Ts,ERROR_API_KEY_INVALID:xs,ERROR_API_KEY_EXPIRED:Ls,ERROR_BAD_REQUEST_FORMAT:ed,ERROR_BAD_RESPONSE_FORMAT:cc,ERROR_GENERAL_SERVER_FAILURE:td,ERROR_SERVER_TIMEOUT:nd,ERROR_RATE_LIMIT:rd,ERROR_FORBIDDEN_ORIGIN:od,ERROR_FORBIDDEN_HEADER:id,ERROR_UNSUPPORTED_VERSION:Vf,ERROR_INSTALLATION_METHOD_RESTRICTED:Gf,ERROR_FORBIDDEN_ENDPOINT:Hf,ERROR_CSP_BLOCK:uc,ERROR_INTEGRATION_FAILURE:$f,ERROR_INVALID_ENDPOINT:fc,ERROR_NETWORK_RESTRICTED:Kf,ERROR_INVALID_PROXY_INTEGRATION_SECRET:Wf,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:zf,ERROR_HANDLE_AGENT_DATA:lc,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:Zf,ERROR_TOKEN_MISSING:Ts,ERROR_TOKEN_INVALID:xs,ERROR_TOKEN_EXPIRED:Ls}},75:function(e,t,n){n.r(t),n.d(t,{componentsToDebugString:function(){return Qe},default:function(){return ve},getFullscreenElement:function(){return te},getScreenFrame:function(){return at},hashComponents:function(){return P},isAndroid:function(){return ae},isChromium:function(){return R},isDesktopSafari:function(){return $},isEdgeHTML:function(){return f},isGecko:function(){return Y},isTrident:function(){return k},isWebKit:function(){return M},load:function(){return q},loadSources:function(){return de},murmurX64Hash128:function(){return be},prepareForSources:function(){return E},sources:function(){return Me},transformSource:function(){return ge},withIframe:function(){return g}});var r=function(){return r=Object.assign||function(L){for(var re,ee=1,we=arguments.length;ee<we;ee++)for(var Se in re=arguments[ee])Object.prototype.hasOwnProperty.call(re,Se)&&(L[Se]=re[Se]);return L},r.apply(this,arguments)};function c(L,re,ee,we){return new(ee||(ee=Promise))((function(Se,Ne){function Pe(He){try{ce(we.next(He))}catch(ze){Ne(ze)}}function Ve(He){try{ce(we.throw(He))}catch(ze){Ne(ze)}}function ce(He){var ze;He.done?Se(He.value):(ze=He.value,ze instanceof ee?ze:new ee((function(qe){qe(ze)}))).then(Pe,Ve)}ce((we=we.apply(L,[])).next())}))}function i(L,re){var ee,we,Se,Ne,Pe={label:0,sent:function(){if(1&Se[0])throw Se[1];return Se[1]},trys:[],ops:[]};return Ne={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(Ne[Symbol.iterator]=function(){return this}),Ne;function Ve(ce){return function(He){return(function(ze){if(ee)throw new TypeError("Generator is already executing.");for(;Ne&&(Ne=0,ze[0]&&(Pe=0)),Pe;)try{if(ee=1,we&&(Se=2&ze[0]?we.return:ze[0]?we.throw||((Se=we.return)&&Se.call(we),0):we.next)&&!(Se=Se.call(we,ze[1])).done)return Se;switch(we=0,Se&&(ze=[2&ze[0],Se.value]),ze[0]){case 0:case 1:Se=ze;break;case 4:return Pe.label++,{value:ze[1],done:!1};case 5:Pe.label++,we=ze[1],ze=[0];continue;case 7:ze=Pe.ops.pop(),Pe.trys.pop();continue;default:if(!((Se=(Se=Pe.trys).length>0&&Se[Se.length-1])||ze[0]!==6&&ze[0]!==2)){Pe=0;continue}if(ze[0]===3&&(!Se||ze[1]>Se[0]&&ze[1]<Se[3])){Pe.label=ze[1];break}if(ze[0]===6&&Pe.label<Se[1]){Pe.label=Se[1],Se=ze;break}if(Se&&Pe.label<Se[2]){Pe.label=Se[2],Pe.ops.push(ze);break}Se[2]&&Pe.ops.pop(),Pe.trys.pop();continue}ze=re.call(L,Pe)}catch(qe){ze=[6,qe],we=0}finally{ee=Se=0}if(5&ze[0])throw ze[1];return{value:ze[0]?ze[1]:void 0,done:!0}})([ce,He])}}}function d(L,re,ee){for(var we,Se=0,Ne=re.length;Se<Ne;Se++)!we&&Se in re||(we||(we=Array.prototype.slice.call(re,0,Se)),we[Se]=re[Se]);return L.concat(we||Array.prototype.slice.call(re))}typeof SuppressedError=="function"&&SuppressedError;var v="3.4.2";function l(L,re){return new Promise((function(ee){return setTimeout(ee,L,re)}))}function y(L){return!!L&&typeof L.then=="function"}function A(L,re){try{var ee=L();y(ee)?ee.then((function(we){return re(!0,we)}),(function(we){return re(!1,we)})):re(!0,ee)}catch(we){re(!1,we)}}function O(L,re,ee){return ee===void 0&&(ee=16),c(this,void 0,void 0,(function(){var we,Se,Ne,Pe;return i(this,(function(Ve){switch(Ve.label){case 0:we=Array(L.length),Se=Date.now(),Ne=0,Ve.label=1;case 1:return Ne<L.length?(we[Ne]=re(L[Ne],Ne),(Pe=Date.now())>=Se+ee?(Se=Pe,[4,l(0)]):[3,3]):[3,4];case 2:Ve.sent(),Ve.label=3;case 3:return++Ne,[3,1];case 4:return[2,we]}}))}))}function S(L){L.then(void 0,(function(){}))}function I(L,re){L=[L[0]>>>16,65535&L[0],L[1]>>>16,65535&L[1]],re=[re[0]>>>16,65535&re[0],re[1]>>>16,65535&re[1]];var ee=[0,0,0,0];return ee[3]+=L[3]+re[3],ee[2]+=ee[3]>>>16,ee[3]&=65535,ee[2]+=L[2]+re[2],ee[1]+=ee[2]>>>16,ee[2]&=65535,ee[1]+=L[1]+re[1],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[0]+=L[0]+re[0],ee[0]&=65535,[ee[0]<<16|ee[1],ee[2]<<16|ee[3]]}function B(L,re){L=[L[0]>>>16,65535&L[0],L[1]>>>16,65535&L[1]],re=[re[0]>>>16,65535&re[0],re[1]>>>16,65535&re[1]];var ee=[0,0,0,0];return ee[3]+=L[3]*re[3],ee[2]+=ee[3]>>>16,ee[3]&=65535,ee[2]+=L[2]*re[3],ee[1]+=ee[2]>>>16,ee[2]&=65535,ee[2]+=L[3]*re[2],ee[1]+=ee[2]>>>16,ee[2]&=65535,ee[1]+=L[1]*re[3],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[1]+=L[2]*re[2],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[1]+=L[3]*re[1],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[0]+=L[0]*re[3]+L[1]*re[2]+L[2]*re[1]+L[3]*re[0],ee[0]&=65535,[ee[0]<<16|ee[1],ee[2]<<16|ee[3]]}function C(L,re){return(re%=64)==32?[L[1],L[0]]:re<32?[L[0]<<re|L[1]>>>32-re,L[1]<<re|L[0]>>>32-re]:(re-=32,[L[1]<<re|L[0]>>>32-re,L[0]<<re|L[1]>>>32-re])}function F(L,re){return(re%=64)==0?L:re<32?[L[0]<<re|L[1]>>>32-re,L[1]<<re]:[L[1]<<re-32,0]}function j(L,re){return[L[0]^re[0],L[1]^re[1]]}function Q(L){return L=j(L,[0,L[0]>>>1]),L=j(L=B(L,[4283543511,3981806797]),[0,L[0]>>>1]),j(L=B(L,[3301882366,444984403]),[0,L[0]>>>1])}function W(L,re){re=re||0;var ee,we=(L=L||"").length%16,Se=L.length-we,Ne=[0,re],Pe=[0,re],Ve=[0,0],ce=[0,0],He=[2277735313,289559509],ze=[1291169091,658871167];for(ee=0;ee<Se;ee+=16)Ve=[255&L.charCodeAt(ee+4)|(255&L.charCodeAt(ee+5))<<8|(255&L.charCodeAt(ee+6))<<16|(255&L.charCodeAt(ee+7))<<24,255&L.charCodeAt(ee)|(255&L.charCodeAt(ee+1))<<8|(255&L.charCodeAt(ee+2))<<16|(255&L.charCodeAt(ee+3))<<24],ce=[255&L.charCodeAt(ee+12)|(255&L.charCodeAt(ee+13))<<8|(255&L.charCodeAt(ee+14))<<16|(255&L.charCodeAt(ee+15))<<24,255&L.charCodeAt(ee+8)|(255&L.charCodeAt(ee+9))<<8|(255&L.charCodeAt(ee+10))<<16|(255&L.charCodeAt(ee+11))<<24],Ve=C(Ve=B(Ve,He),31),Ne=I(Ne=C(Ne=j(Ne,Ve=B(Ve,ze)),27),Pe),Ne=I(B(Ne,[0,5]),[0,1390208809]),ce=C(ce=B(ce,ze),33),Pe=I(Pe=C(Pe=j(Pe,ce=B(ce,He)),31),Ne),Pe=I(B(Pe,[0,5]),[0,944331445]);switch(Ve=[0,0],ce=[0,0],we){case 15:ce=j(ce,F([0,L.charCodeAt(ee+14)],48));case 14:ce=j(ce,F([0,L.charCodeAt(ee+13)],40));case 13:ce=j(ce,F([0,L.charCodeAt(ee+12)],32));case 12:ce=j(ce,F([0,L.charCodeAt(ee+11)],24));case 11:ce=j(ce,F([0,L.charCodeAt(ee+10)],16));case 10:ce=j(ce,F([0,L.charCodeAt(ee+9)],8));case 9:ce=B(ce=j(ce,[0,L.charCodeAt(ee+8)]),ze),Pe=j(Pe,ce=B(ce=C(ce,33),He));case 8:Ve=j(Ve,F([0,L.charCodeAt(ee+7)],56));case 7:Ve=j(Ve,F([0,L.charCodeAt(ee+6)],48));case 6:Ve=j(Ve,F([0,L.charCodeAt(ee+5)],40));case 5:Ve=j(Ve,F([0,L.charCodeAt(ee+4)],32));case 4:Ve=j(Ve,F([0,L.charCodeAt(ee+3)],24));case 3:Ve=j(Ve,F([0,L.charCodeAt(ee+2)],16));case 2:Ve=j(Ve,F([0,L.charCodeAt(ee+1)],8));case 1:Ve=B(Ve=j(Ve,[0,L.charCodeAt(ee)]),He),Ne=j(Ne,Ve=B(Ve=C(Ve,31),ze))}return Ne=I(Ne=j(Ne,[0,L.length]),Pe=j(Pe,[0,L.length])),Pe=I(Pe,Ne),Ne=I(Ne=Q(Ne),Pe=Q(Pe)),Pe=I(Pe,Ne),("00000000"+(Ne[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ne[1]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[1]>>>0).toString(16)).slice(-8)}function se(L){return parseInt(L)}function ue(L){return parseFloat(L)}function oe(L,re){return typeof L=="number"&&isNaN(L)?re:L}function Ee(L){return L.reduce((function(re,ee){return re+(ee?1:0)}),0)}function Re(L,re){if(re===void 0&&(re=1),Math.abs(re)>=1)return Math.round(L/re)*re;var ee=1/re;return Math.round(L*ee)/ee}function ne(L){return L&&typeof L=="object"&&"message"in L?L:{message:L}}function ie(L){return typeof L!="function"}function de(L,re,ee){var we=Object.keys(L).filter((function(Ne){return!(function(Pe,Ve){for(var ce=0,He=Pe.length;ce<He;++ce)if(Pe[ce]===Ve)return!0;return!1})(ee,Ne)})),Se=O(we,(function(Ne){return(function(Pe,Ve){var ce=new Promise((function(He){var ze=Date.now();A(Pe.bind(null,Ve),(function(){for(var qe=[],et=0;et<arguments.length;et++)qe[et]=arguments[et];var ct=Date.now()-ze;if(!qe[0])return He((function(){return{error:ne(qe[1]),duration:ct}}));var ot=qe[1];if(ie(ot))return He((function(){return{value:ot,duration:ct}}));He((function(){return new Promise((function(rt){var $t=Date.now();A(ot,(function(){for(var ht=[],gt=0;gt<arguments.length;gt++)ht[gt]=arguments[gt];var tn=ct+Date.now()-$t;if(!ht[0])return rt({error:ne(ht[1]),duration:tn});rt({value:ht[1],duration:tn})}))}))}))}))}));return S(ce),function(){return ce.then((function(He){return He()}))}})(L[Ne],re)}));return S(Se),function(){return c(this,void 0,void 0,(function(){var Ne,Pe,Ve,ce;return i(this,(function(He){switch(He.label){case 0:return[4,Se];case 1:return[4,O(He.sent(),(function(ze){var qe=ze();return S(qe),qe}))];case 2:return Ne=He.sent(),[4,Promise.all(Ne)];case 3:for(Pe=He.sent(),Ve={},ce=0;ce<we.length;++ce)Ve[we[ce]]=Pe[ce];return[2,Ve]}}))}))}}function ge(L,re){var ee=function(we){return ie(we)?re(we):function(){var Se=we();return y(Se)?Se.then(re):re(Se)}};return function(we){var Se=L(we);return y(Se)?Se.then(ee):ee(Se)}}function k(){var L=window,re=navigator;return Ee(["MSCSSMatrix"in L,"msSetImmediate"in L,"msIndexedDB"in L,"msMaxTouchPoints"in re,"msPointerEnabled"in re])>=4}function f(){var L=window,re=navigator;return Ee(["msWriteProfilerMark"in L,"MSStream"in L,"msLaunchUri"in re,"msSaveBlob"in re])>=3&&!k()}function R(){var L=window,re=navigator;return Ee(["webkitPersistentStorage"in re,"webkitTemporaryStorage"in re,re.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in L,"BatteryManager"in L,"webkitMediaStream"in L,"webkitSpeechGrammar"in L])>=5}function M(){var L=window,re=navigator;return Ee(["ApplePayError"in L,"CSSPrimitiveValue"in L,"Counter"in L,re.vendor.indexOf("Apple")===0,"getStorageUpdates"in re,"WebKitMediaKeys"in L])>=4}function $(){var L=window;return Ee(["safari"in L,!("DeviceMotionEvent"in L),!("ongestureend"in L),!("standalone"in navigator)])>=3}function Y(){var L,re,ee=window;return Ee(["buildID"in navigator,"MozAppearance"in((re=(L=document.documentElement)===null||L===void 0?void 0:L.style)!==null&&re!==void 0?re:{}),"onmozfullscreenchange"in ee,"mozInnerScreenX"in ee,"CSSMozDocumentRule"in ee,"CanvasCaptureMediaStream"in ee])>=4}function te(){var L=document;return L.fullscreenElement||L.msFullscreenElement||L.mozFullScreenElement||L.webkitFullscreenElement||null}function ae(){var L=R(),re=Y();if(!L&&!re)return!1;var ee=window;return Ee(["onorientationchange"in ee,"orientation"in ee,L&&!("SharedWorker"in ee),re&&/android/i.test(navigator.appVersion)])>=2}function K(L){var re=new Error(L);return re.name=L,re}function g(L,re,ee){var we,Se,Ne;return ee===void 0&&(ee=50),c(this,void 0,void 0,(function(){var Pe,Ve;return i(this,(function(ce){switch(ce.label){case 0:Pe=document,ce.label=1;case 1:return Pe.body?[3,3]:[4,l(ee)];case 2:return ce.sent(),[3,1];case 3:Ve=Pe.createElement("iframe"),ce.label=4;case 4:return ce.trys.push([4,,10,11]),[4,new Promise((function(He,ze){var qe=!1,et=function(){qe=!0,He()};Ve.onload=et,Ve.onerror=function(rt){qe=!0,ze(rt)};var ct=Ve.style;ct.setProperty("display","block","important"),ct.position="absolute",ct.top="0",ct.left="0",ct.visibility="hidden",re&&"srcdoc"in Ve?Ve.srcdoc=re:Ve.src="about:blank",Pe.body.appendChild(Ve);var ot=function(){var rt,$t;qe||((($t=(rt=Ve.contentWindow)===null||rt===void 0?void 0:rt.document)===null||$t===void 0?void 0:$t.readyState)==="complete"?et():setTimeout(ot,10))};ot()}))];case 5:ce.sent(),ce.label=6;case 6:return!((Se=(we=Ve.contentWindow)===null||we===void 0?void 0:we.document)===null||Se===void 0)&&Se.body?[3,8]:[4,l(ee)];case 7:return ce.sent(),[3,6];case 8:return[4,L(Ve,Ve.contentWindow)];case 9:return[2,ce.sent()];case 10:return(Ne=Ve.parentNode)===null||Ne===void 0||Ne.removeChild(Ve),[7];case 11:return[2]}}))}))}function _(L){for(var re=(function(He){for(var ze,qe,et="Unexpected syntax '".concat(He,"'"),ct=/^\s*([a-z-]*)(.*)$/i.exec(He),ot=ct[1]||void 0,rt={},$t=/([.:#][\w-]+|\[.+?\])/gi,ht=function(Nt,lr){rt[Nt]=rt[Nt]||[],rt[Nt].push(lr)};;){var gt=$t.exec(ct[2]);if(!gt)break;var tn=gt[0];switch(tn[0]){case".":ht("class",tn.slice(1));break;case"#":ht("id",tn.slice(1));break;case"[":var It=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(tn);if(!It)throw new Error(et);ht(It[1],(qe=(ze=It[4])!==null&&ze!==void 0?ze:It[5])!==null&&qe!==void 0?qe:"");break;default:throw new Error(et)}}return[ot,rt]})(L),ee=re[0],we=re[1],Se=document.createElement(ee??"div"),Ne=0,Pe=Object.keys(we);Ne<Pe.length;Ne++){var Ve=Pe[Ne],ce=we[Ve].join(" ");Ve==="style"?H(Se.style,ce):Se.setAttribute(Ve,ce)}return Se}function H(L,re){for(var ee=0,we=re.split(";");ee<we.length;ee++){var Se=we[ee],Ne=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Se);if(Ne){var Pe=Ne[1],Ve=Ne[2],ce=Ne[4];L.setProperty(Pe,Ve,ce||"")}}}var J=["monospace","sans-serif","serif"],me=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function ye(L){return L.toDataURL()}var Ue,Ke,st=2500;function at(){var L=this;return(function(){if(Ke===void 0){var re=function(){var ee=ut();_t(ee)?Ke=setTimeout(re,st):(Ue=ee,Ke=void 0)};re()}})(),function(){return c(L,void 0,void 0,(function(){var re;return i(this,(function(ee){switch(ee.label){case 0:return _t(re=ut())?Ue?[2,d([],Ue)]:te()?[4,(we=document,(we.exitFullscreen||we.msExitFullscreen||we.mozCancelFullScreen||we.webkitExitFullscreen).call(we))]:[3,2]:[3,2];case 1:ee.sent(),re=ut(),ee.label=2;case 2:return _t(re)||(Ue=re),[2,re]}var we}))}))}}function ut(){var L=screen;return[oe(ue(L.availTop),null),oe(ue(L.width)-ue(L.availWidth)-oe(ue(L.availLeft),0),null),oe(ue(L.height)-ue(L.availHeight)-oe(ue(L.availTop),0),null),oe(ue(L.availLeft),null)]}function _t(L){for(var re=0;re<4;++re)if(L[re])return!1;return!0}function pt(L){var re;return c(this,void 0,void 0,(function(){var ee,we,Se,Ne,Pe,Ve,ce;return i(this,(function(He){switch(He.label){case 0:for(ee=document,we=ee.createElement("div"),Se=new Array(L.length),Ne={},Rt(we),ce=0;ce<L.length;++ce)(Pe=_(L[ce])).tagName==="DIALOG"&&Pe.show(),Rt(Ve=ee.createElement("div")),Ve.appendChild(Pe),we.appendChild(Ve),Se[ce]=Pe;He.label=1;case 1:return ee.body?[3,3]:[4,l(50)];case 2:return He.sent(),[3,1];case 3:ee.body.appendChild(we);try{for(ce=0;ce<L.length;++ce)Se[ce].offsetParent||(Ne[L[ce]]=!0)}finally{(re=we.parentNode)===null||re===void 0||re.removeChild(we)}return[2,Ne]}}))}))}function Rt(L){L.style.setProperty("display","block","important")}function Pt(L){return matchMedia("(inverted-colors: ".concat(L,")")).matches}function vt(L){return matchMedia("(forced-colors: ".concat(L,")")).matches}function w(L){return matchMedia("(prefers-contrast: ".concat(L,")")).matches}function x(L){return matchMedia("(prefers-reduced-motion: ".concat(L,")")).matches}function V(L){return matchMedia("(dynamic-range: ".concat(L,")")).matches}var Z=Math,fe=function(){return 0},pe={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Me={fonts:function(){return g((function(L,re){var ee=re.document,we=ee.body;we.style.fontSize="48px";var Se=ee.createElement("div"),Ne={},Pe={},Ve=function(qe){var et=ee.createElement("span"),ct=et.style;return ct.position="absolute",ct.top="0",ct.left="0",ct.fontFamily=qe,et.textContent="mmMwWLliI0O&1",Se.appendChild(et),et},ce=J.map(Ve),He=(function(){for(var qe={},et=function(rt){qe[rt]=J.map((function($t){return(function(ht,gt){return Ve("'".concat(ht,"',").concat(gt))})(rt,$t)}))},ct=0,ot=me;ct<ot.length;ct++)et(ot[ct]);return qe})();we.appendChild(Se);for(var ze=0;ze<J.length;ze++)Ne[J[ze]]=ce[ze].offsetWidth,Pe[J[ze]]=ce[ze].offsetHeight;return me.filter((function(qe){return et=He[qe],J.some((function(ct,ot){return et[ot].offsetWidth!==Ne[ct]||et[ot].offsetHeight!==Pe[ct]}));var et}))}))},domBlockers:function(L){var re=(L===void 0?{}:L).debug;return c(this,void 0,void 0,(function(){var ee,we,Se,Ne,Pe;return i(this,(function(Ve){switch(Ve.label){case 0:return M()||ae()?(ce=atob,ee={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',ce("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",ce("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",ce("LnNwb25zb3JpdA=="),".ylamainos",ce("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",ce("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",ce("LmhlYWRlci1ibG9ja2VkLWFk"),ce("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",ce("I2FkXzMwMFgyNTA="),ce("I2Jhbm5lcmZsb2F0MjI="),ce("I2NhbXBhaWduLWJhbm5lcg=="),ce("I0FkLUNvbnRlbnQ=")],adGuardChinese:[ce("LlppX2FkX2FfSA=="),ce("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",ce("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),ce("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",ce("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",ce("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",ce("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),ce("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),ce("LmFkZ29vZ2xl"),ce("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[ce("YW1wLWF1dG8tYWRz"),ce("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",ce("I2FkX2ludmlld19hcmVh")],adGuardRussian:[ce("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),ce("LnJlY2xhbWE="),'div[id^="smi2adblock"]',ce("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[ce("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),ce("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",ce("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),ce("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),ce("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",ce("I3Jla2xhbWk="),ce("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),ce("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),ce("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[ce("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",ce("LndpZGdldF9wb19hZHNfd2lkZ2V0"),ce("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",ce("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[ce("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),ce("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",ce("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",ce("I3Jla2xhbW5pLWJveA=="),ce("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",ce("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[ce("I2FkdmVydGVudGll"),ce("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",ce("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",ce("LnNwb25zb3JsaW5rZ3J1ZW4="),ce("I3dlcmJ1bmdza3k="),ce("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),ce("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[ce("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",ce("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[ce("LnJla2xhbW9zX3RhcnBhcw=="),ce("LnJla2xhbW9zX251b3JvZG9z"),ce("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),ce("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),ce("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[ce("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[ce("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),ce("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",ce("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[ce("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),ce("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),ce("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",ce("LmFkX19tYWlu"),ce("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[ce("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[ce("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),ce("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[ce("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),ce("I2xpdmVyZUFkV3JhcHBlcg=="),ce("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),ce("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[ce("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",ce("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),ce("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),ce("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[ce("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),ce("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),ce("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",ce("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),ce("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),ce("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),ce("ZGl2I3NrYXBpZWNfYWQ=")],ro:[ce("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),ce("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),ce("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[ce("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),ce("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),ce("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",ce("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),ce("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",ce("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},we=Object.keys(ee),[4,pt((Pe=[]).concat.apply(Pe,we.map((function(He){return ee[He]}))))]):[2,void 0];case 1:return Se=Ve.sent(),re&&(function(He,ze){for(var qe="DOM blockers debug:\n```",et=0,ct=Object.keys(He);et<ct.length;et++){var ot=ct[et];qe+=`
|
|
12
|
-
`.concat(ot,":");for(var rt=0,$t=He[ot];rt<$t.length;rt++){var
|
|
13
|
-
`.concat(ze[
|
|
14
|
-
`)},we):ee;var we,Se}),2)}function P(L){return W((function(
|
|
10
|
+
\`\`\``)})(a,h);const m=s.filter((p=>{const N=a[p];return O(N.map((U=>h[U])))>.6*N.length}));return m.sort(),m},we=function(){return navigator.oscpu},Se=function(){const o=navigator,a=[],s=o.language||o.userLanguage||o.browserLanguage||o.systemLanguage;if(s!==void 0&&a.push([s]),Array.isArray(o.languages))f()&&(function(){const u=window;return O([!("MediaSettingsRange"in u),"RTCEncodedAudioFrame"in u,""+u.Intl=="[object Intl]",""+u.Reflect=="[object Reflect]"])>=3})()||a.push(o.languages);else if(typeof o.languages=="string"){const u=o.languages;u&&a.push(u.split(","))}return a},Ne=function(){return window.screen.colorDepth},Pe=function(){return A(y(navigator.deviceMemory),void 0)},Ve=function(){const o=A(l(navigator.hardwareConcurrency),void 0);return o!==void 0&&$()&&Z()?o>=8?8:4:o},ue=function(){var o;const a=(o=window.Intl)===null||o===void 0?void 0:o.DateTimeFormat;if(a){const u=new a().resolvedOptions().timeZone;if(u)return u}const s=-(function(){const u=new Date().getFullYear();return Math.max(y(new Date(u,0,1).getTimezoneOffset()),y(new Date(u,6,1).getTimezoneOffset()))})();return`UTC${s>=0?"+":""}${s}`},He=function(){try{return!!window.sessionStorage}catch{return!0}},ze=function(){try{return!!window.localStorage}catch{return!0}},qe=function(){return!!window.openDatabase},et=function(){return navigator.cpuClass},ct=function(){const{platform:o}=navigator;return o==="MacIntel"&&R()&&!M()?(function(){if(navigator.platform==="iPad")return!0;const a=screen,s=a.width/a.height;return O(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,s>.65&&s<1.53])>=2})()?"iPad":"iPhone":o},ot=function(){const o=navigator.plugins;if(!o)return;const a=[];for(let s=0;s<o.length;++s){const u=o[s];if(!u)continue;const h=[];for(let m=0;m<u.length;++m){const p=u[m];h.push({type:p.type,suffixes:p.suffixes})}a.push({name:u.name,description:u.description,mimeTypes:h})}return a},rt=function(){const o=navigator;let a,s=0;o.maxTouchPoints!==void 0?s=l(o.maxTouchPoints):o.msMaxTouchPoints!==void 0&&(s=o.msMaxTouchPoints);try{document.createEvent("TouchEvent"),a=!0}catch{a=!1}return{maxTouchPoints:s,touchEvent:a,touchStart:"ontouchstart"in window}},$t=function(){return navigator.vendor||""},pt=function(){const o=[];for(const a of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const s=window[a];s&&typeof s=="object"&&o.push(a)}return o.sort()},gt=function(){const o=document;try{o.cookie="cookietest=1; SameSite=Strict;";const a=o.cookie.indexOf("cookietest=")!==-1;return o.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",a}catch{return!1}},tn=function(){for(const o of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${o})`).matches)return o},It=function(){return!!Pt("inverted")||!Pt("none")&&void 0},Nt=function(){return!!vt("active")||!vt("none")&&void 0},lr=function(){if(matchMedia("(min-monochrome: 0)").matches){for(let o=0;o<=100;++o)if(matchMedia(`(max-monochrome: ${o})`).matches)return o;throw new Error("Too high value")}},kt=function(){return w("no-preference")?0:w("high")||w("more")?1:w("low")||w("less")?-1:w("forced")?10:void 0},Mt=function(){return!!x("reduce")||!x("no-preference")&&void 0},Hr=function(){return!!V("reduce")||!V("no-preference")&&void 0},zt=function(){return!!ne("high")||!ne("standard")&&void 0},Zt=function(){const o=J.acos||pe,a=J.acosh||pe,s=J.asin||pe,u=J.asinh||pe,h=J.atanh||pe,m=J.atan||pe,p=J.sin||pe,N=J.sinh||pe,U=J.cos||pe,G=J.cosh||pe,T=J.tan||pe,D=J.tanh||pe,z=J.exp||pe,Y=J.expm1||pe,he=J.log1p||pe;return{acos:o(.12312423423423424),acosh:a(1e308),acoshPf:(_e=1e154,J.log(_e+J.sqrt(_e*_e-1))),asin:s(.12312423423423424),asinh:u(1),asinhPf:J.log(1+J.sqrt(2)),atanh:h(.5),atanhPf:J.log(3)/2,atan:m(.5),sin:p(-1e300),sinh:N(1),sinhPf:J.exp(1)-1/J.exp(1)/2,cos:U(10.000000000123),cosh:G(1),coshPf:(J.exp(1)+1/J.exp(1))/2,tan:T(-1e300),tanh:D(1),tanhPf:(J.exp(2)-1)/(J.exp(2)+1),exp:z(1),expm1:Y(1),expm1Pf:J.exp(1)-1,log1p:he(10),log1pPf:J.log(11),powPI:J.pow(J.PI,-100)};var _e},fs=function(){return navigator.pdfViewerEnabled},Yt=function(){const o=new Float32Array(1),a=new Uint8Array(o.buffer);return o[0]=1/0,o[0]=o[0]-o[0],a[3]},Xt=function(){var o;const a=document.createElement("a"),s=(o=a.attributionSourceId)!==null&&o!==void 0?o:a.attributionsourceid;return s===void 0?void 0:String(s)},zo=function(){if(!ce()&&!R())return-2;if(!window.AudioContext)return-1;const o=new AudioContext().baseLatency;return o==null?-1:isFinite(o)?o:-3},Zo=function(){if(!window.Intl)return-1;const o=window.Intl.DateTimeFormat;if(!o)return-2;const a=o().resolvedOptions().locale;return a||a===""?a:-3},Yo=function({cache:o}){var a,s,u,h,m,p;const N=b(o);if(!N)return-1;if(!oe(N))return-2;const U=L()?null:N.getExtension(E);return{version:((a=N.getParameter(N.VERSION))===null||a===void 0?void 0:a.toString())||"",vendor:((s=N.getParameter(N.VENDOR))===null||s===void 0?void 0:s.toString())||"",vendorUnmasked:U?(u=N.getParameter(U.UNMASKED_VENDOR_WEBGL))===null||u===void 0?void 0:u.toString():"",renderer:((h=N.getParameter(N.RENDERER))===null||h===void 0?void 0:h.toString())||"",rendererUnmasked:U?(m=N.getParameter(U.UNMASKED_RENDERER_WEBGL))===null||m===void 0?void 0:m.toString():"",shadingLanguageVersion:((p=N.getParameter(N.SHADING_LANGUAGE_VERSION))===null||p===void 0?void 0:p.toString())||""}},Xo=function({cache:o}){const a=b(o);if(!a)return-1;if(!oe(a))return-2;const s=a.getSupportedExtensions(),u=a.getContextAttributes(),h=[],m=[],p=[],N=[],U=[];if(u)for(const T of Object.keys(u))m.push(`${T}=${u[T]}`);const G=ve(a);for(const T of G){const D=a[T];p.push(`${T}=${D}${Me.has(D)?`=${a.getParameter(D)}`:""}`)}if(s)for(const T of s){if(T===E&&L()||T==="WEBGL_polygon_mode"&&(f()||R()))continue;const D=a.getExtension(T);if(D)for(const z of ve(D)){const Y=D[z];N.push(`${z}=${Y}${tt.has(Y)?`=${a.getParameter(Y)}`:""}`)}else h.push(T)}for(const T of Qe)for(const D of P){const z=X(a,T,D);U.push(`${T}.${D}=${z.join(",")}`)}return N.sort(),p.sort(),{contextAttributes:m,parameters:p,shaderPrecisions:U,extensions:s,extensionParameters:N,unsupportedExtensions:h}},dn=function(o,a){const s=(function(z){const Y=new Uint8Array(z.length);for(let he=0;he<z.length;he++){const _e=z.charCodeAt(he);if(_e>127)return new TextEncoder().encode(z);Y[he]=_e}return Y})(o);a=a||0;const u=[0,s.length],h=u[1]%16,m=u[1]-h,p=[0,a],N=[0,a],U=[0,0],G=[0,0];let T;for(T=0;T<m;T+=16)U[0]=s[T+4]|s[T+5]<<8|s[T+6]<<16|s[T+7]<<24,U[1]=s[T]|s[T+1]<<8|s[T+2]<<16|s[T+3]<<24,G[0]=s[T+12]|s[T+13]<<8|s[T+14]<<16|s[T+15]<<24,G[1]=s[T+8]|s[T+9]<<8|s[T+10]<<16|s[T+11]<<24,I(U,ae),B(U,31),I(U,fe),F(p,U),B(p,27),S(p,N),I(p,ie),S(p,Ee),I(G,fe),B(G,33),I(G,ae),F(N,G),B(N,31),S(N,p),I(N,ie),S(N,Re);U[0]=0,U[1]=0,G[0]=0,G[1]=0;const D=[0,0];switch(h){case 15:D[1]=s[T+14],C(D,48),F(G,D);case 14:D[1]=s[T+13],C(D,40),F(G,D);case 13:D[1]=s[T+12],C(D,32),F(G,D);case 12:D[1]=s[T+11],C(D,24),F(G,D);case 11:D[1]=s[T+10],C(D,16),F(G,D);case 10:D[1]=s[T+9],C(D,8),F(G,D);case 9:D[1]=s[T+8],F(G,D),I(G,fe),B(G,33),I(G,ae),F(N,G);case 8:D[1]=s[T+7],C(D,56),F(U,D);case 7:D[1]=s[T+6],C(D,48),F(U,D);case 6:D[1]=s[T+5],C(D,40),F(U,D);case 5:D[1]=s[T+4],C(D,32),F(U,D);case 4:D[1]=s[T+3],C(D,24),F(U,D);case 3:D[1]=s[T+2],C(D,16),F(U,D);case 2:D[1]=s[T+1],C(D,8),F(U,D);case 1:D[1]=s[T],F(U,D),I(U,ae),B(U,31),I(U,fe),F(p,U)}return F(p,u),F(N,u),S(p,N),S(N,p),W(p),W(N),S(p,N),S(N,p),("00000000"+(p[0]>>>0).toString(16)).slice(-8)+("00000000"+(p[1]>>>0).toString(16)).slice(-8)+("00000000"+(N[0]>>>0).toString(16)).slice(-8)+("00000000"+(N[1]>>>0).toString(16)).slice(-8)},qo="awesomium",Jo="cef",Qo="cefsharp",ei="coachjs",ti="fminer",ni="geb",ri="nightmarejs",oi="phantomas",ii="phantomjs",si="rhino",ai="selenium",ci="webdriverio",ui="webdriver",fi="headless_chrome";class qt extends Error{constructor(a,s){super(s),this.state=a,this.name="BotdError",Object.setPrototypeOf(this,qt.prototype)}}function Tm(o,a){return o.indexOf(a)!==-1}function xm(o,a){if("find"in o)return o.find(a);for(let s=0;s<o.length;s++)if(a(o[s],s,o))return o[s]}function Of(o){return Object.getOwnPropertyNames(o)}function Nf(o,...a){for(const s of a)if(typeof s=="string"){if(Tm(o,s))return!0}else if(xm(o,(u=>s.test(u)))!=null)return!0;return!1}const Lm=function(){return navigator.userAgent},Cm=function(){const o=navigator.appVersion;if(o==null)throw new qt(-1,"navigator.appVersion is undefined");return o},Mm=function(){if(navigator.connection===void 0)throw new qt(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new qt(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},Bm=function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},km=function(){if(navigator.plugins===void 0)throw new qt(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new qt(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},Dm=function(){try{null[0]()}catch(o){if(o instanceof Error&&o.stack!=null)return o.stack.toString()}throw new qt(-3,"errorTrace signal unexpected behaviour")},Um=function(){const{productSub:o}=navigator;if(o===void 0)throw new qt(-1,"navigator.productSub is undefined");return o},Pm=function(){if(window.external===void 0)throw new qt(-1,"window.external is undefined");const{external:o}=window;if(typeof o.toString!="function")throw new qt(-2,"window.external.toString is not a function");return o.toString()},Fm=function(){if(navigator.mimeTypes===void 0)throw new qt(-1,"navigator.mimeTypes is undefined");const{mimeTypes:o}=navigator;let a=Object.getPrototypeOf(o)===MimeTypeArray.prototype;for(let s=0;s<o.length;s++)a&&(a=Object.getPrototypeOf(o[s])===MimeType.prototype);return a},Vm=async function(){if(window.Notification===void 0)throw new qt(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new qt(-1,"navigator.permissions is undefined");const{permissions:o}=navigator;if(typeof o.query!="function")throw new qt(-2,"navigator.permissions.query is not a function");try{const a=await o.query({name:"notifications"});return window.Notification.permission==="denied"&&a.state==="prompt"}catch{throw new qt(-3,"notificationPermissions signal unexpected behaviour")}},Gm=function(){if(document.documentElement===void 0)throw new qt(-1,"document.documentElement is undefined");const{documentElement:o}=document;if(typeof o.getAttributeNames!="function")throw new qt(-2,"document.documentElement.getAttributeNames is not a function");return o.getAttributeNames()},Hm=function(){if(Function.prototype.bind===void 0)throw new qt(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},$m=function(){const{process:o}=window,a="window.process is";if(o===void 0)throw new qt(-1,`${a} undefined`);if(o&&typeof o!="object")throw new qt(-3,`${a} not an object`);return o},jm=function(){const o={[qo]:{window:["awesomium"]},[Jo]:{window:["RunPerfTest"]},[Qo]:{window:["CefSharp"]},[ei]:{window:["emit"]},[ti]:{window:["fmget_targets"]},[ni]:{window:["geb"]},[ri]:{window:["__nightmare","nightmare"]},[oi]:{window:["__phantomas"]},[ii]:{window:["callPhantom","_phantom"]},[si]:{window:["spawn"]},[ai]:{window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},[ci]:{window:["wdioElectron"]},[ui]:{window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},[fi]:{window:["domAutomation","domAutomationController"]}};let a;const s={},u=Of(window);let h=[];for(a in window.document!==void 0&&(h=Of(window.document)),o){const m=o[a];if(m!==void 0){const p=m.window!==void 0&&Nf(u,...m.window),N=!(m.document===void 0||!h.length)&&Nf(h,...m.document);s[a]=p||N}}return s};function Km({cache:o,esc:a=!0}){const s=function(m,p){return m(p)};if(!a)return{s:-5,v:null};const u={s:-2,v:null},h=s(ul,o);return s(gg,h).then((m=>{(function(p,N,U){p(N,U)})(ls,u,m)})).catch((m=>ls(u,wc(m)))),u}function Za(o,a,s){const u=new Error(o);return a!==void 0&&(u.requestId=a),s!==void 0&&(u.raw=s),u}function Wm(o){const a=function(m,p){return m<p},s=function(m,p){return m+p},u=function(m,p){return m%p},h=function(m,p){return m-p};for(let m=0;a(m,o.length);m++)o[m]=s(65,u(o[m],h(122,65)))}function ls(o,a){for(const s of Object.keys(o))delete o[s];Object.assign(o,a)}function $r(o){return o.then(void 0,(()=>{})),o}async function zm(){const o=function(h){return h()},a=await o(l1);let s=null;if(!(function(h){return h===0})((function(h,m){return h(m,453955339)})(Ae,a)))return a;if(s=(function(h,m){return h(m,1801730948)})(Ae,a),!(function(h){return h()})(eg))return{s:-1,v:null};const u=o(og);return u?{s:0,v:[s,u]}:{s:-5,v:null}}function jr(o){return o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}function Ya(o,a){const s=o.join(""),u=s.split(""),h=Array(s.length);for(let m=0;m<h.length;++m)h[m]=u.splice(a[m%a.length],1);return h.join("")}function Tf(){const o=function(a,s){return a(s)};if(!(function(a){return a in window})(o(Dt,1)))return!1;try{return new window[o(Dt,1)],!0}catch(a){if((function(s){return s instanceof Error})(a)&&(function(s,u){return s===u})(a.name,(function(s){return s(2)})(Dt)))return!1;throw a}}function ds(o){var a;const s=(a=performance.timeOrigin)!==null&&a!==void 0?a:Date.now()-performance.now();return Math.round(o.getTime()-s)}function Zm(o){return o&&typeof o=="object"?o:o!=null?{tag:o}:void 0}function Ym(){const o=/{(.*?)}/.exec(location.hash);return!!o&&Mn(o[1])===3025844545}function Xm(o){let a="";for(let s=128512;s<=128591;s++){const u=String.fromCodePoint(s);a+=u}return nr(((s,u)=>{const h=u.document.createElement("span");h.style.whiteSpace="nowrap",h.innerText=a,u.document.body.append(h);const m=K1(h,u);return u.document.body.removeChild(h),{s:0,v:m}}),o.sis)}function qm(o){const a=o.filter((u=>Mn(u.name.slice(0,c1))===gv)),s=[];if(a.length>0){const u=new Map;a.forEach((h=>{const m=h.name.codePointAt(c1);if(m!==void 0){const p=u.get(m)||0;u.set(m,p+1)}})),u.forEach(((h,m)=>{s.push(m,h)}))}return{s:o.length?0:1,v:s}}function hs(){return Ya([Nr(o=new Image().style,2882756133),Nr(o,3858258232)],[18,23,22,11,23,17,3,20,4,22,19,11,25,13,23,22,7,7,17,18,4,18,11,8,11,8,3,5,2,4,3,3,5,6,5,3,1,2,2,0,0]);var o}function Jm(o,a,s,u,h,m){return Ao(a,(()=>({e:9,tryNumber:h,url:u,timeout:o})),(({status:p,getHeader:N,body:U})=>({e:10,tryNumber:h,status:p,retryAfter:N("retry-after"),body:U})),(p=>({e:11,tryNumber:h,error:p})),(()=>O1({url:u,timeout:o,abort:m,container:s})))}function xf(){const o=window,a=o[ol];return o[ol]=typeof a=="string"?a:hi(10)}function Qm({cache:o}){const a=b(o);return a?((function(s){s.clearColor(0,0,1,1);const u=s.createProgram();if(!u)return;function h(N,U){const G=s.createShader(35633-N);u&&G&&(s.shaderSource(G,U),s.compileShader(G),s.attachShader(u,G))}h(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),h(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),s.linkProgram(u),s.useProgram(u),s.enableVertexAttribArray(0);const m=s.getUniformLocation(u,"t"),p=s.createBuffer();s.bindBuffer(34962,p),s.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),s.vertexAttribPointer(0,2,5126,!1,0,0),s.clear(16384),s.uniform1f(m,3.65),s.drawArrays(4,0,3)})(a),{s:0,v:dn(a.canvas.toDataURL())}):{s:-1,v:null}}function hn(o,a){return de(o,(s=>({s:s==null?a:0,v:s??null})))}function ps(o){if(typeof TextDecoder=="function"){const s=new TextDecoder().decode(o);if(s)return s}const a=jr(o);return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))}const Xa="0123456789abcdef",qa=65535;function eg(){const o=function(a,s){return a(s)};return o(je,0)&&navigator[o(je,0)]}function Ja(o,a,s,u,h,m){var p;const N=[];for(const U of o){const G=U.event;G.e!==s&&G.e!==u&&G.e!==h||G.stage===m&&((N[p=G.tryNumber]||(N[p]={}))[G.e]=U)}return N.map((U=>{var G,T,D,z,Y,he;const _e=(G=U[s])===null||G===void 0?void 0:G.timestamp,Be=(D=(T=U[u])===null||T===void 0?void 0:T.timestamp)!==null&&D!==void 0?D:(z=U[h])===null||z===void 0?void 0:z.timestamp,Te=(Y=U[s])===null||Y===void 0?void 0:Y.event.url,xe=(he=U[h])===null||he===void 0?void 0:he.event.error;return _e&&Be&&Te?_l(Te,_e,Be,xe,a[Te]):null})).filter((U=>!!U))}let Qa;function Jt(o,a){let s;return u=>(s||(s=(function(h,m){return vi(Nc(new Uint32Array(h),[],m))})(o,a)),Kr(s[u]))}function tg(o){if(typeof o!="object"||!o)return o;const a=o.modules;return a instanceof Array?{...o,modules:a.map((s=>{if(typeof s!="object"||!s)return s;const{key:u}=s;return typeof u=="string"?{key:u}:s}))}:o}function ng(o,a){return Object.prototype.hasOwnProperty.call(o,a)}function Lf(o){return{s:0,v:o}}async function rg(o){return nr(((a,s)=>{const u=s.document.createElement("div");u.style.border=".5px dotted transparent",s.document.body.appendChild(u);const h=u.offsetHeight;return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function og(){const o=function(a,s){return a(s)};return document[o(je,1)](o(je,2))[o(je,3)]((function(a){return a(4)})(je))}function ig(){const o=function(a,s,u){return a(s,u)};return(function(a){return a in navigator})((function(a){return a(1)})(Vn))&&o(Ae,navigator,770559087)&&(function(a,s){return a===s})(typeof o(Ae,o(Ae,navigator,770559087),616412651),(function(a){return a(2)})(Vn))}function sg(){const{performance:o}=window;if(!o?.now)return{s:-1,v:null};let a=1,s=1,u=o.now(),h=u;for(let m=0;m<5e4;m++)if((u=h)<(h=o.now())){const p=h-u;p>a?p<s&&(s=p):p<a&&(s=a,a=p)}return{s:0,v:[a,s]}}function ag(){const o=function(s,u,h){return s(u,h)},a=function(s,u,h){return s(u,h)};return a(Dn,(function(s){return s(250,{s:-2,v:null})})(Nn),(async()=>{const s=o(Ae,navigator,1417288500);return!((function(u){return u===null})(s)||(function(u){return u===void 0})(s))&&a(Ae,s,3686698663)?await o(Ae,s,3686698663)().then((()=>({s:0,v:""})),(u=>({s:0,v:Ae(u,3065852031)}))):{s:-1,v:null}}))}const ec=new Uint32Array(2);async function Cf(){const o=function(u){return u()},a=function(u){return u()},s=function(u,h,m){return u(h,m)};return await s(Dn,s(Nn,iy,{s:-2,v:null}),(async()=>o(B1)?o(Tf)?{s:0,v:await a(w7)}:{s:-1,v:null}:{s:-3,v:null}))}function cg(){const o=window;return Sr(["mediaSession"in navigator,"BigInt64Array"in o,"FormDataEvent"in o,"ImageBitmap"in o,"WebGL2RenderingContext"in o,"onclose"in o])>=4}async function ms(o,a,s){const u=function(h,m,p,N){return h(m,p,N)};for(const h of o)try{return!!await u(Al,h,a,s)}catch{}return!1}const Mf=new Uint8Array(1);function li(o,a){const s=new Error(a);return s.name=o,s}function Bf(o){return o.arr.subarray(0,o.len)}function kf(){return St(30)}function ug(){const o=function(N,U,G){return N(U,G)},a=function(N,U){return N===U},s=function(N,U,G){return N(U,G)},u=o(Ae,window,4177808745);if(!(!(a(u,null)||a(u,void 0))&&o(Ae,u,1108488788)))return{s:-1,v:null};const h=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10],m=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];let p=0;for(const N of m)p<<=1,p|=s(Ae,u,1108488788)(Uint8Array.of(...h,...N))?1:0;return{s:0,v:p}}async function fg(){const o=function(m){return m()},a=function(m,p,N,U){return m(p,N,U)},s=function(m,p){return m(p)},u=function(m,p,N,U){return m(p,N,U)},h=function(m,p){return m(p)};if(o(Dg))return!(function(m,p){return m in p})((function(m){return m(19)})(xt),window[(function(m){return m(20)})(xt)][(function(m){return m(21)})(xt)]);if(o(cg)){const[m,p]=await Promise.all([a(nd,s(xt,22),(()=>!0),(()=>!1)),u(nd,h(xt,23),(()=>!1),(N=>N instanceof Error&&N.name===xt(24)))]);return(function(N,U){return N&&U})(m,p)}return!1}function lg(){const o=function(T,D){return T(D)},a=function(T,D){return T(D)},s=function(T,D){return T in D},u=function(T,D){return T(D)},h=function(T,D){return T in D},m=function(T,D){return T(D)},p=function(T,D){return T(D)},N=function(T,D){return T in D};var U,G;if(!(function(T){return T()})(f))return o(_c,!1);try{const T=window,D=(function(Y){return Y(Navigator,2741656292)})(Ae),z=((function(Y){return Y===null})(G=(function(Y){return Y===null})(U=document[o(yo,0)])||(function(Y){return Y===void 0})(U)?void 0:(function(Y,he){return Y(he,3217087507)})(Ae,U))||(function(Y){return Y===void 0})(G)?void 0:G.call(U))||[];return a(_c,(function(Y){return Y>=2})(o(Sr,[s(u(yo,1),D),h(m(yo,2),T),h(o(yo,3),T),p(yo,4).some((Y=>z.includes(Y))),!N(u(yo,5),D)])))}catch{return a(_c,!1)}}function dg(o){if(o)return{p:o.path?1:void 0,q:o.query?1:void 0,f:o.fragment?1:void 0}}const hg=Array.isArray;var tc="3.12.9";const gs={default:"endpoint"},Df={default:"tEndpoint"},vs={default:"tlsEndpoint"},nc="_vid";function ys(o){return o instanceof Error||o!==null&&typeof o=="object"&&"name"in o}function pg(o){const a=function(m,p){return m(p)},s=function(m,p,N){return m(p,N)},u=function(m,p){return m(p)},h=function(m,p){return m(p)};return(function(m,p,N){return m(p,N)})(nr,((m,p)=>{const N=new Promise((U=>{const G=function(D,z){return a(D,z)};let T;(function(D){return D()})(f)?(T=new Error,T.name=" ",s(Ae,Object,1973166116)(T,u(Zr,0),{get:U.bind(null,!0)})):(T=s(Ae,p[u(Zr,1)],1297038992)(u(Zr,2)),T.toString=()=>"",(function(D){return D(Object,1973166116)})(Ae)(T,a(Zr,3),{get:()=>{G(U,!0);const D=new Error;throw D.name="",D}})),p[h(Zr,4)](p[h(Zr,5)].debug,0,T),p[(function(D){return D(4)})(Zr)]((()=>{(function(D,z){(function(Y,he){Y(he)})(D,z)})(U,!1)}))}));return u($r,N).then((U=>({s:0,v:U})))}),(function(m,p){return m(p,3569745779)})(Ae,o))}function ws(o,a){const s={},u={};for(const[h,m]of Object.entries(o))a.includes(h)?s[h]=m:u[h]=m;return{picked:s,rest:u}}function mg(){const o=function(m){return m()},a=function(m,p,N){return m(p,N)},s="test";if(!o(R)||o(dv))return{s:-1,v:null};const u=(function(m){return m(window,693717494)})(Ae),h=a(Ae,window,1703339950);try{(function(m){m(null,null,null,null)})(u)}catch{return{s:0,v:!0}}try{return a(Ae,h,2330630162)(s,"1"),a(Ae,h,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function Kr(o){if(o instanceof Array)return o.map(Kr);if(o&&typeof o=="object"){const a={};for(const s of Object.keys(o))a[s]=Kr(o[s]);return a}return o}function Uf(o,a,s){const u=function(h,m){return h+m};return u(a,Math.floor((function(h,m){return h*m})((function(h){return h/256})(o),u((function(h,m){return h-m})(s,a),1))))}async function gg(o){const a=function(m,p,N){return m(p,N)},s=function(m,p){return m(p)},u=await(function(m,p){return m(p,!1)})(V1,o);switch(a(Ae,u,453955339)){case-3:return{s:-4,v:null};case-1:return{s:-1,v:null};case-2:return{s:-3,v:null}}const h=(function(m,p){return m(p)})(vo,s(Yr,0));return{s:0,v:s(Gn,await a(uy,(function(m,p){return m(p,1801730948)})(Ae,u),h))}}function vg(o,a){const s=function(h,m){return h===m};var u;try{return(function(h){return h===null})(u=(function(h,m){return h(m,34843658)})(Ae,o))||s(u,void 0)||u.call(o,a||Math.random().toString()),0}catch(h){if((function(m){return m instanceof Error})(h)&&s(h.name,M1))return-7;throw h}}function rc(o,a){return new Promise(((s,u)=>{let h=!1;a?.then((()=>h=!0),(()=>h=!0)),(typeof o=="function"?rc(Promise.resolve(),a).then(o):o).then((m=>{h||s(m)}),(m=>{h||u(m)}))}))}function yg(){return(function(a,s){return a==s})(typeof navigator[o=Pn,o(1)],(function(a){return a(4)})(Pn));var o}const oc=new Uint8Array([110,117,108,108]),Pf=new Uint8Array([116,114,117,101]),Ff=new Uint8Array([102,97,108,115,101]),Vf={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},wg=(()=>{const o=new Uint8Array(128);for(const[a,s]of Object.entries(Vf))o[s.charCodeAt(0)]=a.charCodeAt(0);return o})(),_g=/[\x00-\x1F"\\]/g,ic="Client timeout",sc="Network connection error",ac="Network request aborted",cc="Response cannot be parsed",uc="Blocked by CSP",fc="The endpoint parameter is not a valid URL",lc="Handle on demand agent data error";function Eg(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}async function Rg(){const o=function(_e,Be,Te){return _e(Be,Te)},a=function(_e,Be){return _e(Be)},s=function(_e,Be,Te){return _e(Be,Te)},u=function(_e,Be,Te){return _e(Be,Te)},h=function(_e,Be){return _e(Be)},m=function(_e,Be){return _e(Be)},p=function(_e,Be,Te){return _e(Be,Te)},N=function(_e,Be){return _e!==Be},U=function(_e,Be,Te){return _e(Be,Te)},G=function(_e,Be){return _e===Be},T=function(_e,Be){return _e!==Be},D=p(Ae,navigator,701619454);if(!D||N(typeof D,h(or,0))||N(typeof U(Ae,D,2758837156),h(or,1)))return{s:-1,v:null};const z=Math.random().toString().split(".")[1],Y=await p(Ae,D,2758837156)(z),he=U(Ae,Y,1915421369);if(G(he,void 0)||(function(_e,Be){return _e!==Be})(typeof(function(_e,Be){return _e(Be,2758837156)})(Ae,he),m(or,1))||T(typeof(function(_e,Be){return _e(Be,3538568711)})(Ae,Y),(function(_e){return _e(1)})(or)))return{s:-1,v:null};try{const _e=await new Promise(((Te,xe)=>{try{const Fe=s(Ae,he,2758837156)("1");Fe[h(or,2)]=()=>{o(Ae,o(Ae,Fe,325763347),138212912)("s",a(or,3))},Fe[h(or,4)]=async()=>{o(Ae,s(Ae,Fe,325763347),318865860)(),(function(ke,Ce){ke(Ce)})(Te,await u(Ae,Y,3538568711)())},Fe[a(or,5)]=()=>{a(xe,u(Ae,Fe,1574812785))}}catch(Fe){m(xe,Fe)}})),Be=G(_e,null)||G(_e,void 0)?void 0:(function(Te,xe){return Te(xe,3505086064)})(Ae,_e);return G(Be,void 0)||T(typeof Be,h(or,6))?{s:-3,v:null}:{s:0,v:Be}}finally{G(typeof(function(_e,Be){return _e(Be,974290055)})(Ae,D),(function(_e){return _e(1)})(or))&&(function(_e,Be){return _e(Be,974290055)})(Ae,D)(z).catch((()=>{}))}}function bg(o){return o.some((a=>a.type==="agentEvent"&&(a.event.e===4||a.event.e===5)))}const Gf=Hn("WrongRegion"),Hf=Hn("SubscriptionNotActive"),$f=Hn("UnsupportedVersion"),jf=Hn("InstallationMethodRestricted"),Kf=Hn("HostnameRestricted"),Wf=Hn("IntegrationFailed"),zf=Hn("VisitorNotFound"),Zf=Hn("NetworkRestricted"),Yf=Hn("InvalidProxyIntegrationSecret"),Xf=Hn("InvalidProxyIntegrationHeaders"),qf=Hn("ProxyIntegrationSecretEnvironmentMismatch");function Ag(o){const a=function(Te,xe){return Te(xe)},s=function(Te,xe){return Te<xe},u=function(Te,xe){return Te/xe},h=function(Te,xe,Fe){return Te(xe,Fe)},m=function(Te,xe){return Te+xe},p=function(Te,xe){return Te+xe},N=function(Te,xe){return Te+xe},U=function(Te,xe){return Te-xe},G=function(Te,xe){return Te(xe)},T=a(dn,o),D=new Uint8Array(16);for(let Te=0;s(Te,T.length);Te+=2)D[u(Te,2)]=h(parseInt,m(m(p(m("",T[Te]),""),T[N(Te,1)]),""),16);const z=a(Gn,D),Y=(function(Te,xe,Fe,ke){return Te(xe,Fe,ke)})(Uf,D[h(parseInt,T[U(T.length,1)],16)],i9,s9),he=z.slice(0,Math.min(U(z.length,2),Y)),_e=h(sy,G(Ir,he),a9),Be=G(Gn,G(ry,(function(Te,xe){return Te(xe)})(J1,_e))).slice(0,c9);return h(Wg,o,(function(Te,xe,Fe){return Te(xe,Fe)})(Y7,(function(Te){return Te+""})((function(Te,xe){return Te+xe})((function(Te){return Te+""})((function(Te,xe){return""+xe})(0,he)),Be)).replace(new RegExp(G(Wr,1),"g"),"-").replace(new RegExp((function(Te){return Te(2)})(Wr),"g"),"_"),D))}function _s(o){const[a,s]=p1(o,"#"),[u,h]=p1(a,"?");let m,p;const N=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(u);return N?(m=(N[1]||"")+(N[4]||""),p=N[5]||""):(m="",p=u),{origin:m,path:p,query:h.length?h.join("?"):null,fragment:s.length?s.join("#"):null}}function Sg(){if(o=Jv,!(o()&&(function(s){return s()})(ig)))return{s:-1,v:null};var o;const a={s:-4,v:null};return(function(s){return s()})(Dy).then((s=>(async function(u){const h=function(m,p){return m(p)};switch(u){case h(Vn,4):return{s:-2,v:null};case(function(m,p){return m(p)})(Vn,5):return{s:-3,v:null};case h(Vn,7):return new Promise((m=>{(function(p,N,U){return p(N,U)})(Ae,(function(p,N,U){return p(N,U)})(Ae,navigator,2646664628),3555432007)((p=>m((function(N){const U=function(Be,Te){return Be(Te)};if(!N)return{s:-5,v:null};const{accuracy:G,altitude:T,altitudeAccuracy:D,latitude:z,longitude:Y,heading:he,speed:_e}=(function(Be,Te,xe){return Be(Te,xe)})(Ae,N,3631081861);return{s:0,v:{[U(Vn,8)]:z,[U(Vn,9)]:Y,[U(Vn,10)]:T,[U(Vn,11)]:G,[U(Vn,12)]:D,h:he,s:_e,t:(function(Be,Te,xe){return Be(Te,xe)})(Ae,N,2782324286)}}})(p))),(p=>m((function(N){const U=function(G,T,D){return G(T,D)};switch(U(Ae,N,1997877400)){case(function(G,T,D){return G(T,D)})(Ae,N,3788099005):return{s:-3,v:null};case(function(G,T,D){return G(T,D)})(Ae,N,2796740938):return{s:-5,v:null};case U(Ae,N,3187968904):return{s:-4,v:null};default:return{s:-5,v:null}}})(p))),(function(p,N){return p(N)})(Vn,6))}));default:return{s:-5,v:null}}})(s))).then((s=>{(function(u,h,m){u(h,m)})(ls,a,s)})).catch((()=>ls(a,{s:-5,v:null}))),a}function Ig(o){const a={};for(const s of Object.keys(o)){const u=o[s];if("value"in u){const{rest:h}=ws(u,["value"]);a[s]=h}else a[s]=u}return a}async function Og(){try{return await new FontFace("font","local('Arial')").load(),{s:0,v:!0}}catch{return{s:0,v:!1}}}function Jf(o,a){return d1(o,a?W7:xl,z7,Ll)}function Ng(o){const a=function(u,h){return u+h},s=function(u,h){return u(h)};return a(a(s(Qt,4),(function(u,h,m){return u(h,m)})(hc,o,s(Qt,5))),"")}function Sr(o){return o.reduce(((a,s)=>a+(s?1:0)),0)}function Qf(o,a){try{document.cookie}catch(s){if((function(u){if(!(u instanceof DOMException))return!1;const h=u.message;return u7.test(h)||f7.test(h)||l7.test(h)})(s))return a;throw s}return o()}function vo(o){const a=atob(o),s=a.length,u=new Uint8Array(s);for(let h=0;h<s;h++)u[h]=a.charCodeAt(h);return u}function Tg(){return o=Dn,a=Nn(2e3,{s:-2,v:null}),o(a,Jg);var o,a}function dr(o){return typeof o=="number"?o===0?null:Math.round(o):null}const el="[Fingerprint]";function tl(){const o=function(u,h){return u(h)},a=function(u,h){return u===h};var s;return!f()||!(function(u){return u in document})(o(St,15))||(a(s=document[o(St,15)],null)||a(s,void 0)?void 0:(function(u,h){return u(h,2256349940)})(Ae,s)().includes(o(St,16)))}function xg(o){let a;try{o&&typeof o=="object"&&"message"in o?(a=String(o.message),"name"in o&&(a=`${o.name}: ${a}`)):a=String(o)}catch(s){a=`Code 3017: ${s}`}return _o(a,500)}const Lg=2e3;function Cg({level:o,message:a}){o==="error"?console.error(a):o==="warning"?console.warn(a):console.log(a)}function Mg(){return{s:0,v:!!navigator.onLine}}function dc(o){return o.byteLength>X7&&a1()}function nl(o,a){let s=0;return()=>Math.random()*Math.min(a,o*Math.pow(2,s++))}function rl(o){return o?{query:!0,fragment:!0}:void 0}async function Dn(o,a){let s,u,h;try{s=a().then((p=>u=[!0,p]),(p=>u=[!1,p]))}catch(p){u=[!1,p]}const m=o.then((p=>h=[!0,p]),(p=>h=[!1,p]));return await Promise.race([s,m]),()=>{if(u){if(u[0])return u[1];throw u[1]}if(h){if(h[0])return h[1];throw h[1]}throw new Error("96375")}}function Bg(o,a,s,u){const h=(function*(U,G,T){let D=0,z=0;for(;D<U.length&&z<G.length;)T(U[D],G[z])?(yield U[D],D++):(yield G[z],z++);for(;D<U.length;D++)yield U[D];for(;z<G.length;z++)yield G[z]})(o.map((U=>({t:ds(U.time),s:U.state==="visible"?"v":"h"}))),a,((U,G)=>U.t<G.t)),m=[];let p;const N=()=>{m.length===0&&p!==void 0&&m.push({t:s,s:p})};for(;m.length<100;){const U=h.next();if(U.done)break;const G=U.value,T=G.t,D=G.s;if(T>u)break;T<s?p=D:D!==p&&(N(),m.push(G),p=D)}return N(),m}const ol="__fpjs_pvid";function kg(){return navigator.mimeTypes===void 0?{s:-1,v:null}:navigator.mimeTypes.length===void 0?{s:-3,v:null}:{s:0,v:navigator.mimeTypes.length}}function hc(o,a){const s=_s(o);let{query:u}=s;for(const[h,m]of Object.entries(a))for(const p of Array.isArray(m)?m:[m])u=`${u?`${u}&`:""}${h}=${o7(p)}`;return s.query=u,Es(s)}function Dg(){const o=window;return Sr(["fromAsync"in Array,"OffscreenCanvas"in o,"CompressionStream"in o,"isWellFormed"in String.prototype])>=3}function Ug(o,a,s){return Nn(Math.min(Math.max(a,o+1e4-Date.now()),s))}const Pg=/Blocked a frame.*cross-origin frame/,Fg=/Failed to execute\s+'([^']+)'\s+on\s+'([^']+)'/,Vg=/Permission denied.*cross-origin object/,Gg=/Context not access storage/,Hg=/(\w+)\(\)\s+called for opaque origin/,$g=3538568711,jg=986543999;function Kg(o){const a=function(p,N,U){return p(N,U)},s=function(p,N,U){return p(N,U)},u=function(p,N){return p<N},h=function(p,N,U){return p(N,U)},m=a(Ae,Object,1110892003)(o,(function(p){return p(0)})(Kv));if(m&&s(Ae,m,2813370411))return!0;for(let p=0;u(p,o.length);p++){const N=s(Ae,Object,1110892003)(o,p);if(N&&(h(Ae,N,2813370411)||a(Ae,N,1651707638)))return!0}return!1}const il="stripped",pc=["path","query","fragment"];function Wg(o,a){const s=_s(o);let u=s.origin+s.path;return u&&!u.endsWith("/")&&(u+="/"),u+=a,s.origin="",s.path=u,Es(s)}function zg(){const o=function(s){return s()},a=function(s,u,h){return s(u,h)};return a(Dn,a(Nn,250,{s:-3,v:null}),(async()=>o(R)||o($)?o(lv):{s:-1,v:null}))}function Zg(){return Dt(0)}function Yg(o){return j1(o,uv)}function Xg(){const o=[],a=Object.getOwnPropertyNames(window);for(let s=0;s<a.length;s++){const u=a[s],h=Mn(u);if($v.has(h)&&o.push(u),h===A1){const m=a[s+1]||"";o.push(m)}}return{s:0,v:o}}function qg(){const o=window;try{return o.self!==o.top}catch{return!0}}async function sl(o){if(!a1())return[!1,o];const[a,s]=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),u=await(async function(m,p){const N=p.writable.getWriter();N.write(m),N.close();const U=p.readable.getReader(),G=[];let T=0;for(;;){const{value:Y,done:he}=await U.read();if(he)break;G.push(Y),T+=Y.byteLength}if(G.length===1)return G[0];const D=new Uint8Array(T);let z=0;for(const Y of G)D.set(Y,z),z+=Y.byteLength;return D})(o,s);return[!0,a?u:(function(m){return new Uint8Array(m.buffer,m.byteOffset+2,m.byteLength-6)})(u)]}async function Jg(){const o=function(D){return D()},a=function(D,z){return D(z)},s=function(D,z){return D+z},u=function(D,z){return D+z},h=function(D,z){return D(z)},m=function(D,z){return D===z},p=function(D,z,Y){return D(z,Y)};var N;const U=window,G=o(cy),T=a(Yv,0);try{const D=T[s(u(s(u((function(he){return he+""})((function(he,_e){return""+_e})(0,a(mc,G[0]))),(function(he,_e){return he(_e)})(mc,G[1])),""),h(mc,G[2])),"")],z=Object.values(D),Y={};for(const he of Object.keys(U).slice(...z)){const _e=m(N=p(Ae,Object,1110892003)(U,he),null)||m(N,void 0)?void 0:p(Ae,N,494360628);Y[h(Mn,he)]={i:!0,t:null,s:he.slice(-3),e:12,p:h(String,_e).slice(0,50)}}return{s:-3,v:Y}}catch{if(await o(fg))return{s:-4,v:null};const z=await(function(Y,he){return Y(he)})(C7,G);return z?{s:0,v:z}:{s:-1,v:null}}}function Qg(o){var a;const s=(a=o[13])===null||a===void 0?void 0:a.event.result;if(!s)return{};const u={};for(const h in s)u[h]=Math.round(s[h].duration);return u}function mc(o){const a=function(u,h){return u+h},s=function(u,h){return u+h};return a(a(s(s("",Xa[(function(u){return u>>4})(o)]),""),Xa[(function(u){return u%16})(o)]),"")}function gc(o,a){var s;try{(s=localStorage==null?void 0:localStorage.setItem)===null||s===void 0||s.call(localStorage,o,a)}catch{}}function vc(o){return`${o}_lr`}const al=S7(Ry);function e7({url:o,body:a}){var s;const u=(function(){var m;const p=(m=window.event)===null||m===void 0?void 0:m.type;return p==="pagehide"||p==="unload"})();if(u)try{if(!((s=navigator.sendBeacon)===null||s===void 0)&&s.call(navigator,o,a))return!0}catch(m){if(!(m instanceof Error&&m.message==="Illegal invocation"))throw m}const h=new XMLHttpRequest;h.open("POST",o,!u),a instanceof Blob&&h.setRequestHeader("Content-Type",a.type);try{h.send(a)}catch{return!1}return!0}function cl(o){const a={};return new Set(o).forEach((s=>{const u=(function(m){if(!URL.prototype)return m;try{return new URL(m,window.location.origin).toString()}catch{return m}})(s),h=performance.getEntriesByName(u,"resource");a[s]=h})),a}function t7(o){const a=new Uint8Array(o.length/2);for(let s=0;s<o.length;s+=2)a[s/2]=parseInt(o[s]+o[s+1],16);return a}function ul(o){return(function(a,s){return a(s,2660613247)})(Ae,o)||(o[(function(a){return a(0)})(St)]={})}async function fl({urlHashing:o}){const a=(function(){var s,u;const h=[];let m=window;for(;;)try{const p=(s=m.location)===null||s===void 0?void 0:s.href,N=(u=m.document)===null||u===void 0?void 0:u.referrer;if(p===void 0||N===void 0)return{s:1,v:h};h.push({l:p,f:N});const U=m.parent;if(!U||U===m)return{s:0,v:h};m=U}catch(p){if(n9(p))return{s:1,v:h};throw p}})();return{...a,v:await x7(a.v,o)}}async function n7(){const o=Ae(window,2796484463);if(o)return new Promise((a=>{(function(s,u,h,m,p){s(0,1,m,p)})(o,0,0,(()=>a(!0)),(()=>a(!1)))}))}function yc(o,a){const s=function(u,h,m){return u(h,m)};return!!o&&(function(u,h){return u===h})(s(Ae,o,3814588639),s(Ae,a,3814588639))}function ll(o){return Gn(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function dl(){const o=navigator.language;return o?{s:0,v:o}:{s:-1,v:null}}async function r7(){const o=function(p){return p()},a=function(p,N){return p(N)},s=function(p,N){return p(N)},u=function(p,N){return p(N)},h=function(p,N,U){return p(N,U)};if(o($)||ce())return!1;let m=!1;if(Hv()){const p={type:a(St,20),audio:s(St,21),video:a(St,22),keySystemConfiguration:{keySystem:R1,video:u(St,23)}},N=await h(Ae,h(Ae,navigator,2900309608),3516168465)(p);m=(function(U,G,T){return U(G,T)})(ng,N,(function(U){return U(24)})(St))&&N[(function(U){return U(24)})(St)]}return m&&!(function(p){return p in navigator})((function(p){return p(25)})(St))||!o(f)}function hl(){return[8,4,4,4,12].map((o=>g1(o,Xa))).join("-")}function Es({origin:o,path:a,query:s,fragment:u}){return o+a+(s===null?"":`?${s}`)+(u===null?"":`#${u}`)}function o7(o){return o.split("/").map(encodeURIComponent).join("/")}function i7(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function s7(o=`${el} `){const a={};return s=>{switch(s.e){case 15:a[s.getCallId]=s.body;break;case 18:console.log(`${o}Visitor id request`,a[s.getCallId]);break;case 19:console.log(`${o}Visitor id response`,s.body);break;case 16:case 17:delete a[s.getCallId]}}}function pl(){const{webdriver:o}=navigator;return o===null?{s:-1,v:null}:o===void 0?{s:-2,v:null}:{s:0,v:o}}function a7(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function ml(o){return hg(o)?(function(a){if(a.length===0)throw vl();return a[Math.floor(As()*a.length)]})(o):(function(a){const s=As();let u=0,h=0;for(const[,m]of a)u+=m;for(const[m,p]of a){if(s>=h/u&&s<(h+p)/u)return m;h+=p}throw vl()})(Object.entries(o))}async function c7(o,a,s){const u=function(Le,De){return Le(De)},h=function(Le,De){return Le*De},m=function(Le,De){return Le(De)},p=function(Le,De){return Le(De)},N=function(Le,De){return Le(De)},U=function(Le,De){return Le(De)},G=function(Le,De){return Le(De)},T=function(Le,De){return Le/De},D=function(Le,De){return Le+De},z=function(Le,De){return Le(De)},Y=function(Le,De){return Le(De)},he=function(Le,De){return Le(De)},_e=function(Le,De){return Le(De)},Be=function(Le,De){return Le|De},Te=function(Le,De){return Le(De)},xe=function(Le,De){return Le(De)},Fe=function(Le,De){return Le(De)},ke=function(Le,De){return Le(De)},Ce=function(Le,De){return Le(De)},Ye=function(Le,De){return Le*De},it=function(Le,De){return Le(De)},dt=function(Le,De){return Le(De)},mt=function(Le,De){return Le(De)},Bt=function(Le,De){return Le<De},Ft=function(Le,De){return Le(De)},Vt=function(Le,De){return Le(De)},pn=function(Le,De){return Le(De)},bt=function(Le,De){return Le(De)},Tt=function(Le,De){return Le(De)},At=function(Le,De){return Le(De)},yt=function(Le,De){return Le(De)},lt=function(Le,De){return Le(De)},Gt=function(Le,De){return Le(De)},Ht=function(Le,De){return Le(De)},mn=function(Le,De){return Le===De},nn=function(Le,De){return Le(De)},yn=function(Le,De){return Le(De)},$n=function(Le,De){return Le(De)},wn=function(Le,De){return Le(De)},rn=function(Le,De){return Le(De)},un=function(Le,De){return Le(De)},on=function(Le,De){return Le+De},jn=function(Le,De){return Le+De},Xr=function(Le,De){return Le(De)},Dc=function(Le,De){return Le*De},So=function(Le,De){return Le+De},Cs=function(Le,De){return Le+De},_i=function(Le,De){return Le(De)},Ms=function(Le,De){return Le<De},Io=function(Le,De){return Le(De)},Uc=function(Le,De){return Le(De)},xn=function(Le,De){return Le*De},Tr=function(Le,De){return Le*De},pr=function(Le,De){return Le+De},Oo=function(Le,De){return Le+De},mr=function(Le,De){return Le+De},fn=await o[(function(Le){return Le(6)})(je)]({requiredFeatures:a}),No=Math.PI,ud=[[0,1,0,T(No,7)],[1,0,0,T(No,8)],[0,1,1,T(No,4)],[1,2,1,T(No,8)]],Pc=ud.length,Bs=new Uint8Array(h(Pc,D(D(yi,Eo),Ro))),fd=navigator[z(je,0)][u(je,7)]();s[U(je,8)]({device:fn,format:fd});const ld=fn[(function(Le){return Le(9)})(je)]({label:(function(Le){return Le(10)})(je),code:Y(je,11)}),Fc=fn[he(je,12)]({label:N(je,13),layout:(function(Le){return Le(14)})(je),vertex:{module:ld},fragment:{module:ld,targets:[{format:fd}]},primitive:_e(je,15)}),Xy=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],qy=new Uint8Array(z(Array,h(7,9)).fill(void 0).map(((Le,De)=>Xy[De%3])).flat()),dd=fn[m(je,16)]({label:N(je,17),size:[7,9],format:he(je,18),usage:Be(window[Te(je,19)][(function(Le){return Le(20)})(je)],window[p(je,19)][u(je,21)])});fn[xe(je,22)][Fe(je,23)]({texture:dd},qy,{bytesPerRow:h(7,4)},{width:7,height:9});const Jy=fn[ke(je,24)]((function(Le){return Le(25)})(je)),Qy=fn[Ce(je,26)]({layout:Fc[N(je,27)](0),entries:[{binding:0,resource:Jy},{binding:1,resource:dd[p(je,28)]()}]}),hd=ud.map((Le=>{const De=fn[(function(Kn){return Kn(29)})(je)]({label:u(je,30),size:h(4,Float32Array[m(je,31)]),usage:window[p(je,32)][N(je,33)],mappedAtCreation:!0});return new Float32Array(De[m(je,34)]())[U(je,35)](Le),De[u(je,36)](),fn[U(je,26)]({layout:Fc[G(je,27)](1),entries:[{binding:0,resource:{buffer:De}}]})})),ks=fn[(function(Le){return Le(37)})(je)]((function(Le){return Le(38)})(je)),Ds=fn[_e(je,29)]({size:Ye(ks[(function(Le){return Le(39)})(je)],8),usage:Be(window[xe(je,32)][it(je,40)],window[dt(je,32)][Ce(je,41)])}),To=fn[dt(je,29)]({size:h(Ds[it(je,42)],Pc),usage:Be(window[ke(je,32)][(function(Le){return Le(21)})(je)],window[mt(je,32)][mt(je,43)])}),pd={label:Te(je,44),colorAttachments:(function(Le){return Le(45)})(je),timestampWrites:{querySet:ks,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}};for(let Le=0;Bt(Le,hd.length);Le++){const De=hd[Le];pd[he(je,46)][0][Ft(je,47)]=s[m(je,48)]()[Vt(je,28)]();const Kn=fn[pn(je,49)](mt(je,50)),Ei=Kn[bt(je,51)](pd);Ei[p(je,52)](Fc),Ei[Y(je,53)](0,Qy),Ei[Tt(je,53)](1,De);const ew=window[At(je,54)][At(je,55)]();Ei[yt(je,56)](48),Ei[lt(je,57)](),Kn[Gt(je,58)](ks,0,ks[Ht(je,39)],Ds,0),mn(To[nn(je,59)],yn(je,60))&&Kn[$n(je,61)](Ds,0,To,h(Le,16),Ds[pn(je,42)]);const tw=Kn[yt(je,62)]();fn[wn(je,22)][Fe(je,63)]([tw]);const nw=rn(Q7,s[un(je,2)]);Bs[yn(je,35)](nw,D(Ro,Ye(Le,on(jn(yi,Eo),Ro)))),Bs[Xr(je,35)](new Uint8Array(new Float64Array([ew])[he(je,64)]),Dc(Le,So(Cs(yi,Eo),Ro)))}if(mn(To[(function(Le){return Le(59)})(je)],G(je,60))){await To[yt(je,65)](window[_i(je,66)][G(je,67)]);const Le=To[it(je,34)](),De=new Uint8Array(Le);for(let Kn=0;Ms(Kn,Pc);Kn++)Bs[Io(je,35)](De[Uc(je,68)](xn(Kn,Eo),Tr(pr(Kn,1),Eo)),Oo(on(Ro,yi),Ye(Kn,D(mr(yi,Eo),Ro))));To[Io(je,36)]()}return _i(Gn,Bs)}const u7=/The document is sandboxed and lacks the 'allow-same-origin' flag/,f7=/The operation is insecure/,l7=/Forbidden in a sandboxed document without the 'allow-same-origin' flag/;function d7(o){const a=cl(o.map((s=>s.url)).filter((s=>!!s)));return o.map(((s,u)=>{const h=o.length>1&&u<o.length-1&&!("error"in s);return _l(s.url,ds(s.startedAt),ds(s.finishedAt),h?"Unknown":s.error,a[s.url])}))}function h7(o){const a=o.match(py);return!!a&&(function(s,u){return s===u})((function(s,u){return s(u)})(Mn,a[1]),hy)}async function p7(o){return(function(a){return a()})(f)||(function(a){return a()})(R)?await(function(a,s){return a(s)})(pg,o):{s:-1,v:null}}function m7(){const o=(function(){const a=new Error,s=(function(u){return u.fileName?u.fileName.split(" ")[0]:u.sourceURL?u.sourceURL:null})(a);if(s)return s;if(a.stack){const u=(function(h){const[m,p]=h.split(`
|
|
11
|
+
`),N=P7.exec(p)||F7.exec(m);return N?N[1]:void 0})(a.stack);if(u)return u}return null})();return{u:o?_o(o,K7):null}}function g7(){const o=function(Ce,Ye){return Ce(Ye)},a=function(Ce,Ye,it){return Ce(Ye,it)},s=function(Ce){return Ce()},u=function(Ce,Ye){return Ce<Ye},h=function(Ce,Ye){return Ce<Ye},m=function(Ce,Ye){return Ce*Ye},p=function(Ce){return Ce()},N=function(Ce,Ye){return Ce*Ye},U=function(Ce){return Ce()},G=function(Ce,Ye){return Ce*Ye},T=function(Ce,Ye){return Ce(Ye)},D=function(Ce,Ye){return Ce+Ye},z=function(Ce,Ye){return Ce+Ye},Y=function(Ce,Ye){return Ce(Ye)},he=function(Ce,Ye){return Ce(Ye)},_e=function(Ce,Ye,it){return Ce(Ye,it)},Be=document[o(hr,0)](o(hr,1)),Te=a(Ae,Be,1590906722)(o(hr,2));if(!Te)return{s:-1,v:null};Be[o(hr,3)]=wi,Be[(function(Ce){return Ce(4)})(hr)]=wi;const xe=s(av),Fe=(function(Ce,Ye,it,dt,mt){return Ce(Ye,it,dt,mt)})(Pv,xe[0],xe[1],xe[2],xe[3]);for(let Ce=0;u(Ce,wi);Ce++)for(let Ye=0;h(Ye,wi);Ye++){const it=Math.floor(m(p(Fe),256)),dt=Math.floor(N(U(Fe),256)),mt=Math.floor(G(s(Fe),256));Te[T(hr,5)]=D(D(D(D(D(z(Y(hr,6),it),","),dt),","),mt),he(hr,7)),_e(Ae,Te,2027710893)(Ye,Ce,1,1)}const ke=_e(Ae,Te,2240176009)(0,0,(function(Ce,Ye){return Ce(Ye,2350531887)})(Ae,Be),a(Ae,Be,4115522831));return{s:0,v:{s:xe,p:Array.from(_e(Ae,ke,2918445923)),d:wi}}}function gl(){const o=function(s,u){return s in u},a=function(s,u){return s(u)};return(o(a(St,11),window)||o(a(St,12),window)||(function(s){return s in window})((function(s){return s(13)})(St)))&&(function(s){return s in navigator})((function(s){return s(14)})(St))}function v7(){const o=navigator,a=["webkitPersistentStorage","connectionSpeed","xr","hid"],s=[];for(const u of Object.getOwnPropertyNames(Object.getPrototypeOf(o)))if(!a.includes(u))try{const h=o[u];typeof h=="function"&&h.name!==void 0&&s.push(h.name)}catch(h){return{s:-1,v:[h instanceof Error?h.message:String(h)]}}return{s:0,v:s}}function y7(){const o=function(a,s){return a(s)};try{return o(Lf,!!window[o(zr,0)])}catch{return(function(s){return s(!0)})(Lf)}}async function w7(){const o=B1(),a=await Promise.all(o.map(Ty)),s={};return o.forEach(((u,h)=>{const m=(function(p,N){return p(N)})(Mn,u).toString(16);s[m]=a[h]})),s}async function _7(){const o=function(u){return u()},a=function(u,h){return u===h};if((function(u){return u()})(f)&&o(R7))return{s:-3,v:null};const s=await Promise.race([(function(u){return u(100,null)})(gi),o(n7)]);return a(s,null)?{s:-2,v:null}:a(s,void 0)?{s:-1,v:null}:{s:0,v:s}}function E7(o){const a=document.createDocumentFragment(),s=p(a,"mrow"),u=p(s,"munderover"),h=p(u,"mmultiscripts");p(h,"mo","∏");const m=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];function p(U,G,T=""){const D=document.createElement(G);return D.textContent=T,U.append(D),D}function N(U,G,T,D,z){const Y=document.createElement("mmultiscripts");return p(Y,"mi",U),p(Y,"mi",G),p(Y,"mi",T),p(Y,"mprescripts"),p(Y,"mi",D),p(Y,"mi",z),Y}for(const U of m){const G=N(...U);h.append(G)}return nr(((U,G)=>{const T=document.createElement("math");T.style.whiteSpace="nowrap",T.append(a),G.document.body.append(T);const D=K1(T,G);return G.document.body.removeChild(T),{s:0,v:D}}),o.sis)}function vl(){return new TypeError("Can't pick from nothing")}function cn(o){return de(o,(a=>({s:0,v:a})))}function R7(){const o=window;return Sr(["ClipboardItem"in o,"PerformanceEventTiming"in o,"RTCSctpTransport"in o])>=2}const b7=o=>o instanceof Error&&o.message==="Illegal invocation";async function A7(){const o=function(T,D,z){return T(D,z)},a=function(T,D){return T===D},s=function(T,D,z){return T(D,z)},u=function(T,D,z){return T(D,z)},h=function(T,D){return T!==D},m=function(T,D,z){return T(D,z)},p=function(T,D,z){return T(D,z)},N=navigator,U=o(Ae,N,1417288500),G=o(Ae,N,2706846255);if(!G&&!(!(a(U,null)||a(U,void 0))&&s(Ae,U,3538568711)))return{s:-1,v:null};if(G){const T=await Promise.race([u(gi,250,void 0),new Promise((D=>{o(Ae,G,1291883197)(((z,Y)=>D(Y)))}))]);if(h(T,void 0))return{s:0,v:T}}try{if(!((function(T){return T===null})(U)||(function(T){return T===void 0})(U))&&s(Ae,U,3538568711)){const T=await Promise.race([m(gi,250,void 0),p(Ae,U,3538568711)().then((D=>Ae(D,1813778413)))]);if(h(T,void 0))return{s:1,v:T}}return{s:-2,v:null}}catch(T){if((function(D,z){return D(z)})(xc,T))return{s:-101,v:null};throw T}}const yl=[3,7];function S7(o){return a=>{const s=[],u=new Map,h=window.setInterval((function(){const p=s.shift();if(p){const[N,U]=p,G=$r(o(U));u.set(N,G)}}),1);function m(){window.clearInterval(h)}return a.then(m,m),[s,u,a]}}function I7(){const o=document[a=Lc,a(0)]("a");var a;return(function(s,u){return s(u,868071530)})(Ae,o)[(function(s){return s(1)})(Lc)]=(function(s){return s(2)})(Lc),{s:0,v:(function(s,u){return s(u,2350531887)})(Ae,(function(s,u){return s(u,868071530)})(Ae,o))}}function O7(o){const a=function(m,p){return m(p)},s=function(m,p){return m+p},u=function(m,p){return m+p};let h=a(Wr,3);return(function(m,p){return m!==p})(o,a(Wr,4))&&(h=s((function(m,p){return m+p})(u(s("",o),"."),h),"")),s(u((function(m){return m(5)})(Wr),h),"/")}function N7(o,a){const s=function(m,p){return m(p)},u=(function(m){return m(0)})(Qt);u[(function(m){return m(1)})(Qt)]=s(Ng,a),u[(function(m){return m(2)})(Qt)]=o;const h={};return h[s(Qt,3)]=[u],h}function T7(o){const a=function(u,h){return u(h)},s=function(u,h,m){return u(h,m)};return(function(u,h){return u===h})(o.name,a(Qt,9))&&s(Ae,new RegExp(a(Qt,10)),3632233996)(s(Ae,o,3065852031))}async function wl(o=mi(0)){const a=function(z,Y){return z(Y)},s=function(z,Y){return z+Y},u=function(z,Y){return z+Y},h=function(z,Y,he){return z(Y,he)},m=function(z,Y){return z===Y},p=function(z,Y){return z(Y)},N=function(z,Y){return z===Y},U=function(z,Y){return z===Y};var G,T;const[D]=o.split("/").slice(-1);try{const z=new window[a(mi,1)]([],o),Y=new window[a(mi,2)](s(u(u(s(s((function(he,_e){return he+_e})((function(he){return he(3)})(mi),h(Ae,z,4081332993)||""),""),D),a(mi,4)),h(Ae,z,3034174415)),""));return m(m(G=h(Ae,Y,3518522040),null)||m(G,void 0)?void 0:G.substring(1),"")?{n:D,l:-2}:{n:D,l:p(Mn,N(T=h(Ae,Y,3518522040),null)||U(T,void 0)?void 0:T.substring(1))}}catch{return{n:D,l:-1}}}function Rs(o,a){Ol(o,o.len+a.length),o.arr.set(a,o.len),o.len+=a.length}async function x7(o,a){return Promise.all(o.map((async s=>{const[u,h]=await Promise.all([Is(s.l,a),Is(s.f,a)]);return{l:u,f:h}})))}function _l(o,a,s,u,h){const m=(function(p,N,U){if(!p)return;let G;for(let T=p.length-1;T>=0;T--){const D=p[T];if(D.startTime<N-1)break;D.responseEnd<=U+1&&(G=D)}return G})(h,a,s);return{s:dr(m?.startTime)||Math.round(a),e:dr(m?.responseEnd)||Math.round(s),u:o||null,er:u?String(u):null,ds:dr(m?.domainLookupStart),de:dr(m?.domainLookupEnd),cs:dr(m?.connectStart),css:dr(m?.secureConnectionStart),ce:dr(m?.connectEnd),qs:dr(m?.requestStart),ss:dr(m?.responseStart)}}function L7(o,a,s,u,h,m,p,N,U,G,T,D,z){const Y={modules:o,apiKey:u,ii:N,imi:U,storageKey:p,ab:T,urlHashing:G};function he(it){if(!z)return;const dt=hi(8);switch(it){case"get":return(function(mt,Bt){return Ft=>{const Vt={...Ft,getCallId:Bt};return mt(Vt)}})(z,dt);case"collect":return(function(mt,Bt){return Ft=>{const Vt={...Ft,collectCallId:Bt};return mt(Vt)}})(z,dt)}}const _e=it=>Nn(it??1e4).then((()=>Promise.reject(new Error(ic)))),Be=async(it,dt,mt)=>{var Bt;const Ft=_e(it.timeout);mt(await Te(it,Ft,dt));for(const Vt of o)(Bt=Vt.onCollectResponse)===null||Bt===void 0||Bt.call(Vt,p)},Te=async({timeout:it=1e4,tag:dt,linkedId:mt},Bt,Ft)=>{const Vt=$r(Promise.all([Ye(Ft),Ce(it,!1,Ft)])),[pn,bt]=await Promise.race([Bt,Vt]),Tt=await Sl({...Y,components:pn,tag:dt,tls:bt,linkedId:Os(mt)});return await(async function(At,yt){const lt=[Ac(),[]],Gt=Ss(lt),Ht=Ss(At),[mn,nn]=dc(Ht)?await sl(Ht):[!1,Ht],yn=Jf(nn,mn);return Un(yt,(()=>({e:24,agentMetadata:lt,body:At,isCompressed:mn}))),`${ll(Gt)}:${ll(yn)}`})(Tt,Ft)},xe=async({tag:it,linkedId:dt},mt,Bt,Ft)=>{if(!D)return;const Vt=await ke();let pn=!1;Bt.catch((()=>pn=!0));try{return await I1(h,{...Y,tls:Vt,tag:it,linkedId:Os(dt),fast:!0},mt,Bt,Ft)}catch(bt){if(pn)throw bt;return void(ys(bt)&&bt.message===zf||console.warn(bt))}},Fe=({timeout:it=1e4,tag:dt,linkedId:mt,disableTls:Bt,extendedResult:Ft,exposeComponents:Vt,environment:pn,products:bt},Tt,At)=>{const yt=$r(Promise.all([Ye(At),Ce(it,Bt,At)]));return async(lt,Gt)=>{const[Ht,mn]=await Promise.race([Gt,yt]);return await I1(h,{...Y,components:Ht,customComponent:pn,tag:dt,tls:mn,linkedId:Os(mt),extendedResult:Ft,exposeComponents:Vt,algorithm:m,products:mv(bt,"products"),requestId:lt},Tt,Gt,At)}},ke=()=>s?.(0,50,!1,void 0),Ce=(it,dt,mt)=>s?.(.1*it,.4*it,dt,mt),Ye=async it=>{try{const dt=await a();return Un(it,(()=>({e:13,result:dt}))),dt}catch(dt){throw Un(it,(()=>({e:14,error:dt}))),dt}};return{get:(it={})=>{const dt=he("get");return Ao(dt,(()=>({e:3,options:it})),(mt=>({e:4,result:mt})),(mt=>({e:5,error:mt})),(()=>Cl((mt=>(async(Bt,Ft,Vt)=>{const pn=Bl();try{const bt=al(pn),Tt=_e(Bt.timeout),At=Fe(Bt,bt,Ft),yt=await xe(Bt,bt,Tt,Ft);yt?(Vt(yt),await At(yt.requestId,Tt)):Vt(await At(void 0,Tt))}finally{pn.resolve()}})(it,dt,mt)))))},collect:(it={})=>{const dt=he("collect");return Ao(dt,(()=>({e:21,options:it})),(mt=>({e:22,result:mt})),(mt=>({e:23,error:mt})),(()=>Cl((mt=>Be(it,dt,mt)))))}}}async function C7(o){const a=function(he,_e){return he(_e)},s=function(he,_e){return he<_e},u=function(he,_e){return he(_e)},h=function(he,_e,Be,Te,xe){return he(_e,Be,Te,xe)},m=function(he,_e){return he(_e)},p=function(he,_e){return he(_e)};var N;const U=window[p(xt,3)],G=(function(he){return he===null})(N=U[m(xt,4)])||(function(he){return he===void 0})(N)?void 0:N.bind(U);if(!G)return null;const T=(function(he){return he(5)})(xt),D=p(xt,6),z={};let Y;if(await Promise.all(T.map((async he=>{try{const _e=await(function(Fe,ke,Ce){return Fe(ke,Ce)})(G,he,D),Be=await _e[a(xt,7)](),Te=Be[a(xt,8)]();let xe=[92,189,203];for(let Fe=0;s(Fe,3);Fe++)try{return void(z[u(Mn,he)]=await h(Zv,Be,Te,o,xe))}catch(ke){if(a(ly,ke)){xe=m(Iv,o);continue}throw u(Wm,xe),ke}}catch(_e){Y=_e}}))),Y&&(function(he){return he===0})(Object.keys(z).length))throw Y;return z}function El(o){return Qf((()=>{const a=`${o}=`;for(const s of document.cookie.split(";")){let u=0;for(;s[u]===" "&&u<s.length;)++u;if(s.indexOf(a)===u)return s.slice(u+a.length)}}),void 0)}function di(o){try{(function(a,s){return a(s,318865860)})(Ae,o)()}catch{}}function wc(o){return{e:xg(o)}}const M7=function(){const o=(function(){const s={},u=[],h=[];let m=!1;const p=bo(document,"visibilitychange",N);function N(){h.push({t:Math.round(performance.now()),s:Ec()?"v":"h"})}function U(G,T,D){var z,Y,he,_e,Be,Te,xe,Fe,ke,Ce,Ye,it,dt,mt,Bt,Ft,Vt,pn,bt,Tt,At;const yt=(function(xn,Tr,pr,Oo){const mr=[];return xn[Tr]&&(mr.push(...xn[Tr].commonEvents),Oo==="get"&&pr&&mr.push(...xn[Tr].getCalls[pr]||[]),Oo==="collect"&&pr&&mr.push(...xn[Tr].collectCalls[pr]||[])),mr})(s,G,T,D),lt={};for(const xn of yt)lt[xn.event.e]=xn;const Gt=(z=lt[4])!==null&&z!==void 0?z:lt[5],Ht=(Y=lt[22])!==null&&Y!==void 0?Y:lt[23],mn=lt[3]&&Gt,nn=lt[21]&&Ht,yn=mn||nn;if(!(lt[0]&<[1]&<[12]&&yn))return;const{token:$n,apiKey:wn=$n,storageKey:rn=nc,modules:un,ldi:on,aggressiveOptimization:jn=!1,optimizeRepeatedVisits:Xr=!1}=lt[0].event.options;if(!wn)return;const Dc=Math.min(lt[0].timestamp,ds((he=on?.attempts[0].startedAt)!==null&&he!==void 0?he:new Date("8524-04-28"))),So=(_e=lt[5])===null||_e===void 0?void 0:_e.event.error,Cs=(Be=lt[4])===null||Be===void 0?void 0:Be.event.result,_i=(Te=lt[23])===null||Te===void 0?void 0:Te.event.error,Ms=(xe=lt[13])!==null&&xe!==void 0?xe:lt[14],Io=cl(u),Uc={am:nn?"collect":"get",v:"1",dt:new Date().toISOString(),ci:Ac(),pi:xf(),ai:G,ri:hi(12),c:wn,rid:(ke=(Fe=Cs?.requestId)!==null&&Fe!==void 0?Fe:So?.requestId)!==null&&ke!==void 0?ke:null,er:(Ce=So?.message)!==null&&Ce!==void 0?Ce:null,cr:(Ye=_i?.message)!==null&&Ye!==void 0?Ye:null,mo:un.map((xn=>xn.key)).filter((xn=>!!xn)),sa:d7((it=on?.attempts)!==null&&it!==void 0?it:[]),ls:lt[0].timestamp,le:lt[1].timestamp,ca:Ja(yt,Io,9,10,11),ss:lt[12].timestamp,se:(dt=Ms?.timestamp)!==null&&dt!==void 0?dt:null,sd:Qg(lt),gs:(Bt=(mt=lt[3])===null||mt===void 0?void 0:mt.timestamp)!==null&&Bt!==void 0?Bt:null,ge:(Ft=Gt?.timestamp)!==null&&Ft!==void 0?Ft:null,cs:(pn=(Vt=lt[21])===null||Vt===void 0?void 0:Vt.timestamp)!==null&&pn!==void 0?pn:null,ce:(bt=Ht?.timestamp)!==null&&bt!==void 0?bt:null,fa:Ja(yt,Io,18,19,20,0),ia:Ja(yt,Io,18,19,20,1),vs:Bg((Tt=on?.visibilityStates)!==null&&Tt!==void 0?Tt:[],h,Dc,(At=Gt?.timestamp)!==null&&At!==void 0?At:Ht?.timestamp),ab:lt[1].event.ab,ao:jn,or:Xr};((xn,Tr)=>{(function(pr,Oo){const mr=vc(Oo),fn=Oc(mr)||[];fn.splice(0,fn.length-2);const No=d1(Ss(pr),yl,3,7);fn.push([pr.ri,Gn(No)]),gc(mr,JSON.stringify(fn))})(xn,Tr)})(Uc,rn)}return N(),{addEvent:function(G){if(!m)switch((function(T){const D=T.event;if(!Tl(D))return;const{agentId:z}=D;if(s[z]||(s[z]={commonEvents:[],getCalls:{},collectCalls:{}}),$1(D)){const{getCallId:Y}=D;let he=s[z].getCalls[Y];return he||(he=[]),he.push(T),void(s[z].getCalls[Y]=he)}if(E1(D)){const{collectCallId:Y}=D;let he=s[z].collectCalls[Y];return he||(he=[]),he.push(T),void(s[z].collectCalls[Y]=he)}s[z].commonEvents.push(T)})({timestamp:Math.round(performance.now()),event:G}),G.e){case 9:case 18:u.push(G.url);break;case 4:case 5:U(G.agentId,G.getCallId,"get");break;case 22:case 23:U(G.agentId,G.collectCallId,"collect")}},destroy:()=>{m=!0,p()}}})();let a=new Set;return{toRequest(s){const u=(function(h){const m=Oc(vc(h))||[],p=[];return m.forEach((N=>{try{const U=vi(Nc(vo(N[1]),yl,7));p.push(U)}catch{}})),p})(s);return a=new Set(u.map((h=>h.ri))),{lr:u}},onGetResponse(s,u){C1(u,a)},onCollectResponse(s){C1(s,a)},addEvent:o.addEvent,destroy:o.destroy}};class B7{constructor(a){this.onReportReady=a,this.isStopped=!1,this.pageStartTimestamp=(function(){var N,U;const G=performance;if(G.timeOrigin){const T=(U=(N=G.getEntriesByType)===null||N===void 0?void 0:N.call(G,"navigation"))===null||U===void 0?void 0:U[0];if(T)return G.timeOrigin+(T.responseStart||T.unloadEventEnd)}return G.timing.domLoading||G.timing.responseStart||G.timing.unloadEventEnd})(),this.events={};const s=window,u=document,h=[[u,"readystatechange",()=>this.handleDocumentReadyStateChange()],[u,"visibilitychange",()=>this.handleVisibilityChange()],[u,"pageshow",()=>this.handlePageTransition(!0)],[u,"pagehide",()=>this.handlePageTransition(!1)],[s,"unload",()=>this.handlePageUnload()]];for(const[N,U,G]of h)N.addEventListener(U,G);const m=(function(N){const U=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((G=>bo(document,G,N,void 0)));return()=>{for(const G of U)G()}})((()=>this.handleFullscreenChange())),p=(function(N){const U=window,{connection:G}=navigator;if(G)return bo(G,"change",N);{const T=bo(U,"online",N),D=bo(U,"offline",N);return()=>{T(),D()}}})((()=>this.handleNetworkConnectionChange()));this.stop=()=>{this.isStopped=!0;for(const[N,U,G]of h)N.removeEventListener(U,G);m(),p()}}addEvent(a){var s;if(this.isStopped)return;const u={time:new Date,type:"agentEvent",event:a};if(a.e===0){const h=a.options;this.urlHashing=(s=h?.urlHashing)!==null&&s!==void 0?s:rl(h?.stripUrlParams),u.documentReadyState=document.readyState,u.isPageVisible=Ec(),u.isFullscreen=Y1(),u.network=Ml()}switch(this.storeAgentEvent(u),a.e){case 2:this.submitReport(a.agentId,void 0);break;case 4:case 5:this.submitReport(a.agentId,a.getCallId)}}handleDocumentReadyStateChange(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})}handleVisibilityChange(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Ec()})}handlePageTransition(a){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:a})}handleFullscreenChange(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:Y1()})}handleNetworkConnectionChange(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:Ml()})}handlePageUnload(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(const a of Object.keys(this.events)){const s=this.events[a];if(Object.keys(s.getCalls).length===0)this.submitReport(a,void 0);else for(const u of Object.keys(s.getCalls))bg(s.getCalls[u])||this.submitReport(a,u)}this.stop()}storeAgentEvent(a){const s=a.event;if(!Tl(s))return;const{agentId:u}=s;if(this.events[u]||(this.events[u]={commonEvents:[],getCalls:{},collectCalls:{}}),$1(s)){const{getCallId:h}=s;let m=this.events[u].getCalls[h];return m||(m=[]),m.push(a),void(this.events[u].getCalls[h]=m)}if(E1(s)){const{collectCallId:h}=s;let m=this.events[u].collectCalls[h];return m||(m=[]),m.push(a),void(this.events[u].collectCalls[h]=m)}this.events[u].commonEvents.push(a)}storeEnvironmentEvent(a){for(const s of Object.keys(this.events))this.events[s].commonEvents.push(a)}submitReport(a,s){const u=(function(m,p,N){const U=[];return m[p]&&(U.push(...m[p].commonEvents),N!==void 0&&U.push(...m[p].getCalls[N]||[])),U.sort(((G,T)=>G.time.getTime()-T.time.getTime())),U})(this.events,a,s),h=(function(m,p,N){var U,G,T,D,z,Y,he,_e,Be;const Te=(function(Fe){const ke={};for(const Ce of Fe)Ce.type==="agentEvent"&&(ke[Ce.event.e]=Ce);return ke})(m);let xe="null";for(const[Fe,ke]of[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]])if(Te[Fe]){xe=ke;break}return{time:((U=m[m.length-1])===null||U===void 0?void 0:U.time)||new Date,pageUrl:location.href,pageStartTime:new Date(p),isInIframe:qg(),agentVersion:(G=Te[0])===null||G===void 0?void 0:G.event.version,userAgent:navigator.userAgent,pageViewId:xf(),agentId:(T=Te[0])===null||T===void 0?void 0:T.event.agentId,getCallId:(D=Te[3])===null||D===void 0?void 0:D.event.getCallId,requestId:(Y=(z=Te[4])===null||z===void 0?void 0:z.event.result.requestId)!==null&&Y!==void 0?Y:(_e=(he=Te[5])===null||he===void 0?void 0:he.event.error)===null||_e===void 0?void 0:_e.requestId,visitorId:(Be=Te[4])===null||Be===void 0?void 0:Be.event.result.visitorId,identificationState:xe,events:m,urlHashing:N}})(u,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(h)}catch(m){console.error(m)}}}function Un(o,a,...s){o&&u1((()=>{const u=a(...s);u!==void 0&&o(u)}))}function k7(){return{s:0,v:new URL("C:/").protocol}}function Cn(o){const a=u=>({s:0,v:u}),s=u=>{if(!(u instanceof qt))throw u;const{state:h}=u;if(typeof h!="number")throw new Error(`Unexpected non-numeric error state ${JSON.stringify(h)}. Error message: ${u.message}`);return{s:h,v:null}};return()=>{try{const u=o();return(function(h){return!!h&&typeof h.then=="function"})(u)?u.then(a,s):a(u)}catch(u){return s(u)}}}async function D7(){const o=function(u,h,m){return u(h,m)},a=function(u,h,m){return u(h,m)},s=function(u,h){return u(h)};return(function(u){return u in navigator})(s(Fn,10))?{s:0,v:await Promise.all(Iy.map((async u=>{try{const h=await o(Ae,o(Ae,navigator,2900309608),3516168465)(u);let m=0;return a(Ae,h,4146387716)&&(m+=1),a(Ae,h,1965183968)&&(m+=2),(function(p,N){return p(N,2920301991)})(Ae,h)&&(m+=4),m}catch(h){return(function(m){return m instanceof Error})(h)?o(Ae,h,3065852031):s(String,h)}})))}:{s:-1,v:null}}function hi(o){return g1(o,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}const Rl="js-agent",U7={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warn",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warn",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Gn(o){const a=jr(o),s=Math.ceil(a.length/qa),u=[];for(let h=0;h<s;h++){const m=h*qa,p=a.slice(m,Math.min(m+qa,a.length));u.push(String.fromCharCode.apply(null,p))}return btoa(u.join(""))}function bs(o,a,...s){const u=document,h="visibilitychange",m=()=>u.hidden?N():p(),{start:p,stop:N}=(function(U,G,T,...D){let z,Y=!1,he=U,_e=0;const Be=()=>{Y||z||(_e=Date.now(),z=Tc((()=>{Y=!0,T(...D)}),he))};return G&&Be(),{start:Be,stop:()=>{!Y&&z&&(z(),z=void 0,he-=Date.now()-_e)}}})(a,!u.hidden,(()=>{u.removeEventListener(h,m),o(...s)}));return u.addEventListener(h,m),()=>{u.removeEventListener(h,m),N()}}function bl(){const o=function(u,h,m){return u(h,m)},a=function(u,h,m){return u(h,m)},s=function(u,h,m){return u(h,m)};return(function(u,h,m){return u(h,m)})(Dn,o(Nn,1e3,{s:-2,v:null}),(async()=>{const u=await(h=zm,h());var h;if((function(m){return m!==0})(o(Ae,u,453955339)))return u;try{const[m,p]=o(Ae,u,1801730948),[N,U,G]=await o(o9,m,p);return{s:0,v:{s:G,f:N,v:a(Ae,U,4112659446),a:s(Ae,U,1956208378)}}}catch(m){if((function(p){return p instanceof TypeError})(m)&&(function(p,N){return p(N)})(h7,s(Ae,m,3065852031)))return{s:-7,v:null};throw m}}))}const P7=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,F7=/@([^(^\s^}]+):(\d)+:(\d)+/i;async function V7({cache:o}){const a=function(m,p){return m(p)},s=function(m){return m()},u=function(m,p,N){return m(p,N)};if(!(function(m){return m()})(gl)||!s(tl))return()=>({s:-1,v:null});if(s(ce))return()=>({s:-3,v:null});const h=a(ul,o);return u(Dn,u(Nn,250,{s:-2,v:null}),(async()=>{const m=await Promise.all(Bv.map((async N=>{const[U,G]=N;return[U,await a(G,h)]}))),p={};for(const[N,U]of m)p[N]=U;return{s:0,v:p}}))}function Al(o,a={},s){const u=function(m,p){return m!==p};var h;return u(s,null)&&u(s,void 0)||(s=[(function(m){return m()})(kf)]),(function(m){return m!==null})(h=a[o])&&(function(m){return m!==void 0})(h)?h:a[o]=(function(m){return m(navigator,3994889901)})(Ae)(o,s)}async function Sl({modules:o,components:a={},customComponent:s,apiKey:u,tls:h,tag:m,extendedResult:p,exposeComponents:N,linkedId:U,algorithm:G,imi:T,storageKey:D,products:z,urlHashing:Y,ii:he,ab:_e,fast:Be,requestId:Te}){const xe={c:u,t:Zm(m),cbd:p?1:void 0,lid:U,a:G,m:T.m,l:T.l,ec:N?1:void 0,mo:o.map((Fe=>Fe.key)).filter((Fe=>!!Fe)),pr:z,s56:h,s67:s?{s:0,v:s}:{s:-1,v:null},sc:m7(),uh:dg(Y),ii:he,gt:1,ab:_e,hu:Be?0:Te?1:void 0,ri:Te,...Qv(a)};return await Promise.all(o.map((async({toRequest:Fe})=>{Fe&&Object.assign(xe,await Fe(D,Y))}))),xe}function G7(){return(function({location:o,origin:a}){const s=o.origin,u=o.ancestorOrigins;let h=null;if(u){h=new Array(u.length);for(let m=0;m<u.length;++m)h[m]=u[m]}return{s:0,v:{w:a??null,l:s??null,a:h}}})(window)}function H7(o,a){const s=function(u,h){return u(h)};(function(u,h){u(h)})($r,o[(function(u){return u(5)})(Pn)]()[s(Pn,6)](s(Pn,7),a))}function $7(){return o=Dn,a=Nn(xy,{s:-2,v:null}),o(a,Dv);var o,a}function Il(){return{s:0,v:eval.toString().length}}async function j7(o){const a=function(u,h){return u!==h};var s;return a(s=(function(u,h){return u(h,3414765911)})(Ae,o),null)&&a(s,void 0)?s:await(function(u,h){return u(h,3779360887)})(Ae,o)()}const K7=1e3;function Ol(o,a){if(o.arr.length<a){const s=new Uint8Array(Math.max(2*o.arr.length,a));s.set(o.arr),o.arr=s}}function Mn(o){return J1(Ir(o))}function Nl(o){var a,s;try{return(s=(a=localStorage==null?void 0:localStorage.getItem)===null||a===void 0?void 0:a.call(localStorage,o))!==null&&s!==void 0?s:void 0}catch{}}function Tl(o){return"agentId"in o}function _c(o){return{s:0,v:o}}const xl=[3,13],W7=[3,14],z7=3,Ll=9;function Z7(o){return j1(o,qm)}function Y7(o,a){const s=function(G,T){return G<T},u=function(G,T,D,z){return G(T,D,z)},h=function(G,T){return G&T},m=function(G,T){return G+T};let p=0,N=0,U="";for(;s(p,o.length);)N=u(Uf,a[h(p,15)],u9,f9),U+=o.slice(p,m(p,N)),U+="/",p+=N;return U.slice(0,-1)}const X7=1024;function q7(){const o=Object.getOwnPropertyDescriptor(document,"createElement");return o?{s:0,v:!("writeable"in o)}:{s:-1,v:null}}async function J7(o,a){const s=function(G,T,D){return G(T,D)},u=function(G,T){return G!==T},h=function(G,T,D){return G(T,D)},m=s(N7,o,a),{s:p,v:N}=s(kv,m,!0);if(u(p,0))return p;const U=h(xv,N,a);try{const{s:G,v:T}=await h(Ae,U,142982734)();return u(G,0)?G:(await h(Ae,N,76151562)(T),0)}finally{(function(G,T){return G(T,107910612)})(Ae,U)()}}function Q7(o){return(function(a,s){return a(s)})(t7,(function(a,s){return a(s)})(dn,o[(function(a){return a(69)})(je)]()))}function e9(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}async function t9(o,a){const s=function(p,N,U){return p(N,U)},u=function(p,N,U){return p(N,U)};let h;try{h=s(Ae,o,882066760)(a)}catch(p){if(!(function(N){return N instanceof Error})(p)||!u(Ae,new RegExp((function(N){return N(11)})(Qt),"i"),3632233996)(u(Ae,p,3065852031)))throw p;h=new Promise(((N,U)=>{s(Ae,o,882066760)(N,U,a)}))}const m=await h;return(function(p){return p===void 0})(m)?{s:-8,v:null}:{s:0,v:m}}function n9(o){if(!o||typeof o!="object")return!1;const a=o;return!(!ge()&&!k()||a.name!=="Error"&&a.name!=="TypeError"||a.message!=="Permission denied")||a.name==="SecurityError"}function Cl(o){return new Promise(((a,s)=>{o(a,s).then((()=>s(new Error("Action didn't call `resolve` or `reject`"))),s)}))}function r9(o,a){return Math.floor(As()*(a-o+1))+o}function Ml(){const{connection:o,onLine:a}=navigator;return{online:a,downlink:o?.downlink,downlinkMax:o?.downlinkMax,effectiveType:o?.effectiveType,roundTrip:o?.rtt,saveData:o?.saveData,type:o?.type}}async function o9(o,a){const s=Array.from((function(m){return m===null})(o)||(function(m){return m===void 0})(o)?void 0:o[(function(m){return m(5)})(je)].values()),[u,h]=await Promise.all([(function(m,p,N,U){return m(p,N,U)})(c7,o,s,a),(function(m,p){return m(p)})(Xv,o)]);return[u,h,s]}function Ec(){return!document.hidden}var Wr=Jt([3237452699,2611787672,3045311674,2962332150,4003383289,4090353905,3805249708,3028587956,2899958253,2946027702,4002601983,4204452091,4039413417,3970602410,3953912762,2631244730,3973421252,2844251834,2861027766,2946406891,3050675130,3806041579,2961425392,4023946731,3800865722,4208313581,2776941242,3806041513,4208313085,2743259834,3806041513,4208314361,3012023994,3968505257,3045300922,2799294954,4001684968,2648037617],4);function As(){return crypto?(crypto.getRandomValues(ec),(1048576*ec[0]+(1048575&ec[1]))/4503599627370496):Math.random()}function Bl(){let o,a;const s=new Promise(((u,h)=>{o=u,a=h}));return s.resolve=o,s.reject=a,s}const i9=8,s9=22,a9=[202,206],c9=2;function pi(o,a,s){if(o.length!==a.length||o.length!==s.length)throw new Error("Invalid encryption configuration: all input arrays must have the same length.");const u=new Array(o.length).fill(void 0);return h=>{var m;if(u.every((p=>p===null)))return null;for(let p=0;p<o.length;p++)if(u[p]!==null&&(u[p]||(u[p]=Sv(o[p],a[p],s[p])),u[p]!==null))return Kr((m=u[p])===null||m===void 0?void 0:m[h]);return null}}const u9=4,f9=7;function Rc(o){const a=function(z,Y){return z(Y)},s=function(z,Y){return z(Y)},u=function(z,Y){return z(Y)},h=function(z,Y){return z(Y)},m=function(z,Y){return z===Y};var p;const[N]=o.split("/").slice(-1),U=new window[a(Dt,1)],G=(function(z,Y){return z(Y,3626513111)})(Nr,new window[a(Dt,5)]("")[(function(z){return z(6)})(Dt)]("")),T=document[s(Dt,7)](G);T[a(Dt,8)]=u(Dt,3);const D=new window[(function(z){return z(9)})(Dt)]([],o,h(Dt,10));try{U[a(Dt,11)][(function(z){return z(12)})(Dt)](D)}catch(z){if((function(Y){return Y instanceof Error})(z)&&m(z.name,(function(Y){return Y(2)})(Dt))&&(function(Y){return Y!==-1})(m(p=z[u(Dt,13)],null)||(function(Y){return Y===void 0})(p)?void 0:p.indexOf(h(Dt,14))))return[N,-3,null];throw z}return T[u(Dt,15)]=U[(function(z){return z(15)})(Dt)],m(typeof T[(function(z){return z(16)})(Dt)],s(Dt,17))?[N,-4,null]:(function(z){return z===0})(T[(function(z){return z(16)})(Dt)].length)?[N,-2,null]:[N,0,T[h(Dt,16)][0]]}function kl(o,a){return new Promise((s=>setTimeout(s,o,a)))}function Dl(o,a,s,u){switch(o.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return N1(a,s,!0,u);case"NotAvailableWithoutUA":return N1(a,s,void 0,u);default:return{error:Za(Gv(o),a,o),stop:o.code==="VisitorNotFound"}}}function l9(o,a,s,u){const h=u.bodyData;return h===void 0?Q1(u):(function(m){return m instanceof Object&&m.v==="2"&&m.products instanceof Object})(h)?(function(m,p,N,U){var G;const{notifications:T,requestId:D,sealedResult:z,error:Y,products:he}=m,_e=(function(Te){const xe=[];for(const Fe of Object.keys(Te)){const ke=Te[Fe];ke&&xe.push(ke)}return xe})(he);bc(T);for(const Te of _e)bc(Te.notifications);if(Y)return Dl(Y,D,z,N);for(const{error:Te}of _e)if(Te)return Dl(Te,D,z,N);(function(Te,xe,Fe){var ke;for(const Ce of xe)(ke=Ce.onGetResponse)===null||ke===void 0||ke.call(Ce,Te,Fe)})(m,p,U);const Be=(G=he.identification)===null||G===void 0?void 0:G.data;return{result:Be?{requestId:D,...z===void 0?{}:{sealedResult:z},...Be.result}:Ul(D,z,N)}})(h,o,a,s):Q1(u)}function Ul(o,a,s){const u={requestId:o,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(a!==void 0&&(u.sealedResult=a),!s)return u;const h="n/a";return{...u,incognito:!1,browserName:h,browserVersion:h,device:h,ip:h,os:h,osVersion:h,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}}}const d9={noop:["a","b"]};function Ss(o){const a=_1(),s=new WeakSet,u=h=>{if(typeof h=="string"){const m=h.replace(_g,(p=>"\\"+(Vf[p]||"u"+p.charCodeAt(0).toString(16).padStart(4,"0"))));return tr(a,34),Rs(a,Ir(m)),void tr(a,34)}if(typeof h=="number"||h===!0||h===!1)return(Number.isNaN(h)||h===1/0||h===-1/0)&&(h=null),void Rs(a,Ir(String(h)));if(typeof h=="object"&&h){if(s.has(h))throw new TypeError("Recursive input");s.add(h);const{toJSON:m}=h;if(typeof m=="function")return void u(m.call(h));if(h instanceof Number||h instanceof String)return void u(h.valueOf());let p=!0;const N=()=>{p?p=!1:tr(a,44)};if(Array.isArray(h)){tr(a,91);for(const U of h)N(),u(U);tr(a,93)}else{tr(a,123);for(const[U,G]of Object.entries(h))Py(G)||(N(),u(U),tr(a,58),u(G));tr(a,125)}s.delete(h)}else Rs(a,oc)};return u(o),Bf(a)}function h9(){const o=(function(s,u){return s(u,3966979758)})(Ae,new window[a=H1,a(0)](""));var a;return(function(s,u){return s!==u})(typeof o,(function(s){return s(1)})(H1))?{s:-1,v:null}:{s:0,v:{isTrusted:o}}}async function Is(o,a){if(P1(a))return o;const s=_s(o);return await Promise.all(pc.map((async u=>{const h=s[u];var m;a[u]&&h&&(s[u]=await(async function(p){var N;if(p==="")return"";const U=(N=window.crypto)===null||N===void 0?void 0:N.subtle;return U?.digest?Gn(await U.digest("SHA-256",Ir(p))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"):il})(u==="query"?(m=h,m.split("&").sort().join("&")):h))}))),Es(s)}function bc(o){o?.forEach(Cg)}function Ac(){return`js/${tc}`}const Pl=async function(o){const a=(function(h){const m=h.filter((p=>!!p));return m.length?(...p)=>{for(const N of m)u1((()=>N(...p)))}:void 0})([Ym()&&s7(),...(o?.modules||[]).map((h=>h.addEvent))]),s=a&&(function(h,m){return p=>{const N={...p,agentId:m};return h(N)}})(a,hi(8)),[u]=await Ao(s,(()=>({e:0,version:tc,options:o})),(([,h])=>({e:1,ab:h})),(h=>({e:2,error:h})),(()=>{var h;const{token:m,apiKey:p=m,region:N="us",tlsEndpoint:U=vs,disableTls:G,storageKey:T=nc,endpoint:D=gs,te:z=Df,integrationInfo:Y=[],algorithm:he,imi:_e={m:"s"},stripUrlParams:Be,urlHashing:Te=rl(Be),modules:xe,abTests:Fe={},externalABSelections:ke={},optimizeRepeatedVisits:Ce=!1,aggressiveOptimization:Ye=!1,extendedSignalCollection:it=!0}=o;if(!p||typeof p!="string")throw new Error("API key required");const dt=(function(bt,Tt,At){const yt={...At},lt=Object.entries(bt);for(const[Gt,Ht]of lt){const mn=Tt[Gt];if(mn)try{yt[Gt]=ml(mn);continue}catch(nn){console.error(nn)}yt[Gt]=ml(Ht)}return yt})((function(bt){const Tt={...d9};for(const At of bt)Object.assign(Tt,At.ab);return Tt})(xe),Fe,ke),mt=(function(bt,Tt){const At=function(yt,lt){return yt(lt)};return(Array.isArray(bt)?bt:[bt]).map((yt=>(function(lt,Gt,Ht){return lt(Gt,Ht)})(yc,yt,gs)?At(O7,Tt):At(String,yt)))})(D,N),Bt=(h=(function(bt){for(const Tt of bt)if(Tt.tls)return Tt.tls})(xe))===null||h===void 0?void 0:h(U,mt,p,G,void 0,s);Un(s,(()=>({e:12})));const Ft=(function(bt,Tt){return(function(At,yt,lt){return At(yt,lt)})(yc,bt,Df)?(function(At,yt){return At(yt)})(Ny,Tt):(function(At,yt){return At(yt)})(String,bt)})(z,N),Vt={aq:[],ipq:!1,si:null,siw:null,ip:null,dc:{adb:0,crs:0,asib:0}};(async function(bt,Tt=50){bt.ip=$r((async function(At,yt){var lt,Gt;const{dc:Ht}=At,mn=document;for(;!mn.body;)Ht.adb++,await kl(yt);const nn=mn.createElement("iframe");for(await new Promise(((yn,$n)=>{let wn=!1;const rn=()=>{wn=!0,yn()};nn.onload=rn,nn.onerror=jn=>{wn=!0,$n(jn)};const{style:un}=nn;un.setProperty("display","block","important"),un.position="absolute",un.top="0",un.left="0",un.visibility="hidden",nn.src="about:blank",mn.body.appendChild(nn);const on=()=>{var jn,Xr;Ht.crs++,wn||(((Xr=(jn=nn.contentWindow)===null||jn===void 0?void 0:jn.document)===null||Xr===void 0?void 0:Xr.readyState)==="complete"?rn():setTimeout(on,10))};on()}));!(!((Gt=(lt=nn.contentWindow)===null||lt===void 0?void 0:lt.document)===null||Gt===void 0)&&Gt.body);)Ht.asib++,await kl(yt);At.si=nn,At.siw=nn.contentWindow})(bt,Tt))})(Vt);const pn=(function(bt,Tt,At){const yt={...At,cache:{}},[lt,Gt]=(function(yn){const $n={},wn={},rn={};for(const{sources:on}of yn)on&&(Object.assign($n,on.stage1),Object.assign(wn,on.stage2),Object.assign(rn,on.stage3));const un=wn;return Object.assign(un,rn),[$n,un]})(bt),Ht=(function(yn){return yn?1e5:50})(Tt),mn=se(lt,yt,[],Ht),nn=$r((function(yn=50){return(function($n,wn=1/0){const{requestIdleCallback:rn}=window;return rn?new Promise((un=>rn.call(window,(()=>un()),{timeout:wn}))):r(Math.min($n,wn))})(yn,2*yn)})(8).then((()=>se(Gt,yt,[],Ht))));return async()=>{const[yn,$n]=await Promise.all([mn(),nn.then((rn=>rn()))]);(function(rn){const{si:un,aq:on}=rn;for(un&&un.parentNode&&un.parentNode.removeChild(un),rn.si=null,rn.siw=null,rn.ip=null;on.length>0;){const jn=on.shift();jn&&jn.reject(new Error("Iframe cleanup called"))}rn.ipq=!1})(yt.sis);const wn=$n;return Object.assign(wn,yn),wn}})(xe,Ye,{urlHashing:Te,ab:dt,te:Ft,sis:Vt,esc:it});return[L7(xe,pn,Bt,p,mt,Os(he),T,Y,_e,Te,dt,Ce,s),dt]}));return u},Fl=function(o,a={}){const{storageKey:s=nc,do:u}=a;try{const h=(function(m){const p=vo(m);let N=p;try{N=w1(p,!1)}catch{}try{return vi(N)}catch{}return null})(o);h!==null?(h.visitorToken&&q1(h.visitorToken,kc(s)),bc(h.notifications),Un(u,(()=>({e:25,result:{response:h}})))):Un(u,(()=>({e:25,result:{error:new Error("Failed to decode response")}})))}catch(h){throw Un(u,(()=>({e:25,result:{error:h instanceof Error?h:new Error(String(h))}}))),Za(lc,void 0,h)}},p9=["32926","32928"];function Ir(o){const a=new Uint8Array(o.length);for(let s=0;s<o.length;s++){const u=o.charCodeAt(s);if(u>127)return new TextEncoder().encode(o);a[s]=u}return a}function Vl(o){return de(o,(a=>typeof a=="number"?{s:a,v:null}:{s:0,v:a}))}const m9=hn(ee,-1),g9=de(g,(o=>o===-1||o===-2||o===-3?{s:o,v:null}:{s:0,v:o})),v9=de(ut,(o=>({s:0,v:o.map((a=>a===null?-1:a))}))),Gl=hn(we,-1),Hl=cn(Se),y9=hn(Ne,-1),$l=hn(Pe,-1),jl=de(We,(o=>({s:0,v:o.map((a=>a===null?-1:a))}))),Kl=hn(Ve,-1),w9=cn(ue),_9=cn(He),E9=cn(ze),R9=cn(qe),b9=hn(et,-1),Wl=hn(ct,-1),A9=hn(ot,-1),S9=de((()=>ye()),(o=>{const{geometry:a,text:s}=o,u=a==="unsupported"?-1:a==="unstable"?-2:0;return{s:u,v:{...o,geometry:u===0?dn(a):"",text:u===0?dn(s):""}}})),zl=cn(rt),Zl=cn($t),I9=cn(pt),O9=cn(gt),N9=hn(tn,-1),T9=hn(It,-1),x9=hn(Nt,-1),L9=hn(lr,-1),C9=hn(kt,-1),M9=hn(Mt,-1),B9=hn(Hr,-1),k9=hn(zt,-1),D9=de(Zt,(o=>({s:0,v:dn(Object.keys(o).map((a=>`${a}=${o[a]}`)).join(","))}))),U9=hn(fs,-1),P9=cn(Yt),F9=hn(Xt,-1),V9=de(zo,(o=>o===-1||o===-2||o===-3?{s:o,v:null}:{s:0,v:o})),Yl=Vl(Yo),Xl=de((ql=Xo,o=>{const a=o.cache;if(a.webGlRawValues)return Kr(a.webGlRawValues);const s=ql(o);return typeof s=="number"?s:(function(u,h){const m=h;if(m.webGlRawValues)return Kr(m.webGlRawValues);const p=u.parameters.map((U=>{const[G,T,D]=U.split("=",3);return D!==void 0||p9.includes(T)?`${G}(${T})=null`:`${G}=${T}`})),N=u.extensionParameters.map((U=>{const[G,T,D]=U.split("=",3);return D!==void 0&&T!=="34047"?`${G}(${T})=${D}`:`${G}=${T}`}));return m.webGlRawValues={contextAttributes:u.contextAttributes,parameters:p,parameters2:u.parameters,shaderPrecisions:u.shaderPrecisions,extensions:u.extensions||[],extensionParameters:N,extensionParameters2:u.extensionParameters,unsupportedExtensions:u.unsupportedExtensions},Kr(m.webGlRawValues)})(s,o.cache)}),(o=>typeof o=="number"?{s:o,v:null}:{s:0,v:{contextAttributes:dn(o.contextAttributes.join("&")),parameters:dn(o.parameters.join("&")),parameters2:dn(o.parameters2.join("&")),shaderPrecisions:dn(o.shaderPrecisions.join("&")),extensions:dn(o.extensions.join(",")),extensionParameters:dn(o.extensionParameters.join(",")),extensionParameters2:dn(o.extensionParameters2.join("&")),unsupportedExtensions:o.unsupportedExtensions}}));var ql;const G9=Vl(Zo),H9=Cn(Lm),$9=Cn(Cm),j9=Cn(Mm),K9=Cn(Vm),W9=Cn(km),z9=Cn(Dm),Z9=Cn(Um),Y9=Cn(Gm),X9=Cn(Pm),q9=Cn(Fm),J9=Cn(Hm),Q9=Cn($m),ev=Cn(Bm),tv=Cn(jm),Jl=cn(ge),Ql=cn(k),e1=cn(f),t1=cn(R),n1=cn(M),r1=cn($),o1=cn(ce),i1=cn(h1),nv=cn(K);var yo=Jt([2835032359,1872962713,180684482,500584696,63730940,1306150896,499189429,1304843e3,499189429,1019630328,29509878,1301219064,432166651,131555836,449206012,881788660,499271611,13452797,478218427,29509878,1301219064,181096700,47596011,1301248443,30231546,114771964,847334134],4);function rv(o){return nr(((a,s)=>{const u=s.screen,h=m=>{const p=parseInt(m);return typeof p=="number"&&isNaN(p)?-1:p};return{s:0,v:{w:h(u.width),h:h(u.height)}}}),o.sis)}function ov(){if(typeof window.matchMedia!="function")return{s:-2,v:null};const o=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return o.matches===void 0?{s:-1,v:null}:{s:0,v:o.matches}}function iv(){if(navigator.plugins===void 0)return{s:-1,v:null};const{plugins:o}=navigator;let a=Object.getPrototypeOf(o)===PluginArray.prototype;for(let s=0;s<o.length;s++)a&&(a=Object.getPrototypeOf(o[s])===Plugin.prototype);return{s:0,v:a}}function sv(){const o=function(s,u){return s(u)},a=window[o(Mc,1)](document[o(Mc,2)]);return{s:0,v:(function(s){return s>=4})(o(Sr,Oy.map((s=>Ae(a,2297974007)(s)!==""))))}}const wo=["monospace","sans-serif","serif"],s1=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Sc(o){switch(o){case 0:return"load() start";case 1:return"load() success";case 2:return"load() fail";case 3:return"get() start";case 4:return"get() success";case 5:return"get() fail";case 21:return"collect() start";case 22:return"collect() success";case 23:return"collect() fail";case 25:return"handleOnDemandResponse() completed";case 6:return"TLS start";case 7:return"TLS success";case 8:return"TLS fail";case 9:return"TLS attempt start";case 10:return"TLS attempt success";case 11:return"TLS attempt fail";case 12:return"Signals start";case 13:return"Signals success";case 14:return"Signals fail";case 15:return"Ingress start";case 16:return"Ingress success";case 17:return"Ingress fail";case 18:return"Ingress attempt start";case 19:return"Ingress attempt success";case 20:return"Ingress attempt fail";case 24:return"collect() result ready"}}function av(){const o=function(u,h){return u|h},a=new Uint32Array(4);return(function(u,h){return u(h,2617745417)})(Ae,window[s=hr,s(8)])(a),[o(a[0],0),o(a[1],0),(function(u){return 0|u})(a[2]),o(a[3],0)];var s}const cv="mmMwWLliI0fiflO&1",Ic={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function uv(o){const a=u=>u.replace(/([,\\])/g,"\\$1"),s=o.map((u=>[a(u.voiceURI),a(u.name),a(u.lang),u.localService?"1":"0",u.default?"1":"0"].join(","))).sort();return{s:o.length?0:1,v:dn(JSON.stringify(s))}}var fv=Jt([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);async function lv(){const o=function(T,D,z){return T(D,z)},a=function(T,D){return T(D)},s=function(T,D){return T(D)},u=function(T,D){return T instanceof D},h=function(T,D){return T(D)},m=function(T,D,z){return T(D,z)},p=function(T,D){return T(D)},N=window[p(zr,0)];if(!N)return{s:-2,v:null};const U=(function(T){return T+""})((G=(function(T){return T(16)})(hi),""+G));var G;return new Promise(((T,D)=>{try{const z=(function(Y,he){return Y(he,2758837156)})(Ae,N)(U,1);z[p(zr,1)]=()=>{(function(Y,he){(function(_e,Be){_e(Be)})(Y,he)})(T,{s:-5,v:null})},z[a(zr,2)]=Y=>{const he=o(Ae,o(Ae,Y,1181691900),325763347);try{return o(Ae,(function(_e,Be){return _e(Be,138212912)})(Ae,he)("-",a(zr,3)),2928708052)(new window[s(zr,4)]),void s(T,{s:0,v:""})}catch(_e){if(u(_e,Error))return void h(T,{s:0,v:m(Ae,_e,3065852031)});s(D,_e)}finally{o(Ae,he,318865860)(),m(Ae,N,3885781331)(U)}}}catch(z){if(!(function(Y){return Y()})(R))return void h(T,{s:-5,v:null});if(u(z,Error)&&(function(Y,he){return Y===he})(z.name,(function(Y){return Y(5)})(zr)))return void(function(Y){Y({s:-4,v:null})})(T);(function(Y,he){Y(he)})(D,z)}}))}function dv(){const o=window,a=navigator;return Sr(["maxTouchPoints"in a,"mediaCapabilities"in a,"PointerEvent"in o,"visualViewport"in o,"onafterprint"in o])>=4}async function hv(o){return nr(((a,s)=>{const u=s.document.createElement("div");u.style.width="100px",u.style.height="100px",u.style.overflow="scroll",u.style.visibility="hidden",s.document.body.appendChild(u);const h=u.offsetWidth===u.clientWidth;return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function a1(){return typeof CompressionStream<"u"}async function pv(o){return await(function(a){return nr(((s,{document:u})=>{const h=u.body;h.style.fontSize="48px";const m=u.createElement("div");m.style.setProperty("visibility","hidden","important");const p={},N={},U=Y=>{const he=u.createElement("span"),{style:_e}=he;return _e.position="absolute",_e.top="0",_e.left="0",_e.fontFamily=Y,he.textContent="mmMwWLliI0O&1",m.appendChild(he),he},G=(Y,he)=>U(`'${Y}',${he}`),T=wo.map(U),D=(()=>{const Y={};for(const he of s1)Y[he]=wo.map((_e=>G(he,_e)));return Y})();h.appendChild(m);for(let Y=0;Y<wo.length;Y++)p[wo[Y]]=T[Y].offsetWidth,N[wo[Y]]=T[Y].offsetHeight;const z=s1.filter((Y=>(he=>wo.some(((_e,Be)=>he[Be].offsetWidth!==p[_e]||he[Be].offsetHeight!==N[_e])))(D[Y])));return h.removeChild(m),h.style.fontSize="",{s:0,v:z}}),a.sis)})(o)}function mv(o,a){if(o!==void 0){if(!Array.isArray(o))throw new TypeError(`Expected ${a} to be an array, a ${(function(s){return typeof s=="object"?s?Object.prototype.toString.call(s):"null":typeof s})(o)} is given`);return o.map(String)}}const gv=1655763047,c1=6;async function u1(o,a){try{return await o()}catch(s){return console.error(s),a}}const vv=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function f1(){return li("CSPError","The request is blocked by the CSP")}function yv(){const o=function(s,u){return s===u},a=(function(s){return s(navigator,3087401394)})(Ae);return o(a,void 0)||o(a,null)?{s:-1,v:null}:{s:0,v:a}}async function wv(){var o;const{userAgentData:a}=navigator;if(!a||typeof a!="object")return{s:-1,v:null};const s={},u=[];return typeof a.getHighEntropyValues=="function"&&await Promise.all(vv.map((async h=>{try{const m=(await a.getHighEntropyValues([h]))[h];m!==void 0&&(s[h]=typeof m=="string"?m:JSON.stringify(m))}catch(m){if(!(m instanceof Error&&m.name==="NotAllowedError"))throw m;u.push(h)}}))),{s:0,v:{b:a.brands.map((h=>({b:h.brand,v:h.version}))),m:a.mobile,p:(o=a.platform)!==null&&o!==void 0?o:null,h:s,nah:u}}}function _v({status:o,body:a}){return o===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(a)?{result:{s:0,v:a}}:{error:{s:-5,v:_o(`${o}: ${a}`,255)}}}async function l1(){const o=function(h,m,p){return h(m,p)},a=function(h,m,p){return h(m,p)},s=o(Ae,navigator,3179935986);if(!s)return{s:-3,v:null};let u=null;try{u=await o(Ae,s,1678473624)()}catch(h){if(h instanceof Error&&$())return{s:-3,v:a(Ae,h,3065852031)};throw h}return u?{s:0,v:u}:{s:-4,v:null}}function d1(o,a,s,u,h=yy){const m=h()%(s+1),p=jr(o),N=1+a.length+1+m+u+p.length,U=new ArrayBuffer(N),G=new Uint8Array(U);let T=0;const D=h();G[T++]=D;for(const Y of a)G[T++]=D+Y;G[T++]=D+m;for(let Y=0;Y<m;++Y)G[T++]=h();const z=new Uint8Array(u);for(let Y=0;Y<u;++Y)z[Y]=h(),G[T++]=z[Y];for(let Y=0;Y<p.length;++Y)G[T++]=p[Y]^z[Y%u];return U}function h1(){const o=window;return Sr([!("PushManager"in o),!("AudioBuffer"in o),!("RTCPeerConnection"in o),!("geolocation"in navigator),!("ServiceWorker"in o)])>=3}function Ev(o=!1){const a=function(h,m,p){return h(m,p)},s=function(h,m){return h(m)},u=(function(h){return h()})(kf);return a(Ae,u,621177879)&&(a(Ae,u,621177879)[0][s(St,26)]=s(St,27)),o&&(u[s(St,28)]=(function(h){return h(29)})(St)),u}function Ae(o,a){const s=o[Nr(o,a)];return typeof s=="function"?s.bind(o):s}async function Rv(o){return nr(((a,s)=>{if(!$())return{s:-1,v:null};const u=s.document.createElement("input");u.type="radio",s.document.body.appendChild(u);const h=s.getComputedStyle(u).getPropertyValue("font-family");return s.document.body.removeChild(u),{s:0,v:h}}),o.sis)}function p1(o,a){if(a==="")return[o,[]];const s=o.split(a);return[s[0],s.length>1?s.slice(1):[]]}function bv(){var o,a;const s=Vv(0),u={};for(const[h,m]of s)for(const p of m){const N=(a=(o=Object.getOwnPropertyDescriptor(window[h],p))===null||o===void 0?void 0:o.get)===null||a===void 0?void 0:a.toString();N!==void 0&&(u[`${h}.${p}`]=N)}return{s:0,v:u}}var Dt=pi([[290799128,256122120,104421910,67116302,755371265,505093152,152897830,504707661,470222364,504898635,1531393810,35461445,285283613,151395398,386279171,454440300,1259148302,67715140,117915663,1445400833,70599515,280581,270008841,369435995,272236574,119803980,704973062,135268614,184563807,1026755337,824180753,521019142,404440330,1310525212,689393240,992889883,118162967,75079,371069214,14400,67440946,336725549,100928582,419697754,37884160,822483751,151655985,440867606,34934535,1544297499,69023765,1530421525,521022789,352788490,152182535,1095068179,168111383,102371362,1379942426,218301962,410405200,674697750,150995736,1460669954,289295192,422585355,276197185,1241580055,503401029,169544981,956309037,1628772625,269702473,1481182751,12887,860704273,607786827,1079856400,370150428,234881091,407897606,354309752,1157892134,252333381,1264080656,304025857,1627786793,302143352,172563473,34688007,17172047,337261841,285893380,117845831,1448695310,152569103,1095068178,68628788,120395278,352653340,1245924639,288361223,2951185,3425555]],[hs],[1]);function Or(o,a=Cc,s=null,u=Sy){const h={type:(m=Fn,m(1)),video:{contentType:o,...a}};var m;return s?{...h,audio:{contentType:s,...u}}:h}function Oc(o){const a=Nl(o);if(!a)return[];try{const s=a?JSON.parse(a):[];return Array.isArray(s)?s:[]}catch{return[]}}function Nc(o,a,s){const u=()=>{throw new Error("Invalid data")},h=jr(o);h.length<a.length+2&&u();for(let D=0;D<a.length;++D)y1(h[1+D],h[0])!==a[D]&&u();const m=1+a.length,p=y1(h[m],h[0]);h.length<m+1+p+s&&u();const N=m+1+p,U=N+s,G=new ArrayBuffer(h.length-U),T=new Uint8Array(G);for(let D=0;D<T.length;++D)T[D]=h[U+D]^h[N+D%s];return G}var mi=Jt([752472786,243421427,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function m1(o){return o>=48&&o<58||o===45}function Av(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function Sv(o,a,s){const u=Ir(a());try{return vi((function(h,m,p){const N=jr(h),U=new ArrayBuffer(N.length-p),G=new Uint8Array(U);for(let T=0;T<N.length;++T)G[T]=N[T]^m[T%m.length];return U})(new Uint32Array(o),u,s))}catch(h){if(ys(h)&&h.name==="SyntaxError")return null;throw h}}function g1(o,a,s=As){let u="";for(let h=0;h<o;h++)u+=a.charAt(s()*a.length);return u}function v1(o){return o&&o.length<=1e3?o:void 0}function Nn(o,a){return new Promise((s=>bs(s,o,a)))}function tr(o,a){Ol(o,o.len+1),o.arr[o.len++]=a}function Iv(o){const a=function(z,Y){return z*Y},s=function(z,Y){return z>=Y},u=function(z,Y){return z(Y)},h=function(z,Y){return z+Y},m=function(z,Y){return z<<Y},p=function(z,Y){return z%Y},N=function(z,Y){return z%Y},U=function(z,Y){return z+Y},G=new Uint8Array([Date.now()%1024,a(Math.random(),65536)]),T=G.length;let D=Wv;for(let z=(function(Y){return Y-1})(o.length);s(z,0);z--){const Y=o[u(xt,2)](h(m(z,8),D));G[p(z,T)]^=h(Y,a(G[N(U(z,1),T)],17)),D=Y}return u(Ir,(function(z,Y){return z(Y)})(Gn,G).slice(0,3))}function y1(o,a){return(o-a+256)%256}function Ov(){return o=Dn,a=Nn(450,{s:-2,v:null}),o(a,Rg);var o,a}function Nv(){const o=Ae(navigator,2698072953);return o?{s:0,v:(function(a,s){return a(s)})(Kg,o)}:{s:-1,v:null}}async function Tv(){const o=function(T,D){return T(D)},a=function(T,D){return T<D},s=function(T,D,z){return T(D,z)},u=function(T,D){return T-D};if(jy())return[-1,NaN];const h=new Uint8Array([0]),m=(function(T){return T(0)})(Pn),p=await navigator[o(Pn,1)](o(Pn,2),m),N=await p[o(Pn,3)]();let U=await(function(T,D,z){return T(D,z)})(S1,N,h);const G=a(U,D1);if(G){const T=u(u(s(r9,D1,ty),U),1);for(let D=0;a(D,T);D++)s(H7,N,h);U=await s(S1,N,h)}return[G?1:0,U]}function xv(o,a){const s=function(xe,Fe){return xe(Fe)},u=function(xe,Fe){return xe===Fe},h=function(xe,Fe){return xe(Fe)},m=function(xe,Fe){return xe!==Fe},p=function(xe,Fe){return xe in Fe},N=function(xe,Fe){return xe(Fe)},U=function(xe,Fe){return xe in Fe},G=function(xe){return xe()},T=function(xe,Fe){return xe(Fe)},D=function(xe,Fe){return xe!==Fe};function z(xe,Fe){return s(Y,xe)&&(function(ke,Ce){return ke===Ce})((function(ke,Ce){return ke(Ce,3920415024)})(Ae,xe),qv)&&(function(ke,Ce){return ke(Ce,4101391790)})(Ae,xe).includes(Fe)}function Y(xe){return u(typeof xe,h(Qt,12))&&m(xe,null)&&p(N(Qt,13),xe)&&U(h(Qt,14),xe)}let he=null,_e=!1;async function Be(){const xe=s(vg,o);if(D(xe,0))return{s:xe,v:null};const{s:Fe,v:ke}=await s(t9,o);return(function(Ce){return Ce!==0})(Fe)?{s:Fe,v:null}:{s:0,v:ke}}a&&(function(xe,Fe){return xe(Fe,123626528)})(Ae,o)((function(xe){return xe(15)})(Qt),(xe=>{(function(Fe,ke,Ce){return Fe(ke,Ce)})(z,xe,a)&&(he?(G(he),he=null,s(di,o)):_e=!0)}));const Te={[T(Qt,17)]:()=>di(o),[s(Qt,18)]:async()=>{const xe=await G(Be);return D((function(Fe,ke){return Fe(ke,453955339)})(Ae,xe),0)&&s(di,o),xe}};return a?(function(xe){return xe(Object,1914874273)})(Ae)(Te,{[N(Qt,19)]:function(){(function(xe,Fe){return xe===Fe})((function(xe,Fe){return xe(Fe,4184312542)})(Ae,o),(function(xe){return xe(16)})(Qt))||(_e?T(di,o):he=(function(xe,Fe,ke,Ce){return xe(Fe,5e3,Ce)})(bs,di,0,o))}}):Te}function Lv(o){const a={type:"manual",level:"debug",source:"client",timestamp_ms:o.time.getTime()};switch(o.type){case"documentReadyState":return{...a,body:{message:`Document ready state becomes "${o.state}"`}};case"pageVisibilityToggle":return{...a,body:{message:"Page becomes "+(o.isVisible?"visible (in foreground)":"invisible (in background)")}};case"pageTransition":return{...a,body:{message:o.isShown?"Page is restored from browser history":"Page is about to go to browser history"}};case"fullscreenToggle":return{...a,body:{message:"Programmatic fullscreen "+(o.isFullscreen?"on":"off")}};case"networkChange":return{...a,body:{...o.network,message:"Network connection changes"}};case"pageUnload":return{...a,body:{message:"Page is about to unload (terminate)"}}}const s=o.event,u=(h,m="info")=>{const{rest:p}=ws(h,["e","agentId","getCallId"]),N={...a,level:m,body:{message:Sc(s.e),...p}};for(const U of["documentReadyState","isPageVisible","isFullscreen","network"])o[U]!==void 0&&(N.body[U]=o[U]);return N};switch(s.e){case 0:{const{picked:h,rest:m}=ws(s,["version","options"]);return u({...m,options:tg(h.options)})}case 1:case 3:case 4:case 21:case 22:case 6:case 9:case 12:case 16:case 18:return u(s);case 2:case 5:case 23:case 8:case 11:case 14:case 17:case 20:return u(s,"error");case 7:{const h=s.result;return u({...s,result:{...h,v:"v"in h?h.v&&_o(h.v,1e3):void 0}})}case 10:return u({...s,body:_o(s.body,1e3)});case 13:{const h=u({...s,result:Ig(s.result)});return h.body.message+=" (the values are omitted)",h}case 19:{let h=s.body;return h instanceof ArrayBuffer&&(h=`(base64) ${h.byteLength>1800?`${Gn(new Uint8Array(h,0,1800))}...`:Gn(h)}`),u({...s,body:h})}case 15:return(h=>{const{rest:m}=ws(h,["e","agentId","getCallId"]),p=m.body,N=Object.values(p).some((U=>U&&typeof U=="object"&&"e"in U&&!("s"in U&&"v"in U)));return{...a,level:N?"warn":"info",body:{message:Sc(s.e),stage:m.stage,isCompressed:m.isCompressed,signals:{...p}}}})({...s})}}function Tc(o,a,...s){const u=Date.now()+a;let h=0;const m=()=>{h=setTimeout((()=>{Date.now()<u?m():o(...s)}),u-Date.now())};return m(),()=>clearTimeout(h)}function xc(o){return(o instanceof DOMException||o instanceof TypeError)&&(Pg.test(o.message)||(function(a){const s=a.match(Fg);return!!s&&Mn(s[1])===$g&&Mn(s[2])===jg})(o.message)||Vg.test(o.message)||Gg.test(o.message)||Hg.test(o.message))}function Os(o){return o===void 0?void 0:`${o}`}var zr=Jt([3924185679,3632893699,2980828376,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function Hn(o){let a="";for(let s=0;s<o.length;++s)if(s>0){const u=o[s].toLowerCase();u!==o[s]?a+=` ${u}`:a+=o[s]}else a+=o[s].toUpperCase();return a}function w1(o,a){return Nc(o,xl,Ll)}function _1(){return{len:0,arr:new Uint8Array(128)}}function Cv(){return{s:0,v:By(Navigator.prototype,vy)}}function E1(o){const a=o;return!!a.collectCallId&&typeof a.collectCallId=="string"}var St=Jt([2051009255,196400063,2525527446,4044416111,199305624,3777599729,664183563,2527137204,2959068455,280520411,4185511866,2144517134,3586067896,2987975794,1370780368,4217690097,2128325203,3518040290,2987517477,485718477,3408514487,1624764753,2525516212,3089101692,314277853,3777352609,1742208334,3751877875,4284477294,451175574,3090727933,1792130846,3451262692,4048669481,1370783684,4184381064,1876294928,2595627001,3189040251,285179857,3022493366,635026462,3602651639,2954672238,249917143,3022514673,664183579,3685769165,2736568422,1408460740,3831682485,1926610701,2533302452,3122262854,83050709,3022493344,1087813162,3516795391,2552037231,1608872657,3309737727,1657845296,3451270903,4048663672,149384902,3682584502,1792915224,3886684381,3054101874,519391961,3027814326,1859318097,3332770295,3205678702,1609525469,4167997183,2077073694,2578913506,3122262886,1606035925,4285518270,2077593628,3636076535,3054821986,1606035911,4184396215,1826273817,3686077407,2959063593,179857115,3765358778,634502420,3701674487,4048663658,351432409,4185430450,1859625224,2527613364,2803104104,702703057,3027158186,2127950151,2612794610,3897157222,435775636,2876823478,2077880609,2164071586,2404366395,1374366102,4184381096,1708238611,3299486178,4048008302,418538178,3865484220,1754589257,3619035641,4045515640,1291156949,3543761149,1475469901,2533318580,2701786985,1609793493,2788918761,697885517,3652325360,2803688558,1319905745,4264138979,1674820120,2162778082,4048660019,166879939,2687604411,667542345,3684786157,2802770793,249917146,3307835121,1323797546,4051773653,2318390612,1608081380,4247361710,1927784984,3652585957,3055482186,1370781895,4151957233,664188427,3602649012,3171542398,1608874193,3243808511,1223786530,3952488387,2200224840,1370768608,3849242609,1708898830,3517121730,2287055992,267615126,3799571872,650165528,3517977850,4044940645,1609377769,3798129338,1791013433,3517121730,2286400632,334719126,3126236848,1874965087,3582989055,3122657147,350380760,2888419254,1754703910,3517387769,2854871653,1203007172,4068398577,1721482260,3622324710,2954424932,1607087815,4148151486,629466963,2532385188,2382416758],5);function Mv(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};const o=new window.SharedArrayBuffer(1);return o.byteLength===void 0?{s:-1,v:null}:{s:0,v:o.byteLength}}const Bv=[[St(1),o=>U1(!1,o)],[St(2),()=>U1(!0)],[St(3),()=>ms(St(4))],[St(5),()=>ms(St(6))],[St(7),()=>ms(St(8))],[St(9),()=>ms(St(10))]];function kv(o,a){const s=function(m,p){return m(p)},u=a?window[(function(m){return m(7)})(Qt)]||window[s(Qt,8)]:window[(function(m){return m(7)})(Qt)];if(!u)return{s:-3,v:null};let h;try{h=new u(o)}catch(m){if((function(p){return p instanceof Error})(m)){if((function(p,N){return p===N})(m.name,M1))return{s:-6,v:null};if(s(T7,m))return{s:-9,v:null}}throw m}return{s:0,v:h}}async function Dv(){const o=function(p,N){return p(N)},a=function(p,N,U){return p(N,U)},s=function(p,N){return p!==N},u=window[o(Bc,1)];if(!u||(function(p,N){return p!==N})(typeof a(Ae,u,3192107409),o(Bc,2)))return{s:-1,v:null};const h=await a(Ae,u,3192107409)(),m={};for(const[p,N]of Object.entries(h)){const U=Ly[p];s(U,void 0)&&(m[U]=N)}return{s:0,v:m}}async function Uv(){return yg()?(function(o,a){return o(a,(async()=>{const s=await(function(u){return u()})(Tv);return(function(u){return u===-1})(s[0])?{s:-3,v:null}:{s:0,v:s}}))})(Dn,(function(o,a){return o(a,{s:-2,v:null})})(Nn,ny)):()=>({s:-1,v:null})}const R1=St(19);function Pv(o,a,s,u){return function(){const h=a<<9;let m=5*o;return m=9*(m<<7|m>>>25),u^=a,a^=s^=o,o^=u,s^=h,u=u<<11|u>>>21,(m>>>0)/4294967296}}function Fv(){var o,a,s=function(p,N){return p===N},u=function(p,N){return p===N},h=function(p,N,U){return p(N,U)};const m=s(a=(function(p){return p===null})(o=window[(function(p){return p(0)})(fv)])||u(o,void 0)?void 0:h(Ae,o,3933025333),null)||u(a,void 0)?void 0:h(Ae,a,3098533860);return s(m,null)||s(m,void 0)?{s:-1,v:null}:{s:0,v:m}}function b1(){return{s:0,v:!!window.isSecureContext}}var Vv=Jt([1348463336,3803023018,4141740428,4039893696,3740108228,2696994793,2396890353,3287272953,2760289937,3639185880,3800550087,3229721822,3655845628,3956859780,3417230991,3987529206,3465536455,3286746798,3788241285,4155412936,2931392987,2279597529,2175059177,4024282809,2296682185,4202925994,3049385931,3321024229,4001931456,3270216648,2932772850,2345464011,3303269088,2766070917,4157718512],5);function Gv({code:o,message:a}){var s;return o===void 0?a:(s=(function(u){switch(u){case"TokenRequired":return"API key required";case"TokenNotFound":return"API key not found";case"TokenExpired":return"API key expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableForAIBots":return"Not available for AI bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}})(o))!==null&&s!==void 0?s:Hn(o)}function Hv(){const o=function(s,u){return s in u},a=function(s,u){return s(u)};return o(a(St,17),navigator)&&o(a(St,18),(function(s){return s(navigator,2900309608)})(Ae))}const A1=4191585516,$v=new Set([4106781067,3209949814,2612078219,2382064880,3225112721,1018714844,2899793226,2094258580,3169460974,3079760821,392195965,3461410589,3582327722,1731918890,1767246934,3419607467,1110225616,1455947556,450291099,176445009,1998723369,2961538051,3413933903,2299562828,3945560591,485550147,3336694844,3737152292,2669437517,3860417393,A1]);function _o(o,a,s="..."){return o.length<=a?o:`${o.slice(0,Math.max(0,a-s.length))}${s}`}async function S1(o,a){const s=function(m,p){return m(p)},u=function(m,p){return m(p)},h=o[s(Pn,5)]();return await h[u(Pn,6)](s(Pn,7),a),u(Number,h[u(Pn,8)])}async function I1(o,a,s,u,h){if(o.length===0)throw new TypeError("The list of endpoints is empty");const m=o.map((G=>(function(T,{apiKey:D}){return hc(T,{ci:Ac(),q:D})})(G,a))),p=await Sl(a),N=Ss(p),U=a.fast?0:1;return await Ao(h,(()=>({e:15,stage:U,body:p,isCompressed:dc(N)})),(G=>({e:16,stage:U,result:G})),(G=>({e:17,stage:U,error:G})),(async()=>(function({result:G,failedAttempts:T,aborted:D}){if(G)return G;const z=T[0];if(!z)throw D&&!D.resolve?D.error:new Error("aborted");const{level:Y,error:he}=z;if(Y===0&&he instanceof Error){switch(he.name){case"CSPError":throw new Error(uc);case"InvalidURLError":throw new Error(fc);case"AbortError":throw new Error(ac)}throw new Error(sc)}throw he})(await ed(m,my.bind(null,N,h,U,s),l9.bind(null,a.modules,!!a.extendedResult,a.storageKey),1/0,u))))}function jv(){var o;return{s:0,v:(o=performance.timeOrigin)!==null&&o!==void 0?o:Date.now()-performance.now()}}function O1(o){const a=Math.random();return(function(s,u,h){const[m]=s;m.push([u,h])})(o.container,a,o),(function(s,u,h){let m;function p(){window.clearInterval(m)}const[,N,U]=s,G=new Promise(((T,D)=>{m=window.setInterval((function(){const z=N.get(u);if(z)return N.delete(u),z.then(T,D)}),1)}));return G.then(p,p),h?.then(p,p),U.then(p,p),G})(o.container,a,o.abort)}var Kv=Jt([1024705730,641842159,2578743392,3876471597,2070139803],6);function gi(o,a){return new Promise((s=>Tc(s,o,a)))}var xt=pi([[855787288,642990106,254096950,926556982,87375404,1278677006,408486424,1479671850,1785924,253259062,240523559,673514752,658445118,1391164,607131925,722936367,271014668,151655183,36375323,656347974,1445350919,353197617,423242801,1160005147,1512002869,420283957,536958245,86705444,656408603,100677635,20185122,556090667,202191150,724518191,792405557,102894606,623247373,587992400,658457902,186065947,138173228,910037367,2368541,1529157659,892869409,976305177,203760670,1010441050,942083341,505880599,858547496,472786520,104733226,488840738,977151779,154821378,1044189198,942025224,606622265,960446235,537939522,1427451664,1594829109,757486355,521087014,119085350,638781191,792409347,3607069,137245730,740307761,975647282,992231996,556677182,121255207,522468654,103100716,805591826,205345105,352982566,809188375,538263045,590744875,204342828,87438137,657730594,355141642,1430208096,990394680,70993686,825163804,1060643342,419658253,86454317,808395603,960181563,1394880291,723543328,1059455265,422468123,1512636726,523643153,874654019,741018648,472326400,438382882,19791956,101085447,788741643,117637695,134556468,576544002,1817775652,828261639,390094395,253639961,1880502074,370026788,807930146,3016495,1527136534,71514660,945292548,304222e3,1580941075,2110514,203960841,321666847,858338073,408755024,134358831,521999910,104796679,1141842004,1376664580,355614474,1581667629,1510485767,671100941,1062295126,370957148,254414105,1535071780,561394448,1494427185,539892273,120535346,203499292,522594859,471863338,775098909,1597979140,907887673,758332434,655825187,758207319,419572773,2133349379,909508638,122886204,123473464,1463621412,641018151,1376126269,1462121850,472787007,725356864,341384543,206715932,20988416,404560468,236535349,136583426,654445841,943666452,840316960,1027350080,674639121,153557559,1510280726,961623300,1008474660,973157633,443359752,656934418,1461592383,472779801,238290498,1058027540,644034587,68093212,1597246981,1544182280,469976413,238374721,1174618196,1194143029,336400700,2066110510,34473564,1344553036,873275941,372524551,591344222,623860493,641412978,288168465,742072848,958995498,604449289,221971308,1495672659,723588667,355544366,808599331,459040,943462687,908866865,942887995,908264973,36774146,503972959,657396518,255140875,922816319,1426597669,724636239,873869836,422207e3,738338618,403715596,687875167,874774529,1040791559,120850268,604126999,775167011,470361864,992484109,419635991,743185,154018116,641337180,755635292,254040613,222176514,857754138,2505515,707068717,101333848,757538096,621551931,37443895,1547319336,456857894,3999031,908491345,775432019,439162173,706096427,358119961,1058025846,437977936,102439689,574895878,356259076,372648449,1142819334,742401113,1058341645,1362637919,70005800,202582592,1192122395,236594727,839523131,1750337312,207570485,590873144,123355928,22029379,67645968,269812016,638015583,757087233,657734424,1345271600,740439809,1561926978,1560608781,285688601,387387163,910180890,959256594,456272657,573188414,943880979,1029446156,1073890833,1029574938,1007884807,693115144,222574848,436674607,1174818049,1545405479,1275535655,823416647,86462535,523833608,974464036,658321980,1114075158,185861637,487922498,471600394,639451455,537999451,520699919,1079979324,236797980,168450619,393283123,456001101,186713889,1493375013,488440356,923600390,756164122,655898448,825951036,1411784533,34609698,1208103527,1128159247,253245995,940584251,573441833,19400266,993726249,18425437,139266084,137047810,190711400,1527646996,36582975,978979125,287314201,108201025,1057162756,1583308301,489622303,293476447,840836395,406279465,554701144,471161609,861221689,722419267,1360213011,1143874879,909322020,2035428162,438440025,106244122,322058780,891553820,1360617229,860762642,723856384,322969613,238895933,842924835,1879190897,52179258,453527317,643782993,169476647,858128388,1091178016,453267755,1179072280,1511742509,1364295471,894177538,1547456852,339630853,942212098,640433433,930292802,1599102517,1279285263,1160643877,829502250,1143043844,1530134532,559155459,188100392,1815413542,890521399,220333865,1042559767,520753679,1899432762,369635096,825252367,186328081,1513044992,104291868,842078054,537864570,823793936,1163282459,453314382,1632586541,1159401523,151472718,219612436,1343881243,302413385,67122704,252322835,289281282,520961808,570699029,470824736,843333652,387845450,1180440642,355535121,472254981,206261077,341444100,285219076,439879490,1158377805,188762957,457966854,420087833,2046827521,722541333,1263228164,1510343692,503979288,772677403,942886173,118822420,1074859273,339172401,203161933,353775648,386806050,1363745804,34035503,1295078920,654974826,103553585,17500434,84149518,1212816394,341192510,303115534,305863945,1314328859,136125003,239478532,1129799731,185012293,504893725,1243356169,158746440,1226710058,169542741,940646154,352652561,439419943,376860481,469959197,520567564,16778499,994532938,805575194,201332246,424232781,219809552,825559315,2019624473,285350999,201785371,1129190437,352980301,353764925,1159268906,235294021,236258823,1128289801,269945915,35194673,437005072,85329174,387714572,274102343,83897604,956964102,285213966,1079384090,117586755,995588193,739054110,33755162,289099606,292814850,388764421,575359829,254878242,892283406,674169947,873859604,690695688,556934411,1532961317,269620487,137047589,19803402,891619353,774844708,773205285,420423187,589300788,539835481,959397124,537535801,589641006,622930724,673579048,167981855,671091755,437650701,756498733,704784648,774251013,975510574,335745584,1040792358,134424354,772089349,891158532,18422329,1041391729,139998271,286612271,626670900,958605350,856111142,724383270,372644648,773794620,855909183,540223547,203108701,906494980,1040720168,807150682,571218739,219101490,371001128,137049628,705576492,808659290,705692733,791022080,538653958,671624507,739063102,809906233,639962113,637745182,744239416,236529698,811540526,626862600,788995891,606877246,842204468,573770006,638135325,892486697,791755096,842940166,218240539,974075680,1007048511,555429381,388115255,1057830682,907621664,941633087,892021814,705508445,656356372,641149279,592446271,960046629,421476140,36057648,673325652,639245336,253309464,286404120,19138609,941505862,52178751,537019707,103819782,990131740,87893776,572400132,940786999,991251806,420435997,705108243,621752107,792157219,556736060,860304940,908527152,707673142,893072223,87437101,69927728,540938258,421737780,56494849,220529437,637555989,587807551,201721412,1293836041,809393727,2165761,119747921,760221964,942670122,523578142,1023565147,1946881594,1495147345,302056256,118113602,33882179,1024137755,1462240834,138296332,33948685,202726697,185470982,1577530626,18037005,758717254,857941269,959654443,858460691,640372776,555703830,321330014,1482629131,492570962,473434659,589234776,1042363916,725122873,521305974,1495996214,824716089,120401469,1175858246,603988531,723400211,590361130,892885286,728181053,874711586,704914987,607397390,673849635,858927916,1980441910,271717152,588463451,186264864,439096898,237511981,336863746,1445603842,958933259,655710269,739654685,707734794,691939104,17112595,1479220487,17311610,1585157,253636865,792142081,858725420,892469556,975571478,794635822,554644258,218577412,974917174,219283825,219108949,320604719,839200021,358887210,1009990432,895033669,270346552,369371943,170854914,288163108,822414375,135800369,201547047,218968081,537737542,185541933,1023878402,621038898,302923324,896737594,722614578,18820911,907806763,119221853,34611475,85931888,134429956,219358233,51716651,436478992,772030467,169813541,134233615,270402344,353573131,318904915,654518079,773797416,222570033,974721590,893719153,186589236,689707610,822608991,1027559461,103755568,890844441,740165382,370948908,170874206,742132011,823276892,252001627,185024067,236004399,542196259,655377180,573518398,772752423,68573239,993141293,671090230,50540551,207364644,688129835,51264102,69160960,823668001,186531879,1721438,542523258,51782502,839058447,889528634,1058743644,909337639,855709264,691550208,1111303721,908535824,639830843,437662578,4131881,639639610,404095542,907748360,756363024,774594342,925979405,909059125,574562367,1041766962,2833664,906497055,773928241,354893625,86265618,186593554,771772968,911815229,705440282,237767514,22363698,991902554,576651358,641030188,842007853,1044645642,791428699,674312229,591608893,572594698,102513465,838863909,236594769,324688386,336408621,371011385,823482709,772604988,671293188,673386800,121376300,673579281,841623353,254488125,890642453,359400763,171709191,1077742878,1158229763,942290951,761559636,808342563,1529619006,73138759,371406637,924855586,489358620,823667740,773799490,2118792263,510668586,50463006,979182891,56492606,1308764941,205980450,855642373,121183505,674956826,605370372,67440411,1277167410,573652306,1594245935,375074050,1194403380,555890965,255144200,1194992947,136513541,875576142,1024269850,1510682155,1042688287,168629537,354423099,369503541,355479608,21052219,855835153,1345463855,1042756404,190065709,973626116,761204497,123093823,1915165206,459220566,370027800,1580407058,506730774,1025124126,1510744383,387514687,1141319970,1565204261,1359103771,185995575,35596554,84096006,672404008,857878564,3032093,207364681,555304731,488660742,557915986,861239815,1074597388,372852262,506478175,755175171,2581879,100939293,537605408,956701468,1060906552,202447182,84023075,925892957,1448158238,455885632,456995842,236397832,789581071,486539295,923009595,1632458001,772084274,288971043,504107035,184943133,825691398,1313151757,219814218,370679576,1229983007,134546550,33752117,420092230,101057883,353308952,927730989,320602150,437864198,403773963,3948554,603989776,303508501,119413321,1192230914,441860171,122042880,471431969,101403907,871429,1175061276,438371390,1050900,201330949,1079580686,1498700612,174478106,438317072,1145045533,403514955,18481974,639055628,1866663195,486674503,286853695,826998811]],[hs],[0]);const Wv=137;function zv(o,a,s,u,h,m){const p=u?[]:(function(D,z,Y){return(function(he,_e){const Be=function(Ce,Ye,it){return Ce(Ye,it)},Te=function(Ce,Ye){return Ce(Ye)},xe=function(Ce,Ye){return Ce(Ye)},Fe=Array.isArray(he)?he:[he],ke=[];for(const Ce of Fe)if(Be(yc,Ce,vs))for(const Ye of _e)ke.push(Te(Ag,Ye));else ke.push(xe(String,Ce));return ke})(D,z).map((he=>hc(he,{q:Y})))})(o,a,s);if(p.length===0)return()=>Promise.resolve({s:-1,v:null});Un(m,(()=>({e:6})));const N=Bl(),U=al(N),G=Date.now(),T=ed(p,Jm.bind(null,5e3,m,U),_v,Math.max(10,p.length),h);return T.then((()=>N.resolve()),(()=>N.resolve())),async function(D,z,Y,he){if(Y)return{s:-1,v:null};try{await Promise.race([T,Ug(G,D,z)]);const _e=(function({result:Be,failedAttempts:Te}){if(Be!==void 0)return Be;const xe=Te[0];if(!xe)return{s:-3,v:null};if(xe.level===1)return xe.error;const{error:Fe,endpoint:ke}=xe;if(Fe instanceof Error){const{name:Ce,message:Ye}=Fe;switch(Ce){case"AbortError":return{s:-2,v:Ye};case"TimeoutError":return{s:-3,v:Ye};case"CSPError":return{s:-6,v:Ye};case"InvalidURLError":return{s:-7,v:`Invalid URL: ${_o(ke,255)}`};case"TypeError":return{s:-4,v:Ye}}}return wc(Fe)})(T.current);return Un(he,(()=>({e:7,result:_e}))),_e}catch(_e){throw Un(he,(()=>({e:8,error:_e}))),_e}}}function N1(o,a,s,u){return{result:{...Ul(o,a,u),bot:{probability:1,...s===void 0?void 0:{safe:s}}}}}function T1(){const o=navigator.languages;return o?{s:0,v:o}:{s:-1,v:null}}function Zv(o,a,s,u){const h=function(m,p){return m(p)};return new Promise(((m,p)=>{a[h(xt,9)]=N=>m({i:ps(u),t:Mn(N[xt(10)]),s:a[xt(11)],e:a[xt(12)],p:Gn(N[xt(13)])}),o[h(xt,14)](s),a[h(xt,15)](h(xt,16),u).catch(p)}))}var Yv=Jt([229858650,783927519,3141207808,1645003411,2911373879,2084179082,2213201945,422262047,444852958,2568452659,961273073,4070116913,628296898,2516094721,19227916,46464143,2382904866,572186108,3147382845,1043469467,2611845399,171192596,1251730630,2338154040,2064948222,4070131749,623646351,2180159838,1719303453],7);async function Xv(o){var a;return(function(s){return s!==null})(a=o[(function(s){return s(70)})(je)])&&(function(s){return s!==void 0})(a)?a:await o[(function(s){return s(71)})(je)]()}function x1(){return k1("dark")?{s:0,v:!0}:k1("light")?{s:0,v:!1}:{s:-1,v:null}}var Qt=Jt([2849665133,3102332852,3030028940,2360597915,3649086422,4118989755,2159729800,2492790230,3150617845,3422263962,3398214861,3000338617,2163578059,3720000219,2782764965,3422263962,3600523980,2895432685,2292567243,3617170646,3986333093,2578762955,2596645530,2227996313,2259142812,3700204490,3100285842,3422263963,3903489002,2496302258,2360989318,3615531995,4120169401,2192956830,3971720145,3000875412,2277047195,3431641814,4124477118,2273483461,3481713107,2781523129,3321219718,3599275162,4157376185,2293418634,3418993356,3067464120,3120021895,4221285085,3000403896,2260651146,2496373974,3051664885,2293418634,3735466700,2345307313,3287931573,3669330832,3151268020,2192890251,2525727716,3051664893,3382957959,3448764377,3201075897,3045840518,3837111258,2966063285,2276644252,3402212556,3201145010,3048463771,2462561764,2816128395,2359614875,3837109206,4221223093,2209732555,2594026717,2782776315,2862995355,2592912343,2781727739,3422263941,3683431633,3202123702,2359548301,3617301981,4120169381,2595804298,2496377821,3100936949,2257903002,3683432918,3117908131,2331350219,3431510730,2748951986,2294283144,3565992406,2564589462,2612190863,3687578522,2999682747,2277103530,3516773597,3220146104,2625885836,3601643978,2325387955],3);const qv=400;function L1(o,a,s){const u=Nr(o,a);if(!u)return"";const h=vo(s),m=Array(h.length);for(let p=0;p<h.length;p++)m[p]=h[p]^u.charCodeAt(p%u.length);return String.fromCharCode.apply(null,m)}function C1(o,a){const s=vc(o);if(a.size===0)return;const u=Oc(s).filter((h=>!a.has(h[0])));u.length!==0?gc(s,JSON.stringify(u)):(function(h){var m;try{(m=localStorage==null?void 0:localStorage.removeItem)===null||m===void 0||m.call(localStorage,h)}catch{}})(s)}function vi(o){const a=_1(),s=jr(o);let u=0;const h=()=>(G(),s[u]===34?m():m1(s[u])?p():T(oc)?(u+=oc.length,null):T(Pf)?(u+=Pf.length,!0):T(Ff)?(u+=Ff.length,!1):s[u]===91?N():s[u]===123?U():D()),m=()=>{for(a.len=0;u++,s[u]!==34;){if(s[u]===92){if(u++,s[u]===117){const he=parseInt(ps(s.subarray(u+1,u+5)),16);Rs(a,Ir(String.fromCharCode(he))),u+=4;continue}const Y=wg[s[u]];if(Y){tr(a,Y);continue}return D()}if(s[u]===void 0)return D();tr(a,s[u])}return u++,ps(Bf(a))},p=()=>{const Y=u;for(;s[u]===46||s[u]===101||s[u]===69||s[u]===43||m1(s[u]);)u++;return Number(ps(s.subarray(Y,u)))},N=()=>{const Y=[];for(u++;;){if(G(),s[u]===93){u++;break}if(Y.length){if(s[u]!==44)return D();u++}Y.push(h())}return Y},U=()=>{const Y={};let he=!0;for(u++;;){if(G(),s[u]===125){u++;break}if(!he){if(s[u]!==44)return D();u++,G()}if(s[u]!==34)return D();const _e=m();if(G(),s[u]!==58)return D();u++,Object.defineProperty(Y,_e,{value:h(),configurable:!0,enumerable:!0,writable:!0}),he=!1}return Y},G=()=>{for(;s[u]===32||s[u]===10||s[u]===13||s[u]===9;)u++},T=Y=>{for(let he=0;he<Y.length;he++)if(s[u+he]!==Y[he])return!1;return!0},D=()=>{throw new SyntaxError("Unexpected "+(u<s.length?`byte ${u}`:"end"))},z=h();return G(),s[u]!==void 0&&D(),z}const M1=Qt(6);function B1(){return Ns(0)}function Jv(){return(function(o){return o in navigator})(Vn(0))&&(function(o){return o!==void 0})((function(o){return o(navigator,2646664628)})(Ae))}function k1(o){return matchMedia(`(prefers-color-scheme: ${o})`).matches}function Qv(o){const a={};for(const s of Object.keys(o)){const u=o[s];if(u){const h="error"in u?wc(u.error):u.value;a[s]=h}}return a}function ey(o){return nr(((a,s)=>{const u={},h=s.document.createElement("div");s.document.body.appendChild(h);const m={AccentColor:"ac",AccentColorText:"act",ActiveText:"at",ActiveBorder:"ab",ActiveCaption:"aca",AppWorkspace:"aw",Background:"b",ButtonHighlight:"bh",ButtonShadow:"bs",ButtonBorder:"bb",ButtonFace:"bf",ButtonText:"bt",FieldText:"ft",GrayText:"gt",Highlight:"h",HighlightText:"ht",InactiveBorder:"ib",InactiveCaption:"ic",InactiveCaptionText:"ict",InfoBackground:"ib",InfoText:"it",LinkText:"lt",Mark:"m",Menu:"me",Scrollbar:"s",ThreeDDarkShadow:"tdds",ThreeDFace:"tdf",ThreeDHighlight:"tdh",ThreeDLightShadow:"tdls",ThreeDShadow:"tds",VisitedText:"vt",Window:"w",WindowFrame:"wf",WindowText:"wt",Selecteditem:"si",Selecteditemtext:"sit"};for(const N of Object.keys(m))u[m[N]]=(p=N,h.style.color=p,s.getComputedStyle(h).color);var p;return s.document.body.removeChild(h),{s:0,v:u}}),o.sis)}var Pn=pi([[1158230590,352328197,922751784,234887733,1045777409,235013451,1077693209,86185296,321396490,462366,488115742,1213075980,4402479,184943903,188551425,1398147351,268897603,491523647,306988571,1261376568,269223502,570890009,34866732,470426899,403966778,253756433,304419089,491347009,508233756,403654977,421396492,1329803025,184551506,1057755406,136120322,118163754,373378420,453843998,1159464460,319444544,855642889,402851378,1191248155,151015493,219352090,67375366,17696018,1263095066,420348421,21908811,168961297,171640095,14413]],[function(){return Ya([Nr(o=new Image().style,2487676862),Nr(o,41374024)],[5,23,47,9,35,9,44,7,37,41,19,25,32,26,30,32,8,31,12,15,40,18,15,20,9,4,2,13,21,17,18,34,40,2,48]);var o}],[2]);const D1=10,ty=2500;async function U1(o=!1,a){return(function(s){return s===0})((function(s,u){return s(u,453955339)})(Ae,await(function(s,u,h){return s(u,h)})(V1,a,o)))}async function nr(o,a){const{aq:s,ip:u}=a;if(u===null)throw new Error("Shared iframe is not available");try{await Promise.race([u,(h=`Iframe initialization timed out, debugCounters: ${JSON.stringify(a.dc)}`,Nn(Lg).then((()=>Promise.reject(new Error(h)))))])}catch(p){if(xc(p))return{s:-101,v:null};throw p}var h;return await new Promise(((p,N)=>{const U={action:o,resolve:p,reject:N};s.push(U),(async function(G){const{aq:T,ipq:D,si:z,siw:Y}=G;if(!D&&T.length!==0){for(G.ipq=!0;T.length>0;){const he=T.shift();if(he)try{const _e=await he.action(z,Y);he.resolve(_e)}catch(_e){he.reject(_e)}}G.ipq=!1}})(a)}))}const ny=500;function ry(o){return new Uint8Array([(function(a){return a>>24})(o),(function(a){return a>>16})(o),(function(a){return a>>8})(o),o])}var Ns=pi([[89472536,67911963,202988290,386077465,1866537770,1224742518,488243476,419627011,184819487,437598027,340225859,172033032,437716482,471155211,1095068177,1092107040,419499526,423762697,100665116,490210839,1194790674,673115,85280006,1510540548,2756129,939992591,1246643516,1108281098,52370449,641031181,822350097,201595136,1447512348,1107565334,605101077,923815180,201460231,369557787,421401919,370608902,386208007,1158809130,67652933,420829977,1325996060,705104933,100734005,18485518,1079117841,520555597,117716299,441132557,117836552,454886414,1079380231,235285315,167851373,438045445,354104902,218503945,1450723136,1261309460,853525,339100932,1443038736,103498560,3566862,1175192861,252709131,16777237,1984516105,1829509143,185926151,436356353,185073670,1779174662,991969605,50610456,1275666182,419565839,202771726,1124408096,135546735,168313092,253563142,135813653,822480166,72178038,222758157,52298251,454823449,56244746,1427123716,67914571,353589766,51775754,625419022,219166498,1258491144,521093188,151601409,456523793,678234648,169481234,118557701,391005526,241568771,422784012,438716682,1309089280,806492,990010373,638390299,134885451,1481180934,17176407,655231834,2049314574,84410418,220531716,167778574,105923661,106502459,185600556,170279180,1046087172,151977997,35061763,1263338788,84282176,52366156,1544356616,420816433,50605842,1229146882,1511529224,186319630,4664589,35268139,100748290,1379942427,1174536207,322636309,208471067,373756952,7684,1481509910,69665358,440083533,1174866696,403505177,1129127711,956961098,571674714,285606663,67257606,151460637,725827670,862785030,168106503,289803037,203297033,1197361671,1327110967,169477163,84548876,1840656,1325404447,537919532,1158350651,118114894,454640143,269026054,471146315,372321280,1196229131,421140297,17891399,256321038,167983925,135074069,1379942427,1174536207,523897886,187303186,16788313,1007685120,1447054106,1193610767,121055758,235738112,118572573,1091181577,956569372,1632457991,1191843846,387122178,420174362,755830297,929124171,222888474,50727960,118447621,1229986830,202905462,51517293,1159661069,219156518,1296957445,772541034,285869946,471598093,437591628,102564608,341211207,72035854,453396244,286989059,252909895,100927823,207059041,440798984,347163,218169348,389222492,3416153,1128989210,404424777,102242906,1193875213,338048784,17827353,1077939469,33558354,973080134,923734551,118361931,390678349,407312666,756351505,606227719,1078676741,1275397643,369236248,102176796,152328767,505090338,1195966464,68884054,402849858,604117287,387586598,184555596,52366851,290079565,39467274,337061379,1044450054,822546697,1309087752,202009165,100891182,1259996933,521093188,51986689,390009692,187041819,1296385283,1528366088,1539,1194856717,20458516,188762957,374080774,100861208,604249353,906778884,134487574,1444022019,51205721,688201243,275581722,638910490,553654793,438246915,1191185666,68310648,100862061,1157897218,203233559,1296957442,1829962602,35198010,17122832,1079118092,101515597,370942795,117714965,54019863,889585674,1079385113,386672195,236790637,420024595,406539288,689707789,956765442,1198474037,1091441944,102564636,119409668,205263381,108670990,151781382,1313753605,457245696,855645709,391058950,235019008,471534109,474699863,756351517,540018203,272974679,51463965,386470914,67506497,1297423660,1224806753,520230941,878058775,289625664,571801658,289411104,88480259,1641997,388317194,1477786881,50998065,521022728,202398474,33949981,1095115776,1582986863,239750725,289150477,469830174,14416]],[hs],[2]);function P1(o){return!(o&&pc.some((a=>o[a])))}function oy(){try{throw"a"}catch(o){try{return o.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}const iy=500;function sy(o,a){const s=function(p,N){return p<N},u=function(p,N){return p+N},h=(function(p,N){return p+N})(o.length,a.length),m=new Uint8Array(h);for(let p=0;s(p,o.length);p++)m[p]=o[p];for(let p=0;s(p,a.length);p++)m[u(p,o.length)]=a[p];return m}function ay(){const o=function(G,T){return G-T},a=function(G,T){return G*T},s=function(G,T){return G>=T},u=function(G,T){return G===T},h=function(G,T){return G%T},m=function(G,T){return G|T},p=function(G,T){return G**T},N=[];let U=Math.random();for(let G=o(a(6,4096),1);s(G,0);--G)if(u(h(G,4096),0)){const T=Math.random();N.push(m(a(o(U,T),p(2,31)),0)),U=T}return{s:0,v:N}}function cy(){const o=function(u,h){return u!==h},a=function(u,h){return u(h)},s=a(vo,(function(u){return u(0)})(xt));return Object.defineProperty(s,(function(u){return u(2)})(xt),{value:function(u){var h;const m=o(h=this[a(xt,1)],null)&&o(h,void 0)?h:0,p=this[m];return this[m]=(function(N,U){return N|U})((function(N,U){return N&U})(p,~u),(function(N,U){return N&U})(~p,u)),this[(function(N){return N(1)})(xt)]=(function(N){return N+1})(m),p}}),s}var je=pi([[37637135,1447917654,1074862848,221320987,185417728,1279479069,287641348,1585126709,277761,1427768864,1124076042,2035529,455018507,23675461,120393521,1444036433,1141263183,303105822,319645969,1275726848,36457547,388709920,101924677,1077349638,303367169,135938595,1112349448,153357637,121505586,1480802129,1141246529,839976462,805901,167780891,1160643090,438979704,100941378,1381385537,33619995,505875729,119147817,153229835,20323964,453520970,1308901389,134224668,324158218,140184588,136785483,455937847,1145648204,1494293834,320544012,1971969,319380746,359333889,104340027,1544500554,1141003010,1209157132,67441480,1511480093,104666369,1328827942,1075133262,152198427,149830,1477446935,1427587336,1194921745,1547195181,353853786,470698257,1510890510,1159481353,521949703,526588437,192026238,239739657,442307401,256466199,1481069662,1091916807,191889498,175708721,1578723163,1142444571,403526171,474109016,436863826,1513165895,1227047982,1410678607,1310151680,1326799388,156435474,491723532,153230682,91688828,286089482,471550231,1511481182,945321480,218765652,526583891,1131496748,1561928206,1498942025,241044293,373446478,340072261,510001485,1114971518,789340426,1464415314,121639178,474109261,339869763,510074189,1131496749,1561862926,1482164809,241043525,373445966,1430675269,981021962,289151081,206126103,1314788169,308153156,524440649,373424195,493296973,1131496750,1562058766,290982473,974735686,324366422,140184588,1466392143,1131765368,286482698,1325800471,394831,169369099,54987290,657872206,120986675,1565553235,1209411907,253564417,1280836866,470686025,237312859,522912050,201357853,1141003025,1511147020,386751269,1310132765,292225025,270091815,865110,1465648906,67108874,184644125,1192692237,309397319,1601199207,404362525,1330912518,34669650,1212173143,1113211225,1316896855,104596079,39597315,1195772422,1364869959,1430658377,184767552,1513967123,321592373,1510961754,218960155,420305921,1258684700,1108743697,506609673,1547125293,1478042203,1494042381,1327128087,1225806877,387334407,191907615,108599857,101923614,291246082,1381515331,1447304521,1514364485,1348950091,1165318776,1145925391,391666511,1465401923,1413749065,1497586757,1348951883,1081432952,1129147407,374889295,1364738371,1346640201,1531141957,1549950795,1378683704,100689750,151848977,420305920,474366537,1073758992,140973855,1579227002,219771980,1499072079,391076631,390618884,475275347,337911369,489691709,454256461,1207961623,6036480,1329684253,1510738463,1010648577,791688480,1565554302,1431968600,236390922,1477205770,1258697756,359674705,2890289,1326676557,1393764638,1225000704,625476693,167839243,1328283662,75056996,121710658,1276451417,319888927,386887006,1176443398,661342039,372705078,1543910474,1465139282,357826574,487414111,186456605,1529830456,1282104626,101128728,1142492674,122947073,370019595,559220289,661996366,322568504,437138263,22894923,1427576601,1725955,1907229,523115079,388700960,67910512,1432095759,139985219,487414091,469762058,443565827,293290614,16209,1326529286,822482699,151870732,1275724032,238767179,456461092,1480802125,1426131009,441995264,152915527,167780869,1165052930,389480762,1447896833,1074862848,69211931,387799325,1279479052,70125060,388696895,1447917639,1075187217,236586839,1229602839,993994827,322112307,658250785,285621072,1968588097,874523178,657942583,657137952,1265183017,571878774,656737658,56118071,336660254,1195642624,436608286,523123202,388700960,390297089,1427442705,202711306,386744597,1276396363,556535562,388825661,1448835153,1393888269,1124073738,105513240,437127707,153234434,489367856,1480796758,1427181121,85596973,268918562,386802457,1161763592,3820664,286604102,1443954741,39214669,285820951,135933196,1161366273,171461752,1480796497,1965894465,824910122,540507936,723659301,1265187369,654911862,302460769,1377901318,1125192974,725421897,1008740640,1164397610,1059916595,286337602,1326791431,1297487624,286088775,458048331,388629257,293290614,16209,1140930566,69667613,507776785,504765259,1165052930,389285664,419442256,56118035,251731212,1464995601,223167252,321198856,595280502,758325110,1915829052,606223904,642384199,825638694,1158167604,455756920,1480802137,1899308097,540090416,1195642657,167840283,102439938,1585126695,390275448,1393888271,337122105,1045565184,1113342297,1266171991,1584021604,1447888658,1159005711,1532363296,282183,1112349960,138353989,34999078,121856001,1141245463,1294536525,151473735,439229702,254283539,104270649,1447917648,1443954709,106323533,271276288,662811,523123219,388700960,390297089,1427442705,203108618,17189896,17563948,1161366275,511382904,402929730,1146508097,85659905,407527168,185421125,891619072,389873713,117443153,56118032,822089500,151870732,1275724032,37243979,472919072,454237511,223746326,319881805,135938563,185336072,157893189,1585125691,353582593,56118036,1125129226,1707849,402849818,37633794,386537254,1447917655,1912866830,67113755,273285447,504234503,1160710935,490359928,19080019,1393626885,339090747,386747139,139281227,337772558,1349864508,419639120,223747338,117510221,1192904707,251809093,506998551,1585122618,556866817,1812203566,1125193216,540675913,1112353576,87956805,321592373,1447917658,1076889111,857805595,1195642665,17367296,359219781,388767537,270544464,1140857090,119159581,3477258],[386942744,1229409564,135333655,220795160,755369005,1162041120,503777537,1079123715,101517389,52050726,1427192580,236473163,17109769,173424715,371009796,1292251441,203046987,50927385,503982872,1446053403,2376539,169555715,117837325,355405073,438900482,405154853,1145049870,34409291,436733206,2017924890,638784598,973210372,286198279,134625543,1778647041,1009795397,268569364,290080074,202965528,507332635,134354452,152965423,402923329,102564125,236739842,706150459,290790203,240978695,52177998,454823436,1197226506,251672392,419431940,285429263,286416394,290006535,454303788,1090915598,354048009,1091132175,356080479,1362842883,236919825,1209617177,1075316761,1093555476,337803338,1427785501,1461339656,1327303942,2047102737,571952141,1411208983,1326531854,1276973337,957501722,745215771,457971551,407048258,1413810758,189744919,1549274479,1208835629,122683732,290717969,1259620628,638538288,504780064,289608031,404029529,1326585167,1276018207,1460741645,67916804,1511283736,5195038,273234948,18622334,507904847,352344385,1426083608,1329023043,947075610,202117450,224136543,1162101260,1076894017,225976393,122166853,524816962,356848732,759700802,1934427230,839535692,39204446,173872912,827003996,778964035,457907295,1396720145,1175783745,475925317,240979582,341646696,1346527045,877014553,34144849,994774908,138743678,457380169,375002446,172294213,223881039,1179478043,1108677450,1146689345,924407616,357832018,155268902,1497649743,1094734404,220025925,438702086,70325591,1643545,408686104,873550429,472322827,1550150419,16787279,34278407,1180648471,637797448,705626696,68491267,202001233,153046535,1929861143,640029993,1109330433,340264718,221009951,287179034,392108605,33756966,84029457,1074532368,341187916,1850366843,185875050,105454599,253041247,1598032221,1531017813,1582329169,520750428,38280011,172363532,1397193033,1599825007,201611598,1293566492,152902925,1513770251,1228544271,386943257,1528448786,1477775372,271666946,1530556186,1142562583,337331719,1090600968,2015169296,974674202,89939485,4923146,505091400,2018055445,1735348549,1363894105,1447319620,1480607296,1381915715,1364935032,1364940655,1564958533,1482178904,1447053120,1951357028,1430470776,1598381646,1532780110,1111776323,1113088073,1112109901,1346787403,1409356039,504713500,1259350291,386693676,273026379,1577274897,121837076,1479285852,473648920,390531163,55525907,105650965,460533334,104543053,118166278,51401991,102436100,894245895,1766327564,1560547859,790446857,822095617,1632649257,544018770,218371856,1594628871,1241852697,390673753,318898225,1543849261,420228884,1090781211,558652764,655163434,1325931325,508117330,525344259,520690773,85014549,84018010,1126112264,878009691,135922955,1259218440,425033074,491261958,134813266,220011032,1211127597,1534153233,487532364,270076938,306978074,439238914,980298315,677136966,218171141,16778500,1951154752,1996624386,202705923,437853723,336330837,756226304,606995002,374278681,189012548,386466882,387778316,474766640,72698209,520751643,118564625,824054024,788928801,1158290237,18434638,85723410,1581910529,50410823,206135566,119147077,270153991,1313754636,101132047,1297688929,135073796,355993372,437918484,1450723095,103155988,169542172,1465403663,353242630,103158868,1500917265,1026695245,404360509,973741573,822219547,390290262,1009987360,909389373,623721020,1682123578,67903563,824389676,1078217532,436798749,1197361674,354289187,521285926,236526109,173431126,353177886,771897901,352983332,1242711104,706153743,387711750,1431205399,84157967,1226512898,391600150,404031771,218106372,463655,1162482194,67700042,201393710,20649781,472001799,1293750808,118966599,286787601,506267706,376860481,469959197,169290252,1293748502,738480196,1866662918,1027487047,607402026,691414576,220997944,2019637031,926361687,68033578,473498121,1192693518,790779512,892871434,1229409572,603983891,68944909,755120940,1263341619,470555456,424820800,34144769,341211207,50603539,236599298,287706393,391663133,319831107,1297053222,201657107,487396891,1245924636,438372881,1467564803,206261002,18488836,625886550,807019577,638652732,758393632,792740939,808860735,1982210107,705844568,1162154527,606742093,757868074,1783451184,808257051,53943568,1313479195,206441271,387124483,337319170,1011697446,1196966233,1162304324,1298094684,1632580729,51255864,1380653101,152833856,1581915406,402663239,120202771,407720773,285678367,1076433227,252062531,456402476,17498899,67241733,1245924639,53545988,39931221,438965010,454105369,201932032,205132824,376860481,469959197,17640204,184618269,990256173,1628639760,88411209,403573006,155930199,739118874,694227212,117787993,805699599,168304137,370358301,1130059303,922943536,118365952,1259412253,69162560,755641148,136131120,1145772055,504699968,521797641,303512068,424111939,1196236296,352784457,1314410014,1091380740,168261231,520359188,353973005,222041630,1450723078,909312026,169674243,5654345,67961882,1261175836,439837007,488644127,503778831,439157540,637539342,625171286,437131532,1447512327,17498374,1682118685,842400075,1075120659,50678596,371142940,1229982465,874984310,705102862,1225657094,740710232,1296969773,555096682,102565685,1246054939,221512470,540872219,1431860777,402861320,424494405,285213966,137697306,102578176,152771889,3489800]],[function(){return(function(o,a){const s=Ae(o,704082790);return Ya([Nr(a,3017323393),L1(o,859837811,"QjslADtOBipACA")||L1(s,72906005,"Tjo/DSpIETFCCQ")],[20,1,24,23,23,21,14,8,11,8,6,13,1,1,12,4,9,10,6,2,1,2,0,1,2,1,1])})(navigator,document.createElement("frameset"))},hs],[1,1]);async function uy(o,a){const s=function(T,D){return T(D)},u=function(T,D,z){return T(D,z)},h=function(T,D){return T(D)},m=function(T,D,z){return T(D,z)},p=function(T,D,z){return T(D,z)},N=function(T,D){return T(D)},U=await m(Ae,o,552725026)(),G=p(Ae,U,3695949181)();try{const T=new Promise(((z,Y)=>{const he=function(Fe,ke,Ce){return u(Fe,ke,Ce)};let _e,Be=!1;const Te=()=>{Be=!0,(function(Fe){return Fe!==void 0})(_e)&&window[s(Yr,1)](_e),u(Ae,G,244589941)((function(Fe){return Fe(2)})(Yr),xe)},xe=Fe=>{if(!Be)if((function(ke){return(function(Ce){return Ce===2})(ke)})(he(Ae,he(Ae,Fe,3065852031),740233146)))(function(ke,Ce){return m(ke,Ce,2552575352)})(Ae,G)(a).catch((ke=>{(function(Ce){(function(Ye){Ye()})(Ce)})(Te),(function(Ce,Ye){h(Ce,Ye)})(Y,ke)}));else{(function(Ce){(function(Ye){Ye()})(Ce)})(Te);const ke=new Uint8Array((function(Ce,Ye){return p(Ce,Ye,3065852031)})(Ae,Fe));(function(Ce,Ye){h(Ce,Ye)})(z,ke)}};m(Ae,G,123626528)(h(Yr,2),xe),_e=window[s(Yr,3)]((()=>{Be||(function(Fe){Fe()})(Te)}),wy)})),D=N(vo,h(Yr,4));return await(function(z,Y){return z(Y,2250224811)})(Ae,G)(N(Yr,5),D),await T}finally{try{await u(Ae,G,318865860)()}catch{}}}function fy({clientId:o,token:a="pubef3f54bbe39b4277dd16624a5e8312d2"}){const s=new B7((async u=>{const h=`https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=${a}&dd-evp-origin=browser&dd-evp-origin-version=1.0.0`,m=(function(p,N,U=hl()){var G;const{level:T,message:D}=U7[N.identificationState],z=(function(Te,xe){if(P1(xe))return Te;const Fe=_s(Te);for(const ke of pc)xe[ke]&&Fe[ke]&&(Fe[ke]=il);return Es(Fe)})(N.pageUrl,N.urlHashing),Y=N.events.map(Lv),he=Y.some((Te=>Te.level==="error")),_e=Y.some((Te=>Te.level==="warn")),Be={ddsource:"browser",ddtags:`env:dev,service:${Rl}`,service:Rl,date:N.time.getTime(),message:D,level:he?"error":_e?"warn":T,clientId:p,framework:"Fingerprint",language:"javascript",uuid:U,notifier:{name:"Fingerprint monitoring",version:tc},request:{url:z,query_string:((G=/\?.*$/.exec(z))!==null&&G!==void 0?G:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:N.userAgent,code_version:N.agentVersion}},person:N.visitorId===void 0?void 0:{id:`visitorId:${N.visitorId}`},body:{telemetry:[{level:"debug",source:"client",timestamp_ms:N.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}},...Y],message:{body:D}},custom:{isInIframe:N.isInIframe,pageViewId:N.pageViewId,agentId:N.agentId,getCallId:N.getCallId,requestId:N.requestId,identificationState:N.identificationState}};return JSON.stringify([Be])})(o,u);await(async function(p,N){const U=nl(1e3,1e4),G=new Blob([N],{type:"application/json"});for(;!navigator.onLine||!e7({url:p,body:G});)await gi(U())})(h,m)}));return s.addEvent.bind(s)}function ly(o){return(function(a,s){return a(s)})(ys,o)&&(function(a,s){return a===s})((function(a){return a+""})(""+o),(function(a){return a(17)})(xt))}const yi=16,Eo=16,Ro=8;function dy(){const o=function(h,m){return h(m)},a=function(h,m){return h(m)},s=function(h,m){return h(m)},u=function(h,m,p,N){return h(m,p,N)};return[o(Or,(function(h){return h(2)})(Fn)),a(Or,(function(h){return h(3)})(Fn)),(function(h,m){return h(m)})(Or,a(Fn,4)),s(Or,(function(h){return h(5)})(Fn)),a(Or,o(Fn,6)),(function(h,m,p){return h(m,p)})(Or,s(Fn,7),Ay),u(Or,(function(h){return h(4)})(Fn),Cc,(function(h){return h(8)})(Fn)),u(Or,s(Fn,6),Cc,(function(h){return h(9)})(Fn))]}const hy=4169850297,py=new RegExp(Jt([39174333,51812406,885210665,4099360837,1242130291,1365653239,2003041115,1707369036,3273002536,359933e3,1948332465],5)(0));function my(o,a,s,u,h,m,p){return Ao(a,(()=>({e:18,stage:s,tryNumber:m,url:h})),(({status:N,getHeader:U,body:G,bodyData:T,wasSecret:D})=>({e:19,stage:s,tryNumber:m,status:N,retryAfter:U("retry-after"),body:T??G,wasSecret:D})),(N=>({e:20,stage:s,tryNumber:m,error:N})),(async()=>{const N=await(async function({body:U,...G}){const[T,D]=dc(U)?await sl(U):[!1,U],z=await O1({...G,body:Jf(D,T),responseFormat:"binary"});let Y=z.body,he=!1;try{Y=w1(Y,!1),he=!0}catch{}return{...z,body:Y,wasSecret:he}})({url:h,method:"post",headers:{"Content-Type":"text/plain"},body:o,withCredentials:!0,abort:p,container:u});return(function(U){let G;try{G=vi(U.body)}catch{}return{...U,bodyData:G}})(N)}))}function F1(o,a,s,u){Qf((()=>{const h=`${o}=${a}`,m=`expires=${new Date(Date.now()+24*s*60*60*1e3).toUTCString()}`,p=u?`domain=${u}`:"";document.cookie=[h,"path=/",m,p,"SameSite=Lax"].join("; ")}),void 0)}async function gy(){try{return{s:0,v:await(function(o,a=4e3){return H(((s,u)=>{const h=u.document,m=h.body,p=m.style;p.width=`${a}px`,p.webkitTextSizeAdjust="none",p.setProperty("text-size-adjust","none"),f()?m.style.setProperty("zoom",""+1/u.devicePixelRatio):R()&&m.style.setProperty("zoom","reset");const N=h.createElement("div");return N.textContent=[...Array(a/20|0)].map((()=>"word")).join(" "),m.appendChild(N),o(h,m)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')})(((o,a)=>{const s={},u={};for(const h of Object.keys(Ic)){const[m={},p=cv]=Ic[h],N=o.createElement("span");N.textContent=p,N.style.whiteSpace="nowrap";for(const U of Object.keys(m)){const G=m[U];G!==void 0&&(N.style[U]=G)}s[h]=N,a.append(o.createElement("br"),N)}for(const h of Object.keys(Ic))u[h]=s[h].getBoundingClientRect().width;return u}))}}catch(o){if(xc(o))return{s:-101,v:null};throw o}}async function V1(o,a=!1){const s=function(m){return m()},u=function(m,p,N,U){return m(p,N,U)};if(!s(gl)||!s(tl))return{s:-1,v:null};if(!await s(r7))return{s:-2,v:null};const h=(function(m,p){return m(p)})(Ev,a);try{return{s:0,v:await u(Al,R1,o,[h])}}catch{return{s:-3,v:null}}}var Zr=Jt([1058085656,755065913,591387725,129841502,4267773802,944664064,1500447153,1699147887,1224620868,4264117283,677258056,1080570024,1964094248,134111503,3007202158,269444104],5);function G1(){const o=window.devicePixelRatio;return o==null?{s:-1,v:null}:{s:0,v:o}}const vy=new Set([2882888216,2306836488,1040191956,1447924955]);function yy(){return crypto.getRandomValues(Mf),Mf[0]}var H1=Jt([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function $1(o){const a=o;return!!a.getCallId&&typeof a.getCallId=="string"}var Yr=Jt([346417124,3652618933,3415905489,3253897955,2294399372,4070113219,3251407103,3790651278,3281774077,3704133079,3942300820,3367225321,4294875871,2331302290,3768121793,3888880373,3201419702,3231249615,3437080024,3100701610,3314799614,3758005657,2210585768,4271564258,3438535137,3202800573,3366777040,3303964898,2682776755,3951621071,2159973508,4008833771,3834510307,3721574652,3975475112,3700541151,4124803294,3095585942,3247897010,3807349469,2666921394,4072405711,2195887329,3154092449,4294345125,3888048838,3053383582,3253728495,3755524068,2532356992,3435067859,4275287775,2625825195,3434202529,2160370131,2496716211,3113534649,4075273716,3919438518,3752838589,3723725017,2465382589,3869810136,3740114311,2948853427,3773496770,3803351801,3952999656,3740726744,2264707582,3201236378,3332498654,3857093830,3972063642,3719283692,3236399861,2408578979,3722477823,4189761762,3783784893,3166361052,3976174325,3992312192,3924749508,4276728450,2564278682,2994979003,4089872596,2710490283,3249730500,4072511186,2699427004,3432903858,4089558744,2598495113,3216571058,3875126671,2916413345,3019038131,4278096123,2714560668,3499681728,3520970703,2935474610,3734566863,4058549465,2397888693,3649293503,3790334595,3033720459,3649291238,2229842819,2563889641,3264725957,3623783675,2180889534,3197950130,2179985116,3085158067,3549095404,3535397375,2516315025,3700870369,2398731507,3196105632,3331032025,3858610141,2949954204,4193226680,2211417304,2866061727,3686171852,3520654823,3791248297,3214074061,4223644355,2513361645,4204459429,3355152593,2543437536,3918648781,4004747161,2596587405,3366839520,3874003956,2564812727,3331441115,4223968132,2542187179,3485269211,4124110847,2381307884,2997600697,3723726493,3185957288,3387744482,4075417541,3084055278,3014969267,2582359544,3951294654,3332217343,3669592518,3787970999,4176905458,2178456300,2716330417,3651767969,3741234428,2851648183,2777211119,2180229583,2946350571,3869178341,3621566446,2529215113,3723682e3,4124946404,3939286952,3332032457,4053920986,3204036799,3015689465,4039568325,2541866927,3438010588,3590034112,3988905614,3012558810,3304832485,2514985405,4002541807,3973679769,3017591728,3314470877,4193238482,2983185323,3264972264,3523058939,3162627819,4076263902,2647437262,3018252672,3668479922,4022960577,2681128378,3770581153,3252335833,3218734243,4069981417,3655439325,2751195028,3466326249,3623659993,2646785979,3298870747,4208626831,2599543454,2776731315,3887244174,2862472074,3734230266,3522074095,2681794463,3198743013,3251027585,2541803933,3682660317,4092635365,3218268138,4209959352,3485381324,3992056763,3550215898,2197416672,3184325562,3887632123,2580524480,3185951914,4018929093,3506082243,4120164232,4021671336,3755912151,2899963828,2834666750,3321478363,4224970168,4020933798,3689123266,2915296700,3422263976,3838548215,3133982865,3415790008,2177603831,2834997692,3650017490,3487625157,3906333850,3182528216,4157315303,2566904730,3348889560,3536107236,2212357867,3903450322,3538718683,3184319646,3348299721,4176648412,2206643087,3919638749,3821647567,4220247017,4021982374,3953703640],3);const wy=5e3;async function j1({cache:o},a){const{speechSynthesis:s}=window;if(typeof s?.getVoices!="function")return{s:-1,v:null};o.tts||(o.tts=(async function(h){const m=()=>{return R()?(U=()=>h.getVoices(),()=>{let G=null,T=null;try{T=U()}catch(D){G=D}return[G,T]})():[null,h.getVoices()];var U};if((function(U){var G;return!U.addEventListener||$()&&h1()||R()&&Mn((G=window.origin)!==null&&G!==void 0?G:"")===548031109})(h)){const[U,G]=m();if(U)throw U;return{v:G}}const p={v:null};let N;try{await new Promise(((U,G)=>{let T;const D=()=>{const[z,Y]=m();return Array.isArray(Y)&&Y.length?(p.v=Y,T?.(),T=Tc(U,50)):T||(T=bs(U,600)),[z,Y]};N=bo(h,"voiceschanged",(()=>{try{const[z]=D();z&&G(z)}catch(z){G(z)}})),D()}))}finally{N&&bs(N,1e4)}return p})(s));const u=await o.tts;return()=>u.v?a(u.v):{s:-2,v:null}}function _y(o){const a=kc(o);let[s,u]=(function(h){return[El(h),Nl(h)]})(a);return s=v1(s),u=v1(u),s!==void 0&&u!==void 0?{s:0,v:s||u}:s!==void 0?{s:1,v:s}:u!==void 0?{s:2,v:u}:{s:-1,v:null}}function Ey(){return(function(o){const a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(o),"hardwareConcurrency");if(!a||!a.get)return{s:-1,v:null};const s=window.Function,u=window.Object;let h=!1;try{h=delete window.Function&&delete window.Object}catch{h=!1}if(!h)return m(),{s:-2,v:null};try{return a.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{m()}function m(){try{window.Function=s,window.Object=u}catch{}}})(navigator)}var Lc=Jt([3268306020,1189123365,3125061564,2812436647,1370270536,3104304876,2864333227,1189143047,3863391919,3133019362,232973317,2689380846,4109895146,502529820,4262523388,3806594546,334622221,3994352377,4074964461,100137739,2705777380,4025355697,502660630,4145147134,4043052789,502594832,3875927031,3958246626,2028005125],3);function K1(o,a){const s={},u=["x","y","left","right","bottom","height","top","width"],h=o.getBoundingClientRect();for(const p of u)p in h&&(s[p]=h[p]);const m=a.getComputedStyle(o,null).getPropertyValue("font-family");return s.font=m,s}function W1(o){const a=location.hostname,s=$();(function(u,h){let m=u.length-(u.slice(-1)==="."?1:0);do if(m=m>0?u.lastIndexOf(".",m-1):-1,h(u.slice(m+1))===!0)return!0;while(m>=0);return!1})(a,(u=>{if(!s||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(u)||u===a)return o(u)}))||o()}function z1(o){const a=Number(o);return isNaN(a)?-1:a}var hr=Jt([4216757916,2482823581,3322768783,3940655043,2767747340,149091984,3502500195,1661791409,2978971883,4181675939,4172402883,2313775364,95272926,2491872360,792833511,4287662331,4050917852,2915032708,2164222495,1336127956,3386158881,792833466,3817182206,3224306427],7);const wi=4;function Ry(o){return(function(a,s,u,h){const m=document,p="securitypolicyviolation";let N;const U=T=>{const D=new URL(a,location.href),{blockedURI:z}=T;z!==D.href&&z!==D.protocol.slice(0,-1)&&z!==D.origin||(N=T,G())};m.addEventListener(p,U);const G=()=>m.removeEventListener(p,U);return h?.then(G,G),Promise.resolve().then(s).then((T=>(G(),T)),(T=>new Promise((D=>{const z=new MessageChannel;z.port1.onmessage=()=>D(),z.port2.postMessage(null)})).then((()=>{if(G(),N)return(()=>{throw f1()})();throw T}))))})(o.url,(()=>(function({url:a,method:s="get",body:u,headers:h,withCredentials:m=!1,timeout:p,responseFormat:N,abort:U}){return new Promise(((G,T)=>{if((function(z){if(URL.prototype)try{return new URL(z,location.href),!1}catch(Y){if(Y instanceof Error&&Y.name==="TypeError")return!0;throw Y}})(a))throw li("InvalidURLError","Invalid URL");const D=new XMLHttpRequest;try{D.open(s,a,!0)}catch(z){throw z instanceof Error&&/violate.+content security policy/i.test(z.message)?f1():z}if(D.withCredentials=m,D.timeout=p===void 0?0:Math.max(p,1),N==="binary"&&(D.responseType="arraybuffer"),h)for(const z of Object.keys(h))D.setRequestHeader(z,h[z]);D.onload=()=>G((function(z){return{body:z.response,status:z.status,statusText:z.statusText,getHeader:Y=>(function(he,_e){const Be=new RegExp(`^${Te=_e,Te.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}: (.*)$`,"im").exec(he);var Te;return Be?Be[1]:void 0})(z.getAllResponseHeaders(),Y)}})(D)),D.ontimeout=()=>T(li("TimeoutError","The request timed out")),D.onabort=()=>T(li("AbortError","The request is aborted")),D.onerror=()=>T(li("TypeError",navigator.onLine?"Connection error":"Network offline")),D.send((function(z){const Y=()=>{try{return new Blob([]),!1}catch{return!0}};if(z instanceof ArrayBuffer){if(!Y())return new Uint8Array(z)}else if(z?.buffer instanceof ArrayBuffer&&Y())return z.buffer;return z})(u)),U?.catch((()=>{})).then((()=>{D.onabort=null,D.abort()}))}))})(o)),0,o.abort)}function Z1(){const o=Date.now();return{s:0,v:[z1(o),z1(o-6e4*new Date().getTimezoneOffset())]}}var rr=Jt([1346232286,2962034951,861670240,68735456,3321456994,2017670418,588174816,2179169902,858485284,68735456,3321456994,2017670418,588174816,2195947118,858485284,68735456,3321456994,2017670418,588174816,2212724334,858485284,68735456,3321456994,1665545490,471454207,3270010982,858485267,303616480,4159274862,1634877202,1917620990,4076171370,2019769865,1300451,3654247266,1665152014,1913701858,3521131307,2138969112,856284652,3605299026,1399464463,889640696,3588055669,1634598930,1040833768,3387710818,863184143,822973089,3740554623,1919827201,571458782,4075320934,1952527893,892388351,3236184437,2137930757,687996136,2465817704,1886024268,1023534069,3572006263,1702835508,587580152,3825169495,1952657672,823452671,2628744288,1768308034,537776606,3288298603,1114977584,889508325,3522773621,1025848583,671210927,3269616980,1398945537,889640696,3588055669,1886323474,51566057,3588911219,2082831426,607373548,3622593384,1768031237,890422777,3270001012,1969633331,607372008,2464708198,1886024268,957277685,3724508769,2002855202,1295080,3638453090,1667380225,922862814,2460037986,1149186317,1057413603,3318709365,1667380742,873388495,3823796078,862071305,822973089,3757654655,1952461074,906413519,3654247266,2137928718,705291242,2460037986,1147746573,1057413603,3318709365,1667380742,587650754,3704382818,2087270153,1913970408,3655349035,2121466638,889704959,3605750853,2001216005,604357611,3622075718,2137144590,1917620985,3874844778,1953702405,907408117,3288298593,2082831426,623036652,3270014817,1954363699,1027775663,3587926374,1768039442,571786444,3304616814,1025843973,671210927,3305075793,1682253829,570808043,3523175238,1668481817,1912984804,3521131307,1701386520,607372008,3823662694,1952657672,1024455679,3588456055,863249422,822973089,3303233663,1700012549,50714604,3588845679,1667630610,1006817764,2628739682,1768308034,1057808334,3304673397,2087662337,588570344,3719249189,2118395905,286449633,3555485043,2137144584,605680377,3588055650,2087060242,1912986877,3521131307,2087195416,890553853,3690954320,1684546055,1058333693,3588911221,1954363699,1027775663,3754846566,1701978125,638515688,3303830120,1651064585,118674909,3622200168,1634877202,1027775663,3754846566,1701978125,571467752,3758061164,2018779157,1916327415,3521131307,2087195416,890553853,3690954320,1684546055,705291261,2628733026,1768308034,537780174,3890767218,1986798095,538304511,3589765204,858485306,320393696,3321724008,2119185684,570940415,3288163432,1433744688,1040571876,3739383924,2082831426,958580972,3268048233,1651975439,588635357,3305075793,1682253829,570808043,2460038004,1115631885,823320569,3318707296,1667380742,370080254,3723128949,1114848773,889704953,3719249189,1700014081,922862306,3606598498,1651848454,892788420,3370673525,1986405427,1917620968,3824513130,1886732052,892655082,3271058815,2135827205,922862283,3303240810,1986405427,1917620968,3824513130,1886732052,892655082,3271058815,2135827205,605214171,3302910306,862074625,591568080,3739509619,858485255,957209057,2460181107,1969648204,890552556,3739500405,1025851142,822399407,3270010231,2120302121,587584675,3236193124,2137536788,826449071,3304943715,2135826949,877584363,3554961250,858485253,536990956,4194268275,1063794190,824624100,3522133355,1967536899,890552556,2460038005,1883317001,822271201,3570170468,1953701889,1917620991,3758056258,1919315986,588502510,2431287150,1634214416,689226472,2460037927,1277522010],6);const by=rr(0);function Y1(){return!!te()}var Fn=Jt([1435303418,2123044869,1559249858,283799713,233274796,1387864800,182614752,469727664,1304044256,1320890352,536361710,468150447,469727664,1287529184,1391864050,316833504,1554463399,468677044,249968557,497755126,502168749,149562801,1319447026,867379436,1555245292,402471662,1373928870,334069173,300431609,233340326,1190883071,145306848,300842155,485388269,497755055,502168749,251471281,1319444978,1320826610,1555245292,402471662,1373928870,1170172079,451181538,1140358055,1340632746,1218783724,1303532780,1555782380,402471662,1373928870,1170172079,451181538,1140358055,1340632739,1321152236,1555245810,402471662,1373928870,1170172079,451181538,1140358055,1340632739,1321152236,1555573746,199899886,1373925798,1173127085,451181538,1140358055,234776749,531182816,300055735,1257993709,300431609,233340326,1257993727,1321154211,1386819052,451835360,533232043,401177010,402616750,598305703],4);const X1=1e6,Cc={width:1920,height:1080,bitrate:5*X1,framerate:30},Ay={width:3840,height:2160,bitrate:20*X1,framerate:60},Sy=Fn(0);function bo(o,a,s,u){return o.addEventListener(a,s,u),()=>o.removeEventListener(a,s,u)}const Iy=dy();function q1(o,a){(function(s,u){W1((h=>{(function(m,p){F1(m,"",-1,p)})(s,h)})),W1((h=>(F1(s,u,365,h),El(s)===u)))})(a,o),gc(a,o)}var Mc=Jt([1844342124,1731613500,990986353,203511828,207120145,2115912049,489049920,1598038361,559087932,1081151567,1276649489,823205686,36704522,505363536,2115063679,153178895,1480597849,1046283050,1097948932,1329626654,2119767866,1097947136,1581284894,911344434,138088735,1208300629,1896886385,774330634,1226653267,5769255,138364185,1481604894,1044975164,673665544,1493186128,236853565],3);const Oy=Mc(0);var or=Jt([1879312905,2234210727,1020072502,1551618835,3372564357,919471162,1383433502,3607443400,1036386878,356305173,2232696003,847580021,285859349,2639409619,612703099,506889564,3289590996,2077492028,506889564,3355585474,2072728107,305451550,4199689154],3);function J1(o){const a=jr(o);Qa=Qa||(function(){let u;const h=new Uint32Array(256);for(let m=0;m<256;m++){u=m;for(let p=0;p<8;p++)u=1&u?3988292384^u>>>1:u>>>1;h[m]=u}return h})();let s=-1;for(let u=0;u<a.length;u++)s=s>>>8^Qa[255&(s^a[u])];return~s>>>0}function Q1(o){return{error:Za(cc,void 0,{httpStatusCode:o.status,bodyBase64:Gn(o.body)})}}var Vn=Jt([1710548451,3119540450,126326602,2433453468,2359230870,415292490,2567278741,2375621521,1153467142,2652734674,2375621761,332321286,2634648786,3234482823,76387599,2215215519,3231582091,415292437,2147847554,3235662486,25990412,3695871637,2358594201,227447305,2551155640,2542996387,293703962,2182928594,3235646871,227514652,3525089183,3535821272,1255063640,2567996317,2744982927,1388352783,3527712704,2358319749,1250333980,2433007836,2396144832,1255068167,3695873681,3230861760,75747908,2907341201],3);function ed(o,a,s,u=1/0,h){const m={failedAttempts:[]},[p,N]=(function(T){const D=(function(he){const _e=[...he];return{current:()=>_e[0],postpone(){const Be=_e.shift();Be!==void 0&&_e.push(Be)},exclude(){_e.shift()}}})(T),z=nl(200,1e4),Y=new Set;return[D.current(),(he,_e,Be)=>{let Te;if(_e)Te=(function(Fe){const ke=Fe.getHeader("retry-after");if(!ke)return;if(/^\s*\d+(\.\d+)?\s*$/.test(ke))return 1e3*parseFloat(ke);const Ce=new Date(ke);return isNaN(Ce)?void 0:Ce.getTime()-Date.now()})(_e),Te!==void 0?D.postpone():D.exclude();else if(Be instanceof Error&&(Be.name==="CSPError"||Be.name==="InvalidURLError"))D.exclude(),Te=0;else{const Fe=Date.now()-he.getTime()<50,ke=D.current();ke&&Fe&&!Y.has(ke)&&(Y.add(ke),Te=0),D.postpone()}const xe=D.current();return xe===void 0?void 0:[xe,Te??he.getTime()+z()-Date.now()]}]})(o),U=(G=[h?.then((T=>m.aborted={resolve:!0,value:T}),(T=>m.aborted={resolve:!1,error:T})),(async()=>{if(p===void 0)return;let T=p;for(let D=0;D<u;++D){const z=new Date;let Y,he;try{Y=await rc((()=>a(T,D,h)),h)}catch(Be){he=Be,m.failedAttempts.push({level:0,endpoint:T,error:Be})}if(Y){const Be=s(Y);if("result"in Be){m.result=Be.result;break}if(m.failedAttempts.push({level:1,endpoint:T,error:Be.error}),Be.stop)break}const _e=N(z,Y,he);if(!_e)break;await rc(gi(_e[1]),h),T=_e[0]}})()],Promise.race(G.filter((T=>!!T)))).then((()=>m));var G;return{then:U.then.bind(U),current:m}}function Ny(o){const a=function(s,u){return s+u};return a(a("",(function(s){return s(6)})(Wr)[o]),(function(s){return s(7)})(Wr))}function Nr(o,a){let s=o;for(;s;){const u=Object.getOwnPropertyNames(s);for(let h=0;h<u.length;h++){const m=u[h];if(Mn(m)==a)return m}s=Object.getPrototypeOf(s)}return""}function Ty(o){const a=function(u,h){return u(h)},s=function(u,h){return u(h)};return new Promise((u=>{const h=(function(m,p){return m+p})((function(m,p){return m+p})(a(Ns,1),o),(function(m){return m(2)})(Ns));try{const[,m,p]=(function(N,U){return N(U)})(Rc,h);if((function(N){return N!==0})(m))return void s(u,m);p[a(Ns,3)]((()=>u(0)),(()=>u(-1)))}catch{s(u,-2)}}))}var Bc=Jt([3180672052,4136321821,1069993656,3701007392,745851388,3604256741,4280449231,2679085715,3668516990,1943205530,3515015719,796709882,3083637708,3961536391,3585578196,2683904356,2093990364,3615946797,2034223591,3083640489,3929227153,3640576901,2548503396,1876095948,3431189038,930339069,3789133282,2975952850,3706046676,2208919359,1271918795,3735025958,611570924,3789134555,3862000347,3588345271,2684300664,1925838043,2597103921,577620960,3885685417,4280447448,3487227027,2564957300,1065859019,2496980017,611634871,3570702309,3892474321,3387284885,2227709816,1943597533,3566723639,1629986790,4141455352,4167119263,3707494303,2231238769,1775497418,3398694934,577362129,3083573986,3895476103,2444745859,2447519807,1221719254,3617120301,828298210,4225602286,3877795017,3468133076,3668516968,1774579866,3515213094,539481082,3319567353,4164121295,3635905236,3668521854,1774579866,3515213094,858248186,2946142457,2838722719,3320879834,2246387305,668203729,3515284258,1629986801,3083966446,4079370129,3472612738,3437571188,1959650777,3683569191,645515513,4036676777,2837869788,3320879834,2246387305,668203729,3700685088,561172951,4036676777,2808184798,3387809236,2683841912,2122841047,3901943345,644469479,2946138856,4213209247,2679741060,2482977656,1926555350,3583947053,642703092,3789391080,3999344543,2444741534,2196973119,1959721949,3570197804,645582836,4158102217,3999344543,2444745370,2196973119,1959721949,3586975020,709743612,4225612517,2838194650,3505429196,3668520813,1774579866,3515213094,858248186,4040527850,2975951315,3303398868,3567730239,1910497512,3720210474,644873964,3788936175,2838461652,3371408090,2684297331,1084226519],7);const xy=450,Ly=Bc(0);async function td({te:o}){const a=function(p){return p()},s=function(p,N){return p===N},u=function(p,N,U){return p(N,U)},h=a(hl),m=await u(Dn,u(Nn,300,-4),J7.bind(null,h,o));return()=>{const p=a(m);return s(p,0)||s(p,-4)?{s:p,v:{u:h,e:[],s:[]}}:{s:p,v:null}}}const Cy=function(){return{key:"bd",sources:{stage1:{s94:td,s167:Km},stage2:{s106:K9,s154:V7,s158:Uy,s160:Z7,s97:Cf,s70:bl,s152:rg,s163:p7},stage3:{s1:Gl,s2:Hl,s4:$l,s5:jl,s7:Kl,s15:Wl,s19:zl,s27:Zl,s74:Yl,s75:Xl,s24:Il,s44:x1,s45:Z1,s57:G1,s59:Jl,s60:Ql,s61:e1,s62:t1,s63:n1,s64:r1,s65:o1,s68:i1,s69:fl,s72:pl,s82:dl,s83:T1,s99:b1,s101:H9,s103:$9,s104:j9,s117:W9,s119:z9,s123:Z9,s131:Y9,s133:X9,s136:q9,s148:J9,s149:Q9,s150:ev,s157:tv,s102:Av,s118:iv,s120:oy,s130:ky,s132:Eg,s135:kg,s139:a7,s142:ov,s144:Mv,s145:v7,s146:e9,s151:q7,s153:Mg,s155:bv,s156:Xg,s159:Ey,s162:Nv,s165:h9,s166:Cv}}}};async function My(){const o=function(ke,Ce,Ye){return ke(Ce,Ye)},a=function(ke,Ce){return ke(Ce)},s=function(ke,Ce,Ye){return ke(Ce,Ye)},u=function(ke,Ce){return ke+Ce},h=function(ke,Ce){return ke in Ce},m=function(ke,Ce,Ye){return ke(Ce,Ye)},p=function(ke,Ce){return ke(Ce)},N=function(ke,Ce,Ye){return ke(Ce,Ye)},U=function(ke,Ce){return ke(Ce)},G=function(ke,Ce){return ke(Ce)},T=function(ke,Ce){return ke+Ce},D=function(ke,Ce){return ke+Ce},z=function(ke,Ce){return ke+Ce},Y=function(ke,Ce){return ke(Ce)},he=function(ke,Ce,Ye){return ke(Ce,Ye)},_e=await(Be=l1,Be());var Be;if((function(ke){return ke===-3})(o(Ae,_e,453955339))){let ke=null;return(function(Ce,Ye){return Ce===Ye})(typeof o(Ae,_e,1801730948),a(rr,1))&&(ke=s(Ae,_e,1801730948)),{s:-1,v:ke}}if((function(ke){return ke===-4})(s(Ae,_e,453955339)))return{s:-2,v:null};const Te=s(Ae,_e,1801730948),xe=[];let Fe="";try{if(Te)for(const it of by)Fe=u(u(a(rr,2),it),""),xe.push(h(it,o(Ae,Te,1455634619))?m(Ae,Te,1455634619)[it]:null);Fe=a(rr,3);const ke=await(function(it,dt){return it(dt)})(j7,Te);Fe=a(rr,4);const Ce=(function(it,dt){return it(dt,1843675174)})(Ae,ke);Fe=p(rr,5);const Ye=N(Ae,ke,154121870);return Fe=p(rr,6),{s:0,v:{ds:Ce,dv:Ye,f:h(U(rr,7),ke)?N(Ae,ke,4163855836):null,l:xe}}}catch(ke){if(G(b7,ke))return{s:-3,v:T(D(T(z(Y(rr,8),Fe),G(rr,9)),he(Ae,ke,3065852031)),"")};throw ke}}function By(o,a){const s=[],u=Object.getOwnPropertyNames(o);for(let h=0;h<u.length;h++){const m=u[h],p=Mn(m);a.has(p)&&s.push({i:h,n:m})}return{l:u.length,p:s}}function ky(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}async function Dy(){const o=function(s,u,h){return s(u,h)},a=await o(Ae,o(Ae,navigator,770559087),616412651)((function(s){return s(3)})(Vn));return o(Ae,a,2744374011)}function Uy(o){return nr(((a,s)=>{const{webdriver:u}=s.navigator;return u===null?{s:-1,v:null}:u===void 0?{s:-2,v:null}:{s:0,v:u}}),o.sis)}function Py(o){return o===void 0||typeof o=="function"||typeof o=="symbol"}async function Ao(o,a,s,u,h){let m;Un(o,a);try{m=await h()}catch(p){throw Un(o,u,p),p}return Un(o,s,m),m}function kc(o){return`${o}_t`}async function Fy(o){const a=function(p,N){return p(N)},s=function(p,N){return p(N)},[u,h,m]=a(Rc,o);return(function(p){return p!==0})(h)?{n:u,l:h}:await new Promise((p=>{m[(function(N){return N(3)})(Dt)]((N=>{a(p,{n:u,l:N[s(Dt,4)]})}),(()=>{(function(N,U){s(N,U)})(p,{n:u,l:-1})}))}))}async function Vy(){const o=function(m){return m()},a=function(m,p){return m(p)},s=function(m,p,N){return m(p,N)},u=function(m,p,N){return m(p,N)},h=(function(m){return m()})(Zg);return h?o(Tf)?await u(Dn,s(Nn,350,{s:-2,v:null}),(async()=>({s:0,v:await Promise.all(h.map(Fy))}))):await u(Dn,s(Nn,350,{s:-1,v:null}),(async()=>({s:-1,v:await Promise.all([a(wl,h[0])])}))):await s(Dn,s(Nn,350,{s:-3,v:null}),(async()=>({s:-3,v:await Promise.all([o(wl)])})))}const Gy=function(){return{key:"id",sources:{stage1:{s94:td,s213:Sg},stage2:{s52:Yg,s6:v9,s58:wv,s20:pv,s36:m9,s51:gy,s21:g9,s79:Vy,s69:fl,s23:_7,s29:A7,s84:rv,s85:zg,s89:ag,s17:S9,s87:ey,s92:E7,s93:Xm,s95:Uv,s97:Cf,s70:bl,s204:hv,s206:Rv,s207:Og,s210:My,s211:D7,s214:Ov,s215:$7},stage3:{s22:ug,s30:yv,s33:lg,s44:x1,s45:Z1,s49:sg,s50:Fv,s57:G1,s59:Jl,s60:Ql,s61:e1,s62:t1,s63:n1,s64:r1,s65:o1,s66:F9,s68:i1,s71:G7,s24:Il,s72:pl,s1:Gl,s2:Hl,s3:y9,s4:$l,s5:jl,s7:Kl,s9:w9,s10:_9,s11:E9,s12:y7,s13:R9,s14:b9,s15:Wl,s16:A9,s19:zl,s27:Zl,s28:I9,s32:O9,s37:N9,s41:T9,s39:x9,s42:L9,s38:C9,s43:M9,s40:k9,s46:D9,s80:U9,s81:P9,s82:dl,s83:T1,s86:mg,s91:B9,s96:V9,s98:i7,s99:b1,s200:jv,s201:nv,s202:G9,s205:k7,s203:I7,s209:g7,s212:sv,s74:Yl,s75:Xl,s76:Qm}},tls:zv,async toRequest(o,a){const s=location.href,u=document.referrer,[h,m]=await Promise.all([s&&Is(s,a),u&&Is(u,a)]);return{url:h,cr:m||void 0,s55:_y(o),s48:ay()}},onGetResponse(o,a){var s,u,h;(function(m,p){const N=kc(m);p&&q1(p,N)})(a,(h=(u=(s=o.products)===null||s===void 0?void 0:s.identification)===null||u===void 0?void 0:u.data)===null||h===void 0?void 0:h.visitorToken)}}};function nd(o,a,s){return new Promise((u=>{const[,h,m]=(function(p,N){return p(N)})(Rc,o);if((function(p){return p!==0})(h))return(function(p){return p(!1)})(u);m[(function(p){return p(25)})(xt)]((()=>u(a())),(p=>u(s(p))))}))}const Hy=function(){return{key:"si",sources:{stage2:{s77:Tg}}}},$y=function(o){return{addEvent:(function(a=el){return s=>{let u=console.log;switch(s.e){case 2:case 5:case 8:case 11:case 14:case 20:u=console.error;break;case 13:{const h=s.result;Object.keys(h).some((m=>"error"in h[m]))&&(u=console.warn);break}case 25:u=s.result.error?console.error:console.log;break;case 17:{const{error:h,stage:m}=s;u=m===0&&ys(h)&&h.message===zf?console.log:console.error}}u.apply(console,(function(h,{e:m,stage:p,...N}){const U=[h,new Date().toISOString().slice(11),Sc(m)];if(p!==void 0)switch(p){case 0:U.push("(fast)");break;case 1:U.push("(final)");break;default:N.stage=p}return U.push(N),U})(a,s))}})(o)}};function jy(){var o;const a=window;return Sr(["Iterator"in a,a.Error&&"isError"in a.Error,a.Atomics&&"pause"in a.Atomics,((o=a.Document)===null||o===void 0?void 0:o.prototype)&&"fragmentDirective"in a.Document.prototype,a.CSSRule&&!("UNKNOWN_RULE"in a.CSSRule),!("SVGDocument"in a)])>=4}const Ky=function(o){return{addEvent:fy(o)}},Ts="API key required",xs="API key not found",Ls="API key expired",rd="Request cannot be parsed",od="Request failed",id="Request failed to process",sd="Too many requests, rate limit exceeded",ad="Not available for this origin",cd="Not available with restricted header",Wy=Ts,zy=xs,Zy=Ls;var Yy={load:Pl,handleAgentData:Fl,defaultEndpoint:gs,defaultTlsEndpoint:vs,ERROR_CLIENT_TIMEOUT:ic,ERROR_NETWORK_CONNECTION:sc,ERROR_NETWORK_ABORT:ac,ERROR_WRONG_REGION:Gf,ERROR_SUBSCRIPTION_NOT_ACTIVE:Hf,ERROR_API_KEY_MISSING:Ts,ERROR_API_KEY_INVALID:xs,ERROR_API_KEY_EXPIRED:Ls,ERROR_BAD_REQUEST_FORMAT:rd,ERROR_BAD_RESPONSE_FORMAT:cc,ERROR_GENERAL_SERVER_FAILURE:od,ERROR_SERVER_TIMEOUT:id,ERROR_RATE_LIMIT:sd,ERROR_FORBIDDEN_ORIGIN:ad,ERROR_FORBIDDEN_HEADER:cd,ERROR_UNSUPPORTED_VERSION:$f,ERROR_INSTALLATION_METHOD_RESTRICTED:jf,ERROR_FORBIDDEN_ENDPOINT:Kf,ERROR_CSP_BLOCK:uc,ERROR_INTEGRATION_FAILURE:Wf,ERROR_INVALID_ENDPOINT:fc,ERROR_NETWORK_RESTRICTED:Zf,ERROR_INVALID_PROXY_INTEGRATION_SECRET:Yf,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:Xf,ERROR_HANDLE_AGENT_DATA:lc,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:qf,ERROR_TOKEN_MISSING:Ts,ERROR_TOKEN_INVALID:xs,ERROR_TOKEN_EXPIRED:Ls}},75:function(e,t,n){n.r(t),n.d(t,{componentsToDebugString:function(){return Qe},default:function(){return ve},getFullscreenElement:function(){return te},getScreenFrame:function(){return at},hashComponents:function(){return P},isAndroid:function(){return ce},isChromium:function(){return R},isDesktopSafari:function(){return $},isEdgeHTML:function(){return f},isGecko:function(){return Z},isTrident:function(){return k},isWebKit:function(){return M},load:function(){return X},loadSources:function(){return de},murmurX64Hash128:function(){return be},prepareForSources:function(){return E},sources:function(){return Me},transformSource:function(){return ge},withIframe:function(){return g}});var r=function(){return r=Object.assign||function(L){for(var oe,ee=1,we=arguments.length;ee<we;ee++)for(var Se in oe=arguments[ee])Object.prototype.hasOwnProperty.call(oe,Se)&&(L[Se]=oe[Se]);return L},r.apply(this,arguments)};function c(L,oe,ee,we){return new(ee||(ee=Promise))((function(Se,Ne){function Pe(He){try{ue(we.next(He))}catch(ze){Ne(ze)}}function Ve(He){try{ue(we.throw(He))}catch(ze){Ne(ze)}}function ue(He){var ze;He.done?Se(He.value):(ze=He.value,ze instanceof ee?ze:new ee((function(qe){qe(ze)}))).then(Pe,Ve)}ue((we=we.apply(L,[])).next())}))}function i(L,oe){var ee,we,Se,Ne,Pe={label:0,sent:function(){if(1&Se[0])throw Se[1];return Se[1]},trys:[],ops:[]};return Ne={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(Ne[Symbol.iterator]=function(){return this}),Ne;function Ve(ue){return function(He){return(function(ze){if(ee)throw new TypeError("Generator is already executing.");for(;Ne&&(Ne=0,ze[0]&&(Pe=0)),Pe;)try{if(ee=1,we&&(Se=2&ze[0]?we.return:ze[0]?we.throw||((Se=we.return)&&Se.call(we),0):we.next)&&!(Se=Se.call(we,ze[1])).done)return Se;switch(we=0,Se&&(ze=[2&ze[0],Se.value]),ze[0]){case 0:case 1:Se=ze;break;case 4:return Pe.label++,{value:ze[1],done:!1};case 5:Pe.label++,we=ze[1],ze=[0];continue;case 7:ze=Pe.ops.pop(),Pe.trys.pop();continue;default:if(!((Se=(Se=Pe.trys).length>0&&Se[Se.length-1])||ze[0]!==6&&ze[0]!==2)){Pe=0;continue}if(ze[0]===3&&(!Se||ze[1]>Se[0]&&ze[1]<Se[3])){Pe.label=ze[1];break}if(ze[0]===6&&Pe.label<Se[1]){Pe.label=Se[1],Se=ze;break}if(Se&&Pe.label<Se[2]){Pe.label=Se[2],Pe.ops.push(ze);break}Se[2]&&Pe.ops.pop(),Pe.trys.pop();continue}ze=oe.call(L,Pe)}catch(qe){ze=[6,qe],we=0}finally{ee=Se=0}if(5&ze[0])throw ze[1];return{value:ze[0]?ze[1]:void 0,done:!0}})([ue,He])}}}function d(L,oe,ee){for(var we,Se=0,Ne=oe.length;Se<Ne;Se++)!we&&Se in oe||(we||(we=Array.prototype.slice.call(oe,0,Se)),we[Se]=oe[Se]);return L.concat(we||Array.prototype.slice.call(oe))}typeof SuppressedError=="function"&&SuppressedError;var v="3.4.2";function l(L,oe){return new Promise((function(ee){return setTimeout(ee,L,oe)}))}function y(L){return!!L&&typeof L.then=="function"}function A(L,oe){try{var ee=L();y(ee)?ee.then((function(we){return oe(!0,we)}),(function(we){return oe(!1,we)})):oe(!0,ee)}catch(we){oe(!1,we)}}function O(L,oe,ee){return ee===void 0&&(ee=16),c(this,void 0,void 0,(function(){var we,Se,Ne,Pe;return i(this,(function(Ve){switch(Ve.label){case 0:we=Array(L.length),Se=Date.now(),Ne=0,Ve.label=1;case 1:return Ne<L.length?(we[Ne]=oe(L[Ne],Ne),(Pe=Date.now())>=Se+ee?(Se=Pe,[4,l(0)]):[3,3]):[3,4];case 2:Ve.sent(),Ve.label=3;case 3:return++Ne,[3,1];case 4:return[2,we]}}))}))}function S(L){L.then(void 0,(function(){}))}function I(L,oe){L=[L[0]>>>16,65535&L[0],L[1]>>>16,65535&L[1]],oe=[oe[0]>>>16,65535&oe[0],oe[1]>>>16,65535&oe[1]];var ee=[0,0,0,0];return ee[3]+=L[3]+oe[3],ee[2]+=ee[3]>>>16,ee[3]&=65535,ee[2]+=L[2]+oe[2],ee[1]+=ee[2]>>>16,ee[2]&=65535,ee[1]+=L[1]+oe[1],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[0]+=L[0]+oe[0],ee[0]&=65535,[ee[0]<<16|ee[1],ee[2]<<16|ee[3]]}function B(L,oe){L=[L[0]>>>16,65535&L[0],L[1]>>>16,65535&L[1]],oe=[oe[0]>>>16,65535&oe[0],oe[1]>>>16,65535&oe[1]];var ee=[0,0,0,0];return ee[3]+=L[3]*oe[3],ee[2]+=ee[3]>>>16,ee[3]&=65535,ee[2]+=L[2]*oe[3],ee[1]+=ee[2]>>>16,ee[2]&=65535,ee[2]+=L[3]*oe[2],ee[1]+=ee[2]>>>16,ee[2]&=65535,ee[1]+=L[1]*oe[3],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[1]+=L[2]*oe[2],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[1]+=L[3]*oe[1],ee[0]+=ee[1]>>>16,ee[1]&=65535,ee[0]+=L[0]*oe[3]+L[1]*oe[2]+L[2]*oe[1]+L[3]*oe[0],ee[0]&=65535,[ee[0]<<16|ee[1],ee[2]<<16|ee[3]]}function C(L,oe){return(oe%=64)==32?[L[1],L[0]]:oe<32?[L[0]<<oe|L[1]>>>32-oe,L[1]<<oe|L[0]>>>32-oe]:(oe-=32,[L[1]<<oe|L[0]>>>32-oe,L[0]<<oe|L[1]>>>32-oe])}function F(L,oe){return(oe%=64)==0?L:oe<32?[L[0]<<oe|L[1]>>>32-oe,L[1]<<oe]:[L[1]<<oe-32,0]}function j(L,oe){return[L[0]^oe[0],L[1]^oe[1]]}function Q(L){return L=j(L,[0,L[0]>>>1]),L=j(L=B(L,[4283543511,3981806797]),[0,L[0]>>>1]),j(L=B(L,[3301882366,444984403]),[0,L[0]>>>1])}function W(L,oe){oe=oe||0;var ee,we=(L=L||"").length%16,Se=L.length-we,Ne=[0,oe],Pe=[0,oe],Ve=[0,0],ue=[0,0],He=[2277735313,289559509],ze=[1291169091,658871167];for(ee=0;ee<Se;ee+=16)Ve=[255&L.charCodeAt(ee+4)|(255&L.charCodeAt(ee+5))<<8|(255&L.charCodeAt(ee+6))<<16|(255&L.charCodeAt(ee+7))<<24,255&L.charCodeAt(ee)|(255&L.charCodeAt(ee+1))<<8|(255&L.charCodeAt(ee+2))<<16|(255&L.charCodeAt(ee+3))<<24],ue=[255&L.charCodeAt(ee+12)|(255&L.charCodeAt(ee+13))<<8|(255&L.charCodeAt(ee+14))<<16|(255&L.charCodeAt(ee+15))<<24,255&L.charCodeAt(ee+8)|(255&L.charCodeAt(ee+9))<<8|(255&L.charCodeAt(ee+10))<<16|(255&L.charCodeAt(ee+11))<<24],Ve=C(Ve=B(Ve,He),31),Ne=I(Ne=C(Ne=j(Ne,Ve=B(Ve,ze)),27),Pe),Ne=I(B(Ne,[0,5]),[0,1390208809]),ue=C(ue=B(ue,ze),33),Pe=I(Pe=C(Pe=j(Pe,ue=B(ue,He)),31),Ne),Pe=I(B(Pe,[0,5]),[0,944331445]);switch(Ve=[0,0],ue=[0,0],we){case 15:ue=j(ue,F([0,L.charCodeAt(ee+14)],48));case 14:ue=j(ue,F([0,L.charCodeAt(ee+13)],40));case 13:ue=j(ue,F([0,L.charCodeAt(ee+12)],32));case 12:ue=j(ue,F([0,L.charCodeAt(ee+11)],24));case 11:ue=j(ue,F([0,L.charCodeAt(ee+10)],16));case 10:ue=j(ue,F([0,L.charCodeAt(ee+9)],8));case 9:ue=B(ue=j(ue,[0,L.charCodeAt(ee+8)]),ze),Pe=j(Pe,ue=B(ue=C(ue,33),He));case 8:Ve=j(Ve,F([0,L.charCodeAt(ee+7)],56));case 7:Ve=j(Ve,F([0,L.charCodeAt(ee+6)],48));case 6:Ve=j(Ve,F([0,L.charCodeAt(ee+5)],40));case 5:Ve=j(Ve,F([0,L.charCodeAt(ee+4)],32));case 4:Ve=j(Ve,F([0,L.charCodeAt(ee+3)],24));case 3:Ve=j(Ve,F([0,L.charCodeAt(ee+2)],16));case 2:Ve=j(Ve,F([0,L.charCodeAt(ee+1)],8));case 1:Ve=B(Ve=j(Ve,[0,L.charCodeAt(ee)]),He),Ne=j(Ne,Ve=B(Ve=C(Ve,31),ze))}return Ne=I(Ne=j(Ne,[0,L.length]),Pe=j(Pe,[0,L.length])),Pe=I(Pe,Ne),Ne=I(Ne=Q(Ne),Pe=Q(Pe)),Pe=I(Pe,Ne),("00000000"+(Ne[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ne[1]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[0]>>>0).toString(16)).slice(-8)+("00000000"+(Pe[1]>>>0).toString(16)).slice(-8)}function ae(L){return parseInt(L)}function fe(L){return parseFloat(L)}function ie(L,oe){return typeof L=="number"&&isNaN(L)?oe:L}function Ee(L){return L.reduce((function(oe,ee){return oe+(ee?1:0)}),0)}function Re(L,oe){if(oe===void 0&&(oe=1),Math.abs(oe)>=1)return Math.round(L/oe)*oe;var ee=1/oe;return Math.round(L*ee)/ee}function re(L){return L&&typeof L=="object"&&"message"in L?L:{message:L}}function se(L){return typeof L!="function"}function de(L,oe,ee){var we=Object.keys(L).filter((function(Ne){return!(function(Pe,Ve){for(var ue=0,He=Pe.length;ue<He;++ue)if(Pe[ue]===Ve)return!0;return!1})(ee,Ne)})),Se=O(we,(function(Ne){return(function(Pe,Ve){var ue=new Promise((function(He){var ze=Date.now();A(Pe.bind(null,Ve),(function(){for(var qe=[],et=0;et<arguments.length;et++)qe[et]=arguments[et];var ct=Date.now()-ze;if(!qe[0])return He((function(){return{error:re(qe[1]),duration:ct}}));var ot=qe[1];if(se(ot))return He((function(){return{value:ot,duration:ct}}));He((function(){return new Promise((function(rt){var $t=Date.now();A(ot,(function(){for(var pt=[],gt=0;gt<arguments.length;gt++)pt[gt]=arguments[gt];var tn=ct+Date.now()-$t;if(!pt[0])return rt({error:re(pt[1]),duration:tn});rt({value:pt[1],duration:tn})}))}))}))}))}));return S(ue),function(){return ue.then((function(He){return He()}))}})(L[Ne],oe)}));return S(Se),function(){return c(this,void 0,void 0,(function(){var Ne,Pe,Ve,ue;return i(this,(function(He){switch(He.label){case 0:return[4,Se];case 1:return[4,O(He.sent(),(function(ze){var qe=ze();return S(qe),qe}))];case 2:return Ne=He.sent(),[4,Promise.all(Ne)];case 3:for(Pe=He.sent(),Ve={},ue=0;ue<we.length;++ue)Ve[we[ue]]=Pe[ue];return[2,Ve]}}))}))}}function ge(L,oe){var ee=function(we){return se(we)?oe(we):function(){var Se=we();return y(Se)?Se.then(oe):oe(Se)}};return function(we){var Se=L(we);return y(Se)?Se.then(ee):ee(Se)}}function k(){var L=window,oe=navigator;return Ee(["MSCSSMatrix"in L,"msSetImmediate"in L,"msIndexedDB"in L,"msMaxTouchPoints"in oe,"msPointerEnabled"in oe])>=4}function f(){var L=window,oe=navigator;return Ee(["msWriteProfilerMark"in L,"MSStream"in L,"msLaunchUri"in oe,"msSaveBlob"in oe])>=3&&!k()}function R(){var L=window,oe=navigator;return Ee(["webkitPersistentStorage"in oe,"webkitTemporaryStorage"in oe,oe.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in L,"BatteryManager"in L,"webkitMediaStream"in L,"webkitSpeechGrammar"in L])>=5}function M(){var L=window,oe=navigator;return Ee(["ApplePayError"in L,"CSSPrimitiveValue"in L,"Counter"in L,oe.vendor.indexOf("Apple")===0,"getStorageUpdates"in oe,"WebKitMediaKeys"in L])>=4}function $(){var L=window;return Ee(["safari"in L,!("DeviceMotionEvent"in L),!("ongestureend"in L),!("standalone"in navigator)])>=3}function Z(){var L,oe,ee=window;return Ee(["buildID"in navigator,"MozAppearance"in((oe=(L=document.documentElement)===null||L===void 0?void 0:L.style)!==null&&oe!==void 0?oe:{}),"onmozfullscreenchange"in ee,"mozInnerScreenX"in ee,"CSSMozDocumentRule"in ee,"CanvasCaptureMediaStream"in ee])>=4}function te(){var L=document;return L.fullscreenElement||L.msFullscreenElement||L.mozFullScreenElement||L.webkitFullscreenElement||null}function ce(){var L=R(),oe=Z();if(!L&&!oe)return!1;var ee=window;return Ee(["onorientationchange"in ee,"orientation"in ee,L&&!("SharedWorker"in ee),oe&&/android/i.test(navigator.appVersion)])>=2}function K(L){var oe=new Error(L);return oe.name=L,oe}function g(L,oe,ee){var we,Se,Ne;return ee===void 0&&(ee=50),c(this,void 0,void 0,(function(){var Pe,Ve;return i(this,(function(ue){switch(ue.label){case 0:Pe=document,ue.label=1;case 1:return Pe.body?[3,3]:[4,l(ee)];case 2:return ue.sent(),[3,1];case 3:Ve=Pe.createElement("iframe"),ue.label=4;case 4:return ue.trys.push([4,,10,11]),[4,new Promise((function(He,ze){var qe=!1,et=function(){qe=!0,He()};Ve.onload=et,Ve.onerror=function(rt){qe=!0,ze(rt)};var ct=Ve.style;ct.setProperty("display","block","important"),ct.position="absolute",ct.top="0",ct.left="0",ct.visibility="hidden",oe&&"srcdoc"in Ve?Ve.srcdoc=oe:Ve.src="about:blank",Pe.body.appendChild(Ve);var ot=function(){var rt,$t;qe||((($t=(rt=Ve.contentWindow)===null||rt===void 0?void 0:rt.document)===null||$t===void 0?void 0:$t.readyState)==="complete"?et():setTimeout(ot,10))};ot()}))];case 5:ue.sent(),ue.label=6;case 6:return!((Se=(we=Ve.contentWindow)===null||we===void 0?void 0:we.document)===null||Se===void 0)&&Se.body?[3,8]:[4,l(ee)];case 7:return ue.sent(),[3,6];case 8:return[4,L(Ve,Ve.contentWindow)];case 9:return[2,ue.sent()];case 10:return(Ne=Ve.parentNode)===null||Ne===void 0||Ne.removeChild(Ve),[7];case 11:return[2]}}))}))}function _(L){for(var oe=(function(He){for(var ze,qe,et="Unexpected syntax '".concat(He,"'"),ct=/^\s*([a-z-]*)(.*)$/i.exec(He),ot=ct[1]||void 0,rt={},$t=/([.:#][\w-]+|\[.+?\])/gi,pt=function(Nt,lr){rt[Nt]=rt[Nt]||[],rt[Nt].push(lr)};;){var gt=$t.exec(ct[2]);if(!gt)break;var tn=gt[0];switch(tn[0]){case".":pt("class",tn.slice(1));break;case"#":pt("id",tn.slice(1));break;case"[":var It=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(tn);if(!It)throw new Error(et);pt(It[1],(qe=(ze=It[4])!==null&&ze!==void 0?ze:It[5])!==null&&qe!==void 0?qe:"");break;default:throw new Error(et)}}return[ot,rt]})(L),ee=oe[0],we=oe[1],Se=document.createElement(ee??"div"),Ne=0,Pe=Object.keys(we);Ne<Pe.length;Ne++){var Ve=Pe[Ne],ue=we[Ve].join(" ");Ve==="style"?H(Se.style,ue):Se.setAttribute(Ve,ue)}return Se}function H(L,oe){for(var ee=0,we=oe.split(";");ee<we.length;ee++){var Se=we[ee],Ne=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Se);if(Ne){var Pe=Ne[1],Ve=Ne[2],ue=Ne[4];L.setProperty(Pe,Ve,ue||"")}}}var q=["monospace","sans-serif","serif"],me=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function ye(L){return L.toDataURL()}var Ue,We,st=2500;function at(){var L=this;return(function(){if(We===void 0){var oe=function(){var ee=ut();Et(ee)?We=setTimeout(oe,st):(Ue=ee,We=void 0)};oe()}})(),function(){return c(L,void 0,void 0,(function(){var oe;return i(this,(function(ee){switch(ee.label){case 0:return Et(oe=ut())?Ue?[2,d([],Ue)]:te()?[4,(we=document,(we.exitFullscreen||we.msExitFullscreen||we.mozCancelFullScreen||we.webkitExitFullscreen).call(we))]:[3,2]:[3,2];case 1:ee.sent(),oe=ut(),ee.label=2;case 2:return Et(oe)||(Ue=oe),[2,oe]}var we}))}))}}function ut(){var L=screen;return[ie(fe(L.availTop),null),ie(fe(L.width)-fe(L.availWidth)-ie(fe(L.availLeft),0),null),ie(fe(L.height)-fe(L.availHeight)-ie(fe(L.availTop),0),null),ie(fe(L.availLeft),null)]}function Et(L){for(var oe=0;oe<4;++oe)if(L[oe])return!1;return!0}function ht(L){var oe;return c(this,void 0,void 0,(function(){var ee,we,Se,Ne,Pe,Ve,ue;return i(this,(function(He){switch(He.label){case 0:for(ee=document,we=ee.createElement("div"),Se=new Array(L.length),Ne={},Rt(we),ue=0;ue<L.length;++ue)(Pe=_(L[ue])).tagName==="DIALOG"&&Pe.show(),Rt(Ve=ee.createElement("div")),Ve.appendChild(Pe),we.appendChild(Ve),Se[ue]=Pe;He.label=1;case 1:return ee.body?[3,3]:[4,l(50)];case 2:return He.sent(),[3,1];case 3:ee.body.appendChild(we);try{for(ue=0;ue<L.length;++ue)Se[ue].offsetParent||(Ne[L[ue]]=!0)}finally{(oe=we.parentNode)===null||oe===void 0||oe.removeChild(we)}return[2,Ne]}}))}))}function Rt(L){L.style.setProperty("display","block","important")}function Pt(L){return matchMedia("(inverted-colors: ".concat(L,")")).matches}function vt(L){return matchMedia("(forced-colors: ".concat(L,")")).matches}function w(L){return matchMedia("(prefers-contrast: ".concat(L,")")).matches}function x(L){return matchMedia("(prefers-reduced-motion: ".concat(L,")")).matches}function V(L){return matchMedia("(dynamic-range: ".concat(L,")")).matches}var ne=Math,J=function(){return 0},pe={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Me={fonts:function(){return g((function(L,oe){var ee=oe.document,we=ee.body;we.style.fontSize="48px";var Se=ee.createElement("div"),Ne={},Pe={},Ve=function(qe){var et=ee.createElement("span"),ct=et.style;return ct.position="absolute",ct.top="0",ct.left="0",ct.fontFamily=qe,et.textContent="mmMwWLliI0O&1",Se.appendChild(et),et},ue=q.map(Ve),He=(function(){for(var qe={},et=function(rt){qe[rt]=q.map((function($t){return(function(pt,gt){return Ve("'".concat(pt,"',").concat(gt))})(rt,$t)}))},ct=0,ot=me;ct<ot.length;ct++)et(ot[ct]);return qe})();we.appendChild(Se);for(var ze=0;ze<q.length;ze++)Ne[q[ze]]=ue[ze].offsetWidth,Pe[q[ze]]=ue[ze].offsetHeight;return me.filter((function(qe){return et=He[qe],q.some((function(ct,ot){return et[ot].offsetWidth!==Ne[ct]||et[ot].offsetHeight!==Pe[ct]}));var et}))}))},domBlockers:function(L){var oe=(L===void 0?{}:L).debug;return c(this,void 0,void 0,(function(){var ee,we,Se,Ne,Pe;return i(this,(function(Ve){switch(Ve.label){case 0:return M()||ce()?(ue=atob,ee={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',ue("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",ue("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",ue("LnNwb25zb3JpdA=="),".ylamainos",ue("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),ue("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",ue("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",ue("LmhlYWRlci1ibG9ja2VkLWFk"),ue("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",ue("I2FkXzMwMFgyNTA="),ue("I2Jhbm5lcmZsb2F0MjI="),ue("I2NhbXBhaWduLWJhbm5lcg=="),ue("I0FkLUNvbnRlbnQ=")],adGuardChinese:[ue("LlppX2FkX2FfSA=="),ue("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",ue("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),ue("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",ue("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",ue("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",ue("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),ue("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),ue("LmFkZ29vZ2xl"),ue("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[ue("YW1wLWF1dG8tYWRz"),ue("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",ue("I2FkX2ludmlld19hcmVh")],adGuardRussian:[ue("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),ue("LnJlY2xhbWE="),'div[id^="smi2adblock"]',ue("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[ue("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),ue("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",ue("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),ue("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),ue("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",ue("I3Jla2xhbWk="),ue("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),ue("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),ue("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[ue("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",ue("LndpZGdldF9wb19hZHNfd2lkZ2V0"),ue("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",ue("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[ue("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),ue("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",ue("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",ue("I3Jla2xhbW5pLWJveA=="),ue("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",ue("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[ue("I2FkdmVydGVudGll"),ue("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",ue("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",ue("LnNwb25zb3JsaW5rZ3J1ZW4="),ue("I3dlcmJ1bmdza3k="),ue("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),ue("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[ue("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",ue("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),ue("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),ue("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[ue("LnJla2xhbW9zX3RhcnBhcw=="),ue("LnJla2xhbW9zX251b3JvZG9z"),ue("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),ue("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),ue("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[ue("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[ue("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),ue("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",ue("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[ue("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),ue("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),ue("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",ue("LmFkX19tYWlu"),ue("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[ue("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[ue("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),ue("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[ue("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),ue("I2xpdmVyZUFkV3JhcHBlcg=="),ue("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),ue("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[ue("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",ue("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),ue("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),ue("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[ue("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),ue("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),ue("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",ue("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),ue("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),ue("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),ue("ZGl2I3NrYXBpZWNfYWQ=")],ro:[ue("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),ue("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),ue("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),ue("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[ue("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),ue("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),ue("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",ue("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),ue("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",ue("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},we=Object.keys(ee),[4,ht((Pe=[]).concat.apply(Pe,we.map((function(He){return ee[He]}))))]):[2,void 0];case 1:return Se=Ve.sent(),oe&&(function(He,ze){for(var qe="DOM blockers debug:\n```",et=0,ct=Object.keys(He);et<ct.length;et++){var ot=ct[et];qe+=`
|
|
12
|
+
`.concat(ot,":");for(var rt=0,$t=He[ot];rt<$t.length;rt++){var pt=$t[rt];qe+=`
|
|
13
|
+
`.concat(ze[pt]?"🚫":"➡️"," ").concat(pt)}}console.log("".concat(qe,"\n```"))})(ee,Se),(Ne=we.filter((function(He){var ze=ee[He];return Ee(ze.map((function(qe){return Se[qe]})))>.6*ze.length}))).sort(),[2,Ne]}var ue}))}))},fontPreferences:function(){return L===void 0&&(L=4e3),g((function(oe,ee){var we=ee.document,Se=we.body,Ne=Se.style;Ne.width="".concat(L,"px"),Ne.webkitTextSizeAdjust=Ne.textSizeAdjust="none",R()?Se.style.zoom="".concat(1/ee.devicePixelRatio):M()&&(Se.style.zoom="reset");var Pe=we.createElement("div");return Pe.textContent=d([],Array(L/20|0)).map((function(){return"word"})).join(" "),Se.appendChild(Pe),(function(Ve,ue){for(var He={},ze={},qe=0,et=Object.keys(pe);qe<et.length;qe++){var ct=et[qe],ot=pe[ct],rt=ot[0],$t=rt===void 0?{}:rt,pt=ot[1],gt=pt===void 0?"mmMwWLliI0fiflO&1":pt,tn=Ve.createElement("span");tn.textContent=gt,tn.style.whiteSpace="nowrap";for(var It=0,Nt=Object.keys($t);It<Nt.length;It++){var lr=Nt[It],kt=$t[lr];kt!==void 0&&(tn.style[lr]=kt)}He[ct]=tn,ue.appendChild(Ve.createElement("br")),ue.appendChild(tn)}for(var Mt=0,Hr=Object.keys(pe);Mt<Hr.length;Mt++)ze[ct=Hr[Mt]]=He[ct].getBoundingClientRect().width;return ze})(we,Se)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var L},audio:function(){var L=window,oe=L.OfflineAudioContext||L.webkitOfflineAudioContext;if(!oe)return-2;if(M()&&!$()&&!(function(){var He=window;return Ee(["DOMRectList"in He,"RTCPeerConnectionIceEvent"in He,"SVGGeometryElement"in He,"ontransitioncancel"in He])>=3})())return-1;var ee=new oe(1,5e3,44100),we=ee.createOscillator();we.type="triangle",we.frequency.value=1e4;var Se=ee.createDynamicsCompressor();Se.threshold.value=-50,Se.knee.value=40,Se.ratio.value=12,Se.attack.value=0,Se.release.value=.25,we.connect(Se),Se.connect(ee.destination),we.start(0);var Ne=(function(He){var ze=function(){};return[new Promise((function(qe,et){var ct=!1,ot=0,rt=0;He.oncomplete=function(gt){return qe(gt.renderedBuffer)};var $t=function(){setTimeout((function(){return et(K("timeout"))}),Math.min(500,rt+5e3-Date.now()))},pt=function(){try{var gt=He.startRendering();switch(y(gt)&&S(gt),He.state){case"running":rt=Date.now(),ct&&$t();break;case"suspended":document.hidden||ot++,ct&&ot>=3?et(K("suspended")):setTimeout(pt,500)}}catch(tn){et(tn)}};pt(),ze=function(){ct||(ct=!0,rt>0&&$t())}})),ze]})(ee),Pe=Ne[0],Ve=Ne[1],ue=Pe.then((function(He){return(function(ze){for(var qe=0,et=0;et<ze.length;++et)qe+=Math.abs(ze[et]);return qe})(He.getChannelData(0).subarray(4500))}),(function(He){if(He.name==="timeout"||He.name==="suspended")return-3;throw He}));return S(ue),function(){return Ve(),ue}},screenFrame:function(){var L=this,oe=at();return function(){return c(L,void 0,void 0,(function(){var ee,we;return i(this,(function(Se){switch(Se.label){case 0:return[4,oe()];case 1:return ee=Se.sent(),[2,[(we=function(Ne){return Ne===null?null:Re(Ne,10)})(ee[0]),we(ee[1]),we(ee[2]),we(ee[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var L,oe=navigator,ee=[],we=oe.language||oe.userLanguage||oe.browserLanguage||oe.systemLanguage;if(we!==void 0&&ee.push([we]),Array.isArray(oe.languages))R()&&Ee([!("MediaSettingsRange"in(L=window)),"RTCEncodedAudioFrame"in L,""+L.Intl=="[object Intl]",""+L.Reflect=="[object Reflect]"])>=3||ee.push(oe.languages);else if(typeof oe.languages=="string"){var Se=oe.languages;Se&&ee.push(Se.split(","))}return ee},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return ie(fe(navigator.deviceMemory),void 0)},screenResolution:function(){var L=screen,oe=function(we){return ie(ae(we),null)},ee=[oe(L.width),oe(L.height)];return ee.sort().reverse(),ee},hardwareConcurrency:function(){return ie(ae(navigator.hardwareConcurrency),void 0)},timezone:function(){var L,oe=(L=window.Intl)===null||L===void 0?void 0:L.DateTimeFormat;if(oe){var ee=new oe().resolvedOptions().timeZone;if(ee)return ee}var we,Se=(we=new Date().getFullYear(),-Math.max(fe(new Date(we,0,1).getTimezoneOffset()),fe(new Date(we,6,1).getTimezoneOffset())));return"UTC".concat(Se>=0?"+":"").concat(Math.abs(Se))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!k()&&!f())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var L=navigator.platform;return L==="MacIntel"&&M()&&!$()?(function(){if(navigator.platform==="iPad")return!0;var oe=screen,ee=oe.width/oe.height;return Ee(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,ee>.65&&ee<1.53])>=2})()?"iPad":"iPhone":L},plugins:function(){var L=navigator.plugins;if(L){for(var oe=[],ee=0;ee<L.length;++ee){var we=L[ee];if(we){for(var Se=[],Ne=0;Ne<we.length;++Ne){var Pe=we[Ne];Se.push({type:Pe.type,suffixes:Pe.suffixes})}oe.push({name:we.name,description:we.description,mimeTypes:Se})}}return oe}},canvas:function(){var L,oe,ee=!1,we=(function(){var Ve=document.createElement("canvas");return Ve.width=1,Ve.height=1,[Ve,Ve.getContext("2d")]})(),Se=we[0],Ne=we[1];if((function(Ve,ue){return!(!ue||!Ve.toDataURL)})(Se,Ne)){ee=(function(Ve){return Ve.rect(0,0,10,10),Ve.rect(2,2,6,6),!Ve.isPointInPath(5,5,"evenodd")})(Ne),(function(Ve,ue){Ve.width=240,Ve.height=60,ue.textBaseline="alphabetic",ue.fillStyle="#f60",ue.fillRect(100,1,62,20),ue.fillStyle="#069",ue.font='11pt "Times New Roman"';var He="Cwm fjordbank gly ".concat("😃");ue.fillText(He,2,15),ue.fillStyle="rgba(102, 204, 0, 0.2)",ue.font="18pt Arial",ue.fillText(He,4,45)})(Se,Ne);var Pe=ye(Se);Pe!==ye(Se)?L=oe="unstable":(oe=Pe,(function(Ve,ue){Ve.width=122,Ve.height=110,ue.globalCompositeOperation="multiply";for(var He=0,ze=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];He<ze.length;He++){var qe=ze[He],et=qe[0],ct=qe[1],ot=qe[2];ue.fillStyle=et,ue.beginPath(),ue.arc(ct,ot,40,0,2*Math.PI,!0),ue.closePath(),ue.fill()}ue.fillStyle="#f9c",ue.arc(60,60,60,0,2*Math.PI,!0),ue.arc(60,60,20,0,2*Math.PI,!0),ue.fill("evenodd")})(Se,Ne),L=ye(Se))}else L=oe="";return{winding:ee,geometry:L,text:oe}},touchSupport:function(){var L,oe=navigator,ee=0;oe.maxTouchPoints!==void 0?ee=ae(oe.maxTouchPoints):oe.msMaxTouchPoints!==void 0&&(ee=oe.msMaxTouchPoints);try{document.createEvent("TouchEvent"),L=!0}catch{L=!1}return{maxTouchPoints:ee,touchEvent:L,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var L=[],oe=0,ee=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];oe<ee.length;oe++){var we=ee[oe],Se=window[we];Se&&typeof Se=="object"&&L.push(we)}return L.sort()},cookiesEnabled:function(){var L=document;try{L.cookie="cookietest=1; SameSite=Strict;";var oe=L.cookie.indexOf("cookietest=")!==-1;return L.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",oe}catch{return!1}},colorGamut:function(){for(var L=0,oe=["rec2020","p3","srgb"];L<oe.length;L++){var ee=oe[L];if(matchMedia("(color-gamut: ".concat(ee,")")).matches)return ee}},invertedColors:function(){return!!Pt("inverted")||!Pt("none")&&void 0},forcedColors:function(){return!!vt("active")||!vt("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var L=0;L<=100;++L)if(matchMedia("(max-monochrome: ".concat(L,")")).matches)return L;throw new Error("Too high value")}},contrast:function(){return w("no-preference")?0:w("high")||w("more")?1:w("low")||w("less")?-1:w("forced")?10:void 0},reducedMotion:function(){return!!x("reduce")||!x("no-preference")&&void 0},hdr:function(){return!!V("high")||!V("standard")&&void 0},math:function(){var L,oe=ne.acos||J,ee=ne.acosh||J,we=ne.asin||J,Se=ne.asinh||J,Ne=ne.atanh||J,Pe=ne.atan||J,Ve=ne.sin||J,ue=ne.sinh||J,He=ne.cos||J,ze=ne.cosh||J,qe=ne.tan||J,et=ne.tanh||J,ct=ne.exp||J,ot=ne.expm1||J,rt=ne.log1p||J;return{acos:oe(.12312423423423424),acosh:ee(1e308),acoshPf:(L=1e154,ne.log(L+ne.sqrt(L*L-1))),asin:we(.12312423423423424),asinh:Se(1),asinhPf:ne.log(1+ne.sqrt(2)),atanh:Ne(.5),atanhPf:ne.log(3)/2,atan:Pe(.5),sin:Ve(-1e300),sinh:ue(1),sinhPf:ne.exp(1)-1/ne.exp(1)/2,cos:He(10.000000000123),cosh:ze(1),coshPf:(ne.exp(1)+1/ne.exp(1))/2,tan:qe(-1e300),tanh:et(1),tanhPf:(ne.exp(2)-1)/(ne.exp(2)+1),exp:ct(1),expm1:ot(1),expm1Pf:ne.exp(1)-1,log1p:rt(10),log1pPf:ne.log(11),powPI:ne.pow(ne.PI,-100)}},videoCard:function(){var L,oe=document.createElement("canvas"),ee=(L=oe.getContext("webgl"))!==null&&L!==void 0?L:oe.getContext("experimental-webgl");if(ee&&"getExtension"in ee){var we=ee.getExtension("WEBGL_debug_renderer_info");if(we)return{vendor:(ee.getParameter(we.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(ee.getParameter(we.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var L=new Float32Array(1),oe=new Uint8Array(L.buffer);return L[0]=1/0,L[0]=L[0]-L[0],oe[3]}},tt="$ if upgrade to Pro: https://fpjs.dev/pro";function Qe(L){return JSON.stringify(L,(function(oe,ee){return ee instanceof Error?r({name:(we=ee).name,message:we.message,stack:(Se=we.stack)===null||Se===void 0?void 0:Se.split(`
|
|
14
|
+
`)},we):ee;var we,Se}),2)}function P(L){return W((function(oe){for(var ee="",we=0,Se=Object.keys(oe).sort();we<Se.length;we++){var Ne=Se[we],Pe=oe[Ne],Ve=Pe.error?"error":JSON.stringify(Pe.value);ee+="".concat(ee?"|":"").concat(Ne.replace(/([:|\\])/g,"\\$1"),":").concat(Ve)}return ee})(L))}function E(L){return L===void 0&&(L=50),(function(oe,ee){ee===void 0&&(ee=1/0);var we=window.requestIdleCallback;return we?new Promise((function(Se){return we.call(window,(function(){return Se()}),{timeout:ee})})):l(Math.min(oe,ee))})(L,2*L)}function b(L,oe){var ee=Date.now();return{get:function(we){return c(this,void 0,void 0,(function(){var Se,Ne,Pe;return i(this,(function(Ve){switch(Ve.label){case 0:return Se=Date.now(),[4,L()];case 1:return Ne=Ve.sent(),Pe=(function(ue){var He,ze=(function(qe){var et=(function(ot){if(ce())return .4;if(M())return $()?.5:.3;var rt=ot.platform.value||"";return/^Win/.test(rt)?.6:/^Mac/.test(rt)?.5:.7})(qe),ct=(function(ot){return Re(.99+.01*ot,1e-4)})(et);return{score:et,comment:tt.replace(/\$/g,"".concat(ct))}})(ue);return{get visitorId(){return He===void 0&&(He=P(this.components)),He},set visitorId(qe){He=qe},confidence:ze,components:ue,version:v}})(Ne),(oe||we?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Pe.version,`
|
|
15
15
|
userAgent: `).concat(navigator.userAgent,`
|
|
16
16
|
timeBetweenLoadAndGet: `).concat(Se-ee,`
|
|
17
17
|
visitorId: `).concat(Pe.visitorId,`
|
|
18
|
-
components: `).concat(Qe(Ne),"\n```")),[2,Pe]}}))}))}}}function q(L){var re=L===void 0?{}:L,ee=re.delayFallback,we=re.debug,Se=re.monitoring,Ne=Se===void 0||Se;return c(this,void 0,void 0,(function(){return i(this,(function(Pe){switch(Pe.label){case 0:return Ne&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Ve=new XMLHttpRequest;Ve.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(v,"/npm-monitoring"),!0),Ve.send()}catch(ce){console.error(ce)}})(),[4,E(ee)];case 1:return Pe.sent(),[2,b(de(Me,{debug:we},[]),we)]}}))}))}var ve={load:q,hashComponents:P,componentsToDebugString:Qe},be=W},526:function(e,t){t.byteLength=function(y){var A=v(y),O=A[0],S=A[1];return 3*(O+S)/4-S},t.toByteArray=function(y){var A,O,S=v(y),I=S[0],B=S[1],C=new c((function(Q,W,se){return 3*(W+se)/4-se})(0,I,B)),F=0,j=B>0?I-4:I;for(O=0;O<j;O+=4)A=r[y.charCodeAt(O)]<<18|r[y.charCodeAt(O+1)]<<12|r[y.charCodeAt(O+2)]<<6|r[y.charCodeAt(O+3)],C[F++]=A>>16&255,C[F++]=A>>8&255,C[F++]=255&A;return B===2&&(A=r[y.charCodeAt(O)]<<2|r[y.charCodeAt(O+1)]>>4,C[F++]=255&A),B===1&&(A=r[y.charCodeAt(O)]<<10|r[y.charCodeAt(O+1)]<<4|r[y.charCodeAt(O+2)]>>2,C[F++]=A>>8&255,C[F++]=255&A),C},t.fromByteArray=function(y){for(var A,O=y.length,S=O%3,I=[],B=16383,C=0,F=O-S;C<F;C+=B)I.push(l(y,C,C+B>F?F:C+B));return S===1?(A=y[O-1],I.push(n[A>>2]+n[A<<4&63]+"==")):S===2&&(A=(y[O-2]<<8)+y[O-1],I.push(n[A>>10]+n[A>>4&63]+n[A<<2&63]+"=")),I.join("")};for(var n=[],r=[],c=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0;d<64;++d)n[d]=i[d],r[i.charCodeAt(d)]=d;function v(y){var A=y.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=y.indexOf("=");return O===-1&&(O=A),[O,O===A?0:4-O%4]}function l(y,A,O){for(var S,I,B=[],C=A;C<O;C+=3)S=(y[C]<<16&16711680)+(y[C+1]<<8&65280)+(255&y[C+2]),B.push(n[(I=S)>>18&63]+n[I>>12&63]+n[I>>6&63]+n[63&I]);return B.join("")}r[45]=62,r[95]=63},287:function(e,t,n){const r=n(526),c=n(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const d=2147483647;function v(w){if(w>d)throw new RangeError('The value "'+w+'" is invalid for option "size"');const x=new Uint8Array(w);return Object.setPrototypeOf(x,l.prototype),x}function l(w,x,V){if(typeof w=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(w)}return y(w,x,V)}function y(w,x,V){if(typeof w=="string")return(function(pe,Me){if(typeof Me=="string"&&Me!==""||(Me="utf8"),!l.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);const tt=0|C(pe,Me);let Qe=v(tt);const P=Qe.write(pe,Me);return P!==tt&&(Qe=Qe.slice(0,P)),Qe})(w,x);if(ArrayBuffer.isView(w))return(function(pe){if(_t(pe,Uint8Array)){const Me=new Uint8Array(pe);return I(Me.buffer,Me.byteOffset,Me.byteLength)}return S(pe)})(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(_t(w,ArrayBuffer)||w&&_t(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_t(w,SharedArrayBuffer)||w&&_t(w.buffer,SharedArrayBuffer)))return I(w,x,V);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Z=w.valueOf&&w.valueOf();if(Z!=null&&Z!==w)return l.from(Z,x,V);const fe=(function(pe){if(l.isBuffer(pe)){const Me=0|B(pe.length),tt=v(Me);return tt.length===0||pe.copy(tt,0,0,Me),tt}return pe.length!==void 0?typeof pe.length!="number"||pt(pe.length)?v(0):S(pe):pe.type==="Buffer"&&Array.isArray(pe.data)?S(pe.data):void 0})(w);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return l.from(w[Symbol.toPrimitive]("string"),x,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}function A(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function O(w){return A(w),v(w<0?0:0|B(w))}function S(w){const x=w.length<0?0:0|B(w.length),V=v(x);for(let Z=0;Z<x;Z+=1)V[Z]=255&w[Z];return V}function I(w,x,V){if(x<0||w.byteLength<x)throw new RangeError('"offset" is outside of buffer bounds');if(w.byteLength<x+(V||0))throw new RangeError('"length" is outside of buffer bounds');let Z;return Z=x===void 0&&V===void 0?new Uint8Array(w):V===void 0?new Uint8Array(w,x):new Uint8Array(w,x,V),Object.setPrototypeOf(Z,l.prototype),Z}function B(w){if(w>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|w}function C(w,x){if(l.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||_t(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);const V=w.length,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&V===0)return 0;let fe=!1;for(;;)switch(x){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return st(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return at(w).length;default:if(fe)return Z?-1:st(w).length;x=(""+x).toLowerCase(),fe=!0}}function F(w,x,V){let Z=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(x>>>=0))return"";for(w||(w="utf8");;)switch(w){case"hex":return f(this,x,V);case"utf8":case"utf-8":return ie(this,x,V);case"ascii":return ge(this,x,V);case"latin1":case"binary":return k(this,x,V);case"base64":return ne(this,x,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,x,V);default:if(Z)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),Z=!0}}function j(w,x,V){const Z=w[x];w[x]=w[V],w[V]=Z}function Q(w,x,V,Z,fe){if(w.length===0)return-1;if(typeof V=="string"?(Z=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),pt(V=+V)&&(V=fe?0:w.length-1),V<0&&(V=w.length+V),V>=w.length){if(fe)return-1;V=w.length-1}else if(V<0){if(!fe)return-1;V=0}if(typeof x=="string"&&(x=l.from(x,Z)),l.isBuffer(x))return x.length===0?-1:W(w,x,V,Z,fe);if(typeof x=="number")return x&=255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(w,x,V):Uint8Array.prototype.lastIndexOf.call(w,x,V):W(w,[x],V,Z,fe);throw new TypeError("val must be string, number or Buffer")}function W(w,x,V,Z,fe){let pe,Me=1,tt=w.length,Qe=x.length;if(Z!==void 0&&((Z=String(Z).toLowerCase())==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(w.length<2||x.length<2)return-1;Me=2,tt/=2,Qe/=2,V/=2}function P(E,b){return Me===1?E[b]:E.readUInt16BE(b*Me)}if(fe){let E=-1;for(pe=V;pe<tt;pe++)if(P(w,pe)===P(x,E===-1?0:pe-E)){if(E===-1&&(E=pe),pe-E+1===Qe)return E*Me}else E!==-1&&(pe-=pe-E),E=-1}else for(V+Qe>tt&&(V=tt-Qe),pe=V;pe>=0;pe--){let E=!0;for(let b=0;b<Qe;b++)if(P(w,pe+b)!==P(x,b)){E=!1;break}if(E)return pe}return-1}function se(w,x,V,Z){V=Number(V)||0;const fe=w.length-V;Z?(Z=Number(Z))>fe&&(Z=fe):Z=fe;const pe=x.length;let Me;for(Z>pe/2&&(Z=pe/2),Me=0;Me<Z;++Me){const tt=parseInt(x.substr(2*Me,2),16);if(pt(tt))return Me;w[V+Me]=tt}return Me}function ue(w,x,V,Z){return ut(st(x,w.length-V),w,V,Z)}function oe(w,x,V,Z){return ut((function(fe){const pe=[];for(let Me=0;Me<fe.length;++Me)pe.push(255&fe.charCodeAt(Me));return pe})(x),w,V,Z)}function Ee(w,x,V,Z){return ut(at(x),w,V,Z)}function Re(w,x,V,Z){return ut((function(fe,pe){let Me,tt,Qe;const P=[];for(let E=0;E<fe.length&&!((pe-=2)<0);++E)Me=fe.charCodeAt(E),tt=Me>>8,Qe=Me%256,P.push(Qe),P.push(tt);return P})(x,w.length-V),w,V,Z)}function ne(w,x,V){return x===0&&V===w.length?r.fromByteArray(w):r.fromByteArray(w.slice(x,V))}function ie(w,x,V){V=Math.min(w.length,V);const Z=[];let fe=x;for(;fe<V;){const pe=w[fe];let Me=null,tt=pe>239?4:pe>223?3:pe>191?2:1;if(fe+tt<=V){let Qe,P,E,b;switch(tt){case 1:pe<128&&(Me=pe);break;case 2:Qe=w[fe+1],(192&Qe)==128&&(b=(31&pe)<<6|63&Qe,b>127&&(Me=b));break;case 3:Qe=w[fe+1],P=w[fe+2],(192&Qe)==128&&(192&P)==128&&(b=(15&pe)<<12|(63&Qe)<<6|63&P,b>2047&&(b<55296||b>57343)&&(Me=b));break;case 4:Qe=w[fe+1],P=w[fe+2],E=w[fe+3],(192&Qe)==128&&(192&P)==128&&(192&E)==128&&(b=(15&pe)<<18|(63&Qe)<<12|(63&P)<<6|63&E,b>65535&&b<1114112&&(Me=b))}}Me===null?(Me=65533,tt=1):Me>65535&&(Me-=65536,Z.push(Me>>>10&1023|55296),Me=56320|1023&Me),Z.push(Me),fe+=tt}return(function(pe){const Me=pe.length;if(Me<=de)return String.fromCharCode.apply(String,pe);let tt="",Qe=0;for(;Qe<Me;)tt+=String.fromCharCode.apply(String,pe.slice(Qe,Qe+=de));return tt})(Z)}l.TYPED_ARRAY_SUPPORT=(function(){try{const w=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(w,x),w.foo()===42}catch{return!1}})(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(w,x,V){return y(w,x,V)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(w,x,V){return(function(Z,fe,pe){return A(Z),Z<=0?v(Z):fe!==void 0?typeof pe=="string"?v(Z).fill(fe,pe):v(Z).fill(fe):v(Z)})(w,x,V)},l.allocUnsafe=function(w){return O(w)},l.allocUnsafeSlow=function(w){return O(w)},l.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==l.prototype},l.compare=function(w,x){if(_t(w,Uint8Array)&&(w=l.from(w,w.offset,w.byteLength)),_t(x,Uint8Array)&&(x=l.from(x,x.offset,x.byteLength)),!l.isBuffer(w)||!l.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===x)return 0;let V=w.length,Z=x.length;for(let fe=0,pe=Math.min(V,Z);fe<pe;++fe)if(w[fe]!==x[fe]){V=w[fe],Z=x[fe];break}return V<Z?-1:Z<V?1:0},l.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(w,x){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return l.alloc(0);let V;if(x===void 0)for(x=0,V=0;V<w.length;++V)x+=w[V].length;const Z=l.allocUnsafe(x);let fe=0;for(V=0;V<w.length;++V){let pe=w[V];if(_t(pe,Uint8Array))fe+pe.length>Z.length?(l.isBuffer(pe)||(pe=l.from(pe)),pe.copy(Z,fe)):Uint8Array.prototype.set.call(Z,pe,fe);else{if(!l.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(Z,fe)}fe+=pe.length}return Z},l.byteLength=C,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const w=this.length;if(w%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let x=0;x<w;x+=2)j(this,x,x+1);return this},l.prototype.swap32=function(){const w=this.length;if(w%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let x=0;x<w;x+=4)j(this,x,x+3),j(this,x+1,x+2);return this},l.prototype.swap64=function(){const w=this.length;if(w%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let x=0;x<w;x+=8)j(this,x,x+7),j(this,x+1,x+6),j(this,x+2,x+5),j(this,x+3,x+4);return this},l.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ie(this,0,w):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(w){if(!l.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w||l.compare(this,w)===0},l.prototype.inspect=function(){let w="";const x=t.IS;return w=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(w+=" ... "),"<Buffer "+w+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(w,x,V,Z,fe){if(_t(w,Uint8Array)&&(w=l.from(w,w.offset,w.byteLength)),!l.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(x===void 0&&(x=0),V===void 0&&(V=w?w.length:0),Z===void 0&&(Z=0),fe===void 0&&(fe=this.length),x<0||V>w.length||Z<0||fe>this.length)throw new RangeError("out of range index");if(Z>=fe&&x>=V)return 0;if(Z>=fe)return-1;if(x>=V)return 1;if(this===w)return 0;let pe=(fe>>>=0)-(Z>>>=0),Me=(V>>>=0)-(x>>>=0);const tt=Math.min(pe,Me),Qe=this.slice(Z,fe),P=w.slice(x,V);for(let E=0;E<tt;++E)if(Qe[E]!==P[E]){pe=Qe[E],Me=P[E];break}return pe<Me?-1:Me<pe?1:0},l.prototype.includes=function(w,x,V){return this.indexOf(w,x,V)!==-1},l.prototype.indexOf=function(w,x,V){return Q(this,w,x,V,!0)},l.prototype.lastIndexOf=function(w,x,V){return Q(this,w,x,V,!1)},l.prototype.write=function(w,x,V,Z){if(x===void 0)Z="utf8",V=this.length,x=0;else if(V===void 0&&typeof x=="string")Z=x,V=this.length,x=0;else{if(!isFinite(x))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");x>>>=0,isFinite(V)?(V>>>=0,Z===void 0&&(Z="utf8")):(Z=V,V=void 0)}const fe=this.length-x;if((V===void 0||V>fe)&&(V=fe),w.length>0&&(V<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");Z||(Z="utf8");let pe=!1;for(;;)switch(Z){case"hex":return se(this,w,x,V);case"utf8":case"utf-8":return ue(this,w,x,V);case"ascii":case"latin1":case"binary":return oe(this,w,x,V);case"base64":return Ee(this,w,x,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,w,x,V);default:if(pe)throw new TypeError("Unknown encoding: "+Z);Z=(""+Z).toLowerCase(),pe=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const de=4096;function ge(w,x,V){let Z="";V=Math.min(w.length,V);for(let fe=x;fe<V;++fe)Z+=String.fromCharCode(127&w[fe]);return Z}function k(w,x,V){let Z="";V=Math.min(w.length,V);for(let fe=x;fe<V;++fe)Z+=String.fromCharCode(w[fe]);return Z}function f(w,x,V){const Z=w.length;(!x||x<0)&&(x=0),(!V||V<0||V>Z)&&(V=Z);let fe="";for(let pe=x;pe<V;++pe)fe+=Rt[w[pe]];return fe}function R(w,x,V){const Z=w.slice(x,V);let fe="";for(let pe=0;pe<Z.length-1;pe+=2)fe+=String.fromCharCode(Z[pe]+256*Z[pe+1]);return fe}function M(w,x,V){if(w%1!=0||w<0)throw new RangeError("offset is not uint");if(w+x>V)throw new RangeError("Trying to access beyond buffer length")}function $(w,x,V,Z,fe,pe){if(!l.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>fe||x<pe)throw new RangeError('"value" argument is out of bounds');if(V+Z>w.length)throw new RangeError("Index out of range")}function Y(w,x,V,Z,fe){me(x,Z,fe,w,V,7);let pe=Number(x&BigInt(4294967295));w[V++]=pe,pe>>=8,w[V++]=pe,pe>>=8,w[V++]=pe,pe>>=8,w[V++]=pe;let Me=Number(x>>BigInt(32)&BigInt(4294967295));return w[V++]=Me,Me>>=8,w[V++]=Me,Me>>=8,w[V++]=Me,Me>>=8,w[V++]=Me,V}function te(w,x,V,Z,fe){me(x,Z,fe,w,V,7);let pe=Number(x&BigInt(4294967295));w[V+7]=pe,pe>>=8,w[V+6]=pe,pe>>=8,w[V+5]=pe,pe>>=8,w[V+4]=pe;let Me=Number(x>>BigInt(32)&BigInt(4294967295));return w[V+3]=Me,Me>>=8,w[V+2]=Me,Me>>=8,w[V+1]=Me,Me>>=8,w[V]=Me,V+8}function ae(w,x,V,Z,fe,pe){if(V+Z>w.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function K(w,x,V,Z,fe){return x=+x,V>>>=0,fe||ae(w,0,V,4),c.write(w,x,V,Z,23,4),V+4}function g(w,x,V,Z,fe){return x=+x,V>>>=0,fe||ae(w,0,V,8),c.write(w,x,V,Z,52,8),V+8}l.prototype.slice=function(w,x){const V=this.length;(w=~~w)<0?(w+=V)<0&&(w=0):w>V&&(w=V),(x=x===void 0?V:~~x)<0?(x+=V)<0&&(x=0):x>V&&(x=V),x<w&&(x=w);const Z=this.subarray(w,x);return Object.setPrototypeOf(Z,l.prototype),Z},l.prototype.readUintLE=l.prototype.readUIntLE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let Z=this[w],fe=1,pe=0;for(;++pe<x&&(fe*=256);)Z+=this[w+pe]*fe;return Z},l.prototype.readUintBE=l.prototype.readUIntBE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let Z=this[w+--x],fe=1;for(;x>0&&(fe*=256);)Z+=this[w+--x]*fe;return Z},l.prototype.readUint8=l.prototype.readUInt8=function(w,x){return w>>>=0,x||M(w,1,this.length),this[w]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(w,x){return w>>>=0,x||M(w,2,this.length),this[w]|this[w+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(w,x){return w>>>=0,x||M(w,2,this.length),this[w]<<8|this[w+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(w,x){return w>>>=0,x||M(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(w,x){return w>>>=0,x||M(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},l.prototype.readBigUInt64LE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const Z=x+256*this[++w]+65536*this[++w]+this[++w]*2**24,fe=this[++w]+256*this[++w]+65536*this[++w]+V*2**24;return BigInt(Z)+(BigInt(fe)<<BigInt(32))})),l.prototype.readBigUInt64BE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const Z=x*2**24+65536*this[++w]+256*this[++w]+this[++w],fe=this[++w]*2**24+65536*this[++w]+256*this[++w]+V;return(BigInt(Z)<<BigInt(32))+BigInt(fe)})),l.prototype.readIntLE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let Z=this[w],fe=1,pe=0;for(;++pe<x&&(fe*=256);)Z+=this[w+pe]*fe;return fe*=128,Z>=fe&&(Z-=Math.pow(2,8*x)),Z},l.prototype.readIntBE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let Z=x,fe=1,pe=this[w+--Z];for(;Z>0&&(fe*=256);)pe+=this[w+--Z]*fe;return fe*=128,pe>=fe&&(pe-=Math.pow(2,8*x)),pe},l.prototype.readInt8=function(w,x){return w>>>=0,x||M(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},l.prototype.readInt16LE=function(w,x){w>>>=0,x||M(w,2,this.length);const V=this[w]|this[w+1]<<8;return 32768&V?4294901760|V:V},l.prototype.readInt16BE=function(w,x){w>>>=0,x||M(w,2,this.length);const V=this[w+1]|this[w]<<8;return 32768&V?4294901760|V:V},l.prototype.readInt32LE=function(w,x){return w>>>=0,x||M(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},l.prototype.readInt32BE=function(w,x){return w>>>=0,x||M(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},l.prototype.readBigInt64LE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const Z=this[w+4]+256*this[w+5]+65536*this[w+6]+(V<<24);return(BigInt(Z)<<BigInt(32))+BigInt(x+256*this[++w]+65536*this[++w]+this[++w]*2**24)})),l.prototype.readBigInt64BE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const Z=(x<<24)+65536*this[++w]+256*this[++w]+this[++w];return(BigInt(Z)<<BigInt(32))+BigInt(this[++w]*2**24+65536*this[++w]+256*this[++w]+V)})),l.prototype.readFloatLE=function(w,x){return w>>>=0,x||M(w,4,this.length),c.read(this,w,!0,23,4)},l.prototype.readFloatBE=function(w,x){return w>>>=0,x||M(w,4,this.length),c.read(this,w,!1,23,4)},l.prototype.readDoubleLE=function(w,x){return w>>>=0,x||M(w,8,this.length),c.read(this,w,!0,52,8)},l.prototype.readDoubleBE=function(w,x){return w>>>=0,x||M(w,8,this.length),c.read(this,w,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(w,x,V,Z){w=+w,x>>>=0,V>>>=0,Z||$(this,w,x,V,Math.pow(2,8*V)-1,0);let fe=1,pe=0;for(this[x]=255&w;++pe<V&&(fe*=256);)this[x+pe]=w/fe&255;return x+V},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(w,x,V,Z){w=+w,x>>>=0,V>>>=0,Z||$(this,w,x,V,Math.pow(2,8*V)-1,0);let fe=V-1,pe=1;for(this[x+fe]=255&w;--fe>=0&&(pe*=256);)this[x+fe]=w/pe&255;return x+V},l.prototype.writeUint8=l.prototype.writeUInt8=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,1,255,0),this[x]=255&w,x+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,65535,0),this[x]=255&w,this[x+1]=w>>>8,x+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,65535,0),this[x]=w>>>8,this[x+1]=255&w,x+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,4294967295,0),this[x+3]=w>>>24,this[x+2]=w>>>16,this[x+1]=w>>>8,this[x]=255&w,x+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,4294967295,0),this[x]=w>>>24,this[x+1]=w>>>16,this[x+2]=w>>>8,this[x+3]=255&w,x+4},l.prototype.writeBigUInt64LE=Pt((function(w,x=0){return Y(this,w,x,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Pt((function(w,x=0){return te(this,w,x,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(w,x,V,Z){if(w=+w,x>>>=0,!Z){const tt=Math.pow(2,8*V-1);$(this,w,x,V,tt-1,-tt)}let fe=0,pe=1,Me=0;for(this[x]=255&w;++fe<V&&(pe*=256);)w<0&&Me===0&&this[x+fe-1]!==0&&(Me=1),this[x+fe]=(w/pe|0)-Me&255;return x+V},l.prototype.writeIntBE=function(w,x,V,Z){if(w=+w,x>>>=0,!Z){const tt=Math.pow(2,8*V-1);$(this,w,x,V,tt-1,-tt)}let fe=V-1,pe=1,Me=0;for(this[x+fe]=255&w;--fe>=0&&(pe*=256);)w<0&&Me===0&&this[x+fe+1]!==0&&(Me=1),this[x+fe]=(w/pe|0)-Me&255;return x+V},l.prototype.writeInt8=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,1,127,-128),w<0&&(w=255+w+1),this[x]=255&w,x+1},l.prototype.writeInt16LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,32767,-32768),this[x]=255&w,this[x+1]=w>>>8,x+2},l.prototype.writeInt16BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,32767,-32768),this[x]=w>>>8,this[x+1]=255&w,x+2},l.prototype.writeInt32LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,2147483647,-2147483648),this[x]=255&w,this[x+1]=w>>>8,this[x+2]=w>>>16,this[x+3]=w>>>24,x+4},l.prototype.writeInt32BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[x]=w>>>24,this[x+1]=w>>>16,this[x+2]=w>>>8,this[x+3]=255&w,x+4},l.prototype.writeBigInt64LE=Pt((function(w,x=0){return Y(this,w,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Pt((function(w,x=0){return te(this,w,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(w,x,V){return K(this,w,x,!0,V)},l.prototype.writeFloatBE=function(w,x,V){return K(this,w,x,!1,V)},l.prototype.writeDoubleLE=function(w,x,V){return g(this,w,x,!0,V)},l.prototype.writeDoubleBE=function(w,x,V){return g(this,w,x,!1,V)},l.prototype.copy=function(w,x,V,Z){if(!l.isBuffer(w))throw new TypeError("argument should be a Buffer");if(V||(V=0),Z||Z===0||(Z=this.length),x>=w.length&&(x=w.length),x||(x=0),Z>0&&Z<V&&(Z=V),Z===V||w.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("sourceEnd out of bounds");Z>this.length&&(Z=this.length),w.length-x<Z-V&&(Z=w.length-x+V);const fe=Z-V;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(x,V,Z):Uint8Array.prototype.set.call(w,this.subarray(V,Z),x),fe},l.prototype.fill=function(w,x,V,Z){if(typeof w=="string"){if(typeof x=="string"?(Z=x,x=0,V=this.length):typeof V=="string"&&(Z=V,V=this.length),Z!==void 0&&typeof Z!="string")throw new TypeError("encoding must be a string");if(typeof Z=="string"&&!l.isEncoding(Z))throw new TypeError("Unknown encoding: "+Z);if(w.length===1){const pe=w.charCodeAt(0);(Z==="utf8"&&pe<128||Z==="latin1")&&(w=pe)}}else typeof w=="number"?w&=255:typeof w=="boolean"&&(w=Number(w));if(x<0||this.length<x||this.length<V)throw new RangeError("Out of range index");if(V<=x)return this;let fe;if(x>>>=0,V=V===void 0?this.length:V>>>0,w||(w=0),typeof w=="number")for(fe=x;fe<V;++fe)this[fe]=w;else{const pe=l.isBuffer(w)?w:l.from(w,Z),Me=pe.length;if(Me===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(fe=0;fe<V-x;++fe)this[fe+x]=pe[fe%Me]}return this};const _={};function H(w,x,V){_[w]=class extends V{constructor(){super(),Object.defineProperty(this,"message",{value:x.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${w}]`,this.stack,delete this.name}get code(){return w}set code(Z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Z,writable:!0})}toString(){return`${this.name} [${w}]: ${this.message}`}}}function J(w){let x="",V=w.length;const Z=w[0]==="-"?1:0;for(;V>=Z+4;V-=3)x=`_${w.slice(V-3,V)}${x}`;return`${w.slice(0,V)}${x}`}function me(w,x,V,Z,fe,pe){if(w>V||w<x){const Me=typeof x=="bigint"?"n":"";let tt;throw tt=x===0||x===BigInt(0)?`>= 0${Me} and < 2${Me} ** ${8*(pe+1)}${Me}`:`>= -(2${Me} ** ${8*(pe+1)-1}${Me}) and < 2 ** ${8*(pe+1)-1}${Me}`,new _.ERR_OUT_OF_RANGE("value",tt,w)}(function(Me,tt,Qe){ye(tt,"offset"),Me[tt]!==void 0&&Me[tt+Qe]!==void 0||Ue(tt,Me.length-(Qe+1))})(Z,fe,pe)}function ye(w,x){if(typeof w!="number")throw new _.ERR_INVALID_ARG_TYPE(x,"number",w)}function Ue(w,x,V){throw Math.floor(w)!==w?(ye(w,V),new _.ERR_OUT_OF_RANGE("offset","an integer",w)):x<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${x}`,w)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(w){return w?`${w} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(w,x){return`The "${w}" argument must be of type number. Received type ${typeof x}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(w,x,V){let Z=`The value of "${w}" is out of range.`,fe=V;return Number.isInteger(V)&&Math.abs(V)>2**32?fe=J(String(V)):typeof V=="bigint"&&(fe=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(fe=J(fe)),fe+="n"),Z+=` It must be ${x}. Received ${fe}`,Z}),RangeError);const Ke=/[^+/0-9A-Za-z-_]/g;function st(w,x){let V;x=x||1/0;const Z=w.length;let fe=null;const pe=[];for(let Me=0;Me<Z;++Me){if(V=w.charCodeAt(Me),V>55295&&V<57344){if(!fe){if(V>56319){(x-=3)>-1&&pe.push(239,191,189);continue}if(Me+1===Z){(x-=3)>-1&&pe.push(239,191,189);continue}fe=V;continue}if(V<56320){(x-=3)>-1&&pe.push(239,191,189),fe=V;continue}V=65536+(fe-55296<<10|V-56320)}else fe&&(x-=3)>-1&&pe.push(239,191,189);if(fe=null,V<128){if((x-=1)<0)break;pe.push(V)}else if(V<2048){if((x-=2)<0)break;pe.push(V>>6|192,63&V|128)}else if(V<65536){if((x-=3)<0)break;pe.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((x-=4)<0)break;pe.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return pe}function at(w){return r.toByteArray((function(x){if((x=(x=x.split("=")[0]).trim().replace(Ke,"")).length<2)return"";for(;x.length%4!=0;)x+="=";return x})(w))}function ut(w,x,V,Z){let fe;for(fe=0;fe<Z&&!(fe+V>=x.length||fe>=w.length);++fe)x[fe+V]=w[fe];return fe}function _t(w,x){return w instanceof x||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===x.name}function pt(w){return w!=w}const Rt=(function(){const w="0123456789abcdef",x=new Array(256);for(let V=0;V<16;++V){const Z=16*V;for(let fe=0;fe<16;++fe)x[Z+fe]=w[V]+w[fe]}return x})();function Pt(w){return typeof BigInt>"u"?vt:w}function vt(){throw new Error("BigInt not supported")}},527:function(e,t,n){var r=n(188),c=n(539),i=n(682);for(var d in r)r[d]=i(v(d));function v(l){return r[l]}r._api=c,e.exports=r},539:function(e){e.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(e){e.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(e,t,n){var r=n(539),c={};function i(l){try{return v(l),!0}catch{return!1}}function d(l){try{return v(l)}catch{return!1}}function v(l){return new Function(l)()}c._api=r,e.exports=function l(y){if(y==="class"&&(y="classes"),c._api[y].dependencies){for(var A=0;A<c._api[y].dependencies.length;A++)if(l(c._api[y].dependencies[A])===!1)return!1}return c._api[y].passes?i(c._api[y].passes):c._api[y].fails?!i(c._api[y].fails):c._api[y].is?d(c._api[y].is):c._api[y].not?!d(c._api[y].not):void 0}},251:function(e,t){t.read=function(n,r,c,i,d){var v,l,y=8*d-i-1,A=(1<<y)-1,O=A>>1,S=-7,I=c?d-1:0,B=c?-1:1,C=n[r+I];for(I+=B,v=C&(1<<-S)-1,C>>=-S,S+=y;S>0;v=256*v+n[r+I],I+=B,S-=8);for(l=v&(1<<-S)-1,v>>=-S,S+=i;S>0;l=256*l+n[r+I],I+=B,S-=8);if(v===0)v=1-O;else{if(v===A)return l?NaN:1/0*(C?-1:1);l+=Math.pow(2,i),v-=O}return(C?-1:1)*l*Math.pow(2,v-i)},t.write=function(n,r,c,i,d,v){var l,y,A,O=8*v-d-1,S=(1<<O)-1,I=S>>1,B=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:v-1,F=i?1:-1,j=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(y=isNaN(r)?1:0,l=S):(l=Math.floor(Math.log(r)/Math.LN2),r*(A=Math.pow(2,-l))<1&&(l--,A*=2),(r+=l+I>=1?B/A:B*Math.pow(2,1-I))*A>=2&&(l++,A/=2),l+I>=S?(y=0,l=S):l+I>=1?(y=(r*A-1)*Math.pow(2,d),l+=I):(y=r*Math.pow(2,I-1)*Math.pow(2,d),l=0));d>=8;n[c+C]=255&y,C+=F,y/=256,d-=8);for(l=l<<d|y,O+=d;O>0;n[c+C]=255&l,C+=F,l/=256,O-=8);n[c+C-F]|=128*j}},943:function(e){function t(n){this.message=n}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(n){var r=String(n).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,i,d=0,v=0,l="";i=r.charAt(v++);~i&&(c=d%4?64*c+i:i,d++%4)?l+=String.fromCharCode(255&c>>(-2*d&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return l}},863:function(e,t,n){var r=n(943);e.exports=function(c){var i=c.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return(function(d){return decodeURIComponent(r(d).replace(/(.)/g,(function(v,l){var y=l.charCodeAt(0).toString(16).toUpperCase();return y.length<2&&(y="0"+y),"%"+y})))})(i)}catch{return r(i)}}},127:function(e,t,n){var r=n(863);function c(i){this.message=i}c.prototype=new Error,c.prototype.name="InvalidTokenError",e.exports=function(i,d){if(typeof i!="string")throw new c("Invalid token specified");var v=(d=d||{}).header===!0?0:1;try{return JSON.parse(r(i.split(".")[v]))}catch(l){throw new c("Invalid token specified: "+l.message)}},e.exports.InvalidTokenError=c},471:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(r,c){var i=c||0,d=t;return[d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]]].join("")}},814:function(e){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var c,i=0;i<16;i++)3&i||(c=4294967296*Math.random()),r[i]=c>>>((3&i)<<3)&255;return r}}},550:function(e,t,n){var r=n(814),c=n(471);e.exports=function(i,d,v){var l=d&&v||0;typeof i=="string"&&(d=i==="binary"?new Array(16):null,i=null);var y=(i=i||{}).random||(i.rng||r)();if(y[6]=15&y[6]|64,y[8]=63&y[8]|128,d)for(var A=0;A<16;++A)d[l+A]=y[A];return d||c(y)}},723:function(e){e.exports={version:"1.1.100",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(e,t,n){var r=n(287).hp;e.exports={toArray:function(c,i){if(!c||c.length!==36)return c;for(var d="",v=i?"0":"1",l=0;l<36;l+=1)d+=l>=26&&l<30?v:c[l];var y=(function(S){for(var I=255,B=255,C=0,F=S.length;F;){var j=F>20?20:F;F-=j;do B+=I+=S[C++];while(--j);I=(255&I)+(I>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(I=(255&I)+(I>>8))).toString(16)})(r.from(d));if(y){var A="";if(y.length===4)A+=y;else if(y.length<4){for(var O=0;O<4-y.length;O+=1)A+=v;A+=y}else A+=y.slice(-4)}return d.substring(0,26)+A+d.substring(26+A.length)}}},108:function(e){function t(){this.listeners={}}t.prototype.addEventListener=function(n,r){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(r)},t.prototype.removeEventListener=function(n,r){if(n in this.listeners){for(var c=this.listeners[n],i=0,d=c.length;i<d;i++)if(c[i]===r)return void c.splice(i,1)}},t.prototype.dispatchEvent=function(n){if(!(n.type in this.listeners))return!0;for(var r=this.listeners[n.type].slice(),c=0,i=r.length;c<i;c++)r[c].call(this,n);return!n.defaultPrevented},e.exports=t},1:function(e){var t=null,n=null,r=0;function c(i,d){return encodeURIComponent(i)+"="+encodeURIComponent(d)}e.exports={init:function(i,d){t=i.errorServerUrl+"/reportSdkMsg",n=d.appId,r=typeof d.logMessageRate=="number"?d.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>r)){var d=t;d+="?"+c("appId",n),d+="&"+c("msg",JSON.stringify(i));var v=new Image;v.onerror=function(){},v.src=d}}}},611:function(e){var t=(function(){function n(c,i){this.method=c,this.url=i,this.headers={},this.data=null,this.timeout=1e4}n.prototype.set=function(c,i){if(typeof c=="object")for(var d in c)c.hasOwnProperty(d)&&(this.headers[d]=c[d]);else this.headers[c]=i;return this},n.prototype.send=function(c){return this.data=c,this},n.prototype.timeout=function(c){return this.timeout=c,this},n.prototype.end=function(c){var i=this,d={method:this.method,headers:this.headers};function v(S,I){return{ok:!1,status:I?I.status:400,response:S instanceof Error?S.message:S}}if(this.data&&(d.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,y=fetch(this.url,d).then((function(S){if(!S.ok)throw{response:S,message:S.statusText||"HTTP error "+S.status};return(function(I){var B=I.headers.get("content-type");return B&&B.includes("application/json")?I.json().then((function(C){return{ok:I.ok,status:I.status,body:C}})):I.text().then((function(C){return{ok:I.ok,status:I.status,body:C}}))})(S)}));y.catch((function(){}));var A=new Promise((function(S,I){l=setTimeout((function(){I(new Error("Request timeout"))}),i.timeout)}));Promise.race([y,A]).then((function(S){clearTimeout(l),S.ok?c(null,S):c(v(S.response,S))})).catch((function(S){clearTimeout(l),c(v(S.message,S&&S.response))}))}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(S){O.setRequestHeader(S,i.headers[S])})),O.timeout=this.timeout,O.onload=function(){var S={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{S.body=JSON.parse(O.responseText)}catch{}S.ok?c(null,S):c(v("HTTP error "+O.status,S))},O.onerror=function(){c(v("Error",{status:400}))},O.ontimeout=function(){c(v("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var r={};return["get","post","put","delete"].forEach((function(c){r[c]=function(i){return new n(c,i)}})),r})();e.exports=t},776:function(e,t,n){var r,c,i=n(611),d=n(723),v=n(884),l=d.serverUrl;function y(){r=r||{},c!==void 0&&(r[d.headers.sessionId]=c);var A={Accept:"application/json","Content-Type":"application/json"};return Object.keys(r).forEach((function(O){r[O]!==void 0&&(A[O]=r[O])})),A}e.exports={setSessionId:function(A){c=A},makeRequest:function(A,O){var S=A.path,I=A.data,B=A.method;(function C(F){i[B](F+"/"+S).set(y()).send(I).end((function(j,Q){if(j){if(F!==d.serverUrl)return void C(d.serverUrl);v.isFunction(O)&&O({ok:!1,status:j.status,response:j.response})}else v.isFunction(O)&&O(null,{ok:Q.ok,status:Q.status,response:Q.body})}))})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:y,init:function(A,O){(function(S){r=S})(A),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(l=v.normalizePath(O.eventsReportUrl))}}},13:function(e,t,n){var r,c=n(723),i="getItem";function d(l,y){l&&l.contentWindow.postMessage(y,"*")}function v(l,y,A){l.removeEventListener?l.removeEventListener(y,A,!1):l.attachEvent&&l.detachEvent("on"+y,A)}e.exports={init:function(l){var y,A=(y=!1,function(){y||(y=!0,l())});(r=document.createElement("iframe")).id="storageIframe",r.width=r.height=r.frameBorder=0,r.style.display="none",r.setAttribute("src",c.storageIframeUrl),r.onload=A,r.onerror=A,document.body.appendChild(r),window.setTimeout(A,1e4)},getKey:function(l,y){var A,O,S,I,B,C;r||y(),A=window,O="message",I=function F(j){if(j.data&&typeof j.data=="string")try{var Q=JSON.parse(j.data);if(Q.command===i){var W=Q.response;v(window,"message",F),y(W)}}catch{v(window,"message",F),y()}},B=y,C=!1,window.setTimeout((function(){C||(C=!0,B())}),5e3),S=function(F){C||(C=!0,I(F))},A.addEventListener?A.addEventListener(O,S,!1):A.attachEvent&&A.attachEvent("on"+O,S),d(r,JSON.stringify({command:i,key:l}))},setKey:function(l,y){d(r,JSON.stringify({command:"setItem",key:l,value:y}))},cleanup:function(){r&&r.parentElement&&r.parentElement.removeChild&&(r.parentElement.removeChild(r),r=null)}}},528:function(e){var t,n={setItem:function(l,y){this[l]=y},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function r(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function c(){return t===void 0&&(t=r()),t?localStorage:n}function i(l,y){c().setItem(l,y)}function d(l){return c().getItem(l)}function v(l){return c().removeItem(l)}e.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:d,getBackwardCompatabilityItem:function(l,y){var A=d(l);return!A&&y&&(A=d(y))&&(i(l,A),v(y)),A},removeItem:v,hasAccessToLocalStorage:r,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return n.getItem(l)}},setSessionItem:function(l,y){try{return sessionStorage.setItem(l,y)}catch{return n.setItem(l,y)}}}},884:function(e){var t="nsure-app-cid";function n(r){var c=r;return c&&c.charAt(c.length-1)==="/"&&(c=c.slice(0,-1)),c&&!/^https?:\/\//i.test(c)&&(c="https://"+c),c}e.exports={isFunction:function(r){return typeof r=="function"},loadScript:function(r,c){var i=!1,d=document.createElement("script");function v(){i||(i=!0,c())}d.onload=v,d.onreadystatechange=function(){i||d.readyState!=="complete"||v()},d.onerror=function(){i||(i=!0,c("Error loading script"))},d.src=r,document.body.appendChild(d)},loadImage:function(r){var c=document.createElement("img");c.src=r,c.style.height=0,c.style.width=0,c.style.display="none",c.style.visibility="hidden",document.body.appendChild(c)},randomInt:function(r,c){var i,d=c-r+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*d+r)},isValidDate:function(r){return r instanceof Date&&!isNaN(r)},getAppContextId:function(){try{var r=sessionStorage.getItem(t);r?sessionStorage.removeItem(t):r=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(c=r,function(){try{sessionStorage.setItem(t,c)}catch{}}))}catch{r=0}var c;return r},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:n,getConfigBaseUrls:function(r,c){var i=null;if(typeof r.configBaseUrl=="string"&&r.configBaseUrl.length>0){var d=c.coreConfigFileUrl.indexOf("/core-config/"),v=d>0?c.coreConfigFileUrl.substring(d):"/core-config/config.json";i=n(r.configBaseUrl)+v}var l=i||c.coreConfigFileUrl;return{mainConfigBaseUrl:l,altConfigBaseUrl:l===c.coreConfigFileUrl?null:c.coreConfigFileUrl}}}},543:function(e){var t="f8ad0f9b-",n="ns_install_reported",r=t+n,c=t+"ns_reportedFpInSession";e.exports={webType:"Web",oldInstallEventReportedKeyName:n,installEventReportedKeyName:r,fingerprintReportedInSessionKey:c,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(e){e.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy",SM:"sm",FC:"fc"}},298:function(e){e.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(e,t,n){var r=n(723),c=n(776),i=n(387),d=n(733),v=n(472),l=n(376),y=n(120),A=n(142),O=n(636),S=n(496),I=n(1),B=n(336);e.exports={init:function(C){var F=C.deviceId,j=C.linkedDevices,Q={};Q[r.headers.appId]=C.appId,Q[r.headers.partnerId]=C.partnerId,Q[r.headers.sdkClientVersion]=r.version,Q[r.headers.sdkApiVersion]=r.sdkApiVersion,Q[r.headers.sdkClientType]=r.sdkClientType,Q[r.headers.appContextId]=C.appContextId,c.init(Q,C),i.addMetadataProps(C),I.init(r,C),i.reportInitEvent(F),S.init(C),B.init(C),d.installSdk(C,(function(W){W||l.manageFingerprint(F,!0)})),d.reportLinkDevices(F,j),v.manageSessionId({deviceId:F,initModuleConfig:C}),y.manageDomEvents(F),A.manageKeepAlive({deviceId:F}),O.reportVersionUpgrade({deviceId:F,initModuleVersion:C.clientVersion,coreModuleVersion:r.version})}}},143:function(e,t,n){var r=n(108),c=n(23).oneMinute,i=n(298);function d(){r.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function v(l){r.call(this),this.activityServiceId=l}d.prototype=Object.create(r.prototype),d.prototype.constructor=d,d.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach((function(y){document.addEventListener(y,l.activityEvents[y]=function(){l.activityHandler()})}))},d.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},d.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach((function(y){document.removeEventListener(y,l.activityEvents[y])}))},v.prototype=Object.create(r.prototype),v.prototype.constructor=v,v.prototype.trackInactivity=function(l){var y,A=new d,O=this,S=!1;function I(){S||(clearTimeout(y),setTimeout((function(){O.trackInactivity(l)}),c))}A.addEventListener(i.activityEvent,I),A.observe(),y=setTimeout((function(){S=!0,A.stopActivityListeners(),A.removeEventListener(i.activityEvent,I),O.dispatchEvent(new Event(i.inactivityEvent))}),l)},e.exports=v},496:function(e,t,n){var r,c=n(120),i=n(776),d=n(376),v=n(23),l=n(723),y=n(38),A=n(543),O=n(336),S=n(884),I=n(198),B=n(292),C=[],F=[],j=null,Q=6e4,W=5e3,se=null,ue=S.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),oe=0,Ee=null,Re=Date.now(),ne=0,ie=null,de=!1,ge=!1,k=!1,f=!1,R=[];function M(){F=C,C=[],te(),$()}function $(){j&&clearTimeout(j),j=setTimeout(M,Q)}function Y(){var ye={device:{id:r,type:A.webType},metadata:{clientRequestId:v.getClientRequestId()}};return se&&se.fingerprintHash&&(ye.device.fingerprint=se.fingerprintHash),ye}function te(ye){if(F.length)if(se!==null){var Ue=Object.assign(Y(),{events:F});i.makeRequest({path:"bulk",data:Ue,method:i.methods.post},ye)}else d.getFingerprint((function(Ke){se=Ke,te(ye)}))}function ae(ye,Ue){return C.push(ye),Ue?new Blob([JSON.stringify(C)]).size:0}function K(){if(k){var ye=Date.now();ye-Re>W&&(ae({i:{dr:ye-Re,ac:ye-Re-ne},metadata:{type:y.I,timestamp:ye}},!1),ne=0)}}function g(){$(),F=C,C=[],te()}function _(ye){var Ue=ye.eventType===y.C||ye.eventType===y.S||ye.eventType===y.KD||ye.eventType===y.MM;Ue&&(K(),(function(){if(f&&Math.random()<.25){for(var Ke=[],st=0;st<3;st++)Ke.push(String.fromCharCode(Math.floor(26*Math.random())+97));var at=y.DY+Ke[0],ut={metadata:{type:at,timestamp:Date.now()}};ut[at]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},ut[at][Ke.join("")]=Math.floor(1e3*Math.random())+1,ae(ut,!1)}})()),(function(Ke){O.triggerEventOnEvent(Ke)})(ye),ae(Object.assign({metadata:{type:ye.eventType,timestamp:Date.now()}},ye.payload),!0)>32768&&g(),Ue&&(Re=Date.now())}function H(){de&&g()}function J(ye){return window.addEventListener(ye,H,!0),function(){window.removeEventListener(ye,H,!0)}}function me(ye,Ue){return!ye||ye.indexOf(Ue)>-1}e.exports={init:function(ye){if(!de){var Ue=ye.bulkEvents&&ye.bulkEvents.mask;if(!Array.isArray(Ue)||Ue.length!==0){var Ke=ye.bulkEvents&&typeof ye.bulkEvents.pct=="number"?ye.bulkEvents.pct:100;if(!(Ke===0||Math.random()>Ke/100)){var st=ye.bulkEvents&&ye.bulkEvents.appMaskInclude;if(!Array.isArray(st)||st.indexOf(ye.appId)!==-1){var at=ye.bulkEvents&&ye.bulkEvents.appMaskExclude;if(!Array.isArray(at)||at.indexOf(ye.appId)===-1){var ut=me(Ue,y.C),_t=me(Ue,y.KD),pt=me(Ue,y.S),Rt=me(Ue,y.PC),Pt=me(Ue,y.MM),vt=me(Ue,y.PL),w=me(Ue,y.I),x=me(Ue,y.DY),V=me(Ue,y.SM),Z=me(Ue,y.FC),fe=w||vt;r=ye.deviceId,$(),ut&&R.push(c.setClickListener(_)),_t&&R.push(c.setKeyDownListener(_)),pt&&R.push(c.setScrollListener(_)),Rt&&R.push(c.setPageChangeListener(_)),Pt&&R.push(c.setMouseMoveListener(_)),V&&R.push(I.init(_)),Z&&R.push(B.init(_)),ge=vt,k=w,f=x,fe&&R.push((function(){function pe(){if(document.hidden)Ee=Date.now(),ie=Ee;else if(Ee!==null){var Me=Date.now();oe+=Me-Ee,Ee=null,ne+=Me-ie}}return document.addEventListener("visibilitychange",pe),function(){document.removeEventListener("visibilitychange",pe)}})()),R.push((function(){function pe(){if(K(),(function(){if(ge){var E=Date.now(),b=E-ue;ae({metadata:{type:y.PL,timestamp:E},pl:{dr:b,ac:b-oe}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(C.length>0)try{var Me=i.getRequestHeaders(),tt=Object.assign(Y(),{events:C}),Qe=new URLSearchParams;Qe.append("data",JSON.stringify(tt)),Qe.append("headers",JSON.stringify(Me));var P=new Blob([Qe.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",P)}catch{}}else F=C,te()}return window.addEventListener("beforeunload",pe),function(){window.removeEventListener("beforeunload",pe)}})()),de=!0,C=[],ut||R.push(J("click")),R.push(J("paste"))}}}}}},cleanup:function(){de&&(j&&clearTimeout(j),R.forEach((function(ye){ye()})),R=[],de=!1)},trigger:H}},120:function(e,t,n){var r=n(709),c=n(38),i=n(23);function d(){return"ontouchstart"in window}function v(l){var y={};if(l.nodeName){y.name=l.nodeName,l.className&&(y.className=String(l.className)),l.id&&(y.id=l.id);var A=l.getAttribute&&l.getAttribute("type");A&&(y.type=A),l.placeholder&&(y.placeholder=l.placeholder)}return y}e.exports={manageDomEvents:function(l){r.managePasteEvents(l)},getDomProperties:v,setClickListener:function(l){function y(O){var S={eventType:c.C,payload:{c:{d:v(O.target)}}},I=O.target.textContent||O.target.innerText||"";if(I){var B=i.transformDomNodeContent(I);S.payload[c.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(S)}var A=d()?"touchend":"click";return window.addEventListener(A,y,!0),function(){window.removeEventListener(A,y,!0)}},setKeyDownListener:function(l){function y(A){l({eventType:c.KD,payload:{kd:{d:v(A.target),k:A.key||A.code||"na"}}})}return window.addEventListener("keydown",y,!0),function(){window.removeEventListener("keydown",y,!0)}},setScrollListener:function(l){var y=null,A=0,O=0,S={x:0,y:0},I=0,B=0,C=0,F=0,j=0,Q=0;function W(ue){l({eventType:c.S,payload:{s:{d:v(ue.target),di:{x:S.x,y:S.y},t:B-I,sx:C,sy:F,ex:j,ey:Q}}}),A=0,O=0,S.x=0,S.y=0,y=null,I=0,B=0}function se(ue){var oe=ue.target.scrollingElement||ue.target;if(oe&&(oe===document&&(oe=document.documentElement),oe instanceof Element)){var Ee=oe.getBoundingClientRect(),Re=-Ee.left+oe.scrollLeft,ne=-Ee.top+oe.scrollTop;y?(clearTimeout(y),B=Date.now(),j=Re,Q=ne):(I=Date.now(),B=I,j=C=Re,Q=F=ne),(S.x||S.y||A||O)&&(S.x+=Math.abs(Re-A),S.y+=Math.abs(ne-O)),A=Re,O=ne,y=setTimeout(W.bind(null,ue),200)}}return window.addEventListener("scroll",se,!0),function(){y&&clearTimeout(y),window.removeEventListener("scroll",se,!0)}},setPageChangeListener:function(l){var y,A,O,S=null,I=null,B=0;function C(W){var se;if(window.URL){var ue=new URL(W,"http://example.com");se=ue.pathname+ue.hash}else se=W.indexOf("?")>-1?W.split("?")[0]:W.indexOf("#")>-1?W.split("#")[0]:W;if(se!==S){var oe=Date.now()-O;l({eventType:c.PC,payload:{pc:{f:S,t:se,dr:oe,ac:oe-B}}}),S=se,O=Date.now()}}function F(){if(document.hidden)I=Date.now();else if(I!==null){var W=Date.now();B+=W-I,I=null}}function j(W){C(W.newURL)}function Q(){C(window.location.href)}return window.history?(S=window.location.pathname||"/",y=history.pushState,A=history.replaceState,O=Date.now(),window.addEventListener("hashchange",j),window.addEventListener("popstate",Q),history.pushState=function(W,se,ue){return C(ue),y.apply(history,arguments)},history.replaceState=function(W,se,ue){return C(ue),A.apply(history,arguments)},document.addEventListener("visibilitychange",F),function(){history.pushState=y,history.replaceState=A,window.removeEventListener("hashchange",j),window.removeEventListener("popstate",Q),document.removeEventListener("visibilitychange",F),S=null,B=0}):function(){}},setMouseMoveListener:function(l){var y=[],A=!1,O=null,S=0,I={x:0,y:0};function B(){y.length!==0&&(l({eventType:c.MM,payload:{mm:{s:y.slice(),l:A,di:I}}}),y=[])}function C(j){var Q,W;j.touches&&j.touches.length>0?(Q=j.touches[0].clientX,W=j.touches[0].clientY):(Q=j.clientX,W=j.clientY),Q!==void 0&&W!==void 0&&(y.length>0&&(I.x+=Math.abs(Q-y[y.length-1][0]),I.y+=Math.abs(W-y[y.length-1][1])),y.push([Q,W]),y.length>1e3&&(A=!0,(S+=2)>=1e3&&(S=2),y.splice(S,1)),O&&clearTimeout(O),O=setTimeout(B,200))}var F=d()?"touchmove":"mousemove";return window.addEventListener(F,C,!0),function(){O&&clearTimeout(O),window.removeEventListener(F,C,!0)}}}},387:function(e,t,n){var r=n(776),c=n(23),i=n(287).hp,d=n(527),v=n(543),l=["storeInfo"],y={};function A(){var I={};for(var B in d)if(d.hasOwnProperty(B)){var C=B.charAt(0);C===C.toLowerCase()&&C!==C.toUpperCase()&&(I[B]=d[B])}return I}function O(I,B){var C=I.eventType,F=I.deviceId,j=I.fingerprintProVisitorId,Q=I.fingerprintProRequestId,W=I.fingerprintHash,se=(function(de){try{return i.from(JSON.stringify(de)).toString("base64")}catch{return}})(I.fingerprintComponents),ue=I.deviceExtendedInfo,oe=I.payload,Ee={metadata:{type:C},device:{id:F,fingerprint:W,rawFingerprint:se,type:v.webType}};j&&(Ee.device.visitorId=j),Q&&(Ee.device.fpRequestId=Q);var Re=Object.assign({},c.getClientMetadata(c.metadataType.payload),y);for(var ne in Re)Re.hasOwnProperty(ne)&&(Ee.metadata[ne]=Re[ne]);for(var ie in oe)oe.hasOwnProperty(ie)&&(Ee[ie]=oe[ie]);ue&&(Ee.device.extendedInfo=ue),r.makeRequest({path:"events",data:Ee,method:r.methods.post},B)}function S(I){var B=I.type,C=I.deviceId,F=I.fingerprintProVisitorId,j=I.fingerprintProRequestId,Q=I.fingerprintHash,W=I.fingerprintComponents,se=I.deviceExtendedInfo,ue=I.callback,oe={eventType:B,deviceId:C,fingerprintHash:Q,fingerprintComponents:W,deviceExtendedInfo:se};F&&(oe.fingerprintProVisitorId=F),j&&(oe.fingerprintProRequestId=j),O(oe,ue)}e.exports={addMetadataProps:function(I){for(var B=0;B<l.length;B+=1){var C=l[B];I.hasOwnProperty(C)&&(y[C]=I[C])}},reportEvent:O,reportAppInstallEvent:function(I,B,C,F,j,Q){S({type:"appInstall",deviceId:I,fingerprintProVisitorId:B,fingerprintProRequestId:C,fingerprintHash:F,fingerprintComponents:j,deviceExtendedInfo:A(),callback:Q})},reportFingerprintEvent:function(I,B,C,F){S({type:"fingerprint",deviceId:I,fingerprintHash:B,fingerprintComponents:C,fingerprintProRequestId:F})},reportInitEvent:function(I){S({type:"appInit",deviceId:I})}}},625:function(e,t,n){var r=n(269),c=n(1);e.exports={getFingerprint:function(i,d){if(r&&i)if(y=typeof navigator<"u"&&navigator.userAgent||"",/(iPhone|iPad|iPod)/.test(y)&&/CPU (iPhone )?OS 16_7/.test(y)&&/AppleWebKit/.test(y))c.send({msg:"FingerprintJS pro not loaded - legacy iOS device where loading it risks a browser crash",userAgent:typeof navigator<"u"&&navigator.userAgent||""}),typeof d=="function"&&d({});else try{r.load((l={apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",r.defaultEndpoint],remoteControlDetection:!0},typeof r.makeIdentificationModule=="function"&&typeof r.makeBotdModule=="function"&&(l.modules=[r.makeIdentificationModule(),r.makeBotdModule()]),l)).then((function(A){return A.get()})).then((function(A){typeof d=="function"&&d(A?{fingerprintVisitorId:A.visitorId,fingerprintRequestId:A.requestId}:{})})).catch((function(){typeof d=="function"&&d({})}))}catch(A){var v={msg:"FingerprintJS.load pro error",err:JSON.stringify(A)};c.send(v),typeof d=="function"&&d({})}else d({});var l,y}}},376:function(e,t,n){var r=n(75),c=n(528),i=n(387),d=n(1),v="ns_fp_hash";function l(A,O,S,I){i.reportFingerprintEvent(S,A,O,I)}function y(A){try{r.load({monitoring:!1}).then((function(S){S.get().then((function(I){A(I?{fingerprintHash:I.visitorId,fingerprintComponents:I.components}:{})})).catch((function(){typeof A=="function"&&A({})}))})).catch((function(){typeof A=="function"&&A({})}))}catch(S){var O={msg:"FingerprintJS.load error",err:JSON.stringify(S)};d.send(O),typeof A=="function"&&A({})}}e.exports={manageFingerprint:function(A,O,S){y((function(I){var B=I.fingerprintHash,C=I.fingerprintComponents;c.getItem(v)!==B&&(O&&l(B,C,A),c.setItem(v,B)),typeof S=="function"&&S({fingerprintHash:B,fingerprintComponents:C})}))},getFingerprint:y,reportFingerprintWithProInfo:function(A,O){y((function(S){l(S.fingerprintHash,S.fingerprintComponents,A,O)}))}}},292:function(e,t,n){var r=n(38),c="vc",i="bl",d="fo",v="ph",l="ps",y="fr",A="rs",O=null,S=!0,I=0,B=null,C=[],F=!1;function j(ge,k,f){if(O){var R={dir:ge,dr:k,src:f};O({eventType:r.FC,payload:{fc:R}})}}function Q(ge,k){if(ge!==S){var f=Date.now(),R=f-I;ge?(j("i",R,B||k),B=null):j("o",R,k),S=ge,I=f}}function W(){Q(!document.hidden,c)}function se(){Q(!1,i)}function ue(){Q(!0,d)}function oe(ge){ge&&ge.persisted&&Q(!1,v)}function Ee(ge){ge&&ge.persisted&&Q(!0,l)}function Re(){S||(B=y)}function ne(){Q(!0,A)}function ie(ge,k,f){ge.addEventListener(k,f),C.push((function(){ge.removeEventListener(k,f)}))}function de(){C.forEach((function(ge){ge()})),C=[],O=null,S=!0,I=0,B=null,F=!1}e.exports={init:function(ge){if(F)return de;if(typeof window>"u"||typeof document>"u")return function(){};O=ge,S=(function(){if(typeof document>"u")return!0;var f=!document.hidden,R=typeof document.hasFocus!="function"||document.hasFocus();return f&&R})(),I=Date.now(),B=null,F=!0;var k="ontouchstart"in window;return ie(document,"visibilitychange",W),ie(window,"pagehide",oe),ie(window,"pageshow",Ee),ie(document,"freeze",Re),ie(document,"resume",ne),k||(ie(window,"blur",se),ie(window,"focus",ue)),de},cleanup:de,getState:function(){return{isFocused:S,lastTransitionAt:I,pendingInSrc:B,isInitialized:F}}}},733:function(e,t,n){var r=n(528),c=n(376),i=n(625),d=n(387),v=n(142),l=n(1),y=n(543),A="linkDevices";function O(I,B,C){c.getFingerprint((function(F){var j=F.fingerprintHash,Q=F.fingerprintComponents;d.reportEvent({eventType:A,deviceId:I,fingerprintHash:j,fingerprintComponents:Q,payload:{linkedDevices:[B,C]}})}))}function S(I,B){if(B)for(var C=0,F=B.length;C<F;C+=1){var j=B[C];if(j&&j.length>1){var Q=j[0],W=j[1];Q&&W&&Q!==W&&O(I,Q,W)}}}e.exports={installSdk:function(I,B){var C=I.deviceId,F=I.loadFingerprintJsPro,j=(I.supressInstallBackwardCompatibility||[]).indexOf(I.appId)===-1,Q=(function(se,ue){var oe=ue?r.getBackwardCompatabilityItem(y.installEventReportedKeyName,y.oldInstallEventReportedKeyName):r.getItem(y.installEventReportedKeyName);return oe?(oe==="true"&&(r.setItem(y.installEventReportedKeyName,se),oe=se),se===oe?{isInstalled:!0,reportedDeviceId:se}:{isInstalled:!1,reportedDeviceId:oe}):{isInstalled:!1,reportedDeviceId:null}})(C,j);function W(se,ue,oe){if(oe>3)B&&B(!1);else{var Ee=ue.fingerprintHash,Re=ue.fingerprintComponents,ne=se.fingerprintVisitorId,ie=se.fingerprintRequestId;d.reportAppInstallEvent(C,ne,ie,Ee,Re,(function(de){if(de){var ge={msg:"Failed sending appInstall",err:JSON.stringify(de),deviceId:C,fingerprintHash:Ee,fingerprintRequestId:ie,numberOfRetry:oe};l.send(ge),W(se,ue,oe+1)}else r.setItem(y.installEventReportedKeyName,C),r.setItem("ns_irts",Date.now()),v.manageKeepAlive({deviceId:C,fingerprintInfo:ue,setStartTimestamp:!0}),B&&B(!0)}))}}Q.isInstalled?B&&B(!1):(Q.reportedDeviceId&&Q.reportedDeviceId!==C&&S(C,[[C,Q.reportedDeviceId]]),i.getFingerprint(F,(function(se){c.manageFingerprint(C,!1,(function(ue){W(se,ue,1)}))})))},reportLinkDevices:S}},142:function(e,t,n){var r=n(528),c=n(884),i=n(387),d=n(376),v="ns_ka_ts",l="ns_ka_step_",y=[10,30,40,60];function A(B){return l+B}function O(){var B=parseInt(r.getItem(v),10);return c.isValidDate(new Date(B))?B:null}function S(B,C){var F=(function(){var j=O();if(!j)return null;for(var Q,W=Math.floor((new Date().getTime()-j)/1e3),se=0;se<y.length;se+=1){var ue=y[se],oe=se<y.length-1?y[se+1]:null;if(W>=ue&&(!oe||W<oe)&&(Q=ue,!r.getItem(A(Q))))return{stepToReport:ue,timeToWaitInSeconds:0};if(W<ue)return{stepToReport:ue,timeToWaitInSeconds:ue-W}}return null})();F&&(F.timeToWaitInSeconds===0?((function(j,Q,W){var se=Q.fingerprintHash,ue=Q.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:j,fingerprintHash:se,fingerprintComponents:ue,payload:{keepAlive:{step:W}}}),r.setItem(A(W),!0)})(B,C,F.stepToReport),S(B,C)):F.timeToWaitInSeconds>0&&setTimeout((function(){S(B,C)}),1e3*F.timeToWaitInSeconds))}var I={manageKeepAlive:function(B){var C=B.deviceId,F=B.fingerprintInfo;B.setStartTimestamp&&!O()&&r.setItem(v,new Date().getTime()),F?S(C,F):d.getFingerprint((function(j){S(C,j)}))}};e.exports=I},709:function(e,t,n){var r=n(387),c=n(376),i=n(23);function d(A){return i.removeWhitespaces(A)}function v(A){var O=A?A.value||A.innerText:null;return{nodeContent:O,normalizedNodeContent:d(O)}}function l(A){var O=i.transformDomNodeContent(A),S=A||"";return O.onlyDigits=/^[0-9]+$/.test(S),O.containsWhitespace=/\s/.test(S),O.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(S),O}var y={managePasteEvents:function(A){document.addEventListener("paste",(function(O){var S=v(O.target),I=(function(B){try{if(B&&B.clipboardData&&typeof B.clipboardData.getData=="function")return B.clipboardData.getData("text/plain")||""}catch{}return""})(O);setTimeout((function(){(function(B){var C=B.deviceId,F=B.contentBeforePaste,j=F.nodeContent,Q=F.normalizedNodeContent,W=B.clipboardText||"",se=B.domNode,ue={paste:{domNode:{}}};if(se.nodeName){ue.paste.domNode.name=se.nodeName,se.className&&(ue.paste.domNode.className=se.className),se.id&&(ue.paste.domNode.id=se.id);var oe=se.getAttribute&&se.getAttribute("type");oe&&(ue.paste.domNode.type=oe),ue.paste.domNode.content={};var Ee=v(se),Re=Ee.nodeContent,ne=Ee.normalizedNodeContent;Re&&Re.length!==0||!W||(Re=W,ne=d(W)),ue.paste.domNode.content.beforePaste=l(j),ue.paste.domNode.content.afterPaste=l(Re),ue.paste.domNode.normalizedContent={},ue.paste.domNode.normalizedContent.beforePaste=l(Q),ue.paste.domNode.normalizedContent.afterPaste=l(ne),se.placeholder&&(ue.paste.domNode.placeholder=se.placeholder),ue.paste.url=window.location.href}c.getFingerprint((function(ie){var de=ie.fingerprintHash;r.reportEvent({eventType:"paste",deviceId:C,fingerprintHash:de,payload:ue})}))})({deviceId:A,contentBeforePaste:S,clipboardText:I,domNode:O.target})}),0)}))}};e.exports=y},472:function(e,t,n){var r=n(127),c=n(108),i=n(884),d=n(23),v=n(776),l=n(528),y=n(298).inactivityEvent,A=n(143),O=n(387),S=n(376),I="ns_sid";function B(){c.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function C(j){var Q=j.deviceId,W=j.initModuleConfig,se=j.jwtSessionId,ue=j.callback,oe=1e4;try{oe=r(se).inactivityTimeout}catch{oe=1e4}var Ee=new A(new Date().getTime());Ee.addEventListener(y,(function Re(){Ee.removeEventListener(y,Re),F({deviceId:Q,initModuleConfig:W,forceRenewSessionDueToInactivity:!0,callback:ue})})),Ee.trackInactivity(oe)}function F(j){var Q,W=j.deviceId,se=j.initModuleConfig,ue=!!j.forceRenewSessionDueToInactivity,oe=j.callback,Ee=l.getItem(I);try{Q=r(Ee),v.setSessionId(Ee)}catch{Q=null}ue||!Q||1e3*((Q||{}).exp||0)<new Date().getTime()?(function(Re,ne){var ie=Re.deviceId,de=(Re.initModuleConfig||{}).storeInfo,ge=new B;ge.addEventListener(ge.eventTypes.fetchComplete,(function k(f){ge.removeEventListener(ge.eventTypes.fetchComplete,k),ne(f.detail)})),ge.fetchSessionId(ie,de)})({deviceId:W,initModuleConfig:se},(function(Re){Ee=Re,l.setItem(I,Ee),v.setSessionId(Ee),(function(ne){try{var ie=ne.deviceId,de=r(ne.jwtSessionId).ets;if(!de)return;S.getFingerprint((function(ge){var k=ge.fingerprintHash,f=ge.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:ie,fingerprintHash:k,fingerprintComponents:f,payload:{ping:{ets:de}}})}))}catch{}})({deviceId:W,jwtSessionId:Ee}),C({deviceId:W,initModuleConfig:se,jwtSessionId:Ee,callback:oe}),i.isFunction(oe)&&oe(Ee)})):(C({deviceId:W,initModuleConfig:se,jwtSessionId:Ee,callback:oe}),i.isFunction(oe)&&oe(Ee))}B.prototype=Object.create(c.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(j,Q){var W=this,se="session?"+d.getClientMetadata(d.metadataType.queryString)+"&deviceId="+j;Q&&(Q.id&&(se+="&storeId="+Q.id),Q.type&&(se+="&storeType="+Q.type)),(function ue(){var oe;oe=function(Ee,Re){!Ee&&Re&&Re.ok?W.dispatchEvent(new CustomEvent(W.eventTypes.fetchComplete,{detail:Re.response})):setTimeout(ue,i.randomInt(4e4,6e4))},v.makeRequest({path:se,method:v.methods.get},oe)})()},e.exports={manageSessionId:F,setRetrySessionTimeout:function(j){throw new Error("Cannot call setRetrySessionTimeout!")}}},198:function(e,t,n){var r=n(38),c=["critical","serious"],i=null,d=null,v=null,l=0,y=!1,A={cpuPressure:null,fps:null};function O(){var I=Date.now();if((function(F){if(!v||F-l<5e3)return!1;var j=typeof A.fps=="number"&&A.fps<30,Q=A.cpuPressure&&c.indexOf(A.cpuPressure)!==-1;return!(!j&&!Q)})(I)){var B={};A.cpuPressure!==null&&(B.cp=A.cpuPressure),A.fps!==null&&(B.fp=A.fps);var C={eventType:r.SM,payload:{sm:B}};v(C),l=I}}function S(){if(i){try{i.disconnect()}catch{}i=null}if(d){var I=typeof window<"u"?window.cancelAnimationFrame:null;I&&I(d),d=null}v=null,l=0,y=!1,A.cpuPressure=null,A.fps=null}e.exports={init:function(I){return y?S:typeof window>"u"?function(){}:(v=I,y=!0,A.cpuPressure=null,A.fps=null,i=(function(){if(typeof window>"u"||window.PressureObserver===void 0)return null;try{var Q=new window.PressureObserver((function(W){if(W.length>0){var se=W[W.length-1];A.cpuPressure=se.state,O()}}));return Q.observe("cpu",{sampleInterval:1e3}).catch((function(){})),Q}catch{return null}})(),C=(B=typeof window<"u"&&window.performance&&window.performance.now?window.performance.now.bind(window.performance):typeof performance<"u"&&performance.now?performance.now.bind(performance):Date.now)(),F=0,(j=typeof window<"u"?window.requestAnimationFrame:null)&&(d=j((function Q(){var W=B();F++,W>C+2e3&&(A.fps=Math.round(1e3*F/(W-C)),F=0,C=W,O()),d=j(Q)}))),S);var B,C,F,j},cleanup:S,getState:function(){return{cpuPressure:A.cpuPressure,fps:A.fps}}}},336:function(e,t,n){var r=n(23),c=n(376),i=n(625),d=n(528),v=n(543).fingerprintReportedInSessionKey,l=n(543).eventTriggers,y={},A=null,O=!1,S=!1;function I(C){var F=C||{};Object.keys(F).forEach((function(j){j===l.fingerPrint&&S&&(d.getSessionItem(v)||(i.getFingerprint(O,(function(Q){c.reportFingerprintWithProInfo(A,Q.fingerprintRequestId)})),d.setSessionItem(v,!0)))}))}function B(C,F,j){for(var Q=0;Q<F.payload.length;Q++){var W=F.payload[Q];W&&W.event&&W.action&&r.isSubObject(W.event,C.payload)&&(j[W.action]=!0)}}e.exports={init:function(C){if(C.eventTrigger){try{var F=atob(C.eventTrigger),j=JSON.parse(F);if(!j||!(y=j[C.appId]))return}catch{return}A=C.deviceId,O=C.loadFingerprintJsPro,S=!0,(function(){if(S&&y.init&&Array.isArray(y.init)){for(var Q={},W=0;W<y.init.length;W++){var se=y.init[W];se&&se.url&&se.action&&new RegExp(y.init[W].url).test(window.location.href)&&(Q[y.init[W].action]=!0)}I(Q)}})()}},triggerEventOnEvent:function(C){if(S){var F=y[C.eventType];if(Array.isArray(F)){for(var j={},Q=0;Q<F.length;Q++){var W=F[Q];W&&W.url&&W.payload&&new RegExp(W.url).test(window.location.href)&&B(C,W,j)}I(j)}}}}},636:function(e,t,n){var r=n(528),c=n(387),i=n(376),d="ns_c_ver",v="c";function l(A){r.setItem(d,JSON.stringify(A))}function y(A,O,S,I){var B=O.fingerprintHash,C=O.fingerprintComponents;c.reportEvent({eventType:"sdkVersionUpgrade",deviceId:A,fingerprintHash:B,fingerprintComponents:C,payload:{versionUpgrade:{version:S,prevVersion:I||""}}}),l(S)}e.exports={reportVersionUpgrade:function(A){var O=A.initModuleVersion,S=A.coreModuleVersion,I={};I.i=O,I[v]=S;var B=A.deviceId,C=A.fingerprintInfo,F=(function(){var j=r.getItem(d);if(j){try{var Q=JSON.parse(j);if(typeof Q=="object")return Q}catch{}return{i:j}}return null})();F&&F.i?F.i!==O||F[v]&&F[v]!==S?(F[v]||(F[v]=S),C?y(B,C,I,F):i.getFingerprint((function(j){y(B,j,I,F)}))):F[v]||l(I):l(I)}}},23:function(e,t,n){var r=n(550),c={payload:"payload",queryString:"queryString"};function i(){return r()}function d(l,y){for(var A in l)if(l.hasOwnProperty(A)&&(!y.hasOwnProperty(A)||!v(l[A],y[A])))return!1;return!0}function v(l,y){if(l===y)return!0;if(typeof l!=typeof y)return!1;if(Array.isArray(l)&&Array.isArray(y)){if(l.length!==y.length)return!1;for(var A=0;A<l.length;A++)if(!v(l[A],y[A]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof y=="object"&&y!==null&&d(l,y)}e.exports={metadataType:c,getClientMetadata:function(l){var y=new Date().getTime(),A=i();return l===c.queryString?"timestamp="+y+"&clientRequestId="+A:{timestamp:y,clientRequestId:A}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(l){var y,A,O=l||"",S=O.length;return S<=1?(y="",A=""):S===2?(y=O.slice(0,1),A=""):S===3?(y=O.slice(0,1),A=O.slice(S-1)):S===4?(y=O.slice(0,2),A=O.slice(S-1)):S===5?(y=O.slice(0,2),A=O.slice(S-2)):S===6?(y=O.slice(0,3),A=O.slice(S-2)):S===7?(y=O.slice(0,3),A=O.slice(S-3)):S===8?(y=O.slice(0,4),A=O.slice(S-3)):S===9?(y=O.slice(0,5),A=O.slice(S-3)):S===10?(y=O.slice(0,5),A=O.slice(S-4)):S>10&&(y=O.slice(0,6),A=O.slice(S-4)),{length:S,prefix:y,suffix:A}},isSubObject:d,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(e,t,n){var r,c=n(723),i=n(115),d=n(884);function v(){return i.getDeviceId()}e.exports={getDeviceId:function(){return r||(r=v()),r},getCoreModuleParams:function(l,y){var A=y||{},O=!!A.isFingerprintJsProOff,S=[];r&&r!==v()&&S.push([r,v()]);var I=d.getAppContextId(),B=A.bulkEvents||{},C=A.supressInstallBackwardCompatibility||[],F=typeof A.logMessageRate=="number"?A.logMessageRate:100,j=A.eventTrigger||"";return Object.assign(l,{deviceId:v(),linkedDevices:S,loadFingerprintJsPro:!O,clientVersion:c.version,appContextId:I,bulkEvents:B,supressInstallBackwardCompatibility:C,logMessageRate:F,eventTrigger:j,eventsReportUrl:A.eventsReportUrl})},parseInitParams:function(l,y){return typeof(A=l)=="string"||A instanceof String?{appId:l,partnerId:y}:l;var A},internalGetDeviceId:v}},342:function(e,t,n){var r=n(723),c=n(242),i=n(1),d=n(102),v=n(651),l=n(884),y=n(884);e.exports={version:r.version,init:l.isBrowser()?function(A,O){var S=v.parseInitParams(A,O),I=S.appId;i.init(r,{appId:I});var B=y.getConfigBaseUrls(S,r),C=B.mainConfigBaseUrl,F=B.altConfigBaseUrl;function j(W,se){c.getCoreModuleLoadingInfo({appId:I,url:W},(function(ue,oe){!ue&&oe||r.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:W,errorDescription:ue}),se(oe)}))}function Q(W){typeof W.onPercentage=="number"&&l.randomInt(0,100)>W.onPercentage||(function(se,ue){var oe=v.getCoreModuleParams(se,ue);d.init(oe)})(S,W)}return j(C,(function(W){if(W)Q(W);else{if(!F)return;j(F,(function(se){se&&Q(se)}))}})),v.getDeviceId()}:function(A,O){return null},getDeviceId:l.isBrowser()?function(){return v.getDeviceId()}:function(){return null}}},242:function(e,t,n){var r=n(611),c=n(528),i=n(884),d="ns_group";function v(l,y){(function(A,O){r.get(A).end((function(S,I){S?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:S,res:I})}):i.isFunction(O)&&O(null,{ok:I.ok,status:I.status,response:I.body})}))})(l.url,(function(A,O){!A&&O&&O.response?i.isFunction(y)&&y(null,(function(S,I){var B,C=I||{},F=C.configurations||{},j=F[S];if(j){var Q=(function(){var Ee=c.getItem(d);return Ee||(Ee=i.randomInt(1,100),c.setItem(d,Ee)),Ee})(),W=(function(Ee){var Re=[],ne=0;for(var ie in Ee)if(Ee.hasOwnProperty(ie)){var de=Ee[ie],ge=ne;ne+=de.percentage,Re.push({from:ge,to:ne,url:de.url})}return Re})(j.groups),se=(function(Ee,Re){for(var ne=0,ie=Ee.length;ne<ie;ne++){var de=Ee[ne];if(Re>de.from&&Re<=de.to)return de}return null})(W,Q)||{};if(se)for(B in se)se.hasOwnProperty(B)&&(j[B]=se[B]);var ue=F.default||{};for(B in ue)ue.hasOwnProperty(B)&&!j.hasOwnProperty(B)&&(j[B]=ue[B])}else j=F.default||{};var oe={};for(B in C)C.hasOwnProperty(B)&&B!=="configurations"&&(oe[B]=C[B]);for(B in j)j.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(oe[B]=j[B]);return oe})(l.appId,O.response)):i.isFunction(y)&&y(A.errorDescription)}))}e.exports={getCoreModuleLoadingInfo:function(l,y){var A=0;l&&l.url?v(l,(function O(S,I){S?(A+=1)<=3?v(l,O):i.isFunction(y)&&y(S):i.isFunction(y)&&y(null,I)})):i.isFunction(y)&&y("config url is not configured")}}},115:function(e,t,n){var r,c=n(550),i=n(528),d=n(13),v=n(884),l=n(616),y="ns_dev_id",A=[];function O(){var S=i.getItem(y);r||(r=S||l.toArray(c(),i.hasAccessToLocalStorage()),i.setItem(y,r))}e.exports={init:function(){d.init((function(){d.getKey(y,(function(S){S?(r=S,i.setItem(y,r),d.cleanup()):(O(),d.setKey(y,r),setTimeout(d.cleanup,2e3));for(var I=0,B=A.length;I<B;I+=1){var C=A[I];v.isFunction(C)&&C()}A=[]}))}))},addOnReadyListener:function(S){A.push(S)},getDeviceId:function(){return O(),r},reset:function(){throw new Error("Cannot call reset!")}}}},Z0={};function Ar(e){var t=Z0[e];if(t!==void 0)return t.exports;var n=Z0[e]={exports:{}};return w8[e](n,n.exports,Ar),n.exports}Ar.d=function(e,t){for(var n in t)Ar.o(t,n)&&!Ar.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Ar.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ar.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var ho={};Ar.d(ho,{IP:function(){return po.getDeviceId},Ts:function(){return po.init},rE:function(){return po.version}});var po=Ar(342);const _8={version:po.version,init:po.init,getDeviceId:po.getDeviceId};ho.Ay=_8;var Ba=ho.Ay;ho.IP,ho.Ts,ho.rE;function ka(){if(typeof window<"u"){const e=new URLSearchParams(window.location.search).get("deviceId");if(e)return e}return Ba?Ba.getDeviceId():null}class Tn{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(n=>n.json()).then(n=>n.nSureSettings?.nSurePartnerId||n.nSurePartnerId).catch(n=>{console.error(n)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowAppBaseUrl(t){return!t||t==="prod"?"https://app.coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3003":`https://app-${t}.coinflow.cash`}static isCoinflowMessageOrigin({url:t,fallbackUrl:n,env:r}){const c=t||n;if(!c)return!1;let i;try{i=new URL(c).hostname}catch{return!1}return r==="local"?i==="localhost":r==="ngrok"?i==="coinflow.ngrok.app":i==="coinflow.cash"||i.endsWith(".coinflow.cash")}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:n,route:r,routePrefix:c,env:i,subtotal:d,useNativeSubtotal:v,presentment:l,transaction:y,blockchain:A="solana",webhookInfo:O,email:S,loaderBackground:I,handleHeightChangeId:B,bankAccountLinkRedirect:C,additionalWallets:F,chargebackProtectionData:j,chargebackProtectionAccountType:Q,merchantCss:W,color:se,rent:ue,lockDefaultToken:oe,tokens:Ee,planCode:Re,disableApplePay:ne,disableGooglePay:ie,customerInfo:de,settlementType:ge,amount:k,lockAmount:f,nativeSolToConvert:R,theme:M,usePermit:$,transactionSigner:Y,authOnly:te,deviceId:ae,jwtToken:K,origins:g,threeDsChallengePreference:_,supportEmail:H,destinationAuthKey:J,allowedPaymentMethods:me,allowedCardFunding:ye,accountFundingTransaction:Ue,partialUsdcChecked:Ke,allowedWithdrawSpeeds:st,isZeroAuthorization:at,zeroAuthorizationConfig:ut,userLocation:_t,appReturnUrl:pt,depositAmounts:Rt,ownerOverride:Pt,bridgeId:vt,bankLinkOnly:w,baseUrl:x}){const V=c?`/${c}/${A}`:`/${A}`,Z=new URL(V+r,x??Tn.getCoinflowBaseUrl(i));if(t&&Z.searchParams.append("pubkey",t),Pt&&Z.searchParams.append("ownerOverride",Pt),n&&Z.searchParams.append("sessionKey",n),y&&Z.searchParams.append("transaction",y),d&&("cents"in d?(Z.searchParams.append("cents",d.cents.toString()),"currency"in d?Z.searchParams.append("currency",d.currency.toString()):Z.searchParams.append("currency",Ma.USD)):(Z.searchParams.append("token",d.address.toString()),Z.searchParams.append("amount",d.amount.toString()))),v&&Z.searchParams.append("useNativeSubtotal","true"),vt&&Z.searchParams.append("bridgeId",vt),l&&Z.searchParams.append("presentment",l),O&&Z.searchParams.append("webhookInfo",In.compressToEncodedURIComponent(JSON.stringify(O))),M&&Z.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(M))),de&&Z.searchParams.append("customerInfo",In.compressToEncodedURIComponent(JSON.stringify(de))),S&&Z.searchParams.append("email",S),H&&Z.searchParams.append("supportEmail",H),Ee&&Z.searchParams.append("tokens",Ee.toString()),I&&Z.searchParams.append("loaderBackground",I),B&&Z.searchParams.append("useHeightChange",B.toString()),C&&Z.searchParams.append("bankAccountLinkRedirect",C),w&&Z.searchParams.append("bankLinkOnly","true"),F&&Z.searchParams.append("additionalWallets",In.compressToEncodedURIComponent(JSON.stringify(F))),j&&Z.searchParams.append("chargebackProtectionData",In.compressToEncodedURIComponent(JSON.stringify(j))),Q&&Z.searchParams.append("chargebackProtectionAccountType",Q),ae)Z.searchParams.append("deviceId",ae);else{const fe=ka();fe&&Z.searchParams.append("deviceId",fe)}return W&&Z.searchParams.append("merchantCss",W),se&&Z.searchParams.append("color",se),ue&&Z.searchParams.append("rent",ue.lamports.toString()),R&&Z.searchParams.append("nativeSolToConvert",R.lamports.toString()),oe&&Z.searchParams.append("lockDefaultToken","true"),Re&&Z.searchParams.append("planCode",Re),ne&&Z.searchParams.append("disableApplePay","true"),ie&&Z.searchParams.append("disableGooglePay","true"),ge&&Z.searchParams.append("settlementType",ge),k!==void 0&&!Z.searchParams.has("amount")&&Z.searchParams.append("amount",k.toString()),f&&Z.searchParams.append("lockAmount","true"),$===!1&&Z.searchParams.append("usePermit","false"),Y&&Z.searchParams.append("transactionSigner",Y),te===!0&&Z.searchParams.append("authOnly","true"),ut?Z.searchParams.append("zeroAuthorizationConfig",JSON.stringify(ut)):at===!0&&Z.searchParams.append("isZeroAuthorization","true"),Ke===!0&&Z.searchParams.append("partialUsdcChecked","true"),K&&Z.searchParams.append("jwtToken",K),g&&Z.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(g))),me&&Z.searchParams.append("allowedPaymentMethods",me.join(",")),ye?.length&&Z.searchParams.append("allowedCardFunding",ye.join(",")),Rt&&Z.searchParams.append("depositAmounts",Rt.join(",")),_&&Z.searchParams.append("threeDsChallengePreference",_),J&&Z.searchParams.append("destinationAuthKey",J),Ue&&Z.searchParams.append("accountFundingTransaction",In.compressToEncodedURIComponent(JSON.stringify(Ue))),st&&Z.searchParams.append("allowedWithdrawSpeeds",st.join(",")),_t&&(Z.searchParams.append("lat",_t.lat.toString()),Z.searchParams.append("lng",_t.lng.toString())),pt&&Z.searchParams.append("appReturnUrl",pt),Z.toString()}static getCoinflowIntentsUrl({baseUrl:t,route:n,color:r,theme:c,env:i,origins:d,deviceId:v,merchantCss:l,loaderBackground:y,handleHeightChangeId:A}){const O=new URL(n,t??Tn.getCoinflowBaseUrl(i));if(d&&O.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(d))),v)O.searchParams.append("deviceId",v);else{const S=ka();S&&O.searchParams.append("deviceId",S)}return l&&O.searchParams.append("merchantCss",l),r&&O.searchParams.append("color",r),y&&O.searchParams.append("loaderBackground",y),A&&O.searchParams.append("useHeightChange",A.toString()),c&&O.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(c))),O.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:n}=t;if(!es)throw new Error("@solana/web3.js dependency is required for Solana");if(!br)throw new Error("bs58 dependency is required for Solana");if(n)return br.encode(Uint8Array.from(n.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},eth:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},base:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},stellar:()=>{if(!("transaction"in t))return;const{transaction:n}=t;if(n)return n},monad:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},tempo:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},user:()=>{}})()}static byBlockchain(t,n){switch(t){case"solana":return n.solana;case"polygon":return n.polygon;case"eth":return n.eth;case"base":return n.base;case"arbitrum":return n.arbitrum;case"stellar":return n.stellar;case"monad":return n.monad;case"tempo":return n.tempo;case"user":return n.user;default:throw new Error("blockchain not supported!")}}}function E8(e){if(!e)return;let t,n;if("name"in e&&e.name&&(t=e.name.split(" ")[0],n=e.name.split(" ").slice(1).join(" ")),"firstName"in e&&e.firstName&&(t=e.firstName),"lastName"in e&&e.lastName&&(n=e.lastName),t&&n)return{firstName:t,lastName:n}}function ts({event:e,error:t,env:n,merchantId:r}){const c=t instanceof Error,i=c?t.message:t,d=c?t.stack:"";fetch(`${Tn.getCoinflowApiUrl(n)}/api/telemetry/frontend-error`,{method:"POST",body:JSON.stringify({message:i,stackTrace:d,merchantId:r,event:e}),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var mo=(e=>(e.SignMessage="signMessage",e.SignTransaction="signTransaction",e.SendTransaction="sendTransaction",e.HeightChange="heightChange",e.Success="success",e.AuthDeclined="authDeclined",e.InputError="inputError",e.InputValid="inputValid",e.Loaded="loaded",e.AccountLinked="accountLinked",e.AccountNotLinked="accountNotLinked",e.AccountLinkError="accountLinkError",e.Redirect="redirect",e.Overlay="overlay",e.UpdateSubtotal="updateSubtotal",e))(mo||{});function ns(e){let t;if("signer"in e&&typeof e.signer=="object"&&e.signer&&"wallet"in e.signer?t=e.signer.wallet:"wallet"in e&&e.wallet&&(t=e.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function Y0(e,t,n){let r;try{if(r=JSON.parse(e),!("method"in r)||!("data"in r))return}catch(d){console.error("handleIFrameMessage JSON parse",d);return}const{data:c,method:i}=r;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(c):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(c):void 0;case"sendTransaction":return t.handleSendTransaction(c);case"heightChange:"+n:return t.handleHeightChange?t.handleHeightChange(c):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(r.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(r.info);return;case"inputError":if(!t.onInputError)return;t.onInputError(r.info);return;case"inputValid":if(!t.onInputValid)return;t.onInputValid(r.info);return;case"loaded":return;case"accountLinked":if(!t.onAccountLinked)return;t.onAccountLinked(r.info);return;case"accountNotLinked":if(!t.onAccountNotLinked)return;t.onAccountNotLinked(r.info);return;case"accountLinkError":if(!t.onAccountLinkError)return;t.onAccountLinkError(r.info);return;case"redirect":window.open(c,"_blank");return;case"overlay":if(!t.handleOverlay)return;t.handleOverlay(c);return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(mo)}`)}function rs(e){let t,n;return"signer"in e&&typeof e.signer=="object"&&e.signer&&"blockchain"in e.signer&&"wallet"in e.signer?(t=e.signer.blockchain,n=e.signer.wallet):"blockchain"in e&&e.blockchain&&(t=e.blockchain,n=e.wallet),t?{...Tn.byBlockchain(t,{solana:()=>R8({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),eth:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),polygon:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),base:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),arbitrum:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),stellar:()=>b8({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),monad:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),tempo:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),user:()=>A8(e)})(),onAccountLinked:e.onAccountLinked,onAccountNotLinked:e.onAccountNotLinked,onAccountLinkError:e.onAccountLinkError}:{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid,onAccountLinked:e.onAccountLinked,onAccountNotLinked:e.onAccountNotLinked,onAccountLinkError:e.onAccountLinkError}}function R8({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{const d=X0(i);return await e.sendTransaction(d)},handleSignMessage:async i=>{const d=e.signMessage;if(!d)throw new Error("signMessage is not supported by this wallet");const v=await d(new TextEncoder().encode(i));if(!br)throw new Error("bs58 dependency is required");return br.encode(v)},handleSignTransaction:async i=>{const d=e.signTransaction;if(!d)throw new Error("signTransaction is not supported by this wallet");const v=X0(i),l=await d(v);if(!br)throw new Error("bs58 dependency is required");return br.encode(Uint8Array.from(l.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function X0(e){if(!es)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!br)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=br.decode(e),n=es.VersionedTransaction.deserialize(t);return n.version==="legacy"?es.Transaction.from(t):n}function go({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{const d=JSON.parse(Buffer.from(i,"base64").toString()),{hash:v}=await e.sendTransaction(d);return v},handleSignMessage:async i=>e.signMessage(i),onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function b8({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{throw new Error(`sendTransaction is not supported on stellar, error when sending: ${i}`)},handleSignMessage:async i=>{if(!e.signMessage)throw new Error("signMessage is not supported by this wallet");return await e.signMessage(i)},handleSignTransaction:async i=>{if(!e.signTransaction)throw new Error("signTransaction is not supported by this wallet");return await e.signTransaction(i)},onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function A8({onSuccess:e,onAuthDeclined:t,onInputError:n,onInputValid:r}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:e,onAuthDeclined:t,onInputError:n,onInputValid:r}}class S8{static on(t,n){document.addEventListener(t,n)}static dispatch(t,n){document.dispatchEvent(new CustomEvent(t,{detail:n}))}static remove(t,n){document.removeEventListener(t,n)}}const q0={"card-number":180,expiration:96,cvv:80},J0=8,$o="3rem",Da=48,Ua=1,os=1,Pa=2,I8={"card-number":"1fr",expiration:"96px",cvv:"80px"},Q0={"card-number":"card",expiration:"exp",cvv:"cvv"};function jo(e,t){return e.includes(t)}function O8(e){const t=e.reduce((r,c)=>r+q0[c],0),n=Math.max(0,e.length-1)*J0;return t+n}function N8({inputs:e,hasIcon:t}){const n=[],r=[],c=(i,d)=>{n.length>0&&(n.push(`d${i.toUpperCase()}`),r.push("1px")),n.push(i),r.push(d)};t&&jo(e,"card-number")&&c("icon","auto");for(const i of e)c(Q0[i],I8[i]);return`"${n.join(" ")}" ${$o} / ${r.join(" ")}`}function T8({inputs:e,hasIcon:t}){const n=jo(e,"card-number"),r=jo(e,"expiration"),c=jo(e,"cvv");if(!n||!r&&!c)return null;const i=`${$o} ${Ua}px ${$o}`;if(r&&c)return{template:ef(t?'"icon card card card" "dHR dHR dHR dHR" "exp exp dEV cvv"':'"card card card" "dHR dHR dHR" "exp dEV cvv"',i,t?"auto minmax(0, 1fr) 1px minmax(0, 1fr)":"minmax(0, 1fr) 1px minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"},{area:"dEV",orientation:"v"}]};const d=r?"exp":"cvv",v=t?`"icon card" "dHR dHR" "${d} ${d}"`:`"card" "dHR" "${d}"`;return{template:ef(v,i,t?"auto minmax(0, 1fr)":"minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"}]}}function ef(e,t,n){const r=e.match(/"[^"]*"/g)??[],c=t.split(/\s+/);return`${r.map((d,v)=>`${d} ${c[v]??""}`.trim()).join(" ")} / ${n}`}function is({inputs:e,hasIcon:t=!1,allowTwoRow:n=!0}){const r=e.map(v=>Q0[v]);if(e.length===1)return{inline:`"${r[0]}" ${$o} / 1fr`,twoRow:null,breakpointPx:null,fieldAreas:r,hasIconArea:!1,twoRowDividers:[]};const c=t&&jo(e,"card-number"),i=N8({inputs:e,hasIcon:c}),d=n?T8({inputs:e,hasIcon:c}):null;return{inline:i,twoRow:d?.template??null,breakpointPx:d?O8(e)+2*os:null,fieldAreas:r,hasIconArea:c,twoRowDividers:d?.dividers??[]}}function tf({gridSelector:e,layout:t,containerName:n,extraBaseRules:r="",extraCompactRules:c=""}){const i=`${e} { display: grid; grid-template: ${t.inline}; }
|
|
18
|
+
components: `).concat(Qe(Ne),"\n```")),[2,Pe]}}))}))}}}function X(L){var oe=L===void 0?{}:L,ee=oe.delayFallback,we=oe.debug,Se=oe.monitoring,Ne=Se===void 0||Se;return c(this,void 0,void 0,(function(){return i(this,(function(Pe){switch(Pe.label){case 0:return Ne&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Ve=new XMLHttpRequest;Ve.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(v,"/npm-monitoring"),!0),Ve.send()}catch(ue){console.error(ue)}})(),[4,E(ee)];case 1:return Pe.sent(),[2,b(de(Me,{debug:we},[]),we)]}}))}))}var ve={load:X,hashComponents:P,componentsToDebugString:Qe},be=W},526:function(e,t){t.byteLength=function(y){var A=v(y),O=A[0],S=A[1];return 3*(O+S)/4-S},t.toByteArray=function(y){var A,O,S=v(y),I=S[0],B=S[1],C=new c((function(Q,W,ae){return 3*(W+ae)/4-ae})(0,I,B)),F=0,j=B>0?I-4:I;for(O=0;O<j;O+=4)A=r[y.charCodeAt(O)]<<18|r[y.charCodeAt(O+1)]<<12|r[y.charCodeAt(O+2)]<<6|r[y.charCodeAt(O+3)],C[F++]=A>>16&255,C[F++]=A>>8&255,C[F++]=255&A;return B===2&&(A=r[y.charCodeAt(O)]<<2|r[y.charCodeAt(O+1)]>>4,C[F++]=255&A),B===1&&(A=r[y.charCodeAt(O)]<<10|r[y.charCodeAt(O+1)]<<4|r[y.charCodeAt(O+2)]>>2,C[F++]=A>>8&255,C[F++]=255&A),C},t.fromByteArray=function(y){for(var A,O=y.length,S=O%3,I=[],B=16383,C=0,F=O-S;C<F;C+=B)I.push(l(y,C,C+B>F?F:C+B));return S===1?(A=y[O-1],I.push(n[A>>2]+n[A<<4&63]+"==")):S===2&&(A=(y[O-2]<<8)+y[O-1],I.push(n[A>>10]+n[A>>4&63]+n[A<<2&63]+"=")),I.join("")};for(var n=[],r=[],c=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0;d<64;++d)n[d]=i[d],r[i.charCodeAt(d)]=d;function v(y){var A=y.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=y.indexOf("=");return O===-1&&(O=A),[O,O===A?0:4-O%4]}function l(y,A,O){for(var S,I,B=[],C=A;C<O;C+=3)S=(y[C]<<16&16711680)+(y[C+1]<<8&65280)+(255&y[C+2]),B.push(n[(I=S)>>18&63]+n[I>>12&63]+n[I>>6&63]+n[63&I]);return B.join("")}r[45]=62,r[95]=63},287:function(e,t,n){const r=n(526),c=n(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const d=2147483647;function v(w){if(w>d)throw new RangeError('The value "'+w+'" is invalid for option "size"');const x=new Uint8Array(w);return Object.setPrototypeOf(x,l.prototype),x}function l(w,x,V){if(typeof w=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(w)}return y(w,x,V)}function y(w,x,V){if(typeof w=="string")return(function(pe,Me){if(typeof Me=="string"&&Me!==""||(Me="utf8"),!l.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);const tt=0|C(pe,Me);let Qe=v(tt);const P=Qe.write(pe,Me);return P!==tt&&(Qe=Qe.slice(0,P)),Qe})(w,x);if(ArrayBuffer.isView(w))return(function(pe){if(Et(pe,Uint8Array)){const Me=new Uint8Array(pe);return I(Me.buffer,Me.byteOffset,Me.byteLength)}return S(pe)})(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(Et(w,ArrayBuffer)||w&&Et(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Et(w,SharedArrayBuffer)||w&&Et(w.buffer,SharedArrayBuffer)))return I(w,x,V);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=w.valueOf&&w.valueOf();if(ne!=null&&ne!==w)return l.from(ne,x,V);const J=(function(pe){if(l.isBuffer(pe)){const Me=0|B(pe.length),tt=v(Me);return tt.length===0||pe.copy(tt,0,0,Me),tt}return pe.length!==void 0?typeof pe.length!="number"||ht(pe.length)?v(0):S(pe):pe.type==="Buffer"&&Array.isArray(pe.data)?S(pe.data):void 0})(w);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return l.from(w[Symbol.toPrimitive]("string"),x,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}function A(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function O(w){return A(w),v(w<0?0:0|B(w))}function S(w){const x=w.length<0?0:0|B(w.length),V=v(x);for(let ne=0;ne<x;ne+=1)V[ne]=255&w[ne];return V}function I(w,x,V){if(x<0||w.byteLength<x)throw new RangeError('"offset" is outside of buffer bounds');if(w.byteLength<x+(V||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return ne=x===void 0&&V===void 0?new Uint8Array(w):V===void 0?new Uint8Array(w,x):new Uint8Array(w,x,V),Object.setPrototypeOf(ne,l.prototype),ne}function B(w){if(w>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|w}function C(w,x){if(l.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||Et(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);const V=w.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&V===0)return 0;let J=!1;for(;;)switch(x){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return st(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return at(w).length;default:if(J)return ne?-1:st(w).length;x=(""+x).toLowerCase(),J=!0}}function F(w,x,V){let ne=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(x>>>=0))return"";for(w||(w="utf8");;)switch(w){case"hex":return f(this,x,V);case"utf8":case"utf-8":return se(this,x,V);case"ascii":return ge(this,x,V);case"latin1":case"binary":return k(this,x,V);case"base64":return re(this,x,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,x,V);default:if(ne)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),ne=!0}}function j(w,x,V){const ne=w[x];w[x]=w[V],w[V]=ne}function Q(w,x,V,ne,J){if(w.length===0)return-1;if(typeof V=="string"?(ne=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),ht(V=+V)&&(V=J?0:w.length-1),V<0&&(V=w.length+V),V>=w.length){if(J)return-1;V=w.length-1}else if(V<0){if(!J)return-1;V=0}if(typeof x=="string"&&(x=l.from(x,ne)),l.isBuffer(x))return x.length===0?-1:W(w,x,V,ne,J);if(typeof x=="number")return x&=255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(w,x,V):Uint8Array.prototype.lastIndexOf.call(w,x,V):W(w,[x],V,ne,J);throw new TypeError("val must be string, number or Buffer")}function W(w,x,V,ne,J){let pe,Me=1,tt=w.length,Qe=x.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(w.length<2||x.length<2)return-1;Me=2,tt/=2,Qe/=2,V/=2}function P(E,b){return Me===1?E[b]:E.readUInt16BE(b*Me)}if(J){let E=-1;for(pe=V;pe<tt;pe++)if(P(w,pe)===P(x,E===-1?0:pe-E)){if(E===-1&&(E=pe),pe-E+1===Qe)return E*Me}else E!==-1&&(pe-=pe-E),E=-1}else for(V+Qe>tt&&(V=tt-Qe),pe=V;pe>=0;pe--){let E=!0;for(let b=0;b<Qe;b++)if(P(w,pe+b)!==P(x,b)){E=!1;break}if(E)return pe}return-1}function ae(w,x,V,ne){V=Number(V)||0;const J=w.length-V;ne?(ne=Number(ne))>J&&(ne=J):ne=J;const pe=x.length;let Me;for(ne>pe/2&&(ne=pe/2),Me=0;Me<ne;++Me){const tt=parseInt(x.substr(2*Me,2),16);if(ht(tt))return Me;w[V+Me]=tt}return Me}function fe(w,x,V,ne){return ut(st(x,w.length-V),w,V,ne)}function ie(w,x,V,ne){return ut((function(J){const pe=[];for(let Me=0;Me<J.length;++Me)pe.push(255&J.charCodeAt(Me));return pe})(x),w,V,ne)}function Ee(w,x,V,ne){return ut(at(x),w,V,ne)}function Re(w,x,V,ne){return ut((function(J,pe){let Me,tt,Qe;const P=[];for(let E=0;E<J.length&&!((pe-=2)<0);++E)Me=J.charCodeAt(E),tt=Me>>8,Qe=Me%256,P.push(Qe),P.push(tt);return P})(x,w.length-V),w,V,ne)}function re(w,x,V){return x===0&&V===w.length?r.fromByteArray(w):r.fromByteArray(w.slice(x,V))}function se(w,x,V){V=Math.min(w.length,V);const ne=[];let J=x;for(;J<V;){const pe=w[J];let Me=null,tt=pe>239?4:pe>223?3:pe>191?2:1;if(J+tt<=V){let Qe,P,E,b;switch(tt){case 1:pe<128&&(Me=pe);break;case 2:Qe=w[J+1],(192&Qe)==128&&(b=(31&pe)<<6|63&Qe,b>127&&(Me=b));break;case 3:Qe=w[J+1],P=w[J+2],(192&Qe)==128&&(192&P)==128&&(b=(15&pe)<<12|(63&Qe)<<6|63&P,b>2047&&(b<55296||b>57343)&&(Me=b));break;case 4:Qe=w[J+1],P=w[J+2],E=w[J+3],(192&Qe)==128&&(192&P)==128&&(192&E)==128&&(b=(15&pe)<<18|(63&Qe)<<12|(63&P)<<6|63&E,b>65535&&b<1114112&&(Me=b))}}Me===null?(Me=65533,tt=1):Me>65535&&(Me-=65536,ne.push(Me>>>10&1023|55296),Me=56320|1023&Me),ne.push(Me),J+=tt}return(function(pe){const Me=pe.length;if(Me<=de)return String.fromCharCode.apply(String,pe);let tt="",Qe=0;for(;Qe<Me;)tt+=String.fromCharCode.apply(String,pe.slice(Qe,Qe+=de));return tt})(ne)}l.TYPED_ARRAY_SUPPORT=(function(){try{const w=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(w,x),w.foo()===42}catch{return!1}})(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(w,x,V){return y(w,x,V)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(w,x,V){return(function(ne,J,pe){return A(ne),ne<=0?v(ne):J!==void 0?typeof pe=="string"?v(ne).fill(J,pe):v(ne).fill(J):v(ne)})(w,x,V)},l.allocUnsafe=function(w){return O(w)},l.allocUnsafeSlow=function(w){return O(w)},l.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==l.prototype},l.compare=function(w,x){if(Et(w,Uint8Array)&&(w=l.from(w,w.offset,w.byteLength)),Et(x,Uint8Array)&&(x=l.from(x,x.offset,x.byteLength)),!l.isBuffer(w)||!l.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===x)return 0;let V=w.length,ne=x.length;for(let J=0,pe=Math.min(V,ne);J<pe;++J)if(w[J]!==x[J]){V=w[J],ne=x[J];break}return V<ne?-1:ne<V?1:0},l.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(w,x){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return l.alloc(0);let V;if(x===void 0)for(x=0,V=0;V<w.length;++V)x+=w[V].length;const ne=l.allocUnsafe(x);let J=0;for(V=0;V<w.length;++V){let pe=w[V];if(Et(pe,Uint8Array))J+pe.length>ne.length?(l.isBuffer(pe)||(pe=l.from(pe)),pe.copy(ne,J)):Uint8Array.prototype.set.call(ne,pe,J);else{if(!l.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(ne,J)}J+=pe.length}return ne},l.byteLength=C,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const w=this.length;if(w%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let x=0;x<w;x+=2)j(this,x,x+1);return this},l.prototype.swap32=function(){const w=this.length;if(w%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let x=0;x<w;x+=4)j(this,x,x+3),j(this,x+1,x+2);return this},l.prototype.swap64=function(){const w=this.length;if(w%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let x=0;x<w;x+=8)j(this,x,x+7),j(this,x+1,x+6),j(this,x+2,x+5),j(this,x+3,x+4);return this},l.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?se(this,0,w):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(w){if(!l.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w||l.compare(this,w)===0},l.prototype.inspect=function(){let w="";const x=t.IS;return w=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(w+=" ... "),"<Buffer "+w+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(w,x,V,ne,J){if(Et(w,Uint8Array)&&(w=l.from(w,w.offset,w.byteLength)),!l.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(x===void 0&&(x=0),V===void 0&&(V=w?w.length:0),ne===void 0&&(ne=0),J===void 0&&(J=this.length),x<0||V>w.length||ne<0||J>this.length)throw new RangeError("out of range index");if(ne>=J&&x>=V)return 0;if(ne>=J)return-1;if(x>=V)return 1;if(this===w)return 0;let pe=(J>>>=0)-(ne>>>=0),Me=(V>>>=0)-(x>>>=0);const tt=Math.min(pe,Me),Qe=this.slice(ne,J),P=w.slice(x,V);for(let E=0;E<tt;++E)if(Qe[E]!==P[E]){pe=Qe[E],Me=P[E];break}return pe<Me?-1:Me<pe?1:0},l.prototype.includes=function(w,x,V){return this.indexOf(w,x,V)!==-1},l.prototype.indexOf=function(w,x,V){return Q(this,w,x,V,!0)},l.prototype.lastIndexOf=function(w,x,V){return Q(this,w,x,V,!1)},l.prototype.write=function(w,x,V,ne){if(x===void 0)ne="utf8",V=this.length,x=0;else if(V===void 0&&typeof x=="string")ne=x,V=this.length,x=0;else{if(!isFinite(x))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");x>>>=0,isFinite(V)?(V>>>=0,ne===void 0&&(ne="utf8")):(ne=V,V=void 0)}const J=this.length-x;if((V===void 0||V>J)&&(V=J),w.length>0&&(V<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");let pe=!1;for(;;)switch(ne){case"hex":return ae(this,w,x,V);case"utf8":case"utf-8":return fe(this,w,x,V);case"ascii":case"latin1":case"binary":return ie(this,w,x,V);case"base64":return Ee(this,w,x,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,w,x,V);default:if(pe)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),pe=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const de=4096;function ge(w,x,V){let ne="";V=Math.min(w.length,V);for(let J=x;J<V;++J)ne+=String.fromCharCode(127&w[J]);return ne}function k(w,x,V){let ne="";V=Math.min(w.length,V);for(let J=x;J<V;++J)ne+=String.fromCharCode(w[J]);return ne}function f(w,x,V){const ne=w.length;(!x||x<0)&&(x=0),(!V||V<0||V>ne)&&(V=ne);let J="";for(let pe=x;pe<V;++pe)J+=Rt[w[pe]];return J}function R(w,x,V){const ne=w.slice(x,V);let J="";for(let pe=0;pe<ne.length-1;pe+=2)J+=String.fromCharCode(ne[pe]+256*ne[pe+1]);return J}function M(w,x,V){if(w%1!=0||w<0)throw new RangeError("offset is not uint");if(w+x>V)throw new RangeError("Trying to access beyond buffer length")}function $(w,x,V,ne,J,pe){if(!l.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>J||x<pe)throw new RangeError('"value" argument is out of bounds');if(V+ne>w.length)throw new RangeError("Index out of range")}function Z(w,x,V,ne,J){me(x,ne,J,w,V,7);let pe=Number(x&BigInt(4294967295));w[V++]=pe,pe>>=8,w[V++]=pe,pe>>=8,w[V++]=pe,pe>>=8,w[V++]=pe;let Me=Number(x>>BigInt(32)&BigInt(4294967295));return w[V++]=Me,Me>>=8,w[V++]=Me,Me>>=8,w[V++]=Me,Me>>=8,w[V++]=Me,V}function te(w,x,V,ne,J){me(x,ne,J,w,V,7);let pe=Number(x&BigInt(4294967295));w[V+7]=pe,pe>>=8,w[V+6]=pe,pe>>=8,w[V+5]=pe,pe>>=8,w[V+4]=pe;let Me=Number(x>>BigInt(32)&BigInt(4294967295));return w[V+3]=Me,Me>>=8,w[V+2]=Me,Me>>=8,w[V+1]=Me,Me>>=8,w[V]=Me,V+8}function ce(w,x,V,ne,J,pe){if(V+ne>w.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function K(w,x,V,ne,J){return x=+x,V>>>=0,J||ce(w,0,V,4),c.write(w,x,V,ne,23,4),V+4}function g(w,x,V,ne,J){return x=+x,V>>>=0,J||ce(w,0,V,8),c.write(w,x,V,ne,52,8),V+8}l.prototype.slice=function(w,x){const V=this.length;(w=~~w)<0?(w+=V)<0&&(w=0):w>V&&(w=V),(x=x===void 0?V:~~x)<0?(x+=V)<0&&(x=0):x>V&&(x=V),x<w&&(x=w);const ne=this.subarray(w,x);return Object.setPrototypeOf(ne,l.prototype),ne},l.prototype.readUintLE=l.prototype.readUIntLE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let ne=this[w],J=1,pe=0;for(;++pe<x&&(J*=256);)ne+=this[w+pe]*J;return ne},l.prototype.readUintBE=l.prototype.readUIntBE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let ne=this[w+--x],J=1;for(;x>0&&(J*=256);)ne+=this[w+--x]*J;return ne},l.prototype.readUint8=l.prototype.readUInt8=function(w,x){return w>>>=0,x||M(w,1,this.length),this[w]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(w,x){return w>>>=0,x||M(w,2,this.length),this[w]|this[w+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(w,x){return w>>>=0,x||M(w,2,this.length),this[w]<<8|this[w+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(w,x){return w>>>=0,x||M(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(w,x){return w>>>=0,x||M(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},l.prototype.readBigUInt64LE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const ne=x+256*this[++w]+65536*this[++w]+this[++w]*2**24,J=this[++w]+256*this[++w]+65536*this[++w]+V*2**24;return BigInt(ne)+(BigInt(J)<<BigInt(32))})),l.prototype.readBigUInt64BE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const ne=x*2**24+65536*this[++w]+256*this[++w]+this[++w],J=this[++w]*2**24+65536*this[++w]+256*this[++w]+V;return(BigInt(ne)<<BigInt(32))+BigInt(J)})),l.prototype.readIntLE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let ne=this[w],J=1,pe=0;for(;++pe<x&&(J*=256);)ne+=this[w+pe]*J;return J*=128,ne>=J&&(ne-=Math.pow(2,8*x)),ne},l.prototype.readIntBE=function(w,x,V){w>>>=0,x>>>=0,V||M(w,x,this.length);let ne=x,J=1,pe=this[w+--ne];for(;ne>0&&(J*=256);)pe+=this[w+--ne]*J;return J*=128,pe>=J&&(pe-=Math.pow(2,8*x)),pe},l.prototype.readInt8=function(w,x){return w>>>=0,x||M(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},l.prototype.readInt16LE=function(w,x){w>>>=0,x||M(w,2,this.length);const V=this[w]|this[w+1]<<8;return 32768&V?4294901760|V:V},l.prototype.readInt16BE=function(w,x){w>>>=0,x||M(w,2,this.length);const V=this[w+1]|this[w]<<8;return 32768&V?4294901760|V:V},l.prototype.readInt32LE=function(w,x){return w>>>=0,x||M(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},l.prototype.readInt32BE=function(w,x){return w>>>=0,x||M(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},l.prototype.readBigInt64LE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const ne=this[w+4]+256*this[w+5]+65536*this[w+6]+(V<<24);return(BigInt(ne)<<BigInt(32))+BigInt(x+256*this[++w]+65536*this[++w]+this[++w]*2**24)})),l.prototype.readBigInt64BE=Pt((function(w){ye(w>>>=0,"offset");const x=this[w],V=this[w+7];x!==void 0&&V!==void 0||Ue(w,this.length-8);const ne=(x<<24)+65536*this[++w]+256*this[++w]+this[++w];return(BigInt(ne)<<BigInt(32))+BigInt(this[++w]*2**24+65536*this[++w]+256*this[++w]+V)})),l.prototype.readFloatLE=function(w,x){return w>>>=0,x||M(w,4,this.length),c.read(this,w,!0,23,4)},l.prototype.readFloatBE=function(w,x){return w>>>=0,x||M(w,4,this.length),c.read(this,w,!1,23,4)},l.prototype.readDoubleLE=function(w,x){return w>>>=0,x||M(w,8,this.length),c.read(this,w,!0,52,8)},l.prototype.readDoubleBE=function(w,x){return w>>>=0,x||M(w,8,this.length),c.read(this,w,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(w,x,V,ne){w=+w,x>>>=0,V>>>=0,ne||$(this,w,x,V,Math.pow(2,8*V)-1,0);let J=1,pe=0;for(this[x]=255&w;++pe<V&&(J*=256);)this[x+pe]=w/J&255;return x+V},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(w,x,V,ne){w=+w,x>>>=0,V>>>=0,ne||$(this,w,x,V,Math.pow(2,8*V)-1,0);let J=V-1,pe=1;for(this[x+J]=255&w;--J>=0&&(pe*=256);)this[x+J]=w/pe&255;return x+V},l.prototype.writeUint8=l.prototype.writeUInt8=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,1,255,0),this[x]=255&w,x+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,65535,0),this[x]=255&w,this[x+1]=w>>>8,x+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,65535,0),this[x]=w>>>8,this[x+1]=255&w,x+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,4294967295,0),this[x+3]=w>>>24,this[x+2]=w>>>16,this[x+1]=w>>>8,this[x]=255&w,x+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,4294967295,0),this[x]=w>>>24,this[x+1]=w>>>16,this[x+2]=w>>>8,this[x+3]=255&w,x+4},l.prototype.writeBigUInt64LE=Pt((function(w,x=0){return Z(this,w,x,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Pt((function(w,x=0){return te(this,w,x,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(w,x,V,ne){if(w=+w,x>>>=0,!ne){const tt=Math.pow(2,8*V-1);$(this,w,x,V,tt-1,-tt)}let J=0,pe=1,Me=0;for(this[x]=255&w;++J<V&&(pe*=256);)w<0&&Me===0&&this[x+J-1]!==0&&(Me=1),this[x+J]=(w/pe|0)-Me&255;return x+V},l.prototype.writeIntBE=function(w,x,V,ne){if(w=+w,x>>>=0,!ne){const tt=Math.pow(2,8*V-1);$(this,w,x,V,tt-1,-tt)}let J=V-1,pe=1,Me=0;for(this[x+J]=255&w;--J>=0&&(pe*=256);)w<0&&Me===0&&this[x+J+1]!==0&&(Me=1),this[x+J]=(w/pe|0)-Me&255;return x+V},l.prototype.writeInt8=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,1,127,-128),w<0&&(w=255+w+1),this[x]=255&w,x+1},l.prototype.writeInt16LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,32767,-32768),this[x]=255&w,this[x+1]=w>>>8,x+2},l.prototype.writeInt16BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,2,32767,-32768),this[x]=w>>>8,this[x+1]=255&w,x+2},l.prototype.writeInt32LE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,2147483647,-2147483648),this[x]=255&w,this[x+1]=w>>>8,this[x+2]=w>>>16,this[x+3]=w>>>24,x+4},l.prototype.writeInt32BE=function(w,x,V){return w=+w,x>>>=0,V||$(this,w,x,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[x]=w>>>24,this[x+1]=w>>>16,this[x+2]=w>>>8,this[x+3]=255&w,x+4},l.prototype.writeBigInt64LE=Pt((function(w,x=0){return Z(this,w,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Pt((function(w,x=0){return te(this,w,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(w,x,V){return K(this,w,x,!0,V)},l.prototype.writeFloatBE=function(w,x,V){return K(this,w,x,!1,V)},l.prototype.writeDoubleLE=function(w,x,V){return g(this,w,x,!0,V)},l.prototype.writeDoubleBE=function(w,x,V){return g(this,w,x,!1,V)},l.prototype.copy=function(w,x,V,ne){if(!l.isBuffer(w))throw new TypeError("argument should be a Buffer");if(V||(V=0),ne||ne===0||(ne=this.length),x>=w.length&&(x=w.length),x||(x=0),ne>0&&ne<V&&(ne=V),ne===V||w.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),w.length-x<ne-V&&(ne=w.length-x+V);const J=ne-V;return this===w&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(x,V,ne):Uint8Array.prototype.set.call(w,this.subarray(V,ne),x),J},l.prototype.fill=function(w,x,V,ne){if(typeof w=="string"){if(typeof x=="string"?(ne=x,x=0,V=this.length):typeof V=="string"&&(ne=V,V=this.length),ne!==void 0&&typeof ne!="string")throw new TypeError("encoding must be a string");if(typeof ne=="string"&&!l.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);if(w.length===1){const pe=w.charCodeAt(0);(ne==="utf8"&&pe<128||ne==="latin1")&&(w=pe)}}else typeof w=="number"?w&=255:typeof w=="boolean"&&(w=Number(w));if(x<0||this.length<x||this.length<V)throw new RangeError("Out of range index");if(V<=x)return this;let J;if(x>>>=0,V=V===void 0?this.length:V>>>0,w||(w=0),typeof w=="number")for(J=x;J<V;++J)this[J]=w;else{const pe=l.isBuffer(w)?w:l.from(w,ne),Me=pe.length;if(Me===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(J=0;J<V-x;++J)this[J+x]=pe[J%Me]}return this};const _={};function H(w,x,V){_[w]=class extends V{constructor(){super(),Object.defineProperty(this,"message",{value:x.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${w}]`,this.stack,delete this.name}get code(){return w}set code(ne){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ne,writable:!0})}toString(){return`${this.name} [${w}]: ${this.message}`}}}function q(w){let x="",V=w.length;const ne=w[0]==="-"?1:0;for(;V>=ne+4;V-=3)x=`_${w.slice(V-3,V)}${x}`;return`${w.slice(0,V)}${x}`}function me(w,x,V,ne,J,pe){if(w>V||w<x){const Me=typeof x=="bigint"?"n":"";let tt;throw tt=x===0||x===BigInt(0)?`>= 0${Me} and < 2${Me} ** ${8*(pe+1)}${Me}`:`>= -(2${Me} ** ${8*(pe+1)-1}${Me}) and < 2 ** ${8*(pe+1)-1}${Me}`,new _.ERR_OUT_OF_RANGE("value",tt,w)}(function(Me,tt,Qe){ye(tt,"offset"),Me[tt]!==void 0&&Me[tt+Qe]!==void 0||Ue(tt,Me.length-(Qe+1))})(ne,J,pe)}function ye(w,x){if(typeof w!="number")throw new _.ERR_INVALID_ARG_TYPE(x,"number",w)}function Ue(w,x,V){throw Math.floor(w)!==w?(ye(w,V),new _.ERR_OUT_OF_RANGE("offset","an integer",w)):x<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${x}`,w)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(w){return w?`${w} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(w,x){return`The "${w}" argument must be of type number. Received type ${typeof x}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(w,x,V){let ne=`The value of "${w}" is out of range.`,J=V;return Number.isInteger(V)&&Math.abs(V)>2**32?J=q(String(V)):typeof V=="bigint"&&(J=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(J=q(J)),J+="n"),ne+=` It must be ${x}. Received ${J}`,ne}),RangeError);const We=/[^+/0-9A-Za-z-_]/g;function st(w,x){let V;x=x||1/0;const ne=w.length;let J=null;const pe=[];for(let Me=0;Me<ne;++Me){if(V=w.charCodeAt(Me),V>55295&&V<57344){if(!J){if(V>56319){(x-=3)>-1&&pe.push(239,191,189);continue}if(Me+1===ne){(x-=3)>-1&&pe.push(239,191,189);continue}J=V;continue}if(V<56320){(x-=3)>-1&&pe.push(239,191,189),J=V;continue}V=65536+(J-55296<<10|V-56320)}else J&&(x-=3)>-1&&pe.push(239,191,189);if(J=null,V<128){if((x-=1)<0)break;pe.push(V)}else if(V<2048){if((x-=2)<0)break;pe.push(V>>6|192,63&V|128)}else if(V<65536){if((x-=3)<0)break;pe.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((x-=4)<0)break;pe.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return pe}function at(w){return r.toByteArray((function(x){if((x=(x=x.split("=")[0]).trim().replace(We,"")).length<2)return"";for(;x.length%4!=0;)x+="=";return x})(w))}function ut(w,x,V,ne){let J;for(J=0;J<ne&&!(J+V>=x.length||J>=w.length);++J)x[J+V]=w[J];return J}function Et(w,x){return w instanceof x||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===x.name}function ht(w){return w!=w}const Rt=(function(){const w="0123456789abcdef",x=new Array(256);for(let V=0;V<16;++V){const ne=16*V;for(let J=0;J<16;++J)x[ne+J]=w[V]+w[J]}return x})();function Pt(w){return typeof BigInt>"u"?vt:w}function vt(){throw new Error("BigInt not supported")}},527:function(e,t,n){var r=n(188),c=n(539),i=n(682);for(var d in r)r[d]=i(v(d));function v(l){return r[l]}r._api=c,e.exports=r},539:function(e){e.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(e){e.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(e,t,n){var r=n(539),c={};function i(l){try{return v(l),!0}catch{return!1}}function d(l){try{return v(l)}catch{return!1}}function v(l){return new Function(l)()}c._api=r,e.exports=function l(y){if(y==="class"&&(y="classes"),c._api[y].dependencies){for(var A=0;A<c._api[y].dependencies.length;A++)if(l(c._api[y].dependencies[A])===!1)return!1}return c._api[y].passes?i(c._api[y].passes):c._api[y].fails?!i(c._api[y].fails):c._api[y].is?d(c._api[y].is):c._api[y].not?!d(c._api[y].not):void 0}},251:function(e,t){t.read=function(n,r,c,i,d){var v,l,y=8*d-i-1,A=(1<<y)-1,O=A>>1,S=-7,I=c?d-1:0,B=c?-1:1,C=n[r+I];for(I+=B,v=C&(1<<-S)-1,C>>=-S,S+=y;S>0;v=256*v+n[r+I],I+=B,S-=8);for(l=v&(1<<-S)-1,v>>=-S,S+=i;S>0;l=256*l+n[r+I],I+=B,S-=8);if(v===0)v=1-O;else{if(v===A)return l?NaN:1/0*(C?-1:1);l+=Math.pow(2,i),v-=O}return(C?-1:1)*l*Math.pow(2,v-i)},t.write=function(n,r,c,i,d,v){var l,y,A,O=8*v-d-1,S=(1<<O)-1,I=S>>1,B=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:v-1,F=i?1:-1,j=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(y=isNaN(r)?1:0,l=S):(l=Math.floor(Math.log(r)/Math.LN2),r*(A=Math.pow(2,-l))<1&&(l--,A*=2),(r+=l+I>=1?B/A:B*Math.pow(2,1-I))*A>=2&&(l++,A/=2),l+I>=S?(y=0,l=S):l+I>=1?(y=(r*A-1)*Math.pow(2,d),l+=I):(y=r*Math.pow(2,I-1)*Math.pow(2,d),l=0));d>=8;n[c+C]=255&y,C+=F,y/=256,d-=8);for(l=l<<d|y,O+=d;O>0;n[c+C]=255&l,C+=F,l/=256,O-=8);n[c+C-F]|=128*j}},943:function(e){function t(n){this.message=n}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(n){var r=String(n).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,i,d=0,v=0,l="";i=r.charAt(v++);~i&&(c=d%4?64*c+i:i,d++%4)?l+=String.fromCharCode(255&c>>(-2*d&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return l}},863:function(e,t,n){var r=n(943);e.exports=function(c){var i=c.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return(function(d){return decodeURIComponent(r(d).replace(/(.)/g,(function(v,l){var y=l.charCodeAt(0).toString(16).toUpperCase();return y.length<2&&(y="0"+y),"%"+y})))})(i)}catch{return r(i)}}},127:function(e,t,n){var r=n(863);function c(i){this.message=i}c.prototype=new Error,c.prototype.name="InvalidTokenError",e.exports=function(i,d){if(typeof i!="string")throw new c("Invalid token specified");var v=(d=d||{}).header===!0?0:1;try{return JSON.parse(r(i.split(".")[v]))}catch(l){throw new c("Invalid token specified: "+l.message)}},e.exports.InvalidTokenError=c},471:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(r,c){var i=c||0,d=t;return[d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],"-",d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]],d[r[i++]]].join("")}},814:function(e){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var c,i=0;i<16;i++)3&i||(c=4294967296*Math.random()),r[i]=c>>>((3&i)<<3)&255;return r}}},550:function(e,t,n){var r=n(814),c=n(471);e.exports=function(i,d,v){var l=d&&v||0;typeof i=="string"&&(d=i==="binary"?new Array(16):null,i=null);var y=(i=i||{}).random||(i.rng||r)();if(y[6]=15&y[6]|64,y[8]=63&y[8]|128,d)for(var A=0;A<16;++A)d[l+A]=y[A];return d||c(y)}},723:function(e){e.exports={version:"1.1.100",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(e,t,n){var r=n(287).hp;e.exports={toArray:function(c,i){if(!c||c.length!==36)return c;for(var d="",v=i?"0":"1",l=0;l<36;l+=1)d+=l>=26&&l<30?v:c[l];var y=(function(S){for(var I=255,B=255,C=0,F=S.length;F;){var j=F>20?20:F;F-=j;do B+=I+=S[C++];while(--j);I=(255&I)+(I>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(I=(255&I)+(I>>8))).toString(16)})(r.from(d));if(y){var A="";if(y.length===4)A+=y;else if(y.length<4){for(var O=0;O<4-y.length;O+=1)A+=v;A+=y}else A+=y.slice(-4)}return d.substring(0,26)+A+d.substring(26+A.length)}}},108:function(e){function t(){this.listeners={}}t.prototype.addEventListener=function(n,r){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(r)},t.prototype.removeEventListener=function(n,r){if(n in this.listeners){for(var c=this.listeners[n],i=0,d=c.length;i<d;i++)if(c[i]===r)return void c.splice(i,1)}},t.prototype.dispatchEvent=function(n){if(!(n.type in this.listeners))return!0;for(var r=this.listeners[n.type].slice(),c=0,i=r.length;c<i;c++)r[c].call(this,n);return!n.defaultPrevented},e.exports=t},1:function(e){var t=null,n=null,r=0;function c(i,d){return encodeURIComponent(i)+"="+encodeURIComponent(d)}e.exports={init:function(i,d){t=i.errorServerUrl+"/reportSdkMsg",n=d.appId,r=typeof d.logMessageRate=="number"?d.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>r)){var d=t;d+="?"+c("appId",n),d+="&"+c("msg",JSON.stringify(i));var v=new Image;v.onerror=function(){},v.src=d}}}},611:function(e){var t=(function(){function n(c,i){this.method=c,this.url=i,this.headers={},this.data=null,this.timeout=1e4}n.prototype.set=function(c,i){if(typeof c=="object")for(var d in c)c.hasOwnProperty(d)&&(this.headers[d]=c[d]);else this.headers[c]=i;return this},n.prototype.send=function(c){return this.data=c,this},n.prototype.timeout=function(c){return this.timeout=c,this},n.prototype.end=function(c){var i=this,d={method:this.method,headers:this.headers};function v(S,I){return{ok:!1,status:I?I.status:400,response:S instanceof Error?S.message:S}}if(this.data&&(d.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,y=fetch(this.url,d).then((function(S){if(!S.ok)throw{response:S,message:S.statusText||"HTTP error "+S.status};return(function(I){var B=I.headers.get("content-type");return B&&B.includes("application/json")?I.json().then((function(C){return{ok:I.ok,status:I.status,body:C}})):I.text().then((function(C){return{ok:I.ok,status:I.status,body:C}}))})(S)}));y.catch((function(){}));var A=new Promise((function(S,I){l=setTimeout((function(){I(new Error("Request timeout"))}),i.timeout)}));Promise.race([y,A]).then((function(S){clearTimeout(l),S.ok?c(null,S):c(v(S.response,S))})).catch((function(S){clearTimeout(l),c(v(S.message,S&&S.response))}))}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(S){O.setRequestHeader(S,i.headers[S])})),O.timeout=this.timeout,O.onload=function(){var S={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{S.body=JSON.parse(O.responseText)}catch{}S.ok?c(null,S):c(v("HTTP error "+O.status,S))},O.onerror=function(){c(v("Error",{status:400}))},O.ontimeout=function(){c(v("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var r={};return["get","post","put","delete"].forEach((function(c){r[c]=function(i){return new n(c,i)}})),r})();e.exports=t},776:function(e,t,n){var r,c,i=n(611),d=n(723),v=n(884),l=d.serverUrl;function y(){r=r||{},c!==void 0&&(r[d.headers.sessionId]=c);var A={Accept:"application/json","Content-Type":"application/json"};return Object.keys(r).forEach((function(O){r[O]!==void 0&&(A[O]=r[O])})),A}e.exports={setSessionId:function(A){c=A},makeRequest:function(A,O){var S=A.path,I=A.data,B=A.method;(function C(F){i[B](F+"/"+S).set(y()).send(I).end((function(j,Q){if(j){if(F!==d.serverUrl)return void C(d.serverUrl);v.isFunction(O)&&O({ok:!1,status:j.status,response:j.response})}else v.isFunction(O)&&O(null,{ok:Q.ok,status:Q.status,response:Q.body})}))})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:y,init:function(A,O){(function(S){r=S})(A),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(l=v.normalizePath(O.eventsReportUrl))}}},13:function(e,t,n){var r,c=n(723),i="getItem";function d(l,y){l&&l.contentWindow.postMessage(y,"*")}function v(l,y,A){l.removeEventListener?l.removeEventListener(y,A,!1):l.attachEvent&&l.detachEvent("on"+y,A)}e.exports={init:function(l){var y,A=(y=!1,function(){y||(y=!0,l())});(r=document.createElement("iframe")).id="storageIframe",r.width=r.height=r.frameBorder=0,r.style.display="none",r.setAttribute("src",c.storageIframeUrl),r.onload=A,r.onerror=A,document.body.appendChild(r),window.setTimeout(A,1e4)},getKey:function(l,y){var A,O,S,I,B,C;r||y(),A=window,O="message",I=function F(j){if(j.data&&typeof j.data=="string")try{var Q=JSON.parse(j.data);if(Q.command===i){var W=Q.response;v(window,"message",F),y(W)}}catch{v(window,"message",F),y()}},B=y,C=!1,window.setTimeout((function(){C||(C=!0,B())}),5e3),S=function(F){C||(C=!0,I(F))},A.addEventListener?A.addEventListener(O,S,!1):A.attachEvent&&A.attachEvent("on"+O,S),d(r,JSON.stringify({command:i,key:l}))},setKey:function(l,y){d(r,JSON.stringify({command:"setItem",key:l,value:y}))},cleanup:function(){r&&r.parentElement&&r.parentElement.removeChild&&(r.parentElement.removeChild(r),r=null)}}},528:function(e){var t,n={setItem:function(l,y){this[l]=y},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function r(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function c(){return t===void 0&&(t=r()),t?localStorage:n}function i(l,y){c().setItem(l,y)}function d(l){return c().getItem(l)}function v(l){return c().removeItem(l)}e.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:d,getBackwardCompatabilityItem:function(l,y){var A=d(l);return!A&&y&&(A=d(y))&&(i(l,A),v(y)),A},removeItem:v,hasAccessToLocalStorage:r,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return n.getItem(l)}},setSessionItem:function(l,y){try{return sessionStorage.setItem(l,y)}catch{return n.setItem(l,y)}}}},884:function(e){var t="nsure-app-cid";function n(r){var c=r;return c&&c.charAt(c.length-1)==="/"&&(c=c.slice(0,-1)),c&&!/^https?:\/\//i.test(c)&&(c="https://"+c),c}e.exports={isFunction:function(r){return typeof r=="function"},loadScript:function(r,c){var i=!1,d=document.createElement("script");function v(){i||(i=!0,c())}d.onload=v,d.onreadystatechange=function(){i||d.readyState!=="complete"||v()},d.onerror=function(){i||(i=!0,c("Error loading script"))},d.src=r,document.body.appendChild(d)},loadImage:function(r){var c=document.createElement("img");c.src=r,c.style.height=0,c.style.width=0,c.style.display="none",c.style.visibility="hidden",document.body.appendChild(c)},randomInt:function(r,c){var i,d=c-r+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*d+r)},isValidDate:function(r){return r instanceof Date&&!isNaN(r)},getAppContextId:function(){try{var r=sessionStorage.getItem(t);r?sessionStorage.removeItem(t):r=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(c=r,function(){try{sessionStorage.setItem(t,c)}catch{}}))}catch{r=0}var c;return r},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:n,getConfigBaseUrls:function(r,c){var i=null;if(typeof r.configBaseUrl=="string"&&r.configBaseUrl.length>0){var d=c.coreConfigFileUrl.indexOf("/core-config/"),v=d>0?c.coreConfigFileUrl.substring(d):"/core-config/config.json";i=n(r.configBaseUrl)+v}var l=i||c.coreConfigFileUrl;return{mainConfigBaseUrl:l,altConfigBaseUrl:l===c.coreConfigFileUrl?null:c.coreConfigFileUrl}}}},543:function(e){var t="f8ad0f9b-",n="ns_install_reported",r=t+n,c=t+"ns_reportedFpInSession";e.exports={webType:"Web",oldInstallEventReportedKeyName:n,installEventReportedKeyName:r,fingerprintReportedInSessionKey:c,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(e){e.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy",SM:"sm",FC:"fc"}},298:function(e){e.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(e,t,n){var r=n(723),c=n(776),i=n(387),d=n(733),v=n(472),l=n(376),y=n(120),A=n(142),O=n(636),S=n(496),I=n(1),B=n(336);e.exports={init:function(C){var F=C.deviceId,j=C.linkedDevices,Q={};Q[r.headers.appId]=C.appId,Q[r.headers.partnerId]=C.partnerId,Q[r.headers.sdkClientVersion]=r.version,Q[r.headers.sdkApiVersion]=r.sdkApiVersion,Q[r.headers.sdkClientType]=r.sdkClientType,Q[r.headers.appContextId]=C.appContextId,c.init(Q,C),i.addMetadataProps(C),I.init(r,C),i.reportInitEvent(F),S.init(C),B.init(C),d.installSdk(C,(function(W){W||l.manageFingerprint(F,!0)})),d.reportLinkDevices(F,j),v.manageSessionId({deviceId:F,initModuleConfig:C}),y.manageDomEvents(F),A.manageKeepAlive({deviceId:F}),O.reportVersionUpgrade({deviceId:F,initModuleVersion:C.clientVersion,coreModuleVersion:r.version})}}},143:function(e,t,n){var r=n(108),c=n(23).oneMinute,i=n(298);function d(){r.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function v(l){r.call(this),this.activityServiceId=l}d.prototype=Object.create(r.prototype),d.prototype.constructor=d,d.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach((function(y){document.addEventListener(y,l.activityEvents[y]=function(){l.activityHandler()})}))},d.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},d.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach((function(y){document.removeEventListener(y,l.activityEvents[y])}))},v.prototype=Object.create(r.prototype),v.prototype.constructor=v,v.prototype.trackInactivity=function(l){var y,A=new d,O=this,S=!1;function I(){S||(clearTimeout(y),setTimeout((function(){O.trackInactivity(l)}),c))}A.addEventListener(i.activityEvent,I),A.observe(),y=setTimeout((function(){S=!0,A.stopActivityListeners(),A.removeEventListener(i.activityEvent,I),O.dispatchEvent(new Event(i.inactivityEvent))}),l)},e.exports=v},496:function(e,t,n){var r,c=n(120),i=n(776),d=n(376),v=n(23),l=n(723),y=n(38),A=n(543),O=n(336),S=n(884),I=n(198),B=n(292),C=[],F=[],j=null,Q=6e4,W=5e3,ae=null,fe=S.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),ie=0,Ee=null,Re=Date.now(),re=0,se=null,de=!1,ge=!1,k=!1,f=!1,R=[];function M(){F=C,C=[],te(),$()}function $(){j&&clearTimeout(j),j=setTimeout(M,Q)}function Z(){var ye={device:{id:r,type:A.webType},metadata:{clientRequestId:v.getClientRequestId()}};return ae&&ae.fingerprintHash&&(ye.device.fingerprint=ae.fingerprintHash),ye}function te(ye){if(F.length)if(ae!==null){var Ue=Object.assign(Z(),{events:F});i.makeRequest({path:"bulk",data:Ue,method:i.methods.post},ye)}else d.getFingerprint((function(We){ae=We,te(ye)}))}function ce(ye,Ue){return C.push(ye),Ue?new Blob([JSON.stringify(C)]).size:0}function K(){if(k){var ye=Date.now();ye-Re>W&&(ce({i:{dr:ye-Re,ac:ye-Re-re},metadata:{type:y.I,timestamp:ye}},!1),re=0)}}function g(){$(),F=C,C=[],te()}function _(ye){var Ue=ye.eventType===y.C||ye.eventType===y.S||ye.eventType===y.KD||ye.eventType===y.MM;Ue&&(K(),(function(){if(f&&Math.random()<.25){for(var We=[],st=0;st<3;st++)We.push(String.fromCharCode(Math.floor(26*Math.random())+97));var at=y.DY+We[0],ut={metadata:{type:at,timestamp:Date.now()}};ut[at]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},ut[at][We.join("")]=Math.floor(1e3*Math.random())+1,ce(ut,!1)}})()),(function(We){O.triggerEventOnEvent(We)})(ye),ce(Object.assign({metadata:{type:ye.eventType,timestamp:Date.now()}},ye.payload),!0)>32768&&g(),Ue&&(Re=Date.now())}function H(){de&&g()}function q(ye){return window.addEventListener(ye,H,!0),function(){window.removeEventListener(ye,H,!0)}}function me(ye,Ue){return!ye||ye.indexOf(Ue)>-1}e.exports={init:function(ye){if(!de){var Ue=ye.bulkEvents&&ye.bulkEvents.mask;if(!Array.isArray(Ue)||Ue.length!==0){var We=ye.bulkEvents&&typeof ye.bulkEvents.pct=="number"?ye.bulkEvents.pct:100;if(!(We===0||Math.random()>We/100)){var st=ye.bulkEvents&&ye.bulkEvents.appMaskInclude;if(!Array.isArray(st)||st.indexOf(ye.appId)!==-1){var at=ye.bulkEvents&&ye.bulkEvents.appMaskExclude;if(!Array.isArray(at)||at.indexOf(ye.appId)===-1){var ut=me(Ue,y.C),Et=me(Ue,y.KD),ht=me(Ue,y.S),Rt=me(Ue,y.PC),Pt=me(Ue,y.MM),vt=me(Ue,y.PL),w=me(Ue,y.I),x=me(Ue,y.DY),V=me(Ue,y.SM),ne=me(Ue,y.FC),J=w||vt;r=ye.deviceId,$(),ut&&R.push(c.setClickListener(_)),Et&&R.push(c.setKeyDownListener(_)),ht&&R.push(c.setScrollListener(_)),Rt&&R.push(c.setPageChangeListener(_)),Pt&&R.push(c.setMouseMoveListener(_)),V&&R.push(I.init(_)),ne&&R.push(B.init(_)),ge=vt,k=w,f=x,J&&R.push((function(){function pe(){if(document.hidden)Ee=Date.now(),se=Ee;else if(Ee!==null){var Me=Date.now();ie+=Me-Ee,Ee=null,re+=Me-se}}return document.addEventListener("visibilitychange",pe),function(){document.removeEventListener("visibilitychange",pe)}})()),R.push((function(){function pe(){if(K(),(function(){if(ge){var E=Date.now(),b=E-fe;ce({metadata:{type:y.PL,timestamp:E},pl:{dr:b,ac:b-ie}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(C.length>0)try{var Me=i.getRequestHeaders(),tt=Object.assign(Z(),{events:C}),Qe=new URLSearchParams;Qe.append("data",JSON.stringify(tt)),Qe.append("headers",JSON.stringify(Me));var P=new Blob([Qe.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",P)}catch{}}else F=C,te()}return window.addEventListener("beforeunload",pe),function(){window.removeEventListener("beforeunload",pe)}})()),de=!0,C=[],ut||R.push(q("click")),R.push(q("paste"))}}}}}},cleanup:function(){de&&(j&&clearTimeout(j),R.forEach((function(ye){ye()})),R=[],de=!1)},trigger:H}},120:function(e,t,n){var r=n(709),c=n(38),i=n(23);function d(){return"ontouchstart"in window}function v(l){var y={};if(l.nodeName){y.name=l.nodeName,l.className&&(y.className=String(l.className)),l.id&&(y.id=l.id);var A=l.getAttribute&&l.getAttribute("type");A&&(y.type=A),l.placeholder&&(y.placeholder=l.placeholder)}return y}e.exports={manageDomEvents:function(l){r.managePasteEvents(l)},getDomProperties:v,setClickListener:function(l){function y(O){var S={eventType:c.C,payload:{c:{d:v(O.target)}}},I=O.target.textContent||O.target.innerText||"";if(I){var B=i.transformDomNodeContent(I);S.payload[c.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(S)}var A=d()?"touchend":"click";return window.addEventListener(A,y,!0),function(){window.removeEventListener(A,y,!0)}},setKeyDownListener:function(l){function y(A){l({eventType:c.KD,payload:{kd:{d:v(A.target),k:A.key||A.code||"na"}}})}return window.addEventListener("keydown",y,!0),function(){window.removeEventListener("keydown",y,!0)}},setScrollListener:function(l){var y=null,A=0,O=0,S={x:0,y:0},I=0,B=0,C=0,F=0,j=0,Q=0;function W(fe){l({eventType:c.S,payload:{s:{d:v(fe.target),di:{x:S.x,y:S.y},t:B-I,sx:C,sy:F,ex:j,ey:Q}}}),A=0,O=0,S.x=0,S.y=0,y=null,I=0,B=0}function ae(fe){var ie=fe.target.scrollingElement||fe.target;if(ie&&(ie===document&&(ie=document.documentElement),ie instanceof Element)){var Ee=ie.getBoundingClientRect(),Re=-Ee.left+ie.scrollLeft,re=-Ee.top+ie.scrollTop;y?(clearTimeout(y),B=Date.now(),j=Re,Q=re):(I=Date.now(),B=I,j=C=Re,Q=F=re),(S.x||S.y||A||O)&&(S.x+=Math.abs(Re-A),S.y+=Math.abs(re-O)),A=Re,O=re,y=setTimeout(W.bind(null,fe),200)}}return window.addEventListener("scroll",ae,!0),function(){y&&clearTimeout(y),window.removeEventListener("scroll",ae,!0)}},setPageChangeListener:function(l){var y,A,O,S=null,I=null,B=0;function C(W){var ae;if(window.URL){var fe=new URL(W,"http://example.com");ae=fe.pathname+fe.hash}else ae=W.indexOf("?")>-1?W.split("?")[0]:W.indexOf("#")>-1?W.split("#")[0]:W;if(ae!==S){var ie=Date.now()-O;l({eventType:c.PC,payload:{pc:{f:S,t:ae,dr:ie,ac:ie-B}}}),S=ae,O=Date.now()}}function F(){if(document.hidden)I=Date.now();else if(I!==null){var W=Date.now();B+=W-I,I=null}}function j(W){C(W.newURL)}function Q(){C(window.location.href)}return window.history?(S=window.location.pathname||"/",y=history.pushState,A=history.replaceState,O=Date.now(),window.addEventListener("hashchange",j),window.addEventListener("popstate",Q),history.pushState=function(W,ae,fe){return C(fe),y.apply(history,arguments)},history.replaceState=function(W,ae,fe){return C(fe),A.apply(history,arguments)},document.addEventListener("visibilitychange",F),function(){history.pushState=y,history.replaceState=A,window.removeEventListener("hashchange",j),window.removeEventListener("popstate",Q),document.removeEventListener("visibilitychange",F),S=null,B=0}):function(){}},setMouseMoveListener:function(l){var y=[],A=!1,O=null,S=0,I={x:0,y:0};function B(){y.length!==0&&(l({eventType:c.MM,payload:{mm:{s:y.slice(),l:A,di:I}}}),y=[])}function C(j){var Q,W;j.touches&&j.touches.length>0?(Q=j.touches[0].clientX,W=j.touches[0].clientY):(Q=j.clientX,W=j.clientY),Q!==void 0&&W!==void 0&&(y.length>0&&(I.x+=Math.abs(Q-y[y.length-1][0]),I.y+=Math.abs(W-y[y.length-1][1])),y.push([Q,W]),y.length>1e3&&(A=!0,(S+=2)>=1e3&&(S=2),y.splice(S,1)),O&&clearTimeout(O),O=setTimeout(B,200))}var F=d()?"touchmove":"mousemove";return window.addEventListener(F,C,!0),function(){O&&clearTimeout(O),window.removeEventListener(F,C,!0)}}}},387:function(e,t,n){var r=n(776),c=n(23),i=n(287).hp,d=n(527),v=n(543),l=["storeInfo"],y={};function A(){var I={};for(var B in d)if(d.hasOwnProperty(B)){var C=B.charAt(0);C===C.toLowerCase()&&C!==C.toUpperCase()&&(I[B]=d[B])}return I}function O(I,B){var C=I.eventType,F=I.deviceId,j=I.fingerprintProVisitorId,Q=I.fingerprintProRequestId,W=I.fingerprintHash,ae=(function(de){try{return i.from(JSON.stringify(de)).toString("base64")}catch{return}})(I.fingerprintComponents),fe=I.deviceExtendedInfo,ie=I.payload,Ee={metadata:{type:C},device:{id:F,fingerprint:W,rawFingerprint:ae,type:v.webType}};j&&(Ee.device.visitorId=j),Q&&(Ee.device.fpRequestId=Q);var Re=Object.assign({},c.getClientMetadata(c.metadataType.payload),y);for(var re in Re)Re.hasOwnProperty(re)&&(Ee.metadata[re]=Re[re]);for(var se in ie)ie.hasOwnProperty(se)&&(Ee[se]=ie[se]);fe&&(Ee.device.extendedInfo=fe),r.makeRequest({path:"events",data:Ee,method:r.methods.post},B)}function S(I){var B=I.type,C=I.deviceId,F=I.fingerprintProVisitorId,j=I.fingerprintProRequestId,Q=I.fingerprintHash,W=I.fingerprintComponents,ae=I.deviceExtendedInfo,fe=I.callback,ie={eventType:B,deviceId:C,fingerprintHash:Q,fingerprintComponents:W,deviceExtendedInfo:ae};F&&(ie.fingerprintProVisitorId=F),j&&(ie.fingerprintProRequestId=j),O(ie,fe)}e.exports={addMetadataProps:function(I){for(var B=0;B<l.length;B+=1){var C=l[B];I.hasOwnProperty(C)&&(y[C]=I[C])}},reportEvent:O,reportAppInstallEvent:function(I,B,C,F,j,Q){S({type:"appInstall",deviceId:I,fingerprintProVisitorId:B,fingerprintProRequestId:C,fingerprintHash:F,fingerprintComponents:j,deviceExtendedInfo:A(),callback:Q})},reportFingerprintEvent:function(I,B,C,F){S({type:"fingerprint",deviceId:I,fingerprintHash:B,fingerprintComponents:C,fingerprintProRequestId:F})},reportInitEvent:function(I){S({type:"appInit",deviceId:I})}}},625:function(e,t,n){var r=n(269),c=n(1);e.exports={getFingerprint:function(i,d){if(r&&i)if(y=typeof navigator<"u"&&navigator.userAgent||"",/(iPhone|iPad|iPod)/.test(y)&&/CPU (iPhone )?OS 16_7/.test(y)&&/AppleWebKit/.test(y))c.send({msg:"FingerprintJS pro not loaded - legacy iOS device where loading it risks a browser crash",userAgent:typeof navigator<"u"&&navigator.userAgent||""}),typeof d=="function"&&d({});else try{r.load((l={apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",r.defaultEndpoint],remoteControlDetection:!0},typeof r.makeIdentificationModule=="function"&&typeof r.makeBotdModule=="function"&&(l.modules=[r.makeIdentificationModule(),r.makeBotdModule()]),l)).then((function(A){return A.get()})).then((function(A){typeof d=="function"&&d(A?{fingerprintVisitorId:A.visitorId,fingerprintRequestId:A.requestId}:{})})).catch((function(){typeof d=="function"&&d({})}))}catch(A){var v={msg:"FingerprintJS.load pro error",err:JSON.stringify(A)};c.send(v),typeof d=="function"&&d({})}else d({});var l,y}}},376:function(e,t,n){var r=n(75),c=n(528),i=n(387),d=n(1),v="ns_fp_hash";function l(A,O,S,I){i.reportFingerprintEvent(S,A,O,I)}function y(A){try{r.load({monitoring:!1}).then((function(S){S.get().then((function(I){A(I?{fingerprintHash:I.visitorId,fingerprintComponents:I.components}:{})})).catch((function(){typeof A=="function"&&A({})}))})).catch((function(){typeof A=="function"&&A({})}))}catch(S){var O={msg:"FingerprintJS.load error",err:JSON.stringify(S)};d.send(O),typeof A=="function"&&A({})}}e.exports={manageFingerprint:function(A,O,S){y((function(I){var B=I.fingerprintHash,C=I.fingerprintComponents;c.getItem(v)!==B&&(O&&l(B,C,A),c.setItem(v,B)),typeof S=="function"&&S({fingerprintHash:B,fingerprintComponents:C})}))},getFingerprint:y,reportFingerprintWithProInfo:function(A,O){y((function(S){l(S.fingerprintHash,S.fingerprintComponents,A,O)}))}}},292:function(e,t,n){var r=n(38),c="vc",i="bl",d="fo",v="ph",l="ps",y="fr",A="rs",O=null,S=!0,I=0,B=null,C=[],F=!1;function j(ge,k,f){if(O){var R={dir:ge,dr:k,src:f};O({eventType:r.FC,payload:{fc:R}})}}function Q(ge,k){if(ge!==S){var f=Date.now(),R=f-I;ge?(j("i",R,B||k),B=null):j("o",R,k),S=ge,I=f}}function W(){Q(!document.hidden,c)}function ae(){Q(!1,i)}function fe(){Q(!0,d)}function ie(ge){ge&&ge.persisted&&Q(!1,v)}function Ee(ge){ge&&ge.persisted&&Q(!0,l)}function Re(){S||(B=y)}function re(){Q(!0,A)}function se(ge,k,f){ge.addEventListener(k,f),C.push((function(){ge.removeEventListener(k,f)}))}function de(){C.forEach((function(ge){ge()})),C=[],O=null,S=!0,I=0,B=null,F=!1}e.exports={init:function(ge){if(F)return de;if(typeof window>"u"||typeof document>"u")return function(){};O=ge,S=(function(){if(typeof document>"u")return!0;var f=!document.hidden,R=typeof document.hasFocus!="function"||document.hasFocus();return f&&R})(),I=Date.now(),B=null,F=!0;var k="ontouchstart"in window;return se(document,"visibilitychange",W),se(window,"pagehide",ie),se(window,"pageshow",Ee),se(document,"freeze",Re),se(document,"resume",re),k||(se(window,"blur",ae),se(window,"focus",fe)),de},cleanup:de,getState:function(){return{isFocused:S,lastTransitionAt:I,pendingInSrc:B,isInitialized:F}}}},733:function(e,t,n){var r=n(528),c=n(376),i=n(625),d=n(387),v=n(142),l=n(1),y=n(543),A="linkDevices";function O(I,B,C){c.getFingerprint((function(F){var j=F.fingerprintHash,Q=F.fingerprintComponents;d.reportEvent({eventType:A,deviceId:I,fingerprintHash:j,fingerprintComponents:Q,payload:{linkedDevices:[B,C]}})}))}function S(I,B){if(B)for(var C=0,F=B.length;C<F;C+=1){var j=B[C];if(j&&j.length>1){var Q=j[0],W=j[1];Q&&W&&Q!==W&&O(I,Q,W)}}}e.exports={installSdk:function(I,B){var C=I.deviceId,F=I.loadFingerprintJsPro,j=(I.supressInstallBackwardCompatibility||[]).indexOf(I.appId)===-1,Q=(function(ae,fe){var ie=fe?r.getBackwardCompatabilityItem(y.installEventReportedKeyName,y.oldInstallEventReportedKeyName):r.getItem(y.installEventReportedKeyName);return ie?(ie==="true"&&(r.setItem(y.installEventReportedKeyName,ae),ie=ae),ae===ie?{isInstalled:!0,reportedDeviceId:ae}:{isInstalled:!1,reportedDeviceId:ie}):{isInstalled:!1,reportedDeviceId:null}})(C,j);function W(ae,fe,ie){if(ie>3)B&&B(!1);else{var Ee=fe.fingerprintHash,Re=fe.fingerprintComponents,re=ae.fingerprintVisitorId,se=ae.fingerprintRequestId;d.reportAppInstallEvent(C,re,se,Ee,Re,(function(de){if(de){var ge={msg:"Failed sending appInstall",err:JSON.stringify(de),deviceId:C,fingerprintHash:Ee,fingerprintRequestId:se,numberOfRetry:ie};l.send(ge),W(ae,fe,ie+1)}else r.setItem(y.installEventReportedKeyName,C),r.setItem("ns_irts",Date.now()),v.manageKeepAlive({deviceId:C,fingerprintInfo:fe,setStartTimestamp:!0}),B&&B(!0)}))}}Q.isInstalled?B&&B(!1):(Q.reportedDeviceId&&Q.reportedDeviceId!==C&&S(C,[[C,Q.reportedDeviceId]]),i.getFingerprint(F,(function(ae){c.manageFingerprint(C,!1,(function(fe){W(ae,fe,1)}))})))},reportLinkDevices:S}},142:function(e,t,n){var r=n(528),c=n(884),i=n(387),d=n(376),v="ns_ka_ts",l="ns_ka_step_",y=[10,30,40,60];function A(B){return l+B}function O(){var B=parseInt(r.getItem(v),10);return c.isValidDate(new Date(B))?B:null}function S(B,C){var F=(function(){var j=O();if(!j)return null;for(var Q,W=Math.floor((new Date().getTime()-j)/1e3),ae=0;ae<y.length;ae+=1){var fe=y[ae],ie=ae<y.length-1?y[ae+1]:null;if(W>=fe&&(!ie||W<ie)&&(Q=fe,!r.getItem(A(Q))))return{stepToReport:fe,timeToWaitInSeconds:0};if(W<fe)return{stepToReport:fe,timeToWaitInSeconds:fe-W}}return null})();F&&(F.timeToWaitInSeconds===0?((function(j,Q,W){var ae=Q.fingerprintHash,fe=Q.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:j,fingerprintHash:ae,fingerprintComponents:fe,payload:{keepAlive:{step:W}}}),r.setItem(A(W),!0)})(B,C,F.stepToReport),S(B,C)):F.timeToWaitInSeconds>0&&setTimeout((function(){S(B,C)}),1e3*F.timeToWaitInSeconds))}var I={manageKeepAlive:function(B){var C=B.deviceId,F=B.fingerprintInfo;B.setStartTimestamp&&!O()&&r.setItem(v,new Date().getTime()),F?S(C,F):d.getFingerprint((function(j){S(C,j)}))}};e.exports=I},709:function(e,t,n){var r=n(387),c=n(376),i=n(23);function d(A){return i.removeWhitespaces(A)}function v(A){var O=A?A.value||A.innerText:null;return{nodeContent:O,normalizedNodeContent:d(O)}}function l(A){var O=i.transformDomNodeContent(A),S=A||"";return O.onlyDigits=/^[0-9]+$/.test(S),O.containsWhitespace=/\s/.test(S),O.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(S),O}var y={managePasteEvents:function(A){document.addEventListener("paste",(function(O){var S=v(O.target),I=(function(B){try{if(B&&B.clipboardData&&typeof B.clipboardData.getData=="function")return B.clipboardData.getData("text/plain")||""}catch{}return""})(O);setTimeout((function(){(function(B){var C=B.deviceId,F=B.contentBeforePaste,j=F.nodeContent,Q=F.normalizedNodeContent,W=B.clipboardText||"",ae=B.domNode,fe={paste:{domNode:{}}};if(ae.nodeName){fe.paste.domNode.name=ae.nodeName,ae.className&&(fe.paste.domNode.className=ae.className),ae.id&&(fe.paste.domNode.id=ae.id);var ie=ae.getAttribute&&ae.getAttribute("type");ie&&(fe.paste.domNode.type=ie),fe.paste.domNode.content={};var Ee=v(ae),Re=Ee.nodeContent,re=Ee.normalizedNodeContent;Re&&Re.length!==0||!W||(Re=W,re=d(W)),fe.paste.domNode.content.beforePaste=l(j),fe.paste.domNode.content.afterPaste=l(Re),fe.paste.domNode.normalizedContent={},fe.paste.domNode.normalizedContent.beforePaste=l(Q),fe.paste.domNode.normalizedContent.afterPaste=l(re),ae.placeholder&&(fe.paste.domNode.placeholder=ae.placeholder),fe.paste.url=window.location.href}c.getFingerprint((function(se){var de=se.fingerprintHash;r.reportEvent({eventType:"paste",deviceId:C,fingerprintHash:de,payload:fe})}))})({deviceId:A,contentBeforePaste:S,clipboardText:I,domNode:O.target})}),0)}))}};e.exports=y},472:function(e,t,n){var r=n(127),c=n(108),i=n(884),d=n(23),v=n(776),l=n(528),y=n(298).inactivityEvent,A=n(143),O=n(387),S=n(376),I="ns_sid";function B(){c.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function C(j){var Q=j.deviceId,W=j.initModuleConfig,ae=j.jwtSessionId,fe=j.callback,ie=1e4;try{ie=r(ae).inactivityTimeout}catch{ie=1e4}var Ee=new A(new Date().getTime());Ee.addEventListener(y,(function Re(){Ee.removeEventListener(y,Re),F({deviceId:Q,initModuleConfig:W,forceRenewSessionDueToInactivity:!0,callback:fe})})),Ee.trackInactivity(ie)}function F(j){var Q,W=j.deviceId,ae=j.initModuleConfig,fe=!!j.forceRenewSessionDueToInactivity,ie=j.callback,Ee=l.getItem(I);try{Q=r(Ee),v.setSessionId(Ee)}catch{Q=null}fe||!Q||1e3*((Q||{}).exp||0)<new Date().getTime()?(function(Re,re){var se=Re.deviceId,de=(Re.initModuleConfig||{}).storeInfo,ge=new B;ge.addEventListener(ge.eventTypes.fetchComplete,(function k(f){ge.removeEventListener(ge.eventTypes.fetchComplete,k),re(f.detail)})),ge.fetchSessionId(se,de)})({deviceId:W,initModuleConfig:ae},(function(Re){Ee=Re,l.setItem(I,Ee),v.setSessionId(Ee),(function(re){try{var se=re.deviceId,de=r(re.jwtSessionId).ets;if(!de)return;S.getFingerprint((function(ge){var k=ge.fingerprintHash,f=ge.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:se,fingerprintHash:k,fingerprintComponents:f,payload:{ping:{ets:de}}})}))}catch{}})({deviceId:W,jwtSessionId:Ee}),C({deviceId:W,initModuleConfig:ae,jwtSessionId:Ee,callback:ie}),i.isFunction(ie)&&ie(Ee)})):(C({deviceId:W,initModuleConfig:ae,jwtSessionId:Ee,callback:ie}),i.isFunction(ie)&&ie(Ee))}B.prototype=Object.create(c.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(j,Q){var W=this,ae="session?"+d.getClientMetadata(d.metadataType.queryString)+"&deviceId="+j;Q&&(Q.id&&(ae+="&storeId="+Q.id),Q.type&&(ae+="&storeType="+Q.type)),(function fe(){var ie;ie=function(Ee,Re){!Ee&&Re&&Re.ok?W.dispatchEvent(new CustomEvent(W.eventTypes.fetchComplete,{detail:Re.response})):setTimeout(fe,i.randomInt(4e4,6e4))},v.makeRequest({path:ae,method:v.methods.get},ie)})()},e.exports={manageSessionId:F,setRetrySessionTimeout:function(j){throw new Error("Cannot call setRetrySessionTimeout!")}}},198:function(e,t,n){var r=n(38),c=["critical","serious"],i=null,d=null,v=null,l=0,y=!1,A={cpuPressure:null,fps:null};function O(){var I=Date.now();if((function(F){if(!v||F-l<5e3)return!1;var j=typeof A.fps=="number"&&A.fps<30,Q=A.cpuPressure&&c.indexOf(A.cpuPressure)!==-1;return!(!j&&!Q)})(I)){var B={};A.cpuPressure!==null&&(B.cp=A.cpuPressure),A.fps!==null&&(B.fp=A.fps);var C={eventType:r.SM,payload:{sm:B}};v(C),l=I}}function S(){if(i){try{i.disconnect()}catch{}i=null}if(d){var I=typeof window<"u"?window.cancelAnimationFrame:null;I&&I(d),d=null}v=null,l=0,y=!1,A.cpuPressure=null,A.fps=null}e.exports={init:function(I){return y?S:typeof window>"u"?function(){}:(v=I,y=!0,A.cpuPressure=null,A.fps=null,i=(function(){if(typeof window>"u"||window.PressureObserver===void 0)return null;try{var Q=new window.PressureObserver((function(W){if(W.length>0){var ae=W[W.length-1];A.cpuPressure=ae.state,O()}}));return Q.observe("cpu",{sampleInterval:1e3}).catch((function(){})),Q}catch{return null}})(),C=(B=typeof window<"u"&&window.performance&&window.performance.now?window.performance.now.bind(window.performance):typeof performance<"u"&&performance.now?performance.now.bind(performance):Date.now)(),F=0,(j=typeof window<"u"?window.requestAnimationFrame:null)&&(d=j((function Q(){var W=B();F++,W>C+2e3&&(A.fps=Math.round(1e3*F/(W-C)),F=0,C=W,O()),d=j(Q)}))),S);var B,C,F,j},cleanup:S,getState:function(){return{cpuPressure:A.cpuPressure,fps:A.fps}}}},336:function(e,t,n){var r=n(23),c=n(376),i=n(625),d=n(528),v=n(543).fingerprintReportedInSessionKey,l=n(543).eventTriggers,y={},A=null,O=!1,S=!1;function I(C){var F=C||{};Object.keys(F).forEach((function(j){j===l.fingerPrint&&S&&(d.getSessionItem(v)||(i.getFingerprint(O,(function(Q){c.reportFingerprintWithProInfo(A,Q.fingerprintRequestId)})),d.setSessionItem(v,!0)))}))}function B(C,F,j){for(var Q=0;Q<F.payload.length;Q++){var W=F.payload[Q];W&&W.event&&W.action&&r.isSubObject(W.event,C.payload)&&(j[W.action]=!0)}}e.exports={init:function(C){if(C.eventTrigger){try{var F=atob(C.eventTrigger),j=JSON.parse(F);if(!j||!(y=j[C.appId]))return}catch{return}A=C.deviceId,O=C.loadFingerprintJsPro,S=!0,(function(){if(S&&y.init&&Array.isArray(y.init)){for(var Q={},W=0;W<y.init.length;W++){var ae=y.init[W];ae&&ae.url&&ae.action&&new RegExp(y.init[W].url).test(window.location.href)&&(Q[y.init[W].action]=!0)}I(Q)}})()}},triggerEventOnEvent:function(C){if(S){var F=y[C.eventType];if(Array.isArray(F)){for(var j={},Q=0;Q<F.length;Q++){var W=F[Q];W&&W.url&&W.payload&&new RegExp(W.url).test(window.location.href)&&B(C,W,j)}I(j)}}}}},636:function(e,t,n){var r=n(528),c=n(387),i=n(376),d="ns_c_ver",v="c";function l(A){r.setItem(d,JSON.stringify(A))}function y(A,O,S,I){var B=O.fingerprintHash,C=O.fingerprintComponents;c.reportEvent({eventType:"sdkVersionUpgrade",deviceId:A,fingerprintHash:B,fingerprintComponents:C,payload:{versionUpgrade:{version:S,prevVersion:I||""}}}),l(S)}e.exports={reportVersionUpgrade:function(A){var O=A.initModuleVersion,S=A.coreModuleVersion,I={};I.i=O,I[v]=S;var B=A.deviceId,C=A.fingerprintInfo,F=(function(){var j=r.getItem(d);if(j){try{var Q=JSON.parse(j);if(typeof Q=="object")return Q}catch{}return{i:j}}return null})();F&&F.i?F.i!==O||F[v]&&F[v]!==S?(F[v]||(F[v]=S),C?y(B,C,I,F):i.getFingerprint((function(j){y(B,j,I,F)}))):F[v]||l(I):l(I)}}},23:function(e,t,n){var r=n(550),c={payload:"payload",queryString:"queryString"};function i(){return r()}function d(l,y){for(var A in l)if(l.hasOwnProperty(A)&&(!y.hasOwnProperty(A)||!v(l[A],y[A])))return!1;return!0}function v(l,y){if(l===y)return!0;if(typeof l!=typeof y)return!1;if(Array.isArray(l)&&Array.isArray(y)){if(l.length!==y.length)return!1;for(var A=0;A<l.length;A++)if(!v(l[A],y[A]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof y=="object"&&y!==null&&d(l,y)}e.exports={metadataType:c,getClientMetadata:function(l){var y=new Date().getTime(),A=i();return l===c.queryString?"timestamp="+y+"&clientRequestId="+A:{timestamp:y,clientRequestId:A}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(l){var y,A,O=l||"",S=O.length;return S<=1?(y="",A=""):S===2?(y=O.slice(0,1),A=""):S===3?(y=O.slice(0,1),A=O.slice(S-1)):S===4?(y=O.slice(0,2),A=O.slice(S-1)):S===5?(y=O.slice(0,2),A=O.slice(S-2)):S===6?(y=O.slice(0,3),A=O.slice(S-2)):S===7?(y=O.slice(0,3),A=O.slice(S-3)):S===8?(y=O.slice(0,4),A=O.slice(S-3)):S===9?(y=O.slice(0,5),A=O.slice(S-3)):S===10?(y=O.slice(0,5),A=O.slice(S-4)):S>10&&(y=O.slice(0,6),A=O.slice(S-4)),{length:S,prefix:y,suffix:A}},isSubObject:d,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(e,t,n){var r,c=n(723),i=n(115),d=n(884);function v(){return i.getDeviceId()}e.exports={getDeviceId:function(){return r||(r=v()),r},getCoreModuleParams:function(l,y){var A=y||{},O=!!A.isFingerprintJsProOff,S=[];r&&r!==v()&&S.push([r,v()]);var I=d.getAppContextId(),B=A.bulkEvents||{},C=A.supressInstallBackwardCompatibility||[],F=typeof A.logMessageRate=="number"?A.logMessageRate:100,j=A.eventTrigger||"";return Object.assign(l,{deviceId:v(),linkedDevices:S,loadFingerprintJsPro:!O,clientVersion:c.version,appContextId:I,bulkEvents:B,supressInstallBackwardCompatibility:C,logMessageRate:F,eventTrigger:j,eventsReportUrl:A.eventsReportUrl})},parseInitParams:function(l,y){return typeof(A=l)=="string"||A instanceof String?{appId:l,partnerId:y}:l;var A},internalGetDeviceId:v}},342:function(e,t,n){var r=n(723),c=n(242),i=n(1),d=n(102),v=n(651),l=n(884),y=n(884);e.exports={version:r.version,init:l.isBrowser()?function(A,O){var S=v.parseInitParams(A,O),I=S.appId;i.init(r,{appId:I});var B=y.getConfigBaseUrls(S,r),C=B.mainConfigBaseUrl,F=B.altConfigBaseUrl;function j(W,ae){c.getCoreModuleLoadingInfo({appId:I,url:W},(function(fe,ie){!fe&&ie||r.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:W,errorDescription:fe}),ae(ie)}))}function Q(W){typeof W.onPercentage=="number"&&l.randomInt(0,100)>W.onPercentage||(function(ae,fe){var ie=v.getCoreModuleParams(ae,fe);d.init(ie)})(S,W)}return j(C,(function(W){if(W)Q(W);else{if(!F)return;j(F,(function(ae){ae&&Q(ae)}))}})),v.getDeviceId()}:function(A,O){return null},getDeviceId:l.isBrowser()?function(){return v.getDeviceId()}:function(){return null}}},242:function(e,t,n){var r=n(611),c=n(528),i=n(884),d="ns_group";function v(l,y){(function(A,O){r.get(A).end((function(S,I){S?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:S,res:I})}):i.isFunction(O)&&O(null,{ok:I.ok,status:I.status,response:I.body})}))})(l.url,(function(A,O){!A&&O&&O.response?i.isFunction(y)&&y(null,(function(S,I){var B,C=I||{},F=C.configurations||{},j=F[S];if(j){var Q=(function(){var Ee=c.getItem(d);return Ee||(Ee=i.randomInt(1,100),c.setItem(d,Ee)),Ee})(),W=(function(Ee){var Re=[],re=0;for(var se in Ee)if(Ee.hasOwnProperty(se)){var de=Ee[se],ge=re;re+=de.percentage,Re.push({from:ge,to:re,url:de.url})}return Re})(j.groups),ae=(function(Ee,Re){for(var re=0,se=Ee.length;re<se;re++){var de=Ee[re];if(Re>de.from&&Re<=de.to)return de}return null})(W,Q)||{};if(ae)for(B in ae)ae.hasOwnProperty(B)&&(j[B]=ae[B]);var fe=F.default||{};for(B in fe)fe.hasOwnProperty(B)&&!j.hasOwnProperty(B)&&(j[B]=fe[B])}else j=F.default||{};var ie={};for(B in C)C.hasOwnProperty(B)&&B!=="configurations"&&(ie[B]=C[B]);for(B in j)j.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(ie[B]=j[B]);return ie})(l.appId,O.response)):i.isFunction(y)&&y(A.errorDescription)}))}e.exports={getCoreModuleLoadingInfo:function(l,y){var A=0;l&&l.url?v(l,(function O(S,I){S?(A+=1)<=3?v(l,O):i.isFunction(y)&&y(S):i.isFunction(y)&&y(null,I)})):i.isFunction(y)&&y("config url is not configured")}}},115:function(e,t,n){var r,c=n(550),i=n(528),d=n(13),v=n(884),l=n(616),y="ns_dev_id",A=[];function O(){var S=i.getItem(y);r||(r=S||l.toArray(c(),i.hasAccessToLocalStorage()),i.setItem(y,r))}e.exports={init:function(){d.init((function(){d.getKey(y,(function(S){S?(r=S,i.setItem(y,r),d.cleanup()):(O(),d.setKey(y,r),setTimeout(d.cleanup,2e3));for(var I=0,B=A.length;I<B;I+=1){var C=A[I];v.isFunction(C)&&C()}A=[]}))}))},addOnReadyListener:function(S){A.push(S)},getDeviceId:function(){return O(),r},reset:function(){throw new Error("Cannot call reset!")}}}},Y0={};function Ar(e){var t=Y0[e];if(t!==void 0)return t.exports;var n=Y0[e]={exports:{}};return R8[e](n,n.exports,Ar),n.exports}Ar.d=function(e,t){for(var n in t)Ar.o(t,n)&&!Ar.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Ar.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ar.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var ho={};Ar.d(ho,{IP:function(){return po.getDeviceId},Ts:function(){return po.init},rE:function(){return po.version}});var po=Ar(342);const b8={version:po.version,init:po.init,getDeviceId:po.getDeviceId};ho.Ay=b8;var Ba=ho.Ay;ho.IP,ho.Ts,ho.rE;function ka(){if(typeof window<"u"){const e=new URLSearchParams(window.location.search).get("deviceId");if(e)return e}return Ba?Ba.getDeviceId():null}class On{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(n=>n.json()).then(n=>n.nSureSettings?.nSurePartnerId||n.nSurePartnerId).catch(n=>{console.error(n)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowAppBaseUrl(t){return!t||t==="prod"?"https://app.coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3003":`https://app-${t}.coinflow.cash`}static isCoinflowMessageOrigin({url:t,fallbackUrl:n,env:r}){const c=t||n;if(!c)return!1;let i;try{i=new URL(c).hostname}catch{return!1}return r==="local"?i==="localhost":r==="ngrok"?i==="coinflow.ngrok.app":i==="coinflow.cash"||i.endsWith(".coinflow.cash")}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:n,route:r,routePrefix:c,env:i,subtotal:d,useNativeSubtotal:v,presentment:l,inlineCryptoCheckout:y,transaction:A,blockchain:O="solana",webhookInfo:S,email:I,loaderBackground:B,handleHeightChangeId:C,bankAccountLinkRedirect:F,additionalWallets:j,chargebackProtectionData:Q,chargebackProtectionAccountType:W,merchantCss:ae,color:fe,rent:ie,lockDefaultToken:Ee,tokens:Re,planCode:re,disableApplePay:se,disableGooglePay:de,customerInfo:ge,settlementType:k,amount:f,lockAmount:R,nativeSolToConvert:M,theme:$,usePermit:Z,transactionSigner:te,authOnly:ce,deviceId:K,jwtToken:g,origins:_,threeDsChallengePreference:H,supportEmail:q,destinationAuthKey:me,allowedPaymentMethods:ye,allowedCardFunding:Ue,accountFundingTransaction:We,partialUsdcChecked:st,allowedWithdrawSpeeds:at,isZeroAuthorization:ut,zeroAuthorizationConfig:Et,userLocation:ht,appReturnUrl:Rt,depositAmounts:Pt,ownerOverride:vt,bridgeId:w,bankLinkOnly:x,baseUrl:V}){const ne=c?`/${c}/${O}`:`/${O}`,J=new URL(ne+r,V??On.getCoinflowBaseUrl(i));if(t&&J.searchParams.append("pubkey",t),vt&&J.searchParams.append("ownerOverride",vt),n&&J.searchParams.append("sessionKey",n),A&&J.searchParams.append("transaction",A),d&&("cents"in d?(J.searchParams.append("cents",d.cents.toString()),"currency"in d?J.searchParams.append("currency",d.currency.toString()):J.searchParams.append("currency",Ma.USD)):(J.searchParams.append("token",d.address.toString()),J.searchParams.append("amount",d.amount.toString()))),v&&J.searchParams.append("useNativeSubtotal","true"),w&&J.searchParams.append("bridgeId",w),l&&J.searchParams.append("presentment",l),y!==void 0&&J.searchParams.append("inlineCryptoCheckout",String(y)),S&&J.searchParams.append("webhookInfo",In.compressToEncodedURIComponent(JSON.stringify(S))),$&&J.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify($))),ge&&J.searchParams.append("customerInfo",In.compressToEncodedURIComponent(JSON.stringify(ge))),I&&J.searchParams.append("email",I),q&&J.searchParams.append("supportEmail",q),Re&&J.searchParams.append("tokens",Re.toString()),B&&J.searchParams.append("loaderBackground",B),C&&J.searchParams.append("useHeightChange",C.toString()),F&&J.searchParams.append("bankAccountLinkRedirect",F),x&&J.searchParams.append("bankLinkOnly","true"),j&&J.searchParams.append("additionalWallets",In.compressToEncodedURIComponent(JSON.stringify(j))),Q&&J.searchParams.append("chargebackProtectionData",In.compressToEncodedURIComponent(JSON.stringify(Q))),W&&J.searchParams.append("chargebackProtectionAccountType",W),K)J.searchParams.append("deviceId",K);else{const pe=ka();pe&&J.searchParams.append("deviceId",pe)}return ae&&J.searchParams.append("merchantCss",ae),fe&&J.searchParams.append("color",fe),ie&&J.searchParams.append("rent",ie.lamports.toString()),M&&J.searchParams.append("nativeSolToConvert",M.lamports.toString()),Ee&&J.searchParams.append("lockDefaultToken","true"),re&&J.searchParams.append("planCode",re),se&&J.searchParams.append("disableApplePay","true"),de&&J.searchParams.append("disableGooglePay","true"),k&&J.searchParams.append("settlementType",k),f!==void 0&&!J.searchParams.has("amount")&&J.searchParams.append("amount",f.toString()),R&&J.searchParams.append("lockAmount","true"),Z===!1&&J.searchParams.append("usePermit","false"),te&&J.searchParams.append("transactionSigner",te),ce===!0&&J.searchParams.append("authOnly","true"),Et?J.searchParams.append("zeroAuthorizationConfig",JSON.stringify(Et)):ut===!0&&J.searchParams.append("isZeroAuthorization","true"),st===!0&&J.searchParams.append("partialUsdcChecked","true"),g&&J.searchParams.append("jwtToken",g),_&&J.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(_))),ye&&J.searchParams.append("allowedPaymentMethods",ye.join(",")),Ue?.length&&J.searchParams.append("allowedCardFunding",Ue.join(",")),Pt&&J.searchParams.append("depositAmounts",Pt.join(",")),H&&J.searchParams.append("threeDsChallengePreference",H),me&&J.searchParams.append("destinationAuthKey",me),We&&J.searchParams.append("accountFundingTransaction",In.compressToEncodedURIComponent(JSON.stringify(We))),at&&J.searchParams.append("allowedWithdrawSpeeds",at.join(",")),ht&&(J.searchParams.append("lat",ht.lat.toString()),J.searchParams.append("lng",ht.lng.toString())),Rt&&J.searchParams.append("appReturnUrl",Rt),J.toString()}static getCoinflowIntentsUrl({baseUrl:t,route:n,color:r,theme:c,env:i,origins:d,deviceId:v,merchantCss:l,loaderBackground:y,handleHeightChangeId:A}){const O=new URL(n,t??On.getCoinflowBaseUrl(i));if(d&&O.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(d))),v)O.searchParams.append("deviceId",v);else{const S=ka();S&&O.searchParams.append("deviceId",S)}return l&&O.searchParams.append("merchantCss",l),r&&O.searchParams.append("color",r),y&&O.searchParams.append("loaderBackground",y),A&&O.searchParams.append("useHeightChange",A.toString()),c&&O.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(c))),O.toString()}static getPurchaseRoute({merchantId:t,checkoutVersion:n}){return n==="v3"?{route:`/purchase/${t}`,routePrefix:"v3"}:{route:`/purchase-v2/${t}`}}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:n}=t;if(!es)throw new Error("@solana/web3.js dependency is required for Solana");if(!br)throw new Error("bs58 dependency is required for Solana");if(n)return br.encode(Uint8Array.from(n.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},eth:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},base:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},monad:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},tempo:()=>{if(!("transaction"in t))return;const{transaction:n}=t;return In.compressToEncodedURIComponent(JSON.stringify(n))},user:()=>{}})()}static byBlockchain(t,n){switch(t){case"solana":return n.solana;case"polygon":return n.polygon;case"eth":return n.eth;case"base":return n.base;case"arbitrum":return n.arbitrum;case"monad":return n.monad;case"tempo":return n.tempo;case"user":return n.user;default:throw new Error("blockchain not supported!")}}}function A8(e){if(!e)return;let t,n;if("name"in e&&e.name&&(t=e.name.split(" ")[0],n=e.name.split(" ").slice(1).join(" ")),"firstName"in e&&e.firstName&&(t=e.firstName),"lastName"in e&&e.lastName&&(n=e.lastName),t&&n)return{firstName:t,lastName:n}}function ts({event:e,error:t,env:n,merchantId:r}){const c=t instanceof Error,i=c?t.message:t,d=c?t.stack:"";fetch(`${On.getCoinflowApiUrl(n)}/api/telemetry/frontend-error`,{method:"POST",body:JSON.stringify({message:i,stackTrace:d,merchantId:r,event:e}),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var mo=(e=>(e.SignMessage="signMessage",e.SignTransaction="signTransaction",e.SendTransaction="sendTransaction",e.HeightChange="heightChange",e.Success="success",e.AuthDeclined="authDeclined",e.InputError="inputError",e.InputValid="inputValid",e.Loaded="loaded",e.AccountLinked="accountLinked",e.AccountNotLinked="accountNotLinked",e.AccountLinkError="accountLinkError",e.Redirect="redirect",e.Overlay="overlay",e.UpdateSubtotal="updateSubtotal",e))(mo||{}),X0=(e=>(e.OverlayOffset="overlayOffset",e))(X0||{}),q0=(e=>(e.Open="open",e.Close="close",e))(q0||{});function ns(e){let t;if("signer"in e&&typeof e.signer=="object"&&e.signer&&"wallet"in e.signer?t=e.signer.wallet:"wallet"in e&&e.wallet&&(t=e.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function J0(e,t,n){let r;try{if(r=JSON.parse(e),!("method"in r)||!("data"in r))return}catch(d){console.error("handleIFrameMessage JSON parse",d);return}const{data:c,method:i}=r;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(c):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(c):void 0;case"sendTransaction":return t.handleSendTransaction(c);case"heightChange:"+n:return t.handleHeightChange?t.handleHeightChange(c):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(r.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(r.info);return;case"inputError":if(!t.onInputError)return;t.onInputError(r.info);return;case"inputValid":if(!t.onInputValid)return;t.onInputValid(r.info);return;case"loaded":return;case"accountLinked":if(!t.onAccountLinked)return;t.onAccountLinked(r.info);return;case"accountNotLinked":if(!t.onAccountNotLinked)return;t.onAccountNotLinked(r.info);return;case"accountLinkError":if(!t.onAccountLinkError)return;t.onAccountLinkError(r.info);return;case"redirect":window.open(c,"_blank");return;case"overlay":if(!t.handleOverlay)return;t.handleOverlay(c);return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(mo)}`)}function rs(e){let t,n;return"signer"in e&&typeof e.signer=="object"&&e.signer&&"blockchain"in e.signer&&"wallet"in e.signer?(t=e.signer.blockchain,n=e.signer.wallet):"blockchain"in e&&e.blockchain&&(t=e.blockchain,n=e.wallet),t?{...On.byBlockchain(t,{solana:()=>S8({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),eth:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),polygon:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),base:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),arbitrum:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),monad:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),tempo:()=>go({wallet:n,onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid}),user:()=>I8(e)})(),onAccountLinked:e.onAccountLinked,onAccountNotLinked:e.onAccountNotLinked,onAccountLinkError:e.onAccountLinkError}:{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:e.onSuccess,onAuthDeclined:e.onAuthDeclined,onInputError:e.onInputError,onInputValid:e.onInputValid,onAccountLinked:e.onAccountLinked,onAccountNotLinked:e.onAccountNotLinked,onAccountLinkError:e.onAccountLinkError}}function S8({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{const d=Q0(i);return await e.sendTransaction(d)},handleSignMessage:async i=>{const d=e.signMessage;if(!d)throw new Error("signMessage is not supported by this wallet");const v=await d(new TextEncoder().encode(i));if(!br)throw new Error("bs58 dependency is required");return br.encode(v)},handleSignTransaction:async i=>{const d=e.signTransaction;if(!d)throw new Error("signTransaction is not supported by this wallet");const v=Q0(i),l=await d(v);if(!br)throw new Error("bs58 dependency is required");return br.encode(Uint8Array.from(l.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function Q0(e){if(!es)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!br)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=br.decode(e),n=es.VersionedTransaction.deserialize(t);return n.version==="legacy"?es.Transaction.from(t):n}function go({wallet:e,onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}){return{handleSendTransaction:async i=>{const d=JSON.parse(Buffer.from(i,"base64").toString()),{hash:v}=await e.sendTransaction(d);return v},handleSignMessage:async i=>e.signMessage(i),onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:c}}function I8({onSuccess:e,onAuthDeclined:t,onInputError:n,onInputValid:r}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:e,onAuthDeclined:t,onInputError:n,onInputValid:r}}class O8{static on(t,n){document.addEventListener(t,n)}static dispatch(t,n){document.dispatchEvent(new CustomEvent(t,{detail:n}))}static remove(t,n){document.removeEventListener(t,n)}}const ef={"card-number":180,expiration:96,cvv:80},tf=8,$o="3rem",Da=48,Ua=1,os=1,Pa=2,N8={"card-number":"1fr",expiration:"96px",cvv:"80px"},nf={"card-number":"card",expiration:"exp",cvv:"cvv"};function jo(e,t){return e.includes(t)}function T8(e){const t=e.reduce((r,c)=>r+ef[c],0),n=Math.max(0,e.length-1)*tf;return t+n}function x8({inputs:e,hasIcon:t}){const n=[],r=[],c=(i,d)=>{n.length>0&&(n.push(`d${i.toUpperCase()}`),r.push("1px")),n.push(i),r.push(d)};t&&jo(e,"card-number")&&c("icon","auto");for(const i of e)c(nf[i],N8[i]);return`"${n.join(" ")}" ${$o} / ${r.join(" ")}`}function L8({inputs:e,hasIcon:t}){const n=jo(e,"card-number"),r=jo(e,"expiration"),c=jo(e,"cvv");if(!n||!r&&!c)return null;const i=`${$o} ${Ua}px ${$o}`;if(r&&c)return{template:rf(t?'"icon card card card" "dHR dHR dHR dHR" "exp exp dEV cvv"':'"card card card" "dHR dHR dHR" "exp dEV cvv"',i,t?"auto minmax(0, 1fr) 1px minmax(0, 1fr)":"minmax(0, 1fr) 1px minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"},{area:"dEV",orientation:"v"}]};const d=r?"exp":"cvv",v=t?`"icon card" "dHR dHR" "${d} ${d}"`:`"card" "dHR" "${d}"`;return{template:rf(v,i,t?"auto minmax(0, 1fr)":"minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"}]}}function rf(e,t,n){const r=e.match(/"[^"]*"/g)??[],c=t.split(/\s+/);return`${r.map((d,v)=>`${d} ${c[v]??""}`.trim()).join(" ")} / ${n}`}function is({inputs:e,hasIcon:t=!1,allowTwoRow:n=!0}){const r=e.map(v=>nf[v]);if(e.length===1)return{inline:`"${r[0]}" ${$o} / 1fr`,twoRow:null,breakpointPx:null,fieldAreas:r,hasIconArea:!1,twoRowDividers:[]};const c=t&&jo(e,"card-number"),i=x8({inputs:e,hasIcon:c}),d=n?L8({inputs:e,hasIcon:c}):null;return{inline:i,twoRow:d?.template??null,breakpointPx:d?T8(e)+2*os:null,fieldAreas:r,hasIconArea:c,twoRowDividers:d?.dividers??[]}}function of({gridSelector:e,layout:t,containerName:n,extraBaseRules:r="",extraCompactRules:c=""}){const i=`${e} { display: grid; grid-template: ${t.inline}; }
|
|
19
19
|
${r}`;if(!t.twoRow||t.breakpointPx===null)return i;const d=n?`${n} `:"";return`${i}
|
|
20
20
|
@container ${d}(width < ${t.breakpointPx}px) {
|
|
21
21
|
${e} { grid-template: ${t.twoRow}; }
|
|
22
22
|
${c}
|
|
23
|
-
}`}const Fa={"card-form":["card-number","expiration","cvv"],"card-number-form":["card-number","expiration"],"cvv-form":["cvv"]},ss={"card-form":is({inputs:Fa["card-form"]}),"card-number-form":is({inputs:Fa["card-number-form"]}),"cvv-form":is({inputs:Fa["cvv-form"]})},
|
|
24
|
-
${n}`}const uf=Pa+os,ff={minWidth:"0",margin:"1px",borderRadius:"4px",opacity:"1",animation:`${Ha} 1.5s ease-in-out infinite`},L8={backdrop:"rgba(255, 255, 255, 0.05)",box:"rgba(255, 255, 255, 0.30)"},C8={backdrop:"rgba(0, 0, 0, 0.04)",box:"rgba(0, 0, 0, 0.30)"},M8={backdrop:"rgba(128, 128, 128, 0.08)",box:"rgba(128, 128, 128, 0.38)"};function B8(e){const t=e.trim().toLowerCase();let n=t.startsWith("#")?t.slice(1):"";if(n&&/^[0-9a-f]+$/.test(n)&&(n.length===3&&(n=n.split("").map(c=>c+c).join("")),n.length===8&&(n=n.slice(0,6)),n.length===6))return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)];const r=t.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);return r?[Number(r[1]),Number(r[2]),Number(r[3])]:null}function lf(e){const t=e?.background?B8(e.background):null;if(!t)return M8;const[n,r,c]=t;return(.299*n+.587*r+.114*c)/255<.5?L8:C8}const Ko={cardNumber:"Card number is invalid. Please double check information.",expiration:"Expiration is invalid. Please double check information.",cvv:"CVV is invalid. Please double check information.",cvvEmpty:"Please enter your CVV to proceed.",invalidCardToken:"Card token is invalid. Please add a new card",cardEntryUnavailable:"Card entry is unavailable. Please re-enter your card details."};function k8({cardError:e,expirationError:t,cvvError:n,cvvEmpty:r,isCvvOnly:c}){return e?{field:"card-number",message:Ko.cardNumber}:t?{field:"expiration",message:Ko.expiration}:n?c&&r?{field:"cvv",message:Ko.cvvEmpty}:{field:"cvv",message:Ko.cvv}:null}function D8({previous:e,current:t}){return t?e?e.field===t.field?e.message===t.message?[]:[{kind:"error",info:t}]:[{kind:"valid",info:{field:e.field}},{kind:"error",info:t}]:[{kind:"error",info:t}]:e?[{kind:"valid",info:{field:e.field}}]:[]}We.nftCartItem=void 0,(e=>{(t=>{t.NFT="nft"})(e.itemClass||(e.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(e.productType||(e.productType={}))})(We.nftCartItem||(We.nftCartItem={}));let ja=null;async function U8({merchantId:e,env:t}){if(!ja&&typeof window<"u")try{const n=await window.Verisoul?.session();n?.session_id&&(ja=n.session_id)}catch(n){console.error(n),ts({event:"ProtectionInit",env:t,merchantId:e,error:n})}}function P8(){return ja}const F8="forterToken",V8=1024,G8=/[\x00-\x1F\x7F]/;let cs=null,df=!1,Ka=!1;function Wa(e){if(!e)return null;let t=e;try{t=decodeURIComponent(e)}catch{}return!t||t.length>V8||G8.test(t)?null:t}function hf(){if(typeof document>"u"||!document.cookie)return null;let e=null;for(const t of document.cookie.split(";")){const n=t.indexOf("=");if(n===-1)continue;const r=t.slice(0,n).trim(),c=t.slice(n+1);if(r===F8)return c;const i=r.toLowerCase();i.includes("forter")&&i.includes("token")&&(e=c)}return e}function Wo(){return cs??Wa(hf())}const H8="ftr:tokenReady";function $8(e){const t=e.detail,n=typeof t=="string"?Wa(t):null;n&&(cs=n,df=!0)}function j8({timeoutMs:e=15e3,intervalMs:t=250}={}){if(typeof window>"u"||(typeof document<"u"&&document.addEventListener(H8,$8),Ka))return;Ka=!0;const n=Date.now(),r=()=>{if(!df){const c=Wa(hf());c&&(cs=c)}if(Date.now()-n>=e){Ka=!1,cs||K8();return}window.setTimeout(r,t)};r()}function K8(){if(typeof document>"u")return;const e=(document.cookie||"").split(";").map(n=>n.split("=")[0].trim()).filter(Boolean),t=typeof window<"u"?Object.keys(window).filter(n=>/ftr|forter/i.test(n)):[];console.warn("[forter] token never surfaced after init.","cookieNames:",e,"forterGlobals:",t)}async function W8({timeoutMs:e=2e3,intervalMs:t=100}={}){const n=Wo();return n||(typeof window>"u"?null:new Promise(r=>{const c=Date.now(),i=()=>{const d=Wo();if(d)return r(d);if(Date.now()-c>=e)return r(Wo());window.setTimeout(i,t)};window.setTimeout(i,t)}))}const pf="x-device-id",mf="x-session-id",gf="x-coinflow-referrer",vf="x-forter-token";function yf(){return{[pf]:ka(),[mf]:P8(),[vf]:Wo()}}function z8(){try{return document.referrer||null}catch{return null}}function Z8(){return{...yf(),[gf]:z8()}}class Y8{static payloadVersion=1;static maxLength=8192;static encode({deviceId:t,sessionId:n,purchaseToken:r}){if(!t&&!n&&!r)return null;const c=JSON.stringify({v:this.payloadVersion,deviceId:t||null,sessionId:n||null,purchaseToken:r||null}),i=this.base64UrlEncode(new TextEncoder().encode(c));return i.length>this.maxLength?null:i}static base64UrlEncode(t){let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}const X8="9JBW2RHC7JNJN8ZQ",wf={prod:"315da543-c486-435a-aa21-53844c469822",sandbox:"e9f629c4-80ee-4c6d-967e-62af47d8679e"};async function _f({coinflowEnv:e,merchantId:t}){const n=e==="prod"?"prod":"sandbox";if(!(typeof window<"u"&&new URLSearchParams(window.location.search).has("deviceId"))){const c=await new Tn(e).getNSurePartnerId(t);if(c){const i=X8;try{Ba.init(i,c)}catch(d){console.error("Failed to initialize nSure SDK:",d),ts({event:"NSureInit",error:d,env:e,merchantId:t})}}}if(typeof document<"u"&&!document.querySelector("script[verisoul-project-id]")){const i=wf[n]??wf.sandbox;i&&await new Promise(d=>{const v=document.createElement("script");v.src=`https://js.v.coinflow.sh/${n}/bundle.js`,v.async=!0,v.setAttribute("verisoul-project-id",i),v.onload=()=>{U8({merchantId:t,env:e}).then(d)},v.onerror=l=>{ts({event:"ProtectionError",error:l,env:e,merchantId:t}),d()},document.head.appendChild(v)})}}function q8(e){return JSON.stringify(e)}function J8(e){if(!e)return null;try{const t=JSON.parse(e);return typeof t?.token!="string"||!t.token?null:{token:t.token,country:typeof t.country=="string"?t.country:void 0}}catch{return{token:e}}}function Q8({cached:e,country:t}){return e?t?e.country===t:!0:!1}const Ef="bankLinkStatus";function em({status:e}){return{[Ef]:e}}function tm({bankLinkOnly:e,hasCallbackRedirect:t,isReactNativeLink:n}){return e?"emit":t?"redirect":n?"returnToApp":"returnToCheckout"}const nm=500,rm=$e.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return Tn.getCoinflowUrl(this.args)}},emits:{onMessage(e){return!0}},methods:{sendMessage(e){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(e,"*")},handleIframeMessages({data:e,origin:t}){const n=new URL(Tn.getCoinflowBaseUrl(this.args.env)).origin;if(t!==n||typeof e!="string")return;this.$emit("onMessage",{data:e,origin:t});const r=Y0(e,this.args,this.args.handleHeightChangeId);r&&r.then(this.sendMessage).catch(c=>{console.error(c),this.sendMessage("ERROR "+c.message)})},async listenForMessage(e){let t;return new Promise((n,r)=>{if(t=({data:c,origin:i})=>{const d=new URL(Tn.getCoinflowBaseUrl(this.args.env)).origin;if(i===d&&typeof c=="string"){if(c.startsWith("ERROR")){r(new Error(c.replace("ERROR","")));return}e(c)&&n(c)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(e,t){return this.sendMessage(e),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),za=(e,t)=>{const n=e.__vccOpts||e;for(const[r,c]of t)n[r]=c;return n},om=["src","scrolling"];function im(e,t,n,r,c,i){return $e.openBlock(),$e.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write;geolocation",title:"withdraw",frameBorder:"0",src:e.url,scrolling:e.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const d=e.$refs.iframeRef;d&&(d.style.opacity="1")})},null,40,om)}const us=za(rm,[["render",im]]),sm=$e.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:us},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const e=ns(this.args);return{...this.args,walletPubkey:e,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...rs(this.args),handleHeightChange:this.args.handleHeightChange}}}});function am(e,t,n,r,c,i){const d=$e.resolveComponent("coinflow-i-frame");return $e.openBlock(),$e.createBlock(d,{args:{...e.iframeProps,...e.messageHandlers,handleHeightChangeId:e.handleHeightChangeId}},null,8,["args"])}const cm=za(sm,[["render",am]]),um=$e.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:us},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const e=ns(this.args);return{...this.args,walletPubkey:e,route:`/purchase-v2/${this.args.merchantId}`,transaction:Tn.getTransaction(this.args)}},messageHandlers(){return{...rs(this.args),handleHeightChange:this.args.handleHeightChange}}}});function fm(e,t,n,r,c,i){const d=$e.resolveComponent("coinflow-i-frame");return $e.openBlock(),$e.createBlock(d,{args:{...e.iframeProps,...e.messageHandlers,handleHeightChangeId:e.handleHeightChangeId}},null,8,["args"])}const lm=za(um,[["render",fm]]),dm=$e.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(e){return $e.onMounted(()=>{_f({coinflowEnv:e.args.env,merchantId:e.args.merchantId})}),(t,n)=>null}}),hm=["src"],Rf=$e.defineComponent({__name:"CoinflowCardFormV2",props:{args:{type:Object,required:!0}},setup(e,{expose:t}){const n=$e.ref(null),r=$e.ref(null),c=$e.ref(!1),i=$e.ref(null),d=as[e.args.variant],v=d.areas,l=$e.ref(Va),y=$e.ref(d.inline),A=$e.ref(!0),O=$e.computed(()=>c.value&&i.value?`${i.value}px`:`${l.value}px`),S=$e.computed(()=>lf(e.args.theme));function I(W){return{...ff,background:S.value.box,gridArea:W}}const B=$e.computed(()=>{const W=Tn.getCoinflowBaseUrl(e.args.env),se=new URL(`/form/v2/${e.args.variant}`,W);return se.searchParams.append("merchantId",e.args.merchantId),se.searchParams.append("useHeightChange","true"),e.args.theme&&se.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(e.args.theme))),e.args.token&&se.searchParams.append("token",e.args.token),se.toString()});function C(W){const{data:se,origin:ue,source:oe}=W;if(oe!==n.value?.contentWindow)return;const Ee=new URL(Tn.getCoinflowBaseUrl(e.args.env)).origin;if(ue===Ee)try{const Re=JSON.parse(se);if(Re.method===mo.Loaded)c.value=!0,e.args.onLoad?.();else if(Re.method===mo.HeightChange){const ne=Number(Re.data);Number.isFinite(ne)&&ne>0&&(i.value=ne)}}catch{}}function F(W){W.propertyName==="opacity"&&c.value&&(A.value=!1)}$e.watch(c,(W,se,ue)=>{if(!W)return;const oe=setTimeout(()=>A.value=!1,of);ue(()=>clearTimeout(oe))});let j=null;$e.onMounted(()=>{window.addEventListener("message",C);const W=r.value;if(!W||!d.compact)return;const se=()=>{const ue=W.clientWidth;l.value=sf({variant:e.args.variant,width:ue}),y.value=af({variant:e.args.variant,width:ue})};se(),j=new ResizeObserver(se),j.observe(W)}),$e.onUnmounted(()=>{window.removeEventListener("message",C),j?.disconnect()});async function Q(){return new Promise((W,se)=>{if(!n.value?.contentWindow){se(new Error("Card form iframe not loaded"));return}const ue=({data:Ee,origin:Re})=>{const ne=new URL(Tn.getCoinflowBaseUrl(e.args.env)).origin;if(Re===ne)try{const ie=JSON.parse(Ee);if(ie.method!=="tokenize")return;if(window.removeEventListener("message",ue),typeof ie.data=="string"&&ie.data.startsWith("ERROR")){se(new Error(ie.data.replace("ERROR ","")));return}const de=typeof ie.data=="string"?JSON.parse(ie.data):ie.data;W(de)}catch{}};window.addEventListener("message",ue);const oe=new URL(Tn.getCoinflowBaseUrl(e.args.env)).origin;n.value.contentWindow.postMessage("tokenize",oe)})}return t({tokenize:Q}),(W,se)=>($e.openBlock(),$e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,style:$e.normalizeStyle({position:"relative",width:"100%",height:O.value})},[A.value?($e.openBlock(),$e.createElementBlock("div",{key:0,role:"status","aria-label":"Loading card form",onTransitionend:F,style:$e.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",pointerEvents:"none",flexDirection:"column",gap:"8px",padding:`${$e.unref(uf)}px`,boxSizing:"border-box",borderRadius:"8px",background:S.value.backdrop,opacity:c.value?"0%":"100%",transition:"opacity 300ms linear, height 150ms ease-out"})},[$e.createElementVNode("div",{style:$e.normalizeStyle({display:"grid",gap:0,flex:1,width:"100%",gridTemplate:y.value})},[($e.openBlock(!0),$e.createElementBlock($e.Fragment,null,$e.renderList($e.unref(v),ue=>($e.openBlock(),$e.createElementBlock("div",{key:ue,style:$e.normalizeStyle(I(ue))},null,4))),128))],4)],36)):$e.createCommentVNode("",!0),$e.createElementVNode("iframe",{ref_key:"iframeRef",ref:n,src:B.value,title:"Card Form",frameBorder:"0",allow:"payment",style:$e.normalizeStyle({width:"100%",height:O.value,border:"none",opacity:c.value?1:0,transition:"opacity 300ms linear, height 150ms ease-out"})},null,12,hm)],4))}}),pm={style:{position:"relative",height:"100%"}},mm={style:{position:"relative",zIndex:10,height:"100%"}},bf=$e.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(e){const{onSuccess:t}=e.args,n=e.args.subtotal;function r(){const S=ns(e.args);return{...e.args,subtotal:n,walletPubkey:S,transaction:void 0,routePrefix:"form",route:`/${e.route}/${e.args.merchantId}`}}function c(){return{...rs(e.args),handleHeightChange:e.args.handleHeightChange}}const i=$e.ref(.8),d=$e.ref("flex"),v=Math.random().toString(16).substring(2),l=$e.ref(null),y=$e.ref(!1);let A=JSON.stringify(n);$e.watch([y,()=>e.args.subtotal],([S,I])=>{if(!S||!I)return;const B=JSON.stringify(I);A!==B&&(A=B,l.value?.sendMessage(`${mo.UpdateSubtotal}:${B}`))});function O({data:S}){try{const I=JSON.parse(S);if("method"in I&&I.method==="loaded"&&(i.value=1,d.value="none",y.value=!0),"method"in I&&typeof I.data=="string"&&I.data.startsWith("ERROR"))return e.args?.onError?.(I.info),!1;if(!("method"in I)||I.method!=="getToken")return}catch{return}t?.(S)}return(S,I)=>($e.openBlock(),$e.createElementBlock("div",pm,[$e.createElementVNode("div",{style:$e.normalizeStyle({backgroundColor:e.args.color,display:e.overlayDisplayOverride??d.value,opacity:i.value,alignItems:e.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[$e.renderSlot(S.$slots,"default")],4),$e.createElementVNode("div",mm,[$e.createVNode(us,{ref_key:"iframeRef",ref:l,onOnMessage:O,args:{...r(),...c(),handleHeightChangeId:$e.unref(v)}},null,8,["args"])])]))}}),gm={id:"svg-logo",viewBox:"0 0 35 15"},vm={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},ym={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},wm=["fill"],_m=$e.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(e){const t=e.color==="white"?"#000":"#FFF";return(n,r)=>($e.openBlock(),$e.createElementBlock("svg",gm,[($e.openBlock(),$e.createElementBlock("svg",vm,[r[1]||(r[1]=$e.createElementVNode("title",null,"Apple Logo",-1)),$e.createElementVNode("g",ym,[$e.createElementVNode("g",{fill:$e.unref(t)},[...r[0]||(r[0]=[$e.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,wm)])]))]))}}),Em=$e.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(e){return(t,n)=>($e.openBlock(),$e.createBlock(bf,{route:"apple-pay",args:e.args},{default:$e.withCtx(()=>[$e.createVNode(_m,{color:e.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Rm={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},bm={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Am=$e.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(e){return(t,n)=>($e.openBlock(),$e.createElementBlock($e.Fragment,null,[e.color==="white"?($e.openBlock(),$e.createElementBlock("svg",Rm,[...n[0]||(n[0]=[$e.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):$e.createCommentVNode("",!0),e.color==="black"?($e.openBlock(),$e.createElementBlock("svg",bm,[...n[1]||(n[1]=[$e.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):$e.createCommentVNode("",!0)],64))}}),Sm=$e.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(e){return(t,n)=>($e.openBlock(),$e.createBlock(bf,{route:"google-pay",args:e.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:$e.withCtx(()=>[$e.createVNode(Am,{color:e.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Im=Rf;We.BANK_LINK_REVEAL_DELAY_MS=nm,We.BANK_LINK_STATUS_PARAM=Ef,We.BankingCurrencies=z0,We.CARD_ENTRY_BORDER_PX=os,We.CARD_ENTRY_DIVIDER_PX=Ua,We.CARD_ENTRY_MARGIN_PX=Pa,We.CARD_ENTRY_MIN_WIDTHS=q0,We.CARD_ENTRY_ROW_HEIGHT=$o,We.CARD_ENTRY_ROW_HEIGHT_PX=Da,We.CARD_ENTRY_SLOT_GAP_PX=J0,We.CARD_FIELD_ERROR_MESSAGES=Ko,We.COMPACT_SKELETON_HEIGHT_PX=rf,We.CardFunding=Wc,We.CardType=Zc,We.ChargebackProtectionAccountType=jc,We.CoinflowApplePayButton=Em,We.CoinflowCardForm=Im,We.CoinflowCardFormV2=Rf,We.CoinflowFraudProtectionHeader=Y8,We.CoinflowGooglePayButton=Sm,We.CoinflowIframe=us,We.CoinflowPurchase=lm,We.CoinflowPurchaseProtection=dm,We.CoinflowUtils=Tn,We.CoinflowWithdraw=cm,We.Currency=Ma,We.CurrencyToISO4217=f8,We.DEVICE_ID_HEADER=pf,We.EventBus=S8,We.FORTER_TOKEN_HEADER=vf,We.IFrameMessageMethods=mo,We.INLINE_SKELETON_HEIGHT_PX=Va,We.MerchantStyle=$c,We.PaymentMethods=zc,We.REFERRER_HEADER=gf,We.RN_REDIRECT_MESSAGE_NAME=md,We.SESSION_ID_HEADER=mf,We.SKELETON_BOX_STYLE=ff,We.SKELETON_FADE_MS=of,We.SKELETON_LAYOUTS=as,We.SKELETON_PULSE_ANIMATION_NAME=Ha,We.SKELETON_ROOT_PADDING_PX=uf,We.SettlementType=Hc,We.ThreeDsChallengePreference=Kc,We.WithdrawCategory=Vc,We.WithdrawCurrencies=W0,We.WithdrawSpeed=Gc,We.awaitForterToken=W8,We.bankLinkCallbackParams=em,We.buildCardEntryGridCss=tf,We.buildCardEntryLayout=is,We.buildSkeletonCss=x8,We.canReuseLinkToken=Q8,We.captureForterToken=j8,We.getCardFieldInputEvents=D8,We.getCardFieldValidationError=k8,We.getCoinflowProtectionHeaders=yf,We.getCoinflowPurchaseHeaders=Z8,We.getCurrencyDecimals=g8,We.getCustomerName=E8,We.getForterToken=Wo,We.getHandlers=rs,We.getSkeletonColors=lf,We.getSkeletonGridClass=cf,We.getSkeletonGridTemplate=af,We.getWalletPubkey=ns,We.guessSkeletonHeightPx=sf,We.handleIFrameMessage=Y0,We.initCoinflowProtection=_f,We.invertRate=y8,We.isBankingCurrency=d8,We.isTypedCurrencyCents=v8,We.isWithdrawCurrency=l8,We.isZeroAuthSavedPaymentMethods=hd,We.isZeroAuthVerifyCard=dd,We.parseCachedLinkToken=J8,We.paymentMethodLabels=pd,We.recordFrontendError=ts,We.resolveBankLinkCompletion=tm,We.serializeCachedLinkToken=q8,We.shouldStackSkeleton=$a,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})}));
|
|
23
|
+
}`}const Fa={"card-form":["card-number","expiration","cvv"],"card-number-form":["card-number","expiration"],"cvv-form":["cvv"]},ss={"card-form":is({inputs:Fa["card-form"]}),"card-number-form":is({inputs:Fa["card-number-form"]}),"cvv-form":is({inputs:Fa["cvv-form"]})},sf=2*os+2*Pa,Va=Da+sf,af=2*Da+Ua+sf;function Ga(e){return{inline:e.inline,compact:e.twoRow??void 0,compactMaxWidthPx:e.breakpointPx??void 0,areas:e.fieldAreas}}const as={"card-form":Ga(ss["card-form"]),"card-number-form":Ga(ss["card-number-form"]),"cvv-form":Ga(ss["cvv-form"])},Ha="coinflow-card-form-skeleton-pulse",cf=300;function $a({variant:e,width:t}){const{compact:n,compactMaxWidthPx:r}=as[e];return n!==void 0&&r!==void 0&&t>0&&t<r}function uf({variant:e,width:t}){return $a({variant:e,width:t})?af:Va}function ff({variant:e,width:t}){const{inline:n,compact:r}=as[e];return r&&$a({variant:e,width:t})?r:n}function lf(e){return`coinflow-card-form-skeleton-grid--${e}`}function C8(e){const t=lf(e),n=of({gridSelector:`.${t}`,layout:ss[e],extraBaseRules:`.${t} { gap: 0; flex: 1; }`});return`@keyframes ${Ha} {0%,100%{opacity:1}50%{opacity:0.4}}
|
|
24
|
+
${n}`}const df=Pa+os,hf={minWidth:"0",margin:"1px",borderRadius:"4px",opacity:"1",animation:`${Ha} 1.5s ease-in-out infinite`},M8={backdrop:"rgba(255, 255, 255, 0.05)",box:"rgba(255, 255, 255, 0.30)"},B8={backdrop:"rgba(0, 0, 0, 0.04)",box:"rgba(0, 0, 0, 0.30)"},k8={backdrop:"rgba(128, 128, 128, 0.08)",box:"rgba(128, 128, 128, 0.38)"};function D8(e){const t=e.trim().toLowerCase();let n=t.startsWith("#")?t.slice(1):"";if(n&&/^[0-9a-f]+$/.test(n)&&(n.length===3&&(n=n.split("").map(c=>c+c).join("")),n.length===8&&(n=n.slice(0,6)),n.length===6))return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)];const r=t.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);return r?[Number(r[1]),Number(r[2]),Number(r[3])]:null}function pf(e){const t=e?.background?D8(e.background):null;if(!t)return k8;const[n,r,c]=t;return(.299*n+.587*r+.114*c)/255<.5?M8:B8}const Ko={cardNumber:"Card number is invalid. Please double check information.",expiration:"Expiration is invalid. Please double check information.",cvv:"CVV is invalid. Please double check information.",cvvEmpty:"Please enter your CVV to proceed.",invalidCardToken:"Card token is invalid. Please add a new card",cardEntryUnavailable:"Card entry is unavailable. Please re-enter your card details."};function U8({cardError:e,expirationError:t,cvvError:n,cvvEmpty:r,isCvvOnly:c}){return e?{field:"card-number",message:Ko.cardNumber}:t?{field:"expiration",message:Ko.expiration}:n?c&&r?{field:"cvv",message:Ko.cvvEmpty}:{field:"cvv",message:Ko.cvv}:null}function P8({previous:e,current:t}){return t?e?e.field===t.field?e.message===t.message?[]:[{kind:"error",info:t}]:[{kind:"valid",info:{field:e.field}},{kind:"error",info:t}]:[{kind:"error",info:t}]:e?[{kind:"valid",info:{field:e.field}}]:[]}Ke.nftCartItem=void 0,(e=>{(t=>{t.NFT="nft"})(e.itemClass||(e.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(e.productType||(e.productType={}))})(Ke.nftCartItem||(Ke.nftCartItem={}));let ja=null;async function F8({merchantId:e,env:t}){if(!ja&&typeof window<"u")try{const n=await window.Verisoul?.session();n?.session_id&&(ja=n.session_id)}catch(n){console.error(n),ts({event:"ProtectionInit",env:t,merchantId:e,error:n})}}function V8(){return ja}const G8="forterToken",H8=1024,$8=/[\x00-\x1F\x7F]/;let cs=null,mf=!1,Ka=!1;function Wa(e){if(!e)return null;let t=e;try{t=decodeURIComponent(e)}catch{}return!t||t.length>H8||$8.test(t)?null:t}function gf(){if(typeof document>"u"||!document.cookie)return null;let e=null;for(const t of document.cookie.split(";")){const n=t.indexOf("=");if(n===-1)continue;const r=t.slice(0,n).trim(),c=t.slice(n+1);if(r===G8)return c;const i=r.toLowerCase();i.includes("forter")&&i.includes("token")&&(e=c)}return e}function Wo(){return cs??Wa(gf())}const j8="ftr:tokenReady";function K8(e){const t=e.detail,n=typeof t=="string"?Wa(t):null;n&&(cs=n,mf=!0)}function W8({timeoutMs:e=15e3,intervalMs:t=250}={}){if(typeof window>"u"||(typeof document<"u"&&document.addEventListener(j8,K8),Ka))return;Ka=!0;const n=Date.now(),r=()=>{if(!mf){const c=Wa(gf());c&&(cs=c)}if(Date.now()-n>=e){Ka=!1,cs||z8();return}window.setTimeout(r,t)};r()}function z8(){if(typeof document>"u")return;const e=(document.cookie||"").split(";").map(n=>n.split("=")[0].trim()).filter(Boolean),t=typeof window<"u"?Object.keys(window).filter(n=>/ftr|forter/i.test(n)):[];console.warn("[forter] token never surfaced after init.","cookieNames:",e,"forterGlobals:",t)}async function Z8({timeoutMs:e=2e3,intervalMs:t=100}={}){const n=Wo();return n||(typeof window>"u"?null:new Promise(r=>{const c=Date.now(),i=()=>{const d=Wo();if(d)return r(d);if(Date.now()-c>=e)return r(Wo());window.setTimeout(i,t)};window.setTimeout(i,t)}))}const vf="x-device-id",yf="x-session-id",wf="x-coinflow-referrer",_f="x-forter-token";function Ef(){return{[vf]:ka(),[yf]:V8(),[_f]:Wo()}}function Y8(){try{return document.referrer||null}catch{return null}}function X8(){return{...Ef(),[wf]:Y8()}}class q8{static payloadVersion=1;static maxLength=8192;static encode({deviceId:t,sessionId:n,purchaseToken:r}){if(!t&&!n&&!r)return null;const c=JSON.stringify({v:this.payloadVersion,deviceId:t||null,sessionId:n||null,purchaseToken:r||null}),i=this.base64UrlEncode(new TextEncoder().encode(c));return i.length>this.maxLength?null:i}static base64UrlEncode(t){let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}const J8="9JBW2RHC7JNJN8ZQ",Rf={prod:"315da543-c486-435a-aa21-53844c469822",sandbox:"e9f629c4-80ee-4c6d-967e-62af47d8679e"};async function bf({coinflowEnv:e,merchantId:t}){const n=e==="prod"?"prod":"sandbox";if(!(typeof window<"u"&&new URLSearchParams(window.location.search).has("deviceId"))){const c=await new On(e).getNSurePartnerId(t);if(c){const i=J8;try{Ba.init(i,c)}catch(d){console.error("Failed to initialize nSure SDK:",d),ts({event:"NSureInit",error:d,env:e,merchantId:t})}}}if(typeof document<"u"&&!document.querySelector("script[verisoul-project-id]")){const i=Rf[n]??Rf.sandbox;i&&await new Promise(d=>{const v=document.createElement("script");v.src=`https://js.v.coinflow.sh/${n}/bundle.js`,v.async=!0,v.setAttribute("verisoul-project-id",i),v.onload=()=>{F8({merchantId:t,env:e}).then(d)},v.onerror=l=>{ts({event:"ProtectionError",error:l,env:e,merchantId:t}),d()},document.head.appendChild(v)})}}function Q8(e){return JSON.stringify(e)}function em(e){if(!e)return null;try{const t=JSON.parse(e);return typeof t?.token!="string"||!t.token?null:{token:t.token,country:typeof t.country=="string"?t.country:void 0}}catch{return{token:e}}}function tm({cached:e,country:t}){return e?t?e.country===t:!0:!1}const Af="bankLinkStatus";function nm({status:e}){return{[Af]:e}}function rm({bankLinkOnly:e,hasCallbackRedirect:t,isReactNativeLink:n}){return e?"emit":t?"redirect":n?"returnToApp":"returnToCheckout"}const om=500,im=$e.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return On.getCoinflowUrl(this.args)}},emits:{onMessage(e){return!0}},methods:{sendMessage(e){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(e,"*")},handleIframeMessages({data:e,origin:t}){const n=new URL(On.getCoinflowBaseUrl(this.args.env)).origin;if(t!==n||typeof e!="string")return;this.$emit("onMessage",{data:e,origin:t});const r=J0(e,this.args,this.args.handleHeightChangeId);r&&r.then(this.sendMessage).catch(c=>{console.error(c),this.sendMessage("ERROR "+c.message)})},async listenForMessage(e){let t;return new Promise((n,r)=>{if(t=({data:c,origin:i})=>{const d=new URL(On.getCoinflowBaseUrl(this.args.env)).origin;if(i===d&&typeof c=="string"){if(c.startsWith("ERROR")){r(new Error(c.replace("ERROR","")));return}e(c)&&n(c)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(e,t){return this.sendMessage(e),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),za=(e,t)=>{const n=e.__vccOpts||e;for(const[r,c]of t)n[r]=c;return n},sm=["src","scrolling"];function am(e,t,n,r,c,i){return $e.openBlock(),$e.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write;geolocation",title:"withdraw",frameBorder:"0",src:e.url,scrolling:e.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const d=e.$refs.iframeRef;d&&(d.style.opacity="1")})},null,40,sm)}const us=za(im,[["render",am]]),cm=$e.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:us},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const e=ns(this.args);return{...this.args,walletPubkey:e,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...rs(this.args),handleHeightChange:this.args.handleHeightChange}}}});function um(e,t,n,r,c,i){const d=$e.resolveComponent("coinflow-i-frame");return $e.openBlock(),$e.createBlock(d,{args:{...e.iframeProps,...e.messageHandlers,handleHeightChangeId:e.handleHeightChangeId}},null,8,["args"])}const fm=za(cm,[["render",um]]),lm=$e.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:us},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const e=ns(this.args);return{...this.args,walletPubkey:e,...On.getPurchaseRoute(this.args),transaction:On.getTransaction(this.args)}},messageHandlers(){return{...rs(this.args),handleHeightChange:this.args.handleHeightChange}}}});function dm(e,t,n,r,c,i){const d=$e.resolveComponent("coinflow-i-frame");return $e.openBlock(),$e.createBlock(d,{args:{...e.iframeProps,...e.messageHandlers,handleHeightChangeId:e.handleHeightChangeId}},null,8,["args"])}const hm=za(lm,[["render",dm]]),pm=$e.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(e){return $e.onMounted(()=>{bf({coinflowEnv:e.args.env,merchantId:e.args.merchantId})}),(t,n)=>null}}),mm=["src"],Sf=$e.defineComponent({__name:"CoinflowCardFormV2",props:{args:{type:Object,required:!0}},setup(e,{expose:t}){const n=$e.ref(null),r=$e.ref(null),c=$e.ref(!1),i=$e.ref(null),d=as[e.args.variant],v=d.areas,l=$e.ref(Va),y=$e.ref(d.inline),A=$e.ref(!0),O=$e.computed(()=>c.value&&i.value?`${i.value}px`:`${l.value}px`),S=$e.computed(()=>pf(e.args.theme));function I(W){return{...hf,background:S.value.box,gridArea:W}}const B=$e.computed(()=>{const W=On.getCoinflowBaseUrl(e.args.env),ae=new URL(`/form/v2/${e.args.variant}`,W);return ae.searchParams.append("merchantId",e.args.merchantId),ae.searchParams.append("useHeightChange","true"),e.args.theme&&ae.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(e.args.theme))),e.args.token&&ae.searchParams.append("token",e.args.token),ae.toString()});function C(W){const{data:ae,origin:fe,source:ie}=W;if(ie!==n.value?.contentWindow)return;const Ee=new URL(On.getCoinflowBaseUrl(e.args.env)).origin;if(fe===Ee)try{const Re=JSON.parse(ae);if(Re.method===mo.Loaded)c.value=!0,e.args.onLoad?.();else if(Re.method===mo.HeightChange){const re=Number(Re.data);Number.isFinite(re)&&re>0&&(i.value=re)}}catch{}}function F(W){W.propertyName==="opacity"&&c.value&&(A.value=!1)}$e.watch(c,(W,ae,fe)=>{if(!W)return;const ie=setTimeout(()=>A.value=!1,cf);fe(()=>clearTimeout(ie))});let j=null;$e.onMounted(()=>{window.addEventListener("message",C);const W=r.value;if(!W||!d.compact)return;const ae=()=>{const fe=W.clientWidth;l.value=uf({variant:e.args.variant,width:fe}),y.value=ff({variant:e.args.variant,width:fe})};ae(),j=new ResizeObserver(ae),j.observe(W)}),$e.onUnmounted(()=>{window.removeEventListener("message",C),j?.disconnect()});async function Q(){return new Promise((W,ae)=>{if(!n.value?.contentWindow){ae(new Error("Card form iframe not loaded"));return}const fe=({data:Ee,origin:Re})=>{const re=new URL(On.getCoinflowBaseUrl(e.args.env)).origin;if(Re===re)try{const se=JSON.parse(Ee);if(se.method!=="tokenize")return;if(window.removeEventListener("message",fe),typeof se.data=="string"&&se.data.startsWith("ERROR")){ae(new Error(se.data.replace("ERROR ","")));return}const de=typeof se.data=="string"?JSON.parse(se.data):se.data;W(de)}catch{}};window.addEventListener("message",fe);const ie=new URL(On.getCoinflowBaseUrl(e.args.env)).origin;n.value.contentWindow.postMessage("tokenize",ie)})}return t({tokenize:Q}),(W,ae)=>($e.openBlock(),$e.createElementBlock("div",{ref_key:"wrapperRef",ref:r,style:$e.normalizeStyle({position:"relative",width:"100%",height:O.value})},[A.value?($e.openBlock(),$e.createElementBlock("div",{key:0,role:"status","aria-label":"Loading card form",onTransitionend:F,style:$e.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",pointerEvents:"none",flexDirection:"column",gap:"8px",padding:`${$e.unref(df)}px`,boxSizing:"border-box",borderRadius:"8px",background:S.value.backdrop,opacity:c.value?"0%":"100%",transition:"opacity 300ms linear, height 150ms ease-out"})},[$e.createElementVNode("div",{style:$e.normalizeStyle({display:"grid",gap:0,flex:1,width:"100%",gridTemplate:y.value})},[($e.openBlock(!0),$e.createElementBlock($e.Fragment,null,$e.renderList($e.unref(v),fe=>($e.openBlock(),$e.createElementBlock("div",{key:fe,style:$e.normalizeStyle(I(fe))},null,4))),128))],4)],36)):$e.createCommentVNode("",!0),$e.createElementVNode("iframe",{ref_key:"iframeRef",ref:n,src:B.value,title:"Card Form",frameBorder:"0",allow:"payment",style:$e.normalizeStyle({width:"100%",height:O.value,border:"none",opacity:c.value?1:0,transition:"opacity 300ms linear, height 150ms ease-out"})},null,12,mm)],4))}}),gm={style:{position:"relative",height:"100%"}},vm={style:{position:"relative",zIndex:10,height:"100%"}},If=$e.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(e){const{onSuccess:t}=e.args,n=e.args.subtotal;function r(){const S=ns(e.args);return{...e.args,subtotal:n,walletPubkey:S,transaction:void 0,routePrefix:"form",route:`/${e.route}/${e.args.merchantId}`}}function c(){return{...rs(e.args),handleHeightChange:e.args.handleHeightChange}}const i=$e.ref(.8),d=$e.ref("flex"),v=Math.random().toString(16).substring(2),l=$e.ref(null),y=$e.ref(!1);let A=JSON.stringify(n);$e.watch([y,()=>e.args.subtotal],([S,I])=>{if(!S||!I)return;const B=JSON.stringify(I);A!==B&&(A=B,l.value?.sendMessage(`${mo.UpdateSubtotal}:${B}`))});function O({data:S}){try{const I=JSON.parse(S);if("method"in I&&I.method==="loaded"&&(i.value=1,d.value="none",y.value=!0),"method"in I&&typeof I.data=="string"&&I.data.startsWith("ERROR"))return e.args?.onError?.(I.info),!1;if(!("method"in I)||I.method!=="getToken")return}catch{return}t?.(S)}return(S,I)=>($e.openBlock(),$e.createElementBlock("div",gm,[$e.createElementVNode("div",{style:$e.normalizeStyle({backgroundColor:e.args.color,display:e.overlayDisplayOverride??d.value,opacity:i.value,alignItems:e.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[$e.renderSlot(S.$slots,"default")],4),$e.createElementVNode("div",vm,[$e.createVNode(us,{ref_key:"iframeRef",ref:l,onOnMessage:O,args:{...r(),...c(),handleHeightChangeId:$e.unref(v)}},null,8,["args"])])]))}}),ym={id:"svg-logo",viewBox:"0 0 35 15"},wm={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},_m={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Em=["fill"],Rm=$e.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(e){const t=e.color==="white"?"#000":"#FFF";return(n,r)=>($e.openBlock(),$e.createElementBlock("svg",ym,[($e.openBlock(),$e.createElementBlock("svg",wm,[r[1]||(r[1]=$e.createElementVNode("title",null,"Apple Logo",-1)),$e.createElementVNode("g",_m,[$e.createElementVNode("g",{fill:$e.unref(t)},[...r[0]||(r[0]=[$e.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,Em)])]))]))}}),bm=$e.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(e){return(t,n)=>($e.openBlock(),$e.createBlock(If,{route:"apple-pay",args:e.args},{default:$e.withCtx(()=>[$e.createVNode(Rm,{color:e.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Am={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Sm={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Im=$e.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(e){return(t,n)=>($e.openBlock(),$e.createElementBlock($e.Fragment,null,[e.color==="white"?($e.openBlock(),$e.createElementBlock("svg",Am,[...n[0]||(n[0]=[$e.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):$e.createCommentVNode("",!0),e.color==="black"?($e.openBlock(),$e.createElementBlock("svg",Sm,[...n[1]||(n[1]=[$e.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):$e.createCommentVNode("",!0)],64))}}),Om=$e.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(e){return(t,n)=>($e.openBlock(),$e.createBlock(If,{route:"google-pay",args:e.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:$e.withCtx(()=>[$e.createVNode(Im,{color:e.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Nm=Sf;Ke.BANK_LINK_REVEAL_DELAY_MS=om,Ke.BANK_LINK_STATUS_PARAM=Af,Ke.BankingCurrencies=Z0,Ke.CARD_ENTRY_BORDER_PX=os,Ke.CARD_ENTRY_DIVIDER_PX=Ua,Ke.CARD_ENTRY_MARGIN_PX=Pa,Ke.CARD_ENTRY_MIN_WIDTHS=ef,Ke.CARD_ENTRY_ROW_HEIGHT=$o,Ke.CARD_ENTRY_ROW_HEIGHT_PX=Da,Ke.CARD_ENTRY_SLOT_GAP_PX=tf,Ke.CARD_FIELD_ERROR_MESSAGES=Ko,Ke.COMPACT_SKELETON_HEIGHT_PX=af,Ke.CardFunding=Wc,Ke.CardType=Zc,Ke.ChargebackProtectionAccountType=jc,Ke.CoinflowApplePayButton=bm,Ke.CoinflowCardForm=Nm,Ke.CoinflowCardFormV2=Sf,Ke.CoinflowFraudProtectionHeader=q8,Ke.CoinflowGooglePayButton=Om,Ke.CoinflowIframe=us,Ke.CoinflowPurchase=hm,Ke.CoinflowPurchaseProtection=pm,Ke.CoinflowUtils=On,Ke.CoinflowWithdraw=fm,Ke.Currency=Ma,Ke.CurrencyToISO4217=h8,Ke.DEVICE_ID_HEADER=vf,Ke.EventBus=O8,Ke.FORTER_TOKEN_HEADER=_f,Ke.HostMessageMethods=X0,Ke.IFrameMessageMethods=mo,Ke.INLINE_SKELETON_HEIGHT_PX=Va,Ke.MerchantStyle=$c,Ke.OverlayState=q0,Ke.PaymentMethods=zc,Ke.REFERRER_HEADER=wf,Ke.RN_REDIRECT_MESSAGE_NAME=yd,Ke.RedirectFlow=Yc,Ke.SESSION_ID_HEADER=yf,Ke.SKELETON_BOX_STYLE=hf,Ke.SKELETON_FADE_MS=cf,Ke.SKELETON_LAYOUTS=as,Ke.SKELETON_PULSE_ANIMATION_NAME=Ha,Ke.SKELETON_ROOT_PADDING_PX=df,Ke.SettlementType=Hc,Ke.ThreeDsChallengePreference=Kc,Ke.WithdrawCategory=Vc,Ke.WithdrawCurrencies=z0,Ke.WithdrawSpeed=Gc,Ke.awaitForterToken=Z8,Ke.bankLinkCallbackParams=nm,Ke.buildCardEntryGridCss=of,Ke.buildCardEntryLayout=is,Ke.buildSkeletonCss=C8,Ke.canReuseLinkToken=tm,Ke.captureForterToken=W8,Ke.getCardFieldInputEvents=P8,Ke.getCardFieldValidationError=U8,Ke.getCoinflowProtectionHeaders=Ef,Ke.getCoinflowPurchaseHeaders=X8,Ke.getCurrencyDecimals=w8,Ke.getCustomerName=A8,Ke.getForterToken=Wo,Ke.getHandlers=rs,Ke.getSkeletonColors=pf,Ke.getSkeletonGridClass=lf,Ke.getSkeletonGridTemplate=ff,Ke.getWalletPubkey=ns,Ke.guessSkeletonHeightPx=uf,Ke.handleIFrameMessage=J0,Ke.initCoinflowProtection=bf,Ke.invertRate=E8,Ke.isBankingCurrency=m8,Ke.isTypedCurrencyCents=_8,Ke.isWithdrawCurrency=p8,Ke.isZeroAuthSavedPaymentMethods=gd,Ke.isZeroAuthVerifyCard=md,Ke.parseCachedLinkToken=em,Ke.paymentMethodLabels=vd,Ke.recordFrontendError=ts,Ke.resolveBankLinkCompletion=rm,Ke.serializeCachedLinkToken=Q8,Ke.shouldStackSkeleton=$a,Object.defineProperty(Ke,Symbol.toStringTag,{value:"Module"})}));
|