@zama-fhe/relayer-sdk 0.1.0-7 → 0.1.0-9
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/bin/relayer.js +14 -7
- package/bin/utils.js +6 -2
- package/bundle/{fhevm.js → relayer-sdk-js.js} +1519 -1512
- package/bundle/{fhevm.umd.cjs → relayer-sdk-js.umd.cjs} +9 -9
- package/bundle.d.ts +1 -1
- package/bundle.js +3 -3
- package/lib/web.d.ts +1 -1
- package/lib/web.js +20 -2
- package/package.json +2 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(Ut,Ft){typeof exports=="object"&&typeof module<"u"?Ft(exports):typeof define=="function"&&define.amd?define(["exports"],Ft):(Ut=typeof globalThis<"u"?globalThis:Ut||self,Ft(Ut.
|
|
1
|
+
(function(Ut,Ft){typeof exports=="object"&&typeof module<"u"?Ft(exports):typeof define=="function"&&define.amd?define(["exports"],Ft):(Ut=typeof globalThis<"u"?globalThis:Ut||self,Ft(Ut.relayerSDK={}))})(this,function(Ut){"use strict";var yM=Object.defineProperty;var Bm=Ut=>{throw TypeError(Ut)};var AM=(Ut,Ft,te)=>Ft in Ut?yM(Ut,Ft,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ut[Ft]=te;var $=(Ut,Ft,te)=>AM(Ut,typeof Ft!="symbol"?Ft+"":Ft,te),yw=(Ut,Ft,te)=>Ft.has(Ut)||Bm("Cannot "+te);var m=(Ut,Ft,te)=>(yw(Ut,Ft,"read from private field"),te?te.call(Ut):Ft.get(Ut)),rt=(Ut,Ft,te)=>Ft.has(Ut)?Bm("Cannot add the same private member more than once"):Ft instanceof WeakSet?Ft.add(Ut):Ft.set(Ut,te),K=(Ut,Ft,te,Ns)=>(yw(Ut,Ft,"write to private field"),Ns?Ns.call(Ut,te):Ft.set(Ut,te),te),mt=(Ut,Ft,te)=>(yw(Ut,Ft,"access private method"),te);var Gu=(Ut,Ft,te,Ns)=>({set _(U_){K(Ut,Ft,U_,te)},get _(){return m(Ut,Ft,Ns)}});var $a,w_,hs,Za,Xa,Br,Li,tc,ec,Se,$e,ji,d_,g_,b_,Si,xr,ws,y_,Fu,Su,Ru,Eu,Ze,rc,A_,nc,Vi,m_,sc,Wf,je,Xe,S_,R_,ds,E_,Aw,xm,_c,oc,ac,P_,Yi,v_,Ri,cc,uc,fc,lc,pc,hc,wc,dc,gc,bc,yc,M_,gs,qi,bs,Ac,Jf,Pu,Wi,mc,jf,Cm,ve,Ir,zu,mw,Sc,$f,ys,Kc,Ei,Pi,zi,Be,vi,Zf,Xf,Ji,vu,As,Rc,Mu,Bu,Mm,ms,x_,Ss,Dc,Hf,Im,Cu,Iu,Pc,zc,Rs,$i,pr,Es,Mi,Mc,tl,C_,I_,Ps,Bc,Zi,qf,xc,Xi,Cc,Ic,zs,hr,Qf,Nm,xe,vs,Ce,Nc,tr,N_,Ms,ts,Nu,wr,Oc,kc,Dt,er,Sw,Rw,Uu,Ew,Ku,el,Fe,Bi,O_,Bs,k_,Tc,xs,Pw,zw,T_,G_,Gc,es,xi,Nr,dr,Ve,Ou,vw,Cs,Fc,Uc;var Ft=typeof document<"u"?document.currentScript:null;const te=globalThis||void 0||self;var Ns={},U_={};U_.byteLength=Fm,U_.toByteArray=Km,U_.fromByteArray=jm;for(var Or=[],rr=[],Tm=typeof Uint8Array<"u"?Uint8Array:Array,rl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K_=0,Gm=rl.length;K_<Gm;++K_)Or[K_]=rl[K_],rr[rl.charCodeAt(K_)]=K_;rr[45]=62,rr[95]=63;function Mw(n){var t=n.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=n.indexOf("=");e===-1&&(e=t);var r=e===t?0:4-e%4;return[e,r]}function Fm(n){var t=Mw(n),e=t[0],r=t[1];return(e+r)*3/4-r}function Um(n,t,e){return(t+e)*3/4-e}function Km(n){var t,e=Mw(n),r=e[0],s=e[1],_=new Tm(Um(n,r,s)),a=0,c=s>0?r-4:r,u;for(u=0;u<c;u+=4)t=rr[n.charCodeAt(u)]<<18|rr[n.charCodeAt(u+1)]<<12|rr[n.charCodeAt(u+2)]<<6|rr[n.charCodeAt(u+3)],_[a++]=t>>16&255,_[a++]=t>>8&255,_[a++]=t&255;return s===2&&(t=rr[n.charCodeAt(u)]<<2|rr[n.charCodeAt(u+1)]>>4,_[a++]=t&255),s===1&&(t=rr[n.charCodeAt(u)]<<10|rr[n.charCodeAt(u+1)]<<4|rr[n.charCodeAt(u+2)]>>2,_[a++]=t>>8&255,_[a++]=t&255),_}function Dm(n){return Or[n>>18&63]+Or[n>>12&63]+Or[n>>6&63]+Or[n&63]}function Lm(n,t,e){for(var r,s=[],_=t;_<e;_+=3)r=(n[_]<<16&16711680)+(n[_+1]<<8&65280)+(n[_+2]&255),s.push(Dm(r));return s.join("")}function jm(n){for(var t,e=n.length,r=e%3,s=[],_=16383,a=0,c=e-r;a<c;a+=_)s.push(Lm(n,a,a+_>c?c:a+_));return r===1?(t=n[e-1],s.push(Or[t>>2]+Or[t<<4&63]+"==")):r===2&&(t=(n[e-2]<<8)+n[e-1],s.push(Or[t>>10]+Or[t>>4&63]+Or[t<<2&63]+"=")),s.join("")}var nl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */nl.read=function(n,t,e,r,s){var _,a,c=s*8-r-1,u=(1<<c)-1,l=u>>1,f=-7,w=e?s-1:0,y=e?-1:1,M=n[t+w];for(w+=y,_=M&(1<<-f)-1,M>>=-f,f+=c;f>0;_=_*256+n[t+w],w+=y,f-=8);for(a=_&(1<<-f)-1,_>>=-f,f+=r;f>0;a=a*256+n[t+w],w+=y,f-=8);if(_===0)_=1-l;else{if(_===u)return a?NaN:(M?-1:1)*(1/0);a=a+Math.pow(2,r),_=_-l}return(M?-1:1)*a*Math.pow(2,_-r)},nl.write=function(n,t,e,r,s,_){var a,c,u,l=_*8-s-1,f=(1<<l)-1,w=f>>1,y=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=r?0:_-1,B=r?1:-1,I=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+w>=1?t+=y/u:t+=y*Math.pow(2,1-w),t*u>=2&&(a++,u/=2),a+w>=f?(c=0,a=f):a+w>=1?(c=(t*u-1)*Math.pow(2,s),a=a+w):(c=t*Math.pow(2,w-1)*Math.pow(2,s),a=0));s>=8;n[e+M]=c&255,M+=B,c/=256,s-=8);for(a=a<<s|c,l+=s;l>0;n[e+M]=a&255,M+=B,a/=256,l-=8);n[e+M-B]|=I*128};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/(function(n){const t=G_,e=nl,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=f,n.SlowBuffer=F,n.INSPECT_MAX_BYTES=50;const s=2147483647;n.kMaxLength=s;const{Uint8Array:_,ArrayBuffer:a,SharedArrayBuffer:c}=globalThis;f.TYPED_ARRAY_SUPPORT=u(),!f.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 u(){try{const E=new _(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,_.prototype),Object.setPrototypeOf(E,p),E.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function l(E){if(E>s)throw new RangeError('The value "'+E+'" is invalid for option "size"');const p=new _(E);return Object.setPrototypeOf(p,f.prototype),p}function f(E,p,d){if(typeof E=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(E)}return w(E,p,d)}f.poolSize=8192;function w(E,p,d){if(typeof E=="string")return I(E,p);if(a.isView(E))return P(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(ye(E,a)||E&&ye(E.buffer,a)||typeof c<"u"&&(ye(E,c)||E&&ye(E.buffer,c)))return v(E,p,d);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=E.valueOf&&E.valueOf();if(k!=null&&k!==E)return f.from(k,p,d);const q=N(E);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return f.from(E[Symbol.toPrimitive]("string"),p,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}f.from=function(E,p,d){return w(E,p,d)},Object.setPrototypeOf(f.prototype,_.prototype),Object.setPrototypeOf(f,_);function y(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function M(E,p,d){return y(E),E<=0?l(E):p!==void 0?typeof d=="string"?l(E).fill(p,d):l(E).fill(p):l(E)}f.alloc=function(E,p,d){return M(E,p,d)};function B(E){return y(E),l(E<0?0:C(E)|0)}f.allocUnsafe=function(E){return B(E)},f.allocUnsafeSlow=function(E){return B(E)};function I(E,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const d=D(E,p)|0;let k=l(d);const q=k.write(E,p);return q!==d&&(k=k.slice(0,q)),k}function G(E){const p=E.length<0?0:C(E.length)|0,d=l(p);for(let k=0;k<p;k+=1)d[k]=E[k]&255;return d}function P(E){if(ye(E,_)){const p=new _(E);return v(p.buffer,p.byteOffset,p.byteLength)}return G(E)}function v(E,p,d){if(p<0||E.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<p+(d||0))throw new RangeError('"length" is outside of buffer bounds');let k;return p===void 0&&d===void 0?k=new _(E):d===void 0?k=new _(E,p):k=new _(E,p,d),Object.setPrototypeOf(k,f.prototype),k}function N(E){if(f.isBuffer(E)){const p=C(E.length)|0,d=l(p);return d.length===0||E.copy(d,0,0,p),d}if(E.length!==void 0)return typeof E.length!="number"||Ue(E.length)?l(0):G(E);if(E.type==="Buffer"&&Array.isArray(E.data))return G(E.data)}function C(E){if(E>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return E|0}function F(E){return+E!=E&&(E=0),f.alloc(+E)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,d){if(ye(p,_)&&(p=f.from(p,p.offset,p.byteLength)),ye(d,_)&&(d=f.from(d,d.offset,d.byteLength)),!f.isBuffer(p)||!f.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===d)return 0;let k=p.length,q=d.length;for(let X=0,ct=Math.min(k,q);X<ct;++X)if(p[X]!==d[X]){k=p[X],q=d[X];break}return k<q?-1:q<k?1:0},f.isEncoding=function(p){switch(String(p).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}},f.concat=function(p,d){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return f.alloc(0);let k;if(d===void 0)for(d=0,k=0;k<p.length;++k)d+=p[k].length;const q=f.allocUnsafe(d);let X=0;for(k=0;k<p.length;++k){let ct=p[k];if(ye(ct,_))X+ct.length>q.length?(f.isBuffer(ct)||(ct=f.from(ct)),ct.copy(q,X)):_.prototype.set.call(q,ct,X);else if(f.isBuffer(ct))ct.copy(q,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ct.length}return q};function D(E,p){if(f.isBuffer(E))return E.length;if(a.isView(E)||ye(E,a))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const d=E.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&d===0)return 0;let q=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Re(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return oe(E).length;default:if(q)return k?-1:Re(E).length;p=(""+p).toLowerCase(),q=!0}}f.byteLength=D;function j(E,p,d){let k=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,p>>>=0,d<=p))return"";for(E||(E="utf8");;)switch(E){case"hex":return J(this,p,d);case"utf8":case"utf-8":return Pt(this,p,d);case"ascii":return It(this,p,d);case"latin1":case"binary":return jt(this,p,d);case"base64":return wt(this,p,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,p,d);default:if(k)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),k=!0}}f.prototype._isBuffer=!0;function L(E,p,d){const k=E[p];E[p]=E[d],E[d]=k}f.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<p;d+=2)L(this,d,d+1);return this},f.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<p;d+=4)L(this,d,d+3),L(this,d+1,d+2);return this},f.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<p;d+=8)L(this,d,d+7),L(this,d+1,d+6),L(this,d+2,d+5),L(this,d+3,d+4);return this},f.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Pt(this,0,p):j.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(p){if(!f.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:f.compare(this,p)===0},f.prototype.inspect=function(){let p="";const d=n.INSPECT_MAX_BYTES;return p=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(p+=" ... "),"<Buffer "+p+">"},r&&(f.prototype[r]=f.prototype.inspect),f.prototype.compare=function(p,d,k,q,X){if(ye(p,_)&&(p=f.from(p,p.offset,p.byteLength)),!f.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(d===void 0&&(d=0),k===void 0&&(k=p?p.length:0),q===void 0&&(q=0),X===void 0&&(X=this.length),d<0||k>p.length||q<0||X>this.length)throw new RangeError("out of range index");if(q>=X&&d>=k)return 0;if(q>=X)return-1;if(d>=k)return 1;if(d>>>=0,k>>>=0,q>>>=0,X>>>=0,this===p)return 0;let ct=X-q,kt=k-d;const Jt=Math.min(ct,kt),$t=this.slice(q,X),Zt=p.slice(d,k);for(let Ht=0;Ht<Jt;++Ht)if($t[Ht]!==Zt[Ht]){ct=$t[Ht],kt=Zt[Ht];break}return ct<kt?-1:kt<ct?1:0};function Z(E,p,d,k,q){if(E.length===0)return-1;if(typeof d=="string"?(k=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,Ue(d)&&(d=q?0:E.length-1),d<0&&(d=E.length+d),d>=E.length){if(q)return-1;d=E.length-1}else if(d<0)if(q)d=0;else return-1;if(typeof p=="string"&&(p=f.from(p,k)),f.isBuffer(p))return p.length===0?-1:ot(E,p,d,k,q);if(typeof p=="number")return p=p&255,typeof _.prototype.indexOf=="function"?q?_.prototype.indexOf.call(E,p,d):_.prototype.lastIndexOf.call(E,p,d):ot(E,[p],d,k,q);throw new TypeError("val must be string, number or Buffer")}function ot(E,p,d,k,q){let X=1,ct=E.length,kt=p.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(E.length<2||p.length<2)return-1;X=2,ct/=2,kt/=2,d/=2}function Jt(Zt,Ht){return X===1?Zt[Ht]:Zt.readUInt16BE(Ht*X)}let $t;if(q){let Zt=-1;for($t=d;$t<ct;$t++)if(Jt(E,$t)===Jt(p,Zt===-1?0:$t-Zt)){if(Zt===-1&&(Zt=$t),$t-Zt+1===kt)return Zt*X}else Zt!==-1&&($t-=$t-Zt),Zt=-1}else for(d+kt>ct&&(d=ct-kt),$t=d;$t>=0;$t--){let Zt=!0;for(let Ht=0;Ht<kt;Ht++)if(Jt(E,$t+Ht)!==Jt(p,Ht)){Zt=!1;break}if(Zt)return $t}return-1}f.prototype.includes=function(p,d,k){return this.indexOf(p,d,k)!==-1},f.prototype.indexOf=function(p,d,k){return Z(this,p,d,k,!0)},f.prototype.lastIndexOf=function(p,d,k){return Z(this,p,d,k,!1)};function pt(E,p,d,k){d=Number(d)||0;const q=E.length-d;k?(k=Number(k),k>q&&(k=q)):k=q;const X=p.length;k>X/2&&(k=X/2);let ct;for(ct=0;ct<k;++ct){const kt=parseInt(p.substr(ct*2,2),16);if(Ue(kt))return ct;E[d+ct]=kt}return ct}function Y(E,p,d,k){return He(Re(p,E.length-d),E,d,k)}function At(E,p,d,k){return He(Ye(p),E,d,k)}function Bt(E,p,d,k){return He(oe(p),E,d,k)}function ft(E,p,d,k){return He(re(p,E.length-d),E,d,k)}f.prototype.write=function(p,d,k,q){if(d===void 0)q="utf8",k=this.length,d=0;else if(k===void 0&&typeof d=="string")q=d,k=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(k)?(k=k>>>0,q===void 0&&(q="utf8")):(q=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-d;if((k===void 0||k>X)&&(k=X),p.length>0&&(k<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let ct=!1;for(;;)switch(q){case"hex":return pt(this,p,d,k);case"utf8":case"utf-8":return Y(this,p,d,k);case"ascii":case"latin1":case"binary":return At(this,p,d,k);case"base64":return Bt(this,p,d,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,p,d,k);default:if(ct)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ct=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(E,p,d){return p===0&&d===E.length?t.fromByteArray(E):t.fromByteArray(E.slice(p,d))}function Pt(E,p,d){d=Math.min(E.length,d);const k=[];let q=p;for(;q<d;){const X=E[q];let ct=null,kt=X>239?4:X>223?3:X>191?2:1;if(q+kt<=d){let Jt,$t,Zt,Ht;switch(kt){case 1:X<128&&(ct=X);break;case 2:Jt=E[q+1],(Jt&192)===128&&(Ht=(X&31)<<6|Jt&63,Ht>127&&(ct=Ht));break;case 3:Jt=E[q+1],$t=E[q+2],(Jt&192)===128&&($t&192)===128&&(Ht=(X&15)<<12|(Jt&63)<<6|$t&63,Ht>2047&&(Ht<55296||Ht>57343)&&(ct=Ht));break;case 4:Jt=E[q+1],$t=E[q+2],Zt=E[q+3],(Jt&192)===128&&($t&192)===128&&(Zt&192)===128&&(Ht=(X&15)<<18|(Jt&63)<<12|($t&63)<<6|Zt&63,Ht>65535&&Ht<1114112&&(ct=Ht))}}ct===null?(ct=65533,kt=1):ct>65535&&(ct-=65536,k.push(ct>>>10&1023|55296),ct=56320|ct&1023),k.push(ct),q+=kt}return Mt(k)}const Ct=4096;function Mt(E){const p=E.length;if(p<=Ct)return String.fromCharCode.apply(String,E);let d="",k=0;for(;k<p;)d+=String.fromCharCode.apply(String,E.slice(k,k+=Ct));return d}function It(E,p,d){let k="";d=Math.min(E.length,d);for(let q=p;q<d;++q)k+=String.fromCharCode(E[q]&127);return k}function jt(E,p,d){let k="";d=Math.min(E.length,d);for(let q=p;q<d;++q)k+=String.fromCharCode(E[q]);return k}function J(E,p,d){const k=E.length;(!p||p<0)&&(p=0),(!d||d<0||d>k)&&(d=k);let q="";for(let X=p;X<d;++X)q+=qe[E[X]];return q}function it(E,p,d){const k=E.slice(p,d);let q="";for(let X=0;X<k.length-1;X+=2)q+=String.fromCharCode(k[X]+k[X+1]*256);return q}f.prototype.slice=function(p,d){const k=this.length;p=~~p,d=d===void 0?k:~~d,p<0?(p+=k,p<0&&(p=0)):p>k&&(p=k),d<0?(d+=k,d<0&&(d=0)):d>k&&(d=k),d<p&&(d=p);const q=this.subarray(p,d);return Object.setPrototypeOf(q,f.prototype),q};function st(E,p,d){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+p>d)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,d,k){p=p>>>0,d=d>>>0,k||st(p,d,this.length);let q=this[p],X=1,ct=0;for(;++ct<d&&(X*=256);)q+=this[p+ct]*X;return q},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,d,k){p=p>>>0,d=d>>>0,k||st(p,d,this.length);let q=this[p+--d],X=1;for(;d>0&&(X*=256);)q+=this[p+--d]*X;return q},f.prototype.readUint8=f.prototype.readUInt8=function(p,d){return p=p>>>0,d||st(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,d){return p=p>>>0,d||st(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,d){return p=p>>>0,d||st(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,d){return p=p>>>0,d||st(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(p,d){return p=p>>>0,d||st(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readBigUInt64LE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=d+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,X=this[++p]+this[++p]*2**8+this[++p]*2**16+k*2**24;return BigInt(q)+(BigInt(X)<<BigInt(32))}),f.prototype.readBigUInt64BE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=d*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],X=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+k;return(BigInt(q)<<BigInt(32))+BigInt(X)}),f.prototype.readIntLE=function(p,d,k){p=p>>>0,d=d>>>0,k||st(p,d,this.length);let q=this[p],X=1,ct=0;for(;++ct<d&&(X*=256);)q+=this[p+ct]*X;return X*=128,q>=X&&(q-=Math.pow(2,8*d)),q},f.prototype.readIntBE=function(p,d,k){p=p>>>0,d=d>>>0,k||st(p,d,this.length);let q=d,X=1,ct=this[p+--q];for(;q>0&&(X*=256);)ct+=this[p+--q]*X;return X*=128,ct>=X&&(ct-=Math.pow(2,8*d)),ct},f.prototype.readInt8=function(p,d){return p=p>>>0,d||st(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,d){p=p>>>0,d||st(p,2,this.length);const k=this[p]|this[p+1]<<8;return k&32768?k|4294901760:k},f.prototype.readInt16BE=function(p,d){p=p>>>0,d||st(p,2,this.length);const k=this[p+1]|this[p]<<8;return k&32768?k|4294901760:k},f.prototype.readInt32LE=function(p,d){return p=p>>>0,d||st(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,d){return p=p>>>0,d||st(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readBigInt64LE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(k<<24);return(BigInt(q)<<BigInt(32))+BigInt(d+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),f.prototype.readBigInt64BE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=(d<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(q)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+k)}),f.prototype.readFloatLE=function(p,d){return p=p>>>0,d||st(p,4,this.length),e.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,d){return p=p>>>0,d||st(p,4,this.length),e.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,d){return p=p>>>0,d||st(p,8,this.length),e.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,d){return p=p>>>0,d||st(p,8,this.length),e.read(this,p,!1,52,8)};function St(E,p,d,k,q,X){if(!f.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>q||p<X)throw new RangeError('"value" argument is out of bounds');if(d+k>E.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,d,k,q){if(p=+p,d=d>>>0,k=k>>>0,!q){const kt=Math.pow(2,8*k)-1;St(this,p,d,k,kt,0)}let X=1,ct=0;for(this[d]=p&255;++ct<k&&(X*=256);)this[d+ct]=p/X&255;return d+k},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,d,k,q){if(p=+p,d=d>>>0,k=k>>>0,!q){const kt=Math.pow(2,8*k)-1;St(this,p,d,k,kt,0)}let X=k-1,ct=1;for(this[d+X]=p&255;--X>=0&&(ct*=256);)this[d+X]=p/ct&255;return d+k},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,1,255,0),this[d]=p&255,d+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,65535,0),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,65535,0),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,4294967295,0),this[d+3]=p>>>24,this[d+2]=p>>>16,this[d+1]=p>>>8,this[d]=p&255,d+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,4294967295,0),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4};function H(E,p,d,k,q){Ot(p,k,q,E,d,7);let X=Number(p&BigInt(4294967295));E[d++]=X,X=X>>8,E[d++]=X,X=X>>8,E[d++]=X,X=X>>8,E[d++]=X;let ct=Number(p>>BigInt(32)&BigInt(4294967295));return E[d++]=ct,ct=ct>>8,E[d++]=ct,ct=ct>>8,E[d++]=ct,ct=ct>>8,E[d++]=ct,d}function V(E,p,d,k,q){Ot(p,k,q,E,d,7);let X=Number(p&BigInt(4294967295));E[d+7]=X,X=X>>8,E[d+6]=X,X=X>>8,E[d+5]=X,X=X>>8,E[d+4]=X;let ct=Number(p>>BigInt(32)&BigInt(4294967295));return E[d+3]=ct,ct=ct>>8,E[d+2]=ct,ct=ct>>8,E[d+1]=ct,ct=ct>>8,E[d]=ct,d+8}f.prototype.writeBigUInt64LE=ge(function(p,d=0){return H(this,p,d,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ge(function(p,d=0){return V(this,p,d,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(p,d,k,q){if(p=+p,d=d>>>0,!q){const Jt=Math.pow(2,8*k-1);St(this,p,d,k,Jt-1,-Jt)}let X=0,ct=1,kt=0;for(this[d]=p&255;++X<k&&(ct*=256);)p<0&&kt===0&&this[d+X-1]!==0&&(kt=1),this[d+X]=(p/ct>>0)-kt&255;return d+k},f.prototype.writeIntBE=function(p,d,k,q){if(p=+p,d=d>>>0,!q){const Jt=Math.pow(2,8*k-1);St(this,p,d,k,Jt-1,-Jt)}let X=k-1,ct=1,kt=0;for(this[d+X]=p&255;--X>=0&&(ct*=256);)p<0&&kt===0&&this[d+X+1]!==0&&(kt=1),this[d+X]=(p/ct>>0)-kt&255;return d+k},f.prototype.writeInt8=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,1,127,-128),p<0&&(p=255+p+1),this[d]=p&255,d+1},f.prototype.writeInt16LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,32767,-32768),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeInt16BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,32767,-32768),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeInt32LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,2147483647,-2147483648),this[d]=p&255,this[d+1]=p>>>8,this[d+2]=p>>>16,this[d+3]=p>>>24,d+4},f.prototype.writeInt32BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4},f.prototype.writeBigInt64LE=ge(function(p,d=0){return H(this,p,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ge(function(p,d=0){return V(this,p,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function tt(E,p,d,k,q,X){if(d+k>E.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function ut(E,p,d,k,q){return p=+p,d=d>>>0,q||tt(E,p,d,4),e.write(E,p,d,k,23,4),d+4}f.prototype.writeFloatLE=function(p,d,k){return ut(this,p,d,!0,k)},f.prototype.writeFloatBE=function(p,d,k){return ut(this,p,d,!1,k)};function dt(E,p,d,k,q){return p=+p,d=d>>>0,q||tt(E,p,d,8),e.write(E,p,d,k,52,8),d+8}f.prototype.writeDoubleLE=function(p,d,k){return dt(this,p,d,!0,k)},f.prototype.writeDoubleBE=function(p,d,k){return dt(this,p,d,!1,k)},f.prototype.copy=function(p,d,k,q){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(k||(k=0),!q&&q!==0&&(q=this.length),d>=p.length&&(d=p.length),d||(d=0),q>0&&q<k&&(q=k),q===k||p.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),p.length-d<q-k&&(q=p.length-d+k);const X=q-k;return this===p&&typeof _.prototype.copyWithin=="function"?this.copyWithin(d,k,q):_.prototype.set.call(p,this.subarray(k,q),d),X},f.prototype.fill=function(p,d,k,q){if(typeof p=="string"){if(typeof d=="string"?(q=d,d=0,k=this.length):typeof k=="string"&&(q=k,k=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!f.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(p.length===1){const ct=p.charCodeAt(0);(q==="utf8"&&ct<128||q==="latin1")&&(p=ct)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(d<0||this.length<d||this.length<k)throw new RangeError("Out of range index");if(k<=d)return this;d=d>>>0,k=k===void 0?this.length:k>>>0,p||(p=0);let X;if(typeof p=="number")for(X=d;X<k;++X)this[X]=p;else{const ct=f.isBuffer(p)?p:f.from(p,q),kt=ct.length;if(kt===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(X=0;X<k-d;++X)this[X+d]=ct[X%kt]}return this};const x={};function O(E,p,d){x[E]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,this.stack,delete this.name}get code(){return E}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(E,p){return`The "${E}" argument must be of type number. Received type ${typeof p}`},TypeError),O("ERR_OUT_OF_RANGE",function(E,p,d){let k=`The value of "${E}" is out of range.`,q=d;return Number.isInteger(d)&&Math.abs(d)>2**32?q=nt(String(d)):typeof d=="bigint"&&(q=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(q=nt(q)),q+="n"),k+=` It must be ${p}. Received ${q}`,k},RangeError);function nt(E){let p="",d=E.length;const k=E[0]==="-"?1:0;for(;d>=k+4;d-=3)p=`_${E.slice(d-3,d)}${p}`;return`${E.slice(0,d)}${p}`}function bt(E,p,d){vt(p,"offset"),(E[p]===void 0||E[p+d]===void 0)&&Nt(p,E.length-(d+1))}function Ot(E,p,d,k,q,X){if(E>d||E<p){const ct=typeof p=="bigint"?"n":"";let kt;throw p===0||p===BigInt(0)?kt=`>= 0${ct} and < 2${ct} ** ${(X+1)*8}${ct}`:kt=`>= -(2${ct} ** ${(X+1)*8-1}${ct}) and < 2 ** ${(X+1)*8-1}${ct}`,new x.ERR_OUT_OF_RANGE("value",kt,E)}bt(k,q,X)}function vt(E,p){if(typeof E!="number")throw new x.ERR_INVALID_ARG_TYPE(p,"number",E)}function Nt(E,p,d){throw Math.floor(E)!==E?(vt(E,d),new x.ERR_OUT_OF_RANGE("offset","an integer",E)):p<0?new x.ERR_BUFFER_OUT_OF_BOUNDS:new x.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,E)}const _e=/[^+/0-9A-Za-z-_]/g;function at(E){if(E=E.split("=")[0],E=E.trim().replace(_e,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Re(E,p){p=p||1/0;let d;const k=E.length;let q=null;const X=[];for(let ct=0;ct<k;++ct){if(d=E.charCodeAt(ct),d>55295&&d<57344){if(!q){if(d>56319){(p-=3)>-1&&X.push(239,191,189);continue}else if(ct+1===k){(p-=3)>-1&&X.push(239,191,189);continue}q=d;continue}if(d<56320){(p-=3)>-1&&X.push(239,191,189),q=d;continue}d=(q-55296<<10|d-56320)+65536}else q&&(p-=3)>-1&&X.push(239,191,189);if(q=null,d<128){if((p-=1)<0)break;X.push(d)}else if(d<2048){if((p-=2)<0)break;X.push(d>>6|192,d&63|128)}else if(d<65536){if((p-=3)<0)break;X.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((p-=4)<0)break;X.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return X}function Ye(E){const p=[];for(let d=0;d<E.length;++d)p.push(E.charCodeAt(d)&255);return p}function re(E,p){let d,k,q;const X=[];for(let ct=0;ct<E.length&&!((p-=2)<0);++ct)d=E.charCodeAt(ct),k=d>>8,q=d%256,X.push(q),X.push(k);return X}function oe(E){return t.toByteArray(at(E))}function He(E,p,d,k){let q;for(q=0;q<k&&!(q+d>=p.length||q>=E.length);++q)p[q+d]=E[q];return q}function ye(E,p){return E instanceof p||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===p.name}function Ue(E){return E!==E}const qe=function(){const E="0123456789abcdef",p=new Array(256);for(let d=0;d<16;++d){const k=d*16;for(let q=0;q<16;++q)p[k+q]=E[d]+E[q]}return p}();function ge(E){return typeof BigInt>"u"?gr:E}function gr(){throw new Error("BigInt not supported")}})(Ns);const yr=Ns.Buffer,Vm="6.13.4";function Ym(n,t,e){const r=t.split("|").map(_=>_.trim());for(let _=0;_<r.length;_++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof n===t)return}const s=new Error(`invalid value for type ${t}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${e}`,s.value=n,s}async function Ie(n){const t=Object.keys(n);return(await Promise.all(t.map(r=>Promise.resolve(n[r])))).reduce((r,s,_)=>(r[t[_]]=s,r),{})}function xt(n,t,e){for(let r in t){let s=t[r];const _=e?e[r]:null;_&&Ym(s,_,r),Object.defineProperty(n,r,{enumerable:!0,value:s,writable:!1})}}function U_(n){if(n==null)return"null";if(Array.isArray(n))return"[ "+n.map(U_).join(", ")+" ]";if(n instanceof Uint8Array){const t="0123456789abcdef";let e="0x";for(let r=0;r<n.length;r++)e+=t[n[r]>>4],e+=t[n[r]&15];return e}if(typeof n=="object"&&typeof n.toJSON=="function")return U_(n.toJSON());switch(typeof n){case"boolean":case"symbol":return n.toString();case"bigint":return BigInt(n).toString();case"number":return n.toString();case"string":return JSON.stringify(n);case"object":{const t=Object.keys(n);return t.sort(),"{ "+t.map(e=>`${U_(e)}: ${U_(n[e])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ee(n,t){return n&&n.code===t}function il(n){return Ee(n,"CALL_EXCEPTION")}function ue(n,t,e){let r=n;{const _=[];if(e){if("message"in e||"code"in e||"name"in e)throw new Error(`value will overwrite populated values: ${U_(e)}`);for(const a in e){if(a==="shortMessage")continue;const c=e[a];_.push(a+"="+U_(c))}}_.push(`code=${t}`),_.push(`version=${Vm}`),_.length&&(n+=" ("+_.join(", ")+")")}let s;switch(t){case"INVALID_ARGUMENT":s=new TypeError(n);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(n);break;default:s=new Error(n)}return xt(s,{code:t}),e&&Object.assign(s,e),s.shortMessage==null&&xt(s,{shortMessage:r}),s}function ht(n,t,e,r){if(!n)throw ue(t,e,r)}function W(n,t,e,r){ht(n,t,"INVALID_ARGUMENT",{argument:e,value:r})}function Bw(n,t,e){e==null&&(e=""),e&&(e=": "+e),ht(n>=t,"missing arguemnt"+e,"MISSING_ARGUMENT",{count:n,expectedCount:t}),ht(n<=t,"too many arguments"+e,"UNEXPECTED_ARGUMENT",{count:n,expectedCount:t})}["NFD","NFC","NFKD","NFKC"].reduce((n,t)=>{try{if("test".normalize(t)!=="test")throw new Error("bad");if(t==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");n.push(t)}catch{}return n},[]);function Du(n,t,e){if(e==null&&(e=""),n!==t){let r=e,s="new";e&&(r+=".",s+=" "+e),ht(!1,`private constructor; use ${r}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function xw(n,t,e){if(n instanceof Uint8Array)return e?new Uint8Array(n):n;if(typeof n=="string"&&n.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const r=new Uint8Array((n.length-2)/2);let s=2;for(let _=0;_<r.length;_++)r[_]=parseInt(n.substring(s,s+2),16),s+=2;return r}W(!1,"invalid BytesLike value",t||"value",n)}function qt(n,t){return xw(n,t,!1)}function Ne(n,t){return xw(n,t,!0)}function ee(n,t){return!(typeof n!="string"||!n.match(/^0x[0-9A-Fa-f]*$/)||typeof t=="number"&&n.length!==2+2*t||t===!0&&n.length%2!==0)}function sl(n){return ee(n,!0)||n instanceof Uint8Array}const Cw="0123456789abcdef";function Et(n){const t=qt(n);let e="0x";for(let r=0;r<t.length;r++){const s=t[r];e+=Cw[(s&240)>>4]+Cw[s&15]}return e}function le(n){return"0x"+n.map(t=>Et(t).substring(2)).join("")}function K_(n){return ee(n,!0)?(n.length-2)/2:qt(n).length}function fe(n,t,e){const r=qt(n);return e!=null&&e>r.length&&ht(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:e}),Et(r.slice(t??0,e??r.length))}function Iw(n,t,e){const r=qt(n);ht(t>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:t,offset:t+1});const s=new Uint8Array(t);return s.fill(0),e?s.set(r,t-r.length):s.set(r,0),Et(s)}function Os(n,t){return Iw(n,t,!0)}function Hm(n,t){return Iw(n,t,!1)}const Lu=BigInt(0),Ar=BigInt(1),_l=9007199254740991;function qm(n,t){const e=ju(n,"value"),r=BigInt(Kt(t,"width"));if(ht(e>>r===Lu,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:n}),e>>r-Ar){const s=(Ar<<r)-Ar;return-((~e&s)+Ar)}return e}function Nw(n,t){let e=zt(n,"value");const r=BigInt(Kt(t,"width")),s=Ar<<r-Ar;if(e<Lu){e=-e,ht(e<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:n});const _=(Ar<<r)-Ar;return(~e&_)+Ar}else ht(e<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:n});return e}function Dc(n,t){const e=ju(n,"value"),r=BigInt(Kt(t,"bits"));return e&(Ar<<r)-Ar}function zt(n,t){switch(typeof n){case"bigint":return n;case"number":return W(Number.isInteger(n),"underflow",t||"value",n),W(n>=-9007199254740991&&n<=_l,"overflow",t||"value",n),BigInt(n);case"string":try{if(n==="")throw new Error("empty string");return n[0]==="-"&&n[1]!=="-"?-BigInt(n.substring(1)):BigInt(n)}catch(e){W(!1,`invalid BigNumberish string: ${e.message}`,t||"value",n)}}W(!1,"invalid BigNumberish value",t||"value",n)}function ju(n,t){const e=zt(n,t);return ht(e>=Lu,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:n}),e}const Ow="0123456789abcdef";function ol(n){if(n instanceof Uint8Array){let t="0x0";for(const e of n)t+=Ow[e>>4],t+=Ow[e&15];return BigInt(t)}return zt(n)}function Kt(n,t){switch(typeof n){case"bigint":return W(n>=-9007199254740991&&n<=_l,"overflow",t||"value",n),Number(n);case"number":return W(Number.isInteger(n),"underflow",t||"value",n),W(n>=-9007199254740991&&n<=_l,"overflow",t||"value",n),n;case"string":try{if(n==="")throw new Error("empty string");return Kt(BigInt(n),t)}catch(e){W(!1,`invalid numeric string: ${e.message}`,t||"value",n)}}W(!1,"invalid numeric value",t||"value",n)}function Qm(n){return Kt(ol(n))}function rs(n,t){let r=ju(n,"value").toString(16);if(t==null)r.length%2&&(r="0"+r);else{const s=Kt(t,"width");for(ht(s*2>=r.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:n});r.length<s*2;)r="0"+r}return"0x"+r}function Oe(n){const t=ju(n,"value");if(t===Lu)return new Uint8Array([]);let e=t.toString(16);e.length%2&&(e="0"+e);const r=new Uint8Array(e.length/2);for(let s=0;s<r.length;s++){const _=s*2;r[s]=parseInt(e.substring(_,_+2),16)}return r}function D_(n){let t=Et(sl(n)?n:Oe(n)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return t===""&&(t="0"),"0x"+t}const kw="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";BigInt(0);const Tw=BigInt(58);function Wm(n){const t=qt(n);let e=ol(t),r="";for(;e;)r=kw[Number(e%Tw)]+r,e/=Tw;for(let s=0;s<t.length&&!t[s];s++)r=kw[0]+r;return r}function Jm(n){n=atob(n);const t=new Uint8Array(n.length);for(let e=0;e<n.length;e++)t[e]=n.charCodeAt(e);return qt(t)}function $m(n){const t=qt(n);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}class Gw{constructor(t,e,r){$(this,"filter");$(this,"emitter");rt(this,Ja);K(this,Ja,e),xt(this,{emitter:t,filter:r})}async removeListener(){m(this,Ja)!=null&&await this.emitter.off(this.filter,m(this,Ja))}}Ja=new WeakMap;function Zm(n,t,e,r,s){W(!1,`invalid codepoint at offset ${t}; ${n}`,"bytes",e)}function Fw(n,t,e,r,s){if(n==="BAD_PREFIX"||n==="UNEXPECTED_CONTINUE"){let _=0;for(let a=t+1;a<e.length&&e[a]>>6===2;a++)_++;return _}return n==="OVERRUN"?e.length-t-1:0}function Xm(n,t,e,r,s){return n==="OVERLONG"?(W(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),r.push(s),0):(r.push(65533),Fw(n,t,e))}const tS=Object.freeze({error:Zm,ignore:Fw,replace:Xm});function eS(n,t){t==null&&(t=tS.error);const e=qt(n,"bytes"),r=[];let s=0;for(;s<e.length;){const _=e[s++];if(_>>7===0){r.push(_);continue}let a=null,c=null;if((_&224)===192)a=1,c=127;else if((_&240)===224)a=2,c=2047;else if((_&248)===240)a=3,c=65535;else{(_&192)===128?s+=t("UNEXPECTED_CONTINUE",s-1,e,r):s+=t("BAD_PREFIX",s-1,e,r);continue}if(s-1+a>=e.length){s+=t("OVERRUN",s-1,e,r);continue}let u=_&(1<<8-a-1)-1;for(let l=0;l<a;l++){let f=e[s];if((f&192)!=128){s+=t("MISSING_CONTINUE",s,e,r),u=null;break}u=u<<6|f&63,s++}if(u!==null){if(u>1114111){s+=t("OUT_OF_RANGE",s-1-a,e,r,u);continue}if(u>=55296&&u<=57343){s+=t("UTF16_SURROGATE",s-1-a,e,r,u);continue}if(u<=c){s+=t("OVERLONG",s-1-a,e,r,u);continue}r.push(u)}}return r}function Ci(n,t){W(typeof n=="string","invalid string value","str",n);let e=[];for(let r=0;r<n.length;r++){const s=n.charCodeAt(r);if(s<128)e.push(s);else if(s<2048)e.push(s>>6|192),e.push(s&63|128);else if((s&64512)==55296){r++;const _=n.charCodeAt(r);W(r<n.length&&(_&64512)===56320,"invalid surrogate pair","str",n);const a=65536+((s&1023)<<10)+(_&1023);e.push(a>>18|240),e.push(a>>12&63|128),e.push(a>>6&63|128),e.push(a&63|128)}else e.push(s>>12|224),e.push(s>>6&63|128),e.push(s&63|128)}return new Uint8Array(e)}function rS(n){return n.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))).join("")}function Vu(n,t){return rS(eS(n,t))}function Uw(n){async function t(e,r){ht(r==null||!r.cancelled,"request cancelled before sending","CANCELLED");const s=e.url.split(":")[0].toLowerCase();ht(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),ht(s==="https"||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let _=null;const a=new AbortController,c=setTimeout(()=>{_=ue("request timeout","TIMEOUT"),a.abort()},e.timeout);r&&r.addListener(()=>{_=ue("request cancelled","CANCELLED"),a.abort()});const u={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:a.signal};let l;try{l=await fetch(e.url,u)}catch(M){throw clearTimeout(c),_||M}clearTimeout(c);const f={};l.headers.forEach((M,B)=>{f[B.toLowerCase()]=M});const w=await l.arrayBuffer(),y=w==null?null:new Uint8Array(w);return{statusCode:l.status,statusMessage:l.statusText,headers:f,body:y}}return t}const nS=12,iS=250;let Kw=Uw();const sS=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_S=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let al=!1;async function Dw(n,t){try{const e=n.match(sS);if(!e)throw new Error("invalid data");return new ns(200,"OK",{"content-type":e[1]||"text/plain"},e[2]?Jm(e[3]):aS(e[3]))}catch{return new ns(599,"BAD REQUEST (invalid data: URI)",{},null,new Ii(n))}}function Lw(n){async function t(e,r){try{const s=e.match(_S);if(!s)throw new Error("invalid link");return new Ii(`${n}${s[2]}`)}catch{return new ns(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Ii(e))}}return t}const Yu={data:Dw,ipfs:Lw("https://gateway.ipfs.io/ipfs/")},jw=new WeakMap;class oS{constructor(t){rt(this,p_);rt(this,hs);K(this,p_,[]),K(this,hs,!1),jw.set(t,()=>{if(!m(this,hs)){K(this,hs,!0);for(const e of m(this,p_))setTimeout(()=>{e()},0);K(this,p_,[])}})}addListener(t){ht(!m(this,hs),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),m(this,p_).push(t)}get cancelled(){return m(this,hs)}checkSignal(){ht(!this.cancelled,"cancelled","CANCELLED",{})}}p_=new WeakMap,hs=new WeakMap;function Hu(n){if(n==null)throw new Error("missing signal; should not happen");return n.checkSignal(),n}const Lf=class Lf{constructor(t){rt(this,g_);rt(this,$a);rt(this,Za);rt(this,Br);rt(this,Li);rt(this,Xa);rt(this,tc);rt(this,Se);rt(this,$e);rt(this,ji);rt(this,h_);rt(this,w_);rt(this,d_);rt(this,Si);rt(this,xr);rt(this,ws);K(this,tc,String(t)),K(this,$a,!1),K(this,Za,!0),K(this,Br,{}),K(this,Li,""),K(this,Xa,3e5),K(this,xr,{slotInterval:iS,maxAttempts:nS}),K(this,ws,null)}get url(){return m(this,tc)}set url(t){K(this,tc,String(t))}get body(){return m(this,Se)==null?null:new Uint8Array(m(this,Se))}set body(t){if(t==null)K(this,Se,void 0),K(this,$e,void 0);else if(typeof t=="string")K(this,Se,Ci(t)),K(this,$e,"text/plain");else if(t instanceof Uint8Array)K(this,Se,t),K(this,$e,"application/octet-stream");else if(typeof t=="object")K(this,Se,Ci(JSON.stringify(t))),K(this,$e,"application/json");else throw new Error("invalid body")}hasBody(){return m(this,Se)!=null}get method(){return m(this,Li)?m(this,Li):this.hasBody()?"POST":"GET"}set method(t){t==null&&(t=""),K(this,Li,String(t).toUpperCase())}get headers(){const t=Object.assign({},m(this,Br));return m(this,ji)&&(t.authorization=`Basic ${$m(Ci(m(this,ji)))}`),this.allowGzip&&(t["accept-encoding"]="gzip"),t["content-type"]==null&&m(this,$e)&&(t["content-type"]=m(this,$e)),this.body&&(t["content-length"]=String(this.body.length)),t}getHeader(t){return this.headers[t.toLowerCase()]}setHeader(t,e){m(this,Br)[String(t).toLowerCase()]=String(e)}clearHeaders(){K(this,Br,{})}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r<e.length){const s=e[r++];return{value:[s,t[s]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return m(this,ji)||null}setCredentials(t,e){W(!t.match(/:/),"invalid basic authentication username","username","[REDACTED]"),K(this,ji,`${t}:${e}`)}get allowGzip(){return m(this,Za)}set allowGzip(t){K(this,Za,!!t)}get allowInsecureAuthentication(){return!!m(this,$a)}set allowInsecureAuthentication(t){K(this,$a,!!t)}get timeout(){return m(this,Xa)}set timeout(t){W(t>=0,"timeout must be non-zero","timeout",t),K(this,Xa,t)}get preflightFunc(){return m(this,h_)||null}set preflightFunc(t){K(this,h_,t)}get processFunc(){return m(this,w_)||null}set processFunc(t){K(this,w_,t)}get retryFunc(){return m(this,d_)||null}set retryFunc(t){K(this,d_,t)}get getUrlFunc(){return m(this,ws)||Kw}set getUrlFunc(t){K(this,ws,t)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${m(this,Se)?Et(m(this,Se)):"null"}>`}setThrottleParams(t){t.slotInterval!=null&&(m(this,xr).slotInterval=t.slotInterval),t.maxAttempts!=null&&(m(this,xr).maxAttempts=t.maxAttempts)}send(){return ht(m(this,Si)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),K(this,Si,new oS(this)),mt(this,g_,Fu).call(this,0,Vw()+this.timeout,0,this,new ns(0,"",{},null,this))}cancel(){ht(m(this,Si)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const t=jw.get(this);if(!t)throw new Error("missing signal; should not happen");t()}redirect(t){const e=this.url.split(":")[0].toLowerCase(),r=t.split(":")[0].toLowerCase();ht(this.method==="GET"&&(e!=="https"||r!=="http")&&t.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(t)})`});const s=new Lf(t);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,K(s,Br,Object.assign({},m(this,Br))),m(this,Se)&&K(s,Se,new Uint8Array(m(this,Se))),K(s,$e,m(this,$e)),s}clone(){const t=new Lf(this.url);return K(t,Li,m(this,Li)),m(this,Se)&&K(t,Se,m(this,Se)),K(t,$e,m(this,$e)),K(t,Br,Object.assign({},m(this,Br))),K(t,ji,m(this,ji)),this.allowGzip&&(t.allowGzip=!0),t.timeout=this.timeout,this.allowInsecureAuthentication&&(t.allowInsecureAuthentication=!0),K(t,h_,m(this,h_)),K(t,w_,m(this,w_)),K(t,d_,m(this,d_)),K(t,xr,Object.assign({},m(this,xr))),K(t,ws,m(this,ws)),t}static lockConfig(){al=!0}static getGateway(t){return Yu[t.toLowerCase()]||null}static registerGateway(t,e){if(t=t.toLowerCase(),t==="http"||t==="https")throw new Error(`cannot intercept ${t}; use registerGetUrl`);if(al)throw new Error("gateways locked");Yu[t]=e}static registerGetUrl(t){if(al)throw new Error("gateways locked");Kw=t}static createGetUrlFunc(t){return Uw()}static createDataGateway(){return Dw}static createIpfsGatewayFunc(t){return Lw(t)}};$a=new WeakMap,Za=new WeakMap,Br=new WeakMap,Li=new WeakMap,Xa=new WeakMap,tc=new WeakMap,Se=new WeakMap,$e=new WeakMap,ji=new WeakMap,h_=new WeakMap,w_=new WeakMap,d_=new WeakMap,Si=new WeakMap,xr=new WeakMap,ws=new WeakMap,g_=new WeakSet,Fu=async function(t,e,r,s,_){var f,w,y;if(t>=m(this,xr).maxAttempts)return _.makeServerError("exceeded maximum retry limit");ht(Vw()<=e,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),r>0&&await cS(r);let a=this.clone();const c=(a.url.split(":")[0]||"").toLowerCase();if(c in Yu){const M=await Yu[c](a.url,Hu(m(s,Si)));if(M instanceof ns){let B=M;if(this.processFunc){Hu(m(s,Si));try{B=await this.processFunc(a,B)}catch(I){(I.throttle==null||typeof I.stall!="number")&&B.makeServerError("error in post-processing function",I).assertOk()}}return B}a=M}this.preflightFunc&&(a=await this.preflightFunc(a));const u=await this.getUrlFunc(a,Hu(m(s,Si)));let l=new ns(u.statusCode,u.statusMessage,u.headers,u.body,s);if(l.statusCode===301||l.statusCode===302){try{const M=l.headers.location||"";return mt(f=a.redirect(M),g_,Fu).call(f,t+1,e,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(a,l,t))){const M=l.headers["retry-after"];let B=m(this,xr).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return typeof M=="string"&&M.match(/^[1-9][0-9]*$/)&&(B=parseInt(M)),mt(w=a.clone(),g_,Fu).call(w,t+1,e,B,s,l)}if(this.processFunc){Hu(m(s,Si));try{l=await this.processFunc(a,l)}catch(M){(M.throttle==null||typeof M.stall!="number")&&l.makeServerError("error in post-processing function",M).assertOk();let B=m(this,xr).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return M.stall>=0&&(B=M.stall),mt(y=a.clone(),g_,Fu).call(y,t+1,e,B,s,l)}}return l};let Ii=Lf;const $h=class $h{constructor(t,e,r,s,_){rt(this,Su);rt(this,Ru);rt(this,Eu);rt(this,Ze);rt(this,ec);rt(this,b_);K(this,Su,t),K(this,Ru,e),K(this,Eu,Object.keys(r).reduce((a,c)=>(a[c.toLowerCase()]=String(r[c]),a),{})),K(this,Ze,s==null?null:new Uint8Array(s)),K(this,ec,_||null),K(this,b_,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${m(this,Ze)?Et(m(this,Ze)):"null"}>`}get statusCode(){return m(this,Su)}get statusMessage(){return m(this,Ru)}get headers(){return Object.assign({},m(this,Eu))}get body(){return m(this,Ze)==null?null:new Uint8Array(m(this,Ze))}get bodyText(){try{return m(this,Ze)==null?"":Vu(m(this,Ze))}catch{ht(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{ht(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r<e.length){const s=e[r++];return{value:[s,t[s]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(t,e){let r;t?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${t})`:(t=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${t})`);const s=new $h(599,r,this.headers,this.body,m(this,ec)||void 0);return K(s,b_,{message:t,error:e}),s}throwThrottleError(t,e){e==null?e=-1:W(Number.isInteger(e)&&e>=0,"invalid stall timeout","stall",e);const r=new Error(t||"throttling requests");throw xt(r,{stall:e,throttle:!0}),r}getHeader(t){return this.headers[t.toLowerCase()]}hasBody(){return m(this,Ze)!=null}get request(){return m(this,ec)}ok(){return m(this,b_).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:t,error:e}=m(this,b_);t===""&&(t=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let s=null;try{m(this,Ze)&&(s=Vu(m(this,Ze)))}catch{}ht(!1,t,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:e,info:{requestUrl:r,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};Su=new WeakMap,Ru=new WeakMap,Eu=new WeakMap,Ze=new WeakMap,ec=new WeakMap,b_=new WeakMap;let ns=$h;function Vw(){return new Date().getTime()}function aS(n){return Ci(n.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))}function cS(n){return new Promise(t=>setTimeout(t,n))}function uS(n){let t=n.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function Yw(n,t,e){let r=0;for(let s=0;s<e;s++)r=r*256+n[t+s];return r}function Hw(n,t,e,r){const s=[];for(;e<t+1+r;){const _=qw(n,e);s.push(_.result),e+=_.consumed,ht(e<=t+1+r,"child data too short","BUFFER_OVERRUN",{buffer:n,length:r,offset:t})}return{consumed:1+r,result:s}}function qw(n,t){ht(n.length!==0,"data too short","BUFFER_OVERRUN",{buffer:n,length:0,offset:1});const e=r=>{ht(r<=n.length,"data short segment too short","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r})};if(n[t]>=248){const r=n[t]-247;e(t+1+r);const s=Yw(n,t+1,r);return e(t+1+r+s),Hw(n,t,t+1+r,r+s)}else if(n[t]>=192){const r=n[t]-192;return e(t+1+r),Hw(n,t,t+1,r)}else if(n[t]>=184){const r=n[t]-183;e(t+1+r);const s=Yw(n,t+1,r);e(t+1+r+s);const _=Et(n.slice(t+1+r,t+1+r+s));return{consumed:1+r+s,result:_}}else if(n[t]>=128){const r=n[t]-128;e(t+1+r);const s=Et(n.slice(t+1,t+1+r));return{consumed:1+r,result:s}}return{consumed:1,result:uS(n[t])}}function qu(n){const t=qt(n,"data"),e=qw(t,0);return W(e.consumed===t.length,"unexpected junk after rlp payload","data",n),e.result}function Qw(n){const t=[];for(;n;)t.unshift(n&255),n>>=8;return t}function Ww(n){if(Array.isArray(n)){let r=[];if(n.forEach(function(_){r=r.concat(Ww(_))}),r.length<=55)return r.unshift(192+r.length),r;const s=Qw(r.length);return s.unshift(247+s.length),s.concat(r)}const t=Array.prototype.slice.call(qt(n,"object"));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const e=Qw(t.length);return e.unshift(183+e.length),e.concat(t)}const Jw="0123456789abcdef";function ks(n){let t="0x";for(const e of Ww(n))t+=Jw[e>>4],t+=Jw[e&15];return t}const ke=32,cl=new Uint8Array(ke),fS=["then"],Qu={},$w=new WeakMap;function Ts(n){return $w.get(n)}function Zw(n,t){$w.set(n,t)}function Lc(n,t){const e=new Error(`deferred error during ABI decoding triggered accessing ${n}`);throw e.error=t,e}function ul(n,t,e){return n.indexOf(null)>=0?t.map((r,s)=>r instanceof L_?ul(Ts(r),r,e):r):n.reduce((r,s,_)=>{let a=t.getValue(s);return s in r||(e&&a instanceof L_&&(a=ul(Ts(a),a,e)),r[s]=a),r},{})}const nc=class nc extends Array{constructor(...e){const r=e[0];let s=e[1],_=(e[2]||[]).slice(),a=!0;r!==Qu&&(s=e,_=[],a=!1);super(s.length);rt(this,rc);s.forEach((l,f)=>{this[f]=l});const c=_.reduce((l,f)=>(typeof f=="string"&&l.set(f,(l.get(f)||0)+1),l),new Map);if(Zw(this,Object.freeze(s.map((l,f)=>{const w=_[f];return w!=null&&c.get(w)===1?w:null}))),K(this,rc,[]),m(this,rc)==null&&m(this,rc),!a)return;Object.freeze(this);const u=new Proxy(this,{get:(l,f,w)=>{if(typeof f=="string"){if(f.match(/^[0-9]+$/)){const M=Kt(f,"%index");if(M<0||M>=this.length)throw new RangeError("out of result range");const B=l[M];return B instanceof Error&&Lc(`index ${M}`,B),B}if(fS.indexOf(f)>=0)return Reflect.get(l,f,w);const y=l[f];if(y instanceof Function)return function(...M){return y.apply(this===w?l:this,M)};if(!(f in l))return l.getValue.apply(this===w?l:this,[f])}return Reflect.get(l,f,w)}});return Zw(u,Ts(this)),u}toArray(e){const r=[];return this.forEach((s,_)=>{s instanceof Error&&Lc(`index ${_}`,s),e&&s instanceof nc&&(s=s.toArray(e)),r.push(s)}),r}toObject(e){const r=Ts(this);return r.reduce((s,_,a)=>(ht(_!=null,`value at index ${a} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),ul(r,this,e)),{})}slice(e,r){e==null&&(e=0),e<0&&(e+=this.length,e<0&&(e=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const s=Ts(this),_=[],a=[];for(let c=e;c<r;c++)_.push(this[c]),a.push(s[c]);return new nc(Qu,_,a)}filter(e,r){const s=Ts(this),_=[],a=[];for(let c=0;c<this.length;c++){const u=this[c];u instanceof Error&&Lc(`index ${c}`,u),e.call(r,u,c,this)&&(_.push(u),a.push(s[c]))}return new nc(Qu,_,a)}map(e,r){const s=[];for(let _=0;_<this.length;_++){const a=this[_];a instanceof Error&&Lc(`index ${_}`,a),s.push(e.call(r,a,_,this))}return s}getValue(e){const r=Ts(this).indexOf(e);if(r===-1)return;const s=this[r];return s instanceof Error&&Lc(`property ${JSON.stringify(e)}`,s.error),s}static fromItems(e,r){return new nc(Qu,e,r)}};rc=new WeakMap;let L_=nc;function Xw(n){let t=Oe(n);return ht(t.length<=ke,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:ke,offset:t.length}),t.length!==ke&&(t=Ne(le([cl.slice(t.length%ke),t]))),t}class Ni{constructor(t,e,r,s){$(this,"name");$(this,"type");$(this,"localName");$(this,"dynamic");xt(this,{name:t,type:e,localName:r,dynamic:s},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(t,e){W(!1,t,this.localName,e)}}class fl{constructor(){rt(this,ic);rt(this,Vi);rt(this,y_);K(this,Vi,[]),K(this,y_,0)}get data(){return le(m(this,Vi))}get length(){return m(this,y_)}appendWriter(t){return mt(this,ic,Wf).call(this,Ne(t.data))}writeBytes(t){let e=Ne(t);const r=e.length%ke;return r&&(e=Ne(le([e,cl.slice(r)]))),mt(this,ic,Wf).call(this,e)}writeValue(t){return mt(this,ic,Wf).call(this,Xw(t))}writeUpdatableValue(){const t=m(this,Vi).length;return m(this,Vi).push(cl),K(this,y_,m(this,y_)+ke),e=>{m(this,Vi)[t]=Xw(e)}}}Vi=new WeakMap,y_=new WeakMap,ic=new WeakSet,Wf=function(t){return m(this,Vi).push(t),K(this,y_,m(this,y_)+t.length),t.length};const Zh=class Zh{constructor(t,e,r){rt(this,S_);$(this,"allowLoose");rt(this,je);rt(this,Xe);rt(this,A_);rt(this,m_);rt(this,ds);xt(this,{allowLoose:!!e}),K(this,je,Ne(t)),K(this,A_,0),K(this,m_,null),K(this,ds,r??1024),K(this,Xe,0)}get data(){return Et(m(this,je))}get dataLength(){return m(this,je).length}get consumed(){return m(this,Xe)}get bytes(){return new Uint8Array(m(this,je))}subReader(t){const e=new Zh(m(this,je).slice(m(this,Xe)+t),this.allowLoose,m(this,ds));return K(e,m_,this),e}readBytes(t,e){let r=mt(this,S_,xm).call(this,0,t,!!e);return mt(this,S_,Aw).call(this,t),K(this,Xe,m(this,Xe)+r.length),r.slice(0,t)}readValue(){return ol(this.readBytes(ke))}readIndex(){return Qm(this.readBytes(ke))}};je=new WeakMap,Xe=new WeakMap,A_=new WeakMap,m_=new WeakMap,ds=new WeakMap,S_=new WeakSet,Aw=function(t){var e;if(m(this,m_))return mt(e=m(this,m_),S_,Aw).call(e,t);K(this,A_,m(this,A_)+t),ht(m(this,ds)<1||m(this,A_)<=m(this,ds)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${m(this,ds)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:Ne(m(this,je)),offset:m(this,Xe),length:t,info:{bytesRead:m(this,A_),dataLength:this.dataLength}})},xm=function(t,e,r){let s=Math.ceil(e/ke)*ke;return m(this,Xe)+s>m(this,je).length&&(this.allowLoose&&r&&m(this,Xe)+e<=m(this,je).length?s=e:ht(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:Ne(m(this,je)),length:m(this,je).length,offset:m(this,Xe)+s})),m(this,je).slice(m(this,Xe),m(this,Xe)+s)};let ll=Zh;function Wu(n){if(!Number.isSafeInteger(n)||n<0)throw new Error(`Wrong positive integer: ${n}`)}function pl(n,...t){if(!(n instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(n.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${n.length}`)}function lS(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Wu(n.outputLen),Wu(n.blockLen)}function j_(n,t=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(t&&n.finished)throw new Error("Hash#digest() has already been called")}function td(n,t){pl(n);const e=t.outputLen;if(n.length<e)throw new Error(`digestInto() expects output buffer of length at least ${e}`)}const hl=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ed=n=>n instanceof Uint8Array,pS=n=>new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4)),wl=n=>new DataView(n.buffer,n.byteOffset,n.byteLength),kr=(n,t)=>n<<32-t|n>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function hS(n){if(typeof n!="string")throw new Error(`utf8ToBytes expected string, got ${typeof n}`);return new Uint8Array(new TextEncoder().encode(n))}function Ju(n){if(typeof n=="string"&&(n=hS(n)),!ed(n))throw new Error(`expected Uint8Array, got ${typeof n}`);return n}function wS(...n){const t=new Uint8Array(n.reduce((r,s)=>r+s.length,0));let e=0;return n.forEach(r=>{if(!ed(r))throw new Error("Uint8Array expected");t.set(r,e),e+=r.length}),t}class dl{clone(){return this._cloneInto()}}function gl(n){const t=r=>n().update(Ju(r)).digest(),e=n();return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=()=>n(),t}function dS(n=32){if(hl&&typeof hl.getRandomValues=="function")return hl.getRandomValues(new Uint8Array(n));throw new Error("crypto.getRandomValues must be defined")}class rd extends dl{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,lS(t);const r=Ju(e);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 s=this.blockLen,_=new Uint8Array(s);_.set(r.length>s?t.create().update(r).digest():r);for(let a=0;a<_.length;a++)_[a]^=54;this.iHash.update(_),this.oHash=t.create();for(let a=0;a<_.length;a++)_[a]^=106;this.oHash.update(_),_.fill(0)}update(t){return j_(this),this.iHash.update(t),this}digestInto(t){j_(this),pl(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:e,iHash:r,finished:s,destroyed:_,blockLen:a,outputLen:c}=this;return t=t,t.finished=s,t.destroyed=_,t.blockLen=a,t.outputLen=c,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const nd=(n,t,e)=>new rd(n,t).update(e).digest();nd.create=(n,t)=>new rd(n,t);function gS(n,t,e,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(t,e,r);const s=BigInt(32),_=BigInt(4294967295),a=Number(e>>s&_),c=Number(e&_),u=r?4:0,l=r?0:4;n.setUint32(t+u,a,r),n.setUint32(t+l,c,r)}class id extends dl{constructor(t,e,r,s){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=wl(this.buffer)}update(t){j_(this);const{view:e,buffer:r,blockLen:s}=this;t=Ju(t);const _=t.length;for(let a=0;a<_;){const c=Math.min(s-this.pos,_-a);if(c===s){const u=wl(t);for(;s<=_-a;a+=s)this.process(u,a);continue}r.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===s&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){j_(this),td(t,this),this.finished=!0;const{buffer:e,view:r,blockLen:s,isLE:_}=this;let{pos:a}=this;e[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(r,0),a=0);for(let w=a;w<s;w++)e[w]=0;gS(r,s-8,BigInt(this.length*8),_),this.process(r,0);const c=wl(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,f=this.get();if(l>f.length)throw new Error("_sha2: outputLen bigger than state");for(let w=0;w<l;w++)c.setUint32(4*w,f[w],_)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:r,length:s,finished:_,destroyed:a,pos:c}=this;return t.length=s,t.pos=c,t.finished=_,t.destroyed=a,s%e&&t.buffer.set(r),t}}const bS=(n,t,e)=>n&t^~n&e,yS=(n,t,e)=>n&t^n&e^t&e,AS=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),is=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ss=new Uint32Array(64);class mS extends id{constructor(){super(64,32,8,!1),this.A=is[0]|0,this.B=is[1]|0,this.C=is[2]|0,this.D=is[3]|0,this.E=is[4]|0,this.F=is[5]|0,this.G=is[6]|0,this.H=is[7]|0}get(){const{A:t,B:e,C:r,D:s,E:_,F:a,G:c,H:u}=this;return[t,e,r,s,_,a,c,u]}set(t,e,r,s,_,a,c,u){this.A=t|0,this.B=e|0,this.C=r|0,this.D=s|0,this.E=_|0,this.F=a|0,this.G=c|0,this.H=u|0}process(t,e){for(let w=0;w<16;w++,e+=4)ss[w]=t.getUint32(e,!1);for(let w=16;w<64;w++){const y=ss[w-15],M=ss[w-2],B=kr(y,7)^kr(y,18)^y>>>3,I=kr(M,17)^kr(M,19)^M>>>10;ss[w]=I+ss[w-7]+B+ss[w-16]|0}let{A:r,B:s,C:_,D:a,E:c,F:u,G:l,H:f}=this;for(let w=0;w<64;w++){const y=kr(c,6)^kr(c,11)^kr(c,25),M=f+y+bS(c,u,l)+AS[w]+ss[w]|0,I=(kr(r,2)^kr(r,13)^kr(r,22))+yS(r,s,_)|0;f=l,l=u,u=c,c=a+M|0,a=_,_=s,s=r,r=M+I|0}r=r+this.A|0,s=s+this.B|0,_=_+this.C|0,a=a+this.D|0,c=c+this.E|0,u=u+this.F|0,l=l+this.G|0,f=f+this.H|0,this.set(r,s,_,a,c,u,l,f)}roundClean(){ss.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sd=gl(()=>new mS),$u=BigInt(2**32-1),bl=BigInt(32);function _d(n,t=!1){return t?{h:Number(n&$u),l:Number(n>>bl&$u)}:{h:Number(n>>bl&$u)|0,l:Number(n&$u)|0}}function od(n,t=!1){let e=new Uint32Array(n.length),r=new Uint32Array(n.length);for(let s=0;s<n.length;s++){const{h:_,l:a}=_d(n[s],t);[e[s],r[s]]=[_,a]}return[e,r]}const SS=(n,t)=>BigInt(n>>>0)<<bl|BigInt(t>>>0),RS=(n,t,e)=>n>>>e,ES=(n,t,e)=>n<<32-e|t>>>e,PS=(n,t,e)=>n>>>e|t<<32-e,zS=(n,t,e)=>n<<32-e|t>>>e,vS=(n,t,e)=>n<<64-e|t>>>e-32,MS=(n,t,e)=>n>>>e-32|t<<64-e,BS=(n,t)=>t,xS=(n,t)=>n,ad=(n,t,e)=>n<<e|t>>>32-e,cd=(n,t,e)=>t<<e|n>>>32-e,ud=(n,t,e)=>t<<e-32|n>>>64-e,fd=(n,t,e)=>n<<e-32|t>>>64-e;function CS(n,t,e,r){const s=(t>>>0)+(r>>>0);return{h:n+e+(s/2**32|0)|0,l:s|0}}const Gt={fromBig:_d,split:od,toBig:SS,shrSH:RS,shrSL:ES,rotrSH:PS,rotrSL:zS,rotrBH:vS,rotrBL:MS,rotr32H:BS,rotr32L:xS,rotlSH:ad,rotlSL:cd,rotlBH:ud,rotlBL:fd,add:CS,add3L:(n,t,e)=>(n>>>0)+(t>>>0)+(e>>>0),add3H:(n,t,e,r)=>t+e+r+(n/2**32|0)|0,add4L:(n,t,e,r)=>(n>>>0)+(t>>>0)+(e>>>0)+(r>>>0),add4H:(n,t,e,r,s)=>t+e+r+s+(n/2**32|0)|0,add5H:(n,t,e,r,s,_)=>t+e+r+s+_+(n/2**32|0)|0,add5L:(n,t,e,r,s)=>(n>>>0)+(t>>>0)+(e>>>0)+(r>>>0)+(s>>>0)},[IS,NS]=Gt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(n=>BigInt(n))),_s=new Uint32Array(80),os=new Uint32Array(80);class OS extends id{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:r,Bl:s,Ch:_,Cl:a,Dh:c,Dl:u,Eh:l,El:f,Fh:w,Fl:y,Gh:M,Gl:B,Hh:I,Hl:G}=this;return[t,e,r,s,_,a,c,u,l,f,w,y,M,B,I,G]}set(t,e,r,s,_,a,c,u,l,f,w,y,M,B,I,G){this.Ah=t|0,this.Al=e|0,this.Bh=r|0,this.Bl=s|0,this.Ch=_|0,this.Cl=a|0,this.Dh=c|0,this.Dl=u|0,this.Eh=l|0,this.El=f|0,this.Fh=w|0,this.Fl=y|0,this.Gh=M|0,this.Gl=B|0,this.Hh=I|0,this.Hl=G|0}process(t,e){for(let N=0;N<16;N++,e+=4)_s[N]=t.getUint32(e),os[N]=t.getUint32(e+=4);for(let N=16;N<80;N++){const C=_s[N-15]|0,F=os[N-15]|0,D=Gt.rotrSH(C,F,1)^Gt.rotrSH(C,F,8)^Gt.shrSH(C,F,7),j=Gt.rotrSL(C,F,1)^Gt.rotrSL(C,F,8)^Gt.shrSL(C,F,7),L=_s[N-2]|0,Z=os[N-2]|0,ot=Gt.rotrSH(L,Z,19)^Gt.rotrBH(L,Z,61)^Gt.shrSH(L,Z,6),pt=Gt.rotrSL(L,Z,19)^Gt.rotrBL(L,Z,61)^Gt.shrSL(L,Z,6),Y=Gt.add4L(j,pt,os[N-7],os[N-16]),At=Gt.add4H(Y,D,ot,_s[N-7],_s[N-16]);_s[N]=At|0,os[N]=Y|0}let{Ah:r,Al:s,Bh:_,Bl:a,Ch:c,Cl:u,Dh:l,Dl:f,Eh:w,El:y,Fh:M,Fl:B,Gh:I,Gl:G,Hh:P,Hl:v}=this;for(let N=0;N<80;N++){const C=Gt.rotrSH(w,y,14)^Gt.rotrSH(w,y,18)^Gt.rotrBH(w,y,41),F=Gt.rotrSL(w,y,14)^Gt.rotrSL(w,y,18)^Gt.rotrBL(w,y,41),D=w&M^~w&I,j=y&B^~y&G,L=Gt.add5L(v,F,j,NS[N],os[N]),Z=Gt.add5H(L,P,C,D,IS[N],_s[N]),ot=L|0,pt=Gt.rotrSH(r,s,28)^Gt.rotrBH(r,s,34)^Gt.rotrBH(r,s,39),Y=Gt.rotrSL(r,s,28)^Gt.rotrBL(r,s,34)^Gt.rotrBL(r,s,39),At=r&_^r&c^_&c,Bt=s&a^s&u^a&u;P=I|0,v=G|0,I=M|0,G=B|0,M=w|0,B=y|0,{h:w,l:y}=Gt.add(l|0,f|0,Z|0,ot|0),l=c|0,f=u|0,c=_|0,u=a|0,_=r|0,a=s|0;const ft=Gt.add3L(ot,Y,Bt);r=Gt.add3H(ft,Z,pt,At),s=ft|0}({h:r,l:s}=Gt.add(this.Ah|0,this.Al|0,r|0,s|0)),{h:_,l:a}=Gt.add(this.Bh|0,this.Bl|0,_|0,a|0),{h:c,l:u}=Gt.add(this.Ch|0,this.Cl|0,c|0,u|0),{h:l,l:f}=Gt.add(this.Dh|0,this.Dl|0,l|0,f|0),{h:w,l:y}=Gt.add(this.Eh|0,this.El|0,w|0,y|0),{h:M,l:B}=Gt.add(this.Fh|0,this.Fl|0,M|0,B|0),{h:I,l:G}=Gt.add(this.Gh|0,this.Gl|0,I|0,G|0),{h:P,l:v}=Gt.add(this.Hh|0,this.Hl|0,P|0,v|0),this.set(r,s,_,a,c,u,l,f,w,y,M,B,I,G,P,v)}roundClean(){_s.fill(0),os.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const kS=gl(()=>new OS);function TS(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof te<"u")return te;throw new Error("unable to locate global object")}const ld=TS();ld.crypto||ld.msCrypto;function GS(n){switch(n){case"sha256":return sd.create();case"sha512":return kS.create()}W(!1,"invalid hashing algorithm name","algorithm",n)}const[pd,hd,wd]=[[],[],[]],FS=BigInt(0),jc=BigInt(1),US=BigInt(2),KS=BigInt(7),DS=BigInt(256),LS=BigInt(113);for(let n=0,t=jc,e=1,r=0;n<24;n++){[e,r]=[r,(2*e+3*r)%5],pd.push(2*(5*r+e)),hd.push((n+1)*(n+2)/2%64);let s=FS;for(let _=0;_<7;_++)t=(t<<jc^(t>>KS)*LS)%DS,t&US&&(s^=jc<<(jc<<BigInt(_))-jc);wd.push(s)}const[jS,VS]=od(wd,!0),dd=(n,t,e)=>e>32?ud(n,t,e):ad(n,t,e),gd=(n,t,e)=>e>32?fd(n,t,e):cd(n,t,e);function YS(n,t=24){const e=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)e[a]=n[a]^n[a+10]^n[a+20]^n[a+30]^n[a+40];for(let a=0;a<10;a+=2){const c=(a+8)%10,u=(a+2)%10,l=e[u],f=e[u+1],w=dd(l,f,1)^e[c],y=gd(l,f,1)^e[c+1];for(let M=0;M<50;M+=10)n[a+M]^=w,n[a+M+1]^=y}let s=n[2],_=n[3];for(let a=0;a<24;a++){const c=hd[a],u=dd(s,_,c),l=gd(s,_,c),f=pd[a];s=n[f],_=n[f+1],n[f]=u,n[f+1]=l}for(let a=0;a<50;a+=10){for(let c=0;c<10;c++)e[c]=n[a+c];for(let c=0;c<10;c++)n[a+c]^=~e[(c+2)%10]&e[(c+4)%10]}n[0]^=jS[r],n[1]^=VS[r]}e.fill(0)}class yl extends dl{constructor(t,e,r,s=!1,_=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=s,this.rounds=_,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Wu(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=pS(this.state)}keccak(){YS(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){j_(this);const{blockLen:e,state:r}=this;t=Ju(t);const s=t.length;for(let _=0;_<s;){const a=Math.min(e-this.pos,s-_);for(let c=0;c<a;c++)r[this.pos++]^=t[_++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:r,blockLen:s}=this;t[r]^=e,(e&128)!==0&&r===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){j_(this,!1),pl(t),this.finish();const e=this.state,{blockLen:r}=this;for(let s=0,_=t.length;s<_;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,_-s);t.set(e.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Wu(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(td(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:s,rounds:_,enableXOF:a}=this;return t||(t=new yl(e,r,s,a,_)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=_,t.suffix=r,t.outputLen=s,t.enableXOF=a,t.destroyed=this.destroyed,t}}const HS=((n,t,e)=>gl(()=>new yl(t,n,e)))(1,136,256/8);let bd=!1;const yd=function(n){return HS(n)};let Ad=yd;function be(n){const t=qt(n,"data");return Et(Ad(t))}be._=yd,be.lock=function(){bd=!0},be.register=function(n){if(bd)throw new TypeError("keccak256 is locked");Ad=n},Object.freeze(be);const md=function(n){return GS("sha256").update(n).digest()};let Sd=md,Rd=!1;function V_(n){const t=qt(n,"data");return Et(Sd(t))}V_._=md,V_.lock=function(){Rd=!0},V_.register=function(n){if(Rd)throw new Error("sha256 is locked");Sd=n},Object.freeze(V_),Object.freeze(V_);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ed=BigInt(0),Zu=BigInt(1),qS=BigInt(2),Xu=n=>n instanceof Uint8Array,QS=Array.from({length:256},(n,t)=>t.toString(16).padStart(2,"0"));function Y_(n){if(!Xu(n))throw new Error("Uint8Array expected");let t="";for(let e=0;e<n.length;e++)t+=QS[n[e]];return t}function Pd(n){const t=n.toString(16);return t.length&1?`0${t}`:t}function Al(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return BigInt(n===""?"0":`0x${n}`)}function H_(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const t=n.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const e=new Uint8Array(t/2);for(let r=0;r<e.length;r++){const s=r*2,_=n.slice(s,s+2),a=Number.parseInt(_,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");e[r]=a}return e}function Gs(n){return Al(Y_(n))}function ml(n){if(!Xu(n))throw new Error("Uint8Array expected");return Al(Y_(Uint8Array.from(n).reverse()))}function q_(n,t){return H_(n.toString(16).padStart(t*2,"0"))}function Sl(n,t){return q_(n,t).reverse()}function WS(n){return H_(Pd(n))}function mr(n,t,e){let r;if(typeof t=="string")try{r=H_(t)}catch(_){throw new Error(`${n} must be valid hex string, got "${t}". Cause: ${_}`)}else if(Xu(t))r=Uint8Array.from(t);else throw new Error(`${n} must be hex string or Uint8Array`);const s=r.length;if(typeof e=="number"&&s!==e)throw new Error(`${n} expected ${e} bytes, got ${s}`);return r}function Vc(...n){const t=new Uint8Array(n.reduce((r,s)=>r+s.length,0));let e=0;return n.forEach(r=>{if(!Xu(r))throw new Error("Uint8Array expected");t.set(r,e),e+=r.length}),t}function JS(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return!0}function $S(n){if(typeof n!="string")throw new Error(`utf8ToBytes expected string, got ${typeof n}`);return new Uint8Array(new TextEncoder().encode(n))}function ZS(n){let t;for(t=0;n>Ed;n>>=Zu,t+=1);return t}function XS(n,t){return n>>BigInt(t)&Zu}const tR=(n,t,e)=>n|(e?Zu:Ed)<<BigInt(t),Rl=n=>(qS<<BigInt(n-1))-Zu,El=n=>new Uint8Array(n),zd=n=>Uint8Array.from(n);function vd(n,t,e){if(typeof n!="number"||n<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 e!="function")throw new Error("hmacFn must be a function");let r=El(n),s=El(n),_=0;const a=()=>{r.fill(1),s.fill(0),_=0},c=(...w)=>e(s,r,...w),u=(w=El())=>{s=c(zd([0]),w),r=c(),w.length!==0&&(s=c(zd([1]),w),r=c())},l=()=>{if(_++>=1e3)throw new Error("drbg: tried 1000 values");let w=0;const y=[];for(;w<t;){r=c();const M=r.slice();y.push(M),w+=r.length}return Vc(...y)};return(w,y)=>{a(),u(w);let M;for(;!(M=y(l()));)u();return a(),M}}const eR={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||n instanceof Uint8Array,isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,t)=>t.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function Yc(n,t,e={}){const r=(s,_,a)=>{const c=eR[_];if(typeof c!="function")throw new Error(`Invalid validator "${_}", expected function`);const u=n[s];if(!(a&&u===void 0)&&!c(u,n))throw new Error(`Invalid param ${String(s)}=${u} (${typeof u}), expected ${_}`)};for(const[s,_]of Object.entries(t))r(s,_,!1);for(const[s,_]of Object.entries(e))r(s,_,!0);return n}const rR=Object.freeze(Object.defineProperty({__proto__:null,bitGet:XS,bitLen:ZS,bitMask:Rl,bitSet:tR,bytesToHex:Y_,bytesToNumberBE:Gs,bytesToNumberLE:ml,concatBytes:Vc,createHmacDrbg:vd,ensureBytes:mr,equalBytes:JS,hexToBytes:H_,hexToNumber:Al,numberToBytesBE:q_,numberToBytesLE:Sl,numberToHexUnpadded:Pd,numberToVarBytesBE:WS,utf8ToBytes:$S,validateObject:Yc},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ae=BigInt(0),pe=BigInt(1),Fs=BigInt(2),nR=BigInt(3),Pl=BigInt(4),Md=BigInt(5),Bd=BigInt(8);BigInt(9),BigInt(16);function Ke(n,t){const e=n%t;return e>=Ae?e:t+e}function iR(n,t,e){if(e<=Ae||t<Ae)throw new Error("Expected power/modulo > 0");if(e===pe)return Ae;let r=pe;for(;t>Ae;)t&pe&&(r=r*n%e),n=n*n%e,t>>=pe;return r}function nr(n,t,e){let r=n;for(;t-- >Ae;)r*=r,r%=e;return r}function zl(n,t){if(n===Ae||t<=Ae)throw new Error(`invert: expected positive integers, got n=${n} mod=${t}`);let e=Ke(n,t),r=t,s=Ae,_=pe;for(;e!==Ae;){const c=r/e,u=r%e,l=s-_*c;r=e,e=u,s=_,_=l}if(r!==pe)throw new Error("invert: does not exist");return Ke(s,t)}function sR(n){const t=(n-pe)/Fs;let e,r,s;for(e=n-pe,r=0;e%Fs===Ae;e/=Fs,r++);for(s=Fs;s<n&&iR(s,t,n)!==n-pe;s++);if(r===1){const a=(n+pe)/Pl;return function(u,l){const f=u.pow(l,a);if(!u.eql(u.sqr(f),l))throw new Error("Cannot find square root");return f}}const _=(e+pe)/Fs;return function(c,u){if(c.pow(u,t)===c.neg(c.ONE))throw new Error("Cannot find square root");let l=r,f=c.pow(c.mul(c.ONE,s),e),w=c.pow(u,_),y=c.pow(u,e);for(;!c.eql(y,c.ONE);){if(c.eql(y,c.ZERO))return c.ZERO;let M=1;for(let I=c.sqr(y);M<l&&!c.eql(I,c.ONE);M++)I=c.sqr(I);const B=c.pow(f,pe<<BigInt(l-M-1));f=c.sqr(B),w=c.mul(w,B),y=c.mul(y,f),l=M}return w}}function _R(n){if(n%Pl===nR){const t=(n+pe)/Pl;return function(r,s){const _=r.pow(s,t);if(!r.eql(r.sqr(_),s))throw new Error("Cannot find square root");return _}}if(n%Bd===Md){const t=(n-Md)/Bd;return function(r,s){const _=r.mul(s,Fs),a=r.pow(_,t),c=r.mul(s,a),u=r.mul(r.mul(c,Fs),a),l=r.mul(c,r.sub(u,r.ONE));if(!r.eql(r.sqr(l),s))throw new Error("Cannot find square root");return l}}return sR(n)}const oR=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function aR(n){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},e=oR.reduce((r,s)=>(r[s]="function",r),t);return Yc(n,e)}function cR(n,t,e){if(e<Ae)throw new Error("Expected power > 0");if(e===Ae)return n.ONE;if(e===pe)return t;let r=n.ONE,s=t;for(;e>Ae;)e&pe&&(r=n.mul(r,s)),s=n.sqr(s),e>>=pe;return r}function uR(n,t){const e=new Array(t.length),r=t.reduce((_,a,c)=>n.is0(a)?_:(e[c]=_,n.mul(_,a)),n.ONE),s=n.inv(r);return t.reduceRight((_,a,c)=>n.is0(a)?_:(e[c]=n.mul(_,e[c]),n.mul(_,a)),s),e}function xd(n,t){const e=t!==void 0?t:n.toString(2).length,r=Math.ceil(e/8);return{nBitLength:e,nByteLength:r}}function fR(n,t,e=!1,r={}){if(n<=Ae)throw new Error(`Expected Field ORDER > 0, got ${n}`);const{nBitLength:s,nByteLength:_}=xd(n,t);if(_>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=_R(n),c=Object.freeze({ORDER:n,BITS:s,BYTES:_,MASK:Rl(s),ZERO:Ae,ONE:pe,create:u=>Ke(u,n),isValid:u=>{if(typeof u!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof u}`);return Ae<=u&&u<n},is0:u=>u===Ae,isOdd:u=>(u&pe)===pe,neg:u=>Ke(-u,n),eql:(u,l)=>u===l,sqr:u=>Ke(u*u,n),add:(u,l)=>Ke(u+l,n),sub:(u,l)=>Ke(u-l,n),mul:(u,l)=>Ke(u*l,n),pow:(u,l)=>cR(c,u,l),div:(u,l)=>Ke(u*zl(l,n),n),sqrN:u=>u*u,addN:(u,l)=>u+l,subN:(u,l)=>u-l,mulN:(u,l)=>u*l,inv:u=>zl(u,n),sqrt:r.sqrt||(u=>a(c,u)),invertBatch:u=>uR(c,u),cmov:(u,l,f)=>f?l:u,toBytes:u=>e?Sl(u,_):q_(u,_),fromBytes:u=>{if(u.length!==_)throw new Error(`Fp.fromBytes: expected ${_}, got ${u.length}`);return e?ml(u):Gs(u)}});return Object.freeze(c)}function Cd(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const t=n.toString(2).length;return Math.ceil(t/8)}function Id(n){const t=Cd(n);return t+Math.ceil(t/2)}function lR(n,t,e=!1){const r=n.length,s=Cd(t),_=Id(t);if(r<16||r<_||r>1024)throw new Error(`expected ${_}-1024 bytes of input, got ${r}`);const a=e?Gs(n):ml(n),c=Ke(a,t-pe)+pe;return e?Sl(c,s):q_(c,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pR=BigInt(0),vl=BigInt(1);function hR(n,t){const e=(s,_)=>{const a=_.negate();return s?a:_},r=s=>{const _=Math.ceil(t/s)+1,a=2**(s-1);return{windows:_,windowSize:a}};return{constTimeNegate:e,unsafeLadder(s,_){let a=n.ZERO,c=s;for(;_>pR;)_&vl&&(a=a.add(c)),c=c.double(),_>>=vl;return a},precomputeWindow(s,_){const{windows:a,windowSize:c}=r(_),u=[];let l=s,f=l;for(let w=0;w<a;w++){f=l,u.push(f);for(let y=1;y<c;y++)f=f.add(l),u.push(f);l=f.double()}return u},wNAF(s,_,a){const{windows:c,windowSize:u}=r(s);let l=n.ZERO,f=n.BASE;const w=BigInt(2**s-1),y=2**s,M=BigInt(s);for(let B=0;B<c;B++){const I=B*u;let G=Number(a&w);a>>=M,G>u&&(G-=y,a+=vl);const P=I,v=I+Math.abs(G)-1,N=B%2!==0,C=G<0;G===0?f=f.add(e(N,_[P])):l=l.add(e(C,_[v]))}return{p:l,f}},wNAFCached(s,_,a,c){const u=s._WINDOW_SIZE||1;let l=_.get(s);return l||(l=this.precomputeWindow(s,u),u!==1&&_.set(s,c(l))),this.wNAF(u,l,a)}}}function Nd(n){return aR(n.Fp),Yc(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...xd(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function wR(n){const t=Nd(n);Yc(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:e,Fp:r,a:s}=t;if(e){if(!r.eql(s,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof e!="object"||typeof e.beta!="bigint"||typeof e.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:dR,hexToBytes:gR}=rR,Us={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(n){const{Err:t}=Us;if(n.length<2||n[0]!==2)throw new t("Invalid signature integer tag");const e=n[1],r=n.subarray(2,e+2);if(!e||r.length!==e)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:dR(r),l:n.subarray(e+2)}},toSig(n){const{Err:t}=Us,e=typeof n=="string"?gR(n):n;if(!(e instanceof Uint8Array))throw new Error("ui8a expected");let r=e.length;if(r<2||e[0]!=48)throw new t("Invalid signature tag");if(e[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:s,l:_}=Us._parseInt(e.subarray(2)),{d:a,l:c}=Us._parseInt(_);if(c.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(n){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,e=l=>{const f=l.toString(16);return f.length&1?`0${f}`:f},r=t(e(n.s)),s=t(e(n.r)),_=r.length/2,a=s.length/2,c=e(_),u=e(a);return`30${e(a+_+4)}02${u}${s}02${c}${r}`}},Oi=BigInt(0),ir=BigInt(1);BigInt(2);const Od=BigInt(3);BigInt(4);function bR(n){const t=wR(n),{Fp:e}=t,r=t.toBytes||((B,I,G)=>{const P=I.toAffine();return Vc(Uint8Array.from([4]),e.toBytes(P.x),e.toBytes(P.y))}),s=t.fromBytes||(B=>{const I=B.subarray(1),G=e.fromBytes(I.subarray(0,e.BYTES)),P=e.fromBytes(I.subarray(e.BYTES,2*e.BYTES));return{x:G,y:P}});function _(B){const{a:I,b:G}=t,P=e.sqr(B),v=e.mul(P,B);return e.add(e.add(v,e.mul(B,I)),G)}if(!e.eql(e.sqr(t.Gy),_(t.Gx)))throw new Error("bad generator point: equation left != right");function a(B){return typeof B=="bigint"&&Oi<B&&B<t.n}function c(B){if(!a(B))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function u(B){const{allowedPrivateKeyLengths:I,nByteLength:G,wrapPrivateKey:P,n:v}=t;if(I&&typeof B!="bigint"){if(B instanceof Uint8Array&&(B=Y_(B)),typeof B!="string"||!I.includes(B.length))throw new Error("Invalid key");B=B.padStart(G*2,"0")}let N;try{N=typeof B=="bigint"?B:Gs(mr("private key",B,G))}catch{throw new Error(`private key must be ${G} bytes, hex or bigint, not ${typeof B}`)}return P&&(N=Ke(N,v)),c(N),N}const l=new Map;function f(B){if(!(B instanceof w))throw new Error("ProjectivePoint expected")}class w{constructor(I,G,P){if(this.px=I,this.py=G,this.pz=P,I==null||!e.isValid(I))throw new Error("x required");if(G==null||!e.isValid(G))throw new Error("y required");if(P==null||!e.isValid(P))throw new Error("z required")}static fromAffine(I){const{x:G,y:P}=I||{};if(!I||!e.isValid(G)||!e.isValid(P))throw new Error("invalid affine point");if(I instanceof w)throw new Error("projective point not allowed");const v=N=>e.eql(N,e.ZERO);return v(G)&&v(P)?w.ZERO:new w(G,P,e.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(I){const G=e.invertBatch(I.map(P=>P.pz));return I.map((P,v)=>P.toAffine(G[v])).map(w.fromAffine)}static fromHex(I){const G=w.fromAffine(s(mr("pointHex",I)));return G.assertValidity(),G}static fromPrivateKey(I){return w.BASE.multiply(u(I))}_setWindowSize(I){this._WINDOW_SIZE=I,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!e.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:I,y:G}=this.toAffine();if(!e.isValid(I)||!e.isValid(G))throw new Error("bad point: x or y not FE");const P=e.sqr(G),v=_(I);if(!e.eql(P,v))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:I}=this.toAffine();if(e.isOdd)return!e.isOdd(I);throw new Error("Field doesn't support isOdd")}equals(I){f(I);const{px:G,py:P,pz:v}=this,{px:N,py:C,pz:F}=I,D=e.eql(e.mul(G,F),e.mul(N,v)),j=e.eql(e.mul(P,F),e.mul(C,v));return D&&j}negate(){return new w(this.px,e.neg(this.py),this.pz)}double(){const{a:I,b:G}=t,P=e.mul(G,Od),{px:v,py:N,pz:C}=this;let F=e.ZERO,D=e.ZERO,j=e.ZERO,L=e.mul(v,v),Z=e.mul(N,N),ot=e.mul(C,C),pt=e.mul(v,N);return pt=e.add(pt,pt),j=e.mul(v,C),j=e.add(j,j),F=e.mul(I,j),D=e.mul(P,ot),D=e.add(F,D),F=e.sub(Z,D),D=e.add(Z,D),D=e.mul(F,D),F=e.mul(pt,F),j=e.mul(P,j),ot=e.mul(I,ot),pt=e.sub(L,ot),pt=e.mul(I,pt),pt=e.add(pt,j),j=e.add(L,L),L=e.add(j,L),L=e.add(L,ot),L=e.mul(L,pt),D=e.add(D,L),ot=e.mul(N,C),ot=e.add(ot,ot),L=e.mul(ot,pt),F=e.sub(F,L),j=e.mul(ot,Z),j=e.add(j,j),j=e.add(j,j),new w(F,D,j)}add(I){f(I);const{px:G,py:P,pz:v}=this,{px:N,py:C,pz:F}=I;let D=e.ZERO,j=e.ZERO,L=e.ZERO;const Z=t.a,ot=e.mul(t.b,Od);let pt=e.mul(G,N),Y=e.mul(P,C),At=e.mul(v,F),Bt=e.add(G,P),ft=e.add(N,C);Bt=e.mul(Bt,ft),ft=e.add(pt,Y),Bt=e.sub(Bt,ft),ft=e.add(G,v);let wt=e.add(N,F);return ft=e.mul(ft,wt),wt=e.add(pt,At),ft=e.sub(ft,wt),wt=e.add(P,v),D=e.add(C,F),wt=e.mul(wt,D),D=e.add(Y,At),wt=e.sub(wt,D),L=e.mul(Z,ft),D=e.mul(ot,At),L=e.add(D,L),D=e.sub(Y,L),L=e.add(Y,L),j=e.mul(D,L),Y=e.add(pt,pt),Y=e.add(Y,pt),At=e.mul(Z,At),ft=e.mul(ot,ft),Y=e.add(Y,At),At=e.sub(pt,At),At=e.mul(Z,At),ft=e.add(ft,At),pt=e.mul(Y,ft),j=e.add(j,pt),pt=e.mul(wt,ft),D=e.mul(Bt,D),D=e.sub(D,pt),pt=e.mul(Bt,Y),L=e.mul(wt,L),L=e.add(L,pt),new w(D,j,L)}subtract(I){return this.add(I.negate())}is0(){return this.equals(w.ZERO)}wNAF(I){return M.wNAFCached(this,l,I,G=>{const P=e.invertBatch(G.map(v=>v.pz));return G.map((v,N)=>v.toAffine(P[N])).map(w.fromAffine)})}multiplyUnsafe(I){const G=w.ZERO;if(I===Oi)return G;if(c(I),I===ir)return this;const{endo:P}=t;if(!P)return M.unsafeLadder(this,I);let{k1neg:v,k1:N,k2neg:C,k2:F}=P.splitScalar(I),D=G,j=G,L=this;for(;N>Oi||F>Oi;)N&ir&&(D=D.add(L)),F&ir&&(j=j.add(L)),L=L.double(),N>>=ir,F>>=ir;return v&&(D=D.negate()),C&&(j=j.negate()),j=new w(e.mul(j.px,P.beta),j.py,j.pz),D.add(j)}multiply(I){c(I);let G=I,P,v;const{endo:N}=t;if(N){const{k1neg:C,k1:F,k2neg:D,k2:j}=N.splitScalar(G);let{p:L,f:Z}=this.wNAF(F),{p:ot,f:pt}=this.wNAF(j);L=M.constTimeNegate(C,L),ot=M.constTimeNegate(D,ot),ot=new w(e.mul(ot.px,N.beta),ot.py,ot.pz),P=L.add(ot),v=Z.add(pt)}else{const{p:C,f:F}=this.wNAF(G);P=C,v=F}return w.normalizeZ([P,v])[0]}multiplyAndAddUnsafe(I,G,P){const v=w.BASE,N=(F,D)=>D===Oi||D===ir||!F.equals(v)?F.multiplyUnsafe(D):F.multiply(D),C=N(this,G).add(N(I,P));return C.is0()?void 0:C}toAffine(I){const{px:G,py:P,pz:v}=this,N=this.is0();I==null&&(I=N?e.ONE:e.inv(v));const C=e.mul(G,I),F=e.mul(P,I),D=e.mul(v,I);if(N)return{x:e.ZERO,y:e.ZERO};if(!e.eql(D,e.ONE))throw new Error("invZ was invalid");return{x:C,y:F}}isTorsionFree(){const{h:I,isTorsionFree:G}=t;if(I===ir)return!0;if(G)return G(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:I,clearCofactor:G}=t;return I===ir?this:G?G(w,this):this.multiplyUnsafe(t.h)}toRawBytes(I=!0){return this.assertValidity(),r(w,this,I)}toHex(I=!0){return Y_(this.toRawBytes(I))}}w.BASE=new w(t.Gx,t.Gy,e.ONE),w.ZERO=new w(e.ZERO,e.ONE,e.ZERO);const y=t.nBitLength,M=hR(w,t.endo?Math.ceil(y/2):y);return{CURVE:t,ProjectivePoint:w,normPrivateKeyToScalar:u,weierstrassEquation:_,isWithinCurveOrder:a}}function yR(n){const t=Nd(n);return Yc(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function AR(n){const t=yR(n),{Fp:e,n:r}=t,s=e.BYTES+1,_=2*e.BYTES+1;function a(ft){return Oi<ft&&ft<e.ORDER}function c(ft){return Ke(ft,r)}function u(ft){return zl(ft,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:f,weierstrassEquation:w,isWithinCurveOrder:y}=bR({...t,toBytes(ft,wt,Pt){const Ct=wt.toAffine(),Mt=e.toBytes(Ct.x),It=Vc;return Pt?It(Uint8Array.from([wt.hasEvenY()?2:3]),Mt):It(Uint8Array.from([4]),Mt,e.toBytes(Ct.y))},fromBytes(ft){const wt=ft.length,Pt=ft[0],Ct=ft.subarray(1);if(wt===s&&(Pt===2||Pt===3)){const Mt=Gs(Ct);if(!a(Mt))throw new Error("Point is not on curve");const It=w(Mt);let jt=e.sqrt(It);const J=(jt&ir)===ir;return(Pt&1)===1!==J&&(jt=e.neg(jt)),{x:Mt,y:jt}}else if(wt===_&&Pt===4){const Mt=e.fromBytes(Ct.subarray(0,e.BYTES)),It=e.fromBytes(Ct.subarray(e.BYTES,2*e.BYTES));return{x:Mt,y:It}}else throw new Error(`Point of length ${wt} was invalid. Expected ${s} compressed bytes or ${_} uncompressed bytes`)}}),M=ft=>Y_(q_(ft,t.nByteLength));function B(ft){const wt=r>>ir;return ft>wt}function I(ft){return B(ft)?c(-ft):ft}const G=(ft,wt,Pt)=>Gs(ft.slice(wt,Pt));class P{constructor(wt,Pt,Ct){this.r=wt,this.s=Pt,this.recovery=Ct,this.assertValidity()}static fromCompact(wt){const Pt=t.nByteLength;return wt=mr("compactSignature",wt,Pt*2),new P(G(wt,0,Pt),G(wt,Pt,2*Pt))}static fromDER(wt){const{r:Pt,s:Ct}=Us.toSig(mr("DER",wt));return new P(Pt,Ct)}assertValidity(){if(!y(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!y(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(wt){return new P(this.r,this.s,wt)}recoverPublicKey(wt){const{r:Pt,s:Ct,recovery:Mt}=this,It=j(mr("msgHash",wt));if(Mt==null||![0,1,2,3].includes(Mt))throw new Error("recovery id invalid");const jt=Mt===2||Mt===3?Pt+t.n:Pt;if(jt>=e.ORDER)throw new Error("recovery id 2 or 3 invalid");const J=(Mt&1)===0?"02":"03",it=l.fromHex(J+M(jt)),st=u(jt),St=c(-It*st),H=c(Ct*st),V=l.BASE.multiplyAndAddUnsafe(it,St,H);if(!V)throw new Error("point at infinify");return V.assertValidity(),V}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new P(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return H_(this.toDERHex())}toDERHex(){return Us.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return H_(this.toCompactHex())}toCompactHex(){return M(this.r)+M(this.s)}}const v={isValidPrivateKey(ft){try{return f(ft),!0}catch{return!1}},normPrivateKeyToScalar:f,randomPrivateKey:()=>{const ft=Id(t.n);return lR(t.randomBytes(ft),t.n)},precompute(ft=8,wt=l.BASE){return wt._setWindowSize(ft),wt.multiply(BigInt(3)),wt}};function N(ft,wt=!0){return l.fromPrivateKey(ft).toRawBytes(wt)}function C(ft){const wt=ft instanceof Uint8Array,Pt=typeof ft=="string",Ct=(wt||Pt)&&ft.length;return wt?Ct===s||Ct===_:Pt?Ct===2*s||Ct===2*_:ft instanceof l}function F(ft,wt,Pt=!0){if(C(ft))throw new Error("first arg must be private key");if(!C(wt))throw new Error("second arg must be public key");return l.fromHex(wt).multiply(f(ft)).toRawBytes(Pt)}const D=t.bits2int||function(ft){const wt=Gs(ft),Pt=ft.length*8-t.nBitLength;return Pt>0?wt>>BigInt(Pt):wt},j=t.bits2int_modN||function(ft){return c(D(ft))},L=Rl(t.nBitLength);function Z(ft){if(typeof ft!="bigint")throw new Error("bigint expected");if(!(Oi<=ft&&ft<L))throw new Error(`bigint expected < 2^${t.nBitLength}`);return q_(ft,t.nByteLength)}function ot(ft,wt,Pt=pt){if(["recovered","canonical"].some(ut=>ut in Pt))throw new Error("sign() legacy options not supported");const{hash:Ct,randomBytes:Mt}=t;let{lowS:It,prehash:jt,extraEntropy:J}=Pt;It==null&&(It=!0),ft=mr("msgHash",ft),jt&&(ft=mr("prehashed msgHash",Ct(ft)));const it=j(ft),st=f(wt),St=[Z(st),Z(it)];if(J!=null){const ut=J===!0?Mt(e.BYTES):J;St.push(mr("extraEntropy",ut))}const H=Vc(...St),V=it;function tt(ut){const dt=D(ut);if(!y(dt))return;const x=u(dt),O=l.BASE.multiply(dt).toAffine(),nt=c(O.x);if(nt===Oi)return;const bt=c(x*c(V+nt*st));if(bt===Oi)return;let Ot=(O.x===nt?0:2)|Number(O.y&ir),vt=bt;return It&&B(bt)&&(vt=I(bt),Ot^=1),new P(nt,vt,Ot)}return{seed:H,k2sig:tt}}const pt={lowS:t.lowS,prehash:!1},Y={lowS:t.lowS,prehash:!1};function At(ft,wt,Pt=pt){const{seed:Ct,k2sig:Mt}=ot(ft,wt,Pt),It=t;return vd(It.hash.outputLen,It.nByteLength,It.hmac)(Ct,Mt)}l.BASE._setWindowSize(8);function Bt(ft,wt,Pt,Ct=Y){var O;const Mt=ft;if(wt=mr("msgHash",wt),Pt=mr("publicKey",Pt),"strict"in Ct)throw new Error("options.strict was renamed to lowS");const{lowS:It,prehash:jt}=Ct;let J,it;try{if(typeof Mt=="string"||Mt instanceof Uint8Array)try{J=P.fromDER(Mt)}catch(nt){if(!(nt instanceof Us.Err))throw nt;J=P.fromCompact(Mt)}else if(typeof Mt=="object"&&typeof Mt.r=="bigint"&&typeof Mt.s=="bigint"){const{r:nt,s:bt}=Mt;J=new P(nt,bt)}else throw new Error("PARSE");it=l.fromHex(Pt)}catch(nt){if(nt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(It&&J.hasHighS())return!1;jt&&(wt=t.hash(wt));const{r:st,s:St}=J,H=j(wt),V=u(St),tt=c(H*V),ut=c(st*V),dt=(O=l.BASE.multiplyAndAddUnsafe(it,tt,ut))==null?void 0:O.toAffine();return dt?c(dt.x)===st:!1}return{CURVE:t,getPublicKey:N,getSharedSecret:F,sign:At,verify:Bt,ProjectivePoint:l,Signature:P,utils:v}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function mR(n){return{hash:n,hmac:(t,...e)=>nd(n,t,wS(...e)),randomBytes:dS}}function SR(n,t){const e=r=>AR({...n,...mR(r)});return Object.freeze({...e(t),create:e})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kd=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Td=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),RR=BigInt(1),Ml=BigInt(2),Gd=(n,t)=>(n+t/Ml)/t;function ER(n){const t=kd,e=BigInt(3),r=BigInt(6),s=BigInt(11),_=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),l=n*n*n%t,f=l*l*n%t,w=nr(f,e,t)*f%t,y=nr(w,e,t)*f%t,M=nr(y,Ml,t)*l%t,B=nr(M,s,t)*M%t,I=nr(B,_,t)*B%t,G=nr(I,c,t)*I%t,P=nr(G,u,t)*G%t,v=nr(P,c,t)*I%t,N=nr(v,e,t)*f%t,C=nr(N,a,t)*B%t,F=nr(C,r,t)*l%t,D=nr(F,Ml,t);if(!Bl.eql(Bl.sqr(D),n))throw new Error("Cannot find square root");return D}const Bl=fR(kd,void 0,void 0,{sqrt:ER}),as=SR({a:BigInt(0),b:BigInt(7),Fp:Bl,n:Td,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const t=Td,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-RR*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),_=e,a=BigInt("0x100000000000000000000000000000000"),c=Gd(_*n,t),u=Gd(-r*n,t);let l=Ke(n-c*e-u*s,t),f=Ke(-c*r-u*_,t);const w=l>a,y=f>a;if(w&&(l=t-l),y&&(f=t-f),l>a||f>a)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:w,k1:l,k2neg:y,k2:f}}}},sd);BigInt(0),as.ProjectivePoint;const Hc="0x0000000000000000000000000000000000000000",Fd="0x0000000000000000000000000000000000000000000000000000000000000000",Ud=BigInt(0),Kd=BigInt(1),Dd=BigInt(2),Ld=BigInt(27),jd=BigInt(28),tf=BigInt(35),Q_={};function Vd(n){return Os(Oe(n),32)}const Cr=class Cr{constructor(t,e,r,s){rt(this,sc);rt(this,_c);rt(this,oc);rt(this,R_);Du(t,Q_,"Signature"),K(this,sc,e),K(this,_c,r),K(this,oc,s),K(this,R_,null)}get r(){return m(this,sc)}set r(t){W(K_(t)===32,"invalid r","value",t),K(this,sc,Et(t))}get s(){return m(this,_c)}set s(t){W(K_(t)===32,"invalid s","value",t);const e=Et(t);W(parseInt(e.substring(0,3))<8,"non-canonical s","value",e),K(this,_c,e)}get v(){return m(this,oc)}set v(t){const e=Kt(t,"value");W(e===27||e===28,"invalid v","v",t),K(this,oc,e)}get networkV(){return m(this,R_)}get legacyChainId(){const t=this.networkV;return t==null?null:Cr.getChainId(t)}get yParity(){return this.v===27?0:1}get yParityAndS(){const t=qt(this.s);return this.yParity&&(t[0]|=128),Et(t)}get compactSerialized(){return le([this.r,this.yParityAndS])}get serialized(){return le([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const t=new Cr(Q_,this.r,this.s,this.v);return this.networkV&&K(t,R_,this.networkV),t}toJSON(){const t=this.networkV;return{_type:"signature",networkV:t!=null?t.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(t){const e=zt(t,"v");return e==Ld||e==jd?Ud:(W(e>=tf,"invalid EIP-155 v","v",t),(e-tf)/Dd)}static getChainIdV(t,e){return zt(t)*Dd+BigInt(35+e-27)}static getNormalizedV(t){const e=zt(t);return e===Ud||e===Ld?27:e===Kd||e===jd?28:(W(e>=tf,"invalid v","v",t),e&Kd?27:28)}static from(t){function e(l,f){W(l,f,"signature",t)}if(t==null)return new Cr(Q_,Fd,Fd,27);if(typeof t=="string"){const l=qt(t,"signature");if(l.length===64){const f=Et(l.slice(0,32)),w=l.slice(32,64),y=w[0]&128?28:27;return w[0]&=127,new Cr(Q_,f,Et(w),y)}if(l.length===65){const f=Et(l.slice(0,32)),w=l.slice(32,64);e((w[0]&128)===0,"non-canonical s");const y=Cr.getNormalizedV(l[64]);return new Cr(Q_,f,Et(w),y)}e(!1,"invalid raw signature length")}if(t instanceof Cr)return t.clone();const r=t.r;e(r!=null,"missing r");const s=Vd(r),_=function(l,f){if(l!=null)return Vd(l);if(f!=null){e(ee(f,32),"invalid yParityAndS");const w=qt(f);return w[0]&=127,Et(w)}e(!1,"missing s")}(t.s,t.yParityAndS);e((qt(_)[0]&128)==0,"non-canonical s");const{networkV:a,v:c}=function(l,f,w){if(l!=null){const y=zt(l);return{networkV:y>=tf?y:void 0,v:Cr.getNormalizedV(y)}}if(f!=null)return e(ee(f,32),"invalid yParityAndS"),{v:qt(f)[0]&128?28:27};if(w!=null){switch(Kt(w,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}e(!1,"invalid yParity")}e(!1,"missing v")}(t.v,t.yParityAndS,t.yParity),u=new Cr(Q_,s,_,c);return a&&K(u,R_,a),e(t.yParity==null||Kt(t.yParity,"sig.yParity")===u.yParity,"yParity mismatch"),e(t.yParityAndS==null||t.yParityAndS===u.yParityAndS,"yParityAndS mismatch"),u}};sc=new WeakMap,_c=new WeakMap,oc=new WeakMap,R_=new WeakMap;let Sr=Cr;const E_=class E_{constructor(t){rt(this,Yi);W(K_(t)===32,"invalid private key","privateKey","[REDACTED]"),K(this,Yi,Et(t))}get privateKey(){return m(this,Yi)}get publicKey(){return E_.computePublicKey(m(this,Yi))}get compressedPublicKey(){return E_.computePublicKey(m(this,Yi),!0)}sign(t){W(K_(t)===32,"invalid digest length","digest",t);const e=as.sign(Ne(t),Ne(m(this,Yi)),{lowS:!0});return Sr.from({r:rs(e.r,32),s:rs(e.s,32),v:e.recovery?28:27})}computeSharedSecret(t){const e=E_.computePublicKey(t);return Et(as.getSharedSecret(Ne(m(this,Yi)),qt(e),!1))}static computePublicKey(t,e){let r=qt(t,"key");if(r.length===32){const _=as.getPublicKey(r,!!e);return Et(_)}if(r.length===64){const _=new Uint8Array(65);_[0]=4,_.set(r,1),r=_}const s=as.ProjectivePoint.fromHex(r);return Et(s.toRawBytes(e))}static recoverPublicKey(t,e){W(K_(t)===32,"invalid digest length","digest",t);const r=Sr.from(e);let s=as.Signature.fromCompact(Ne(le([r.r,r.s])));s=s.addRecoveryBit(r.yParity);const _=s.recoverPublicKey(Ne(t));return W(_!=null,"invalid signautre for digest","signature",e),"0x"+_.toHex(!1)}static addPoints(t,e,r){const s=as.ProjectivePoint.fromHex(E_.computePublicKey(t).substring(2)),_=as.ProjectivePoint.fromHex(E_.computePublicKey(e).substring(2));return"0x"+s.add(_).toHex(!!r)}};Yi=new WeakMap;let qc=E_;const PR=BigInt(0),zR=BigInt(36);function Yd(n){n=n.toLowerCase();const t=n.substring(2).split(""),e=new Uint8Array(40);for(let s=0;s<40;s++)e[s]=t[s].charCodeAt(0);const r=qt(be(e));for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&(t[s]=t[s].toUpperCase()),(r[s>>1]&15)>=8&&(t[s+1]=t[s+1].toUpperCase());return"0x"+t.join("")}const xl={};for(let n=0;n<10;n++)xl[String(n)]=String(n);for(let n=0;n<26;n++)xl[String.fromCharCode(65+n)]=String(10+n);const Hd=15;function vR(n){n=n.toUpperCase(),n=n.substring(4)+n.substring(0,2)+"00";let t=n.split("").map(r=>xl[r]).join("");for(;t.length>=Hd;){let r=t.substring(0,Hd);t=parseInt(r,10)%97+t.substring(r.length)}let e=String(98-parseInt(t,10)%97);for(;e.length<2;)e="0"+e;return e}const MR=function(){const n={};for(let t=0;t<36;t++){const e="0123456789abcdefghijklmnopqrstuvwxyz"[t];n[e]=BigInt(t)}return n}();function BR(n){n=n.toLowerCase();let t=PR;for(let e=0;e<n.length;e++)t=t*zR+MR[n[e]];return t}function Vt(n){if(W(typeof n=="string","invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/)){n.startsWith("0x")||(n="0x"+n);const t=Yd(n);return W(!n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===n,"bad address checksum","address",n),t}if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){W(n.substring(2,4)===vR(n),"bad icap checksum","address",n);let t=BR(n.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return Yd("0x"+t)}W(!1,"invalid address","address",n)}function xR(n){const t=Vt(n.from);let r=zt(n.nonce,"tx.nonce").toString(16);return r==="0"?r="0x":r.length%2?r="0x0"+r:r="0x"+r,Vt(fe(be(ks([t,r])),12))}function qd(n){return n&&typeof n.getAddress=="function"}function sr(n){try{return Vt(n),!0}catch{}return!1}async function Cl(n,t){const e=await t;return(e==null||e==="0x0000000000000000000000000000000000000000")&&(ht(typeof n!="string","unconfigured name","UNCONFIGURED_NAME",{value:n}),W(!1,"invalid AddressLike value; did not resolve to a value address","target",n)),Vt(e)}function Te(n,t){if(typeof n=="string")return n.match(/^0x[0-9a-f]{40}$/i)?Vt(n):(ht(t!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),Cl(n,t.resolveName(n)));if(qd(n))return Cl(n,n.getAddress());if(n&&typeof n.then=="function")return Cl(n,n);W(!1,"unsupported addressable value","target",n)}const ki={};function Rt(n,t){let e=!1;return t<0&&(e=!0,t*=-1),new Me(ki,`${e?"":"u"}int${t}`,n,{signed:e,width:t})}function Qt(n,t){return new Me(ki,`bytes${t||""}`,n,{size:t})}const Qd=Symbol.for("_ethers_typed"),Hi=class Hi{constructor(t,e,r,s){$(this,"type");$(this,"value");rt(this,P_);$(this,"_typedSymbol");s==null&&(s=null),Du(ki,t,"Typed"),xt(this,{_typedSymbol:Qd,type:e,value:r}),K(this,P_,s),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(t=>t.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return m(this,P_)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return m(this,P_)===!0?-1:m(this,P_)===!1?this.value.length:null}static from(t,e){return new Hi(ki,t,e)}static uint8(t){return Rt(t,8)}static uint16(t){return Rt(t,16)}static uint24(t){return Rt(t,24)}static uint32(t){return Rt(t,32)}static uint40(t){return Rt(t,40)}static uint48(t){return Rt(t,48)}static uint56(t){return Rt(t,56)}static uint64(t){return Rt(t,64)}static uint72(t){return Rt(t,72)}static uint80(t){return Rt(t,80)}static uint88(t){return Rt(t,88)}static uint96(t){return Rt(t,96)}static uint104(t){return Rt(t,104)}static uint112(t){return Rt(t,112)}static uint120(t){return Rt(t,120)}static uint128(t){return Rt(t,128)}static uint136(t){return Rt(t,136)}static uint144(t){return Rt(t,144)}static uint152(t){return Rt(t,152)}static uint160(t){return Rt(t,160)}static uint168(t){return Rt(t,168)}static uint176(t){return Rt(t,176)}static uint184(t){return Rt(t,184)}static uint192(t){return Rt(t,192)}static uint200(t){return Rt(t,200)}static uint208(t){return Rt(t,208)}static uint216(t){return Rt(t,216)}static uint224(t){return Rt(t,224)}static uint232(t){return Rt(t,232)}static uint240(t){return Rt(t,240)}static uint248(t){return Rt(t,248)}static uint256(t){return Rt(t,256)}static uint(t){return Rt(t,256)}static int8(t){return Rt(t,-8)}static int16(t){return Rt(t,-16)}static int24(t){return Rt(t,-24)}static int32(t){return Rt(t,-32)}static int40(t){return Rt(t,-40)}static int48(t){return Rt(t,-48)}static int56(t){return Rt(t,-56)}static int64(t){return Rt(t,-64)}static int72(t){return Rt(t,-72)}static int80(t){return Rt(t,-80)}static int88(t){return Rt(t,-88)}static int96(t){return Rt(t,-96)}static int104(t){return Rt(t,-104)}static int112(t){return Rt(t,-112)}static int120(t){return Rt(t,-120)}static int128(t){return Rt(t,-128)}static int136(t){return Rt(t,-136)}static int144(t){return Rt(t,-144)}static int152(t){return Rt(t,-152)}static int160(t){return Rt(t,-160)}static int168(t){return Rt(t,-168)}static int176(t){return Rt(t,-176)}static int184(t){return Rt(t,-184)}static int192(t){return Rt(t,-192)}static int200(t){return Rt(t,-200)}static int208(t){return Rt(t,-208)}static int216(t){return Rt(t,-216)}static int224(t){return Rt(t,-224)}static int232(t){return Rt(t,-232)}static int240(t){return Rt(t,-240)}static int248(t){return Rt(t,-248)}static int256(t){return Rt(t,-256)}static int(t){return Rt(t,-256)}static bytes1(t){return Qt(t,1)}static bytes2(t){return Qt(t,2)}static bytes3(t){return Qt(t,3)}static bytes4(t){return Qt(t,4)}static bytes5(t){return Qt(t,5)}static bytes6(t){return Qt(t,6)}static bytes7(t){return Qt(t,7)}static bytes8(t){return Qt(t,8)}static bytes9(t){return Qt(t,9)}static bytes10(t){return Qt(t,10)}static bytes11(t){return Qt(t,11)}static bytes12(t){return Qt(t,12)}static bytes13(t){return Qt(t,13)}static bytes14(t){return Qt(t,14)}static bytes15(t){return Qt(t,15)}static bytes16(t){return Qt(t,16)}static bytes17(t){return Qt(t,17)}static bytes18(t){return Qt(t,18)}static bytes19(t){return Qt(t,19)}static bytes20(t){return Qt(t,20)}static bytes21(t){return Qt(t,21)}static bytes22(t){return Qt(t,22)}static bytes23(t){return Qt(t,23)}static bytes24(t){return Qt(t,24)}static bytes25(t){return Qt(t,25)}static bytes26(t){return Qt(t,26)}static bytes27(t){return Qt(t,27)}static bytes28(t){return Qt(t,28)}static bytes29(t){return Qt(t,29)}static bytes30(t){return Qt(t,30)}static bytes31(t){return Qt(t,31)}static bytes32(t){return Qt(t,32)}static address(t){return new Hi(ki,"address",t)}static bool(t){return new Hi(ki,"bool",!!t)}static bytes(t){return new Hi(ki,"bytes",t)}static string(t){return new Hi(ki,"string",t)}static array(t,e){throw new Error("not implemented yet")}static tuple(t,e){throw new Error("not implemented yet")}static overrides(t){return new Hi(ki,"overrides",Object.assign({},t))}static isTyped(t){return t&&typeof t=="object"&&"_typedSymbol"in t&&t._typedSymbol===Qd}static dereference(t,e){if(Hi.isTyped(t)){if(t.type!==e)throw new Error(`invalid type: expecetd ${e}, got ${t.type}`);return t.value}return t}};P_=new WeakMap;let Me=Hi;class CR extends Ni{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){let r=Me.dereference(e,"string");try{r=Vt(r)}catch(s){return this._throwError(s.message,e)}return t.writeValue(r)}decode(t){return Vt(rs(t.readValue(),20))}}class IR extends Ni{constructor(e){super(e.name,e.type,"_",e.dynamic);$(this,"coder");this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}function Wd(n,t,e){let r=[];if(Array.isArray(e))r=e;else if(e&&typeof e=="object"){let u={};r=t.map(l=>{const f=l.localName;return ht(f,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:e}),ht(!u[f],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:e}),u[f]=!0,e[f]})}else W(!1,"invalid tuple value","tuple",e);W(t.length===r.length,"types/value length mismatch","tuple",e);let s=new fl,_=new fl,a=[];t.forEach((u,l)=>{let f=r[l];if(u.dynamic){let w=_.length;u.encode(_,f);let y=s.writeUpdatableValue();a.push(M=>{y(M+w)})}else u.encode(s,f)}),a.forEach(u=>{u(s.length)});let c=n.appendWriter(s);return c+=n.appendWriter(_),c}function Jd(n,t){let e=[],r=[],s=n.subReader(0);return t.forEach(_=>{let a=null;if(_.dynamic){let c=n.readIndex(),u=s.subReader(c);try{a=_.decode(u)}catch(l){if(Ee(l,"BUFFER_OVERRUN"))throw l;a=l,a.baseType=_.name,a.name=_.localName,a.type=_.type}}else try{a=_.decode(n)}catch(c){if(Ee(c,"BUFFER_OVERRUN"))throw c;a=c,a.baseType=_.name,a.name=_.localName,a.type=_.type}if(a==null)throw new Error("investigate");e.push(a),r.push(_.localName||null)}),L_.fromItems(e,r)}class NR extends Ni{constructor(e,r,s){const _=e.type+"["+(r>=0?r:"")+"]",a=r===-1||e.dynamic;super("array",_,s,a);$(this,"coder");$(this,"length");xt(this,{coder:e,length:r})}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let s=0;s<this.length;s++)r.push(e);return r}encode(e,r){const s=Me.dereference(r,"array");Array.isArray(s)||this._throwError("expected array value",s);let _=this.length;_===-1&&(_=s.length,e.writeValue(s.length)),Bw(s.length,_,"coder array"+(this.localName?" "+this.localName:""));let a=[];for(let c=0;c<s.length;c++)a.push(this.coder);return Wd(e,a,s)}decode(e){let r=this.length;r===-1&&(r=e.readIndex(),ht(r*ke<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:r*ke,length:e.dataLength}));let s=[];for(let _=0;_<r;_++)s.push(new IR(this.coder));return Jd(e,s)}}class OR extends Ni{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){const r=Me.dereference(e,"bool");return t.writeValue(r?1:0)}decode(t){return!!t.readValue()}}class $d extends Ni{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=Ne(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readIndex(),!0)}}class kR extends $d{constructor(t){super("bytes",t)}decode(t){return Et(super.decode(t))}}class TR extends Ni{constructor(e,r){let s="bytes"+String(e);super(s,s,r,!1);$(this,"size");xt(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,r){let s=Ne(Me.dereference(r,this.type));return s.length!==this.size&&this._throwError("incorrect data length",r),e.writeBytes(s)}decode(e){return Et(e.readBytes(this.size))}}const GR=new Uint8Array([]);class FR extends Ni{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return e!=null&&this._throwError("not null",e),t.writeBytes(GR)}decode(t){return t.readBytes(0),null}}const UR=BigInt(0),KR=BigInt(1),DR=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class LR extends Ni{constructor(e,r,s){const _=(r?"int":"uint")+e*8;super(_,_,s,!1);$(this,"size");$(this,"signed");xt(this,{size:e,signed:r},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,r){let s=zt(Me.dereference(r,this.type)),_=Dc(DR,ke*8);if(this.signed){let a=Dc(_,this.size*8-1);(s>a||s<-(a+KR))&&this._throwError("value out-of-bounds",r),s=Nw(s,8*ke)}else(s<UR||s>Dc(_,this.size*8))&&this._throwError("value out-of-bounds",r);return e.writeValue(s)}decode(e){let r=Dc(e.readValue(),this.size*8);return this.signed&&(r=qm(r,this.size*8)),r}}class jR extends $d{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,Ci(Me.dereference(e,"string")))}decode(t){return Vu(super.decode(t))}}class ef extends Ni{constructor(e,r){let s=!1;const _=[];e.forEach(c=>{c.dynamic&&(s=!0),_.push(c.type)});const a="tuple("+_.join(",")+")";super("tuple",a,r,s);$(this,"coders");xt(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach(s=>{e.push(s.defaultValue())});const r=this.coders.reduce((s,_)=>{const a=_.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});return this.coders.forEach((s,_)=>{let a=s.localName;!a||r[a]!==1||(a==="length"&&(a="_length"),e[a]==null&&(e[a]=e[_]))}),Object.freeze(e)}encode(e,r){const s=Me.dereference(r,"tuple");return Wd(e,this.coders,s)}decode(e){return Jd(e,this.coders)}}function Ks(n){return be(Ci(n))}var VR="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const Zd=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Xd=4;function YR(n){let t=0;function e(){return n[t++]<<8|n[t++]}let r=e(),s=1,_=[0,1];for(let F=1;F<r;F++)_.push(s+=e());let a=e(),c=t;t+=a;let u=0,l=0;function f(){return u==0&&(l=l<<8|n[t++],u=8),l>>--u&1}const w=31,y=2**w,M=y>>>1,B=M>>1,I=y-1;let G=0;for(let F=0;F<w;F++)G=G<<1|f();let P=[],v=0,N=y;for(;;){let F=Math.floor(((G-v+1)*s-1)/N),D=0,j=r;for(;j-D>1;){let ot=D+j>>>1;F<_[ot]?j=ot:D=ot}if(D==0)break;P.push(D);let L=v+Math.floor(N*_[D]/s),Z=v+Math.floor(N*_[D+1]/s)-1;for(;((L^Z)&M)==0;)G=G<<1&I|f(),L=L<<1&I,Z=Z<<1&I|1;for(;L&~Z&B;)G=G&M|G<<1&I>>>1|f(),L=L<<1^M,Z=(Z^M)<<1|M|1;v=L,N=1+Z-L}let C=r-4;return P.map(F=>{switch(F-C){case 3:return C+65792+(n[c++]<<16|n[c++]<<8|n[c++]);case 2:return C+256+(n[c++]<<8|n[c++]);case 1:return C+n[c++];default:return F-1}})}function HR(n){let t=0;return()=>n[t++]}function tg(n){return HR(YR(qR(n)))}function qR(n){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,_)=>t[s.charCodeAt(0)]=_);let e=n.length,r=new Uint8Array(6*e>>3);for(let s=0,_=0,a=0,c=0;s<e;s++)c=c<<6|t[n.charCodeAt(s)],a+=6,a>=8&&(r[_++]=c>>(a-=8));return r}function QR(n){return n&1?~n>>1:n>>1}function WR(n,t){let e=Array(n);for(let r=0,s=0;r<n;r++)e[r]=s+=QR(t());return e}function Qc(n,t=0){let e=[];for(;;){let r=n(),s=n();if(!s)break;t+=r;for(let _=0;_<s;_++)e.push(t+_);t+=s+1}return e}function eg(n){return Wc(()=>{let t=Qc(n);if(t.length)return t})}function rg(n){let t=[];for(;;){let e=n();if(e==0)break;t.push(JR(e,n))}for(;;){let e=n()-1;if(e<0)break;t.push($R(e,n))}return t.flat()}function Wc(n){let t=[];for(;;){let e=n(t.length);if(!e)break;t.push(e)}return t}function ng(n,t,e){let r=Array(n).fill().map(()=>[]);for(let s=0;s<t;s++)WR(n,e).forEach((_,a)=>r[a].push(_));return r}function JR(n,t){let e=1+t(),r=t(),s=Wc(t);return ng(s.length,1+n,t).flatMap((a,c)=>{let[u,...l]=a;return Array(s[c]).fill().map((f,w)=>{let y=w*r;return[u+w*e,l.map(M=>M+y)]})})}function $R(n,t){let e=1+t();return ng(e,1+n,t).map(s=>[s[0],s.slice(1)])}function ZR(n){let t=[],e=Qc(n);return s(r([]),[]),t;function r(_){let a=n(),c=Wc(()=>{let u=Qc(n).map(l=>e[l]);if(u.length)return r(u)});return{S:a,B:c,Q:_}}function s({S:_,B:a},c,u){if(!(_&4&&u===c[c.length-1])){_&2&&(u=c[c.length-1]),_&1&&t.push(c);for(let l of a)for(let f of l.Q)s(l,[...c,f],u)}}}function XR(n){return n.toString(16).toUpperCase().padStart(2,"0")}function ig(n){return`{${XR(n)}}`}function tE(n){let t=[];for(let e=0,r=n.length;e<r;){let s=n.codePointAt(e);e+=s<65536?1:2,t.push(s)}return t}function W_(n){let e=n.length;if(e<4096)return String.fromCodePoint(...n);let r=[];for(let s=0;s<e;)r.push(String.fromCodePoint(...n.slice(s,s+=4096)));return r.join("")}function eE(n,t){let e=n.length,r=e-t.length;for(let s=0;r==0&&s<e;s++)r=n[s]-t[s];return r}var rE="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";const Jc=44032,rf=4352,nf=4449,sf=4519,sg=19,_g=21,J_=28,_f=_g*J_,nE=sg*_f,iE=Jc+nE,sE=rf+sg,_E=nf+_g,oE=sf+J_;function $c(n){return n>>24&255}function og(n){return n&16777215}let Il,ag,Nl,of;function aE(){let n=tg(rE);Il=new Map(eg(n).flatMap((t,e)=>t.map(r=>[r,e+1<<24]))),ag=new Set(Qc(n)),Nl=new Map,of=new Map;for(let[t,e]of rg(n)){if(!ag.has(t)&&e.length==2){let[r,s]=e,_=of.get(r);_||(_=new Map,of.set(r,_)),_.set(s,t)}Nl.set(t,e.reverse())}}function cg(n){return n>=Jc&&n<iE}function cE(n,t){if(n>=rf&&n<sE&&t>=nf&&t<_E)return Jc+(n-rf)*_f+(t-nf)*J_;if(cg(n)&&t>sf&&t<oE&&(n-Jc)%J_==0)return n+(t-sf);{let e=of.get(n);return e&&(e=e.get(t),e)?e:-1}}function ug(n){Il||aE();let t=[],e=[],r=!1;function s(_){let a=Il.get(_);a&&(r=!0,_|=a),t.push(_)}for(let _ of n)for(;;){if(_<128)t.push(_);else if(cg(_)){let a=_-Jc,c=a/_f|0,u=a%_f/J_|0,l=a%J_;s(rf+c),s(nf+u),l>0&&s(sf+l)}else{let a=Nl.get(_);a?e.push(...a):s(_)}if(!e.length)break;_=e.pop()}if(r&&t.length>1){let _=$c(t[0]);for(let a=1;a<t.length;a++){let c=$c(t[a]);if(c==0||_<=c){_=c;continue}let u=a-1;for(;;){let l=t[u+1];if(t[u+1]=t[u],t[u]=l,!u||(_=$c(t[--u]),_<=c))break}_=$c(t[a])}}return t}function uE(n){let t=[],e=[],r=-1,s=0;for(let _ of n){let a=$c(_),c=og(_);if(r==-1)a==0?r=c:t.push(c);else if(s>0&&s>=a)a==0?(t.push(r,...e),e.length=0,r=c):e.push(c),s=a;else{let u=cE(r,c);u>=0?r=u:s==0&&a==0?(t.push(r),r=c):(e.push(c),s=a)}}return r>=0&&t.push(r,...e),t}function fg(n){return ug(n).map(og)}function fE(n){return uE(ug(n))}const lg=45,pg=".",hg=65039,wg=1,af=n=>Array.from(n);function Zc(n,t){return n.P.has(t)||n.Q.has(t)}class lE extends Array{get is_emoji(){return!0}}let Ol,dg,Ds,kl,gg,$_,Tl,Z_,Ls,bg,Gl;function Fl(){if(Ol)return;let n=tg(VR);const t=()=>Qc(n),e=()=>new Set(t()),r=(f,w)=>w.forEach(y=>f.add(y));Ol=new Map(rg(n)),dg=e(),Ds=t(),kl=new Set(t().map(f=>Ds[f])),Ds=new Set(Ds),gg=e(),e();let s=eg(n),_=n();const a=()=>{let f=new Set;return t().forEach(w=>r(f,s[w])),r(f,t()),f};$_=Wc(f=>{let w=Wc(n).map(y=>y+96);if(w.length){let y=f>=_;w[0]-=32,w=W_(w),y&&(w=`Restricted[${w}]`);let M=a(),B=a(),I=!n();return{N:w,P:M,Q:B,M:I,R:y}}}),Tl=e(),Z_=new Map;let c=t().concat(af(Tl)).sort((f,w)=>f-w);c.forEach((f,w)=>{let y=n(),M=c[w]=y?c[w-y]:{V:[],M:new Map};M.V.push(f),Tl.has(f)||Z_.set(f,M)});for(let{V:f,M:w}of new Set(Z_.values())){let y=[];for(let B of f){let I=$_.filter(P=>Zc(P,B)),G=y.find(({G:P})=>I.some(v=>P.has(v)));G||(G={G:new Set,V:[]},y.push(G)),G.V.push(B),r(G.G,I)}let M=y.flatMap(B=>af(B.G));for(let{G:B,V:I}of y){let G=new Set(M.filter(P=>!B.has(P)));for(let P of I)w.set(P,G)}}Ls=new Set;let u=new Set;const l=f=>Ls.has(f)?u.add(f):Ls.add(f);for(let f of $_){for(let w of f.P)l(w);for(let w of f.Q)l(w)}for(let f of Ls)!Z_.has(f)&&!u.has(f)&&Z_.set(f,wg);r(Ls,fg(Ls)),bg=ZR(n).map(f=>lE.from(f)).sort(eE),Gl=new Map;for(let f of bg){let w=[Gl];for(let y of f){let M=w.map(B=>{let I=B.get(y);return I||(I=new Map,B.set(y,I)),I});y===hg?w.push(...M):w=M}for(let y of w)y.V=f}}function Ul(n){return(yg(n)?"":`${Kl(cf([n]))} `)+ig(n)}function Kl(n){return`"${n}"`}function pE(n){if(n.length>=4&&n[2]==lg&&n[3]==lg)throw new Error(`invalid label extension: "${W_(n.slice(0,4))}"`)}function hE(n){for(let e=n.lastIndexOf(95);e>0;)if(n[--e]!==95)throw new Error("underscore allowed only at start")}function wE(n){let t=n[0],e=Zd.get(t);if(e)throw Xc(`leading ${e}`);let r=n.length,s=-1;for(let _=1;_<r;_++){t=n[_];let a=Zd.get(t);if(a){if(s==_)throw Xc(`${e} + ${a}`);s=_+1,e=a}}if(s==r)throw Xc(`trailing ${e}`)}function cf(n,t=1/0,e=ig){let r=[];dE(n[0])&&r.push("◌"),n.length>t&&(t>>=1,n=[...n.slice(0,t),8230,...n.slice(-t)]);let s=0,_=n.length;for(let a=0;a<_;a++){let c=n[a];yg(c)&&(r.push(W_(n.slice(s,a))),r.push(e(c)),s=a+1)}return r.push(W_(n.slice(s,_))),r.join("")}function dE(n){return Fl(),Ds.has(n)}function yg(n){return Fl(),gg.has(n)}function gE(n){return mE(bE(n,fE,EE))}function bE(n,t,e){if(!n)return[];Fl();let r=0;return n.split(pg).map(s=>{let _=tE(s),a={input:_,offset:r};r+=_.length+1;try{let c=a.tokens=RE(_,t,e),u=c.length,l;if(!u)throw new Error("empty label");let f=a.output=c.flat();if(hE(f),!(a.emoji=u>1||c[0].is_emoji)&&f.every(y=>y<128))pE(f),l="ASCII";else{let y=c.flatMap(M=>M.is_emoji?[]:M);if(!y.length)l="Emoji";else{if(Ds.has(f[0]))throw Xc("leading combining mark");for(let I=1;I<u;I++){let G=c[I];if(!G.is_emoji&&Ds.has(G[0]))throw Xc(`emoji + combining mark: "${W_(c[I-1])} + ${cf([G[0]])}"`)}wE(f);let M=af(new Set(y)),[B]=AE(M);SE(B,y),yE(B,M),l=B.N}}a.type=l}catch(c){a.error=c}return a})}function yE(n,t){let e,r=[];for(let s of t){let _=Z_.get(s);if(_===wg)return;if(_){let a=_.M.get(s);if(e=e?e.filter(c=>a.has(c)):af(a),!e.length)return}else r.push(s)}if(e){for(let s of e)if(r.every(_=>Zc(s,_)))throw new Error(`whole-script confusable: ${n.N}/${s.N}`)}}function AE(n){let t=$_;for(let e of n){let r=t.filter(s=>Zc(s,e));if(!r.length)throw $_.some(s=>Zc(s,e))?mg(t[0],e):Ag(e);if(t=r,r.length==1)break}return t}function mE(n){return n.map(({input:t,error:e,output:r})=>{if(e){let s=e.message;throw new Error(n.length==1?s:`Invalid label ${Kl(cf(t,63))}: ${s}`)}return W_(r)}).join(pg)}function Ag(n){return new Error(`disallowed character: ${Ul(n)}`)}function mg(n,t){let e=Ul(t),r=$_.find(s=>s.P.has(t));return r&&(e=`${r.N} ${e}`),new Error(`illegal mixture: ${n.N} + ${e}`)}function Xc(n){return new Error(`illegal placement: ${n}`)}function SE(n,t){for(let e of t)if(!Zc(n,e))throw mg(n,e);if(n.M){let e=fg(t);for(let r=1,s=e.length;r<s;r++)if(kl.has(e[r])){let _=r+1;for(let a;_<s&&kl.has(a=e[_]);_++)for(let c=r;c<_;c++)if(e[c]==a)throw new Error(`duplicate non-spacing marks: ${Ul(a)}`);if(_-r>Xd)throw new Error(`excessive non-spacing marks: ${Kl(cf(e.slice(r-1,_)))} (${_-r}/${Xd})`);r=_}}}function RE(n,t,e){let r=[],s=[];for(n=n.slice().reverse();n.length;){let _=PE(n);if(_)s.length&&(r.push(t(s)),s=[]),r.push(e(_));else{let a=n.pop();if(Ls.has(a))s.push(a);else{let c=Ol.get(a);if(c)s.push(...c);else if(!dg.has(a))throw Ag(a)}}}return s.length&&r.push(t(s)),r}function EE(n){return n.filter(t=>t!=hg)}function PE(n,t){let e=Gl,r,s=n.length;for(;s&&(e=e.get(n[--s]),!!e);){let{V:_}=e;_&&(r=_,n.length=s)}return r}const Sg=new Uint8Array(32);Sg.fill(0);function Rg(n){return W(n.length!==0,"invalid ENS name; empty component","comp",n),n}function Eg(n){const t=Ci(zE(n)),e=[];if(n.length===0)return e;let r=0;for(let s=0;s<t.length;s++)t[s]===46&&(e.push(Rg(t.slice(r,s))),r=s+1);return W(r<t.length,"invalid ENS name; empty component","name",n),e.push(Rg(t.slice(r))),e}function zE(n){try{if(n.length===0)throw new Error("empty label");return gE(n)}catch(t){W(!1,`invalid ENS name (${t.message})`,"name",n)}}function Dl(n){W(typeof n=="string","invalid ENS name; not a string","name",n),W(n.length,"invalid ENS name (empty label)","name",n);let t=Sg;const e=Eg(n);for(;e.length;)t=be(le([t,be(e.pop())]));return Et(t)}function vE(n,t){const e=t;return W(e<=255,"DNS encoded label cannot exceed 255","length",e),Et(le(Eg(n).map(r=>{W(r.length<=e,`label ${JSON.stringify(n)} exceeds ${e} bytes`,"name",n);const s=new Uint8Array(r.length+1);return s.set(r,1),s[0]=s.length-1,s})))+"00"}function Ll(n,t){return{address:Vt(n),storageKeys:t.map((e,r)=>(W(ee(e,32),"invalid slot",`storageKeys[${r}]`,e),e.toLowerCase()))}}function js(n){if(Array.isArray(n))return n.map((e,r)=>Array.isArray(e)?(W(e.length===2,"invalid slot set",`value[${r}]`,e),Ll(e[0],e[1])):(W(e!=null&&typeof e=="object","invalid address-slot set","value",n),Ll(e.address,e.storageKeys)));W(n!=null&&typeof n=="object","invalid access list","value",n);const t=Object.keys(n).map(e=>{const r=n[e].reduce((s,_)=>(s[_]=!0,s),{});return Ll(e,Object.keys(r).sort())});return t.sort((e,r)=>e.address.localeCompare(r.address)),t}function ME(n){let t;return typeof n=="string"?t=qc.computePublicKey(n,!1):t=n.publicKey,Vt(be("0x"+t.substring(4)).substring(26))}function Pg(n,t){return ME(qc.recoverPublicKey(n,t))}const me=BigInt(0),BE=BigInt(2),xE=BigInt(27),CE=BigInt(28),IE=BigInt(35),NE=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),jl=4096*32;function zg(n,t){let e=n.toString(16);for(;e.length<2;)e="0"+e;return e+=V_(t).substring(4),"0x"+e}function uf(n){return n==="0x"?null:Vt(n)}function Vl(n,t){try{return js(n)}catch(e){W(!1,e.message,t,n)}}function tu(n,t){return n==="0x"?0:Kt(n,t)}function he(n,t){if(n==="0x")return me;const e=zt(n,t);return W(e<=NE,"value exceeds uint size",t,e),e}function se(n,t){const e=zt(n,"value"),r=Oe(e);return W(r.length<=32,"value too large",`tx.${t}`,e),r}function Yl(n){return js(n).map(t=>[t.address,t.storageKeys])}function OE(n,t){W(Array.isArray(n),`invalid ${t}`,"value",n);for(let e=0;e<n.length;e++)W(ee(n[e],32),"invalid ${ param } hash",`value[${e}]`,n[e]);return n}function kE(n){const t=qu(n);W(Array.isArray(t)&&(t.length===9||t.length===6),"invalid field count for legacy transaction","data",n);const e={type:0,nonce:tu(t[0],"nonce"),gasPrice:he(t[1],"gasPrice"),gasLimit:he(t[2],"gasLimit"),to:uf(t[3]),value:he(t[4],"value"),data:Et(t[5]),chainId:me};if(t.length===6)return e;const r=he(t[6],"v"),s=he(t[7],"r"),_=he(t[8],"s");if(s===me&&_===me)e.chainId=r;else{let a=(r-IE)/BE;a<me&&(a=me),e.chainId=a,W(a!==me||r===xE||r===CE,"non-canonical legacy v","v",t[6]),e.signature=Sr.from({r:Os(t[7],32),s:Os(t[8],32),v:r})}return e}function TE(n,t){const e=[se(n.nonce,"nonce"),se(n.gasPrice||0,"gasPrice"),se(n.gasLimit,"gasLimit"),n.to||"0x",se(n.value,"value"),n.data];let r=me;if(n.chainId!=me)r=zt(n.chainId,"tx.chainId"),W(!t||t.networkV==null||t.legacyChainId===r,"tx.chainId/sig.v mismatch","sig",t);else if(n.signature){const _=n.signature.legacyChainId;_!=null&&(r=_)}if(!t)return r!==me&&(e.push(Oe(r)),e.push("0x"),e.push("0x")),ks(e);let s=BigInt(27+t.yParity);return r!==me?s=Sr.getChainIdV(r,t.v):BigInt(t.v)!==s&&W(!1,"tx.chainId/sig.v mismatch","sig",t),e.push(Oe(s)),e.push(Oe(t.r)),e.push(Oe(t.s)),ks(e)}function Hl(n,t){let e;try{if(e=tu(t[0],"yParity"),e!==0&&e!==1)throw new Error("bad yParity")}catch{W(!1,"invalid yParity","yParity",t[0])}const r=Os(t[1],32),s=Os(t[2],32),_=Sr.from({r,s,yParity:e});n.signature=_}function GE(n){const t=qu(qt(n).slice(1));W(Array.isArray(t)&&(t.length===9||t.length===12),"invalid field count for transaction type: 2","data",Et(n));const e={type:2,chainId:he(t[0],"chainId"),nonce:tu(t[1],"nonce"),maxPriorityFeePerGas:he(t[2],"maxPriorityFeePerGas"),maxFeePerGas:he(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:he(t[4],"gasLimit"),to:uf(t[5]),value:he(t[6],"value"),data:Et(t[7]),accessList:Vl(t[8],"accessList")};return t.length===9||Hl(e,t.slice(9)),e}function FE(n,t){const e=[se(n.chainId,"chainId"),se(n.nonce,"nonce"),se(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),se(n.maxFeePerGas||0,"maxFeePerGas"),se(n.gasLimit,"gasLimit"),n.to||"0x",se(n.value,"value"),n.data,Yl(n.accessList||[])];return t&&(e.push(se(t.yParity,"yParity")),e.push(Oe(t.r)),e.push(Oe(t.s))),le(["0x02",ks(e)])}function UE(n){const t=qu(qt(n).slice(1));W(Array.isArray(t)&&(t.length===8||t.length===11),"invalid field count for transaction type: 1","data",Et(n));const e={type:1,chainId:he(t[0],"chainId"),nonce:tu(t[1],"nonce"),gasPrice:he(t[2],"gasPrice"),gasLimit:he(t[3],"gasLimit"),to:uf(t[4]),value:he(t[5],"value"),data:Et(t[6]),accessList:Vl(t[7],"accessList")};return t.length===8||Hl(e,t.slice(8)),e}function KE(n,t){const e=[se(n.chainId,"chainId"),se(n.nonce,"nonce"),se(n.gasPrice||0,"gasPrice"),se(n.gasLimit,"gasLimit"),n.to||"0x",se(n.value,"value"),n.data,Yl(n.accessList||[])];return t&&(e.push(se(t.yParity,"recoveryParam")),e.push(Oe(t.r)),e.push(Oe(t.s))),le(["0x01",ks(e)])}function DE(n){let t=qu(qt(n).slice(1)),e="3",r=null;if(t.length===4&&Array.isArray(t[0])){e="3 (network format)";const _=t[1],a=t[2],c=t[3];W(Array.isArray(_),"invalid network format: blobs not an array","fields[1]",_),W(Array.isArray(a),"invalid network format: commitments not an array","fields[2]",a),W(Array.isArray(c),"invalid network format: proofs not an array","fields[3]",c),W(_.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),W(_.length===c.length,"invalid network format: blobs/proofs length mismatch","fields",t),r=[];for(let u=0;u<t[1].length;u++)r.push({data:_[u],commitment:a[u],proof:c[u]});t=t[0]}W(Array.isArray(t)&&(t.length===11||t.length===14),`invalid field count for transaction type: ${e}`,"data",Et(n));const s={type:3,chainId:he(t[0],"chainId"),nonce:tu(t[1],"nonce"),maxPriorityFeePerGas:he(t[2],"maxPriorityFeePerGas"),maxFeePerGas:he(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:he(t[4],"gasLimit"),to:uf(t[5]),value:he(t[6],"value"),data:Et(t[7]),accessList:Vl(t[8],"accessList"),maxFeePerBlobGas:he(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};r&&(s.blobs=r),W(s.to!=null,`invalid address for transaction type: ${e}`,"data",n),W(Array.isArray(s.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",n);for(let _=0;_<s.blobVersionedHashes.length;_++)W(ee(s.blobVersionedHashes[_],32),`invalid blobVersionedHash at index ${_}: must be length 32`,"data",n);return t.length===11||Hl(s,t.slice(11)),s}function LE(n,t,e){const r=[se(n.chainId,"chainId"),se(n.nonce,"nonce"),se(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),se(n.maxFeePerGas||0,"maxFeePerGas"),se(n.gasLimit,"gasLimit"),n.to||Hc,se(n.value,"value"),n.data,Yl(n.accessList||[]),se(n.maxFeePerBlobGas||0,"maxFeePerBlobGas"),OE(n.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(r.push(se(t.yParity,"yParity")),r.push(Oe(t.r)),r.push(Oe(t.s)),e)?le(["0x03",ks([r,e.map(s=>s.data),e.map(s=>s.commitment),e.map(s=>s.proof)])]):le(["0x03",ks(r)])}const Qi=class Qi{constructor(){rt(this,yc);rt(this,Ri);rt(this,ac);rt(this,cc);rt(this,uc);rt(this,fc);rt(this,lc);rt(this,pc);rt(this,hc);rt(this,wc);rt(this,dc);rt(this,gc);rt(this,bc);rt(this,z_);rt(this,gs);rt(this,qi);rt(this,bs);K(this,Ri,null),K(this,ac,null),K(this,uc,0),K(this,fc,me),K(this,lc,null),K(this,pc,null),K(this,hc,null),K(this,cc,"0x"),K(this,wc,me),K(this,dc,me),K(this,gc,null),K(this,bc,null),K(this,z_,null),K(this,gs,null),K(this,bs,null),K(this,qi,null)}get type(){return m(this,Ri)}set type(t){switch(t){case null:K(this,Ri,null);break;case 0:case"legacy":K(this,Ri,0);break;case 1:case"berlin":case"eip-2930":K(this,Ri,1);break;case 2:case"london":case"eip-1559":K(this,Ri,2);break;case 3:case"cancun":case"eip-4844":K(this,Ri,3);break;default:W(!1,"unsupported transaction type","type",t)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const t=m(this,ac);return t==null&&this.type===3?Hc:t}set to(t){K(this,ac,t==null?null:Vt(t))}get nonce(){return m(this,uc)}set nonce(t){K(this,uc,Kt(t,"value"))}get gasLimit(){return m(this,fc)}set gasLimit(t){K(this,fc,zt(t))}get gasPrice(){const t=m(this,lc);return t==null&&(this.type===0||this.type===1)?me:t}set gasPrice(t){K(this,lc,t==null?null:zt(t,"gasPrice"))}get maxPriorityFeePerGas(){const t=m(this,pc);return t??(this.type===2||this.type===3?me:null)}set maxPriorityFeePerGas(t){K(this,pc,t==null?null:zt(t,"maxPriorityFeePerGas"))}get maxFeePerGas(){const t=m(this,hc);return t??(this.type===2||this.type===3?me:null)}set maxFeePerGas(t){K(this,hc,t==null?null:zt(t,"maxFeePerGas"))}get data(){return m(this,cc)}set data(t){K(this,cc,Et(t))}get value(){return m(this,wc)}set value(t){K(this,wc,zt(t,"value"))}get chainId(){return m(this,dc)}set chainId(t){K(this,dc,zt(t))}get signature(){return m(this,gc)||null}set signature(t){K(this,gc,t==null?null:Sr.from(t))}get accessList(){const t=m(this,bc)||null;return t??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(t){K(this,bc,t==null?null:js(t))}get maxFeePerBlobGas(){const t=m(this,z_);return t==null&&this.type===3?me:t}set maxFeePerBlobGas(t){K(this,z_,t==null?null:zt(t,"maxFeePerBlobGas"))}get blobVersionedHashes(){let t=m(this,gs);return t==null&&this.type===3?[]:t}set blobVersionedHashes(t){if(t!=null){W(Array.isArray(t),"blobVersionedHashes must be an Array","value",t),t=t.slice();for(let e=0;e<t.length;e++)W(ee(t[e],32),"invalid blobVersionedHash",`value[${e}]`,t[e])}K(this,gs,t)}get blobs(){return m(this,bs)==null?null:m(this,bs).map(t=>Object.assign({},t))}set blobs(t){if(t==null){K(this,bs,null);return}const e=[],r=[];for(let s=0;s<t.length;s++){const _=t[s];if(sl(_)){ht(m(this,qi),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let a=qt(_);if(W(a.length<=jl,"blob is too large",`blobs[${s}]`,_),a.length!==jl){const l=new Uint8Array(jl);l.set(a),a=l}const c=m(this,qi).blobToKzgCommitment(a),u=Et(m(this,qi).computeBlobKzgProof(a,c));e.push({data:Et(a),commitment:Et(c),proof:u}),r.push(zg(1,c))}else{const a=Et(_.commitment);e.push({data:Et(_.data),commitment:a,proof:Et(_.proof)}),r.push(zg(1,a))}}K(this,bs,e),K(this,gs,r)}get kzg(){return m(this,qi)}set kzg(t){K(this,qi,t)}get hash(){return this.signature==null?null:be(mt(this,yc,Jf).call(this,!0,!1))}get unsignedHash(){return be(this.unsignedSerialized)}get from(){return this.signature==null?null:Pg(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:qc.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){return mt(this,yc,Jf).call(this,!0,!0)}get unsignedSerialized(){return mt(this,yc,Jf).call(this,!1,!1)}inferType(){const t=this.inferTypes();return t.indexOf(2)>=0?2:t.pop()}inferTypes(){const t=this.gasPrice!=null,e=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,r=this.accessList!=null,s=m(this,z_)!=null||m(this,gs);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&ht(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),ht(!e||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),ht(this.type!==0||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const _=[];return this.type!=null?_.push(this.type):e?_.push(2):t?(_.push(1),r||_.push(0)):r?(_.push(1),_.push(2)):(s&&this.to||(_.push(0),_.push(1),_.push(2)),_.push(3)),_.sort(),_}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Qi.from(this)}toJSON(){const t=e=>e==null?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:t(this.gasLimit),gasPrice:t(this.gasPrice),maxPriorityFeePerGas:t(this.maxPriorityFeePerGas),maxFeePerGas:t(this.maxFeePerGas),value:t(this.value),chainId:t(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(t){if(t==null)return new Qi;if(typeof t=="string"){const r=qt(t);if(r[0]>=127)return Qi.from(kE(r));switch(r[0]){case 1:return Qi.from(UE(r));case 2:return Qi.from(GE(r));case 3:return Qi.from(DE(r))}ht(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const e=new Qi;return t.type!=null&&(e.type=t.type),t.to!=null&&(e.to=t.to),t.nonce!=null&&(e.nonce=t.nonce),t.gasLimit!=null&&(e.gasLimit=t.gasLimit),t.gasPrice!=null&&(e.gasPrice=t.gasPrice),t.maxPriorityFeePerGas!=null&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas),t.maxFeePerGas!=null&&(e.maxFeePerGas=t.maxFeePerGas),t.maxFeePerBlobGas!=null&&(e.maxFeePerBlobGas=t.maxFeePerBlobGas),t.data!=null&&(e.data=t.data),t.value!=null&&(e.value=t.value),t.chainId!=null&&(e.chainId=t.chainId),t.signature!=null&&(e.signature=Sr.from(t.signature)),t.accessList!=null&&(e.accessList=t.accessList),t.blobVersionedHashes!=null&&(e.blobVersionedHashes=t.blobVersionedHashes),t.kzg!=null&&(e.kzg=t.kzg),t.blobs!=null&&(e.blobs=t.blobs),t.hash!=null&&(W(e.isSigned(),"unsigned transaction cannot define '.hash'","tx",t),W(e.hash===t.hash,"hash mismatch","tx",t)),t.from!=null&&(W(e.isSigned(),"unsigned transaction cannot define '.from'","tx",t),W(e.from.toLowerCase()===(t.from||"").toLowerCase(),"from mismatch","tx",t)),e}};Ri=new WeakMap,ac=new WeakMap,cc=new WeakMap,uc=new WeakMap,fc=new WeakMap,lc=new WeakMap,pc=new WeakMap,hc=new WeakMap,wc=new WeakMap,dc=new WeakMap,gc=new WeakMap,bc=new WeakMap,z_=new WeakMap,gs=new WeakMap,qi=new WeakMap,bs=new WeakMap,yc=new WeakSet,Jf=function(t,e){ht(!t||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const r=t?this.signature:null;switch(this.inferType()){case 0:return TE(this,r);case 1:return KE(this,r);case 2:return FE(this,r);case 3:return LE(this,r,e?this.blobs:null)}ht(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let ff=Qi;const vg=new Uint8Array(32);vg.fill(0);const jE=BigInt(-1),Mg=BigInt(0),Bg=BigInt(1),VE=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function YE(n){const t=qt(n),e=t.length%32;return e?le([t,vg.slice(e)]):Et(t)}const HE=rs(Bg,32),qE=rs(Mg,32),xg={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},ql=["name","version","chainId","verifyingContract","salt"];function Cg(n){return function(t){return W(typeof t=="string",`invalid domain value for ${JSON.stringify(n)}`,`domain.${n}`,t),t}}const QE={name:Cg("name"),version:Cg("version"),chainId:function(n){const t=zt(n,"domain.chainId");return W(t>=0,"invalid chain ID","domain.chainId",n),Number.isSafeInteger(t)?Number(t):D_(t)},verifyingContract:function(n){try{return Vt(n).toLowerCase()}catch{}W(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",n)},salt:function(n){const t=qt(n,"domain.salt");return W(t.length===32,'invalid domain value "salt"',"domain.salt",n),Et(t)}};function Ql(n){{const t=n.match(/^(u?)int(\d+)$/);if(t){const e=t[1]==="",r=parseInt(t[2]);W(r%8===0&&r!==0&&r<=256&&t[2]===String(r),"invalid numeric width","type",n);const s=Dc(VE,e?r-1:r),_=e?(s+Bg)*jE:Mg;return function(a){const c=zt(a,"value");return W(c>=_&&c<=s,`value out-of-bounds for ${n}`,"value",c),rs(e?Nw(c,256):c,32)}}}{const t=n.match(/^bytes(\d+)$/);if(t){const e=parseInt(t[1]);return W(e!==0&&e<=32&&t[1]===String(e),"invalid bytes width","type",n),function(r){const s=qt(r);return W(s.length===e,`invalid length for ${n}`,"value",r),YE(r)}}}switch(n){case"address":return function(t){return Os(Vt(t),32)};case"bool":return function(t){return t?HE:qE};case"bytes":return function(t){return be(t)};case"string":return function(t){return Ks(t)}}return null}function Ig(n,t){return`${n}(${t.map(({name:e,type:r})=>r+" "+e).join(",")})`}function lf(n){const t=n.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:n}}const fr=class fr{constructor(t){rt(this,jf);$(this,"primaryType");rt(this,Pu);rt(this,Wi);rt(this,Ac);K(this,Wi,new Map),K(this,Ac,new Map);const e=new Map,r=new Map,s=new Map,_={};Object.keys(t).forEach(u=>{_[u]=t[u].map(({name:l,type:f})=>{let{base:w,index:y}=lf(f);return w==="int"&&!t.int&&(w="int256"),w==="uint"&&!t.uint&&(w="uint256"),{name:l,type:w+(y||"")}}),e.set(u,new Set),r.set(u,[]),s.set(u,new Set)}),K(this,Pu,JSON.stringify(_));for(const u in _){const l=new Set;for(const f of _[u]){W(!l.has(f.name),`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(u)}`,"types",t),l.add(f.name);const w=lf(f.type).base;W(w!==u,`circular type reference to ${JSON.stringify(w)}`,"types",t),!Ql(w)&&(W(r.has(w),`unknown type ${JSON.stringify(w)}`,"types",t),r.get(w).push(u),e.get(u).add(w))}}const a=Array.from(r.keys()).filter(u=>r.get(u).length===0);W(a.length!==0,"missing primary type","types",t),W(a.length===1,`ambiguous primary types or unused types: ${a.map(u=>JSON.stringify(u)).join(", ")}`,"types",t),xt(this,{primaryType:a[0]});function c(u,l){W(!l.has(u),`circular type reference to ${JSON.stringify(u)}`,"types",t),l.add(u);for(const f of e.get(u))if(r.has(f)){c(f,l);for(const w of l)s.get(w).add(f)}l.delete(u)}c(this.primaryType,new Set);for(const[u,l]of s){const f=Array.from(l);f.sort(),m(this,Wi).set(u,Ig(u,_[u])+f.map(w=>Ig(w,_[w])).join(""))}}get types(){return JSON.parse(m(this,Pu))}getEncoder(t){let e=m(this,Ac).get(t);return e||(e=mt(this,jf,Cm).call(this,t),m(this,Ac).set(t,e)),e}encodeType(t){const e=m(this,Wi).get(t);return W(e,`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return be(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(Ql(t))return r(t,e);const s=lf(t).array;if(s)return W(s.count===-1||s.count===e.length,`array length mismatch; expected length ${s.count}`,"value",e),e.map(a=>this._visit(s.prefix,a,r));const _=this.types[t];if(_)return _.reduce((a,{name:c,type:u})=>(a[c]=this._visit(u,e[c],r),a),{});W(!1,`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new fr(t)}static getPrimaryType(t){return fr.from(t).primaryType}static hashStruct(t,e,r){return fr.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){if(t[r]==null)continue;const s=xg[r];W(s,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:s})}return e.sort((r,s)=>ql.indexOf(r.name)-ql.indexOf(s.name)),fr.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return le(["0x1901",fr.hashDomain(t),fr.from(e).hash(r)])}static hash(t,e,r){return be(fr.encode(t,e,r))}static async resolveNames(t,e,r,s){t=Object.assign({},t);for(const c in t)t[c]==null&&delete t[c];const _={};t.verifyingContract&&!ee(t.verifyingContract,20)&&(_[t.verifyingContract]="0x");const a=fr.from(e);a.visit(r,(c,u)=>(c==="address"&&!ee(u,20)&&(_[u]="0x"),u));for(const c in _)_[c]=await s(c);return t.verifyingContract&&_[t.verifyingContract]&&(t.verifyingContract=_[t.verifyingContract]),r=a.visit(r,(c,u)=>c==="address"&&_[u]?_[u]:u),{domain:t,value:r}}static getPayload(t,e,r){fr.hashDomain(t);const s={},_=[];ql.forEach(u=>{const l=t[u];l!=null&&(s[u]=QE[u](l),_.push({name:u,type:xg[u]}))});const a=fr.from(e);e=a.types;const c=Object.assign({},e);return W(c.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",e),c.EIP712Domain=_,a.encode(r),{types:c,domain:s,primaryType:a.primaryType,message:a.visit(r,(u,l)=>{if(u.match(/^bytes(\d*)/))return Et(qt(l));if(u.match(/^u?int/))return zt(l).toString();switch(u){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return W(typeof l=="string","invalid string","value",l),l}W(!1,"unsupported type","type",u)})}}};Pu=new WeakMap,Wi=new WeakMap,Ac=new WeakMap,jf=new WeakSet,Cm=function(t){{const s=Ql(t);if(s)return s}const e=lf(t).array;if(e){const s=e.prefix,_=this.getEncoder(s);return a=>{W(e.count===-1||e.count===a.length,`array length mismatch; expected length ${e.count}`,"value",a);let c=a.map(_);return m(this,Wi).has(s)&&(c=c.map(be)),be(le(c))}}const r=this.types[t];if(r){const s=Ks(m(this,Wi).get(t));return _=>{const a=r.map(({name:c,type:u})=>{const l=this.getEncoder(u)(_[c]);return m(this,Wi).has(u)?be(l):l});return a.unshift(s),le(a)}}W(!1,`unknown type: ${t}`,"type",t)};let eu=fr;function Ng(n,t,e,r){return Pg(eu.hash(n,t,e),r)}function Ge(n){const t=new Set;return n.forEach(e=>t.add(e)),Object.freeze(t)}const WE=Ge("external public payable override".split(" ")),Og="constant external internal payable private public pure view override",JE=Ge(Og.split(" ")),kg="constructor error event fallback function receive struct",Tg=Ge(kg.split(" ")),Gg="calldata memory storage payable indexed",$E=Ge(Gg.split(" ")),ZE=[kg,Gg,"tuple returns",Og].join(" "),XE=Ge(ZE.split(" ")),tP={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},eP=new RegExp("^(\\s*)"),rP=new RegExp("^([0-9]+)"),nP=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Fg=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),Ug=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),Vf=class Vf{constructor(t){rt(this,zu);rt(this,ve);rt(this,Ir);K(this,ve,0),K(this,Ir,t.slice())}get offset(){return m(this,ve)}get length(){return m(this,Ir).length-m(this,ve)}clone(){return new Vf(m(this,Ir))}reset(){K(this,ve,0)}popKeyword(t){const e=this.peek();if(e.type!=="KEYWORD"||!t.has(e.text))throw new Error(`expected keyword ${e.text}`);return this.pop().text}popType(t){if(this.peek().type!==t){const e=this.peek();throw new Error(`expected ${t}; got ${e.type} ${JSON.stringify(e.text)}`)}return this.pop().text}popParen(){const t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");const e=mt(this,zu,mw).call(this,m(this,ve)+1,t.match+1);return K(this,ve,t.match+1),e}popParams(){const t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");const e=[];for(;m(this,ve)<t.match-1;){const r=this.peek().linkNext;e.push(mt(this,zu,mw).call(this,m(this,ve)+1,r)),K(this,ve,r)}return K(this,ve,t.match+1),e}peek(){if(m(this,ve)>=m(this,Ir).length)throw new Error("out-of-bounds");return m(this,Ir)[m(this,ve)]}peekKeyword(t){const e=this.peekType("KEYWORD");return e!=null&&t.has(e)?e:null}peekType(t){if(this.length===0)return null;const e=this.peek();return e.type===t?e.text:null}pop(){const t=this.peek();return Gu(this,ve)._++,t}toString(){const t=[];for(let e=m(this,ve);e<m(this,Ir).length;e++){const r=m(this,Ir)[e];t.push(`${r.type}:${r.text}`)}return`<TokenString ${t.join(" ")}>`}};ve=new WeakMap,Ir=new WeakMap,zu=new WeakSet,mw=function(t=0,e=0){return new Vf(m(this,Ir).slice(t,e).map(r=>Object.freeze(Object.assign({},r,{match:r.match-t,linkBack:r.linkBack-t,linkNext:r.linkNext-t}))))};let Rr=Vf;function cs(n){const t=[],e=a=>{const c=_<n.length?JSON.stringify(n[_]):"$EOI";throw new Error(`invalid token ${c} at ${_}: ${a}`)};let r=[],s=[],_=0;for(;_<n.length;){let a=n.substring(_),c=a.match(eP);c&&(_+=c[1].length,a=n.substring(_));const u={depth:r.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:_,value:-1};t.push(u);let l=tP[a[0]]||"";if(l){if(u.type=l,u.text=a[0],_++,l==="OPEN_PAREN")r.push(t.length-1),s.push(t.length-1);else if(l=="CLOSE_PAREN")r.length===0&&e("no matching open bracket"),u.match=r.pop(),t[u.match].match=t.length-1,u.depth--,u.linkBack=s.pop(),t[u.linkBack].linkNext=t.length-1;else if(l==="COMMA")u.linkBack=s.pop(),t[u.linkBack].linkNext=t.length-1,s.push(t.length-1);else if(l==="OPEN_BRACKET")u.type="BRACKET";else if(l==="CLOSE_BRACKET"){let f=t.pop().text;if(t.length>0&&t[t.length-1].type==="NUMBER"){const w=t.pop().text;f=w+f,t[t.length-1].value=Kt(w)}if(t.length===0||t[t.length-1].type!=="BRACKET")throw new Error("missing opening bracket");t[t.length-1].text+=f}continue}if(c=a.match(nP),c){if(u.text=c[1],_+=u.text.length,XE.has(u.text)){u.type="KEYWORD";continue}if(u.text.match(Ug)){u.type="TYPE";continue}u.type="ID";continue}if(c=a.match(rP),c){u.text=c[1],u.type="NUMBER",_+=u.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${_}`)}return new Rr(t.map(a=>Object.freeze(a)))}function Kg(n,t){let e=[];for(const r in t.keys())n.has(r)&&e.push(r);if(e.length>1)throw new Error(`conflicting types: ${e.join(", ")}`)}function pf(n,t){if(t.peekKeyword(Tg)){const e=t.pop().text;if(e!==n)throw new Error(`expected ${n}, got ${e}`)}return t.popType("ID")}function Ti(n,t){const e=new Set;for(;;){const r=n.peekType("KEYWORD");if(r==null||t&&!t.has(r))break;if(n.pop(),e.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);e.add(r)}return Object.freeze(e)}function Dg(n){let t=Ti(n,JE);return Kg(t,Ge("constant payable nonpayable".split(" "))),Kg(t,Ge("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function Gi(n,t){return n.popParams().map(e=>Pe.from(e,t))}function Lg(n){if(n.peekType("AT")){if(n.pop(),n.peekType("NUMBER"))return zt(n.pop().text);throw new Error("invalid gas")}return null}function Vs(n){if(n.length)throw new Error(`unexpected tokens at offset ${n.offset}: ${n.toString()}`)}const iP=new RegExp(/^(.*)\[([0-9]*)\]$/);function jg(n){const t=n.match(Ug);if(W(t,"invalid type","type",n),n==="uint")return"uint256";if(n==="int")return"int256";if(t[2]){const e=parseInt(t[2]);W(e!==0&&e<=32,"invalid bytes length","type",n)}else if(t[3]){const e=parseInt(t[3]);W(e!==0&&e<=256&&e%8===0,"invalid numeric width","type",n)}return n}const ae={},De=Symbol.for("_ethers_internal"),Vg="_ParamTypeInternal",Yg="_ErrorInternal",Hg="_EventInternal",qg="_ConstructorInternal",Qg="_FallbackInternal",Wg="_FunctionInternal",Jg="_StructInternal",lr=class lr{constructor(t,e,r,s,_,a,c,u){rt(this,mc);$(this,"name");$(this,"type");$(this,"baseType");$(this,"indexed");$(this,"components");$(this,"arrayLength");$(this,"arrayChildren");if(Du(t,ae,"ParamType"),Object.defineProperty(this,De,{value:Vg}),a&&(a=Object.freeze(a.slice())),s==="array"){if(c==null||u==null)throw new Error("")}else if(c!=null||u!=null)throw new Error("");if(s==="tuple"){if(a==null)throw new Error("")}else if(a!=null)throw new Error("");xt(this,{name:e,type:r,baseType:s,indexed:_,components:a,arrayLength:c,arrayChildren:u})}format(t){if(t==null&&(t="sighash"),t==="json"){const r=this.name||"";if(this.isArray()){const _=JSON.parse(this.arrayChildren.format("json"));return _.name=r,_.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(_)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:r};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(_=>JSON.parse(_.format(t)))),JSON.stringify(s)}let e="";return this.isArray()?(e+=this.arrayChildren.format(t),e+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?e+="("+this.components.map(r=>r.format(t)).join(t==="full"?", ":",")+")":e+=this.type,t!=="sighash"&&(this.indexed===!0&&(e+=" indexed"),t==="full"&&this.name&&(e+=" "+this.name)),e}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(t,e){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return t.map(s=>r.arrayChildren.walk(s,e))}if(this.isTuple()){if(!Array.isArray(t))throw new Error("invalid tuple value");if(t.length!==this.components.length)throw new Error("array is wrong length");const r=this;return t.map((s,_)=>r.components[_].walk(s,e))}return e(this.type,t)}async walkAsync(t,e){const r=[],s=[t];return mt(this,mc,$f).call(this,r,t,e,_=>{s[0]=_}),r.length&&await Promise.all(r),s[0]}static from(t,e){if(lr.isParamType(t))return t;if(typeof t=="string")try{return lr.from(cs(t),e)}catch{W(!1,"invalid param type","obj",t)}else if(t instanceof Rr){let c="",u="",l=null;Ti(t,Ge(["tuple"])).has("tuple")||t.peekType("OPEN_PAREN")?(u="tuple",l=t.popParams().map(I=>lr.from(I)),c=`tuple(${l.map(I=>I.format()).join(",")})`):(c=jg(t.popType("TYPE")),u=c);let f=null,w=null;for(;t.length&&t.peekType("BRACKET");){const I=t.pop();f=new lr(ae,"",c,u,null,l,w,f),w=I.value,c+=I.text,u="array",l=null}let y=null;if(Ti(t,$E).has("indexed")){if(!e)throw new Error("");y=!0}const B=t.peekType("ID")?t.pop().text:"";if(t.length)throw new Error("leftover tokens");return new lr(ae,B,c,u,y,l,w,f)}const r=t.name;W(!r||typeof r=="string"&&r.match(Fg),"invalid name","obj.name",r);let s=t.indexed;s!=null&&(W(e,"parameter cannot be indexed","obj.indexed",t.indexed),s=!!s);let _=t.type,a=_.match(iP);if(a){const c=parseInt(a[2]||"-1"),u=lr.from({type:a[1],components:t.components});return new lr(ae,r||"",_,"array",s,null,c,u)}if(_==="tuple"||_.startsWith("tuple(")||_.startsWith("(")){const c=t.components!=null?t.components.map(l=>lr.from(l)):null;return new lr(ae,r||"",_,"tuple",s,c,null,null)}return _=jg(t.type),new lr(ae,r||"",_,_,s,null,null,null)}static isParamType(t){return t&&t[De]===Vg}};mc=new WeakSet,$f=function(t,e,r,s){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,c=e.slice();c.forEach((u,l)=>{var f;mt(f=a,mc,$f).call(f,t,u,r,w=>{c[l]=w})}),s(c);return}if(this.isTuple()){const a=this.components;let c;if(Array.isArray(e))c=e.slice();else{if(e==null||typeof e!="object")throw new Error("invalid tuple value");c=a.map(u=>{if(!u.name)throw new Error("cannot use object value with unnamed components");if(!(u.name in e))throw new Error(`missing value for component ${u.name}`);return e[u.name]})}if(c.length!==this.components.length)throw new Error("array is wrong length");c.forEach((u,l)=>{var f;mt(f=a[l],mc,$f).call(f,t,u,r,w=>{c[l]=w})}),s(c);return}const _=r(this.type,e);_.then?t.push(async function(){s(await _)}()):s(_)};let Pe=lr;class Ys{constructor(t,e,r){$(this,"type");$(this,"inputs");Du(t,ae,"Fragment"),r=Object.freeze(r.slice()),xt(this,{type:e,inputs:r})}static from(t){if(typeof t=="string"){try{Ys.from(JSON.parse(t))}catch{}return Ys.from(cs(t))}if(t instanceof Rr)switch(t.peekKeyword(Tg)){case"constructor":return Fi.from(t);case"error":return Le.from(t);case"event":return Tr.from(t);case"fallback":case"receive":return Ui.from(t);case"function":return Gr.from(t);case"struct":return Hs.from(t)}else if(typeof t=="object"){switch(t.type){case"constructor":return Fi.from(t);case"error":return Le.from(t);case"event":return Tr.from(t);case"fallback":case"receive":return Ui.from(t);case"function":return Gr.from(t);case"struct":return Hs.from(t)}ht(!1,`unsupported type: ${t.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}W(!1,"unsupported frgament object","obj",t)}static isConstructor(t){return Fi.isFragment(t)}static isError(t){return Le.isFragment(t)}static isEvent(t){return Tr.isFragment(t)}static isFunction(t){return Gr.isFragment(t)}static isStruct(t){return Hs.isFragment(t)}}class hf extends Ys{constructor(e,r,s,_){super(e,r,_);$(this,"name");W(typeof s=="string"&&s.match(Fg),"invalid identifier","name",s),_=Object.freeze(_.slice()),xt(this,{name:s})}}function ru(n,t){return"("+t.map(e=>e.format(n)).join(n==="full"?", ":",")+")"}class Le extends hf{constructor(t,e,r){super(t,"error",e,r),Object.defineProperty(this,De,{value:Yg})}get selector(){return Ks(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const e=[];return t!=="sighash"&&e.push("error"),e.push(this.name+ru(t,this.inputs)),e.join(" ")}static from(t){if(Le.isFragment(t))return t;if(typeof t=="string")return Le.from(cs(t));if(t instanceof Rr){const e=pf("error",t),r=Gi(t);return Vs(t),new Le(ae,e,r)}return new Le(ae,t.name,t.inputs?t.inputs.map(Pe.from):[])}static isFragment(t){return t&&t[De]===Yg}}class Tr extends hf{constructor(e,r,s,_){super(e,"event",r,s);$(this,"anonymous");Object.defineProperty(this,De,{value:Hg}),xt(this,{anonymous:_})}get topicHash(){return Ks(this.format("sighash"))}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(e)))});const r=[];return e!=="sighash"&&r.push("event"),r.push(this.name+ru(e,this.inputs)),e!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(e,r){return r=(r||[]).map(_=>Pe.from(_)),new Tr(ae,e,r,!1).topicHash}static from(e){if(Tr.isFragment(e))return e;if(typeof e=="string")try{return Tr.from(cs(e))}catch{W(!1,"invalid event fragment","obj",e)}else if(e instanceof Rr){const r=pf("event",e),s=Gi(e,!0),_=!!Ti(e,Ge(["anonymous"])).has("anonymous");return Vs(e),new Tr(ae,r,s,_)}return new Tr(ae,e.name,e.inputs?e.inputs.map(r=>Pe.from(r,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[De]===Hg}}class Fi extends Ys{constructor(e,r,s,_,a){super(e,r,s);$(this,"payable");$(this,"gas");Object.defineProperty(this,De,{value:qg}),xt(this,{payable:_,gas:a})}format(e){if(ht(e!=null&&e!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),e==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(e)))});const r=[`constructor${ru(e,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(e){if(Fi.isFragment(e))return e;if(typeof e=="string")try{return Fi.from(cs(e))}catch{W(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof Rr){Ti(e,Ge(["constructor"]));const r=Gi(e),s=!!Ti(e,WE).has("payable"),_=Lg(e);return Vs(e),new Fi(ae,"constructor",r,s,_)}return new Fi(ae,"constructor",e.inputs?e.inputs.map(Pe.from):[],!!e.payable,e.gas!=null?e.gas:null)}static isFragment(e){return e&&e[De]===qg}}class Ui extends Ys{constructor(e,r,s){super(e,"fallback",r);$(this,"payable");Object.defineProperty(this,De,{value:Qg}),xt(this,{payable:s})}format(e){const r=this.inputs.length===0?"receive":"fallback";if(e==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:s})}return`${r}()${this.payable?" payable":""}`}static from(e){if(Ui.isFragment(e))return e;if(typeof e=="string")try{return Ui.from(cs(e))}catch{W(!1,"invalid fallback fragment","obj",e)}else if(e instanceof Rr){const r=e.toString(),s=e.peekKeyword(Ge(["fallback","receive"]));if(W(s,"type must be fallback or receive","obj",r),e.popKeyword(Ge(["fallback","receive"]))==="receive"){const u=Gi(e);return W(u.length===0,"receive cannot have arguments","obj.inputs",u),Ti(e,Ge(["payable"])),Vs(e),new Ui(ae,[],!0)}let a=Gi(e);a.length?W(a.length===1&&a[0].type==="bytes","invalid fallback inputs","obj.inputs",a.map(u=>u.format("minimal")).join(", ")):a=[Pe.from("bytes")];const c=Dg(e);if(W(c==="nonpayable"||c==="payable","fallback cannot be constants","obj.stateMutability",c),Ti(e,Ge(["returns"])).has("returns")){const u=Gi(e);W(u.length===1&&u[0].type==="bytes","invalid fallback outputs","obj.outputs",u.map(l=>l.format("minimal")).join(", "))}return Vs(e),new Ui(ae,a,c==="payable")}if(e.type==="receive")return new Ui(ae,[],!0);if(e.type==="fallback"){const r=[Pe.from("bytes")],s=e.stateMutability==="payable";return new Ui(ae,r,s)}W(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[De]===Qg}}class Gr extends hf{constructor(e,r,s,_,a,c){super(e,"function",r,_);$(this,"constant");$(this,"outputs");$(this,"stateMutability");$(this,"payable");$(this,"gas");Object.defineProperty(this,De,{value:Wg}),a=Object.freeze(a.slice()),xt(this,{constant:s==="view"||s==="pure",gas:c,outputs:a,payable:s==="payable",stateMutability:s})}get selector(){return Ks(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(e))),outputs:this.outputs.map(s=>JSON.parse(s.format(e)))});const r=[];return e!=="sighash"&&r.push("function"),r.push(this.name+ru(e,this.inputs)),e!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(ru(e,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(e,r){return r=(r||[]).map(_=>Pe.from(_)),new Gr(ae,e,"view",r,[],null).selector}static from(e){if(Gr.isFragment(e))return e;if(typeof e=="string")try{return Gr.from(cs(e))}catch{W(!1,"invalid function fragment","obj",e)}else if(e instanceof Rr){const s=pf("function",e),_=Gi(e),a=Dg(e);let c=[];Ti(e,Ge(["returns"])).has("returns")&&(c=Gi(e));const u=Lg(e);return Vs(e),new Gr(ae,s,a,_,c,u)}let r=e.stateMutability;return r==null&&(r="payable",typeof e.constant=="boolean"?(r="view",e.constant||(r="payable",typeof e.payable=="boolean"&&!e.payable&&(r="nonpayable"))):typeof e.payable=="boolean"&&!e.payable&&(r="nonpayable")),new Gr(ae,e.name,r,e.inputs?e.inputs.map(Pe.from):[],e.outputs?e.outputs.map(Pe.from):[],e.gas!=null?e.gas:null)}static isFragment(e){return e&&e[De]===Wg}}class Hs extends hf{constructor(t,e,r){super(t,"struct",e,r),Object.defineProperty(this,De,{value:Jg})}format(){throw new Error("@TODO")}static from(t){if(typeof t=="string")try{return Hs.from(cs(t))}catch{W(!1,"invalid struct fragment","obj",t)}else if(t instanceof Rr){const e=pf("struct",t),r=Gi(t);return Vs(t),new Hs(ae,e,r)}return new Hs(ae,t.name,t.inputs?t.inputs.map(Pe.from):[])}static isFragment(t){return t&&t[De]===Jg}}const Er=new Map;Er.set(0,"GENERIC_PANIC"),Er.set(1,"ASSERT_FALSE"),Er.set(17,"OVERFLOW"),Er.set(18,"DIVIDE_BY_ZERO"),Er.set(33,"ENUM_RANGE_ERROR"),Er.set(34,"BAD_STORAGE_DATA"),Er.set(49,"STACK_UNDERFLOW"),Er.set(50,"ARRAY_RANGE_ERROR"),Er.set(65,"OUT_OF_MEMORY"),Er.set(81,"UNINITIALIZED_FUNCTION_CALL");const sP=new RegExp(/^bytes([0-9]*)$/),_P=new RegExp(/^(u?int)([0-9]*)$/);let Wl=null,$g=1024;function oP(n,t,e,r){let s="missing revert data",_=null;const a=null;let c=null;if(e){s="execution reverted";const l=qt(e);if(e=Et(e),l.length===0)s+=" (no data present; likely require(false) occurred",_="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(Et(l.slice(0,4))==="0x08c379a0")try{_=r.decode(["string"],l.slice(4))[0],c={signature:"Error(string)",name:"Error",args:[_]},s+=`: ${JSON.stringify(_)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(Et(l.slice(0,4))==="0x4e487b71")try{const f=Number(r.decode(["uint256"],l.slice(4))[0]);c={signature:"Panic(uint256)",name:"Panic",args:[f]},_=`Panic due to ${Er.get(f)||"UNKNOWN"}(${f})`,s+=`: ${_}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const u={to:t.to?Vt(t.to):null,data:t.data||"0x"};return t.from&&(u.from=Vt(t.from)),ue(s,"CALL_EXCEPTION",{action:n,data:e,reason:_,transaction:u,invocation:a,revert:c})}const Yf=class Yf{constructor(){rt(this,ys)}getDefaultValue(t){const e=t.map(s=>mt(this,ys,Uc).call(this,Pe.from(s)));return new ef(e,"_").defaultValue()}encode(t,e){Bw(e.length,t.length,"types/values length mismatch");const r=t.map(a=>mt(this,ys,Uc).call(this,Pe.from(a))),s=new ef(r,"_"),_=new fl;return s.encode(_,e),_.data}decode(t,e,r){const s=t.map(a=>mt(this,ys,Uc).call(this,Pe.from(a)));return new ef(s,"_").decode(new ll(e,r,$g))}static _setDefaultMaxInflation(t){W(typeof t=="number"&&Number.isInteger(t),"invalid defaultMaxInflation factor","value",t),$g=t}static defaultAbiCoder(){return Wl==null&&(Wl=new Yf),Wl}static getBuiltinCallException(t,e,r){return oP(t,e,r,Yf.defaultAbiCoder())}};ys=new WeakSet,Uc=function(t){if(t.isArray())return new NR(mt(this,ys,Uc).call(this,t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new ef(t.components.map(r=>mt(this,ys,Uc).call(this,r)),t.name);switch(t.baseType){case"address":return new CR(t.name);case"bool":return new OR(t.name);case"string":return new jR(t.name);case"bytes":return new kR(t.name);case"":return new FR(t.name)}let e=t.type.match(_P);if(e){let r=parseInt(e[2]||"256");return W(r!==0&&r<=256&&r%8===0,"invalid "+e[1]+" bit length","param",t),new LR(r/8,e[1]==="int",t.name)}if(e=t.type.match(sP),e){let r=parseInt(e[1]);return W(r!==0&&r<=32,"invalid bytes length","param",t),new TR(r,t.name)}W(!1,"invalid type","type",t.type)};let X_=Yf;class aP{constructor(t,e,r){$(this,"fragment");$(this,"name");$(this,"signature");$(this,"topic");$(this,"args");const s=t.name,_=t.format();xt(this,{fragment:t,name:s,signature:_,topic:e,args:r})}}class cP{constructor(t,e,r,s){$(this,"fragment");$(this,"name");$(this,"args");$(this,"signature");$(this,"selector");$(this,"value");const _=t.name,a=t.format();xt(this,{fragment:t,name:_,args:r,signature:a,selector:e,value:s})}}class uP{constructor(t,e,r){$(this,"fragment");$(this,"name");$(this,"args");$(this,"signature");$(this,"selector");const s=t.name,_=t.format();xt(this,{fragment:t,name:s,args:r,signature:_,selector:e})}}class Zg{constructor(t){$(this,"hash");$(this,"_isIndexed");xt(this,{hash:t,_isIndexed:!0})}static isIndexed(t){return!!(t&&t._isIndexed)}}const Xg={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},t0={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:n=>`reverted with reason string ${JSON.stringify(n)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:n=>{let t="unknown panic code";return n>=0&&n<=255&&Xg[n.toString()]&&(t=Xg[n.toString()]),`reverted with panic code 0x${n.toString(16)} (${t})`}}},v_=class v_{constructor(t){rt(this,vi);$(this,"fragments");$(this,"deploy");$(this,"fallback");$(this,"receive");rt(this,Ei);rt(this,Pi);rt(this,zi);rt(this,Be);let e=[];typeof t=="string"?e=JSON.parse(t):e=t,K(this,zi,new Map),K(this,Ei,new Map),K(this,Pi,new Map);const r=[];for(const a of e)try{r.push(Ys.from(a))}catch(c){console.log(`[Warning] Invalid Fragment ${JSON.stringify(a)}:`,c.message)}xt(this,{fragments:Object.freeze(r)});let s=null,_=!1;K(this,Be,this.getAbiCoder()),this.fragments.forEach((a,c)=>{let u;switch(a.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}xt(this,{deploy:a});return;case"fallback":a.inputs.length===0?_=!0:(W(!s||a.payable!==s.payable,"conflicting fallback fragments",`fragments[${c}]`,a),s=a,_=s.payable);return;case"function":u=m(this,zi);break;case"event":u=m(this,Pi);break;case"error":u=m(this,Ei);break;default:return}const l=a.format();u.has(l)||u.set(l,a)}),this.deploy||xt(this,{deploy:Fi.from("constructor()")}),xt(this,{fallback:s,receive:_})}format(t){const e=t?"minimal":"full";return this.fragments.map(s=>s.format(e))}formatJson(){const t=this.fragments.map(e=>e.format("json"));return JSON.stringify(t.map(e=>JSON.parse(e)))}getAbiCoder(){return X_.defaultAbiCoder()}getFunctionName(t){const e=mt(this,vi,Zf).call(this,t,null,!1);return W(e,"no matching function","key",t),e.name}hasFunction(t){return!!mt(this,vi,Zf).call(this,t,null,!1)}getFunction(t,e){return mt(this,vi,Zf).call(this,t,e||null,!0)}forEachFunction(t){const e=Array.from(m(this,zi).keys());e.sort((r,s)=>r.localeCompare(s));for(let r=0;r<e.length;r++){const s=e[r];t(m(this,zi).get(s),r)}}getEventName(t){const e=mt(this,vi,Xf).call(this,t,null,!1);return W(e,"no matching event","key",t),e.name}hasEvent(t){return!!mt(this,vi,Xf).call(this,t,null,!1)}getEvent(t,e){return mt(this,vi,Xf).call(this,t,e||null,!0)}forEachEvent(t){const e=Array.from(m(this,Pi).keys());e.sort((r,s)=>r.localeCompare(s));for(let r=0;r<e.length;r++){const s=e[r];t(m(this,Pi).get(s),r)}}getError(t,e){if(ee(t)){const s=t.toLowerCase();if(t0[s])return Le.from(t0[s].signature);for(const _ of m(this,Ei).values())if(s===_.selector)return _;return null}if(t.indexOf("(")===-1){const s=[];for(const[_,a]of m(this,Ei))_.split("(")[0]===t&&s.push(a);if(s.length===0)return t==="Error"?Le.from("error Error(string)"):t==="Panic"?Le.from("error Panic(uint256)"):null;if(s.length>1){const _=s.map(a=>JSON.stringify(a.format())).join(", ");W(!1,`ambiguous error description (i.e. ${_})`,"name",t)}return s[0]}if(t=Le.from(t).format(),t==="Error(string)")return Le.from("error Error(string)");if(t==="Panic(uint256)")return Le.from("error Panic(uint256)");const r=m(this,Ei).get(t);return r||null}forEachError(t){const e=Array.from(m(this,Ei).keys());e.sort((r,s)=>r.localeCompare(s));for(let r=0;r<e.length;r++){const s=e[r];t(m(this,Ei).get(s),r)}}_decodeParams(t,e){return m(this,Be).decode(t,e)}_encodeParams(t,e){return m(this,Be).encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){if(typeof t=="string"){const r=this.getError(t);W(r,"unknown error","fragment",t),t=r}return W(fe(e,0,4)===t.selector,`data signature does not match error ${t.name}.`,"data",e),this._decodeParams(t.inputs,fe(e,4))}encodeErrorResult(t,e){if(typeof t=="string"){const r=this.getError(t);W(r,"unknown error","fragment",t),t=r}return le([t.selector,this._encodeParams(t.inputs,e||[])])}decodeFunctionData(t,e){if(typeof t=="string"){const r=this.getFunction(t);W(r,"unknown function","fragment",t),t=r}return W(fe(e,0,4)===t.selector,`data signature does not match function ${t.name}.`,"data",e),this._decodeParams(t.inputs,fe(e,4))}encodeFunctionData(t,e){if(typeof t=="string"){const r=this.getFunction(t);W(r,"unknown function","fragment",t),t=r}return le([t.selector,this._encodeParams(t.inputs,e||[])])}decodeFunctionResult(t,e){if(typeof t=="string"){const _=this.getFunction(t);W(_,"unknown function","fragment",t),t=_}let r="invalid length for result data";const s=Ne(e);if(s.length%32===0)try{return m(this,Be).decode(t.outputs,s)}catch{r="could not decode result data"}ht(!1,r,"BAD_DATA",{value:Et(s),info:{method:t.name,signature:t.format()}})}makeError(t,e){const r=qt(t,"data"),s=X_.getBuiltinCallException("call",e,r);if(s.message.startsWith("execution reverted (unknown custom error)")){const c=Et(r.slice(0,4)),u=this.getError(c);if(u)try{const l=m(this,Be).decode(u.inputs,r.slice(4));s.revert={name:u.name,signature:u.format(),args:l},s.reason=s.revert.signature,s.message=`execution reverted: ${s.reason}`}catch{s.message="execution reverted (coult not decode custom error)"}}const a=this.parseTransaction(e);return a&&(s.invocation={method:a.name,signature:a.signature,args:a.args}),s}encodeFunctionResult(t,e){if(typeof t=="string"){const r=this.getFunction(t);W(r,"unknown function","fragment",t),t=r}return Et(m(this,Be).encode(t.outputs,e||[]))}encodeFilterTopics(t,e){if(typeof t=="string"){const _=this.getEvent(t);W(_,"unknown event","eventFragment",t),t=_}ht(e.length<=t.inputs.length,`too many arguments for ${t.format()}`,"UNEXPECTED_ARGUMENT",{count:e.length,expectedCount:t.inputs.length});const r=[];t.anonymous||r.push(t.topicHash);const s=(_,a)=>_.type==="string"?Ks(a):_.type==="bytes"?be(Et(a)):(_.type==="bool"&&typeof a=="boolean"?a=a?"0x01":"0x00":_.type.match(/^u?int/)?a=rs(a):_.type.match(/^bytes/)?a=Hm(a,32):_.type==="address"&&m(this,Be).encode(["address"],[a]),Os(Et(a),32));for(e.forEach((_,a)=>{const c=t.inputs[a];if(!c.indexed){W(_==null,"cannot filter non-indexed parameters; must be null","contract."+c.name,_);return}_==null?r.push(null):c.baseType==="array"||c.baseType==="tuple"?W(!1,"filtering with tuples or arrays not supported","contract."+c.name,_):Array.isArray(_)?r.push(_.map(u=>s(c,u))):r.push(s(c,_))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(t,e){if(typeof t=="string"){const a=this.getEvent(t);W(a,"unknown event","eventFragment",t),t=a}const r=[],s=[],_=[];return t.anonymous||r.push(t.topicHash),W(e.length===t.inputs.length,"event arguments/values mismatch","values",e),t.inputs.forEach((a,c)=>{const u=e[c];if(a.indexed)if(a.type==="string")r.push(Ks(u));else if(a.type==="bytes")r.push(be(u));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");r.push(m(this,Be).encode([a.type],[u]))}else s.push(a),_.push(u)}),{data:m(this,Be).encode(s,_),topics:r}}decodeEventLog(t,e,r){if(typeof t=="string"){const M=this.getEvent(t);W(M,"unknown event","eventFragment",t),t=M}if(r!=null&&!t.anonymous){const M=t.topicHash;W(ee(r[0],32)&&r[0].toLowerCase()===M,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const s=[],_=[],a=[];t.inputs.forEach((M,B)=>{M.indexed?M.type==="string"||M.type==="bytes"||M.baseType==="tuple"||M.baseType==="array"?(s.push(Pe.from({type:"bytes32",name:M.name})),a.push(!0)):(s.push(M),a.push(!1)):(_.push(M),a.push(!1))});const c=r!=null?m(this,Be).decode(s,le(r)):null,u=m(this,Be).decode(_,e,!0),l=[],f=[];let w=0,y=0;return t.inputs.forEach((M,B)=>{let I=null;if(M.indexed)if(c==null)I=new Zg(null);else if(a[B])I=new Zg(c[y++]);else try{I=c[y++]}catch(G){I=G}else try{I=u[w++]}catch(G){I=G}l.push(I),f.push(M.name||null)}),L_.fromItems(l,f)}parseTransaction(t){const e=qt(t.data,"tx.data"),r=zt(t.value!=null?t.value:0,"tx.value"),s=this.getFunction(Et(e.slice(0,4)));if(!s)return null;const _=m(this,Be).decode(s.inputs,e.slice(4));return new cP(s,s.selector,_,r)}parseCallResult(t){throw new Error("@TODO")}parseLog(t){const e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new aP(e,e.topicHash,this.decodeEventLog(e,t.data,t.topics))}parseError(t){const e=Et(t),r=this.getError(fe(e,0,4));if(!r)return null;const s=m(this,Be).decode(r.inputs,fe(e,4));return new uP(r,r.selector,s)}static from(t){return t instanceof v_?t:typeof t=="string"?new v_(JSON.parse(t)):typeof t.formatJson=="function"?new v_(t.formatJson()):typeof t.format=="function"?new v_(t.format("json")):new v_(t)}};Ei=new WeakMap,Pi=new WeakMap,zi=new WeakMap,Be=new WeakMap,vi=new WeakSet,Zf=function(t,e,r){if(ee(t)){const _=t.toLowerCase();for(const a of m(this,zi).values())if(_===a.selector)return a;return null}if(t.indexOf("(")===-1){const _=[];for(const[a,c]of m(this,zi))a.split("(")[0]===t&&_.push(c);if(e){const a=e.length>0?e[e.length-1]:null;let c=e.length,u=!0;Me.isTyped(a)&&a.type==="overrides"&&(u=!1,c--);for(let l=_.length-1;l>=0;l--){const f=_[l].inputs.length;f!==c&&(!u||f!==c-1)&&_.splice(l,1)}for(let l=_.length-1;l>=0;l--){const f=_[l].inputs;for(let w=0;w<e.length;w++)if(Me.isTyped(e[w])){if(w>=f.length){if(e[w].type==="overrides")continue;_.splice(l,1);break}if(e[w].type!==f[w].baseType){_.splice(l,1);break}}}}if(_.length===1&&e&&e.length!==_[0].inputs.length){const a=e[e.length-1];(a==null||Array.isArray(a)||typeof a!="object")&&_.splice(0,1)}if(_.length===0)return null;if(_.length>1&&r){const a=_.map(c=>JSON.stringify(c.format())).join(", ");W(!1,`ambiguous function description (i.e. matches ${a})`,"key",t)}return _[0]}const s=m(this,zi).get(Gr.from(t).format());return s||null},Xf=function(t,e,r){if(ee(t)){const _=t.toLowerCase();for(const a of m(this,Pi).values())if(_===a.topicHash)return a;return null}if(t.indexOf("(")===-1){const _=[];for(const[a,c]of m(this,Pi))a.split("(")[0]===t&&_.push(c);if(e){for(let a=_.length-1;a>=0;a--)_[a].inputs.length<e.length&&_.splice(a,1);for(let a=_.length-1;a>=0;a--){const c=_[a].inputs;for(let u=0;u<e.length;u++)if(Me.isTyped(e[u])&&e[u].type!==c[u].baseType){_.splice(a,1);break}}}if(_.length===0)return null;if(_.length>1&&r){const a=_.map(c=>JSON.stringify(c.format())).join(", ");W(!1,`ambiguous event description (i.e. matches ${a})`,"key",t)}return _[0]}const s=m(this,Pi).get(Tr.from(t).format());return s||null};let Jl=v_;const e0=BigInt(0);function to(n){return n??null}function we(n){return n==null?null:n.toString()}class r0{constructor(t,e,r){$(this,"gasPrice");$(this,"maxFeePerGas");$(this,"maxPriorityFeePerGas");xt(this,{gasPrice:to(t),maxFeePerGas:to(e),maxPriorityFeePerGas:to(r)})}toJSON(){const{gasPrice:t,maxFeePerGas:e,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:we(t),maxFeePerGas:we(e),maxPriorityFeePerGas:we(r)}}}function wf(n){const t={};n.to&&(t.to=n.to),n.from&&(t.from=n.from),n.data&&(t.data=Et(n.data));const e="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of e)!(s in n)||n[s]==null||(t[s]=zt(n[s],`request.${s}`));const r="type,nonce".split(/,/);for(const s of r)!(s in n)||n[s]==null||(t[s]=Kt(n[s],`request.${s}`));return n.accessList&&(t.accessList=js(n.accessList)),"blockTag"in n&&(t.blockTag=n.blockTag),"enableCcipRead"in n&&(t.enableCcipRead=!!n.enableCcipRead),"customData"in n&&(t.customData=n.customData),"blobVersionedHashes"in n&&n.blobVersionedHashes&&(t.blobVersionedHashes=n.blobVersionedHashes.slice()),"kzg"in n&&(t.kzg=n.kzg),"blobs"in n&&n.blobs&&(t.blobs=n.blobs.map(s=>sl(s)?Et(s):Object.assign({},s))),t}class fP{constructor(t,e){$(this,"provider");$(this,"number");$(this,"hash");$(this,"timestamp");$(this,"parentHash");$(this,"parentBeaconBlockRoot");$(this,"nonce");$(this,"difficulty");$(this,"gasLimit");$(this,"gasUsed");$(this,"stateRoot");$(this,"receiptsRoot");$(this,"blobGasUsed");$(this,"excessBlobGas");$(this,"miner");$(this,"prevRandao");$(this,"extraData");$(this,"baseFeePerGas");rt(this,Ji);K(this,Ji,t.transactions.map(r=>typeof r!="string"?new iu(r,e):r)),xt(this,{provider:e,hash:to(t.hash),number:t.number,timestamp:t.timestamp,parentHash:t.parentHash,parentBeaconBlockRoot:t.parentBeaconBlockRoot,nonce:t.nonce,difficulty:t.difficulty,gasLimit:t.gasLimit,gasUsed:t.gasUsed,blobGasUsed:t.blobGasUsed,excessBlobGas:t.excessBlobGas,miner:t.miner,prevRandao:to(t.prevRandao),extraData:t.extraData,baseFeePerGas:to(t.baseFeePerGas),stateRoot:t.stateRoot,receiptsRoot:t.receiptsRoot})}get transactions(){return m(this,Ji).map(t=>typeof t=="string"?t:t.hash)}get prefetchedTransactions(){const t=m(this,Ji).slice();return t.length===0?[]:(ht(typeof t[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),t)}toJSON(){const{baseFeePerGas:t,difficulty:e,extraData:r,gasLimit:s,gasUsed:_,hash:a,miner:c,prevRandao:u,nonce:l,number:f,parentHash:w,parentBeaconBlockRoot:y,stateRoot:M,receiptsRoot:B,timestamp:I,transactions:G}=this;return{_type:"Block",baseFeePerGas:we(t),difficulty:we(e),extraData:r,gasLimit:we(s),gasUsed:we(_),blobGasUsed:we(this.blobGasUsed),excessBlobGas:we(this.excessBlobGas),hash:a,miner:c,prevRandao:u,nonce:l,number:f,parentHash:w,timestamp:I,parentBeaconBlockRoot:y,stateRoot:M,receiptsRoot:B,transactions:G}}[Symbol.iterator](){let t=0;const e=this.transactions;return{next:()=>t<this.length?{value:e[t++],done:!1}:{value:void 0,done:!0}}}get length(){return m(this,Ji).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(t){let e;if(typeof t=="number")e=m(this,Ji)[t];else{const r=t.toLowerCase();for(const s of m(this,Ji))if(typeof s=="string"){if(s!==r)continue;e=s;break}else{if(s.hash===r)continue;e=s;break}}if(e==null)throw new Error("no such tx");return typeof e=="string"?await this.provider.getTransaction(e):e}getPrefetchedTransaction(t){const e=this.prefetchedTransactions;if(typeof t=="number")return e[t];t=t.toLowerCase();for(const r of e)if(r.hash===t)return r;W(!1,"no matching transaction","indexOrHash",t)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return lP(this)}}Ji=new WeakMap;class nu{constructor(t,e){$(this,"provider");$(this,"transactionHash");$(this,"blockHash");$(this,"blockNumber");$(this,"removed");$(this,"address");$(this,"data");$(this,"topics");$(this,"index");$(this,"transactionIndex");this.provider=e;const r=Object.freeze(t.topics.slice());xt(this,{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,removed:t.removed,address:t.address,data:t.data,topics:r,index:t.index,transactionIndex:t.transactionIndex})}toJSON(){const{address:t,blockHash:e,blockNumber:r,data:s,index:_,removed:a,topics:c,transactionHash:u,transactionIndex:l}=this;return{_type:"log",address:t,blockHash:e,blockNumber:r,data:s,index:_,removed:a,topics:c,transactionHash:u,transactionIndex:l}}async getBlock(){const t=await this.provider.getBlock(this.blockHash);return ht(!!t,"failed to find transaction","UNKNOWN_ERROR",{}),t}async getTransaction(){const t=await this.provider.getTransaction(this.transactionHash);return ht(!!t,"failed to find transaction","UNKNOWN_ERROR",{}),t}async getTransactionReceipt(){const t=await this.provider.getTransactionReceipt(this.transactionHash);return ht(!!t,"failed to find transaction receipt","UNKNOWN_ERROR",{}),t}removedEvent(){return pP(this)}}class n0{constructor(t,e){$(this,"provider");$(this,"to");$(this,"from");$(this,"contractAddress");$(this,"hash");$(this,"index");$(this,"blockHash");$(this,"blockNumber");$(this,"logsBloom");$(this,"gasUsed");$(this,"blobGasUsed");$(this,"cumulativeGasUsed");$(this,"gasPrice");$(this,"blobGasPrice");$(this,"type");$(this,"status");$(this,"root");rt(this,vu);K(this,vu,Object.freeze(t.logs.map(s=>new nu(s,e))));let r=e0;t.effectiveGasPrice!=null?r=t.effectiveGasPrice:t.gasPrice!=null&&(r=t.gasPrice),xt(this,{provider:e,to:t.to,from:t.from,contractAddress:t.contractAddress,hash:t.hash,index:t.index,blockHash:t.blockHash,blockNumber:t.blockNumber,logsBloom:t.logsBloom,gasUsed:t.gasUsed,cumulativeGasUsed:t.cumulativeGasUsed,blobGasUsed:t.blobGasUsed,gasPrice:r,blobGasPrice:t.blobGasPrice,type:t.type,status:t.status,root:t.root})}get logs(){return m(this,vu)}toJSON(){const{to:t,from:e,contractAddress:r,hash:s,index:_,blockHash:a,blockNumber:c,logsBloom:u,logs:l,status:f,root:w}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:c,contractAddress:r,cumulativeGasUsed:we(this.cumulativeGasUsed),from:e,gasPrice:we(this.gasPrice),blobGasUsed:we(this.blobGasUsed),blobGasPrice:we(this.blobGasPrice),gasUsed:we(this.gasUsed),hash:s,index:_,logs:l,logsBloom:u,root:w,status:f,to:t}}get length(){return this.logs.length}[Symbol.iterator](){let t=0;return{next:()=>t<this.length?{value:this.logs[t++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const t=await this.provider.getBlock(this.blockHash);if(t==null)throw new Error("TODO");return t}async getTransaction(){const t=await this.provider.getTransaction(this.hash);if(t==null)throw new Error("TODO");return t}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return s0(this)}reorderedEvent(t){return ht(!t||t.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),i0(this,t)}}vu=new WeakMap;const Xh=class Xh{constructor(t,e){$(this,"provider");$(this,"blockNumber");$(this,"blockHash");$(this,"index");$(this,"hash");$(this,"type");$(this,"to");$(this,"from");$(this,"nonce");$(this,"gasLimit");$(this,"gasPrice");$(this,"maxPriorityFeePerGas");$(this,"maxFeePerGas");$(this,"maxFeePerBlobGas");$(this,"data");$(this,"value");$(this,"chainId");$(this,"signature");$(this,"accessList");$(this,"blobVersionedHashes");rt(this,As);this.provider=e,this.blockNumber=t.blockNumber!=null?t.blockNumber:null,this.blockHash=t.blockHash!=null?t.blockHash:null,this.hash=t.hash,this.index=t.index,this.type=t.type,this.from=t.from,this.to=t.to||null,this.gasLimit=t.gasLimit,this.nonce=t.nonce,this.data=t.data,this.value=t.value,this.gasPrice=t.gasPrice,this.maxPriorityFeePerGas=t.maxPriorityFeePerGas!=null?t.maxPriorityFeePerGas:null,this.maxFeePerGas=t.maxFeePerGas!=null?t.maxFeePerGas:null,this.maxFeePerBlobGas=t.maxFeePerBlobGas!=null?t.maxFeePerBlobGas:null,this.chainId=t.chainId,this.signature=t.signature,this.accessList=t.accessList!=null?t.accessList:null,this.blobVersionedHashes=t.blobVersionedHashes!=null?t.blobVersionedHashes:null,K(this,As,-1)}toJSON(){const{blockNumber:t,blockHash:e,index:r,hash:s,type:_,to:a,from:c,nonce:u,data:l,signature:f,accessList:w,blobVersionedHashes:y}=this;return{_type:"TransactionResponse",accessList:w,blockNumber:t,blockHash:e,blobVersionedHashes:y,chainId:we(this.chainId),data:l,from:c,gasLimit:we(this.gasLimit),gasPrice:we(this.gasPrice),hash:s,maxFeePerGas:we(this.maxFeePerGas),maxPriorityFeePerGas:we(this.maxPriorityFeePerGas),maxFeePerBlobGas:we(this.maxFeePerBlobGas),nonce:u,signature:f,to:a,index:r,type:_,value:we(this.value)}}async getBlock(){let t=this.blockNumber;if(t==null){const r=await this.getTransaction();r&&(t=r.blockNumber)}if(t==null)return null;const e=this.provider.getBlock(t);if(e==null)throw new Error("TODO");return e}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:e,blockNumber:r}=await Ie({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return e==null||e.blockNumber==null?0:r-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(t,e){const r=t??1,s=e??0;let _=m(this,As),a=-1,c=_===-1;const u=async()=>{if(c)return null;const{blockNumber:y,nonce:M}=await Ie({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(M<this.nonce){_=y;return}if(c)return null;const B=await this.getTransaction();if(!(B&&B.blockNumber!=null))for(a===-1&&(a=_-3,a<m(this,As)&&(a=m(this,As)));a<=y;){if(c)return null;const I=await this.provider.getBlock(a,!0);if(I==null)return;for(const G of I)if(G===this.hash)return;for(let G=0;G<I.length;G++){const P=await I.getTransaction(G);if(P.from===this.from&&P.nonce===this.nonce){if(c)return null;const v=await this.provider.getTransactionReceipt(P.hash);if(v==null||y-v.blockNumber+1<r)return;let N="replaced";P.data===this.data&&P.to===this.to&&P.value===this.value?N="repriced":P.data==="0x"&&P.from===P.to&&P.value===e0&&(N="cancelled"),ht(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:N==="replaced"||N==="cancelled",reason:N,replacement:P.replaceableTransaction(_),hash:P.hash,receipt:v})}}a++}},l=y=>{if(y==null||y.status!==0)return y;ht(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:y.to,from:y.from,data:""},receipt:y})},f=await this.provider.getTransactionReceipt(this.hash);if(r===0)return l(f);if(f){if(await f.confirmations()>=r)return l(f)}else if(await u(),r===0)return null;return await new Promise((y,M)=>{const B=[],I=()=>{B.forEach(P=>P())};if(B.push(()=>{c=!0}),s>0){const P=setTimeout(()=>{I(),M(ue("wait for transaction timeout","TIMEOUT"))},s);B.push(()=>{clearTimeout(P)})}const G=async P=>{if(await P.confirmations()>=r){I();try{y(l(P))}catch(v){M(v)}}};if(B.push(()=>{this.provider.off(this.hash,G)}),this.provider.on(this.hash,G),_>=0){const P=async()=>{try{await u()}catch(v){if(Ee(v,"TRANSACTION_REPLACED")){I(),M(v);return}}c||this.provider.once("block",P)};B.push(()=>{this.provider.off("block",P)}),this.provider.once("block",P)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return ht(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),s0(this)}reorderedEvent(t){return ht(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),ht(!t||t.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),i0(this,t)}replaceableTransaction(t){W(Number.isInteger(t)&&t>=0,"invalid startBlock","startBlock",t);const e=new Xh(this,this.provider);return K(e,As,t),e}};As=new WeakMap;let iu=Xh;function lP(n){return{orphan:"drop-block",hash:n.hash,number:n.number}}function i0(n,t){return{orphan:"reorder-transaction",tx:n,other:t}}function s0(n){return{orphan:"drop-transaction",tx:n}}function pP(n){return{orphan:"drop-log",log:{transactionHash:n.transactionHash,blockHash:n.blockHash,blockNumber:n.blockNumber,address:n.address,data:n.data,topics:Object.freeze(n.topics.slice()),index:n.index}}}class $l extends nu{constructor(e,r,s){super(e,e.provider);$(this,"interface");$(this,"fragment");$(this,"args");const _=r.decodeEventLog(s,e.data,e.topics);xt(this,{args:_,fragment:s,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class _0 extends nu{constructor(e,r){super(e,e.provider);$(this,"error");xt(this,{error:r})}}class hP extends n0{constructor(e,r,s){super(s,r);rt(this,Sc);K(this,Sc,e)}get logs(){return super.logs.map(e=>{const r=e.topics.length?m(this,Sc).getEvent(e.topics[0]):null;if(r)try{return new $l(e,m(this,Sc),r)}catch(s){return new _0(e,s)}return e})}}Sc=new WeakMap;class Zl extends iu{constructor(e,r,s){super(s,r);rt(this,Mu);K(this,Mu,e)}async wait(e,r){const s=await super.wait(e,r);return s==null?null:new hP(m(this,Mu),this.provider,s)}}Mu=new WeakMap;class o0 extends Gw{constructor(e,r,s,_){super(e,r,s);$(this,"log");xt(this,{log:_})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class wP extends o0{constructor(t,e,r,s,_){super(t,e,r,new $l(_,t.interface,s));const a=t.interface.decodeEventLog(s,this.log.data,this.log.topics);xt(this,{args:a,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const a0=BigInt(0);function c0(n){return n&&typeof n.call=="function"}function u0(n){return n&&typeof n.estimateGas=="function"}function df(n){return n&&typeof n.resolveName=="function"}function f0(n){return n&&typeof n.sendTransaction=="function"}function l0(n){if(n!=null){if(df(n))return n;if(n.provider)return n.provider}}class dP{constructor(t,e,r){rt(this,Bu);$(this,"fragment");if(xt(this,{fragment:e}),e.inputs.length<r.length)throw new Error("too many arguments");const s=qs(t.runner,"resolveName"),_=df(s)?s:null;K(this,Bu,async function(){const a=await Promise.all(e.inputs.map((c,u)=>r[u]==null?null:c.walkAsync(r[u],(f,w)=>f==="address"?Array.isArray(w)?Promise.all(w.map(y=>Te(y,_))):Te(w,_):w)));return t.interface.encodeFilterTopics(e,a)}())}getTopicFilter(){return m(this,Bu)}}Bu=new WeakMap;function qs(n,t){return n==null?null:typeof n[t]=="function"?n:n.provider&&typeof n.provider[t]=="function"?n.provider:null}function Qs(n){return n==null?null:n.provider||null}async function p0(n,t){const e=Me.dereference(n,"overrides");W(typeof e=="object","invalid overrides parameter","overrides",n);const r=wf(e);return W(r.to==null||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),W(r.data==null||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function gP(n,t,e){const r=qs(n,"resolveName"),s=df(r)?r:null;return await Promise.all(t.map((_,a)=>_.walkAsync(e[a],(c,u)=>(u=Me.dereference(u,c),c==="address"?Te(u,s):u))))}function bP(n){const t=async function(a){const c=await p0(a,["data"]);c.to=await n.getAddress(),c.from&&(c.from=await Te(c.from,l0(n.runner)));const u=n.interface,l=zt(c.value||a0,"overrides.value")===a0,f=(c.data||"0x")==="0x";u.fallback&&!u.fallback.payable&&u.receive&&!f&&!l&&W(!1,"cannot send data to receive or send value to non-payable fallback","overrides",a),W(u.fallback||f,"cannot send data to receive-only contract","overrides.data",c.data);const w=u.receive||u.fallback&&u.fallback.payable;return W(w||l,"cannot send value to non-payable fallback","overrides.value",c.value),W(u.fallback||f,"cannot send data to receive-only contract","overrides.data",c.data),c},e=async function(a){const c=qs(n.runner,"call");ht(c0(c),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const u=await t(a);try{return await c.call(u)}catch(l){throw il(l)&&l.data?n.interface.makeError(l.data,u):l}},r=async function(a){const c=n.runner;ht(f0(c),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const u=await c.sendTransaction(await t(a)),l=Qs(n.runner);return new Zl(n.interface,l,u)},s=async function(a){const c=qs(n.runner,"estimateGas");return ht(u0(c),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await c.estimateGas(await t(a))},_=async a=>await r(a);return xt(_,{_contract:n,estimateGas:s,populateTransaction:t,send:r,staticCall:e}),_}function yP(n,t){const e=function(...l){const f=n.interface.getFunction(t,l);return ht(f,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:l}}),f},r=async function(...l){const f=e(...l);let w={};if(f.inputs.length+1===l.length&&(w=await p0(l.pop()),w.from&&(w.from=await Te(w.from,l0(n.runner)))),f.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const y=await gP(n.runner,f.inputs,l);return Object.assign({},w,await Ie({to:n.getAddress(),data:n.interface.encodeFunctionData(f,y)}))},s=async function(...l){const f=await c(...l);return f.length===1?f[0]:f},_=async function(...l){const f=n.runner;ht(f0(f),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const w=await f.sendTransaction(await r(...l)),y=Qs(n.runner);return new Zl(n.interface,y,w)},a=async function(...l){const f=qs(n.runner,"estimateGas");return ht(u0(f),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await f.estimateGas(await r(...l))},c=async function(...l){const f=qs(n.runner,"call");ht(c0(f),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const w=await r(...l);let y="0x";try{y=await f.call(w)}catch(B){throw il(B)&&B.data?n.interface.makeError(B.data,w):B}const M=e(...l);return n.interface.decodeFunctionResult(M,y)},u=async(...l)=>e(...l).constant?await s(...l):await _(...l);return xt(u,{name:n.interface.getFunctionName(t),_contract:n,_key:t,getFragment:e,estimateGas:a,populateTransaction:r,send:_,staticCall:s,staticCallResult:c}),Object.defineProperty(u,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=n.interface.getFunction(t);return ht(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),l}}),u}function AP(n,t){const e=function(...s){const _=n.interface.getEvent(t,s);return ht(_,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:s}}),_},r=function(...s){return new dP(n,e(...s),s)};return xt(r,{name:n.interface.getEventName(t),_contract:n,_key:t,getFragment:e}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=n.interface.getEvent(t);return ht(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),s}}),r}const gf=Symbol.for("_ethersInternal_contract"),h0=new WeakMap;function mP(n,t){h0.set(n[gf],t)}function We(n){return h0.get(n[gf])}function SP(n){return n&&typeof n=="object"&&"getTopicFilter"in n&&typeof n.getTopicFilter=="function"&&n.fragment}async function Xl(n,t){let e,r=null;if(Array.isArray(t)){const _=function(a){if(ee(a,32))return a;const c=n.interface.getEvent(a);return W(c,"unknown fragment","name",a),c.topicHash};e=t.map(a=>a==null?null:Array.isArray(a)?a.map(_):_(a))}else t==="*"?e=[null]:typeof t=="string"?ee(t,32)?e=[t]:(r=n.interface.getEvent(t),W(r,"unknown fragment","event",t),e=[r.topicHash]):SP(t)?e=await t.getTopicFilter():"fragment"in t?(r=t.fragment,e=[r.topicHash]):W(!1,"unknown event name","event",t);e=e.map(_=>{if(_==null)return null;if(Array.isArray(_)){const a=Array.from(new Set(_.map(c=>c.toLowerCase())).values());return a.length===1?a[0]:(a.sort(),a)}return _.toLowerCase()});const s=e.map(_=>_==null?"null":Array.isArray(_)?_.join("|"):_).join("&");return{fragment:r,tag:s,topics:e}}async function su(n,t){const{subs:e}=We(n);return e.get((await Xl(n,t)).tag)||null}async function w0(n,t,e){const r=Qs(n.runner);ht(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:s,tag:_,topics:a}=await Xl(n,e),{addr:c,subs:u}=We(n);let l=u.get(_);if(!l){const w={address:c||n,topics:a},y=G=>{let P=s;if(P==null)try{P=n.interface.getEvent(G.topics[0])}catch{}if(P){const v=P,N=s?n.interface.decodeEventLog(s,G.data,G.topics):[];ep(n,e,N,C=>new wP(n,C,e,v,G))}else ep(n,e,[],v=>new o0(n,v,e,G))};let M=[];l={tag:_,listeners:[],start:()=>{M.length||M.push(r.on(w,y))},stop:async()=>{if(M.length==0)return;let G=M;M=[],await Promise.all(G),r.off(w,y)}},u.set(_,l)}return l}let tp=Promise.resolve();async function RP(n,t,e,r){await tp;const s=await su(n,t);if(!s)return!1;const _=s.listeners.length;return s.listeners=s.listeners.filter(({listener:a,once:c})=>{const u=Array.from(e);r&&u.push(r(c?null:a));try{a.call(n,...u)}catch{}return!c}),s.listeners.length===0&&(s.stop(),We(n).subs.delete(s.tag)),_>0}async function ep(n,t,e,r){try{await tp}catch{}const s=RP(n,t,e,r);return tp=s,await s}const bf=["then"];Mm=gf;const xu=class xu{constructor(t,e,r,s){$(this,"target");$(this,"interface");$(this,"runner");$(this,"filters");$(this,Mm);$(this,"fallback");W(typeof t=="string"||qd(t),"invalid value for Contract target","target",t),r==null&&(r=null);const _=Jl.from(e);xt(this,{target:t,runner:r,interface:_}),Object.defineProperty(this,gf,{value:{}});let a,c=null,u=null;if(s){const w=Qs(r);u=new Zl(this.interface,w,s)}let l=new Map;if(typeof t=="string")if(ee(t))c=t,a=Promise.resolve(t);else{const w=qs(r,"resolveName");if(!df(w))throw ue("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=w.resolveName(t).then(y=>{if(y==null)throw ue("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:t});return We(this).addr=y,y})}else a=t.getAddress().then(w=>{if(w==null)throw new Error("TODO");return We(this).addr=w,w});mP(this,{addrPromise:a,addr:c,deployTx:u,subs:l});const f=new Proxy({},{get:(w,y,M)=>{if(typeof y=="symbol"||bf.indexOf(y)>=0)return Reflect.get(w,y,M);try{return this.getEvent(y)}catch(B){if(!Ee(B,"INVALID_ARGUMENT")||B.argument!=="key")throw B}},has:(w,y)=>bf.indexOf(y)>=0?Reflect.has(w,y):Reflect.has(w,y)||this.interface.hasEvent(String(y))});return xt(this,{filters:f}),xt(this,{fallback:_.receive||_.fallback?bP(this):null}),new Proxy(this,{get:(w,y,M)=>{if(typeof y=="symbol"||y in w||bf.indexOf(y)>=0)return Reflect.get(w,y,M);try{return w.getFunction(y)}catch(B){if(!Ee(B,"INVALID_ARGUMENT")||B.argument!=="key")throw B}},has:(w,y)=>typeof y=="symbol"||y in w||bf.indexOf(y)>=0?Reflect.has(w,y):w.interface.hasFunction(y)})}connect(t){return new xu(this.target,this.interface,t)}attach(t){return new xu(t,this.interface,this.runner)}async getAddress(){return await We(this).addrPromise}async getDeployedCode(){const t=Qs(this.runner);ht(t,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const e=await t.getCode(await this.getAddress());return e==="0x"?null:e}async waitForDeployment(){const t=this.deploymentTransaction();if(t)return await t.wait(),this;if(await this.getDeployedCode()!=null)return this;const r=Qs(this.runner);return ht(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,_)=>{const a=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);r.once("block",a)}catch(c){_(c)}};a()})}deploymentTransaction(){return We(this).deployTx}getFunction(t){return typeof t!="string"&&(t=t.format()),yP(this,t)}getEvent(t){return typeof t!="string"&&(t=t.format()),AP(this,t)}async queryTransaction(t){throw new Error("@TODO")}async queryFilter(t,e,r){e==null&&(e=0),r==null&&(r="latest");const{addr:s,addrPromise:_}=We(this),a=s||await _,{fragment:c,topics:u}=await Xl(this,t),l={address:a,topics:u,fromBlock:e,toBlock:r},f=Qs(this.runner);return ht(f,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await f.getLogs(l)).map(w=>{let y=c;if(y==null)try{y=this.interface.getEvent(w.topics[0])}catch{}if(y)try{return new $l(w,this.interface,y)}catch(M){return new _0(w,M)}return new nu(w,f)})}async on(t,e){const r=await w0(this,"on",t);return r.listeners.push({listener:e,once:!1}),r.start(),this}async once(t,e){const r=await w0(this,"once",t);return r.listeners.push({listener:e,once:!0}),r.start(),this}async emit(t,...e){return await ep(this,t,e,null)}async listenerCount(t){if(t){const s=await su(this,t);return s?s.listeners.length:0}const{subs:e}=We(this);let r=0;for(const{listeners:s}of e.values())r+=s.length;return r}async listeners(t){if(t){const s=await su(this,t);return s?s.listeners.map(({listener:_})=>_):[]}const{subs:e}=We(this);let r=[];for(const{listeners:s}of e.values())r=r.concat(s.map(({listener:_})=>_));return r}async off(t,e){const r=await su(this,t);if(!r)return this;if(e){const s=r.listeners.map(({listener:_})=>_).indexOf(e);s>=0&&r.listeners.splice(s,1)}return(e==null||r.listeners.length===0)&&(r.stop(),We(this).subs.delete(r.tag)),this}async removeAllListeners(t){if(t){const e=await su(this,t);if(!e)return this;e.stop(),We(this).subs.delete(e.tag)}else{const{subs:e}=We(this);for(const{tag:r,stop:s}of e.values())s(),e.delete(r)}return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return await this.off(t,e)}static buildClass(t){class e extends xu{constructor(s,_=null){super(s,t,_)}}return e}static from(t,e,r){return r==null&&(r=null),new this(t,e,r)}};let rp=xu;function EP(){return rp}class Pr extends EP(){}function np(n){return n.match(/^ipfs:\/\/ipfs\//i)?n=n.substring(12):n.match(/^ipfs:\/\//i)?n=n.substring(7):W(!1,"unsupported IPFS format","link",n),`https://gateway.ipfs.io/ipfs/${n}`}class PP{constructor(t){$(this,"name");xt(this,{name:t})}connect(t){return this}supportsCoinType(t){return!1}async encodeAddress(t,e){throw new Error("unsupported coin")}async decodeAddress(t,e){throw new Error("unsupported coin")}}const d0=new RegExp("^(ipfs)://(.*)$","i"),g0=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),d0,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")],Rc=class Rc{constructor(t,e,r){rt(this,Ss);$(this,"provider");$(this,"address");$(this,"name");rt(this,ms);rt(this,M_);xt(this,{provider:t,address:e,name:r}),K(this,ms,null),K(this,M_,new Pr(e,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],t))}async supportsWildcard(){return m(this,ms)==null&&K(this,ms,(async()=>{try{return await m(this,M_).supportsInterface("0x9061b923")}catch(t){if(Ee(t,"CALL_EXCEPTION"))return!1;throw K(this,ms,null),t}})()),await m(this,ms)}async getAddress(t){if(t==null&&(t=60),t===60)try{const _=await mt(this,Ss,Kc).call(this,"addr(bytes32)");return _==null||_===Hc?null:_}catch(_){if(Ee(_,"CALL_EXCEPTION"))return null;throw _}if(t>=0&&t<2147483648){let _=t+2147483648;const a=await mt(this,Ss,Kc).call(this,"addr(bytes32,uint)",[_]);if(ee(a,20))return Vt(a)}let e=null;for(const _ of this.provider.plugins)if(_ instanceof PP&&_.supportsCoinType(t)){e=_;break}if(e==null)return null;const r=await mt(this,Ss,Kc).call(this,"addr(bytes32,uint)",[t]);if(r==null||r==="0x")return null;const s=await e.decodeAddress(t,r);if(s!=null)return s;ht(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(t){const e=await mt(this,Ss,Kc).call(this,"text(bytes32,string)",[t]);return e==null||e==="0x"?null:e}async getContentHash(){const t=await mt(this,Ss,Kc).call(this,"contenthash(bytes32)");if(t==null||t==="0x")return null;const e=t.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const s=e[1]==="e3010170"?"ipfs":"ipns",_=parseInt(e[4],16);if(e[5].length===_*2)return`${s}://${Wm("0x"+e[2])}`}const r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&r[1].length===64)return`bzz://${r[1]}`;ht(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:t}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const t=[{type:"name",value:this.name}];try{const e=await this.getText("avatar");if(e==null)return t.push({type:"!avatar",value:""}),{url:null,linkage:t};t.push({type:"avatar",value:e});for(let r=0;r<g0.length;r++){const s=e.match(g0[r]);if(s==null)continue;const _=s[1].toLowerCase();switch(_){case"https":case"data":return t.push({type:"url",value:e}),{linkage:t,url:e};case"ipfs":{const a=np(e);return t.push({type:"ipfs",value:e}),t.push({type:"url",value:a}),{linkage:t,url:a}}case"erc721":case"erc1155":{const a=_==="erc721"?"tokenURI(uint256)":"uri(uint256)";t.push({type:_,value:e});const c=await this.getAddress();if(c==null)return t.push({type:"!owner",value:""}),{url:null,linkage:t};const u=(s[2]||"").split("/");if(u.length!==2)return t.push({type:`!${_}caip`,value:s[2]||""}),{url:null,linkage:t};const l=u[1],f=new Pr(u[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(_==="erc721"){const I=await f.ownerOf(l);if(c!==I)return t.push({type:"!owner",value:I}),{url:null,linkage:t};t.push({type:"owner",value:I})}else if(_==="erc1155"){const I=await f.balanceOf(c,l);if(!I)return t.push({type:"!balance",value:"0"}),{url:null,linkage:t};t.push({type:"balance",value:I.toString()})}let w=await f[a](l);if(w==null||w==="0x")return t.push({type:"!metadata-url",value:""}),{url:null,linkage:t};t.push({type:"metadata-url-base",value:w}),_==="erc1155"&&(w=w.replace("{id}",rs(l,32).substring(2)),t.push({type:"metadata-url-expanded",value:w})),w.match(/^ipfs:/i)&&(w=np(w)),t.push({type:"metadata-url",value:w});let y={};const M=await new Ii(w).send();M.assertOk();try{y=M.bodyJson}catch{try{t.push({type:"!metadata",value:M.bodyText})}catch{const P=M.body;return P&&t.push({type:"!metadata",value:Et(P)}),{url:null,linkage:t}}return{url:null,linkage:t}}if(!y)return t.push({type:"!metadata",value:""}),{url:null,linkage:t};t.push({type:"metadata",value:JSON.stringify(y)});let B=y.image;if(typeof B!="string")return t.push({type:"!imageUrl",value:""}),{url:null,linkage:t};if(!B.match(/^(https:\/\/|data:)/i)){if(B.match(d0)==null)return t.push({type:"!imageUrl-ipfs",value:B}),{url:null,linkage:t};t.push({type:"imageUrl-ipfs",value:B}),B=np(B)}return t.push({type:"url",value:B}),{linkage:t,url:B}}}}}catch{}return{linkage:t,url:null}}static async getEnsAddress(t){const e=await t.getNetwork(),r=e.getPlugin("org.ethers.plugins.network.Ens");return ht(r,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:e}}),r.address}static async fromName(t,e){var s;let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const _=await mt(s=Rc,Hf,Im).call(s,t,r);if(_!=null){const a=new Rc(t,_,e);return r!==e&&!await a.supportsWildcard()?null:a}r=r.split(".").slice(1).join(".")}}};ms=new WeakMap,M_=new WeakMap,Ss=new WeakSet,Kc=async function(t,e){e=(e||[]).slice();const r=m(this,M_).interface;e.unshift(Dl(this.name));let s=null;await this.supportsWildcard()&&(s=r.getFunction(t),ht(s,"missing fragment","UNKNOWN_ERROR",{info:{funcName:t}}),e=[vE(this.name,255),r.encodeFunctionData(s,e)],t="resolve(bytes,bytes)"),e.push({enableCcipRead:!0});try{const _=await m(this,M_)[t](...e);return s?r.decodeFunctionResult(s,_)[0]:_}catch(_){if(!Ee(_,"CALL_EXCEPTION"))throw _}return null},Hf=new WeakSet,Im=async function(t,e){const r=await Rc.getEnsAddress(t);try{const _=await new Pr(r,["function resolver(bytes32) view returns (address)"],t).resolver(Dl(e),{enableCcipRead:!0});return _===Hc?null:_}catch(s){throw s}return null},rt(Rc,Hf);let yf=Rc;const b0=BigInt(0);function Yt(n,t){return function(e){return e==null?t:n(e)}}function Af(n,t){return e=>{if(t&&e==null)return null;if(!Array.isArray(e))throw new Error("not an array");return e.map(r=>n(r))}}function _u(n,t){return e=>{const r={};for(const s in n){let _=s;if(t&&s in t&&!(_ in e)){for(const a of t[s])if(a in e){_=a;break}}try{const a=n[s](e[_]);a!==void 0&&(r[s]=a)}catch(a){const c=a instanceof Error?a.message:"not-an-error";ht(!1,`invalid value for value.${s} (${c})`,"BAD_DATA",{value:e})}}return r}}function zP(n){switch(n){case!0:case"true":return!0;case!1:case"false":return!1}W(!1,`invalid boolean; ${JSON.stringify(n)}`,"value",n)}function eo(n){return W(ee(n,!0),"invalid data","value",n),n}function ze(n){return W(ee(n,32),"invalid hash","value",n),n}const vP=_u({address:Vt,blockHash:ze,blockNumber:Kt,data:eo,index:Kt,removed:Yt(zP,!1),topics:Af(ze),transactionHash:ze,transactionIndex:Kt},{index:["logIndex"]});function MP(n){return vP(n)}const BP=_u({hash:Yt(ze),parentHash:ze,parentBeaconBlockRoot:Yt(ze,null),number:Kt,timestamp:Kt,nonce:Yt(eo),difficulty:zt,gasLimit:zt,gasUsed:zt,stateRoot:Yt(ze,null),receiptsRoot:Yt(ze,null),blobGasUsed:Yt(zt,null),excessBlobGas:Yt(zt,null),miner:Yt(Vt),prevRandao:Yt(ze,null),extraData:eo,baseFeePerGas:Yt(zt)},{prevRandao:["mixHash"]});function xP(n){const t=BP(n);return t.transactions=n.transactions.map(e=>typeof e=="string"?e:y0(e)),t}const CP=_u({transactionIndex:Kt,blockNumber:Kt,transactionHash:ze,address:Vt,topics:Af(ze),data:eo,index:Kt,blockHash:ze},{index:["logIndex"]});function IP(n){return CP(n)}const NP=_u({to:Yt(Vt,null),from:Yt(Vt,null),contractAddress:Yt(Vt,null),index:Kt,root:Yt(Et),gasUsed:zt,blobGasUsed:Yt(zt,null),logsBloom:Yt(eo),blockHash:ze,hash:ze,logs:Af(IP),blockNumber:Kt,cumulativeGasUsed:zt,effectiveGasPrice:Yt(zt),blobGasPrice:Yt(zt,null),status:Yt(Kt),type:Yt(Kt,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function OP(n){return NP(n)}function y0(n){n.to&&zt(n.to)===b0&&(n.to="0x0000000000000000000000000000000000000000");const t=_u({hash:ze,index:Yt(Kt,void 0),type:e=>e==="0x"||e==null?0:Kt(e),accessList:Yt(js,null),blobVersionedHashes:Yt(Af(ze,!0),null),blockHash:Yt(ze,null),blockNumber:Yt(Kt,null),transactionIndex:Yt(Kt,null),from:Vt,gasPrice:Yt(zt),maxPriorityFeePerGas:Yt(zt),maxFeePerGas:Yt(zt),maxFeePerBlobGas:Yt(zt,null),gasLimit:zt,to:Yt(Vt,null),value:zt,nonce:Kt,data:eo,creates:Yt(Vt,null),chainId:Yt(zt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(n);if(t.to==null&&t.creates==null&&(t.creates=xR(t)),(n.type===1||n.type===2)&&n.accessList==null&&(t.accessList=[]),n.signature?t.signature=Sr.from(n.signature):t.signature=Sr.from(n),t.chainId==null){const e=t.signature.legacyChainId;e!=null&&(t.chainId=e)}return t.blockHash&&zt(t.blockHash)===b0&&(t.blockHash=null),t}const kP="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class ou{constructor(t){$(this,"name");xt(this,{name:t})}clone(){return new ou(this.name)}}class mf extends ou{constructor(e,r){e==null&&(e=0);super(`org.ethers.network.plugins.GasCost#${e||0}`);$(this,"effectiveBlock");$(this,"txBase");$(this,"txCreate");$(this,"txDataZero");$(this,"txDataNonzero");$(this,"txAccessListStorageKey");$(this,"txAccessListAddress");const s={effectiveBlock:e};function _(a,c){let u=(r||{})[a];u==null&&(u=c),W(typeof u=="number",`invalud value for ${a}`,"costs",r),s[a]=u}_("txBase",21e3),_("txCreate",32e3),_("txDataZero",4),_("txDataNonzero",16),_("txAccessListStorageKey",1900),_("txAccessListAddress",2400),xt(this,s)}clone(){return new mf(this.effectiveBlock,this)}}class Sf extends ou{constructor(e,r){super("org.ethers.plugins.network.Ens");$(this,"address");$(this,"targetNetwork");xt(this,{address:e||kP,targetNetwork:r??1})}clone(){return new Sf(this.address,this.targetNetwork)}}class TP extends ou{constructor(e,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");rt(this,Cu);rt(this,Iu);K(this,Cu,e),K(this,Iu,r)}get url(){return m(this,Cu)}get processFunc(){return m(this,Iu)}clone(){return this}}Cu=new WeakMap,Iu=new WeakMap;const ip=new Map,zc=class zc{constructor(t,e){rt(this,Ec);rt(this,Pc);rt(this,Rs);K(this,Ec,t),K(this,Pc,zt(e)),K(this,Rs,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return m(this,Ec)}set name(t){K(this,Ec,t)}get chainId(){return m(this,Pc)}set chainId(t){K(this,Pc,zt(t,"chainId"))}matches(t){if(t==null)return!1;if(typeof t=="string"){try{return this.chainId===zt(t)}catch{}return this.name===t}if(typeof t=="number"||typeof t=="bigint"){try{return this.chainId===zt(t)}catch{}return!1}if(typeof t=="object"){if(t.chainId!=null){try{return this.chainId===zt(t.chainId)}catch{}return!1}return t.name!=null?this.name===t.name:!1}return!1}get plugins(){return Array.from(m(this,Rs).values())}attachPlugin(t){if(m(this,Rs).get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return m(this,Rs).set(t.name,t.clone()),this}getPlugin(t){return m(this,Rs).get(t)||null}getPlugins(t){return this.plugins.filter(e=>e.name.split("#")[0]===t)}clone(){const t=new zc(this.name,this.chainId);return this.plugins.forEach(e=>{t.attachPlugin(e.clone())}),t}computeIntrinsicGas(t){const e=this.getPlugin("org.ethers.plugins.network.GasCost")||new mf;let r=e.txBase;if(t.to==null&&(r+=e.txCreate),t.data)for(let s=2;s<t.data.length;s+=2)t.data.substring(s,s+2)==="00"?r+=e.txDataZero:r+=e.txDataNonzero;if(t.accessList){const s=js(t.accessList);for(const _ in s)r+=e.txAccessListAddress+e.txAccessListStorageKey*s[_].storageKeys.length}return r}static from(t){if(GP(),t==null)return zc.from("mainnet");if(typeof t=="number"&&(t=BigInt(t)),typeof t=="string"||typeof t=="bigint"){const e=ip.get(t);if(e)return e();if(typeof t=="bigint")return new zc("unknown",t);W(!1,"unknown network","network",t)}if(typeof t.clone=="function")return t.clone();if(typeof t=="object"){W(typeof t.name=="string"&&typeof t.chainId=="number","invalid network object name or chainId","network",t);const e=new zc(t.name,t.chainId);return(t.ensAddress||t.ensNetwork!=null)&&e.attachPlugin(new Sf(t.ensAddress,t.ensNetwork)),e}W(!1,"invalid network","network",t)}static register(t,e){typeof t=="number"&&(t=BigInt(t));const r=ip.get(t);r&&W(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",t),ip.set(t,e)}};Ec=new WeakMap,Pc=new WeakMap,Rs=new WeakMap;let Fr=zc;function A0(n,t){const e=String(n);if(!e.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${n}`);const r=e.split(".");if(r.length===1&&r.push(""),r.length!==2)throw new Error(`invalid gwei value: ${n}`);for(;r[1].length<t;)r[1]+="0";if(r[1].length>9){let s=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||s++,r[1]=s.toString()}return BigInt(r[0]+r[1])}function m0(n){return new TP(n,async(t,e,r)=>{r.setHeader("User-Agent","ethers");let s;try{const[_,a]=await Promise.all([r.send(),t()]);s=_;const c=s.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:A0(c.maxFee,9),maxPriorityFeePerGas:A0(c.maxPriorityFee,9)}}catch(_){ht(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:s,error:_})}})}let S0=!1;function GP(){if(S0)return;S0=!0;function n(t,e,r){const s=function(){const _=new Fr(t,e);return r.ensNetwork!=null&&_.attachPlugin(new Sf(null,r.ensNetwork)),_.attachPlugin(new mf),(r.plugins||[]).forEach(a=>{_.attachPlugin(a)}),_};Fr.register(t,s),Fr.register(e,s),r.altNames&&r.altNames.forEach(_=>{Fr.register(_,s)})}n("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),n("ropsten",3,{ensNetwork:3}),n("rinkeby",4,{ensNetwork:4}),n("goerli",5,{ensNetwork:5}),n("kovan",42,{ensNetwork:42}),n("sepolia",11155111,{ensNetwork:11155111}),n("holesky",17e3,{ensNetwork:17e3}),n("classic",61,{}),n("classicKotti",6,{}),n("arbitrum",42161,{ensNetwork:1}),n("arbitrum-goerli",421613,{}),n("arbitrum-sepolia",421614,{}),n("base",8453,{ensNetwork:1}),n("base-goerli",84531,{}),n("base-sepolia",84532,{}),n("bnb",56,{ensNetwork:1}),n("bnbt",97,{}),n("linea",59144,{ensNetwork:1}),n("linea-goerli",59140,{}),n("linea-sepolia",59141,{}),n("matic",137,{ensNetwork:1,plugins:[m0("https://gasstation.polygon.technology/v2")]}),n("matic-amoy",80002,{}),n("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[m0("https://gasstation-testnet.polygon.technology/v2")]}),n("optimism",10,{ensNetwork:1,plugins:[]}),n("optimism-goerli",420,{}),n("optimism-sepolia",11155420,{}),n("xdai",100,{ensNetwork:1})}function sp(n){return JSON.parse(JSON.stringify(n))}class FP{constructor(t){rt(this,vc);rt(this,$i);rt(this,pr);rt(this,Es);rt(this,Mi);K(this,$i,t),K(this,pr,null),K(this,Es,4e3),K(this,Mi,-2)}get pollingInterval(){return m(this,Es)}set pollingInterval(t){K(this,Es,t)}start(){m(this,pr)||(K(this,pr,m(this,$i)._setTimeout(mt(this,vc,tl).bind(this),m(this,Es))),mt(this,vc,tl).call(this))}stop(){m(this,pr)&&(m(this,$i)._clearTimeout(m(this,pr)),K(this,pr,null))}pause(t){this.stop(),t&&K(this,Mi,-2)}resume(){this.start()}}$i=new WeakMap,pr=new WeakMap,Es=new WeakMap,Mi=new WeakMap,vc=new WeakSet,tl=async function(){try{const t=await m(this,$i).getBlockNumber();if(m(this,Mi)===-2){K(this,Mi,t);return}if(t!==m(this,Mi)){for(let e=m(this,Mi)+1;e<=t;e++){if(m(this,pr)==null)return;await m(this,$i).emit("block",e)}K(this,Mi,t)}}catch{}m(this,pr)!=null&&K(this,pr,m(this,$i)._setTimeout(mt(this,vc,tl).bind(this),m(this,Es)))};class _p{constructor(t){rt(this,B_);rt(this,x_);rt(this,Ps);K(this,B_,t),K(this,Ps,!1),K(this,x_,e=>{this._poll(e,m(this,B_))})}async _poll(t,e){throw new Error("sub-classes must override this")}start(){m(this,Ps)||(K(this,Ps,!0),m(this,x_).call(this,-2),m(this,B_).on("block",m(this,x_)))}stop(){m(this,Ps)&&(K(this,Ps,!1),m(this,B_).off("block",m(this,x_)))}pause(t){this.stop()}resume(){this.start()}}B_=new WeakMap,x_=new WeakMap,Ps=new WeakMap;class UP extends _p{constructor(e,r){super(e);rt(this,Mc);rt(this,Zi);K(this,Mc,r),K(this,Zi,-2)}pause(e){e&&K(this,Zi,-2),super.pause(e)}async _poll(e,r){const s=await r.getBlock(m(this,Mc));s!=null&&(m(this,Zi)===-2?K(this,Zi,s.number):s.number>m(this,Zi)&&(r.emit(m(this,Mc),s.number),K(this,Zi,s.number)))}}Mc=new WeakMap,Zi=new WeakMap;class KP extends _p{constructor(e,r){super(e);rt(this,qf);K(this,qf,sp(r))}async _poll(e,r){throw new Error("@TODO")}}qf=new WeakMap;class DP extends _p{constructor(e,r){super(e);rt(this,Bc);K(this,Bc,r)}async _poll(e,r){const s=await r.getTransactionReceipt(m(this,Bc));s&&r.emit(m(this,Bc),s)}}Bc=new WeakMap;class op{constructor(t,e){rt(this,Qf);rt(this,Xi);rt(this,xc);rt(this,Cc);rt(this,zs);rt(this,hr);K(this,Xi,t),K(this,xc,sp(e)),K(this,Cc,mt(this,Qf,Nm).bind(this)),K(this,zs,!1),K(this,hr,-2)}start(){m(this,zs)||(K(this,zs,!0),m(this,hr)===-2&&m(this,Xi).getBlockNumber().then(t=>{K(this,hr,t)}),m(this,Xi).on("block",m(this,Cc)))}stop(){m(this,zs)&&(K(this,zs,!1),m(this,Xi).off("block",m(this,Cc)))}pause(t){this.stop(),t&&K(this,hr,-2)}resume(){this.start()}}Xi=new WeakMap,xc=new WeakMap,Cc=new WeakMap,zs=new WeakMap,hr=new WeakMap,Qf=new WeakSet,Nm=async function(t){if(m(this,hr)===-2)return;const e=sp(m(this,xc));e.fromBlock=m(this,hr)+1,e.toBlock=t;const r=await m(this,Xi).getLogs(e);if(r.length===0){m(this,hr)<t-60&&K(this,hr,t-60);return}for(const s of r)m(this,Xi).emit(m(this,xc),s),K(this,hr,s.blockNumber)};const LP=BigInt(2),jP=10;function Rf(n){return n&&typeof n.then=="function"}function Ef(n,t){return n+":"+JSON.stringify(t,(e,r)=>{if(r==null)return"null";if(typeof r=="bigint")return`bigint:${r.toString()}`;if(typeof r=="string")return r.toLowerCase();if(typeof r=="object"&&!Array.isArray(r)){const s=Object.keys(r);return s.sort(),s.reduce((_,a)=>(_[a]=r[a],_),{})}return r})}class R0{constructor(t){$(this,"name");xt(this,{name:t})}start(){}stop(){}pause(t){}resume(){}}function VP(n){return JSON.parse(JSON.stringify(n))}function ap(n){return n=Array.from(new Set(n).values()),n.sort(),n}async function cp(n,t){if(n==null)throw new Error("invalid event");if(Array.isArray(n)&&(n={topics:n}),typeof n=="string")switch(n){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:n,tag:n}}if(ee(n,32)){const e=n.toLowerCase();return{type:"transaction",tag:Ef("tx",{hash:e}),hash:e}}if(n.orphan){const e=n;return{type:"orphan",tag:Ef("orphan",e),filter:VP(e)}}if(n.address||n.topics){const e=n,r={topics:(e.topics||[]).map(s=>s==null?null:Array.isArray(s)?ap(s.map(_=>_.toLowerCase())):s.toLowerCase())};if(e.address){const s=[],_=[],a=c=>{ee(c)?s.push(c):_.push((async()=>{s.push(await Te(c,t))})())};Array.isArray(e.address)?e.address.forEach(a):a(e.address),_.length&&await Promise.all(_),r.address=ap(s.map(c=>c.toLowerCase()))}return{filter:r,tag:Ef("event",r),type:"event"}}W(!1,"unknown ProviderEvent","event",n)}function up(){return new Date().getTime()}const YP={cacheTimeout:250,pollingInterval:4e3};class HP{constructor(t,e){rt(this,Dt);rt(this,xe);rt(this,vs);rt(this,Ce);rt(this,Ic);rt(this,tr);rt(this,C_);rt(this,Ms);rt(this,ts);rt(this,Nu);rt(this,wr);rt(this,Nc);rt(this,Oc);if(K(this,Oc,Object.assign({},YP,e||{})),t==="any")K(this,C_,!0),K(this,tr,null);else if(t){const r=Fr.from(t);K(this,C_,!1),K(this,tr,Promise.resolve(r)),setTimeout(()=>{this.emit("network",r,null)},0)}else K(this,C_,!1),K(this,tr,null);K(this,ts,-1),K(this,Ms,new Map),K(this,xe,new Map),K(this,vs,new Map),K(this,Ce,null),K(this,Ic,!1),K(this,Nu,1),K(this,wr,new Map),K(this,Nc,!1)}get pollingInterval(){return m(this,Oc).pollingInterval}get provider(){return this}get plugins(){return Array.from(m(this,vs).values())}attachPlugin(t){if(m(this,vs).get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return m(this,vs).set(t.name,t.connect(this)),this}getPlugin(t){return m(this,vs).get(t)||null}get disableCcipRead(){return m(this,Nc)}set disableCcipRead(t){K(this,Nc,!!t)}async ccipReadFetch(t,e,r){if(this.disableCcipRead||r.length===0||t.to==null)return null;const s=t.to.toLowerCase(),_=e.toLowerCase(),a=[];for(let c=0;c<r.length;c++){const u=r[c],l=u.replace("{sender}",s).replace("{data}",_),f=new Ii(l);u.indexOf("{data}")===-1&&(f.body={data:_,sender:s}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:f,index:c,urls:r});let w="unknown error",y;try{y=await f.send()}catch(M){a.push(M.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:f,result:{error:M}});continue}try{const M=y.bodyJson;if(M.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:f,result:M}),M.data;M.message&&(w=M.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:f,result:M})}catch{}ht(y.statusCode<400||y.statusCode>=500,`response not found during CCIP fetch: ${w}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:t,info:{url:u,errorMessage:w}}),a.push(w)}ht(!1,`error encountered during CCIP fetch: ${a.map(c=>JSON.stringify(c)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:t,info:{urls:r,errorMessages:a}})}_wrapBlock(t,e){return new fP(xP(t),this)}_wrapLog(t,e){return new nu(MP(t),this)}_wrapTransactionReceipt(t,e){return new n0(OP(t),this)}_wrapTransactionResponse(t,e){return new iu(y0(t),this)}_detectNetwork(){ht(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(t){ht(!1,`unsupported method: ${t.method}`,"UNSUPPORTED_OPERATION",{operation:t.method,info:t})}async getBlockNumber(){const t=Kt(await mt(this,Dt,er).call(this,{method:"getBlockNumber"}),"%response");return m(this,ts)>=0&&K(this,ts,t),t}_getAddress(t){return Te(t,this)}_getBlockTag(t){if(t==null)return"latest";switch(t){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return t}if(ee(t))return ee(t,32)?t:D_(t);if(typeof t=="bigint"&&(t=Kt(t,"blockTag")),typeof t=="number")return t>=0?D_(t):m(this,ts)>=0?D_(m(this,ts)+t):this.getBlockNumber().then(e=>D_(e+t));W(!1,"invalid blockTag","blockTag",t)}_getFilter(t){const e=(t.topics||[]).map(u=>u==null?null:Array.isArray(u)?ap(u.map(l=>l.toLowerCase())):u.toLowerCase()),r="blockHash"in t?t.blockHash:void 0,s=(u,l,f)=>{let w;switch(u.length){case 0:break;case 1:w=u[0];break;default:u.sort(),w=u}if(r&&(l!=null||f!=null))throw new Error("invalid filter");const y={};return w&&(y.address=w),e.length&&(y.topics=e),l&&(y.fromBlock=l),f&&(y.toBlock=f),r&&(y.blockHash=r),y};let _=[];if(t.address)if(Array.isArray(t.address))for(const u of t.address)_.push(this._getAddress(u));else _.push(this._getAddress(t.address));let a;"fromBlock"in t&&(a=this._getBlockTag(t.fromBlock));let c;return"toBlock"in t&&(c=this._getBlockTag(t.toBlock)),_.filter(u=>typeof u!="string").length||a!=null&&typeof a!="string"||c!=null&&typeof c!="string"?Promise.all([Promise.all(_),a,c]).then(u=>s(u[0],u[1],u[2])):s(_,a,c)}_getTransactionRequest(t){const e=wf(t),r=[];if(["to","from"].forEach(s=>{if(e[s]==null)return;const _=Te(e[s],this);Rf(_)?r.push(async function(){e[s]=await _}()):e[s]=_}),e.blockTag!=null){const s=this._getBlockTag(e.blockTag);Rf(s)?r.push(async function(){e.blockTag=await s}()):e.blockTag=s}return r.length?async function(){return await Promise.all(r),e}():e}async getNetwork(){if(m(this,tr)==null){const s=(async()=>{try{const _=await this._detectNetwork();return this.emit("network",_,null),_}catch(_){throw m(this,tr)===s&&K(this,tr,null),_}})();return K(this,tr,s),(await s).clone()}const t=m(this,tr),[e,r]=await Promise.all([t,this._detectNetwork()]);return e.chainId!==r.chainId&&(m(this,C_)?(this.emit("network",r,e),m(this,tr)===t&&K(this,tr,Promise.resolve(r))):ht(!1,`network changed: ${e.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),e.clone()}async getFeeData(){const t=await this.getNetwork(),e=async()=>{const{_block:s,gasPrice:_,priorityFee:a}=await Ie({_block:mt(this,Dt,Ew).call(this,"latest",!1),gasPrice:(async()=>{try{const f=await mt(this,Dt,er).call(this,{method:"getGasPrice"});return zt(f,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const f=await mt(this,Dt,er).call(this,{method:"getPriorityFee"});return zt(f,"%response")}catch{}return null})()});let c=null,u=null;const l=this._wrapBlock(s,t);return l&&l.baseFeePerGas&&(u=a??BigInt("1000000000"),c=l.baseFeePerGas*LP+u),new r0(_,c,u)},r=t.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const s=new Ii(r.url),_=await r.processFunc(e,this,s);return new r0(_.gasPrice,_.maxFeePerGas,_.maxPriorityFeePerGas)}return await e()}async estimateGas(t){let e=this._getTransactionRequest(t);return Rf(e)&&(e=await e),zt(await mt(this,Dt,er).call(this,{method:"estimateGas",transaction:e}),"%response")}async call(t){const{tx:e,blockTag:r}=await Ie({tx:this._getTransactionRequest(t),blockTag:this._getBlockTag(t.blockTag)});return await mt(this,Dt,Rw).call(this,mt(this,Dt,Sw).call(this,e,r,t.enableCcipRead?0:-1))}async getBalance(t,e){return zt(await mt(this,Dt,Uu).call(this,{method:"getBalance"},t,e),"%response")}async getTransactionCount(t,e){return Kt(await mt(this,Dt,Uu).call(this,{method:"getTransactionCount"},t,e),"%response")}async getCode(t,e){return Et(await mt(this,Dt,Uu).call(this,{method:"getCode"},t,e))}async getStorage(t,e,r){const s=zt(e,"position");return Et(await mt(this,Dt,Uu).call(this,{method:"getStorage",position:s},t,r))}async broadcastTransaction(t){const{blockNumber:e,hash:r,network:s}=await Ie({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:t}),network:this.getNetwork()}),_=ff.from(t);if(_.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(_,s).replaceableTransaction(e)}async getBlock(t,e){const{network:r,params:s}=await Ie({network:this.getNetwork(),params:mt(this,Dt,Ew).call(this,t,!!e)});return s==null?null:this._wrapBlock(s,r)}async getTransaction(t){const{network:e,params:r}=await Ie({network:this.getNetwork(),params:mt(this,Dt,er).call(this,{method:"getTransaction",hash:t})});return r==null?null:this._wrapTransactionResponse(r,e)}async getTransactionReceipt(t){const{network:e,params:r}=await Ie({network:this.getNetwork(),params:mt(this,Dt,er).call(this,{method:"getTransactionReceipt",hash:t})});if(r==null)return null;if(r.gasPrice==null&&r.effectiveGasPrice==null){const s=await mt(this,Dt,er).call(this,{method:"getTransaction",hash:t});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(r,e)}async getTransactionResult(t){const{result:e}=await Ie({network:this.getNetwork(),result:mt(this,Dt,er).call(this,{method:"getTransactionResult",hash:t})});return e==null?null:Et(e)}async getLogs(t){let e=this._getFilter(t);Rf(e)&&(e=await e);const{network:r,params:s}=await Ie({network:this.getNetwork(),params:mt(this,Dt,er).call(this,{method:"getLogs",filter:e})});return s.map(_=>this._wrapLog(_,r))}_getProvider(t){ht(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(t){return await yf.fromName(this,t)}async getAvatar(t){const e=await this.getResolver(t);return e?await e.getAvatar():null}async resolveName(t){const e=await this.getResolver(t);return e?await e.getAddress():null}async lookupAddress(t){t=Vt(t);const e=Dl(t.substring(2).toLowerCase()+".addr.reverse");try{const r=await yf.getEnsAddress(this),_=await new Pr(r,["function resolver(bytes32) view returns (address)"],this).resolver(e);if(_==null||_===Hc)return null;const c=await new Pr(_,["function name(bytes32) view returns (string)"],this).name(e);return await this.resolveName(c)!==t?null:c}catch(r){if(Ee(r,"BAD_DATA")&&r.value==="0x"||Ee(r,"CALL_EXCEPTION"))return null;throw r}return null}async waitForTransaction(t,e,r){const s=e??1;return s===0?this.getTransactionReceipt(t):new Promise(async(_,a)=>{let c=null;const u=async l=>{try{const f=await this.getTransactionReceipt(t);if(f!=null&&l-f.blockNumber+1>=s){_(f),c&&(clearTimeout(c),c=null);return}}catch(f){console.log("EEE",f)}this.once("block",u)};r!=null&&(c=setTimeout(()=>{c!=null&&(c=null,this.off("block",u),a(ue("timeout","TIMEOUT",{reason:"timeout"})))},r)),u(await this.getBlockNumber())})}async waitForBlock(t){ht(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(t){const e=m(this,wr).get(t);e&&(e.timer&&clearTimeout(e.timer),m(this,wr).delete(t))}_setTimeout(t,e){e==null&&(e=0);const r=Gu(this,Nu)._++,s=()=>{m(this,wr).delete(r),t()};if(this.paused)m(this,wr).set(r,{timer:null,func:s,time:e});else{const _=setTimeout(s,e);m(this,wr).set(r,{timer:_,func:s,time:up()})}return r}_forEachSubscriber(t){for(const e of m(this,xe).values())t(e.subscriber)}_getSubscriber(t){switch(t.type){case"debug":case"error":case"network":return new R0(t.type);case"block":{const e=new FP(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new UP(this,t.type);case"event":return new op(this,t.filter);case"transaction":return new DP(this,t.hash);case"orphan":return new KP(this,t.filter)}throw new Error(`unsupported event: ${t.type}`)}_recoverSubscriber(t,e){for(const r of m(this,xe).values())if(r.subscriber===t){r.started&&r.subscriber.stop(),r.subscriber=e,r.started&&e.start(),m(this,Ce)!=null&&e.pause(m(this,Ce));break}}async on(t,e){const r=await mt(this,Dt,el).call(this,t);return r.listeners.push({listener:e,once:!1}),r.started||(r.subscriber.start(),r.started=!0,m(this,Ce)!=null&&r.subscriber.pause(m(this,Ce))),this}async once(t,e){const r=await mt(this,Dt,el).call(this,t);return r.listeners.push({listener:e,once:!0}),r.started||(r.subscriber.start(),r.started=!0,m(this,Ce)!=null&&r.subscriber.pause(m(this,Ce))),this}async emit(t,...e){const r=await mt(this,Dt,Ku).call(this,t,e);if(!r||r.listeners.length===0)return!1;const s=r.listeners.length;return r.listeners=r.listeners.filter(({listener:_,once:a})=>{const c=new Gw(this,a?null:_,t);try{_.call(this,...e,c)}catch{}return!a}),r.listeners.length===0&&(r.started&&r.subscriber.stop(),m(this,xe).delete(r.tag)),s>0}async listenerCount(t){if(t){const r=await mt(this,Dt,Ku).call(this,t);return r?r.listeners.length:0}let e=0;for(const{listeners:r}of m(this,xe).values())e+=r.length;return e}async listeners(t){if(t){const r=await mt(this,Dt,Ku).call(this,t);return r?r.listeners.map(({listener:s})=>s):[]}let e=[];for(const{listeners:r}of m(this,xe).values())e=e.concat(r.map(({listener:s})=>s));return e}async off(t,e){const r=await mt(this,Dt,Ku).call(this,t);if(!r)return this;if(e){const s=r.listeners.map(({listener:_})=>_).indexOf(e);s>=0&&r.listeners.splice(s,1)}return(!e||r.listeners.length===0)&&(r.started&&r.subscriber.stop(),m(this,xe).delete(r.tag)),this}async removeAllListeners(t){if(t){const{tag:e,started:r,subscriber:s}=await mt(this,Dt,el).call(this,t);r&&s.stop(),m(this,xe).delete(e)}else for(const[e,{started:r,subscriber:s}]of m(this,xe))r&&s.stop(),m(this,xe).delete(e);return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return this.off(t,e)}get destroyed(){return m(this,Ic)}destroy(){this.removeAllListeners();for(const t of m(this,wr).keys())this._clearTimeout(t);K(this,Ic,!0)}get paused(){return m(this,Ce)!=null}set paused(t){!!t!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(t){if(K(this,ts,-1),m(this,Ce)!=null){if(m(this,Ce)==!!t)return;ht(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(e=>e.pause(t)),K(this,Ce,!!t);for(const e of m(this,wr).values())e.timer&&clearTimeout(e.timer),e.time=up()-e.time}resume(){if(m(this,Ce)!=null){this._forEachSubscriber(t=>t.resume()),K(this,Ce,null);for(const t of m(this,wr).values()){let e=t.time;e<0&&(e=0),t.time=up(),setTimeout(t.func,e)}}}}xe=new WeakMap,vs=new WeakMap,Ce=new WeakMap,Ic=new WeakMap,tr=new WeakMap,C_=new WeakMap,Ms=new WeakMap,ts=new WeakMap,Nu=new WeakMap,wr=new WeakMap,Nc=new WeakMap,Oc=new WeakMap,Dt=new WeakSet,er=async function(t){const e=m(this,Oc).cacheTimeout;if(e<0)return await this._perform(t);const r=Ef(t.method,t);let s=m(this,Ms).get(r);return s||(s=this._perform(t),m(this,Ms).set(r,s),setTimeout(()=>{m(this,Ms).get(r)===s&&m(this,Ms).delete(r)},e)),await s},Sw=async function(t,e,r){ht(r<jP,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},t,{blockTag:e,enableCcipRead:!0})});const s=wf(t);try{return Et(await this._perform({method:"call",transaction:s,blockTag:e}))}catch(_){if(!this.disableCcipRead&&il(_)&&_.data&&r>=0&&e==="latest"&&s.to!=null&&fe(_.data,0,4)==="0x556f1830"){const a=_.data,c=await Te(s.to,this);let u;try{u=$P(fe(_.data,4))}catch(w){ht(!1,w.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:a}})}ht(u.sender.toLowerCase()===c.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:u.errorArgs}});const l=await this.ccipReadFetch(s,u.calldata,u.urls);ht(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:_.data,errorArgs:u.errorArgs}});const f={to:c,data:le([u.selector,JP([l,u.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:f});try{const w=await mt(this,Dt,Sw).call(this,f,e,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},f),result:w}),w}catch(w){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},f),error:w}),w}}throw _}},Rw=async function(t){const{value:e}=await Ie({network:this.getNetwork(),value:t});return e},Uu=async function(t,e,r){let s=this._getAddress(e),_=this._getBlockTag(r);return(typeof s!="string"||typeof _!="string")&&([s,_]=await Promise.all([s,_])),await mt(this,Dt,Rw).call(this,mt(this,Dt,er).call(this,Object.assign(t,{address:s,blockTag:_})))},Ew=async function(t,e){if(ee(t,32))return await mt(this,Dt,er).call(this,{method:"getBlock",blockHash:t,includeTransactions:e});let r=this._getBlockTag(t);return typeof r!="string"&&(r=await r),await mt(this,Dt,er).call(this,{method:"getBlock",blockTag:r,includeTransactions:e})},Ku=async function(t,e){let r=await cp(t,this);return r.type==="event"&&e&&e.length>0&&e[0].removed===!0&&(r=await cp({orphan:"drop-log",log:e[0]},this)),m(this,xe).get(r.tag)||null},el=async function(t){const e=await cp(t,this),r=e.tag;let s=m(this,xe).get(r);return s||(s={subscriber:this._getSubscriber(e),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},m(this,xe).set(r,s)),s};function qP(n,t){try{const e=fp(n,t);if(e)return Vu(e)}catch{}return null}function fp(n,t){if(n==="0x")return null;try{const e=Kt(fe(n,t,t+32)),r=Kt(fe(n,e,e+32));return fe(n,e+32,e+32+r)}catch{}return null}function E0(n){const t=Oe(n);if(t.length>32)throw new Error("internal; should not happen");const e=new Uint8Array(32);return e.set(t,32-t.length),e}function QP(n){if(n.length%32===0)return n;const t=new Uint8Array(Math.ceil(n.length/32)*32);return t.set(n),t}const WP=new Uint8Array([]);function JP(n){const t=[];let e=0;for(let r=0;r<n.length;r++)t.push(WP),e+=32;for(let r=0;r<n.length;r++){const s=qt(n[r]);t[r]=E0(e),t.push(E0(s.length)),t.push(QP(s)),e+=32+Math.ceil(s.length/32)*32}return le(t)}const P0="0x0000000000000000000000000000000000000000000000000000000000000000";function $P(n){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};ht(K_(n)>=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const e=fe(n,0,32);ht(fe(e,0,12)===fe(P0,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=fe(e,12);try{const r=[],s=Kt(fe(n,32,64)),_=Kt(fe(n,s,s+32)),a=fe(n,s+32);for(let c=0;c<_;c++){const u=qP(a,c*32);if(u==null)throw new Error("abort");r.push(u)}t.urls=r}catch{ht(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const r=fp(n,64);if(r==null)throw new Error("abort");t.calldata=r}catch{ht(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}ht(fe(n,100,128)===fe(P0,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=fe(n,96,100);try{const r=fp(n,128);if(r==null)throw new Error("abort");t.extraData=r}catch{ht(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(r=>t[r]),t}function ro(n,t){if(n.provider)return n.provider;ht(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function z0(n,t){let e=wf(t);if(e.to!=null&&(e.to=Te(e.to,n)),e.from!=null){const r=e.from;e.from=Promise.all([n.getAddress(),Te(r,n)]).then(([s,_])=>(W(s.toLowerCase()===_.toLowerCase(),"transaction from mismatch","tx.from",_),s))}else e.from=n.getAddress();return await Ie(e)}class ZP{constructor(t){$(this,"provider");xt(this,{provider:t||null})}async getNonce(t){return ro(this,"getTransactionCount").getTransactionCount(await this.getAddress(),t)}async populateCall(t){return await z0(this,t)}async populateTransaction(t){const e=ro(this,"populateTransaction"),r=await z0(this,t);r.nonce==null&&(r.nonce=await this.getNonce("pending")),r.gasLimit==null&&(r.gasLimit=await this.estimateGas(r));const s=await this.provider.getNetwork();if(r.chainId!=null){const a=zt(r.chainId);W(a===s.chainId,"transaction chainId mismatch","tx.chainId",t.chainId)}else r.chainId=s.chainId;const _=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||_)?W(!1,"eip-1559 transaction do not support gasPrice","tx",t):(r.type===0||r.type===1)&&_&&W(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1){const a=await e.getFeeData();ht(a.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),r.gasPrice==null&&(r.gasPrice=a.gasPrice)}else{const a=await e.getFeeData();if(r.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const c=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=c,r.maxPriorityFeePerGas=c}else r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(ht(!_,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=a.gasPrice),r.type=0):ht(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(r.type===2||r.type===3)&&(r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return await Ie(r)}async estimateGas(t){return ro(this,"estimateGas").estimateGas(await this.populateCall(t))}async call(t){return ro(this,"call").call(await this.populateCall(t))}async resolveName(t){return await ro(this,"resolveName").resolveName(t)}async sendTransaction(t){const e=ro(this,"sendTransaction"),r=await this.populateTransaction(t);delete r.from;const s=ff.from(r);return await e.broadcastTransaction(await this.signTransaction(s))}}function XP(n){return JSON.parse(JSON.stringify(n))}class v0{constructor(t){rt(this,xs);rt(this,Fe);rt(this,Bi);rt(this,I_);rt(this,Bs);rt(this,N_);rt(this,kc);K(this,Fe,t),K(this,Bi,null),K(this,I_,mt(this,xs,Pw).bind(this)),K(this,Bs,!1),K(this,N_,null),K(this,kc,!1)}_subscribe(t){throw new Error("subclasses must override this")}_emitResults(t,e){throw new Error("subclasses must override this")}_recover(t){throw new Error("subclasses must override this")}start(){m(this,Bs)||(K(this,Bs,!0),mt(this,xs,Pw).call(this,-2))}stop(){m(this,Bs)&&(K(this,Bs,!1),K(this,kc,!0),mt(this,xs,zw).call(this),m(this,Fe).off("block",m(this,I_)))}pause(t){t&&mt(this,xs,zw).call(this),m(this,Fe).off("block",m(this,I_))}resume(){this.start()}}Fe=new WeakMap,Bi=new WeakMap,I_=new WeakMap,Bs=new WeakMap,N_=new WeakMap,kc=new WeakMap,xs=new WeakSet,Pw=async function(t){try{m(this,Bi)==null&&K(this,Bi,this._subscribe(m(this,Fe)));let e=null;try{e=await m(this,Bi)}catch(_){if(!Ee(_,"UNSUPPORTED_OPERATION")||_.operation!=="eth_newFilter")throw _}if(e==null){K(this,Bi,null),m(this,Fe)._recoverSubscriber(this,this._recover(m(this,Fe)));return}const r=await m(this,Fe).getNetwork();if(m(this,N_)||K(this,N_,r),m(this,N_).chainId!==r.chainId)throw new Error("chaid changed");if(m(this,kc))return;const s=await m(this,Fe).send("eth_getFilterChanges",[e]);await this._emitResults(m(this,Fe),s)}catch(e){console.log("@TODO",e)}m(this,Fe).once("block",m(this,I_))},zw=function(){const t=m(this,Bi);t&&(K(this,Bi,null),t.then(e=>{m(this,Fe).destroyed||m(this,Fe).send("eth_uninstallFilter",[e])}))};class tz extends v0{constructor(e,r){super(e);rt(this,O_);K(this,O_,XP(r))}_recover(e){return new op(e,m(this,O_))}async _subscribe(e){return await e.send("eth_newFilter",[m(this,O_)])}async _emitResults(e,r){for(const s of r)e.emit(m(this,O_),e._wrapLog(s,e._network))}}O_=new WeakMap;class ez extends v0{async _subscribe(t){return await t.send("eth_newPendingTransactionFilter",[])}async _emitResults(t,e){for(const r of e)t.emit("pending",r)}}const rz="bigint,boolean,function,number,string,symbol".split(/,/g);function Pf(n){if(n==null||rz.indexOf(typeof n)>=0||typeof n.getAddress=="function")return n;if(Array.isArray(n))return n.map(Pf);if(typeof n=="object")return Object.keys(n).reduce((t,e)=>(t[e]=n[e],t),{});throw new Error(`should not happen: ${n} (${typeof n})`)}function nz(n){return new Promise(t=>{setTimeout(t,n)})}function no(n){return n&&n.toLowerCase()}function M0(n){return n&&typeof n.pollingInterval=="number"}const B0={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class lp extends ZP{constructor(e,r){super(e);$(this,"address");r=Vt(r),xt(this,{address:r})}connect(e){ht(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const r=Pf(e),s=[];if(r.from){const a=r.from;s.push((async()=>{const c=await Te(a,this.provider);W(c!=null&&c.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),r.from=c})())}else r.from=this.address;if(r.gasLimit==null&&s.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const a=r.to;s.push((async()=>{r.to=await Te(a,this.provider)})())}s.length&&await Promise.all(s);const _=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[_])}async sendTransaction(e){const r=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(e);return await new Promise((_,a)=>{const c=[1e3,100];let u=0;const l=async()=>{try{const f=await this.provider.getTransaction(s);if(f!=null){_(f.replaceableTransaction(r));return}}catch(f){if(Ee(f,"CANCELLED")||Ee(f,"BAD_DATA")||Ee(f,"NETWORK_ERROR")||Ee(f,"UNSUPPORTED_OPERATION")){f.info==null&&(f.info={}),f.info.sendTransactionHash=s,a(f);return}if(Ee(f,"INVALID_ARGUMENT")&&(u++,f.info==null&&(f.info={}),f.info.sendTransactionHash=s,u>10)){a(f);return}this.provider.emit("error",ue("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:f}))}this.provider._setTimeout(()=>{l()},c.pop()||4e3)};l()})}async signTransaction(e){const r=Pf(e);if(r.from){const _=await Te(r.from,this.provider);W(_!=null&&_.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),r.from=_}else r.from=this.address;const s=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[s])}async signMessage(e){const r=typeof e=="string"?Ci(e):e;return await this.provider.send("personal_sign",[Et(r),this.address.toLowerCase()])}async signTypedData(e,r,s){const _=Pf(s),a=await eu.resolveNames(e,r,_,async c=>{const u=await Te(c);return W(u!=null,"TypedData does not support null address","value",c),u});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(eu.getPayload(a.domain,r,a.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const r=typeof e=="string"?Ci(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),Et(r)])}}class iz extends HP{constructor(e,r){super(e,r);rt(this,Ou);rt(this,k_);rt(this,Tc);rt(this,es);rt(this,xi);rt(this,Nr);rt(this,dr);rt(this,Ve);K(this,Tc,1),K(this,k_,Object.assign({},B0,r||{})),K(this,es,[]),K(this,xi,null),K(this,dr,null),K(this,Ve,null);{let _=null;const a=new Promise(c=>{_=c});K(this,Nr,{promise:a,resolve:_})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(W(!s||e!=="any","staticNetwork cannot be used on special network 'any'","options",r),s&&e!=null&&K(this,dr,Fr.from(e))):s&&(W(e==null||s.matches(e),"staticNetwork MUST match network object","options",r),K(this,dr,s))}_getOption(e){return m(this,k_)[e]}get _network(){return ht(m(this,dr),"network is not available yet","NETWORK_ERROR"),m(this,dr)}async _perform(e){if(e.method==="call"||e.method==="estimateGas"){let s=e.transaction;if(s&&s.type!=null&&zt(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const _=await this.getFeeData();_.maxFeePerGas==null&&_.maxPriorityFeePerGas==null&&(e=Object.assign({},e,{transaction:Object.assign({},s,{type:void 0})}))}}const r=this.getRpcRequest(e);return r!=null?await this.send(r.method,r.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e)if(e===!0){if(m(this,dr))return m(this,dr)}else return e;return m(this,Ve)?await m(this,Ve):this.ready?(K(this,Ve,(async()=>{try{const r=Fr.from(zt(await this.send("eth_chainId",[])));return K(this,Ve,null),r}catch(r){throw K(this,Ve,null),r}})()),await m(this,Ve)):(K(this,Ve,(async()=>{const r={id:Gu(this,Tc)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let s;try{s=(await this._send(r))[0],K(this,Ve,null)}catch(_){throw K(this,Ve,null),this.emit("debug",{action:"receiveRpcError",error:_}),_}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return Fr.from(zt(s.result));throw this.getRpcError(r,s)})()),await m(this,Ve))}_start(){m(this,Nr)==null||m(this,Nr).resolve==null||(m(this,Nr).resolve(),K(this,Nr,null),(async()=>{for(;m(this,dr)==null&&!this.destroyed;)try{K(this,dr,await this._detectNetwork())}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ue("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await nz(1e3)}mt(this,Ou,vw).call(this)})())}async _waitUntilReady(){if(m(this,Nr)!=null)return await m(this,Nr).promise}_getSubscriber(e){return e.type==="pending"?new ez(this):e.type==="event"?this._getOption("polling")?new op(this,e.filter):new tz(this,e.filter):e.type==="orphan"&&e.filter.orphan==="drop-log"?new R0("orphan"):super._getSubscriber(e)}get ready(){return m(this,Nr)==null}getRpcTransaction(e){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(e[s]==null)return;let _=s;s==="gasLimit"&&(_="gas"),r[_]=D_(zt(e[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{e[s]!=null&&(r[s]=Et(e[s]))}),e.accessList&&(r.accessList=js(e.accessList)),e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes.map(s=>s.toLowerCase())),r}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[no(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[no(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[no(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[no(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&e.filter.address!=null&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(no):e.filter.address=no(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,r){const{method:s}=e,{error:_}=r;if(s==="eth_estimateGas"&&_.message){const u=_.message;if(!u.match(/revert/i)&&u.match(/insufficient funds/i))return ue("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:_}})}if(s==="eth_call"||s==="eth_estimateGas"){const u=pp(_),l=X_.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",e.params[0],u?u.data:null);return l.info={error:_,payload:e},l}const a=JSON.stringify(_z(_));if(typeof _.message=="string"&&_.message.match(/user denied|ethers-user-denied/i))return ue("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:e,error:_}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const u=e.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return ue("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:u,info:{error:_}});if(a.match(/nonce/i)&&a.match(/too low/i))return ue("nonce has already been used","NONCE_EXPIRED",{transaction:u,info:{error:_}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return ue("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:u,info:{error:_}});if(a.match(/only replay-protected/i))return ue("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:u,info:{error:_}}})}let c=!!a.match(/the method .* does not exist/i);return c||_&&_.details&&_.details.startsWith("Unauthorized method:")&&(c=!0),c?ue("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:_,payload:e}}):ue("could not coalesce error","UNKNOWN_ERROR",{error:_,payload:e})}send(e,r){if(this.destroyed)return Promise.reject(ue("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const s=Gu(this,Tc)._++,_=new Promise((a,c)=>{m(this,es).push({resolve:a,reject:c,payload:{method:e,params:r,id:s,jsonrpc:"2.0"}})});return mt(this,Ou,vw).call(this),_}async getSigner(e){e==null&&(e=0);const r=this.send("eth_accounts",[]);if(typeof e=="number"){const _=await r;if(e>=_.length)throw new Error("no such account");return new lp(this,_[e])}const{accounts:s}=await Ie({network:this.getNetwork(),accounts:r});e=Vt(e);for(const _ of s)if(Vt(_)===e)return new lp(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new lp(this,r))}destroy(){m(this,xi)&&(clearTimeout(m(this,xi)),K(this,xi,null));for(const{payload:e,reject:r}of m(this,es))r(ue("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));K(this,es,[]),super.destroy()}}k_=new WeakMap,Tc=new WeakMap,es=new WeakMap,xi=new WeakMap,Nr=new WeakMap,dr=new WeakMap,Ve=new WeakMap,Ou=new WeakSet,vw=function(){if(m(this,xi))return;const e=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");K(this,xi,setTimeout(()=>{K(this,xi,null);const r=m(this,es);for(K(this,es,[]);r.length;){const s=[r.shift()];for(;r.length&&s.length!==m(this,k_).batchMaxCount;)if(s.push(r.shift()),JSON.stringify(s.map(a=>a.payload)).length>m(this,k_).batchMaxSize){r.unshift(s.pop());break}(async()=>{const _=s.length===1?s[0].payload:s.map(a=>a.payload);this.emit("debug",{action:"sendRpcPayload",payload:_});try{const a=await this._send(_);this.emit("debug",{action:"receiveRpcResult",result:a});for(const{resolve:c,reject:u,payload:l}of s){if(this.destroyed){u(ue("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const f=a.filter(w=>w.id===l.id)[0];if(f==null){const w=ue("missing response for request","BAD_DATA",{value:a,info:{payload:l}});this.emit("error",w),u(w);continue}if("error"in f){u(this.getRpcError(l,f));continue}c(f.result)}}catch(a){this.emit("debug",{action:"receiveRpcError",error:a});for(const{reject:c}of s)c(a)}})()}},e))};class x0 extends iz{constructor(e,r){super(e,r);rt(this,Cs);let s=this._getOption("pollingInterval");s==null&&(s=B0.pollingInterval),K(this,Cs,s)}_getSubscriber(e){const r=super._getSubscriber(e);return M0(r)&&(r.pollingInterval=m(this,Cs)),r}get pollingInterval(){return m(this,Cs)}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");K(this,Cs,e),this._forEachSubscriber(r=>{M0(r)&&(r.pollingInterval=m(this,Cs))})}}Cs=new WeakMap;class sz extends x0{constructor(e,r,s){e==null&&(e="http://localhost:8545");super(r,s);rt(this,Gc);typeof e=="string"?K(this,Gc,new Ii(e)):K(this,Gc,e.clone())}_getConnection(){return m(this,Gc).clone()}async send(e,r){return await this._start(),await super.send(e,r)}async _send(e){const r=this._getConnection();r.body=JSON.stringify(e),r.setHeader("content-type","application/json");const s=await r.send();s.assertOk();let _=s.bodyJson;return Array.isArray(_)||(_=[_]),_}}Gc=new WeakMap;function pp(n){if(n==null)return null;if(typeof n.message=="string"&&n.message.match(/revert/i)&&ee(n.data))return{message:n.message,data:n.data};if(typeof n=="object"){for(const t in n){const e=pp(n[t]);if(e)return e}return null}if(typeof n=="string")try{return pp(JSON.parse(n))}catch{}return null}function hp(n,t){if(n!=null){if(typeof n.message=="string"&&t.push(n.message),typeof n=="object")for(const e in n)hp(n[e],t);if(typeof n=="string")try{return hp(JSON.parse(n),t)}catch{}}}function _z(n){const t=[];return hp(n,t),t}class oz extends x0{constructor(e,r,s){const _=Object.assign({},s??{},{batchMaxCount:1});W(e&&e.request,"invalid EIP-1193 provider","ethereum",e);super(r,_);rt(this,Fc);K(this,Fc,async(a,c)=>{const u={method:a,params:c};this.emit("debug",{action:"sendEip1193Request",payload:u});try{const l=await e.request(u);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const f=new Error(l.message);throw f.code=l.code,f.data=l.data,f.payload=u,this.emit("debug",{action:"receiveEip1193Error",error:f}),f}})}async send(e,r){return await this._start(),await super.send(e,r)}async _send(e){W(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const r=await m(this,Fc).call(this,e.method,e.params||[]);return[{id:e.id,result:r}]}catch(r){return[{id:e.id,error:{code:r.code,data:r.data,message:r.message}}]}}getRpcError(e,r){switch(r=JSON.parse(JSON.stringify(r)),r.error.code||-1){case 4001:r.error.message=`ethers-user-denied: ${r.error.message}`;break;case 4200:r.error.message=`ethers-unsupported: ${r.error.message}`;break}return super.getRpcError(e,r)}async hasSigner(e){e==null&&(e=0);const r=await this.send("eth_accounts",[]);return typeof e=="number"?r.length>e:(e=e.toLowerCase(),r.filter(s=>s.toLowerCase()===e).length!==0)}async getSigner(e){if(e==null&&(e=0),!await this.hasSigner(e))try{await m(this,Fc).call(this,"eth_requestAccounts",[])}catch(r){const s=r.payload;throw this.getRpcError(s,{id:s.id,error:r})}return await super.getSigner(e)}}Fc=new WeakMap;var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zf={exports:{}};function az(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var I0={exports:{}},de=I0.exports={},Ur,Kr;function wp(){throw new Error("setTimeout has not been defined")}function dp(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ur=setTimeout:Ur=wp}catch{Ur=wp}try{typeof clearTimeout=="function"?Kr=clearTimeout:Kr=dp}catch{Kr=dp}})();function N0(n){if(Ur===setTimeout)return setTimeout(n,0);if((Ur===wp||!Ur)&&setTimeout)return Ur=setTimeout,setTimeout(n,0);try{return Ur(n,0)}catch{try{return Ur.call(null,n,0)}catch{return Ur.call(this,n,0)}}}function cz(n){if(Kr===clearTimeout)return clearTimeout(n);if((Kr===dp||!Kr)&&clearTimeout)return Kr=clearTimeout,clearTimeout(n);try{return Kr(n)}catch{try{return Kr.call(null,n)}catch{return Kr.call(this,n)}}}var Ki=[],io=!1,Ws,vf=-1;function uz(){!io||!Ws||(io=!1,Ws.length?Ki=Ws.concat(Ki):vf=-1,Ki.length&&O0())}function O0(){if(!io){var n=N0(uz);io=!0;for(var t=Ki.length;t;){for(Ws=Ki,Ki=[];++vf<t;)Ws&&Ws[vf].run();vf=-1,t=Ki.length}Ws=null,io=!1,cz(n)}}de.nextTick=function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];Ki.push(new k0(n,t)),Ki.length===1&&!io&&N0(O0)};function k0(n,t){this.fun=n,this.array=t}k0.prototype.run=function(){this.fun.apply(null,this.array)},de.title="browser",de.browser=!0,de.env={},de.argv=[],de.version="",de.versions={};function Di(){}de.on=Di,de.addListener=Di,de.once=Di,de.off=Di,de.removeListener=Di,de.removeAllListeners=Di,de.emit=Di,de.prependListener=Di,de.prependOnceListener=Di,de.listeners=function(n){return[]},de.binding=function(n){throw new Error("process.binding is not supported")},de.cwd=function(){return"/"},de.chdir=function(n){throw new Error("process.chdir is not supported")},de.umask=function(){return 0};var fz=I0.exports;const Lt=az(fz);var Mf={exports:{}},T0;function G0(){if(T0)return Mf.exports;T0=1;var n=typeof Reflect=="object"?Reflect:null,t=n&&typeof n.apply=="function"?n.apply:function(F,D,j){return Function.prototype.apply.call(F,D,j)},e;n&&typeof n.ownKeys=="function"?e=n.ownKeys:Object.getOwnPropertySymbols?e=function(F){return Object.getOwnPropertyNames(F).concat(Object.getOwnPropertySymbols(F))}:e=function(F){return Object.getOwnPropertyNames(F)};function r(C){console&&console.warn&&console.warn(C)}var s=Number.isNaN||function(F){return F!==F};function _(){_.init.call(this)}Mf.exports=_,Mf.exports.once=P,_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var a=10;function c(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(C){if(typeof C!="number"||C<0||s(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");a=C}}),_.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_.prototype.setMaxListeners=function(F){if(typeof F!="number"||F<0||s(F))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+F+".");return this._maxListeners=F,this};function u(C){return C._maxListeners===void 0?_.defaultMaxListeners:C._maxListeners}_.prototype.getMaxListeners=function(){return u(this)},_.prototype.emit=function(F){for(var D=[],j=1;j<arguments.length;j++)D.push(arguments[j]);var L=F==="error",Z=this._events;if(Z!==void 0)L=L&&Z.error===void 0;else if(!L)return!1;if(L){var ot;if(D.length>0&&(ot=D[0]),ot instanceof Error)throw ot;var pt=new Error("Unhandled error."+(ot?" ("+ot.message+")":""));throw pt.context=ot,pt}var Y=Z[F];if(Y===void 0)return!1;if(typeof Y=="function")t(Y,this,D);else for(var At=Y.length,Bt=B(Y,At),j=0;j<At;++j)t(Bt[j],this,D);return!0};function l(C,F,D,j){var L,Z,ot;if(c(D),Z=C._events,Z===void 0?(Z=C._events=Object.create(null),C._eventsCount=0):(Z.newListener!==void 0&&(C.emit("newListener",F,D.listener?D.listener:D),Z=C._events),ot=Z[F]),ot===void 0)ot=Z[F]=D,++C._eventsCount;else if(typeof ot=="function"?ot=Z[F]=j?[D,ot]:[ot,D]:j?ot.unshift(D):ot.push(D),L=u(C),L>0&&ot.length>L&&!ot.warned){ot.warned=!0;var pt=new Error("Possible EventEmitter memory leak detected. "+ot.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");pt.name="MaxListenersExceededWarning",pt.emitter=C,pt.type=F,pt.count=ot.length,r(pt)}return C}_.prototype.addListener=function(F,D){return l(this,F,D,!1)},_.prototype.on=_.prototype.addListener,_.prototype.prependListener=function(F,D){return l(this,F,D,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(C,F,D){var j={fired:!1,wrapFn:void 0,target:C,type:F,listener:D},L=f.bind(j);return L.listener=D,j.wrapFn=L,L}_.prototype.once=function(F,D){return c(D),this.on(F,w(this,F,D)),this},_.prototype.prependOnceListener=function(F,D){return c(D),this.prependListener(F,w(this,F,D)),this},_.prototype.removeListener=function(F,D){var j,L,Z,ot,pt;if(c(D),L=this._events,L===void 0)return this;if(j=L[F],j===void 0)return this;if(j===D||j.listener===D)--this._eventsCount===0?this._events=Object.create(null):(delete L[F],L.removeListener&&this.emit("removeListener",F,j.listener||D));else if(typeof j!="function"){for(Z=-1,ot=j.length-1;ot>=0;ot--)if(j[ot]===D||j[ot].listener===D){pt=j[ot].listener,Z=ot;break}if(Z<0)return this;Z===0?j.shift():I(j,Z),j.length===1&&(L[F]=j[0]),L.removeListener!==void 0&&this.emit("removeListener",F,pt||D)}return this},_.prototype.off=_.prototype.removeListener,_.prototype.removeAllListeners=function(F){var D,j,L;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[F]),this;if(arguments.length===0){var Z=Object.keys(j),ot;for(L=0;L<Z.length;++L)ot=Z[L],ot!=="removeListener"&&this.removeAllListeners(ot);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(D=j[F],typeof D=="function")this.removeListener(F,D);else if(D!==void 0)for(L=D.length-1;L>=0;L--)this.removeListener(F,D[L]);return this};function y(C,F,D){var j=C._events;if(j===void 0)return[];var L=j[F];return L===void 0?[]:typeof L=="function"?D?[L.listener||L]:[L]:D?G(L):B(L,L.length)}_.prototype.listeners=function(F){return y(this,F,!0)},_.prototype.rawListeners=function(F){return y(this,F,!1)},_.listenerCount=function(C,F){return typeof C.listenerCount=="function"?C.listenerCount(F):M.call(C,F)},_.prototype.listenerCount=M;function M(C){var F=this._events;if(F!==void 0){var D=F[C];if(typeof D=="function")return 1;if(D!==void 0)return D.length}return 0}_.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function B(C,F){for(var D=new Array(F),j=0;j<F;++j)D[j]=C[j];return D}function I(C,F){for(;F+1<C.length;F++)C[F]=C[F+1];C.pop()}function G(C){for(var F=new Array(C.length),D=0;D<F.length;++D)F[D]=C[D].listener||C[D];return F}function P(C,F){return new Promise(function(D,j){function L(ot){C.removeListener(F,Z),j(ot)}function Z(){typeof C.removeListener=="function"&&C.removeListener("error",L),D([].slice.call(arguments))}N(C,F,Z,{once:!0}),F!=="error"&&v(C,L,{once:!0})})}function v(C,F,D){typeof C.on=="function"&&N(C,"error",F,D)}function N(C,F,D,j){if(typeof C.on=="function")j.once?C.once(F,D):C.on(F,D);else if(typeof C.addEventListener=="function")C.addEventListener(F,function L(Z){j.once&&C.removeEventListener(F,L),D(Z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return Mf.exports}var gp,F0;function U0(){return F0||(F0=1,gp=G0().EventEmitter),gp}var bp={},K0;function Bf(){return K0||(K0=1,function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},e={};e.byteLength=f,e.toByteArray=y,e.fromByteArray=I;for(var r=[],s=[],_=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],s[a.charCodeAt(c)]=c;s[45]=62,s[95]=63;function l(v){var N=v.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=v.indexOf("=");C===-1&&(C=N);var F=C===N?0:4-C%4;return[C,F]}function f(v){var N=l(v),C=N[0],F=N[1];return(C+F)*3/4-F}function w(v,N,C){return(N+C)*3/4-C}function y(v){var N,C=l(v),F=C[0],D=C[1],j=new _(w(v,F,D)),L=0,Z=D>0?F-4:F,ot;for(ot=0;ot<Z;ot+=4)N=s[v.charCodeAt(ot)]<<18|s[v.charCodeAt(ot+1)]<<12|s[v.charCodeAt(ot+2)]<<6|s[v.charCodeAt(ot+3)],j[L++]=N>>16&255,j[L++]=N>>8&255,j[L++]=N&255;return D===2&&(N=s[v.charCodeAt(ot)]<<2|s[v.charCodeAt(ot+1)]>>4,j[L++]=N&255),D===1&&(N=s[v.charCodeAt(ot)]<<10|s[v.charCodeAt(ot+1)]<<4|s[v.charCodeAt(ot+2)]>>2,j[L++]=N>>8&255,j[L++]=N&255),j}function M(v){return r[v>>18&63]+r[v>>12&63]+r[v>>6&63]+r[v&63]}function B(v,N,C){for(var F,D=[],j=N;j<C;j+=3)F=(v[j]<<16&16711680)+(v[j+1]<<8&65280)+(v[j+2]&255),D.push(M(F));return D.join("")}function I(v){for(var N,C=v.length,F=C%3,D=[],j=16383,L=0,Z=C-F;L<Z;L+=j)D.push(B(v,L,L+j>Z?Z:L+j));return F===1?(N=v[C-1],D.push(r[N>>2]+r[N<<4&63]+"==")):F===2&&(N=(v[C-2]<<8)+v[C-1],D.push(r[N>>10]+r[N>>4&63]+r[N<<2&63]+"=")),D.join("")}var G={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */G.read=function(v,N,C,F,D){var j,L,Z=D*8-F-1,ot=(1<<Z)-1,pt=ot>>1,Y=-7,At=C?D-1:0,Bt=C?-1:1,ft=v[N+At];for(At+=Bt,j=ft&(1<<-Y)-1,ft>>=-Y,Y+=Z;Y>0;j=j*256+v[N+At],At+=Bt,Y-=8);for(L=j&(1<<-Y)-1,j>>=-Y,Y+=F;Y>0;L=L*256+v[N+At],At+=Bt,Y-=8);if(j===0)j=1-pt;else{if(j===ot)return L?NaN:(ft?-1:1)*(1/0);L=L+Math.pow(2,F),j=j-pt}return(ft?-1:1)*L*Math.pow(2,j-F)},G.write=function(v,N,C,F,D,j){var L,Z,ot,pt=j*8-D-1,Y=(1<<pt)-1,At=Y>>1,Bt=D===23?Math.pow(2,-24)-Math.pow(2,-77):0,ft=F?0:j-1,wt=F?1:-1,Pt=N<0||N===0&&1/N<0?1:0;for(N=Math.abs(N),isNaN(N)||N===1/0?(Z=isNaN(N)?1:0,L=Y):(L=Math.floor(Math.log(N)/Math.LN2),N*(ot=Math.pow(2,-L))<1&&(L--,ot*=2),L+At>=1?N+=Bt/ot:N+=Bt*Math.pow(2,1-At),N*ot>=2&&(L++,ot/=2),L+At>=Y?(Z=0,L=Y):L+At>=1?(Z=(N*ot-1)*Math.pow(2,D),L=L+At):(Z=N*Math.pow(2,At-1)*Math.pow(2,D),L=0));D>=8;v[C+ft]=Z&255,ft+=wt,Z/=256,D-=8);for(L=L<<D|Z,pt+=D;pt>0;v[C+ft]=L&255,ft+=wt,L/=256,pt-=8);v[C+ft-wt]|=Pt*128};/*!
|
|
6
|
+
*/(function(n){const t=U_,e=nl,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=f,n.SlowBuffer=F,n.INSPECT_MAX_BYTES=50;const s=2147483647;n.kMaxLength=s;const{Uint8Array:_,ArrayBuffer:a,SharedArrayBuffer:c}=globalThis;f.TYPED_ARRAY_SUPPORT=u(),!f.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 u(){try{const E=new _(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,_.prototype),Object.setPrototypeOf(E,p),E.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function l(E){if(E>s)throw new RangeError('The value "'+E+'" is invalid for option "size"');const p=new _(E);return Object.setPrototypeOf(p,f.prototype),p}function f(E,p,d){if(typeof E=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(E)}return w(E,p,d)}f.poolSize=8192;function w(E,p,d){if(typeof E=="string")return I(E,p);if(a.isView(E))return P(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(ye(E,a)||E&&ye(E.buffer,a)||typeof c<"u"&&(ye(E,c)||E&&ye(E.buffer,c)))return v(E,p,d);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=E.valueOf&&E.valueOf();if(k!=null&&k!==E)return f.from(k,p,d);const q=N(E);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return f.from(E[Symbol.toPrimitive]("string"),p,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}f.from=function(E,p,d){return w(E,p,d)},Object.setPrototypeOf(f.prototype,_.prototype),Object.setPrototypeOf(f,_);function y(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function M(E,p,d){return y(E),E<=0?l(E):p!==void 0?typeof d=="string"?l(E).fill(p,d):l(E).fill(p):l(E)}f.alloc=function(E,p,d){return M(E,p,d)};function B(E){return y(E),l(E<0?0:C(E)|0)}f.allocUnsafe=function(E){return B(E)},f.allocUnsafeSlow=function(E){return B(E)};function I(E,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const d=D(E,p)|0;let k=l(d);const q=k.write(E,p);return q!==d&&(k=k.slice(0,q)),k}function G(E){const p=E.length<0?0:C(E.length)|0,d=l(p);for(let k=0;k<p;k+=1)d[k]=E[k]&255;return d}function P(E){if(ye(E,_)){const p=new _(E);return v(p.buffer,p.byteOffset,p.byteLength)}return G(E)}function v(E,p,d){if(p<0||E.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<p+(d||0))throw new RangeError('"length" is outside of buffer bounds');let k;return p===void 0&&d===void 0?k=new _(E):d===void 0?k=new _(E,p):k=new _(E,p,d),Object.setPrototypeOf(k,f.prototype),k}function N(E){if(f.isBuffer(E)){const p=C(E.length)|0,d=l(p);return d.length===0||E.copy(d,0,0,p),d}if(E.length!==void 0)return typeof E.length!="number"||Ue(E.length)?l(0):G(E);if(E.type==="Buffer"&&Array.isArray(E.data))return G(E.data)}function C(E){if(E>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return E|0}function F(E){return+E!=E&&(E=0),f.alloc(+E)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,d){if(ye(p,_)&&(p=f.from(p,p.offset,p.byteLength)),ye(d,_)&&(d=f.from(d,d.offset,d.byteLength)),!f.isBuffer(p)||!f.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===d)return 0;let k=p.length,q=d.length;for(let X=0,ct=Math.min(k,q);X<ct;++X)if(p[X]!==d[X]){k=p[X],q=d[X];break}return k<q?-1:q<k?1:0},f.isEncoding=function(p){switch(String(p).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}},f.concat=function(p,d){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return f.alloc(0);let k;if(d===void 0)for(d=0,k=0;k<p.length;++k)d+=p[k].length;const q=f.allocUnsafe(d);let X=0;for(k=0;k<p.length;++k){let ct=p[k];if(ye(ct,_))X+ct.length>q.length?(f.isBuffer(ct)||(ct=f.from(ct)),ct.copy(q,X)):_.prototype.set.call(q,ct,X);else if(f.isBuffer(ct))ct.copy(q,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ct.length}return q};function D(E,p){if(f.isBuffer(E))return E.length;if(a.isView(E)||ye(E,a))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);const d=E.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&d===0)return 0;let q=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Re(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return ae(E).length;default:if(q)return k?-1:Re(E).length;p=(""+p).toLowerCase(),q=!0}}f.byteLength=D;function j(E,p,d){let k=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,p>>>=0,d<=p))return"";for(E||(E="utf8");;)switch(E){case"hex":return J(this,p,d);case"utf8":case"utf-8":return Pt(this,p,d);case"ascii":return It(this,p,d);case"latin1":case"binary":return jt(this,p,d);case"base64":return wt(this,p,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,p,d);default:if(k)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),k=!0}}f.prototype._isBuffer=!0;function L(E,p,d){const k=E[p];E[p]=E[d],E[d]=k}f.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<p;d+=2)L(this,d,d+1);return this},f.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<p;d+=4)L(this,d,d+3),L(this,d+1,d+2);return this},f.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<p;d+=8)L(this,d,d+7),L(this,d+1,d+6),L(this,d+2,d+5),L(this,d+3,d+4);return this},f.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Pt(this,0,p):j.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(p){if(!f.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:f.compare(this,p)===0},f.prototype.inspect=function(){let p="";const d=n.INSPECT_MAX_BYTES;return p=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(p+=" ... "),"<Buffer "+p+">"},r&&(f.prototype[r]=f.prototype.inspect),f.prototype.compare=function(p,d,k,q,X){if(ye(p,_)&&(p=f.from(p,p.offset,p.byteLength)),!f.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(d===void 0&&(d=0),k===void 0&&(k=p?p.length:0),q===void 0&&(q=0),X===void 0&&(X=this.length),d<0||k>p.length||q<0||X>this.length)throw new RangeError("out of range index");if(q>=X&&d>=k)return 0;if(q>=X)return-1;if(d>=k)return 1;if(d>>>=0,k>>>=0,q>>>=0,X>>>=0,this===p)return 0;let ct=X-q,kt=k-d;const Jt=Math.min(ct,kt),$t=this.slice(q,X),Zt=p.slice(d,k);for(let Ht=0;Ht<Jt;++Ht)if($t[Ht]!==Zt[Ht]){ct=$t[Ht],kt=Zt[Ht];break}return ct<kt?-1:kt<ct?1:0};function Z(E,p,d,k,q){if(E.length===0)return-1;if(typeof d=="string"?(k=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,Ue(d)&&(d=q?0:E.length-1),d<0&&(d=E.length+d),d>=E.length){if(q)return-1;d=E.length-1}else if(d<0)if(q)d=0;else return-1;if(typeof p=="string"&&(p=f.from(p,k)),f.isBuffer(p))return p.length===0?-1:ot(E,p,d,k,q);if(typeof p=="number")return p=p&255,typeof _.prototype.indexOf=="function"?q?_.prototype.indexOf.call(E,p,d):_.prototype.lastIndexOf.call(E,p,d):ot(E,[p],d,k,q);throw new TypeError("val must be string, number or Buffer")}function ot(E,p,d,k,q){let X=1,ct=E.length,kt=p.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(E.length<2||p.length<2)return-1;X=2,ct/=2,kt/=2,d/=2}function Jt(Zt,Ht){return X===1?Zt[Ht]:Zt.readUInt16BE(Ht*X)}let $t;if(q){let Zt=-1;for($t=d;$t<ct;$t++)if(Jt(E,$t)===Jt(p,Zt===-1?0:$t-Zt)){if(Zt===-1&&(Zt=$t),$t-Zt+1===kt)return Zt*X}else Zt!==-1&&($t-=$t-Zt),Zt=-1}else for(d+kt>ct&&(d=ct-kt),$t=d;$t>=0;$t--){let Zt=!0;for(let Ht=0;Ht<kt;Ht++)if(Jt(E,$t+Ht)!==Jt(p,Ht)){Zt=!1;break}if(Zt)return $t}return-1}f.prototype.includes=function(p,d,k){return this.indexOf(p,d,k)!==-1},f.prototype.indexOf=function(p,d,k){return Z(this,p,d,k,!0)},f.prototype.lastIndexOf=function(p,d,k){return Z(this,p,d,k,!1)};function pt(E,p,d,k){d=Number(d)||0;const q=E.length-d;k?(k=Number(k),k>q&&(k=q)):k=q;const X=p.length;k>X/2&&(k=X/2);let ct;for(ct=0;ct<k;++ct){const kt=parseInt(p.substr(ct*2,2),16);if(Ue(kt))return ct;E[d+ct]=kt}return ct}function Y(E,p,d,k){return He(Re(p,E.length-d),E,d,k)}function At(E,p,d,k){return He(Ye(p),E,d,k)}function Bt(E,p,d,k){return He(ae(p),E,d,k)}function ft(E,p,d,k){return He(re(p,E.length-d),E,d,k)}f.prototype.write=function(p,d,k,q){if(d===void 0)q="utf8",k=this.length,d=0;else if(k===void 0&&typeof d=="string")q=d,k=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(k)?(k=k>>>0,q===void 0&&(q="utf8")):(q=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-d;if((k===void 0||k>X)&&(k=X),p.length>0&&(k<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let ct=!1;for(;;)switch(q){case"hex":return pt(this,p,d,k);case"utf8":case"utf-8":return Y(this,p,d,k);case"ascii":case"latin1":case"binary":return At(this,p,d,k);case"base64":return Bt(this,p,d,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,p,d,k);default:if(ct)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),ct=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(E,p,d){return p===0&&d===E.length?t.fromByteArray(E):t.fromByteArray(E.slice(p,d))}function Pt(E,p,d){d=Math.min(E.length,d);const k=[];let q=p;for(;q<d;){const X=E[q];let ct=null,kt=X>239?4:X>223?3:X>191?2:1;if(q+kt<=d){let Jt,$t,Zt,Ht;switch(kt){case 1:X<128&&(ct=X);break;case 2:Jt=E[q+1],(Jt&192)===128&&(Ht=(X&31)<<6|Jt&63,Ht>127&&(ct=Ht));break;case 3:Jt=E[q+1],$t=E[q+2],(Jt&192)===128&&($t&192)===128&&(Ht=(X&15)<<12|(Jt&63)<<6|$t&63,Ht>2047&&(Ht<55296||Ht>57343)&&(ct=Ht));break;case 4:Jt=E[q+1],$t=E[q+2],Zt=E[q+3],(Jt&192)===128&&($t&192)===128&&(Zt&192)===128&&(Ht=(X&15)<<18|(Jt&63)<<12|($t&63)<<6|Zt&63,Ht>65535&&Ht<1114112&&(ct=Ht))}}ct===null?(ct=65533,kt=1):ct>65535&&(ct-=65536,k.push(ct>>>10&1023|55296),ct=56320|ct&1023),k.push(ct),q+=kt}return Mt(k)}const Ct=4096;function Mt(E){const p=E.length;if(p<=Ct)return String.fromCharCode.apply(String,E);let d="",k=0;for(;k<p;)d+=String.fromCharCode.apply(String,E.slice(k,k+=Ct));return d}function It(E,p,d){let k="";d=Math.min(E.length,d);for(let q=p;q<d;++q)k+=String.fromCharCode(E[q]&127);return k}function jt(E,p,d){let k="";d=Math.min(E.length,d);for(let q=p;q<d;++q)k+=String.fromCharCode(E[q]);return k}function J(E,p,d){const k=E.length;(!p||p<0)&&(p=0),(!d||d<0||d>k)&&(d=k);let q="";for(let X=p;X<d;++X)q+=qe[E[X]];return q}function it(E,p,d){const k=E.slice(p,d);let q="";for(let X=0;X<k.length-1;X+=2)q+=String.fromCharCode(k[X]+k[X+1]*256);return q}f.prototype.slice=function(p,d){const k=this.length;p=~~p,d=d===void 0?k:~~d,p<0?(p+=k,p<0&&(p=0)):p>k&&(p=k),d<0?(d+=k,d<0&&(d=0)):d>k&&(d=k),d<p&&(d=p);const q=this.subarray(p,d);return Object.setPrototypeOf(q,f.prototype),q};function _t(E,p,d){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+p>d)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,d,k){p=p>>>0,d=d>>>0,k||_t(p,d,this.length);let q=this[p],X=1,ct=0;for(;++ct<d&&(X*=256);)q+=this[p+ct]*X;return q},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,d,k){p=p>>>0,d=d>>>0,k||_t(p,d,this.length);let q=this[p+--d],X=1;for(;d>0&&(X*=256);)q+=this[p+--d]*X;return q},f.prototype.readUint8=f.prototype.readUInt8=function(p,d){return p=p>>>0,d||_t(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,d){return p=p>>>0,d||_t(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,d){return p=p>>>0,d||_t(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,d){return p=p>>>0,d||_t(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(p,d){return p=p>>>0,d||_t(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readBigUInt64LE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=d+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,X=this[++p]+this[++p]*2**8+this[++p]*2**16+k*2**24;return BigInt(q)+(BigInt(X)<<BigInt(32))}),f.prototype.readBigUInt64BE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=d*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],X=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+k;return(BigInt(q)<<BigInt(32))+BigInt(X)}),f.prototype.readIntLE=function(p,d,k){p=p>>>0,d=d>>>0,k||_t(p,d,this.length);let q=this[p],X=1,ct=0;for(;++ct<d&&(X*=256);)q+=this[p+ct]*X;return X*=128,q>=X&&(q-=Math.pow(2,8*d)),q},f.prototype.readIntBE=function(p,d,k){p=p>>>0,d=d>>>0,k||_t(p,d,this.length);let q=d,X=1,ct=this[p+--q];for(;q>0&&(X*=256);)ct+=this[p+--q]*X;return X*=128,ct>=X&&(ct-=Math.pow(2,8*d)),ct},f.prototype.readInt8=function(p,d){return p=p>>>0,d||_t(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,d){p=p>>>0,d||_t(p,2,this.length);const k=this[p]|this[p+1]<<8;return k&32768?k|4294901760:k},f.prototype.readInt16BE=function(p,d){p=p>>>0,d||_t(p,2,this.length);const k=this[p+1]|this[p]<<8;return k&32768?k|4294901760:k},f.prototype.readInt32LE=function(p,d){return p=p>>>0,d||_t(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,d){return p=p>>>0,d||_t(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readBigInt64LE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(k<<24);return(BigInt(q)<<BigInt(32))+BigInt(d+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),f.prototype.readBigInt64BE=ge(function(p){p=p>>>0,vt(p,"offset");const d=this[p],k=this[p+7];(d===void 0||k===void 0)&&Nt(p,this.length-8);const q=(d<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(q)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+k)}),f.prototype.readFloatLE=function(p,d){return p=p>>>0,d||_t(p,4,this.length),e.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,d){return p=p>>>0,d||_t(p,4,this.length),e.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,d){return p=p>>>0,d||_t(p,8,this.length),e.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,d){return p=p>>>0,d||_t(p,8,this.length),e.read(this,p,!1,52,8)};function St(E,p,d,k,q,X){if(!f.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>q||p<X)throw new RangeError('"value" argument is out of bounds');if(d+k>E.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,d,k,q){if(p=+p,d=d>>>0,k=k>>>0,!q){const kt=Math.pow(2,8*k)-1;St(this,p,d,k,kt,0)}let X=1,ct=0;for(this[d]=p&255;++ct<k&&(X*=256);)this[d+ct]=p/X&255;return d+k},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,d,k,q){if(p=+p,d=d>>>0,k=k>>>0,!q){const kt=Math.pow(2,8*k)-1;St(this,p,d,k,kt,0)}let X=k-1,ct=1;for(this[d+X]=p&255;--X>=0&&(ct*=256);)this[d+X]=p/ct&255;return d+k},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,1,255,0),this[d]=p&255,d+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,65535,0),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,65535,0),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,4294967295,0),this[d+3]=p>>>24,this[d+2]=p>>>16,this[d+1]=p>>>8,this[d]=p&255,d+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,4294967295,0),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4};function H(E,p,d,k,q){Ot(p,k,q,E,d,7);let X=Number(p&BigInt(4294967295));E[d++]=X,X=X>>8,E[d++]=X,X=X>>8,E[d++]=X,X=X>>8,E[d++]=X;let ct=Number(p>>BigInt(32)&BigInt(4294967295));return E[d++]=ct,ct=ct>>8,E[d++]=ct,ct=ct>>8,E[d++]=ct,ct=ct>>8,E[d++]=ct,d}function V(E,p,d,k,q){Ot(p,k,q,E,d,7);let X=Number(p&BigInt(4294967295));E[d+7]=X,X=X>>8,E[d+6]=X,X=X>>8,E[d+5]=X,X=X>>8,E[d+4]=X;let ct=Number(p>>BigInt(32)&BigInt(4294967295));return E[d+3]=ct,ct=ct>>8,E[d+2]=ct,ct=ct>>8,E[d+1]=ct,ct=ct>>8,E[d]=ct,d+8}f.prototype.writeBigUInt64LE=ge(function(p,d=0){return H(this,p,d,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ge(function(p,d=0){return V(this,p,d,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(p,d,k,q){if(p=+p,d=d>>>0,!q){const Jt=Math.pow(2,8*k-1);St(this,p,d,k,Jt-1,-Jt)}let X=0,ct=1,kt=0;for(this[d]=p&255;++X<k&&(ct*=256);)p<0&&kt===0&&this[d+X-1]!==0&&(kt=1),this[d+X]=(p/ct>>0)-kt&255;return d+k},f.prototype.writeIntBE=function(p,d,k,q){if(p=+p,d=d>>>0,!q){const Jt=Math.pow(2,8*k-1);St(this,p,d,k,Jt-1,-Jt)}let X=k-1,ct=1,kt=0;for(this[d+X]=p&255;--X>=0&&(ct*=256);)p<0&&kt===0&&this[d+X+1]!==0&&(kt=1),this[d+X]=(p/ct>>0)-kt&255;return d+k},f.prototype.writeInt8=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,1,127,-128),p<0&&(p=255+p+1),this[d]=p&255,d+1},f.prototype.writeInt16LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,32767,-32768),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeInt16BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,2,32767,-32768),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeInt32LE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,2147483647,-2147483648),this[d]=p&255,this[d+1]=p>>>8,this[d+2]=p>>>16,this[d+3]=p>>>24,d+4},f.prototype.writeInt32BE=function(p,d,k){return p=+p,d=d>>>0,k||St(this,p,d,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4},f.prototype.writeBigInt64LE=ge(function(p,d=0){return H(this,p,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ge(function(p,d=0){return V(this,p,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function tt(E,p,d,k,q,X){if(d+k>E.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function ut(E,p,d,k,q){return p=+p,d=d>>>0,q||tt(E,p,d,4),e.write(E,p,d,k,23,4),d+4}f.prototype.writeFloatLE=function(p,d,k){return ut(this,p,d,!0,k)},f.prototype.writeFloatBE=function(p,d,k){return ut(this,p,d,!1,k)};function dt(E,p,d,k,q){return p=+p,d=d>>>0,q||tt(E,p,d,8),e.write(E,p,d,k,52,8),d+8}f.prototype.writeDoubleLE=function(p,d,k){return dt(this,p,d,!0,k)},f.prototype.writeDoubleBE=function(p,d,k){return dt(this,p,d,!1,k)},f.prototype.copy=function(p,d,k,q){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(k||(k=0),!q&&q!==0&&(q=this.length),d>=p.length&&(d=p.length),d||(d=0),q>0&&q<k&&(q=k),q===k||p.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),p.length-d<q-k&&(q=p.length-d+k);const X=q-k;return this===p&&typeof _.prototype.copyWithin=="function"?this.copyWithin(d,k,q):_.prototype.set.call(p,this.subarray(k,q),d),X},f.prototype.fill=function(p,d,k,q){if(typeof p=="string"){if(typeof d=="string"?(q=d,d=0,k=this.length):typeof k=="string"&&(q=k,k=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!f.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(p.length===1){const ct=p.charCodeAt(0);(q==="utf8"&&ct<128||q==="latin1")&&(p=ct)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(d<0||this.length<d||this.length<k)throw new RangeError("Out of range index");if(k<=d)return this;d=d>>>0,k=k===void 0?this.length:k>>>0,p||(p=0);let X;if(typeof p=="number")for(X=d;X<k;++X)this[X]=p;else{const ct=f.isBuffer(p)?p:f.from(p,q),kt=ct.length;if(kt===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(X=0;X<k-d;++X)this[X+d]=ct[X%kt]}return this};const x={};function O(E,p,d){x[E]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${E}]`,this.stack,delete this.name}get code(){return E}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${E}]: ${this.message}`}}}O("ERR_BUFFER_OUT_OF_BOUNDS",function(E){return E?`${E} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(E,p){return`The "${E}" argument must be of type number. Received type ${typeof p}`},TypeError),O("ERR_OUT_OF_RANGE",function(E,p,d){let k=`The value of "${E}" is out of range.`,q=d;return Number.isInteger(d)&&Math.abs(d)>2**32?q=nt(String(d)):typeof d=="bigint"&&(q=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(q=nt(q)),q+="n"),k+=` It must be ${p}. Received ${q}`,k},RangeError);function nt(E){let p="",d=E.length;const k=E[0]==="-"?1:0;for(;d>=k+4;d-=3)p=`_${E.slice(d-3,d)}${p}`;return`${E.slice(0,d)}${p}`}function bt(E,p,d){vt(p,"offset"),(E[p]===void 0||E[p+d]===void 0)&&Nt(p,E.length-(d+1))}function Ot(E,p,d,k,q,X){if(E>d||E<p){const ct=typeof p=="bigint"?"n":"";let kt;throw p===0||p===BigInt(0)?kt=`>= 0${ct} and < 2${ct} ** ${(X+1)*8}${ct}`:kt=`>= -(2${ct} ** ${(X+1)*8-1}${ct}) and < 2 ** ${(X+1)*8-1}${ct}`,new x.ERR_OUT_OF_RANGE("value",kt,E)}bt(k,q,X)}function vt(E,p){if(typeof E!="number")throw new x.ERR_INVALID_ARG_TYPE(p,"number",E)}function Nt(E,p,d){throw Math.floor(E)!==E?(vt(E,d),new x.ERR_OUT_OF_RANGE("offset","an integer",E)):p<0?new x.ERR_BUFFER_OUT_OF_BOUNDS:new x.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,E)}const _e=/[^+/0-9A-Za-z-_]/g;function at(E){if(E=E.split("=")[0],E=E.trim().replace(_e,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Re(E,p){p=p||1/0;let d;const k=E.length;let q=null;const X=[];for(let ct=0;ct<k;++ct){if(d=E.charCodeAt(ct),d>55295&&d<57344){if(!q){if(d>56319){(p-=3)>-1&&X.push(239,191,189);continue}else if(ct+1===k){(p-=3)>-1&&X.push(239,191,189);continue}q=d;continue}if(d<56320){(p-=3)>-1&&X.push(239,191,189),q=d;continue}d=(q-55296<<10|d-56320)+65536}else q&&(p-=3)>-1&&X.push(239,191,189);if(q=null,d<128){if((p-=1)<0)break;X.push(d)}else if(d<2048){if((p-=2)<0)break;X.push(d>>6|192,d&63|128)}else if(d<65536){if((p-=3)<0)break;X.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((p-=4)<0)break;X.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return X}function Ye(E){const p=[];for(let d=0;d<E.length;++d)p.push(E.charCodeAt(d)&255);return p}function re(E,p){let d,k,q;const X=[];for(let ct=0;ct<E.length&&!((p-=2)<0);++ct)d=E.charCodeAt(ct),k=d>>8,q=d%256,X.push(q),X.push(k);return X}function ae(E){return t.toByteArray(at(E))}function He(E,p,d,k){let q;for(q=0;q<k&&!(q+d>=p.length||q>=E.length);++q)p[q+d]=E[q];return q}function ye(E,p){return E instanceof p||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===p.name}function Ue(E){return E!==E}const qe=function(){const E="0123456789abcdef",p=new Array(256);for(let d=0;d<16;++d){const k=d*16;for(let q=0;q<16;++q)p[k+q]=E[d]+E[q]}return p}();function ge(E){return typeof BigInt>"u"?gr:E}function gr(){throw new Error("BigInt not supported")}})(Ns);const yr=Ns.Buffer,Vm="6.13.4";function Ym(n,t,e){const r=t.split("|").map(_=>_.trim());for(let _=0;_<r.length;_++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof n===t)return}const s=new Error(`invalid value for type ${t}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${e}`,s.value=n,s}async function Ie(n){const t=Object.keys(n);return(await Promise.all(t.map(r=>Promise.resolve(n[r])))).reduce((r,s,_)=>(r[t[_]]=s,r),{})}function xt(n,t,e){for(let r in t){let s=t[r];const _=e?e[r]:null;_&&Ym(s,_,r),Object.defineProperty(n,r,{enumerable:!0,value:s,writable:!1})}}function D_(n){if(n==null)return"null";if(Array.isArray(n))return"[ "+n.map(D_).join(", ")+" ]";if(n instanceof Uint8Array){const t="0123456789abcdef";let e="0x";for(let r=0;r<n.length;r++)e+=t[n[r]>>4],e+=t[n[r]&15];return e}if(typeof n=="object"&&typeof n.toJSON=="function")return D_(n.toJSON());switch(typeof n){case"boolean":case"symbol":return n.toString();case"bigint":return BigInt(n).toString();case"number":return n.toString();case"string":return JSON.stringify(n);case"object":{const t=Object.keys(n);return t.sort(),"{ "+t.map(e=>`${D_(e)}: ${D_(n[e])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ee(n,t){return n&&n.code===t}function il(n){return Ee(n,"CALL_EXCEPTION")}function ue(n,t,e){let r=n;{const _=[];if(e){if("message"in e||"code"in e||"name"in e)throw new Error(`value will overwrite populated values: ${D_(e)}`);for(const a in e){if(a==="shortMessage")continue;const c=e[a];_.push(a+"="+D_(c))}}_.push(`code=${t}`),_.push(`version=${Vm}`),_.length&&(n+=" ("+_.join(", ")+")")}let s;switch(t){case"INVALID_ARGUMENT":s=new TypeError(n);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(n);break;default:s=new Error(n)}return xt(s,{code:t}),e&&Object.assign(s,e),s.shortMessage==null&&xt(s,{shortMessage:r}),s}function ht(n,t,e,r){if(!n)throw ue(t,e,r)}function W(n,t,e,r){ht(n,t,"INVALID_ARGUMENT",{argument:e,value:r})}function Bw(n,t,e){e==null&&(e=""),e&&(e=": "+e),ht(n>=t,"missing arguemnt"+e,"MISSING_ARGUMENT",{count:n,expectedCount:t}),ht(n<=t,"too many arguments"+e,"UNEXPECTED_ARGUMENT",{count:n,expectedCount:t})}["NFD","NFC","NFKD","NFKC"].reduce((n,t)=>{try{if("test".normalize(t)!=="test")throw new Error("bad");if(t==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");n.push(t)}catch{}return n},[]);function Du(n,t,e){if(e==null&&(e=""),n!==t){let r=e,s="new";e&&(r+=".",s+=" "+e),ht(!1,`private constructor; use ${r}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function xw(n,t,e){if(n instanceof Uint8Array)return e?new Uint8Array(n):n;if(typeof n=="string"&&n.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const r=new Uint8Array((n.length-2)/2);let s=2;for(let _=0;_<r.length;_++)r[_]=parseInt(n.substring(s,s+2),16),s+=2;return r}W(!1,"invalid BytesLike value",t||"value",n)}function qt(n,t){return xw(n,t,!1)}function Ne(n,t){return xw(n,t,!0)}function ee(n,t){return!(typeof n!="string"||!n.match(/^0x[0-9A-Fa-f]*$/)||typeof t=="number"&&n.length!==2+2*t||t===!0&&n.length%2!==0)}function sl(n){return ee(n,!0)||n instanceof Uint8Array}const Cw="0123456789abcdef";function Et(n){const t=qt(n);let e="0x";for(let r=0;r<t.length;r++){const s=t[r];e+=Cw[(s&240)>>4]+Cw[s&15]}return e}function le(n){return"0x"+n.map(t=>Et(t).substring(2)).join("")}function L_(n){return ee(n,!0)?(n.length-2)/2:qt(n).length}function fe(n,t,e){const r=qt(n);return e!=null&&e>r.length&&ht(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:e}),Et(r.slice(t??0,e??r.length))}function Iw(n,t,e){const r=qt(n);ht(t>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:t,offset:t+1});const s=new Uint8Array(t);return s.fill(0),e?s.set(r,t-r.length):s.set(r,0),Et(s)}function Os(n,t){return Iw(n,t,!0)}function Hm(n,t){return Iw(n,t,!1)}const Lu=BigInt(0),Ar=BigInt(1),_l=9007199254740991;function qm(n,t){const e=ju(n,"value"),r=BigInt(Kt(t,"width"));if(ht(e>>r===Lu,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:n}),e>>r-Ar){const s=(Ar<<r)-Ar;return-((~e&s)+Ar)}return e}function Nw(n,t){let e=zt(n,"value");const r=BigInt(Kt(t,"width")),s=Ar<<r-Ar;if(e<Lu){e=-e,ht(e<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:n});const _=(Ar<<r)-Ar;return(~e&_)+Ar}else ht(e<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:n});return e}function Lc(n,t){const e=ju(n,"value"),r=BigInt(Kt(t,"bits"));return e&(Ar<<r)-Ar}function zt(n,t){switch(typeof n){case"bigint":return n;case"number":return W(Number.isInteger(n),"underflow",t||"value",n),W(n>=-9007199254740991&&n<=_l,"overflow",t||"value",n),BigInt(n);case"string":try{if(n==="")throw new Error("empty string");return n[0]==="-"&&n[1]!=="-"?-BigInt(n.substring(1)):BigInt(n)}catch(e){W(!1,`invalid BigNumberish string: ${e.message}`,t||"value",n)}}W(!1,"invalid BigNumberish value",t||"value",n)}function ju(n,t){const e=zt(n,t);return ht(e>=Lu,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:n}),e}const Ow="0123456789abcdef";function ol(n){if(n instanceof Uint8Array){let t="0x0";for(const e of n)t+=Ow[e>>4],t+=Ow[e&15];return BigInt(t)}return zt(n)}function Kt(n,t){switch(typeof n){case"bigint":return W(n>=-9007199254740991&&n<=_l,"overflow",t||"value",n),Number(n);case"number":return W(Number.isInteger(n),"underflow",t||"value",n),W(n>=-9007199254740991&&n<=_l,"overflow",t||"value",n),n;case"string":try{if(n==="")throw new Error("empty string");return Kt(BigInt(n),t)}catch(e){W(!1,`invalid numeric string: ${e.message}`,t||"value",n)}}W(!1,"invalid numeric value",t||"value",n)}function Qm(n){return Kt(ol(n))}function rs(n,t){let r=ju(n,"value").toString(16);if(t==null)r.length%2&&(r="0"+r);else{const s=Kt(t,"width");for(ht(s*2>=r.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:n});r.length<s*2;)r="0"+r}return"0x"+r}function Oe(n){const t=ju(n,"value");if(t===Lu)return new Uint8Array([]);let e=t.toString(16);e.length%2&&(e="0"+e);const r=new Uint8Array(e.length/2);for(let s=0;s<r.length;s++){const _=s*2;r[s]=parseInt(e.substring(_,_+2),16)}return r}function j_(n){let t=Et(sl(n)?n:Oe(n)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return t===""&&(t="0"),"0x"+t}const kw="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";BigInt(0);const Tw=BigInt(58);function Wm(n){const t=qt(n);let e=ol(t),r="";for(;e;)r=kw[Number(e%Tw)]+r,e/=Tw;for(let s=0;s<t.length&&!t[s];s++)r=kw[0]+r;return r}function Jm(n){n=atob(n);const t=new Uint8Array(n.length);for(let e=0;e<n.length;e++)t[e]=n.charCodeAt(e);return qt(t)}function $m(n){const t=qt(n);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}class Gw{constructor(t,e,r){$(this,"filter");$(this,"emitter");rt(this,$a);K(this,$a,e),xt(this,{emitter:t,filter:r})}async removeListener(){m(this,$a)!=null&&await this.emitter.off(this.filter,m(this,$a))}}$a=new WeakMap;function Zm(n,t,e,r,s){W(!1,`invalid codepoint at offset ${t}; ${n}`,"bytes",e)}function Fw(n,t,e,r,s){if(n==="BAD_PREFIX"||n==="UNEXPECTED_CONTINUE"){let _=0;for(let a=t+1;a<e.length&&e[a]>>6===2;a++)_++;return _}return n==="OVERRUN"?e.length-t-1:0}function Xm(n,t,e,r,s){return n==="OVERLONG"?(W(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),r.push(s),0):(r.push(65533),Fw(n,t,e))}const tS=Object.freeze({error:Zm,ignore:Fw,replace:Xm});function eS(n,t){t==null&&(t=tS.error);const e=qt(n,"bytes"),r=[];let s=0;for(;s<e.length;){const _=e[s++];if(_>>7===0){r.push(_);continue}let a=null,c=null;if((_&224)===192)a=1,c=127;else if((_&240)===224)a=2,c=2047;else if((_&248)===240)a=3,c=65535;else{(_&192)===128?s+=t("UNEXPECTED_CONTINUE",s-1,e,r):s+=t("BAD_PREFIX",s-1,e,r);continue}if(s-1+a>=e.length){s+=t("OVERRUN",s-1,e,r);continue}let u=_&(1<<8-a-1)-1;for(let l=0;l<a;l++){let f=e[s];if((f&192)!=128){s+=t("MISSING_CONTINUE",s,e,r),u=null;break}u=u<<6|f&63,s++}if(u!==null){if(u>1114111){s+=t("OUT_OF_RANGE",s-1-a,e,r,u);continue}if(u>=55296&&u<=57343){s+=t("UTF16_SURROGATE",s-1-a,e,r,u);continue}if(u<=c){s+=t("OVERLONG",s-1-a,e,r,u);continue}r.push(u)}}return r}function Ci(n,t){W(typeof n=="string","invalid string value","str",n);let e=[];for(let r=0;r<n.length;r++){const s=n.charCodeAt(r);if(s<128)e.push(s);else if(s<2048)e.push(s>>6|192),e.push(s&63|128);else if((s&64512)==55296){r++;const _=n.charCodeAt(r);W(r<n.length&&(_&64512)===56320,"invalid surrogate pair","str",n);const a=65536+((s&1023)<<10)+(_&1023);e.push(a>>18|240),e.push(a>>12&63|128),e.push(a>>6&63|128),e.push(a&63|128)}else e.push(s>>12|224),e.push(s>>6&63|128),e.push(s&63|128)}return new Uint8Array(e)}function rS(n){return n.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))).join("")}function Vu(n,t){return rS(eS(n,t))}function Uw(n){async function t(e,r){ht(r==null||!r.cancelled,"request cancelled before sending","CANCELLED");const s=e.url.split(":")[0].toLowerCase();ht(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),ht(s==="https"||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let _=null;const a=new AbortController,c=setTimeout(()=>{_=ue("request timeout","TIMEOUT"),a.abort()},e.timeout);r&&r.addListener(()=>{_=ue("request cancelled","CANCELLED"),a.abort()});const u={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:a.signal};let l;try{l=await fetch(e.url,u)}catch(M){throw clearTimeout(c),_||M}clearTimeout(c);const f={};l.headers.forEach((M,B)=>{f[B.toLowerCase()]=M});const w=await l.arrayBuffer(),y=w==null?null:new Uint8Array(w);return{statusCode:l.status,statusMessage:l.statusText,headers:f,body:y}}return t}const nS=12,iS=250;let Kw=Uw();const sS=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_S=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let al=!1;async function Dw(n,t){try{const e=n.match(sS);if(!e)throw new Error("invalid data");return new ns(200,"OK",{"content-type":e[1]||"text/plain"},e[2]?Jm(e[3]):aS(e[3]))}catch{return new ns(599,"BAD REQUEST (invalid data: URI)",{},null,new Ii(n))}}function Lw(n){async function t(e,r){try{const s=e.match(_S);if(!s)throw new Error("invalid link");return new Ii(`${n}${s[2]}`)}catch{return new ns(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Ii(e))}}return t}const Yu={data:Dw,ipfs:Lw("https://gateway.ipfs.io/ipfs/")},jw=new WeakMap;class oS{constructor(t){rt(this,w_);rt(this,hs);K(this,w_,[]),K(this,hs,!1),jw.set(t,()=>{if(!m(this,hs)){K(this,hs,!0);for(const e of m(this,w_))setTimeout(()=>{e()},0);K(this,w_,[])}})}addListener(t){ht(!m(this,hs),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),m(this,w_).push(t)}get cancelled(){return m(this,hs)}checkSignal(){ht(!this.cancelled,"cancelled","CANCELLED",{})}}w_=new WeakMap,hs=new WeakMap;function Hu(n){if(n==null)throw new Error("missing signal; should not happen");return n.checkSignal(),n}const Lf=class Lf{constructor(t){rt(this,y_);rt(this,Za);rt(this,Xa);rt(this,Br);rt(this,Li);rt(this,tc);rt(this,ec);rt(this,Se);rt(this,$e);rt(this,ji);rt(this,d_);rt(this,g_);rt(this,b_);rt(this,Si);rt(this,xr);rt(this,ws);K(this,ec,String(t)),K(this,Za,!1),K(this,Xa,!0),K(this,Br,{}),K(this,Li,""),K(this,tc,3e5),K(this,xr,{slotInterval:iS,maxAttempts:nS}),K(this,ws,null)}get url(){return m(this,ec)}set url(t){K(this,ec,String(t))}get body(){return m(this,Se)==null?null:new Uint8Array(m(this,Se))}set body(t){if(t==null)K(this,Se,void 0),K(this,$e,void 0);else if(typeof t=="string")K(this,Se,Ci(t)),K(this,$e,"text/plain");else if(t instanceof Uint8Array)K(this,Se,t),K(this,$e,"application/octet-stream");else if(typeof t=="object")K(this,Se,Ci(JSON.stringify(t))),K(this,$e,"application/json");else throw new Error("invalid body")}hasBody(){return m(this,Se)!=null}get method(){return m(this,Li)?m(this,Li):this.hasBody()?"POST":"GET"}set method(t){t==null&&(t=""),K(this,Li,String(t).toUpperCase())}get headers(){const t=Object.assign({},m(this,Br));return m(this,ji)&&(t.authorization=`Basic ${$m(Ci(m(this,ji)))}`),this.allowGzip&&(t["accept-encoding"]="gzip"),t["content-type"]==null&&m(this,$e)&&(t["content-type"]=m(this,$e)),this.body&&(t["content-length"]=String(this.body.length)),t}getHeader(t){return this.headers[t.toLowerCase()]}setHeader(t,e){m(this,Br)[String(t).toLowerCase()]=String(e)}clearHeaders(){K(this,Br,{})}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r<e.length){const s=e[r++];return{value:[s,t[s]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return m(this,ji)||null}setCredentials(t,e){W(!t.match(/:/),"invalid basic authentication username","username","[REDACTED]"),K(this,ji,`${t}:${e}`)}get allowGzip(){return m(this,Xa)}set allowGzip(t){K(this,Xa,!!t)}get allowInsecureAuthentication(){return!!m(this,Za)}set allowInsecureAuthentication(t){K(this,Za,!!t)}get timeout(){return m(this,tc)}set timeout(t){W(t>=0,"timeout must be non-zero","timeout",t),K(this,tc,t)}get preflightFunc(){return m(this,d_)||null}set preflightFunc(t){K(this,d_,t)}get processFunc(){return m(this,g_)||null}set processFunc(t){K(this,g_,t)}get retryFunc(){return m(this,b_)||null}set retryFunc(t){K(this,b_,t)}get getUrlFunc(){return m(this,ws)||Kw}set getUrlFunc(t){K(this,ws,t)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${m(this,Se)?Et(m(this,Se)):"null"}>`}setThrottleParams(t){t.slotInterval!=null&&(m(this,xr).slotInterval=t.slotInterval),t.maxAttempts!=null&&(m(this,xr).maxAttempts=t.maxAttempts)}send(){return ht(m(this,Si)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),K(this,Si,new oS(this)),mt(this,y_,Fu).call(this,0,Vw()+this.timeout,0,this,new ns(0,"",{},null,this))}cancel(){ht(m(this,Si)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const t=jw.get(this);if(!t)throw new Error("missing signal; should not happen");t()}redirect(t){const e=this.url.split(":")[0].toLowerCase(),r=t.split(":")[0].toLowerCase();ht(this.method==="GET"&&(e!=="https"||r!=="http")&&t.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(t)})`});const s=new Lf(t);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,K(s,Br,Object.assign({},m(this,Br))),m(this,Se)&&K(s,Se,new Uint8Array(m(this,Se))),K(s,$e,m(this,$e)),s}clone(){const t=new Lf(this.url);return K(t,Li,m(this,Li)),m(this,Se)&&K(t,Se,m(this,Se)),K(t,$e,m(this,$e)),K(t,Br,Object.assign({},m(this,Br))),K(t,ji,m(this,ji)),this.allowGzip&&(t.allowGzip=!0),t.timeout=this.timeout,this.allowInsecureAuthentication&&(t.allowInsecureAuthentication=!0),K(t,d_,m(this,d_)),K(t,g_,m(this,g_)),K(t,b_,m(this,b_)),K(t,xr,Object.assign({},m(this,xr))),K(t,ws,m(this,ws)),t}static lockConfig(){al=!0}static getGateway(t){return Yu[t.toLowerCase()]||null}static registerGateway(t,e){if(t=t.toLowerCase(),t==="http"||t==="https")throw new Error(`cannot intercept ${t}; use registerGetUrl`);if(al)throw new Error("gateways locked");Yu[t]=e}static registerGetUrl(t){if(al)throw new Error("gateways locked");Kw=t}static createGetUrlFunc(t){return Uw()}static createDataGateway(){return Dw}static createIpfsGatewayFunc(t){return Lw(t)}};Za=new WeakMap,Xa=new WeakMap,Br=new WeakMap,Li=new WeakMap,tc=new WeakMap,ec=new WeakMap,Se=new WeakMap,$e=new WeakMap,ji=new WeakMap,d_=new WeakMap,g_=new WeakMap,b_=new WeakMap,Si=new WeakMap,xr=new WeakMap,ws=new WeakMap,y_=new WeakSet,Fu=async function(t,e,r,s,_){var f,w,y;if(t>=m(this,xr).maxAttempts)return _.makeServerError("exceeded maximum retry limit");ht(Vw()<=e,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),r>0&&await cS(r);let a=this.clone();const c=(a.url.split(":")[0]||"").toLowerCase();if(c in Yu){const M=await Yu[c](a.url,Hu(m(s,Si)));if(M instanceof ns){let B=M;if(this.processFunc){Hu(m(s,Si));try{B=await this.processFunc(a,B)}catch(I){(I.throttle==null||typeof I.stall!="number")&&B.makeServerError("error in post-processing function",I).assertOk()}}return B}a=M}this.preflightFunc&&(a=await this.preflightFunc(a));const u=await this.getUrlFunc(a,Hu(m(s,Si)));let l=new ns(u.statusCode,u.statusMessage,u.headers,u.body,s);if(l.statusCode===301||l.statusCode===302){try{const M=l.headers.location||"";return mt(f=a.redirect(M),y_,Fu).call(f,t+1,e,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(a,l,t))){const M=l.headers["retry-after"];let B=m(this,xr).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return typeof M=="string"&&M.match(/^[1-9][0-9]*$/)&&(B=parseInt(M)),mt(w=a.clone(),y_,Fu).call(w,t+1,e,B,s,l)}if(this.processFunc){Hu(m(s,Si));try{l=await this.processFunc(a,l)}catch(M){(M.throttle==null||typeof M.stall!="number")&&l.makeServerError("error in post-processing function",M).assertOk();let B=m(this,xr).slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return M.stall>=0&&(B=M.stall),mt(y=a.clone(),y_,Fu).call(y,t+1,e,B,s,l)}}return l};let Ii=Lf;const $h=class $h{constructor(t,e,r,s,_){rt(this,Su);rt(this,Ru);rt(this,Eu);rt(this,Ze);rt(this,rc);rt(this,A_);K(this,Su,t),K(this,Ru,e),K(this,Eu,Object.keys(r).reduce((a,c)=>(a[c.toLowerCase()]=String(r[c]),a),{})),K(this,Ze,s==null?null:new Uint8Array(s)),K(this,rc,_||null),K(this,A_,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${m(this,Ze)?Et(m(this,Ze)):"null"}>`}get statusCode(){return m(this,Su)}get statusMessage(){return m(this,Ru)}get headers(){return Object.assign({},m(this,Eu))}get body(){return m(this,Ze)==null?null:new Uint8Array(m(this,Ze))}get bodyText(){try{return m(this,Ze)==null?"":Vu(m(this,Ze))}catch{ht(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{ht(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r<e.length){const s=e[r++];return{value:[s,t[s]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(t,e){let r;t?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${t})`:(t=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${t})`);const s=new $h(599,r,this.headers,this.body,m(this,rc)||void 0);return K(s,A_,{message:t,error:e}),s}throwThrottleError(t,e){e==null?e=-1:W(Number.isInteger(e)&&e>=0,"invalid stall timeout","stall",e);const r=new Error(t||"throttling requests");throw xt(r,{stall:e,throttle:!0}),r}getHeader(t){return this.headers[t.toLowerCase()]}hasBody(){return m(this,Ze)!=null}get request(){return m(this,rc)}ok(){return m(this,A_).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:t,error:e}=m(this,A_);t===""&&(t=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let s=null;try{m(this,Ze)&&(s=Vu(m(this,Ze)))}catch{}ht(!1,t,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:e,info:{requestUrl:r,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};Su=new WeakMap,Ru=new WeakMap,Eu=new WeakMap,Ze=new WeakMap,rc=new WeakMap,A_=new WeakMap;let ns=$h;function Vw(){return new Date().getTime()}function aS(n){return Ci(n.replace(/%([0-9a-f][0-9a-f])/gi,(t,e)=>String.fromCharCode(parseInt(e,16))))}function cS(n){return new Promise(t=>setTimeout(t,n))}function uS(n){let t=n.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function Yw(n,t,e){let r=0;for(let s=0;s<e;s++)r=r*256+n[t+s];return r}function Hw(n,t,e,r){const s=[];for(;e<t+1+r;){const _=qw(n,e);s.push(_.result),e+=_.consumed,ht(e<=t+1+r,"child data too short","BUFFER_OVERRUN",{buffer:n,length:r,offset:t})}return{consumed:1+r,result:s}}function qw(n,t){ht(n.length!==0,"data too short","BUFFER_OVERRUN",{buffer:n,length:0,offset:1});const e=r=>{ht(r<=n.length,"data short segment too short","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r})};if(n[t]>=248){const r=n[t]-247;e(t+1+r);const s=Yw(n,t+1,r);return e(t+1+r+s),Hw(n,t,t+1+r,r+s)}else if(n[t]>=192){const r=n[t]-192;return e(t+1+r),Hw(n,t,t+1,r)}else if(n[t]>=184){const r=n[t]-183;e(t+1+r);const s=Yw(n,t+1,r);e(t+1+r+s);const _=Et(n.slice(t+1+r,t+1+r+s));return{consumed:1+r+s,result:_}}else if(n[t]>=128){const r=n[t]-128;e(t+1+r);const s=Et(n.slice(t+1,t+1+r));return{consumed:1+r,result:s}}return{consumed:1,result:uS(n[t])}}function qu(n){const t=qt(n,"data"),e=qw(t,0);return W(e.consumed===t.length,"unexpected junk after rlp payload","data",n),e.result}function Qw(n){const t=[];for(;n;)t.unshift(n&255),n>>=8;return t}function Ww(n){if(Array.isArray(n)){let r=[];if(n.forEach(function(_){r=r.concat(Ww(_))}),r.length<=55)return r.unshift(192+r.length),r;const s=Qw(r.length);return s.unshift(247+s.length),s.concat(r)}const t=Array.prototype.slice.call(qt(n,"object"));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const e=Qw(t.length);return e.unshift(183+e.length),e.concat(t)}const Jw="0123456789abcdef";function ks(n){let t="0x";for(const e of Ww(n))t+=Jw[e>>4],t+=Jw[e&15];return t}const ke=32,cl=new Uint8Array(ke),fS=["then"],Qu={},$w=new WeakMap;function Ts(n){return $w.get(n)}function Zw(n,t){$w.set(n,t)}function jc(n,t){const e=new Error(`deferred error during ABI decoding triggered accessing ${n}`);throw e.error=t,e}function ul(n,t,e){return n.indexOf(null)>=0?t.map((r,s)=>r instanceof V_?ul(Ts(r),r,e):r):n.reduce((r,s,_)=>{let a=t.getValue(s);return s in r||(e&&a instanceof V_&&(a=ul(Ts(a),a,e)),r[s]=a),r},{})}const ic=class ic extends Array{constructor(...e){const r=e[0];let s=e[1],_=(e[2]||[]).slice(),a=!0;r!==Qu&&(s=e,_=[],a=!1);super(s.length);rt(this,nc);s.forEach((l,f)=>{this[f]=l});const c=_.reduce((l,f)=>(typeof f=="string"&&l.set(f,(l.get(f)||0)+1),l),new Map);if(Zw(this,Object.freeze(s.map((l,f)=>{const w=_[f];return w!=null&&c.get(w)===1?w:null}))),K(this,nc,[]),m(this,nc)==null&&m(this,nc),!a)return;Object.freeze(this);const u=new Proxy(this,{get:(l,f,w)=>{if(typeof f=="string"){if(f.match(/^[0-9]+$/)){const M=Kt(f,"%index");if(M<0||M>=this.length)throw new RangeError("out of result range");const B=l[M];return B instanceof Error&&jc(`index ${M}`,B),B}if(fS.indexOf(f)>=0)return Reflect.get(l,f,w);const y=l[f];if(y instanceof Function)return function(...M){return y.apply(this===w?l:this,M)};if(!(f in l))return l.getValue.apply(this===w?l:this,[f])}return Reflect.get(l,f,w)}});return Zw(u,Ts(this)),u}toArray(e){const r=[];return this.forEach((s,_)=>{s instanceof Error&&jc(`index ${_}`,s),e&&s instanceof ic&&(s=s.toArray(e)),r.push(s)}),r}toObject(e){const r=Ts(this);return r.reduce((s,_,a)=>(ht(_!=null,`value at index ${a} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),ul(r,this,e)),{})}slice(e,r){e==null&&(e=0),e<0&&(e+=this.length,e<0&&(e=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const s=Ts(this),_=[],a=[];for(let c=e;c<r;c++)_.push(this[c]),a.push(s[c]);return new ic(Qu,_,a)}filter(e,r){const s=Ts(this),_=[],a=[];for(let c=0;c<this.length;c++){const u=this[c];u instanceof Error&&jc(`index ${c}`,u),e.call(r,u,c,this)&&(_.push(u),a.push(s[c]))}return new ic(Qu,_,a)}map(e,r){const s=[];for(let _=0;_<this.length;_++){const a=this[_];a instanceof Error&&jc(`index ${_}`,a),s.push(e.call(r,a,_,this))}return s}getValue(e){const r=Ts(this).indexOf(e);if(r===-1)return;const s=this[r];return s instanceof Error&&jc(`property ${JSON.stringify(e)}`,s.error),s}static fromItems(e,r){return new ic(Qu,e,r)}};nc=new WeakMap;let V_=ic;function Xw(n){let t=Oe(n);return ht(t.length<=ke,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:ke,offset:t.length}),t.length!==ke&&(t=Ne(le([cl.slice(t.length%ke),t]))),t}class Ni{constructor(t,e,r,s){$(this,"name");$(this,"type");$(this,"localName");$(this,"dynamic");xt(this,{name:t,type:e,localName:r,dynamic:s},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(t,e){W(!1,t,this.localName,e)}}class fl{constructor(){rt(this,sc);rt(this,Vi);rt(this,m_);K(this,Vi,[]),K(this,m_,0)}get data(){return le(m(this,Vi))}get length(){return m(this,m_)}appendWriter(t){return mt(this,sc,Wf).call(this,Ne(t.data))}writeBytes(t){let e=Ne(t);const r=e.length%ke;return r&&(e=Ne(le([e,cl.slice(r)]))),mt(this,sc,Wf).call(this,e)}writeValue(t){return mt(this,sc,Wf).call(this,Xw(t))}writeUpdatableValue(){const t=m(this,Vi).length;return m(this,Vi).push(cl),K(this,m_,m(this,m_)+ke),e=>{m(this,Vi)[t]=Xw(e)}}}Vi=new WeakMap,m_=new WeakMap,sc=new WeakSet,Wf=function(t){return m(this,Vi).push(t),K(this,m_,m(this,m_)+t.length),t.length};const Zh=class Zh{constructor(t,e,r){rt(this,E_);$(this,"allowLoose");rt(this,je);rt(this,Xe);rt(this,S_);rt(this,R_);rt(this,ds);xt(this,{allowLoose:!!e}),K(this,je,Ne(t)),K(this,S_,0),K(this,R_,null),K(this,ds,r??1024),K(this,Xe,0)}get data(){return Et(m(this,je))}get dataLength(){return m(this,je).length}get consumed(){return m(this,Xe)}get bytes(){return new Uint8Array(m(this,je))}subReader(t){const e=new Zh(m(this,je).slice(m(this,Xe)+t),this.allowLoose,m(this,ds));return K(e,R_,this),e}readBytes(t,e){let r=mt(this,E_,xm).call(this,0,t,!!e);return mt(this,E_,Aw).call(this,t),K(this,Xe,m(this,Xe)+r.length),r.slice(0,t)}readValue(){return ol(this.readBytes(ke))}readIndex(){return Qm(this.readBytes(ke))}};je=new WeakMap,Xe=new WeakMap,S_=new WeakMap,R_=new WeakMap,ds=new WeakMap,E_=new WeakSet,Aw=function(t){var e;if(m(this,R_))return mt(e=m(this,R_),E_,Aw).call(e,t);K(this,S_,m(this,S_)+t),ht(m(this,ds)<1||m(this,S_)<=m(this,ds)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${m(this,ds)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:Ne(m(this,je)),offset:m(this,Xe),length:t,info:{bytesRead:m(this,S_),dataLength:this.dataLength}})},xm=function(t,e,r){let s=Math.ceil(e/ke)*ke;return m(this,Xe)+s>m(this,je).length&&(this.allowLoose&&r&&m(this,Xe)+e<=m(this,je).length?s=e:ht(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:Ne(m(this,je)),length:m(this,je).length,offset:m(this,Xe)+s})),m(this,je).slice(m(this,Xe),m(this,Xe)+s)};let ll=Zh;function Wu(n){if(!Number.isSafeInteger(n)||n<0)throw new Error(`Wrong positive integer: ${n}`)}function pl(n,...t){if(!(n instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(n.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${n.length}`)}function lS(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Wu(n.outputLen),Wu(n.blockLen)}function Y_(n,t=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(t&&n.finished)throw new Error("Hash#digest() has already been called")}function td(n,t){pl(n);const e=t.outputLen;if(n.length<e)throw new Error(`digestInto() expects output buffer of length at least ${e}`)}const hl=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ed=n=>n instanceof Uint8Array,pS=n=>new Uint32Array(n.buffer,n.byteOffset,Math.floor(n.byteLength/4)),wl=n=>new DataView(n.buffer,n.byteOffset,n.byteLength),kr=(n,t)=>n<<32-t|n>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function hS(n){if(typeof n!="string")throw new Error(`utf8ToBytes expected string, got ${typeof n}`);return new Uint8Array(new TextEncoder().encode(n))}function Ju(n){if(typeof n=="string"&&(n=hS(n)),!ed(n))throw new Error(`expected Uint8Array, got ${typeof n}`);return n}function wS(...n){const t=new Uint8Array(n.reduce((r,s)=>r+s.length,0));let e=0;return n.forEach(r=>{if(!ed(r))throw new Error("Uint8Array expected");t.set(r,e),e+=r.length}),t}class dl{clone(){return this._cloneInto()}}function gl(n){const t=r=>n().update(Ju(r)).digest(),e=n();return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=()=>n(),t}function dS(n=32){if(hl&&typeof hl.getRandomValues=="function")return hl.getRandomValues(new Uint8Array(n));throw new Error("crypto.getRandomValues must be defined")}class rd extends dl{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,lS(t);const r=Ju(e);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 s=this.blockLen,_=new Uint8Array(s);_.set(r.length>s?t.create().update(r).digest():r);for(let a=0;a<_.length;a++)_[a]^=54;this.iHash.update(_),this.oHash=t.create();for(let a=0;a<_.length;a++)_[a]^=106;this.oHash.update(_),_.fill(0)}update(t){return Y_(this),this.iHash.update(t),this}digestInto(t){Y_(this),pl(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:e,iHash:r,finished:s,destroyed:_,blockLen:a,outputLen:c}=this;return t=t,t.finished=s,t.destroyed=_,t.blockLen=a,t.outputLen=c,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const nd=(n,t,e)=>new rd(n,t).update(e).digest();nd.create=(n,t)=>new rd(n,t);function gS(n,t,e,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(t,e,r);const s=BigInt(32),_=BigInt(4294967295),a=Number(e>>s&_),c=Number(e&_),u=r?4:0,l=r?0:4;n.setUint32(t+u,a,r),n.setUint32(t+l,c,r)}class id extends dl{constructor(t,e,r,s){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=wl(this.buffer)}update(t){Y_(this);const{view:e,buffer:r,blockLen:s}=this;t=Ju(t);const _=t.length;for(let a=0;a<_;){const c=Math.min(s-this.pos,_-a);if(c===s){const u=wl(t);for(;s<=_-a;a+=s)this.process(u,a);continue}r.set(t.subarray(a,a+c),this.pos),this.pos+=c,a+=c,this.pos===s&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Y_(this),td(t,this),this.finished=!0;const{buffer:e,view:r,blockLen:s,isLE:_}=this;let{pos:a}=this;e[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(r,0),a=0);for(let w=a;w<s;w++)e[w]=0;gS(r,s-8,BigInt(this.length*8),_),this.process(r,0);const c=wl(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,f=this.get();if(l>f.length)throw new Error("_sha2: outputLen bigger than state");for(let w=0;w<l;w++)c.setUint32(4*w,f[w],_)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:r,length:s,finished:_,destroyed:a,pos:c}=this;return t.length=s,t.pos=c,t.finished=_,t.destroyed=a,s%e&&t.buffer.set(r),t}}const bS=(n,t,e)=>n&t^~n&e,yS=(n,t,e)=>n&t^n&e^t&e,AS=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),is=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ss=new Uint32Array(64);class mS extends id{constructor(){super(64,32,8,!1),this.A=is[0]|0,this.B=is[1]|0,this.C=is[2]|0,this.D=is[3]|0,this.E=is[4]|0,this.F=is[5]|0,this.G=is[6]|0,this.H=is[7]|0}get(){const{A:t,B:e,C:r,D:s,E:_,F:a,G:c,H:u}=this;return[t,e,r,s,_,a,c,u]}set(t,e,r,s,_,a,c,u){this.A=t|0,this.B=e|0,this.C=r|0,this.D=s|0,this.E=_|0,this.F=a|0,this.G=c|0,this.H=u|0}process(t,e){for(let w=0;w<16;w++,e+=4)ss[w]=t.getUint32(e,!1);for(let w=16;w<64;w++){const y=ss[w-15],M=ss[w-2],B=kr(y,7)^kr(y,18)^y>>>3,I=kr(M,17)^kr(M,19)^M>>>10;ss[w]=I+ss[w-7]+B+ss[w-16]|0}let{A:r,B:s,C:_,D:a,E:c,F:u,G:l,H:f}=this;for(let w=0;w<64;w++){const y=kr(c,6)^kr(c,11)^kr(c,25),M=f+y+bS(c,u,l)+AS[w]+ss[w]|0,I=(kr(r,2)^kr(r,13)^kr(r,22))+yS(r,s,_)|0;f=l,l=u,u=c,c=a+M|0,a=_,_=s,s=r,r=M+I|0}r=r+this.A|0,s=s+this.B|0,_=_+this.C|0,a=a+this.D|0,c=c+this.E|0,u=u+this.F|0,l=l+this.G|0,f=f+this.H|0,this.set(r,s,_,a,c,u,l,f)}roundClean(){ss.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sd=gl(()=>new mS),$u=BigInt(2**32-1),bl=BigInt(32);function _d(n,t=!1){return t?{h:Number(n&$u),l:Number(n>>bl&$u)}:{h:Number(n>>bl&$u)|0,l:Number(n&$u)|0}}function od(n,t=!1){let e=new Uint32Array(n.length),r=new Uint32Array(n.length);for(let s=0;s<n.length;s++){const{h:_,l:a}=_d(n[s],t);[e[s],r[s]]=[_,a]}return[e,r]}const SS=(n,t)=>BigInt(n>>>0)<<bl|BigInt(t>>>0),RS=(n,t,e)=>n>>>e,ES=(n,t,e)=>n<<32-e|t>>>e,PS=(n,t,e)=>n>>>e|t<<32-e,zS=(n,t,e)=>n<<32-e|t>>>e,vS=(n,t,e)=>n<<64-e|t>>>e-32,MS=(n,t,e)=>n>>>e-32|t<<64-e,BS=(n,t)=>t,xS=(n,t)=>n,ad=(n,t,e)=>n<<e|t>>>32-e,cd=(n,t,e)=>t<<e|n>>>32-e,ud=(n,t,e)=>t<<e-32|n>>>64-e,fd=(n,t,e)=>n<<e-32|t>>>64-e;function CS(n,t,e,r){const s=(t>>>0)+(r>>>0);return{h:n+e+(s/2**32|0)|0,l:s|0}}const Gt={fromBig:_d,split:od,toBig:SS,shrSH:RS,shrSL:ES,rotrSH:PS,rotrSL:zS,rotrBH:vS,rotrBL:MS,rotr32H:BS,rotr32L:xS,rotlSH:ad,rotlSL:cd,rotlBH:ud,rotlBL:fd,add:CS,add3L:(n,t,e)=>(n>>>0)+(t>>>0)+(e>>>0),add3H:(n,t,e,r)=>t+e+r+(n/2**32|0)|0,add4L:(n,t,e,r)=>(n>>>0)+(t>>>0)+(e>>>0)+(r>>>0),add4H:(n,t,e,r,s)=>t+e+r+s+(n/2**32|0)|0,add5H:(n,t,e,r,s,_)=>t+e+r+s+_+(n/2**32|0)|0,add5L:(n,t,e,r,s)=>(n>>>0)+(t>>>0)+(e>>>0)+(r>>>0)+(s>>>0)},[IS,NS]=Gt.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(n=>BigInt(n))),_s=new Uint32Array(80),os=new Uint32Array(80);class OS extends id{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:r,Bl:s,Ch:_,Cl:a,Dh:c,Dl:u,Eh:l,El:f,Fh:w,Fl:y,Gh:M,Gl:B,Hh:I,Hl:G}=this;return[t,e,r,s,_,a,c,u,l,f,w,y,M,B,I,G]}set(t,e,r,s,_,a,c,u,l,f,w,y,M,B,I,G){this.Ah=t|0,this.Al=e|0,this.Bh=r|0,this.Bl=s|0,this.Ch=_|0,this.Cl=a|0,this.Dh=c|0,this.Dl=u|0,this.Eh=l|0,this.El=f|0,this.Fh=w|0,this.Fl=y|0,this.Gh=M|0,this.Gl=B|0,this.Hh=I|0,this.Hl=G|0}process(t,e){for(let N=0;N<16;N++,e+=4)_s[N]=t.getUint32(e),os[N]=t.getUint32(e+=4);for(let N=16;N<80;N++){const C=_s[N-15]|0,F=os[N-15]|0,D=Gt.rotrSH(C,F,1)^Gt.rotrSH(C,F,8)^Gt.shrSH(C,F,7),j=Gt.rotrSL(C,F,1)^Gt.rotrSL(C,F,8)^Gt.shrSL(C,F,7),L=_s[N-2]|0,Z=os[N-2]|0,ot=Gt.rotrSH(L,Z,19)^Gt.rotrBH(L,Z,61)^Gt.shrSH(L,Z,6),pt=Gt.rotrSL(L,Z,19)^Gt.rotrBL(L,Z,61)^Gt.shrSL(L,Z,6),Y=Gt.add4L(j,pt,os[N-7],os[N-16]),At=Gt.add4H(Y,D,ot,_s[N-7],_s[N-16]);_s[N]=At|0,os[N]=Y|0}let{Ah:r,Al:s,Bh:_,Bl:a,Ch:c,Cl:u,Dh:l,Dl:f,Eh:w,El:y,Fh:M,Fl:B,Gh:I,Gl:G,Hh:P,Hl:v}=this;for(let N=0;N<80;N++){const C=Gt.rotrSH(w,y,14)^Gt.rotrSH(w,y,18)^Gt.rotrBH(w,y,41),F=Gt.rotrSL(w,y,14)^Gt.rotrSL(w,y,18)^Gt.rotrBL(w,y,41),D=w&M^~w&I,j=y&B^~y&G,L=Gt.add5L(v,F,j,NS[N],os[N]),Z=Gt.add5H(L,P,C,D,IS[N],_s[N]),ot=L|0,pt=Gt.rotrSH(r,s,28)^Gt.rotrBH(r,s,34)^Gt.rotrBH(r,s,39),Y=Gt.rotrSL(r,s,28)^Gt.rotrBL(r,s,34)^Gt.rotrBL(r,s,39),At=r&_^r&c^_&c,Bt=s&a^s&u^a&u;P=I|0,v=G|0,I=M|0,G=B|0,M=w|0,B=y|0,{h:w,l:y}=Gt.add(l|0,f|0,Z|0,ot|0),l=c|0,f=u|0,c=_|0,u=a|0,_=r|0,a=s|0;const ft=Gt.add3L(ot,Y,Bt);r=Gt.add3H(ft,Z,pt,At),s=ft|0}({h:r,l:s}=Gt.add(this.Ah|0,this.Al|0,r|0,s|0)),{h:_,l:a}=Gt.add(this.Bh|0,this.Bl|0,_|0,a|0),{h:c,l:u}=Gt.add(this.Ch|0,this.Cl|0,c|0,u|0),{h:l,l:f}=Gt.add(this.Dh|0,this.Dl|0,l|0,f|0),{h:w,l:y}=Gt.add(this.Eh|0,this.El|0,w|0,y|0),{h:M,l:B}=Gt.add(this.Fh|0,this.Fl|0,M|0,B|0),{h:I,l:G}=Gt.add(this.Gh|0,this.Gl|0,I|0,G|0),{h:P,l:v}=Gt.add(this.Hh|0,this.Hl|0,P|0,v|0),this.set(r,s,_,a,c,u,l,f,w,y,M,B,I,G,P,v)}roundClean(){_s.fill(0),os.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const kS=gl(()=>new OS);function TS(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof te<"u")return te;throw new Error("unable to locate global object")}const ld=TS();ld.crypto||ld.msCrypto;function GS(n){switch(n){case"sha256":return sd.create();case"sha512":return kS.create()}W(!1,"invalid hashing algorithm name","algorithm",n)}const[pd,hd,wd]=[[],[],[]],FS=BigInt(0),Vc=BigInt(1),US=BigInt(2),KS=BigInt(7),DS=BigInt(256),LS=BigInt(113);for(let n=0,t=Vc,e=1,r=0;n<24;n++){[e,r]=[r,(2*e+3*r)%5],pd.push(2*(5*r+e)),hd.push((n+1)*(n+2)/2%64);let s=FS;for(let _=0;_<7;_++)t=(t<<Vc^(t>>KS)*LS)%DS,t&US&&(s^=Vc<<(Vc<<BigInt(_))-Vc);wd.push(s)}const[jS,VS]=od(wd,!0),dd=(n,t,e)=>e>32?ud(n,t,e):ad(n,t,e),gd=(n,t,e)=>e>32?fd(n,t,e):cd(n,t,e);function YS(n,t=24){const e=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)e[a]=n[a]^n[a+10]^n[a+20]^n[a+30]^n[a+40];for(let a=0;a<10;a+=2){const c=(a+8)%10,u=(a+2)%10,l=e[u],f=e[u+1],w=dd(l,f,1)^e[c],y=gd(l,f,1)^e[c+1];for(let M=0;M<50;M+=10)n[a+M]^=w,n[a+M+1]^=y}let s=n[2],_=n[3];for(let a=0;a<24;a++){const c=hd[a],u=dd(s,_,c),l=gd(s,_,c),f=pd[a];s=n[f],_=n[f+1],n[f]=u,n[f+1]=l}for(let a=0;a<50;a+=10){for(let c=0;c<10;c++)e[c]=n[a+c];for(let c=0;c<10;c++)n[a+c]^=~e[(c+2)%10]&e[(c+4)%10]}n[0]^=jS[r],n[1]^=VS[r]}e.fill(0)}class yl extends dl{constructor(t,e,r,s=!1,_=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=s,this.rounds=_,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Wu(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=pS(this.state)}keccak(){YS(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){Y_(this);const{blockLen:e,state:r}=this;t=Ju(t);const s=t.length;for(let _=0;_<s;){const a=Math.min(e-this.pos,s-_);for(let c=0;c<a;c++)r[this.pos++]^=t[_++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:r,blockLen:s}=this;t[r]^=e,(e&128)!==0&&r===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Y_(this,!1),pl(t),this.finish();const e=this.state,{blockLen:r}=this;for(let s=0,_=t.length;s<_;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,_-s);t.set(e.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Wu(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(td(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:s,rounds:_,enableXOF:a}=this;return t||(t=new yl(e,r,s,a,_)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=_,t.suffix=r,t.outputLen=s,t.enableXOF=a,t.destroyed=this.destroyed,t}}const HS=((n,t,e)=>gl(()=>new yl(t,n,e)))(1,136,256/8);let bd=!1;const yd=function(n){return HS(n)};let Ad=yd;function be(n){const t=qt(n,"data");return Et(Ad(t))}be._=yd,be.lock=function(){bd=!0},be.register=function(n){if(bd)throw new TypeError("keccak256 is locked");Ad=n},Object.freeze(be);const md=function(n){return GS("sha256").update(n).digest()};let Sd=md,Rd=!1;function H_(n){const t=qt(n,"data");return Et(Sd(t))}H_._=md,H_.lock=function(){Rd=!0},H_.register=function(n){if(Rd)throw new Error("sha256 is locked");Sd=n},Object.freeze(H_),Object.freeze(H_);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ed=BigInt(0),Zu=BigInt(1),qS=BigInt(2),Xu=n=>n instanceof Uint8Array,QS=Array.from({length:256},(n,t)=>t.toString(16).padStart(2,"0"));function q_(n){if(!Xu(n))throw new Error("Uint8Array expected");let t="";for(let e=0;e<n.length;e++)t+=QS[n[e]];return t}function Pd(n){const t=n.toString(16);return t.length&1?`0${t}`:t}function Al(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return BigInt(n===""?"0":`0x${n}`)}function Q_(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const t=n.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const e=new Uint8Array(t/2);for(let r=0;r<e.length;r++){const s=r*2,_=n.slice(s,s+2),a=Number.parseInt(_,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");e[r]=a}return e}function Gs(n){return Al(q_(n))}function ml(n){if(!Xu(n))throw new Error("Uint8Array expected");return Al(q_(Uint8Array.from(n).reverse()))}function W_(n,t){return Q_(n.toString(16).padStart(t*2,"0"))}function Sl(n,t){return W_(n,t).reverse()}function WS(n){return Q_(Pd(n))}function mr(n,t,e){let r;if(typeof t=="string")try{r=Q_(t)}catch(_){throw new Error(`${n} must be valid hex string, got "${t}". Cause: ${_}`)}else if(Xu(t))r=Uint8Array.from(t);else throw new Error(`${n} must be hex string or Uint8Array`);const s=r.length;if(typeof e=="number"&&s!==e)throw new Error(`${n} expected ${e} bytes, got ${s}`);return r}function Yc(...n){const t=new Uint8Array(n.reduce((r,s)=>r+s.length,0));let e=0;return n.forEach(r=>{if(!Xu(r))throw new Error("Uint8Array expected");t.set(r,e),e+=r.length}),t}function JS(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return!0}function $S(n){if(typeof n!="string")throw new Error(`utf8ToBytes expected string, got ${typeof n}`);return new Uint8Array(new TextEncoder().encode(n))}function ZS(n){let t;for(t=0;n>Ed;n>>=Zu,t+=1);return t}function XS(n,t){return n>>BigInt(t)&Zu}const tR=(n,t,e)=>n|(e?Zu:Ed)<<BigInt(t),Rl=n=>(qS<<BigInt(n-1))-Zu,El=n=>new Uint8Array(n),zd=n=>Uint8Array.from(n);function vd(n,t,e){if(typeof n!="number"||n<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 e!="function")throw new Error("hmacFn must be a function");let r=El(n),s=El(n),_=0;const a=()=>{r.fill(1),s.fill(0),_=0},c=(...w)=>e(s,r,...w),u=(w=El())=>{s=c(zd([0]),w),r=c(),w.length!==0&&(s=c(zd([1]),w),r=c())},l=()=>{if(_++>=1e3)throw new Error("drbg: tried 1000 values");let w=0;const y=[];for(;w<t;){r=c();const M=r.slice();y.push(M),w+=r.length}return Yc(...y)};return(w,y)=>{a(),u(w);let M;for(;!(M=y(l()));)u();return a(),M}}const eR={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||n instanceof Uint8Array,isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,t)=>t.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function Hc(n,t,e={}){const r=(s,_,a)=>{const c=eR[_];if(typeof c!="function")throw new Error(`Invalid validator "${_}", expected function`);const u=n[s];if(!(a&&u===void 0)&&!c(u,n))throw new Error(`Invalid param ${String(s)}=${u} (${typeof u}), expected ${_}`)};for(const[s,_]of Object.entries(t))r(s,_,!1);for(const[s,_]of Object.entries(e))r(s,_,!0);return n}const rR=Object.freeze(Object.defineProperty({__proto__:null,bitGet:XS,bitLen:ZS,bitMask:Rl,bitSet:tR,bytesToHex:q_,bytesToNumberBE:Gs,bytesToNumberLE:ml,concatBytes:Yc,createHmacDrbg:vd,ensureBytes:mr,equalBytes:JS,hexToBytes:Q_,hexToNumber:Al,numberToBytesBE:W_,numberToBytesLE:Sl,numberToHexUnpadded:Pd,numberToVarBytesBE:WS,utf8ToBytes:$S,validateObject:Hc},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ae=BigInt(0),pe=BigInt(1),Fs=BigInt(2),nR=BigInt(3),Pl=BigInt(4),Md=BigInt(5),Bd=BigInt(8);BigInt(9),BigInt(16);function Ke(n,t){const e=n%t;return e>=Ae?e:t+e}function iR(n,t,e){if(e<=Ae||t<Ae)throw new Error("Expected power/modulo > 0");if(e===pe)return Ae;let r=pe;for(;t>Ae;)t&pe&&(r=r*n%e),n=n*n%e,t>>=pe;return r}function nr(n,t,e){let r=n;for(;t-- >Ae;)r*=r,r%=e;return r}function zl(n,t){if(n===Ae||t<=Ae)throw new Error(`invert: expected positive integers, got n=${n} mod=${t}`);let e=Ke(n,t),r=t,s=Ae,_=pe;for(;e!==Ae;){const c=r/e,u=r%e,l=s-_*c;r=e,e=u,s=_,_=l}if(r!==pe)throw new Error("invert: does not exist");return Ke(s,t)}function sR(n){const t=(n-pe)/Fs;let e,r,s;for(e=n-pe,r=0;e%Fs===Ae;e/=Fs,r++);for(s=Fs;s<n&&iR(s,t,n)!==n-pe;s++);if(r===1){const a=(n+pe)/Pl;return function(u,l){const f=u.pow(l,a);if(!u.eql(u.sqr(f),l))throw new Error("Cannot find square root");return f}}const _=(e+pe)/Fs;return function(c,u){if(c.pow(u,t)===c.neg(c.ONE))throw new Error("Cannot find square root");let l=r,f=c.pow(c.mul(c.ONE,s),e),w=c.pow(u,_),y=c.pow(u,e);for(;!c.eql(y,c.ONE);){if(c.eql(y,c.ZERO))return c.ZERO;let M=1;for(let I=c.sqr(y);M<l&&!c.eql(I,c.ONE);M++)I=c.sqr(I);const B=c.pow(f,pe<<BigInt(l-M-1));f=c.sqr(B),w=c.mul(w,B),y=c.mul(y,f),l=M}return w}}function _R(n){if(n%Pl===nR){const t=(n+pe)/Pl;return function(r,s){const _=r.pow(s,t);if(!r.eql(r.sqr(_),s))throw new Error("Cannot find square root");return _}}if(n%Bd===Md){const t=(n-Md)/Bd;return function(r,s){const _=r.mul(s,Fs),a=r.pow(_,t),c=r.mul(s,a),u=r.mul(r.mul(c,Fs),a),l=r.mul(c,r.sub(u,r.ONE));if(!r.eql(r.sqr(l),s))throw new Error("Cannot find square root");return l}}return sR(n)}const oR=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function aR(n){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},e=oR.reduce((r,s)=>(r[s]="function",r),t);return Hc(n,e)}function cR(n,t,e){if(e<Ae)throw new Error("Expected power > 0");if(e===Ae)return n.ONE;if(e===pe)return t;let r=n.ONE,s=t;for(;e>Ae;)e&pe&&(r=n.mul(r,s)),s=n.sqr(s),e>>=pe;return r}function uR(n,t){const e=new Array(t.length),r=t.reduce((_,a,c)=>n.is0(a)?_:(e[c]=_,n.mul(_,a)),n.ONE),s=n.inv(r);return t.reduceRight((_,a,c)=>n.is0(a)?_:(e[c]=n.mul(_,e[c]),n.mul(_,a)),s),e}function xd(n,t){const e=t!==void 0?t:n.toString(2).length,r=Math.ceil(e/8);return{nBitLength:e,nByteLength:r}}function fR(n,t,e=!1,r={}){if(n<=Ae)throw new Error(`Expected Field ORDER > 0, got ${n}`);const{nBitLength:s,nByteLength:_}=xd(n,t);if(_>2048)throw new Error("Field lengths over 2048 bytes are not supported");const a=_R(n),c=Object.freeze({ORDER:n,BITS:s,BYTES:_,MASK:Rl(s),ZERO:Ae,ONE:pe,create:u=>Ke(u,n),isValid:u=>{if(typeof u!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof u}`);return Ae<=u&&u<n},is0:u=>u===Ae,isOdd:u=>(u&pe)===pe,neg:u=>Ke(-u,n),eql:(u,l)=>u===l,sqr:u=>Ke(u*u,n),add:(u,l)=>Ke(u+l,n),sub:(u,l)=>Ke(u-l,n),mul:(u,l)=>Ke(u*l,n),pow:(u,l)=>cR(c,u,l),div:(u,l)=>Ke(u*zl(l,n),n),sqrN:u=>u*u,addN:(u,l)=>u+l,subN:(u,l)=>u-l,mulN:(u,l)=>u*l,inv:u=>zl(u,n),sqrt:r.sqrt||(u=>a(c,u)),invertBatch:u=>uR(c,u),cmov:(u,l,f)=>f?l:u,toBytes:u=>e?Sl(u,_):W_(u,_),fromBytes:u=>{if(u.length!==_)throw new Error(`Fp.fromBytes: expected ${_}, got ${u.length}`);return e?ml(u):Gs(u)}});return Object.freeze(c)}function Cd(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const t=n.toString(2).length;return Math.ceil(t/8)}function Id(n){const t=Cd(n);return t+Math.ceil(t/2)}function lR(n,t,e=!1){const r=n.length,s=Cd(t),_=Id(t);if(r<16||r<_||r>1024)throw new Error(`expected ${_}-1024 bytes of input, got ${r}`);const a=e?Gs(n):ml(n),c=Ke(a,t-pe)+pe;return e?Sl(c,s):W_(c,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pR=BigInt(0),vl=BigInt(1);function hR(n,t){const e=(s,_)=>{const a=_.negate();return s?a:_},r=s=>{const _=Math.ceil(t/s)+1,a=2**(s-1);return{windows:_,windowSize:a}};return{constTimeNegate:e,unsafeLadder(s,_){let a=n.ZERO,c=s;for(;_>pR;)_&vl&&(a=a.add(c)),c=c.double(),_>>=vl;return a},precomputeWindow(s,_){const{windows:a,windowSize:c}=r(_),u=[];let l=s,f=l;for(let w=0;w<a;w++){f=l,u.push(f);for(let y=1;y<c;y++)f=f.add(l),u.push(f);l=f.double()}return u},wNAF(s,_,a){const{windows:c,windowSize:u}=r(s);let l=n.ZERO,f=n.BASE;const w=BigInt(2**s-1),y=2**s,M=BigInt(s);for(let B=0;B<c;B++){const I=B*u;let G=Number(a&w);a>>=M,G>u&&(G-=y,a+=vl);const P=I,v=I+Math.abs(G)-1,N=B%2!==0,C=G<0;G===0?f=f.add(e(N,_[P])):l=l.add(e(C,_[v]))}return{p:l,f}},wNAFCached(s,_,a,c){const u=s._WINDOW_SIZE||1;let l=_.get(s);return l||(l=this.precomputeWindow(s,u),u!==1&&_.set(s,c(l))),this.wNAF(u,l,a)}}}function Nd(n){return aR(n.Fp),Hc(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...xd(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function wR(n){const t=Nd(n);Hc(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:e,Fp:r,a:s}=t;if(e){if(!r.eql(s,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof e!="object"||typeof e.beta!="bigint"||typeof e.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:dR,hexToBytes:gR}=rR,Us={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(n){const{Err:t}=Us;if(n.length<2||n[0]!==2)throw new t("Invalid signature integer tag");const e=n[1],r=n.subarray(2,e+2);if(!e||r.length!==e)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:dR(r),l:n.subarray(e+2)}},toSig(n){const{Err:t}=Us,e=typeof n=="string"?gR(n):n;if(!(e instanceof Uint8Array))throw new Error("ui8a expected");let r=e.length;if(r<2||e[0]!=48)throw new t("Invalid signature tag");if(e[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:s,l:_}=Us._parseInt(e.subarray(2)),{d:a,l:c}=Us._parseInt(_);if(c.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(n){const t=l=>Number.parseInt(l[0],16)&8?"00"+l:l,e=l=>{const f=l.toString(16);return f.length&1?`0${f}`:f},r=t(e(n.s)),s=t(e(n.r)),_=r.length/2,a=s.length/2,c=e(_),u=e(a);return`30${e(a+_+4)}02${u}${s}02${c}${r}`}},Oi=BigInt(0),ir=BigInt(1);BigInt(2);const Od=BigInt(3);BigInt(4);function bR(n){const t=wR(n),{Fp:e}=t,r=t.toBytes||((B,I,G)=>{const P=I.toAffine();return Yc(Uint8Array.from([4]),e.toBytes(P.x),e.toBytes(P.y))}),s=t.fromBytes||(B=>{const I=B.subarray(1),G=e.fromBytes(I.subarray(0,e.BYTES)),P=e.fromBytes(I.subarray(e.BYTES,2*e.BYTES));return{x:G,y:P}});function _(B){const{a:I,b:G}=t,P=e.sqr(B),v=e.mul(P,B);return e.add(e.add(v,e.mul(B,I)),G)}if(!e.eql(e.sqr(t.Gy),_(t.Gx)))throw new Error("bad generator point: equation left != right");function a(B){return typeof B=="bigint"&&Oi<B&&B<t.n}function c(B){if(!a(B))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function u(B){const{allowedPrivateKeyLengths:I,nByteLength:G,wrapPrivateKey:P,n:v}=t;if(I&&typeof B!="bigint"){if(B instanceof Uint8Array&&(B=q_(B)),typeof B!="string"||!I.includes(B.length))throw new Error("Invalid key");B=B.padStart(G*2,"0")}let N;try{N=typeof B=="bigint"?B:Gs(mr("private key",B,G))}catch{throw new Error(`private key must be ${G} bytes, hex or bigint, not ${typeof B}`)}return P&&(N=Ke(N,v)),c(N),N}const l=new Map;function f(B){if(!(B instanceof w))throw new Error("ProjectivePoint expected")}class w{constructor(I,G,P){if(this.px=I,this.py=G,this.pz=P,I==null||!e.isValid(I))throw new Error("x required");if(G==null||!e.isValid(G))throw new Error("y required");if(P==null||!e.isValid(P))throw new Error("z required")}static fromAffine(I){const{x:G,y:P}=I||{};if(!I||!e.isValid(G)||!e.isValid(P))throw new Error("invalid affine point");if(I instanceof w)throw new Error("projective point not allowed");const v=N=>e.eql(N,e.ZERO);return v(G)&&v(P)?w.ZERO:new w(G,P,e.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(I){const G=e.invertBatch(I.map(P=>P.pz));return I.map((P,v)=>P.toAffine(G[v])).map(w.fromAffine)}static fromHex(I){const G=w.fromAffine(s(mr("pointHex",I)));return G.assertValidity(),G}static fromPrivateKey(I){return w.BASE.multiply(u(I))}_setWindowSize(I){this._WINDOW_SIZE=I,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!e.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:I,y:G}=this.toAffine();if(!e.isValid(I)||!e.isValid(G))throw new Error("bad point: x or y not FE");const P=e.sqr(G),v=_(I);if(!e.eql(P,v))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:I}=this.toAffine();if(e.isOdd)return!e.isOdd(I);throw new Error("Field doesn't support isOdd")}equals(I){f(I);const{px:G,py:P,pz:v}=this,{px:N,py:C,pz:F}=I,D=e.eql(e.mul(G,F),e.mul(N,v)),j=e.eql(e.mul(P,F),e.mul(C,v));return D&&j}negate(){return new w(this.px,e.neg(this.py),this.pz)}double(){const{a:I,b:G}=t,P=e.mul(G,Od),{px:v,py:N,pz:C}=this;let F=e.ZERO,D=e.ZERO,j=e.ZERO,L=e.mul(v,v),Z=e.mul(N,N),ot=e.mul(C,C),pt=e.mul(v,N);return pt=e.add(pt,pt),j=e.mul(v,C),j=e.add(j,j),F=e.mul(I,j),D=e.mul(P,ot),D=e.add(F,D),F=e.sub(Z,D),D=e.add(Z,D),D=e.mul(F,D),F=e.mul(pt,F),j=e.mul(P,j),ot=e.mul(I,ot),pt=e.sub(L,ot),pt=e.mul(I,pt),pt=e.add(pt,j),j=e.add(L,L),L=e.add(j,L),L=e.add(L,ot),L=e.mul(L,pt),D=e.add(D,L),ot=e.mul(N,C),ot=e.add(ot,ot),L=e.mul(ot,pt),F=e.sub(F,L),j=e.mul(ot,Z),j=e.add(j,j),j=e.add(j,j),new w(F,D,j)}add(I){f(I);const{px:G,py:P,pz:v}=this,{px:N,py:C,pz:F}=I;let D=e.ZERO,j=e.ZERO,L=e.ZERO;const Z=t.a,ot=e.mul(t.b,Od);let pt=e.mul(G,N),Y=e.mul(P,C),At=e.mul(v,F),Bt=e.add(G,P),ft=e.add(N,C);Bt=e.mul(Bt,ft),ft=e.add(pt,Y),Bt=e.sub(Bt,ft),ft=e.add(G,v);let wt=e.add(N,F);return ft=e.mul(ft,wt),wt=e.add(pt,At),ft=e.sub(ft,wt),wt=e.add(P,v),D=e.add(C,F),wt=e.mul(wt,D),D=e.add(Y,At),wt=e.sub(wt,D),L=e.mul(Z,ft),D=e.mul(ot,At),L=e.add(D,L),D=e.sub(Y,L),L=e.add(Y,L),j=e.mul(D,L),Y=e.add(pt,pt),Y=e.add(Y,pt),At=e.mul(Z,At),ft=e.mul(ot,ft),Y=e.add(Y,At),At=e.sub(pt,At),At=e.mul(Z,At),ft=e.add(ft,At),pt=e.mul(Y,ft),j=e.add(j,pt),pt=e.mul(wt,ft),D=e.mul(Bt,D),D=e.sub(D,pt),pt=e.mul(Bt,Y),L=e.mul(wt,L),L=e.add(L,pt),new w(D,j,L)}subtract(I){return this.add(I.negate())}is0(){return this.equals(w.ZERO)}wNAF(I){return M.wNAFCached(this,l,I,G=>{const P=e.invertBatch(G.map(v=>v.pz));return G.map((v,N)=>v.toAffine(P[N])).map(w.fromAffine)})}multiplyUnsafe(I){const G=w.ZERO;if(I===Oi)return G;if(c(I),I===ir)return this;const{endo:P}=t;if(!P)return M.unsafeLadder(this,I);let{k1neg:v,k1:N,k2neg:C,k2:F}=P.splitScalar(I),D=G,j=G,L=this;for(;N>Oi||F>Oi;)N&ir&&(D=D.add(L)),F&ir&&(j=j.add(L)),L=L.double(),N>>=ir,F>>=ir;return v&&(D=D.negate()),C&&(j=j.negate()),j=new w(e.mul(j.px,P.beta),j.py,j.pz),D.add(j)}multiply(I){c(I);let G=I,P,v;const{endo:N}=t;if(N){const{k1neg:C,k1:F,k2neg:D,k2:j}=N.splitScalar(G);let{p:L,f:Z}=this.wNAF(F),{p:ot,f:pt}=this.wNAF(j);L=M.constTimeNegate(C,L),ot=M.constTimeNegate(D,ot),ot=new w(e.mul(ot.px,N.beta),ot.py,ot.pz),P=L.add(ot),v=Z.add(pt)}else{const{p:C,f:F}=this.wNAF(G);P=C,v=F}return w.normalizeZ([P,v])[0]}multiplyAndAddUnsafe(I,G,P){const v=w.BASE,N=(F,D)=>D===Oi||D===ir||!F.equals(v)?F.multiplyUnsafe(D):F.multiply(D),C=N(this,G).add(N(I,P));return C.is0()?void 0:C}toAffine(I){const{px:G,py:P,pz:v}=this,N=this.is0();I==null&&(I=N?e.ONE:e.inv(v));const C=e.mul(G,I),F=e.mul(P,I),D=e.mul(v,I);if(N)return{x:e.ZERO,y:e.ZERO};if(!e.eql(D,e.ONE))throw new Error("invZ was invalid");return{x:C,y:F}}isTorsionFree(){const{h:I,isTorsionFree:G}=t;if(I===ir)return!0;if(G)return G(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:I,clearCofactor:G}=t;return I===ir?this:G?G(w,this):this.multiplyUnsafe(t.h)}toRawBytes(I=!0){return this.assertValidity(),r(w,this,I)}toHex(I=!0){return q_(this.toRawBytes(I))}}w.BASE=new w(t.Gx,t.Gy,e.ONE),w.ZERO=new w(e.ZERO,e.ONE,e.ZERO);const y=t.nBitLength,M=hR(w,t.endo?Math.ceil(y/2):y);return{CURVE:t,ProjectivePoint:w,normPrivateKeyToScalar:u,weierstrassEquation:_,isWithinCurveOrder:a}}function yR(n){const t=Nd(n);return Hc(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function AR(n){const t=yR(n),{Fp:e,n:r}=t,s=e.BYTES+1,_=2*e.BYTES+1;function a(ft){return Oi<ft&&ft<e.ORDER}function c(ft){return Ke(ft,r)}function u(ft){return zl(ft,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:f,weierstrassEquation:w,isWithinCurveOrder:y}=bR({...t,toBytes(ft,wt,Pt){const Ct=wt.toAffine(),Mt=e.toBytes(Ct.x),It=Yc;return Pt?It(Uint8Array.from([wt.hasEvenY()?2:3]),Mt):It(Uint8Array.from([4]),Mt,e.toBytes(Ct.y))},fromBytes(ft){const wt=ft.length,Pt=ft[0],Ct=ft.subarray(1);if(wt===s&&(Pt===2||Pt===3)){const Mt=Gs(Ct);if(!a(Mt))throw new Error("Point is not on curve");const It=w(Mt);let jt=e.sqrt(It);const J=(jt&ir)===ir;return(Pt&1)===1!==J&&(jt=e.neg(jt)),{x:Mt,y:jt}}else if(wt===_&&Pt===4){const Mt=e.fromBytes(Ct.subarray(0,e.BYTES)),It=e.fromBytes(Ct.subarray(e.BYTES,2*e.BYTES));return{x:Mt,y:It}}else throw new Error(`Point of length ${wt} was invalid. Expected ${s} compressed bytes or ${_} uncompressed bytes`)}}),M=ft=>q_(W_(ft,t.nByteLength));function B(ft){const wt=r>>ir;return ft>wt}function I(ft){return B(ft)?c(-ft):ft}const G=(ft,wt,Pt)=>Gs(ft.slice(wt,Pt));class P{constructor(wt,Pt,Ct){this.r=wt,this.s=Pt,this.recovery=Ct,this.assertValidity()}static fromCompact(wt){const Pt=t.nByteLength;return wt=mr("compactSignature",wt,Pt*2),new P(G(wt,0,Pt),G(wt,Pt,2*Pt))}static fromDER(wt){const{r:Pt,s:Ct}=Us.toSig(mr("DER",wt));return new P(Pt,Ct)}assertValidity(){if(!y(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!y(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(wt){return new P(this.r,this.s,wt)}recoverPublicKey(wt){const{r:Pt,s:Ct,recovery:Mt}=this,It=j(mr("msgHash",wt));if(Mt==null||![0,1,2,3].includes(Mt))throw new Error("recovery id invalid");const jt=Mt===2||Mt===3?Pt+t.n:Pt;if(jt>=e.ORDER)throw new Error("recovery id 2 or 3 invalid");const J=(Mt&1)===0?"02":"03",it=l.fromHex(J+M(jt)),_t=u(jt),St=c(-It*_t),H=c(Ct*_t),V=l.BASE.multiplyAndAddUnsafe(it,St,H);if(!V)throw new Error("point at infinify");return V.assertValidity(),V}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new P(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Q_(this.toDERHex())}toDERHex(){return Us.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Q_(this.toCompactHex())}toCompactHex(){return M(this.r)+M(this.s)}}const v={isValidPrivateKey(ft){try{return f(ft),!0}catch{return!1}},normPrivateKeyToScalar:f,randomPrivateKey:()=>{const ft=Id(t.n);return lR(t.randomBytes(ft),t.n)},precompute(ft=8,wt=l.BASE){return wt._setWindowSize(ft),wt.multiply(BigInt(3)),wt}};function N(ft,wt=!0){return l.fromPrivateKey(ft).toRawBytes(wt)}function C(ft){const wt=ft instanceof Uint8Array,Pt=typeof ft=="string",Ct=(wt||Pt)&&ft.length;return wt?Ct===s||Ct===_:Pt?Ct===2*s||Ct===2*_:ft instanceof l}function F(ft,wt,Pt=!0){if(C(ft))throw new Error("first arg must be private key");if(!C(wt))throw new Error("second arg must be public key");return l.fromHex(wt).multiply(f(ft)).toRawBytes(Pt)}const D=t.bits2int||function(ft){const wt=Gs(ft),Pt=ft.length*8-t.nBitLength;return Pt>0?wt>>BigInt(Pt):wt},j=t.bits2int_modN||function(ft){return c(D(ft))},L=Rl(t.nBitLength);function Z(ft){if(typeof ft!="bigint")throw new Error("bigint expected");if(!(Oi<=ft&&ft<L))throw new Error(`bigint expected < 2^${t.nBitLength}`);return W_(ft,t.nByteLength)}function ot(ft,wt,Pt=pt){if(["recovered","canonical"].some(ut=>ut in Pt))throw new Error("sign() legacy options not supported");const{hash:Ct,randomBytes:Mt}=t;let{lowS:It,prehash:jt,extraEntropy:J}=Pt;It==null&&(It=!0),ft=mr("msgHash",ft),jt&&(ft=mr("prehashed msgHash",Ct(ft)));const it=j(ft),_t=f(wt),St=[Z(_t),Z(it)];if(J!=null){const ut=J===!0?Mt(e.BYTES):J;St.push(mr("extraEntropy",ut))}const H=Yc(...St),V=it;function tt(ut){const dt=D(ut);if(!y(dt))return;const x=u(dt),O=l.BASE.multiply(dt).toAffine(),nt=c(O.x);if(nt===Oi)return;const bt=c(x*c(V+nt*_t));if(bt===Oi)return;let Ot=(O.x===nt?0:2)|Number(O.y&ir),vt=bt;return It&&B(bt)&&(vt=I(bt),Ot^=1),new P(nt,vt,Ot)}return{seed:H,k2sig:tt}}const pt={lowS:t.lowS,prehash:!1},Y={lowS:t.lowS,prehash:!1};function At(ft,wt,Pt=pt){const{seed:Ct,k2sig:Mt}=ot(ft,wt,Pt),It=t;return vd(It.hash.outputLen,It.nByteLength,It.hmac)(Ct,Mt)}l.BASE._setWindowSize(8);function Bt(ft,wt,Pt,Ct=Y){var O;const Mt=ft;if(wt=mr("msgHash",wt),Pt=mr("publicKey",Pt),"strict"in Ct)throw new Error("options.strict was renamed to lowS");const{lowS:It,prehash:jt}=Ct;let J,it;try{if(typeof Mt=="string"||Mt instanceof Uint8Array)try{J=P.fromDER(Mt)}catch(nt){if(!(nt instanceof Us.Err))throw nt;J=P.fromCompact(Mt)}else if(typeof Mt=="object"&&typeof Mt.r=="bigint"&&typeof Mt.s=="bigint"){const{r:nt,s:bt}=Mt;J=new P(nt,bt)}else throw new Error("PARSE");it=l.fromHex(Pt)}catch(nt){if(nt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(It&&J.hasHighS())return!1;jt&&(wt=t.hash(wt));const{r:_t,s:St}=J,H=j(wt),V=u(St),tt=c(H*V),ut=c(_t*V),dt=(O=l.BASE.multiplyAndAddUnsafe(it,tt,ut))==null?void 0:O.toAffine();return dt?c(dt.x)===_t:!1}return{CURVE:t,getPublicKey:N,getSharedSecret:F,sign:At,verify:Bt,ProjectivePoint:l,Signature:P,utils:v}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function mR(n){return{hash:n,hmac:(t,...e)=>nd(n,t,wS(...e)),randomBytes:dS}}function SR(n,t){const e=r=>AR({...n,...mR(r)});return Object.freeze({...e(t),create:e})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kd=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Td=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),RR=BigInt(1),Ml=BigInt(2),Gd=(n,t)=>(n+t/Ml)/t;function ER(n){const t=kd,e=BigInt(3),r=BigInt(6),s=BigInt(11),_=BigInt(22),a=BigInt(23),c=BigInt(44),u=BigInt(88),l=n*n*n%t,f=l*l*n%t,w=nr(f,e,t)*f%t,y=nr(w,e,t)*f%t,M=nr(y,Ml,t)*l%t,B=nr(M,s,t)*M%t,I=nr(B,_,t)*B%t,G=nr(I,c,t)*I%t,P=nr(G,u,t)*G%t,v=nr(P,c,t)*I%t,N=nr(v,e,t)*f%t,C=nr(N,a,t)*B%t,F=nr(C,r,t)*l%t,D=nr(F,Ml,t);if(!Bl.eql(Bl.sqr(D),n))throw new Error("Cannot find square root");return D}const Bl=fR(kd,void 0,void 0,{sqrt:ER}),as=SR({a:BigInt(0),b:BigInt(7),Fp:Bl,n:Td,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const t=Td,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-RR*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),_=e,a=BigInt("0x100000000000000000000000000000000"),c=Gd(_*n,t),u=Gd(-r*n,t);let l=Ke(n-c*e-u*s,t),f=Ke(-c*r-u*_,t);const w=l>a,y=f>a;if(w&&(l=t-l),y&&(f=t-f),l>a||f>a)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:w,k1:l,k2neg:y,k2:f}}}},sd);BigInt(0),as.ProjectivePoint;const qc="0x0000000000000000000000000000000000000000",Fd="0x0000000000000000000000000000000000000000000000000000000000000000",Ud=BigInt(0),Kd=BigInt(1),Dd=BigInt(2),Ld=BigInt(27),jd=BigInt(28),tf=BigInt(35),J_={};function Vd(n){return Os(Oe(n),32)}const Cr=class Cr{constructor(t,e,r,s){rt(this,_c);rt(this,oc);rt(this,ac);rt(this,P_);Du(t,J_,"Signature"),K(this,_c,e),K(this,oc,r),K(this,ac,s),K(this,P_,null)}get r(){return m(this,_c)}set r(t){W(L_(t)===32,"invalid r","value",t),K(this,_c,Et(t))}get s(){return m(this,oc)}set s(t){W(L_(t)===32,"invalid s","value",t);const e=Et(t);W(parseInt(e.substring(0,3))<8,"non-canonical s","value",e),K(this,oc,e)}get v(){return m(this,ac)}set v(t){const e=Kt(t,"value");W(e===27||e===28,"invalid v","v",t),K(this,ac,e)}get networkV(){return m(this,P_)}get legacyChainId(){const t=this.networkV;return t==null?null:Cr.getChainId(t)}get yParity(){return this.v===27?0:1}get yParityAndS(){const t=qt(this.s);return this.yParity&&(t[0]|=128),Et(t)}get compactSerialized(){return le([this.r,this.yParityAndS])}get serialized(){return le([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const t=new Cr(J_,this.r,this.s,this.v);return this.networkV&&K(t,P_,this.networkV),t}toJSON(){const t=this.networkV;return{_type:"signature",networkV:t!=null?t.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(t){const e=zt(t,"v");return e==Ld||e==jd?Ud:(W(e>=tf,"invalid EIP-155 v","v",t),(e-tf)/Dd)}static getChainIdV(t,e){return zt(t)*Dd+BigInt(35+e-27)}static getNormalizedV(t){const e=zt(t);return e===Ud||e===Ld?27:e===Kd||e===jd?28:(W(e>=tf,"invalid v","v",t),e&Kd?27:28)}static from(t){function e(l,f){W(l,f,"signature",t)}if(t==null)return new Cr(J_,Fd,Fd,27);if(typeof t=="string"){const l=qt(t,"signature");if(l.length===64){const f=Et(l.slice(0,32)),w=l.slice(32,64),y=w[0]&128?28:27;return w[0]&=127,new Cr(J_,f,Et(w),y)}if(l.length===65){const f=Et(l.slice(0,32)),w=l.slice(32,64);e((w[0]&128)===0,"non-canonical s");const y=Cr.getNormalizedV(l[64]);return new Cr(J_,f,Et(w),y)}e(!1,"invalid raw signature length")}if(t instanceof Cr)return t.clone();const r=t.r;e(r!=null,"missing r");const s=Vd(r),_=function(l,f){if(l!=null)return Vd(l);if(f!=null){e(ee(f,32),"invalid yParityAndS");const w=qt(f);return w[0]&=127,Et(w)}e(!1,"missing s")}(t.s,t.yParityAndS);e((qt(_)[0]&128)==0,"non-canonical s");const{networkV:a,v:c}=function(l,f,w){if(l!=null){const y=zt(l);return{networkV:y>=tf?y:void 0,v:Cr.getNormalizedV(y)}}if(f!=null)return e(ee(f,32),"invalid yParityAndS"),{v:qt(f)[0]&128?28:27};if(w!=null){switch(Kt(w,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}e(!1,"invalid yParity")}e(!1,"missing v")}(t.v,t.yParityAndS,t.yParity),u=new Cr(J_,s,_,c);return a&&K(u,P_,a),e(t.yParity==null||Kt(t.yParity,"sig.yParity")===u.yParity,"yParity mismatch"),e(t.yParityAndS==null||t.yParityAndS===u.yParityAndS,"yParityAndS mismatch"),u}};_c=new WeakMap,oc=new WeakMap,ac=new WeakMap,P_=new WeakMap;let Sr=Cr;const z_=class z_{constructor(t){rt(this,Yi);W(L_(t)===32,"invalid private key","privateKey","[REDACTED]"),K(this,Yi,Et(t))}get privateKey(){return m(this,Yi)}get publicKey(){return z_.computePublicKey(m(this,Yi))}get compressedPublicKey(){return z_.computePublicKey(m(this,Yi),!0)}sign(t){W(L_(t)===32,"invalid digest length","digest",t);const e=as.sign(Ne(t),Ne(m(this,Yi)),{lowS:!0});return Sr.from({r:rs(e.r,32),s:rs(e.s,32),v:e.recovery?28:27})}computeSharedSecret(t){const e=z_.computePublicKey(t);return Et(as.getSharedSecret(Ne(m(this,Yi)),qt(e),!1))}static computePublicKey(t,e){let r=qt(t,"key");if(r.length===32){const _=as.getPublicKey(r,!!e);return Et(_)}if(r.length===64){const _=new Uint8Array(65);_[0]=4,_.set(r,1),r=_}const s=as.ProjectivePoint.fromHex(r);return Et(s.toRawBytes(e))}static recoverPublicKey(t,e){W(L_(t)===32,"invalid digest length","digest",t);const r=Sr.from(e);let s=as.Signature.fromCompact(Ne(le([r.r,r.s])));s=s.addRecoveryBit(r.yParity);const _=s.recoverPublicKey(Ne(t));return W(_!=null,"invalid signautre for digest","signature",e),"0x"+_.toHex(!1)}static addPoints(t,e,r){const s=as.ProjectivePoint.fromHex(z_.computePublicKey(t).substring(2)),_=as.ProjectivePoint.fromHex(z_.computePublicKey(e).substring(2));return"0x"+s.add(_).toHex(!!r)}};Yi=new WeakMap;let Qc=z_;const PR=BigInt(0),zR=BigInt(36);function Yd(n){n=n.toLowerCase();const t=n.substring(2).split(""),e=new Uint8Array(40);for(let s=0;s<40;s++)e[s]=t[s].charCodeAt(0);const r=qt(be(e));for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&(t[s]=t[s].toUpperCase()),(r[s>>1]&15)>=8&&(t[s+1]=t[s+1].toUpperCase());return"0x"+t.join("")}const xl={};for(let n=0;n<10;n++)xl[String(n)]=String(n);for(let n=0;n<26;n++)xl[String.fromCharCode(65+n)]=String(10+n);const Hd=15;function vR(n){n=n.toUpperCase(),n=n.substring(4)+n.substring(0,2)+"00";let t=n.split("").map(r=>xl[r]).join("");for(;t.length>=Hd;){let r=t.substring(0,Hd);t=parseInt(r,10)%97+t.substring(r.length)}let e=String(98-parseInt(t,10)%97);for(;e.length<2;)e="0"+e;return e}const MR=function(){const n={};for(let t=0;t<36;t++){const e="0123456789abcdefghijklmnopqrstuvwxyz"[t];n[e]=BigInt(t)}return n}();function BR(n){n=n.toLowerCase();let t=PR;for(let e=0;e<n.length;e++)t=t*zR+MR[n[e]];return t}function Vt(n){if(W(typeof n=="string","invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/)){n.startsWith("0x")||(n="0x"+n);const t=Yd(n);return W(!n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===n,"bad address checksum","address",n),t}if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){W(n.substring(2,4)===vR(n),"bad icap checksum","address",n);let t=BR(n.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return Yd("0x"+t)}W(!1,"invalid address","address",n)}function xR(n){const t=Vt(n.from);let r=zt(n.nonce,"tx.nonce").toString(16);return r==="0"?r="0x":r.length%2?r="0x0"+r:r="0x"+r,Vt(fe(be(ks([t,r])),12))}function qd(n){return n&&typeof n.getAddress=="function"}function sr(n){try{return Vt(n),!0}catch{}return!1}async function Cl(n,t){const e=await t;return(e==null||e==="0x0000000000000000000000000000000000000000")&&(ht(typeof n!="string","unconfigured name","UNCONFIGURED_NAME",{value:n}),W(!1,"invalid AddressLike value; did not resolve to a value address","target",n)),Vt(e)}function Te(n,t){if(typeof n=="string")return n.match(/^0x[0-9a-f]{40}$/i)?Vt(n):(ht(t!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),Cl(n,t.resolveName(n)));if(qd(n))return Cl(n,n.getAddress());if(n&&typeof n.then=="function")return Cl(n,n);W(!1,"unsupported addressable value","target",n)}const ki={};function Rt(n,t){let e=!1;return t<0&&(e=!0,t*=-1),new Me(ki,`${e?"":"u"}int${t}`,n,{signed:e,width:t})}function Qt(n,t){return new Me(ki,`bytes${t||""}`,n,{size:t})}const Qd=Symbol.for("_ethers_typed"),Hi=class Hi{constructor(t,e,r,s){$(this,"type");$(this,"value");rt(this,v_);$(this,"_typedSymbol");s==null&&(s=null),Du(ki,t,"Typed"),xt(this,{_typedSymbol:Qd,type:e,value:r}),K(this,v_,s),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(t=>t.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return m(this,v_)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return m(this,v_)===!0?-1:m(this,v_)===!1?this.value.length:null}static from(t,e){return new Hi(ki,t,e)}static uint8(t){return Rt(t,8)}static uint16(t){return Rt(t,16)}static uint24(t){return Rt(t,24)}static uint32(t){return Rt(t,32)}static uint40(t){return Rt(t,40)}static uint48(t){return Rt(t,48)}static uint56(t){return Rt(t,56)}static uint64(t){return Rt(t,64)}static uint72(t){return Rt(t,72)}static uint80(t){return Rt(t,80)}static uint88(t){return Rt(t,88)}static uint96(t){return Rt(t,96)}static uint104(t){return Rt(t,104)}static uint112(t){return Rt(t,112)}static uint120(t){return Rt(t,120)}static uint128(t){return Rt(t,128)}static uint136(t){return Rt(t,136)}static uint144(t){return Rt(t,144)}static uint152(t){return Rt(t,152)}static uint160(t){return Rt(t,160)}static uint168(t){return Rt(t,168)}static uint176(t){return Rt(t,176)}static uint184(t){return Rt(t,184)}static uint192(t){return Rt(t,192)}static uint200(t){return Rt(t,200)}static uint208(t){return Rt(t,208)}static uint216(t){return Rt(t,216)}static uint224(t){return Rt(t,224)}static uint232(t){return Rt(t,232)}static uint240(t){return Rt(t,240)}static uint248(t){return Rt(t,248)}static uint256(t){return Rt(t,256)}static uint(t){return Rt(t,256)}static int8(t){return Rt(t,-8)}static int16(t){return Rt(t,-16)}static int24(t){return Rt(t,-24)}static int32(t){return Rt(t,-32)}static int40(t){return Rt(t,-40)}static int48(t){return Rt(t,-48)}static int56(t){return Rt(t,-56)}static int64(t){return Rt(t,-64)}static int72(t){return Rt(t,-72)}static int80(t){return Rt(t,-80)}static int88(t){return Rt(t,-88)}static int96(t){return Rt(t,-96)}static int104(t){return Rt(t,-104)}static int112(t){return Rt(t,-112)}static int120(t){return Rt(t,-120)}static int128(t){return Rt(t,-128)}static int136(t){return Rt(t,-136)}static int144(t){return Rt(t,-144)}static int152(t){return Rt(t,-152)}static int160(t){return Rt(t,-160)}static int168(t){return Rt(t,-168)}static int176(t){return Rt(t,-176)}static int184(t){return Rt(t,-184)}static int192(t){return Rt(t,-192)}static int200(t){return Rt(t,-200)}static int208(t){return Rt(t,-208)}static int216(t){return Rt(t,-216)}static int224(t){return Rt(t,-224)}static int232(t){return Rt(t,-232)}static int240(t){return Rt(t,-240)}static int248(t){return Rt(t,-248)}static int256(t){return Rt(t,-256)}static int(t){return Rt(t,-256)}static bytes1(t){return Qt(t,1)}static bytes2(t){return Qt(t,2)}static bytes3(t){return Qt(t,3)}static bytes4(t){return Qt(t,4)}static bytes5(t){return Qt(t,5)}static bytes6(t){return Qt(t,6)}static bytes7(t){return Qt(t,7)}static bytes8(t){return Qt(t,8)}static bytes9(t){return Qt(t,9)}static bytes10(t){return Qt(t,10)}static bytes11(t){return Qt(t,11)}static bytes12(t){return Qt(t,12)}static bytes13(t){return Qt(t,13)}static bytes14(t){return Qt(t,14)}static bytes15(t){return Qt(t,15)}static bytes16(t){return Qt(t,16)}static bytes17(t){return Qt(t,17)}static bytes18(t){return Qt(t,18)}static bytes19(t){return Qt(t,19)}static bytes20(t){return Qt(t,20)}static bytes21(t){return Qt(t,21)}static bytes22(t){return Qt(t,22)}static bytes23(t){return Qt(t,23)}static bytes24(t){return Qt(t,24)}static bytes25(t){return Qt(t,25)}static bytes26(t){return Qt(t,26)}static bytes27(t){return Qt(t,27)}static bytes28(t){return Qt(t,28)}static bytes29(t){return Qt(t,29)}static bytes30(t){return Qt(t,30)}static bytes31(t){return Qt(t,31)}static bytes32(t){return Qt(t,32)}static address(t){return new Hi(ki,"address",t)}static bool(t){return new Hi(ki,"bool",!!t)}static bytes(t){return new Hi(ki,"bytes",t)}static string(t){return new Hi(ki,"string",t)}static array(t,e){throw new Error("not implemented yet")}static tuple(t,e){throw new Error("not implemented yet")}static overrides(t){return new Hi(ki,"overrides",Object.assign({},t))}static isTyped(t){return t&&typeof t=="object"&&"_typedSymbol"in t&&t._typedSymbol===Qd}static dereference(t,e){if(Hi.isTyped(t)){if(t.type!==e)throw new Error(`invalid type: expecetd ${e}, got ${t.type}`);return t.value}return t}};v_=new WeakMap;let Me=Hi;class CR extends Ni{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){let r=Me.dereference(e,"string");try{r=Vt(r)}catch(s){return this._throwError(s.message,e)}return t.writeValue(r)}decode(t){return Vt(rs(t.readValue(),20))}}class IR extends Ni{constructor(e){super(e.name,e.type,"_",e.dynamic);$(this,"coder");this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}function Wd(n,t,e){let r=[];if(Array.isArray(e))r=e;else if(e&&typeof e=="object"){let u={};r=t.map(l=>{const f=l.localName;return ht(f,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:e}),ht(!u[f],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:e}),u[f]=!0,e[f]})}else W(!1,"invalid tuple value","tuple",e);W(t.length===r.length,"types/value length mismatch","tuple",e);let s=new fl,_=new fl,a=[];t.forEach((u,l)=>{let f=r[l];if(u.dynamic){let w=_.length;u.encode(_,f);let y=s.writeUpdatableValue();a.push(M=>{y(M+w)})}else u.encode(s,f)}),a.forEach(u=>{u(s.length)});let c=n.appendWriter(s);return c+=n.appendWriter(_),c}function Jd(n,t){let e=[],r=[],s=n.subReader(0);return t.forEach(_=>{let a=null;if(_.dynamic){let c=n.readIndex(),u=s.subReader(c);try{a=_.decode(u)}catch(l){if(Ee(l,"BUFFER_OVERRUN"))throw l;a=l,a.baseType=_.name,a.name=_.localName,a.type=_.type}}else try{a=_.decode(n)}catch(c){if(Ee(c,"BUFFER_OVERRUN"))throw c;a=c,a.baseType=_.name,a.name=_.localName,a.type=_.type}if(a==null)throw new Error("investigate");e.push(a),r.push(_.localName||null)}),V_.fromItems(e,r)}class NR extends Ni{constructor(e,r,s){const _=e.type+"["+(r>=0?r:"")+"]",a=r===-1||e.dynamic;super("array",_,s,a);$(this,"coder");$(this,"length");xt(this,{coder:e,length:r})}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let s=0;s<this.length;s++)r.push(e);return r}encode(e,r){const s=Me.dereference(r,"array");Array.isArray(s)||this._throwError("expected array value",s);let _=this.length;_===-1&&(_=s.length,e.writeValue(s.length)),Bw(s.length,_,"coder array"+(this.localName?" "+this.localName:""));let a=[];for(let c=0;c<s.length;c++)a.push(this.coder);return Wd(e,a,s)}decode(e){let r=this.length;r===-1&&(r=e.readIndex(),ht(r*ke<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:r*ke,length:e.dataLength}));let s=[];for(let _=0;_<r;_++)s.push(new IR(this.coder));return Jd(e,s)}}class OR extends Ni{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){const r=Me.dereference(e,"bool");return t.writeValue(r?1:0)}decode(t){return!!t.readValue()}}class $d extends Ni{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=Ne(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readIndex(),!0)}}class kR extends $d{constructor(t){super("bytes",t)}decode(t){return Et(super.decode(t))}}class TR extends Ni{constructor(e,r){let s="bytes"+String(e);super(s,s,r,!1);$(this,"size");xt(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,r){let s=Ne(Me.dereference(r,this.type));return s.length!==this.size&&this._throwError("incorrect data length",r),e.writeBytes(s)}decode(e){return Et(e.readBytes(this.size))}}const GR=new Uint8Array([]);class FR extends Ni{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return e!=null&&this._throwError("not null",e),t.writeBytes(GR)}decode(t){return t.readBytes(0),null}}const UR=BigInt(0),KR=BigInt(1),DR=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class LR extends Ni{constructor(e,r,s){const _=(r?"int":"uint")+e*8;super(_,_,s,!1);$(this,"size");$(this,"signed");xt(this,{size:e,signed:r},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,r){let s=zt(Me.dereference(r,this.type)),_=Lc(DR,ke*8);if(this.signed){let a=Lc(_,this.size*8-1);(s>a||s<-(a+KR))&&this._throwError("value out-of-bounds",r),s=Nw(s,8*ke)}else(s<UR||s>Lc(_,this.size*8))&&this._throwError("value out-of-bounds",r);return e.writeValue(s)}decode(e){let r=Lc(e.readValue(),this.size*8);return this.signed&&(r=qm(r,this.size*8)),r}}class jR extends $d{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,Ci(Me.dereference(e,"string")))}decode(t){return Vu(super.decode(t))}}class ef extends Ni{constructor(e,r){let s=!1;const _=[];e.forEach(c=>{c.dynamic&&(s=!0),_.push(c.type)});const a="tuple("+_.join(",")+")";super("tuple",a,r,s);$(this,"coders");xt(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach(s=>{e.push(s.defaultValue())});const r=this.coders.reduce((s,_)=>{const a=_.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});return this.coders.forEach((s,_)=>{let a=s.localName;!a||r[a]!==1||(a==="length"&&(a="_length"),e[a]==null&&(e[a]=e[_]))}),Object.freeze(e)}encode(e,r){const s=Me.dereference(r,"tuple");return Wd(e,this.coders,s)}decode(e){return Jd(e,this.coders)}}function Ks(n){return be(Ci(n))}var VR="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const Zd=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Xd=4;function YR(n){let t=0;function e(){return n[t++]<<8|n[t++]}let r=e(),s=1,_=[0,1];for(let F=1;F<r;F++)_.push(s+=e());let a=e(),c=t;t+=a;let u=0,l=0;function f(){return u==0&&(l=l<<8|n[t++],u=8),l>>--u&1}const w=31,y=2**w,M=y>>>1,B=M>>1,I=y-1;let G=0;for(let F=0;F<w;F++)G=G<<1|f();let P=[],v=0,N=y;for(;;){let F=Math.floor(((G-v+1)*s-1)/N),D=0,j=r;for(;j-D>1;){let ot=D+j>>>1;F<_[ot]?j=ot:D=ot}if(D==0)break;P.push(D);let L=v+Math.floor(N*_[D]/s),Z=v+Math.floor(N*_[D+1]/s)-1;for(;((L^Z)&M)==0;)G=G<<1&I|f(),L=L<<1&I,Z=Z<<1&I|1;for(;L&~Z&B;)G=G&M|G<<1&I>>>1|f(),L=L<<1^M,Z=(Z^M)<<1|M|1;v=L,N=1+Z-L}let C=r-4;return P.map(F=>{switch(F-C){case 3:return C+65792+(n[c++]<<16|n[c++]<<8|n[c++]);case 2:return C+256+(n[c++]<<8|n[c++]);case 1:return C+n[c++];default:return F-1}})}function HR(n){let t=0;return()=>n[t++]}function tg(n){return HR(YR(qR(n)))}function qR(n){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,_)=>t[s.charCodeAt(0)]=_);let e=n.length,r=new Uint8Array(6*e>>3);for(let s=0,_=0,a=0,c=0;s<e;s++)c=c<<6|t[n.charCodeAt(s)],a+=6,a>=8&&(r[_++]=c>>(a-=8));return r}function QR(n){return n&1?~n>>1:n>>1}function WR(n,t){let e=Array(n);for(let r=0,s=0;r<n;r++)e[r]=s+=QR(t());return e}function Wc(n,t=0){let e=[];for(;;){let r=n(),s=n();if(!s)break;t+=r;for(let _=0;_<s;_++)e.push(t+_);t+=s+1}return e}function eg(n){return Jc(()=>{let t=Wc(n);if(t.length)return t})}function rg(n){let t=[];for(;;){let e=n();if(e==0)break;t.push(JR(e,n))}for(;;){let e=n()-1;if(e<0)break;t.push($R(e,n))}return t.flat()}function Jc(n){let t=[];for(;;){let e=n(t.length);if(!e)break;t.push(e)}return t}function ng(n,t,e){let r=Array(n).fill().map(()=>[]);for(let s=0;s<t;s++)WR(n,e).forEach((_,a)=>r[a].push(_));return r}function JR(n,t){let e=1+t(),r=t(),s=Jc(t);return ng(s.length,1+n,t).flatMap((a,c)=>{let[u,...l]=a;return Array(s[c]).fill().map((f,w)=>{let y=w*r;return[u+w*e,l.map(M=>M+y)]})})}function $R(n,t){let e=1+t();return ng(e,1+n,t).map(s=>[s[0],s.slice(1)])}function ZR(n){let t=[],e=Wc(n);return s(r([]),[]),t;function r(_){let a=n(),c=Jc(()=>{let u=Wc(n).map(l=>e[l]);if(u.length)return r(u)});return{S:a,B:c,Q:_}}function s({S:_,B:a},c,u){if(!(_&4&&u===c[c.length-1])){_&2&&(u=c[c.length-1]),_&1&&t.push(c);for(let l of a)for(let f of l.Q)s(l,[...c,f],u)}}}function XR(n){return n.toString(16).toUpperCase().padStart(2,"0")}function ig(n){return`{${XR(n)}}`}function tE(n){let t=[];for(let e=0,r=n.length;e<r;){let s=n.codePointAt(e);e+=s<65536?1:2,t.push(s)}return t}function $_(n){let e=n.length;if(e<4096)return String.fromCodePoint(...n);let r=[];for(let s=0;s<e;)r.push(String.fromCodePoint(...n.slice(s,s+=4096)));return r.join("")}function eE(n,t){let e=n.length,r=e-t.length;for(let s=0;r==0&&s<e;s++)r=n[s]-t[s];return r}var rE="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";const $c=44032,rf=4352,nf=4449,sf=4519,sg=19,_g=21,Z_=28,_f=_g*Z_,nE=sg*_f,iE=$c+nE,sE=rf+sg,_E=nf+_g,oE=sf+Z_;function Zc(n){return n>>24&255}function og(n){return n&16777215}let Il,ag,Nl,of;function aE(){let n=tg(rE);Il=new Map(eg(n).flatMap((t,e)=>t.map(r=>[r,e+1<<24]))),ag=new Set(Wc(n)),Nl=new Map,of=new Map;for(let[t,e]of rg(n)){if(!ag.has(t)&&e.length==2){let[r,s]=e,_=of.get(r);_||(_=new Map,of.set(r,_)),_.set(s,t)}Nl.set(t,e.reverse())}}function cg(n){return n>=$c&&n<iE}function cE(n,t){if(n>=rf&&n<sE&&t>=nf&&t<_E)return $c+(n-rf)*_f+(t-nf)*Z_;if(cg(n)&&t>sf&&t<oE&&(n-$c)%Z_==0)return n+(t-sf);{let e=of.get(n);return e&&(e=e.get(t),e)?e:-1}}function ug(n){Il||aE();let t=[],e=[],r=!1;function s(_){let a=Il.get(_);a&&(r=!0,_|=a),t.push(_)}for(let _ of n)for(;;){if(_<128)t.push(_);else if(cg(_)){let a=_-$c,c=a/_f|0,u=a%_f/Z_|0,l=a%Z_;s(rf+c),s(nf+u),l>0&&s(sf+l)}else{let a=Nl.get(_);a?e.push(...a):s(_)}if(!e.length)break;_=e.pop()}if(r&&t.length>1){let _=Zc(t[0]);for(let a=1;a<t.length;a++){let c=Zc(t[a]);if(c==0||_<=c){_=c;continue}let u=a-1;for(;;){let l=t[u+1];if(t[u+1]=t[u],t[u]=l,!u||(_=Zc(t[--u]),_<=c))break}_=Zc(t[a])}}return t}function uE(n){let t=[],e=[],r=-1,s=0;for(let _ of n){let a=Zc(_),c=og(_);if(r==-1)a==0?r=c:t.push(c);else if(s>0&&s>=a)a==0?(t.push(r,...e),e.length=0,r=c):e.push(c),s=a;else{let u=cE(r,c);u>=0?r=u:s==0&&a==0?(t.push(r),r=c):(e.push(c),s=a)}}return r>=0&&t.push(r,...e),t}function fg(n){return ug(n).map(og)}function fE(n){return uE(ug(n))}const lg=45,pg=".",hg=65039,wg=1,af=n=>Array.from(n);function Xc(n,t){return n.P.has(t)||n.Q.has(t)}class lE extends Array{get is_emoji(){return!0}}let Ol,dg,Ds,kl,gg,X_,Tl,to,Ls,bg,Gl;function Fl(){if(Ol)return;let n=tg(VR);const t=()=>Wc(n),e=()=>new Set(t()),r=(f,w)=>w.forEach(y=>f.add(y));Ol=new Map(rg(n)),dg=e(),Ds=t(),kl=new Set(t().map(f=>Ds[f])),Ds=new Set(Ds),gg=e(),e();let s=eg(n),_=n();const a=()=>{let f=new Set;return t().forEach(w=>r(f,s[w])),r(f,t()),f};X_=Jc(f=>{let w=Jc(n).map(y=>y+96);if(w.length){let y=f>=_;w[0]-=32,w=$_(w),y&&(w=`Restricted[${w}]`);let M=a(),B=a(),I=!n();return{N:w,P:M,Q:B,M:I,R:y}}}),Tl=e(),to=new Map;let c=t().concat(af(Tl)).sort((f,w)=>f-w);c.forEach((f,w)=>{let y=n(),M=c[w]=y?c[w-y]:{V:[],M:new Map};M.V.push(f),Tl.has(f)||to.set(f,M)});for(let{V:f,M:w}of new Set(to.values())){let y=[];for(let B of f){let I=X_.filter(P=>Xc(P,B)),G=y.find(({G:P})=>I.some(v=>P.has(v)));G||(G={G:new Set,V:[]},y.push(G)),G.V.push(B),r(G.G,I)}let M=y.flatMap(B=>af(B.G));for(let{G:B,V:I}of y){let G=new Set(M.filter(P=>!B.has(P)));for(let P of I)w.set(P,G)}}Ls=new Set;let u=new Set;const l=f=>Ls.has(f)?u.add(f):Ls.add(f);for(let f of X_){for(let w of f.P)l(w);for(let w of f.Q)l(w)}for(let f of Ls)!to.has(f)&&!u.has(f)&&to.set(f,wg);r(Ls,fg(Ls)),bg=ZR(n).map(f=>lE.from(f)).sort(eE),Gl=new Map;for(let f of bg){let w=[Gl];for(let y of f){let M=w.map(B=>{let I=B.get(y);return I||(I=new Map,B.set(y,I)),I});y===hg?w.push(...M):w=M}for(let y of w)y.V=f}}function Ul(n){return(yg(n)?"":`${Kl(cf([n]))} `)+ig(n)}function Kl(n){return`"${n}"`}function pE(n){if(n.length>=4&&n[2]==lg&&n[3]==lg)throw new Error(`invalid label extension: "${$_(n.slice(0,4))}"`)}function hE(n){for(let e=n.lastIndexOf(95);e>0;)if(n[--e]!==95)throw new Error("underscore allowed only at start")}function wE(n){let t=n[0],e=Zd.get(t);if(e)throw tu(`leading ${e}`);let r=n.length,s=-1;for(let _=1;_<r;_++){t=n[_];let a=Zd.get(t);if(a){if(s==_)throw tu(`${e} + ${a}`);s=_+1,e=a}}if(s==r)throw tu(`trailing ${e}`)}function cf(n,t=1/0,e=ig){let r=[];dE(n[0])&&r.push("◌"),n.length>t&&(t>>=1,n=[...n.slice(0,t),8230,...n.slice(-t)]);let s=0,_=n.length;for(let a=0;a<_;a++){let c=n[a];yg(c)&&(r.push($_(n.slice(s,a))),r.push(e(c)),s=a+1)}return r.push($_(n.slice(s,_))),r.join("")}function dE(n){return Fl(),Ds.has(n)}function yg(n){return Fl(),gg.has(n)}function gE(n){return mE(bE(n,fE,EE))}function bE(n,t,e){if(!n)return[];Fl();let r=0;return n.split(pg).map(s=>{let _=tE(s),a={input:_,offset:r};r+=_.length+1;try{let c=a.tokens=RE(_,t,e),u=c.length,l;if(!u)throw new Error("empty label");let f=a.output=c.flat();if(hE(f),!(a.emoji=u>1||c[0].is_emoji)&&f.every(y=>y<128))pE(f),l="ASCII";else{let y=c.flatMap(M=>M.is_emoji?[]:M);if(!y.length)l="Emoji";else{if(Ds.has(f[0]))throw tu("leading combining mark");for(let I=1;I<u;I++){let G=c[I];if(!G.is_emoji&&Ds.has(G[0]))throw tu(`emoji + combining mark: "${$_(c[I-1])} + ${cf([G[0]])}"`)}wE(f);let M=af(new Set(y)),[B]=AE(M);SE(B,y),yE(B,M),l=B.N}}a.type=l}catch(c){a.error=c}return a})}function yE(n,t){let e,r=[];for(let s of t){let _=to.get(s);if(_===wg)return;if(_){let a=_.M.get(s);if(e=e?e.filter(c=>a.has(c)):af(a),!e.length)return}else r.push(s)}if(e){for(let s of e)if(r.every(_=>Xc(s,_)))throw new Error(`whole-script confusable: ${n.N}/${s.N}`)}}function AE(n){let t=X_;for(let e of n){let r=t.filter(s=>Xc(s,e));if(!r.length)throw X_.some(s=>Xc(s,e))?mg(t[0],e):Ag(e);if(t=r,r.length==1)break}return t}function mE(n){return n.map(({input:t,error:e,output:r})=>{if(e){let s=e.message;throw new Error(n.length==1?s:`Invalid label ${Kl(cf(t,63))}: ${s}`)}return $_(r)}).join(pg)}function Ag(n){return new Error(`disallowed character: ${Ul(n)}`)}function mg(n,t){let e=Ul(t),r=X_.find(s=>s.P.has(t));return r&&(e=`${r.N} ${e}`),new Error(`illegal mixture: ${n.N} + ${e}`)}function tu(n){return new Error(`illegal placement: ${n}`)}function SE(n,t){for(let e of t)if(!Xc(n,e))throw mg(n,e);if(n.M){let e=fg(t);for(let r=1,s=e.length;r<s;r++)if(kl.has(e[r])){let _=r+1;for(let a;_<s&&kl.has(a=e[_]);_++)for(let c=r;c<_;c++)if(e[c]==a)throw new Error(`duplicate non-spacing marks: ${Ul(a)}`);if(_-r>Xd)throw new Error(`excessive non-spacing marks: ${Kl(cf(e.slice(r-1,_)))} (${_-r}/${Xd})`);r=_}}}function RE(n,t,e){let r=[],s=[];for(n=n.slice().reverse();n.length;){let _=PE(n);if(_)s.length&&(r.push(t(s)),s=[]),r.push(e(_));else{let a=n.pop();if(Ls.has(a))s.push(a);else{let c=Ol.get(a);if(c)s.push(...c);else if(!dg.has(a))throw Ag(a)}}}return s.length&&r.push(t(s)),r}function EE(n){return n.filter(t=>t!=hg)}function PE(n,t){let e=Gl,r,s=n.length;for(;s&&(e=e.get(n[--s]),!!e);){let{V:_}=e;_&&(r=_,n.length=s)}return r}const Sg=new Uint8Array(32);Sg.fill(0);function Rg(n){return W(n.length!==0,"invalid ENS name; empty component","comp",n),n}function Eg(n){const t=Ci(zE(n)),e=[];if(n.length===0)return e;let r=0;for(let s=0;s<t.length;s++)t[s]===46&&(e.push(Rg(t.slice(r,s))),r=s+1);return W(r<t.length,"invalid ENS name; empty component","name",n),e.push(Rg(t.slice(r))),e}function zE(n){try{if(n.length===0)throw new Error("empty label");return gE(n)}catch(t){W(!1,`invalid ENS name (${t.message})`,"name",n)}}function Dl(n){W(typeof n=="string","invalid ENS name; not a string","name",n),W(n.length,"invalid ENS name (empty label)","name",n);let t=Sg;const e=Eg(n);for(;e.length;)t=be(le([t,be(e.pop())]));return Et(t)}function vE(n,t){const e=t;return W(e<=255,"DNS encoded label cannot exceed 255","length",e),Et(le(Eg(n).map(r=>{W(r.length<=e,`label ${JSON.stringify(n)} exceeds ${e} bytes`,"name",n);const s=new Uint8Array(r.length+1);return s.set(r,1),s[0]=s.length-1,s})))+"00"}function Ll(n,t){return{address:Vt(n),storageKeys:t.map((e,r)=>(W(ee(e,32),"invalid slot",`storageKeys[${r}]`,e),e.toLowerCase()))}}function js(n){if(Array.isArray(n))return n.map((e,r)=>Array.isArray(e)?(W(e.length===2,"invalid slot set",`value[${r}]`,e),Ll(e[0],e[1])):(W(e!=null&&typeof e=="object","invalid address-slot set","value",n),Ll(e.address,e.storageKeys)));W(n!=null&&typeof n=="object","invalid access list","value",n);const t=Object.keys(n).map(e=>{const r=n[e].reduce((s,_)=>(s[_]=!0,s),{});return Ll(e,Object.keys(r).sort())});return t.sort((e,r)=>e.address.localeCompare(r.address)),t}function ME(n){let t;return typeof n=="string"?t=Qc.computePublicKey(n,!1):t=n.publicKey,Vt(be("0x"+t.substring(4)).substring(26))}function Pg(n,t){return ME(Qc.recoverPublicKey(n,t))}const me=BigInt(0),BE=BigInt(2),xE=BigInt(27),CE=BigInt(28),IE=BigInt(35),NE=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),jl=4096*32;function zg(n,t){let e=n.toString(16);for(;e.length<2;)e="0"+e;return e+=H_(t).substring(4),"0x"+e}function uf(n){return n==="0x"?null:Vt(n)}function Vl(n,t){try{return js(n)}catch(e){W(!1,e.message,t,n)}}function eu(n,t){return n==="0x"?0:Kt(n,t)}function he(n,t){if(n==="0x")return me;const e=zt(n,t);return W(e<=NE,"value exceeds uint size",t,e),e}function se(n,t){const e=zt(n,"value"),r=Oe(e);return W(r.length<=32,"value too large",`tx.${t}`,e),r}function Yl(n){return js(n).map(t=>[t.address,t.storageKeys])}function OE(n,t){W(Array.isArray(n),`invalid ${t}`,"value",n);for(let e=0;e<n.length;e++)W(ee(n[e],32),"invalid ${ param } hash",`value[${e}]`,n[e]);return n}function kE(n){const t=qu(n);W(Array.isArray(t)&&(t.length===9||t.length===6),"invalid field count for legacy transaction","data",n);const e={type:0,nonce:eu(t[0],"nonce"),gasPrice:he(t[1],"gasPrice"),gasLimit:he(t[2],"gasLimit"),to:uf(t[3]),value:he(t[4],"value"),data:Et(t[5]),chainId:me};if(t.length===6)return e;const r=he(t[6],"v"),s=he(t[7],"r"),_=he(t[8],"s");if(s===me&&_===me)e.chainId=r;else{let a=(r-IE)/BE;a<me&&(a=me),e.chainId=a,W(a!==me||r===xE||r===CE,"non-canonical legacy v","v",t[6]),e.signature=Sr.from({r:Os(t[7],32),s:Os(t[8],32),v:r})}return e}function TE(n,t){const e=[se(n.nonce,"nonce"),se(n.gasPrice||0,"gasPrice"),se(n.gasLimit,"gasLimit"),n.to||"0x",se(n.value,"value"),n.data];let r=me;if(n.chainId!=me)r=zt(n.chainId,"tx.chainId"),W(!t||t.networkV==null||t.legacyChainId===r,"tx.chainId/sig.v mismatch","sig",t);else if(n.signature){const _=n.signature.legacyChainId;_!=null&&(r=_)}if(!t)return r!==me&&(e.push(Oe(r)),e.push("0x"),e.push("0x")),ks(e);let s=BigInt(27+t.yParity);return r!==me?s=Sr.getChainIdV(r,t.v):BigInt(t.v)!==s&&W(!1,"tx.chainId/sig.v mismatch","sig",t),e.push(Oe(s)),e.push(Oe(t.r)),e.push(Oe(t.s)),ks(e)}function Hl(n,t){let e;try{if(e=eu(t[0],"yParity"),e!==0&&e!==1)throw new Error("bad yParity")}catch{W(!1,"invalid yParity","yParity",t[0])}const r=Os(t[1],32),s=Os(t[2],32),_=Sr.from({r,s,yParity:e});n.signature=_}function GE(n){const t=qu(qt(n).slice(1));W(Array.isArray(t)&&(t.length===9||t.length===12),"invalid field count for transaction type: 2","data",Et(n));const e={type:2,chainId:he(t[0],"chainId"),nonce:eu(t[1],"nonce"),maxPriorityFeePerGas:he(t[2],"maxPriorityFeePerGas"),maxFeePerGas:he(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:he(t[4],"gasLimit"),to:uf(t[5]),value:he(t[6],"value"),data:Et(t[7]),accessList:Vl(t[8],"accessList")};return t.length===9||Hl(e,t.slice(9)),e}function FE(n,t){const e=[se(n.chainId,"chainId"),se(n.nonce,"nonce"),se(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),se(n.maxFeePerGas||0,"maxFeePerGas"),se(n.gasLimit,"gasLimit"),n.to||"0x",se(n.value,"value"),n.data,Yl(n.accessList||[])];return t&&(e.push(se(t.yParity,"yParity")),e.push(Oe(t.r)),e.push(Oe(t.s))),le(["0x02",ks(e)])}function UE(n){const t=qu(qt(n).slice(1));W(Array.isArray(t)&&(t.length===8||t.length===11),"invalid field count for transaction type: 1","data",Et(n));const e={type:1,chainId:he(t[0],"chainId"),nonce:eu(t[1],"nonce"),gasPrice:he(t[2],"gasPrice"),gasLimit:he(t[3],"gasLimit"),to:uf(t[4]),value:he(t[5],"value"),data:Et(t[6]),accessList:Vl(t[7],"accessList")};return t.length===8||Hl(e,t.slice(8)),e}function KE(n,t){const e=[se(n.chainId,"chainId"),se(n.nonce,"nonce"),se(n.gasPrice||0,"gasPrice"),se(n.gasLimit,"gasLimit"),n.to||"0x",se(n.value,"value"),n.data,Yl(n.accessList||[])];return t&&(e.push(se(t.yParity,"recoveryParam")),e.push(Oe(t.r)),e.push(Oe(t.s))),le(["0x01",ks(e)])}function DE(n){let t=qu(qt(n).slice(1)),e="3",r=null;if(t.length===4&&Array.isArray(t[0])){e="3 (network format)";const _=t[1],a=t[2],c=t[3];W(Array.isArray(_),"invalid network format: blobs not an array","fields[1]",_),W(Array.isArray(a),"invalid network format: commitments not an array","fields[2]",a),W(Array.isArray(c),"invalid network format: proofs not an array","fields[3]",c),W(_.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),W(_.length===c.length,"invalid network format: blobs/proofs length mismatch","fields",t),r=[];for(let u=0;u<t[1].length;u++)r.push({data:_[u],commitment:a[u],proof:c[u]});t=t[0]}W(Array.isArray(t)&&(t.length===11||t.length===14),`invalid field count for transaction type: ${e}`,"data",Et(n));const s={type:3,chainId:he(t[0],"chainId"),nonce:eu(t[1],"nonce"),maxPriorityFeePerGas:he(t[2],"maxPriorityFeePerGas"),maxFeePerGas:he(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:he(t[4],"gasLimit"),to:uf(t[5]),value:he(t[6],"value"),data:Et(t[7]),accessList:Vl(t[8],"accessList"),maxFeePerBlobGas:he(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};r&&(s.blobs=r),W(s.to!=null,`invalid address for transaction type: ${e}`,"data",n),W(Array.isArray(s.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",n);for(let _=0;_<s.blobVersionedHashes.length;_++)W(ee(s.blobVersionedHashes[_],32),`invalid blobVersionedHash at index ${_}: must be length 32`,"data",n);return t.length===11||Hl(s,t.slice(11)),s}function LE(n,t,e){const r=[se(n.chainId,"chainId"),se(n.nonce,"nonce"),se(n.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),se(n.maxFeePerGas||0,"maxFeePerGas"),se(n.gasLimit,"gasLimit"),n.to||qc,se(n.value,"value"),n.data,Yl(n.accessList||[]),se(n.maxFeePerBlobGas||0,"maxFeePerBlobGas"),OE(n.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(r.push(se(t.yParity,"yParity")),r.push(Oe(t.r)),r.push(Oe(t.s)),e)?le(["0x03",ks([r,e.map(s=>s.data),e.map(s=>s.commitment),e.map(s=>s.proof)])]):le(["0x03",ks(r)])}const Qi=class Qi{constructor(){rt(this,Ac);rt(this,Ri);rt(this,cc);rt(this,uc);rt(this,fc);rt(this,lc);rt(this,pc);rt(this,hc);rt(this,wc);rt(this,dc);rt(this,gc);rt(this,bc);rt(this,yc);rt(this,M_);rt(this,gs);rt(this,qi);rt(this,bs);K(this,Ri,null),K(this,cc,null),K(this,fc,0),K(this,lc,me),K(this,pc,null),K(this,hc,null),K(this,wc,null),K(this,uc,"0x"),K(this,dc,me),K(this,gc,me),K(this,bc,null),K(this,yc,null),K(this,M_,null),K(this,gs,null),K(this,bs,null),K(this,qi,null)}get type(){return m(this,Ri)}set type(t){switch(t){case null:K(this,Ri,null);break;case 0:case"legacy":K(this,Ri,0);break;case 1:case"berlin":case"eip-2930":K(this,Ri,1);break;case 2:case"london":case"eip-1559":K(this,Ri,2);break;case 3:case"cancun":case"eip-4844":K(this,Ri,3);break;default:W(!1,"unsupported transaction type","type",t)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const t=m(this,cc);return t==null&&this.type===3?qc:t}set to(t){K(this,cc,t==null?null:Vt(t))}get nonce(){return m(this,fc)}set nonce(t){K(this,fc,Kt(t,"value"))}get gasLimit(){return m(this,lc)}set gasLimit(t){K(this,lc,zt(t))}get gasPrice(){const t=m(this,pc);return t==null&&(this.type===0||this.type===1)?me:t}set gasPrice(t){K(this,pc,t==null?null:zt(t,"gasPrice"))}get maxPriorityFeePerGas(){const t=m(this,hc);return t??(this.type===2||this.type===3?me:null)}set maxPriorityFeePerGas(t){K(this,hc,t==null?null:zt(t,"maxPriorityFeePerGas"))}get maxFeePerGas(){const t=m(this,wc);return t??(this.type===2||this.type===3?me:null)}set maxFeePerGas(t){K(this,wc,t==null?null:zt(t,"maxFeePerGas"))}get data(){return m(this,uc)}set data(t){K(this,uc,Et(t))}get value(){return m(this,dc)}set value(t){K(this,dc,zt(t,"value"))}get chainId(){return m(this,gc)}set chainId(t){K(this,gc,zt(t))}get signature(){return m(this,bc)||null}set signature(t){K(this,bc,t==null?null:Sr.from(t))}get accessList(){const t=m(this,yc)||null;return t??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(t){K(this,yc,t==null?null:js(t))}get maxFeePerBlobGas(){const t=m(this,M_);return t==null&&this.type===3?me:t}set maxFeePerBlobGas(t){K(this,M_,t==null?null:zt(t,"maxFeePerBlobGas"))}get blobVersionedHashes(){let t=m(this,gs);return t==null&&this.type===3?[]:t}set blobVersionedHashes(t){if(t!=null){W(Array.isArray(t),"blobVersionedHashes must be an Array","value",t),t=t.slice();for(let e=0;e<t.length;e++)W(ee(t[e],32),"invalid blobVersionedHash",`value[${e}]`,t[e])}K(this,gs,t)}get blobs(){return m(this,bs)==null?null:m(this,bs).map(t=>Object.assign({},t))}set blobs(t){if(t==null){K(this,bs,null);return}const e=[],r=[];for(let s=0;s<t.length;s++){const _=t[s];if(sl(_)){ht(m(this,qi),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let a=qt(_);if(W(a.length<=jl,"blob is too large",`blobs[${s}]`,_),a.length!==jl){const l=new Uint8Array(jl);l.set(a),a=l}const c=m(this,qi).blobToKzgCommitment(a),u=Et(m(this,qi).computeBlobKzgProof(a,c));e.push({data:Et(a),commitment:Et(c),proof:u}),r.push(zg(1,c))}else{const a=Et(_.commitment);e.push({data:Et(_.data),commitment:a,proof:Et(_.proof)}),r.push(zg(1,a))}}K(this,bs,e),K(this,gs,r)}get kzg(){return m(this,qi)}set kzg(t){K(this,qi,t)}get hash(){return this.signature==null?null:be(mt(this,Ac,Jf).call(this,!0,!1))}get unsignedHash(){return be(this.unsignedSerialized)}get from(){return this.signature==null?null:Pg(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:Qc.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){return mt(this,Ac,Jf).call(this,!0,!0)}get unsignedSerialized(){return mt(this,Ac,Jf).call(this,!1,!1)}inferType(){const t=this.inferTypes();return t.indexOf(2)>=0?2:t.pop()}inferTypes(){const t=this.gasPrice!=null,e=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,r=this.accessList!=null,s=m(this,M_)!=null||m(this,gs);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&ht(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),ht(!e||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),ht(this.type!==0||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const _=[];return this.type!=null?_.push(this.type):e?_.push(2):t?(_.push(1),r||_.push(0)):r?(_.push(1),_.push(2)):(s&&this.to||(_.push(0),_.push(1),_.push(2)),_.push(3)),_.sort(),_}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Qi.from(this)}toJSON(){const t=e=>e==null?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:t(this.gasLimit),gasPrice:t(this.gasPrice),maxPriorityFeePerGas:t(this.maxPriorityFeePerGas),maxFeePerGas:t(this.maxFeePerGas),value:t(this.value),chainId:t(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(t){if(t==null)return new Qi;if(typeof t=="string"){const r=qt(t);if(r[0]>=127)return Qi.from(kE(r));switch(r[0]){case 1:return Qi.from(UE(r));case 2:return Qi.from(GE(r));case 3:return Qi.from(DE(r))}ht(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const e=new Qi;return t.type!=null&&(e.type=t.type),t.to!=null&&(e.to=t.to),t.nonce!=null&&(e.nonce=t.nonce),t.gasLimit!=null&&(e.gasLimit=t.gasLimit),t.gasPrice!=null&&(e.gasPrice=t.gasPrice),t.maxPriorityFeePerGas!=null&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas),t.maxFeePerGas!=null&&(e.maxFeePerGas=t.maxFeePerGas),t.maxFeePerBlobGas!=null&&(e.maxFeePerBlobGas=t.maxFeePerBlobGas),t.data!=null&&(e.data=t.data),t.value!=null&&(e.value=t.value),t.chainId!=null&&(e.chainId=t.chainId),t.signature!=null&&(e.signature=Sr.from(t.signature)),t.accessList!=null&&(e.accessList=t.accessList),t.blobVersionedHashes!=null&&(e.blobVersionedHashes=t.blobVersionedHashes),t.kzg!=null&&(e.kzg=t.kzg),t.blobs!=null&&(e.blobs=t.blobs),t.hash!=null&&(W(e.isSigned(),"unsigned transaction cannot define '.hash'","tx",t),W(e.hash===t.hash,"hash mismatch","tx",t)),t.from!=null&&(W(e.isSigned(),"unsigned transaction cannot define '.from'","tx",t),W(e.from.toLowerCase()===(t.from||"").toLowerCase(),"from mismatch","tx",t)),e}};Ri=new WeakMap,cc=new WeakMap,uc=new WeakMap,fc=new WeakMap,lc=new WeakMap,pc=new WeakMap,hc=new WeakMap,wc=new WeakMap,dc=new WeakMap,gc=new WeakMap,bc=new WeakMap,yc=new WeakMap,M_=new WeakMap,gs=new WeakMap,qi=new WeakMap,bs=new WeakMap,Ac=new WeakSet,Jf=function(t,e){ht(!t||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const r=t?this.signature:null;switch(this.inferType()){case 0:return TE(this,r);case 1:return KE(this,r);case 2:return FE(this,r);case 3:return LE(this,r,e?this.blobs:null)}ht(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let ff=Qi;const vg=new Uint8Array(32);vg.fill(0);const jE=BigInt(-1),Mg=BigInt(0),Bg=BigInt(1),VE=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function YE(n){const t=qt(n),e=t.length%32;return e?le([t,vg.slice(e)]):Et(t)}const HE=rs(Bg,32),qE=rs(Mg,32),xg={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},ql=["name","version","chainId","verifyingContract","salt"];function Cg(n){return function(t){return W(typeof t=="string",`invalid domain value for ${JSON.stringify(n)}`,`domain.${n}`,t),t}}const QE={name:Cg("name"),version:Cg("version"),chainId:function(n){const t=zt(n,"domain.chainId");return W(t>=0,"invalid chain ID","domain.chainId",n),Number.isSafeInteger(t)?Number(t):j_(t)},verifyingContract:function(n){try{return Vt(n).toLowerCase()}catch{}W(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",n)},salt:function(n){const t=qt(n,"domain.salt");return W(t.length===32,'invalid domain value "salt"',"domain.salt",n),Et(t)}};function Ql(n){{const t=n.match(/^(u?)int(\d+)$/);if(t){const e=t[1]==="",r=parseInt(t[2]);W(r%8===0&&r!==0&&r<=256&&t[2]===String(r),"invalid numeric width","type",n);const s=Lc(VE,e?r-1:r),_=e?(s+Bg)*jE:Mg;return function(a){const c=zt(a,"value");return W(c>=_&&c<=s,`value out-of-bounds for ${n}`,"value",c),rs(e?Nw(c,256):c,32)}}}{const t=n.match(/^bytes(\d+)$/);if(t){const e=parseInt(t[1]);return W(e!==0&&e<=32&&t[1]===String(e),"invalid bytes width","type",n),function(r){const s=qt(r);return W(s.length===e,`invalid length for ${n}`,"value",r),YE(r)}}}switch(n){case"address":return function(t){return Os(Vt(t),32)};case"bool":return function(t){return t?HE:qE};case"bytes":return function(t){return be(t)};case"string":return function(t){return Ks(t)}}return null}function Ig(n,t){return`${n}(${t.map(({name:e,type:r})=>r+" "+e).join(",")})`}function lf(n){const t=n.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:n}}const fr=class fr{constructor(t){rt(this,jf);$(this,"primaryType");rt(this,Pu);rt(this,Wi);rt(this,mc);K(this,Wi,new Map),K(this,mc,new Map);const e=new Map,r=new Map,s=new Map,_={};Object.keys(t).forEach(u=>{_[u]=t[u].map(({name:l,type:f})=>{let{base:w,index:y}=lf(f);return w==="int"&&!t.int&&(w="int256"),w==="uint"&&!t.uint&&(w="uint256"),{name:l,type:w+(y||"")}}),e.set(u,new Set),r.set(u,[]),s.set(u,new Set)}),K(this,Pu,JSON.stringify(_));for(const u in _){const l=new Set;for(const f of _[u]){W(!l.has(f.name),`duplicate variable name ${JSON.stringify(f.name)} in ${JSON.stringify(u)}`,"types",t),l.add(f.name);const w=lf(f.type).base;W(w!==u,`circular type reference to ${JSON.stringify(w)}`,"types",t),!Ql(w)&&(W(r.has(w),`unknown type ${JSON.stringify(w)}`,"types",t),r.get(w).push(u),e.get(u).add(w))}}const a=Array.from(r.keys()).filter(u=>r.get(u).length===0);W(a.length!==0,"missing primary type","types",t),W(a.length===1,`ambiguous primary types or unused types: ${a.map(u=>JSON.stringify(u)).join(", ")}`,"types",t),xt(this,{primaryType:a[0]});function c(u,l){W(!l.has(u),`circular type reference to ${JSON.stringify(u)}`,"types",t),l.add(u);for(const f of e.get(u))if(r.has(f)){c(f,l);for(const w of l)s.get(w).add(f)}l.delete(u)}c(this.primaryType,new Set);for(const[u,l]of s){const f=Array.from(l);f.sort(),m(this,Wi).set(u,Ig(u,_[u])+f.map(w=>Ig(w,_[w])).join(""))}}get types(){return JSON.parse(m(this,Pu))}getEncoder(t){let e=m(this,mc).get(t);return e||(e=mt(this,jf,Cm).call(this,t),m(this,mc).set(t,e)),e}encodeType(t){const e=m(this,Wi).get(t);return W(e,`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return be(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(Ql(t))return r(t,e);const s=lf(t).array;if(s)return W(s.count===-1||s.count===e.length,`array length mismatch; expected length ${s.count}`,"value",e),e.map(a=>this._visit(s.prefix,a,r));const _=this.types[t];if(_)return _.reduce((a,{name:c,type:u})=>(a[c]=this._visit(u,e[c],r),a),{});W(!1,`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new fr(t)}static getPrimaryType(t){return fr.from(t).primaryType}static hashStruct(t,e,r){return fr.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){if(t[r]==null)continue;const s=xg[r];W(s,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:s})}return e.sort((r,s)=>ql.indexOf(r.name)-ql.indexOf(s.name)),fr.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return le(["0x1901",fr.hashDomain(t),fr.from(e).hash(r)])}static hash(t,e,r){return be(fr.encode(t,e,r))}static async resolveNames(t,e,r,s){t=Object.assign({},t);for(const c in t)t[c]==null&&delete t[c];const _={};t.verifyingContract&&!ee(t.verifyingContract,20)&&(_[t.verifyingContract]="0x");const a=fr.from(e);a.visit(r,(c,u)=>(c==="address"&&!ee(u,20)&&(_[u]="0x"),u));for(const c in _)_[c]=await s(c);return t.verifyingContract&&_[t.verifyingContract]&&(t.verifyingContract=_[t.verifyingContract]),r=a.visit(r,(c,u)=>c==="address"&&_[u]?_[u]:u),{domain:t,value:r}}static getPayload(t,e,r){fr.hashDomain(t);const s={},_=[];ql.forEach(u=>{const l=t[u];l!=null&&(s[u]=QE[u](l),_.push({name:u,type:xg[u]}))});const a=fr.from(e);e=a.types;const c=Object.assign({},e);return W(c.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",e),c.EIP712Domain=_,a.encode(r),{types:c,domain:s,primaryType:a.primaryType,message:a.visit(r,(u,l)=>{if(u.match(/^bytes(\d*)/))return Et(qt(l));if(u.match(/^u?int/))return zt(l).toString();switch(u){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return W(typeof l=="string","invalid string","value",l),l}W(!1,"unsupported type","type",u)})}}};Pu=new WeakMap,Wi=new WeakMap,mc=new WeakMap,jf=new WeakSet,Cm=function(t){{const s=Ql(t);if(s)return s}const e=lf(t).array;if(e){const s=e.prefix,_=this.getEncoder(s);return a=>{W(e.count===-1||e.count===a.length,`array length mismatch; expected length ${e.count}`,"value",a);let c=a.map(_);return m(this,Wi).has(s)&&(c=c.map(be)),be(le(c))}}const r=this.types[t];if(r){const s=Ks(m(this,Wi).get(t));return _=>{const a=r.map(({name:c,type:u})=>{const l=this.getEncoder(u)(_[c]);return m(this,Wi).has(u)?be(l):l});return a.unshift(s),le(a)}}W(!1,`unknown type: ${t}`,"type",t)};let ru=fr;function Ng(n,t,e,r){return Pg(ru.hash(n,t,e),r)}function Ge(n){const t=new Set;return n.forEach(e=>t.add(e)),Object.freeze(t)}const WE=Ge("external public payable override".split(" ")),Og="constant external internal payable private public pure view override",JE=Ge(Og.split(" ")),kg="constructor error event fallback function receive struct",Tg=Ge(kg.split(" ")),Gg="calldata memory storage payable indexed",$E=Ge(Gg.split(" ")),ZE=[kg,Gg,"tuple returns",Og].join(" "),XE=Ge(ZE.split(" ")),tP={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},eP=new RegExp("^(\\s*)"),rP=new RegExp("^([0-9]+)"),nP=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),Fg=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),Ug=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$"),Vf=class Vf{constructor(t){rt(this,zu);rt(this,ve);rt(this,Ir);K(this,ve,0),K(this,Ir,t.slice())}get offset(){return m(this,ve)}get length(){return m(this,Ir).length-m(this,ve)}clone(){return new Vf(m(this,Ir))}reset(){K(this,ve,0)}popKeyword(t){const e=this.peek();if(e.type!=="KEYWORD"||!t.has(e.text))throw new Error(`expected keyword ${e.text}`);return this.pop().text}popType(t){if(this.peek().type!==t){const e=this.peek();throw new Error(`expected ${t}; got ${e.type} ${JSON.stringify(e.text)}`)}return this.pop().text}popParen(){const t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");const e=mt(this,zu,mw).call(this,m(this,ve)+1,t.match+1);return K(this,ve,t.match+1),e}popParams(){const t=this.peek();if(t.type!=="OPEN_PAREN")throw new Error("bad start");const e=[];for(;m(this,ve)<t.match-1;){const r=this.peek().linkNext;e.push(mt(this,zu,mw).call(this,m(this,ve)+1,r)),K(this,ve,r)}return K(this,ve,t.match+1),e}peek(){if(m(this,ve)>=m(this,Ir).length)throw new Error("out-of-bounds");return m(this,Ir)[m(this,ve)]}peekKeyword(t){const e=this.peekType("KEYWORD");return e!=null&&t.has(e)?e:null}peekType(t){if(this.length===0)return null;const e=this.peek();return e.type===t?e.text:null}pop(){const t=this.peek();return Gu(this,ve)._++,t}toString(){const t=[];for(let e=m(this,ve);e<m(this,Ir).length;e++){const r=m(this,Ir)[e];t.push(`${r.type}:${r.text}`)}return`<TokenString ${t.join(" ")}>`}};ve=new WeakMap,Ir=new WeakMap,zu=new WeakSet,mw=function(t=0,e=0){return new Vf(m(this,Ir).slice(t,e).map(r=>Object.freeze(Object.assign({},r,{match:r.match-t,linkBack:r.linkBack-t,linkNext:r.linkNext-t}))))};let Rr=Vf;function cs(n){const t=[],e=a=>{const c=_<n.length?JSON.stringify(n[_]):"$EOI";throw new Error(`invalid token ${c} at ${_}: ${a}`)};let r=[],s=[],_=0;for(;_<n.length;){let a=n.substring(_),c=a.match(eP);c&&(_+=c[1].length,a=n.substring(_));const u={depth:r.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:_,value:-1};t.push(u);let l=tP[a[0]]||"";if(l){if(u.type=l,u.text=a[0],_++,l==="OPEN_PAREN")r.push(t.length-1),s.push(t.length-1);else if(l=="CLOSE_PAREN")r.length===0&&e("no matching open bracket"),u.match=r.pop(),t[u.match].match=t.length-1,u.depth--,u.linkBack=s.pop(),t[u.linkBack].linkNext=t.length-1;else if(l==="COMMA")u.linkBack=s.pop(),t[u.linkBack].linkNext=t.length-1,s.push(t.length-1);else if(l==="OPEN_BRACKET")u.type="BRACKET";else if(l==="CLOSE_BRACKET"){let f=t.pop().text;if(t.length>0&&t[t.length-1].type==="NUMBER"){const w=t.pop().text;f=w+f,t[t.length-1].value=Kt(w)}if(t.length===0||t[t.length-1].type!=="BRACKET")throw new Error("missing opening bracket");t[t.length-1].text+=f}continue}if(c=a.match(nP),c){if(u.text=c[1],_+=u.text.length,XE.has(u.text)){u.type="KEYWORD";continue}if(u.text.match(Ug)){u.type="TYPE";continue}u.type="ID";continue}if(c=a.match(rP),c){u.text=c[1],u.type="NUMBER",_+=u.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${_}`)}return new Rr(t.map(a=>Object.freeze(a)))}function Kg(n,t){let e=[];for(const r in t.keys())n.has(r)&&e.push(r);if(e.length>1)throw new Error(`conflicting types: ${e.join(", ")}`)}function pf(n,t){if(t.peekKeyword(Tg)){const e=t.pop().text;if(e!==n)throw new Error(`expected ${n}, got ${e}`)}return t.popType("ID")}function Ti(n,t){const e=new Set;for(;;){const r=n.peekType("KEYWORD");if(r==null||t&&!t.has(r))break;if(n.pop(),e.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);e.add(r)}return Object.freeze(e)}function Dg(n){let t=Ti(n,JE);return Kg(t,Ge("constant payable nonpayable".split(" "))),Kg(t,Ge("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function Gi(n,t){return n.popParams().map(e=>Pe.from(e,t))}function Lg(n){if(n.peekType("AT")){if(n.pop(),n.peekType("NUMBER"))return zt(n.pop().text);throw new Error("invalid gas")}return null}function Vs(n){if(n.length)throw new Error(`unexpected tokens at offset ${n.offset}: ${n.toString()}`)}const iP=new RegExp(/^(.*)\[([0-9]*)\]$/);function jg(n){const t=n.match(Ug);if(W(t,"invalid type","type",n),n==="uint")return"uint256";if(n==="int")return"int256";if(t[2]){const e=parseInt(t[2]);W(e!==0&&e<=32,"invalid bytes length","type",n)}else if(t[3]){const e=parseInt(t[3]);W(e!==0&&e<=256&&e%8===0,"invalid numeric width","type",n)}return n}const ce={},De=Symbol.for("_ethers_internal"),Vg="_ParamTypeInternal",Yg="_ErrorInternal",Hg="_EventInternal",qg="_ConstructorInternal",Qg="_FallbackInternal",Wg="_FunctionInternal",Jg="_StructInternal",lr=class lr{constructor(t,e,r,s,_,a,c,u){rt(this,Sc);$(this,"name");$(this,"type");$(this,"baseType");$(this,"indexed");$(this,"components");$(this,"arrayLength");$(this,"arrayChildren");if(Du(t,ce,"ParamType"),Object.defineProperty(this,De,{value:Vg}),a&&(a=Object.freeze(a.slice())),s==="array"){if(c==null||u==null)throw new Error("")}else if(c!=null||u!=null)throw new Error("");if(s==="tuple"){if(a==null)throw new Error("")}else if(a!=null)throw new Error("");xt(this,{name:e,type:r,baseType:s,indexed:_,components:a,arrayLength:c,arrayChildren:u})}format(t){if(t==null&&(t="sighash"),t==="json"){const r=this.name||"";if(this.isArray()){const _=JSON.parse(this.arrayChildren.format("json"));return _.name=r,_.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(_)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:r};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(_=>JSON.parse(_.format(t)))),JSON.stringify(s)}let e="";return this.isArray()?(e+=this.arrayChildren.format(t),e+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?e+="("+this.components.map(r=>r.format(t)).join(t==="full"?", ":",")+")":e+=this.type,t!=="sighash"&&(this.indexed===!0&&(e+=" indexed"),t==="full"&&this.name&&(e+=" "+this.name)),e}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(t,e){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(this.arrayLength!==-1&&t.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return t.map(s=>r.arrayChildren.walk(s,e))}if(this.isTuple()){if(!Array.isArray(t))throw new Error("invalid tuple value");if(t.length!==this.components.length)throw new Error("array is wrong length");const r=this;return t.map((s,_)=>r.components[_].walk(s,e))}return e(this.type,t)}async walkAsync(t,e){const r=[],s=[t];return mt(this,Sc,$f).call(this,r,t,e,_=>{s[0]=_}),r.length&&await Promise.all(r),s[0]}static from(t,e){if(lr.isParamType(t))return t;if(typeof t=="string")try{return lr.from(cs(t),e)}catch{W(!1,"invalid param type","obj",t)}else if(t instanceof Rr){let c="",u="",l=null;Ti(t,Ge(["tuple"])).has("tuple")||t.peekType("OPEN_PAREN")?(u="tuple",l=t.popParams().map(I=>lr.from(I)),c=`tuple(${l.map(I=>I.format()).join(",")})`):(c=jg(t.popType("TYPE")),u=c);let f=null,w=null;for(;t.length&&t.peekType("BRACKET");){const I=t.pop();f=new lr(ce,"",c,u,null,l,w,f),w=I.value,c+=I.text,u="array",l=null}let y=null;if(Ti(t,$E).has("indexed")){if(!e)throw new Error("");y=!0}const B=t.peekType("ID")?t.pop().text:"";if(t.length)throw new Error("leftover tokens");return new lr(ce,B,c,u,y,l,w,f)}const r=t.name;W(!r||typeof r=="string"&&r.match(Fg),"invalid name","obj.name",r);let s=t.indexed;s!=null&&(W(e,"parameter cannot be indexed","obj.indexed",t.indexed),s=!!s);let _=t.type,a=_.match(iP);if(a){const c=parseInt(a[2]||"-1"),u=lr.from({type:a[1],components:t.components});return new lr(ce,r||"",_,"array",s,null,c,u)}if(_==="tuple"||_.startsWith("tuple(")||_.startsWith("(")){const c=t.components!=null?t.components.map(l=>lr.from(l)):null;return new lr(ce,r||"",_,"tuple",s,c,null,null)}return _=jg(t.type),new lr(ce,r||"",_,_,s,null,null,null)}static isParamType(t){return t&&t[De]===Vg}};Sc=new WeakSet,$f=function(t,e,r,s){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,c=e.slice();c.forEach((u,l)=>{var f;mt(f=a,Sc,$f).call(f,t,u,r,w=>{c[l]=w})}),s(c);return}if(this.isTuple()){const a=this.components;let c;if(Array.isArray(e))c=e.slice();else{if(e==null||typeof e!="object")throw new Error("invalid tuple value");c=a.map(u=>{if(!u.name)throw new Error("cannot use object value with unnamed components");if(!(u.name in e))throw new Error(`missing value for component ${u.name}`);return e[u.name]})}if(c.length!==this.components.length)throw new Error("array is wrong length");c.forEach((u,l)=>{var f;mt(f=a[l],Sc,$f).call(f,t,u,r,w=>{c[l]=w})}),s(c);return}const _=r(this.type,e);_.then?t.push(async function(){s(await _)}()):s(_)};let Pe=lr;class Ys{constructor(t,e,r){$(this,"type");$(this,"inputs");Du(t,ce,"Fragment"),r=Object.freeze(r.slice()),xt(this,{type:e,inputs:r})}static from(t){if(typeof t=="string"){try{Ys.from(JSON.parse(t))}catch{}return Ys.from(cs(t))}if(t instanceof Rr)switch(t.peekKeyword(Tg)){case"constructor":return Fi.from(t);case"error":return Le.from(t);case"event":return Tr.from(t);case"fallback":case"receive":return Ui.from(t);case"function":return Gr.from(t);case"struct":return Hs.from(t)}else if(typeof t=="object"){switch(t.type){case"constructor":return Fi.from(t);case"error":return Le.from(t);case"event":return Tr.from(t);case"fallback":case"receive":return Ui.from(t);case"function":return Gr.from(t);case"struct":return Hs.from(t)}ht(!1,`unsupported type: ${t.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}W(!1,"unsupported frgament object","obj",t)}static isConstructor(t){return Fi.isFragment(t)}static isError(t){return Le.isFragment(t)}static isEvent(t){return Tr.isFragment(t)}static isFunction(t){return Gr.isFragment(t)}static isStruct(t){return Hs.isFragment(t)}}class hf extends Ys{constructor(e,r,s,_){super(e,r,_);$(this,"name");W(typeof s=="string"&&s.match(Fg),"invalid identifier","name",s),_=Object.freeze(_.slice()),xt(this,{name:s})}}function nu(n,t){return"("+t.map(e=>e.format(n)).join(n==="full"?", ":",")+")"}class Le extends hf{constructor(t,e,r){super(t,"error",e,r),Object.defineProperty(this,De,{value:Yg})}get selector(){return Ks(this.format("sighash")).substring(0,10)}format(t){if(t==null&&(t="sighash"),t==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(t)))});const e=[];return t!=="sighash"&&e.push("error"),e.push(this.name+nu(t,this.inputs)),e.join(" ")}static from(t){if(Le.isFragment(t))return t;if(typeof t=="string")return Le.from(cs(t));if(t instanceof Rr){const e=pf("error",t),r=Gi(t);return Vs(t),new Le(ce,e,r)}return new Le(ce,t.name,t.inputs?t.inputs.map(Pe.from):[])}static isFragment(t){return t&&t[De]===Yg}}class Tr extends hf{constructor(e,r,s,_){super(e,"event",r,s);$(this,"anonymous");Object.defineProperty(this,De,{value:Hg}),xt(this,{anonymous:_})}get topicHash(){return Ks(this.format("sighash"))}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(e)))});const r=[];return e!=="sighash"&&r.push("event"),r.push(this.name+nu(e,this.inputs)),e!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(e,r){return r=(r||[]).map(_=>Pe.from(_)),new Tr(ce,e,r,!1).topicHash}static from(e){if(Tr.isFragment(e))return e;if(typeof e=="string")try{return Tr.from(cs(e))}catch{W(!1,"invalid event fragment","obj",e)}else if(e instanceof Rr){const r=pf("event",e),s=Gi(e,!0),_=!!Ti(e,Ge(["anonymous"])).has("anonymous");return Vs(e),new Tr(ce,r,s,_)}return new Tr(ce,e.name,e.inputs?e.inputs.map(r=>Pe.from(r,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[De]===Hg}}class Fi extends Ys{constructor(e,r,s,_,a){super(e,r,s);$(this,"payable");$(this,"gas");Object.defineProperty(this,De,{value:qg}),xt(this,{payable:_,gas:a})}format(e){if(ht(e!=null&&e!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),e==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(e)))});const r=[`constructor${nu(e,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(e){if(Fi.isFragment(e))return e;if(typeof e=="string")try{return Fi.from(cs(e))}catch{W(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof Rr){Ti(e,Ge(["constructor"]));const r=Gi(e),s=!!Ti(e,WE).has("payable"),_=Lg(e);return Vs(e),new Fi(ce,"constructor",r,s,_)}return new Fi(ce,"constructor",e.inputs?e.inputs.map(Pe.from):[],!!e.payable,e.gas!=null?e.gas:null)}static isFragment(e){return e&&e[De]===qg}}class Ui extends Ys{constructor(e,r,s){super(e,"fallback",r);$(this,"payable");Object.defineProperty(this,De,{value:Qg}),xt(this,{payable:s})}format(e){const r=this.inputs.length===0?"receive":"fallback";if(e==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:s})}return`${r}()${this.payable?" payable":""}`}static from(e){if(Ui.isFragment(e))return e;if(typeof e=="string")try{return Ui.from(cs(e))}catch{W(!1,"invalid fallback fragment","obj",e)}else if(e instanceof Rr){const r=e.toString(),s=e.peekKeyword(Ge(["fallback","receive"]));if(W(s,"type must be fallback or receive","obj",r),e.popKeyword(Ge(["fallback","receive"]))==="receive"){const u=Gi(e);return W(u.length===0,"receive cannot have arguments","obj.inputs",u),Ti(e,Ge(["payable"])),Vs(e),new Ui(ce,[],!0)}let a=Gi(e);a.length?W(a.length===1&&a[0].type==="bytes","invalid fallback inputs","obj.inputs",a.map(u=>u.format("minimal")).join(", ")):a=[Pe.from("bytes")];const c=Dg(e);if(W(c==="nonpayable"||c==="payable","fallback cannot be constants","obj.stateMutability",c),Ti(e,Ge(["returns"])).has("returns")){const u=Gi(e);W(u.length===1&&u[0].type==="bytes","invalid fallback outputs","obj.outputs",u.map(l=>l.format("minimal")).join(", "))}return Vs(e),new Ui(ce,a,c==="payable")}if(e.type==="receive")return new Ui(ce,[],!0);if(e.type==="fallback"){const r=[Pe.from("bytes")],s=e.stateMutability==="payable";return new Ui(ce,r,s)}W(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[De]===Qg}}class Gr extends hf{constructor(e,r,s,_,a,c){super(e,"function",r,_);$(this,"constant");$(this,"outputs");$(this,"stateMutability");$(this,"payable");$(this,"gas");Object.defineProperty(this,De,{value:Wg}),a=Object.freeze(a.slice()),xt(this,{constant:s==="view"||s==="pure",gas:c,outputs:a,payable:s==="payable",stateMutability:s})}get selector(){return Ks(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(e))),outputs:this.outputs.map(s=>JSON.parse(s.format(e)))});const r=[];return e!=="sighash"&&r.push("function"),r.push(this.name+nu(e,this.inputs)),e!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(nu(e,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(e,r){return r=(r||[]).map(_=>Pe.from(_)),new Gr(ce,e,"view",r,[],null).selector}static from(e){if(Gr.isFragment(e))return e;if(typeof e=="string")try{return Gr.from(cs(e))}catch{W(!1,"invalid function fragment","obj",e)}else if(e instanceof Rr){const s=pf("function",e),_=Gi(e),a=Dg(e);let c=[];Ti(e,Ge(["returns"])).has("returns")&&(c=Gi(e));const u=Lg(e);return Vs(e),new Gr(ce,s,a,_,c,u)}let r=e.stateMutability;return r==null&&(r="payable",typeof e.constant=="boolean"?(r="view",e.constant||(r="payable",typeof e.payable=="boolean"&&!e.payable&&(r="nonpayable"))):typeof e.payable=="boolean"&&!e.payable&&(r="nonpayable")),new Gr(ce,e.name,r,e.inputs?e.inputs.map(Pe.from):[],e.outputs?e.outputs.map(Pe.from):[],e.gas!=null?e.gas:null)}static isFragment(e){return e&&e[De]===Wg}}class Hs extends hf{constructor(t,e,r){super(t,"struct",e,r),Object.defineProperty(this,De,{value:Jg})}format(){throw new Error("@TODO")}static from(t){if(typeof t=="string")try{return Hs.from(cs(t))}catch{W(!1,"invalid struct fragment","obj",t)}else if(t instanceof Rr){const e=pf("struct",t),r=Gi(t);return Vs(t),new Hs(ce,e,r)}return new Hs(ce,t.name,t.inputs?t.inputs.map(Pe.from):[])}static isFragment(t){return t&&t[De]===Jg}}const Er=new Map;Er.set(0,"GENERIC_PANIC"),Er.set(1,"ASSERT_FALSE"),Er.set(17,"OVERFLOW"),Er.set(18,"DIVIDE_BY_ZERO"),Er.set(33,"ENUM_RANGE_ERROR"),Er.set(34,"BAD_STORAGE_DATA"),Er.set(49,"STACK_UNDERFLOW"),Er.set(50,"ARRAY_RANGE_ERROR"),Er.set(65,"OUT_OF_MEMORY"),Er.set(81,"UNINITIALIZED_FUNCTION_CALL");const sP=new RegExp(/^bytes([0-9]*)$/),_P=new RegExp(/^(u?int)([0-9]*)$/);let Wl=null,$g=1024;function oP(n,t,e,r){let s="missing revert data",_=null;const a=null;let c=null;if(e){s="execution reverted";const l=qt(e);if(e=Et(e),l.length===0)s+=" (no data present; likely require(false) occurred",_="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(Et(l.slice(0,4))==="0x08c379a0")try{_=r.decode(["string"],l.slice(4))[0],c={signature:"Error(string)",name:"Error",args:[_]},s+=`: ${JSON.stringify(_)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(Et(l.slice(0,4))==="0x4e487b71")try{const f=Number(r.decode(["uint256"],l.slice(4))[0]);c={signature:"Panic(uint256)",name:"Panic",args:[f]},_=`Panic due to ${Er.get(f)||"UNKNOWN"}(${f})`,s+=`: ${_}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const u={to:t.to?Vt(t.to):null,data:t.data||"0x"};return t.from&&(u.from=Vt(t.from)),ue(s,"CALL_EXCEPTION",{action:n,data:e,reason:_,transaction:u,invocation:a,revert:c})}const Yf=class Yf{constructor(){rt(this,ys)}getDefaultValue(t){const e=t.map(s=>mt(this,ys,Kc).call(this,Pe.from(s)));return new ef(e,"_").defaultValue()}encode(t,e){Bw(e.length,t.length,"types/values length mismatch");const r=t.map(a=>mt(this,ys,Kc).call(this,Pe.from(a))),s=new ef(r,"_"),_=new fl;return s.encode(_,e),_.data}decode(t,e,r){const s=t.map(a=>mt(this,ys,Kc).call(this,Pe.from(a)));return new ef(s,"_").decode(new ll(e,r,$g))}static _setDefaultMaxInflation(t){W(typeof t=="number"&&Number.isInteger(t),"invalid defaultMaxInflation factor","value",t),$g=t}static defaultAbiCoder(){return Wl==null&&(Wl=new Yf),Wl}static getBuiltinCallException(t,e,r){return oP(t,e,r,Yf.defaultAbiCoder())}};ys=new WeakSet,Kc=function(t){if(t.isArray())return new NR(mt(this,ys,Kc).call(this,t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new ef(t.components.map(r=>mt(this,ys,Kc).call(this,r)),t.name);switch(t.baseType){case"address":return new CR(t.name);case"bool":return new OR(t.name);case"string":return new jR(t.name);case"bytes":return new kR(t.name);case"":return new FR(t.name)}let e=t.type.match(_P);if(e){let r=parseInt(e[2]||"256");return W(r!==0&&r<=256&&r%8===0,"invalid "+e[1]+" bit length","param",t),new LR(r/8,e[1]==="int",t.name)}if(e=t.type.match(sP),e){let r=parseInt(e[1]);return W(r!==0&&r<=32,"invalid bytes length","param",t),new TR(r,t.name)}W(!1,"invalid type","type",t.type)};let eo=Yf;class aP{constructor(t,e,r){$(this,"fragment");$(this,"name");$(this,"signature");$(this,"topic");$(this,"args");const s=t.name,_=t.format();xt(this,{fragment:t,name:s,signature:_,topic:e,args:r})}}class cP{constructor(t,e,r,s){$(this,"fragment");$(this,"name");$(this,"args");$(this,"signature");$(this,"selector");$(this,"value");const _=t.name,a=t.format();xt(this,{fragment:t,name:_,args:r,signature:a,selector:e,value:s})}}class uP{constructor(t,e,r){$(this,"fragment");$(this,"name");$(this,"args");$(this,"signature");$(this,"selector");const s=t.name,_=t.format();xt(this,{fragment:t,name:s,args:r,signature:_,selector:e})}}class Zg{constructor(t){$(this,"hash");$(this,"_isIndexed");xt(this,{hash:t,_isIndexed:!0})}static isIndexed(t){return!!(t&&t._isIndexed)}}const Xg={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},t0={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:n=>`reverted with reason string ${JSON.stringify(n)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:n=>{let t="unknown panic code";return n>=0&&n<=255&&Xg[n.toString()]&&(t=Xg[n.toString()]),`reverted with panic code 0x${n.toString(16)} (${t})`}}},B_=class B_{constructor(t){rt(this,vi);$(this,"fragments");$(this,"deploy");$(this,"fallback");$(this,"receive");rt(this,Ei);rt(this,Pi);rt(this,zi);rt(this,Be);let e=[];typeof t=="string"?e=JSON.parse(t):e=t,K(this,zi,new Map),K(this,Ei,new Map),K(this,Pi,new Map);const r=[];for(const a of e)try{r.push(Ys.from(a))}catch(c){console.log(`[Warning] Invalid Fragment ${JSON.stringify(a)}:`,c.message)}xt(this,{fragments:Object.freeze(r)});let s=null,_=!1;K(this,Be,this.getAbiCoder()),this.fragments.forEach((a,c)=>{let u;switch(a.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}xt(this,{deploy:a});return;case"fallback":a.inputs.length===0?_=!0:(W(!s||a.payable!==s.payable,"conflicting fallback fragments",`fragments[${c}]`,a),s=a,_=s.payable);return;case"function":u=m(this,zi);break;case"event":u=m(this,Pi);break;case"error":u=m(this,Ei);break;default:return}const l=a.format();u.has(l)||u.set(l,a)}),this.deploy||xt(this,{deploy:Fi.from("constructor()")}),xt(this,{fallback:s,receive:_})}format(t){const e=t?"minimal":"full";return this.fragments.map(s=>s.format(e))}formatJson(){const t=this.fragments.map(e=>e.format("json"));return JSON.stringify(t.map(e=>JSON.parse(e)))}getAbiCoder(){return eo.defaultAbiCoder()}getFunctionName(t){const e=mt(this,vi,Zf).call(this,t,null,!1);return W(e,"no matching function","key",t),e.name}hasFunction(t){return!!mt(this,vi,Zf).call(this,t,null,!1)}getFunction(t,e){return mt(this,vi,Zf).call(this,t,e||null,!0)}forEachFunction(t){const e=Array.from(m(this,zi).keys());e.sort((r,s)=>r.localeCompare(s));for(let r=0;r<e.length;r++){const s=e[r];t(m(this,zi).get(s),r)}}getEventName(t){const e=mt(this,vi,Xf).call(this,t,null,!1);return W(e,"no matching event","key",t),e.name}hasEvent(t){return!!mt(this,vi,Xf).call(this,t,null,!1)}getEvent(t,e){return mt(this,vi,Xf).call(this,t,e||null,!0)}forEachEvent(t){const e=Array.from(m(this,Pi).keys());e.sort((r,s)=>r.localeCompare(s));for(let r=0;r<e.length;r++){const s=e[r];t(m(this,Pi).get(s),r)}}getError(t,e){if(ee(t)){const s=t.toLowerCase();if(t0[s])return Le.from(t0[s].signature);for(const _ of m(this,Ei).values())if(s===_.selector)return _;return null}if(t.indexOf("(")===-1){const s=[];for(const[_,a]of m(this,Ei))_.split("(")[0]===t&&s.push(a);if(s.length===0)return t==="Error"?Le.from("error Error(string)"):t==="Panic"?Le.from("error Panic(uint256)"):null;if(s.length>1){const _=s.map(a=>JSON.stringify(a.format())).join(", ");W(!1,`ambiguous error description (i.e. ${_})`,"name",t)}return s[0]}if(t=Le.from(t).format(),t==="Error(string)")return Le.from("error Error(string)");if(t==="Panic(uint256)")return Le.from("error Panic(uint256)");const r=m(this,Ei).get(t);return r||null}forEachError(t){const e=Array.from(m(this,Ei).keys());e.sort((r,s)=>r.localeCompare(s));for(let r=0;r<e.length;r++){const s=e[r];t(m(this,Ei).get(s),r)}}_decodeParams(t,e){return m(this,Be).decode(t,e)}_encodeParams(t,e){return m(this,Be).encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){if(typeof t=="string"){const r=this.getError(t);W(r,"unknown error","fragment",t),t=r}return W(fe(e,0,4)===t.selector,`data signature does not match error ${t.name}.`,"data",e),this._decodeParams(t.inputs,fe(e,4))}encodeErrorResult(t,e){if(typeof t=="string"){const r=this.getError(t);W(r,"unknown error","fragment",t),t=r}return le([t.selector,this._encodeParams(t.inputs,e||[])])}decodeFunctionData(t,e){if(typeof t=="string"){const r=this.getFunction(t);W(r,"unknown function","fragment",t),t=r}return W(fe(e,0,4)===t.selector,`data signature does not match function ${t.name}.`,"data",e),this._decodeParams(t.inputs,fe(e,4))}encodeFunctionData(t,e){if(typeof t=="string"){const r=this.getFunction(t);W(r,"unknown function","fragment",t),t=r}return le([t.selector,this._encodeParams(t.inputs,e||[])])}decodeFunctionResult(t,e){if(typeof t=="string"){const _=this.getFunction(t);W(_,"unknown function","fragment",t),t=_}let r="invalid length for result data";const s=Ne(e);if(s.length%32===0)try{return m(this,Be).decode(t.outputs,s)}catch{r="could not decode result data"}ht(!1,r,"BAD_DATA",{value:Et(s),info:{method:t.name,signature:t.format()}})}makeError(t,e){const r=qt(t,"data"),s=eo.getBuiltinCallException("call",e,r);if(s.message.startsWith("execution reverted (unknown custom error)")){const c=Et(r.slice(0,4)),u=this.getError(c);if(u)try{const l=m(this,Be).decode(u.inputs,r.slice(4));s.revert={name:u.name,signature:u.format(),args:l},s.reason=s.revert.signature,s.message=`execution reverted: ${s.reason}`}catch{s.message="execution reverted (coult not decode custom error)"}}const a=this.parseTransaction(e);return a&&(s.invocation={method:a.name,signature:a.signature,args:a.args}),s}encodeFunctionResult(t,e){if(typeof t=="string"){const r=this.getFunction(t);W(r,"unknown function","fragment",t),t=r}return Et(m(this,Be).encode(t.outputs,e||[]))}encodeFilterTopics(t,e){if(typeof t=="string"){const _=this.getEvent(t);W(_,"unknown event","eventFragment",t),t=_}ht(e.length<=t.inputs.length,`too many arguments for ${t.format()}`,"UNEXPECTED_ARGUMENT",{count:e.length,expectedCount:t.inputs.length});const r=[];t.anonymous||r.push(t.topicHash);const s=(_,a)=>_.type==="string"?Ks(a):_.type==="bytes"?be(Et(a)):(_.type==="bool"&&typeof a=="boolean"?a=a?"0x01":"0x00":_.type.match(/^u?int/)?a=rs(a):_.type.match(/^bytes/)?a=Hm(a,32):_.type==="address"&&m(this,Be).encode(["address"],[a]),Os(Et(a),32));for(e.forEach((_,a)=>{const c=t.inputs[a];if(!c.indexed){W(_==null,"cannot filter non-indexed parameters; must be null","contract."+c.name,_);return}_==null?r.push(null):c.baseType==="array"||c.baseType==="tuple"?W(!1,"filtering with tuples or arrays not supported","contract."+c.name,_):Array.isArray(_)?r.push(_.map(u=>s(c,u))):r.push(s(c,_))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(t,e){if(typeof t=="string"){const a=this.getEvent(t);W(a,"unknown event","eventFragment",t),t=a}const r=[],s=[],_=[];return t.anonymous||r.push(t.topicHash),W(e.length===t.inputs.length,"event arguments/values mismatch","values",e),t.inputs.forEach((a,c)=>{const u=e[c];if(a.indexed)if(a.type==="string")r.push(Ks(u));else if(a.type==="bytes")r.push(be(u));else{if(a.baseType==="tuple"||a.baseType==="array")throw new Error("not implemented");r.push(m(this,Be).encode([a.type],[u]))}else s.push(a),_.push(u)}),{data:m(this,Be).encode(s,_),topics:r}}decodeEventLog(t,e,r){if(typeof t=="string"){const M=this.getEvent(t);W(M,"unknown event","eventFragment",t),t=M}if(r!=null&&!t.anonymous){const M=t.topicHash;W(ee(r[0],32)&&r[0].toLowerCase()===M,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const s=[],_=[],a=[];t.inputs.forEach((M,B)=>{M.indexed?M.type==="string"||M.type==="bytes"||M.baseType==="tuple"||M.baseType==="array"?(s.push(Pe.from({type:"bytes32",name:M.name})),a.push(!0)):(s.push(M),a.push(!1)):(_.push(M),a.push(!1))});const c=r!=null?m(this,Be).decode(s,le(r)):null,u=m(this,Be).decode(_,e,!0),l=[],f=[];let w=0,y=0;return t.inputs.forEach((M,B)=>{let I=null;if(M.indexed)if(c==null)I=new Zg(null);else if(a[B])I=new Zg(c[y++]);else try{I=c[y++]}catch(G){I=G}else try{I=u[w++]}catch(G){I=G}l.push(I),f.push(M.name||null)}),V_.fromItems(l,f)}parseTransaction(t){const e=qt(t.data,"tx.data"),r=zt(t.value!=null?t.value:0,"tx.value"),s=this.getFunction(Et(e.slice(0,4)));if(!s)return null;const _=m(this,Be).decode(s.inputs,e.slice(4));return new cP(s,s.selector,_,r)}parseCallResult(t){throw new Error("@TODO")}parseLog(t){const e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new aP(e,e.topicHash,this.decodeEventLog(e,t.data,t.topics))}parseError(t){const e=Et(t),r=this.getError(fe(e,0,4));if(!r)return null;const s=m(this,Be).decode(r.inputs,fe(e,4));return new uP(r,r.selector,s)}static from(t){return t instanceof B_?t:typeof t=="string"?new B_(JSON.parse(t)):typeof t.formatJson=="function"?new B_(t.formatJson()):typeof t.format=="function"?new B_(t.format("json")):new B_(t)}};Ei=new WeakMap,Pi=new WeakMap,zi=new WeakMap,Be=new WeakMap,vi=new WeakSet,Zf=function(t,e,r){if(ee(t)){const _=t.toLowerCase();for(const a of m(this,zi).values())if(_===a.selector)return a;return null}if(t.indexOf("(")===-1){const _=[];for(const[a,c]of m(this,zi))a.split("(")[0]===t&&_.push(c);if(e){const a=e.length>0?e[e.length-1]:null;let c=e.length,u=!0;Me.isTyped(a)&&a.type==="overrides"&&(u=!1,c--);for(let l=_.length-1;l>=0;l--){const f=_[l].inputs.length;f!==c&&(!u||f!==c-1)&&_.splice(l,1)}for(let l=_.length-1;l>=0;l--){const f=_[l].inputs;for(let w=0;w<e.length;w++)if(Me.isTyped(e[w])){if(w>=f.length){if(e[w].type==="overrides")continue;_.splice(l,1);break}if(e[w].type!==f[w].baseType){_.splice(l,1);break}}}}if(_.length===1&&e&&e.length!==_[0].inputs.length){const a=e[e.length-1];(a==null||Array.isArray(a)||typeof a!="object")&&_.splice(0,1)}if(_.length===0)return null;if(_.length>1&&r){const a=_.map(c=>JSON.stringify(c.format())).join(", ");W(!1,`ambiguous function description (i.e. matches ${a})`,"key",t)}return _[0]}const s=m(this,zi).get(Gr.from(t).format());return s||null},Xf=function(t,e,r){if(ee(t)){const _=t.toLowerCase();for(const a of m(this,Pi).values())if(_===a.topicHash)return a;return null}if(t.indexOf("(")===-1){const _=[];for(const[a,c]of m(this,Pi))a.split("(")[0]===t&&_.push(c);if(e){for(let a=_.length-1;a>=0;a--)_[a].inputs.length<e.length&&_.splice(a,1);for(let a=_.length-1;a>=0;a--){const c=_[a].inputs;for(let u=0;u<e.length;u++)if(Me.isTyped(e[u])&&e[u].type!==c[u].baseType){_.splice(a,1);break}}}if(_.length===0)return null;if(_.length>1&&r){const a=_.map(c=>JSON.stringify(c.format())).join(", ");W(!1,`ambiguous event description (i.e. matches ${a})`,"key",t)}return _[0]}const s=m(this,Pi).get(Tr.from(t).format());return s||null};let Jl=B_;const e0=BigInt(0);function ro(n){return n??null}function we(n){return n==null?null:n.toString()}class r0{constructor(t,e,r){$(this,"gasPrice");$(this,"maxFeePerGas");$(this,"maxPriorityFeePerGas");xt(this,{gasPrice:ro(t),maxFeePerGas:ro(e),maxPriorityFeePerGas:ro(r)})}toJSON(){const{gasPrice:t,maxFeePerGas:e,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:we(t),maxFeePerGas:we(e),maxPriorityFeePerGas:we(r)}}}function wf(n){const t={};n.to&&(t.to=n.to),n.from&&(t.from=n.from),n.data&&(t.data=Et(n.data));const e="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of e)!(s in n)||n[s]==null||(t[s]=zt(n[s],`request.${s}`));const r="type,nonce".split(/,/);for(const s of r)!(s in n)||n[s]==null||(t[s]=Kt(n[s],`request.${s}`));return n.accessList&&(t.accessList=js(n.accessList)),"blockTag"in n&&(t.blockTag=n.blockTag),"enableCcipRead"in n&&(t.enableCcipRead=!!n.enableCcipRead),"customData"in n&&(t.customData=n.customData),"blobVersionedHashes"in n&&n.blobVersionedHashes&&(t.blobVersionedHashes=n.blobVersionedHashes.slice()),"kzg"in n&&(t.kzg=n.kzg),"blobs"in n&&n.blobs&&(t.blobs=n.blobs.map(s=>sl(s)?Et(s):Object.assign({},s))),t}class fP{constructor(t,e){$(this,"provider");$(this,"number");$(this,"hash");$(this,"timestamp");$(this,"parentHash");$(this,"parentBeaconBlockRoot");$(this,"nonce");$(this,"difficulty");$(this,"gasLimit");$(this,"gasUsed");$(this,"stateRoot");$(this,"receiptsRoot");$(this,"blobGasUsed");$(this,"excessBlobGas");$(this,"miner");$(this,"prevRandao");$(this,"extraData");$(this,"baseFeePerGas");rt(this,Ji);K(this,Ji,t.transactions.map(r=>typeof r!="string"?new su(r,e):r)),xt(this,{provider:e,hash:ro(t.hash),number:t.number,timestamp:t.timestamp,parentHash:t.parentHash,parentBeaconBlockRoot:t.parentBeaconBlockRoot,nonce:t.nonce,difficulty:t.difficulty,gasLimit:t.gasLimit,gasUsed:t.gasUsed,blobGasUsed:t.blobGasUsed,excessBlobGas:t.excessBlobGas,miner:t.miner,prevRandao:ro(t.prevRandao),extraData:t.extraData,baseFeePerGas:ro(t.baseFeePerGas),stateRoot:t.stateRoot,receiptsRoot:t.receiptsRoot})}get transactions(){return m(this,Ji).map(t=>typeof t=="string"?t:t.hash)}get prefetchedTransactions(){const t=m(this,Ji).slice();return t.length===0?[]:(ht(typeof t[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),t)}toJSON(){const{baseFeePerGas:t,difficulty:e,extraData:r,gasLimit:s,gasUsed:_,hash:a,miner:c,prevRandao:u,nonce:l,number:f,parentHash:w,parentBeaconBlockRoot:y,stateRoot:M,receiptsRoot:B,timestamp:I,transactions:G}=this;return{_type:"Block",baseFeePerGas:we(t),difficulty:we(e),extraData:r,gasLimit:we(s),gasUsed:we(_),blobGasUsed:we(this.blobGasUsed),excessBlobGas:we(this.excessBlobGas),hash:a,miner:c,prevRandao:u,nonce:l,number:f,parentHash:w,timestamp:I,parentBeaconBlockRoot:y,stateRoot:M,receiptsRoot:B,transactions:G}}[Symbol.iterator](){let t=0;const e=this.transactions;return{next:()=>t<this.length?{value:e[t++],done:!1}:{value:void 0,done:!0}}}get length(){return m(this,Ji).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(t){let e;if(typeof t=="number")e=m(this,Ji)[t];else{const r=t.toLowerCase();for(const s of m(this,Ji))if(typeof s=="string"){if(s!==r)continue;e=s;break}else{if(s.hash===r)continue;e=s;break}}if(e==null)throw new Error("no such tx");return typeof e=="string"?await this.provider.getTransaction(e):e}getPrefetchedTransaction(t){const e=this.prefetchedTransactions;if(typeof t=="number")return e[t];t=t.toLowerCase();for(const r of e)if(r.hash===t)return r;W(!1,"no matching transaction","indexOrHash",t)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return lP(this)}}Ji=new WeakMap;class iu{constructor(t,e){$(this,"provider");$(this,"transactionHash");$(this,"blockHash");$(this,"blockNumber");$(this,"removed");$(this,"address");$(this,"data");$(this,"topics");$(this,"index");$(this,"transactionIndex");this.provider=e;const r=Object.freeze(t.topics.slice());xt(this,{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,removed:t.removed,address:t.address,data:t.data,topics:r,index:t.index,transactionIndex:t.transactionIndex})}toJSON(){const{address:t,blockHash:e,blockNumber:r,data:s,index:_,removed:a,topics:c,transactionHash:u,transactionIndex:l}=this;return{_type:"log",address:t,blockHash:e,blockNumber:r,data:s,index:_,removed:a,topics:c,transactionHash:u,transactionIndex:l}}async getBlock(){const t=await this.provider.getBlock(this.blockHash);return ht(!!t,"failed to find transaction","UNKNOWN_ERROR",{}),t}async getTransaction(){const t=await this.provider.getTransaction(this.transactionHash);return ht(!!t,"failed to find transaction","UNKNOWN_ERROR",{}),t}async getTransactionReceipt(){const t=await this.provider.getTransactionReceipt(this.transactionHash);return ht(!!t,"failed to find transaction receipt","UNKNOWN_ERROR",{}),t}removedEvent(){return pP(this)}}class n0{constructor(t,e){$(this,"provider");$(this,"to");$(this,"from");$(this,"contractAddress");$(this,"hash");$(this,"index");$(this,"blockHash");$(this,"blockNumber");$(this,"logsBloom");$(this,"gasUsed");$(this,"blobGasUsed");$(this,"cumulativeGasUsed");$(this,"gasPrice");$(this,"blobGasPrice");$(this,"type");$(this,"status");$(this,"root");rt(this,vu);K(this,vu,Object.freeze(t.logs.map(s=>new iu(s,e))));let r=e0;t.effectiveGasPrice!=null?r=t.effectiveGasPrice:t.gasPrice!=null&&(r=t.gasPrice),xt(this,{provider:e,to:t.to,from:t.from,contractAddress:t.contractAddress,hash:t.hash,index:t.index,blockHash:t.blockHash,blockNumber:t.blockNumber,logsBloom:t.logsBloom,gasUsed:t.gasUsed,cumulativeGasUsed:t.cumulativeGasUsed,blobGasUsed:t.blobGasUsed,gasPrice:r,blobGasPrice:t.blobGasPrice,type:t.type,status:t.status,root:t.root})}get logs(){return m(this,vu)}toJSON(){const{to:t,from:e,contractAddress:r,hash:s,index:_,blockHash:a,blockNumber:c,logsBloom:u,logs:l,status:f,root:w}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:c,contractAddress:r,cumulativeGasUsed:we(this.cumulativeGasUsed),from:e,gasPrice:we(this.gasPrice),blobGasUsed:we(this.blobGasUsed),blobGasPrice:we(this.blobGasPrice),gasUsed:we(this.gasUsed),hash:s,index:_,logs:l,logsBloom:u,root:w,status:f,to:t}}get length(){return this.logs.length}[Symbol.iterator](){let t=0;return{next:()=>t<this.length?{value:this.logs[t++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const t=await this.provider.getBlock(this.blockHash);if(t==null)throw new Error("TODO");return t}async getTransaction(){const t=await this.provider.getTransaction(this.hash);if(t==null)throw new Error("TODO");return t}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return s0(this)}reorderedEvent(t){return ht(!t||t.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),i0(this,t)}}vu=new WeakMap;const Xh=class Xh{constructor(t,e){$(this,"provider");$(this,"blockNumber");$(this,"blockHash");$(this,"index");$(this,"hash");$(this,"type");$(this,"to");$(this,"from");$(this,"nonce");$(this,"gasLimit");$(this,"gasPrice");$(this,"maxPriorityFeePerGas");$(this,"maxFeePerGas");$(this,"maxFeePerBlobGas");$(this,"data");$(this,"value");$(this,"chainId");$(this,"signature");$(this,"accessList");$(this,"blobVersionedHashes");rt(this,As);this.provider=e,this.blockNumber=t.blockNumber!=null?t.blockNumber:null,this.blockHash=t.blockHash!=null?t.blockHash:null,this.hash=t.hash,this.index=t.index,this.type=t.type,this.from=t.from,this.to=t.to||null,this.gasLimit=t.gasLimit,this.nonce=t.nonce,this.data=t.data,this.value=t.value,this.gasPrice=t.gasPrice,this.maxPriorityFeePerGas=t.maxPriorityFeePerGas!=null?t.maxPriorityFeePerGas:null,this.maxFeePerGas=t.maxFeePerGas!=null?t.maxFeePerGas:null,this.maxFeePerBlobGas=t.maxFeePerBlobGas!=null?t.maxFeePerBlobGas:null,this.chainId=t.chainId,this.signature=t.signature,this.accessList=t.accessList!=null?t.accessList:null,this.blobVersionedHashes=t.blobVersionedHashes!=null?t.blobVersionedHashes:null,K(this,As,-1)}toJSON(){const{blockNumber:t,blockHash:e,index:r,hash:s,type:_,to:a,from:c,nonce:u,data:l,signature:f,accessList:w,blobVersionedHashes:y}=this;return{_type:"TransactionResponse",accessList:w,blockNumber:t,blockHash:e,blobVersionedHashes:y,chainId:we(this.chainId),data:l,from:c,gasLimit:we(this.gasLimit),gasPrice:we(this.gasPrice),hash:s,maxFeePerGas:we(this.maxFeePerGas),maxPriorityFeePerGas:we(this.maxPriorityFeePerGas),maxFeePerBlobGas:we(this.maxFeePerBlobGas),nonce:u,signature:f,to:a,index:r,type:_,value:we(this.value)}}async getBlock(){let t=this.blockNumber;if(t==null){const r=await this.getTransaction();r&&(t=r.blockNumber)}if(t==null)return null;const e=this.provider.getBlock(t);if(e==null)throw new Error("TODO");return e}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:e,blockNumber:r}=await Ie({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return e==null||e.blockNumber==null?0:r-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(t,e){const r=t??1,s=e??0;let _=m(this,As),a=-1,c=_===-1;const u=async()=>{if(c)return null;const{blockNumber:y,nonce:M}=await Ie({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(M<this.nonce){_=y;return}if(c)return null;const B=await this.getTransaction();if(!(B&&B.blockNumber!=null))for(a===-1&&(a=_-3,a<m(this,As)&&(a=m(this,As)));a<=y;){if(c)return null;const I=await this.provider.getBlock(a,!0);if(I==null)return;for(const G of I)if(G===this.hash)return;for(let G=0;G<I.length;G++){const P=await I.getTransaction(G);if(P.from===this.from&&P.nonce===this.nonce){if(c)return null;const v=await this.provider.getTransactionReceipt(P.hash);if(v==null||y-v.blockNumber+1<r)return;let N="replaced";P.data===this.data&&P.to===this.to&&P.value===this.value?N="repriced":P.data==="0x"&&P.from===P.to&&P.value===e0&&(N="cancelled"),ht(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:N==="replaced"||N==="cancelled",reason:N,replacement:P.replaceableTransaction(_),hash:P.hash,receipt:v})}}a++}},l=y=>{if(y==null||y.status!==0)return y;ht(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:y.to,from:y.from,data:""},receipt:y})},f=await this.provider.getTransactionReceipt(this.hash);if(r===0)return l(f);if(f){if(await f.confirmations()>=r)return l(f)}else if(await u(),r===0)return null;return await new Promise((y,M)=>{const B=[],I=()=>{B.forEach(P=>P())};if(B.push(()=>{c=!0}),s>0){const P=setTimeout(()=>{I(),M(ue("wait for transaction timeout","TIMEOUT"))},s);B.push(()=>{clearTimeout(P)})}const G=async P=>{if(await P.confirmations()>=r){I();try{y(l(P))}catch(v){M(v)}}};if(B.push(()=>{this.provider.off(this.hash,G)}),this.provider.on(this.hash,G),_>=0){const P=async()=>{try{await u()}catch(v){if(Ee(v,"TRANSACTION_REPLACED")){I(),M(v);return}}c||this.provider.once("block",P)};B.push(()=>{this.provider.off("block",P)}),this.provider.once("block",P)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return ht(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),s0(this)}reorderedEvent(t){return ht(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),ht(!t||t.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),i0(this,t)}replaceableTransaction(t){W(Number.isInteger(t)&&t>=0,"invalid startBlock","startBlock",t);const e=new Xh(this,this.provider);return K(e,As,t),e}};As=new WeakMap;let su=Xh;function lP(n){return{orphan:"drop-block",hash:n.hash,number:n.number}}function i0(n,t){return{orphan:"reorder-transaction",tx:n,other:t}}function s0(n){return{orphan:"drop-transaction",tx:n}}function pP(n){return{orphan:"drop-log",log:{transactionHash:n.transactionHash,blockHash:n.blockHash,blockNumber:n.blockNumber,address:n.address,data:n.data,topics:Object.freeze(n.topics.slice()),index:n.index}}}class $l extends iu{constructor(e,r,s){super(e,e.provider);$(this,"interface");$(this,"fragment");$(this,"args");const _=r.decodeEventLog(s,e.data,e.topics);xt(this,{args:_,fragment:s,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class _0 extends iu{constructor(e,r){super(e,e.provider);$(this,"error");xt(this,{error:r})}}class hP extends n0{constructor(e,r,s){super(s,r);rt(this,Rc);K(this,Rc,e)}get logs(){return super.logs.map(e=>{const r=e.topics.length?m(this,Rc).getEvent(e.topics[0]):null;if(r)try{return new $l(e,m(this,Rc),r)}catch(s){return new _0(e,s)}return e})}}Rc=new WeakMap;class Zl extends su{constructor(e,r,s){super(s,r);rt(this,Mu);K(this,Mu,e)}async wait(e,r){const s=await super.wait(e,r);return s==null?null:new hP(m(this,Mu),this.provider,s)}}Mu=new WeakMap;class o0 extends Gw{constructor(e,r,s,_){super(e,r,s);$(this,"log");xt(this,{log:_})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class wP extends o0{constructor(t,e,r,s,_){super(t,e,r,new $l(_,t.interface,s));const a=t.interface.decodeEventLog(s,this.log.data,this.log.topics);xt(this,{args:a,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const a0=BigInt(0);function c0(n){return n&&typeof n.call=="function"}function u0(n){return n&&typeof n.estimateGas=="function"}function df(n){return n&&typeof n.resolveName=="function"}function f0(n){return n&&typeof n.sendTransaction=="function"}function l0(n){if(n!=null){if(df(n))return n;if(n.provider)return n.provider}}class dP{constructor(t,e,r){rt(this,Bu);$(this,"fragment");if(xt(this,{fragment:e}),e.inputs.length<r.length)throw new Error("too many arguments");const s=qs(t.runner,"resolveName"),_=df(s)?s:null;K(this,Bu,async function(){const a=await Promise.all(e.inputs.map((c,u)=>r[u]==null?null:c.walkAsync(r[u],(f,w)=>f==="address"?Array.isArray(w)?Promise.all(w.map(y=>Te(y,_))):Te(w,_):w)));return t.interface.encodeFilterTopics(e,a)}())}getTopicFilter(){return m(this,Bu)}}Bu=new WeakMap;function qs(n,t){return n==null?null:typeof n[t]=="function"?n:n.provider&&typeof n.provider[t]=="function"?n.provider:null}function Qs(n){return n==null?null:n.provider||null}async function p0(n,t){const e=Me.dereference(n,"overrides");W(typeof e=="object","invalid overrides parameter","overrides",n);const r=wf(e);return W(r.to==null||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),W(r.data==null||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function gP(n,t,e){const r=qs(n,"resolveName"),s=df(r)?r:null;return await Promise.all(t.map((_,a)=>_.walkAsync(e[a],(c,u)=>(u=Me.dereference(u,c),c==="address"?Te(u,s):u))))}function bP(n){const t=async function(a){const c=await p0(a,["data"]);c.to=await n.getAddress(),c.from&&(c.from=await Te(c.from,l0(n.runner)));const u=n.interface,l=zt(c.value||a0,"overrides.value")===a0,f=(c.data||"0x")==="0x";u.fallback&&!u.fallback.payable&&u.receive&&!f&&!l&&W(!1,"cannot send data to receive or send value to non-payable fallback","overrides",a),W(u.fallback||f,"cannot send data to receive-only contract","overrides.data",c.data);const w=u.receive||u.fallback&&u.fallback.payable;return W(w||l,"cannot send value to non-payable fallback","overrides.value",c.value),W(u.fallback||f,"cannot send data to receive-only contract","overrides.data",c.data),c},e=async function(a){const c=qs(n.runner,"call");ht(c0(c),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const u=await t(a);try{return await c.call(u)}catch(l){throw il(l)&&l.data?n.interface.makeError(l.data,u):l}},r=async function(a){const c=n.runner;ht(f0(c),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const u=await c.sendTransaction(await t(a)),l=Qs(n.runner);return new Zl(n.interface,l,u)},s=async function(a){const c=qs(n.runner,"estimateGas");return ht(u0(c),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await c.estimateGas(await t(a))},_=async a=>await r(a);return xt(_,{_contract:n,estimateGas:s,populateTransaction:t,send:r,staticCall:e}),_}function yP(n,t){const e=function(...l){const f=n.interface.getFunction(t,l);return ht(f,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:l}}),f},r=async function(...l){const f=e(...l);let w={};if(f.inputs.length+1===l.length&&(w=await p0(l.pop()),w.from&&(w.from=await Te(w.from,l0(n.runner)))),f.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const y=await gP(n.runner,f.inputs,l);return Object.assign({},w,await Ie({to:n.getAddress(),data:n.interface.encodeFunctionData(f,y)}))},s=async function(...l){const f=await c(...l);return f.length===1?f[0]:f},_=async function(...l){const f=n.runner;ht(f0(f),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const w=await f.sendTransaction(await r(...l)),y=Qs(n.runner);return new Zl(n.interface,y,w)},a=async function(...l){const f=qs(n.runner,"estimateGas");return ht(u0(f),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await f.estimateGas(await r(...l))},c=async function(...l){const f=qs(n.runner,"call");ht(c0(f),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const w=await r(...l);let y="0x";try{y=await f.call(w)}catch(B){throw il(B)&&B.data?n.interface.makeError(B.data,w):B}const M=e(...l);return n.interface.decodeFunctionResult(M,y)},u=async(...l)=>e(...l).constant?await s(...l):await _(...l);return xt(u,{name:n.interface.getFunctionName(t),_contract:n,_key:t,getFragment:e,estimateGas:a,populateTransaction:r,send:_,staticCall:s,staticCallResult:c}),Object.defineProperty(u,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=n.interface.getFunction(t);return ht(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),l}}),u}function AP(n,t){const e=function(...s){const _=n.interface.getEvent(t,s);return ht(_,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:s}}),_},r=function(...s){return new dP(n,e(...s),s)};return xt(r,{name:n.interface.getEventName(t),_contract:n,_key:t,getFragment:e}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=n.interface.getEvent(t);return ht(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),s}}),r}const gf=Symbol.for("_ethersInternal_contract"),h0=new WeakMap;function mP(n,t){h0.set(n[gf],t)}function We(n){return h0.get(n[gf])}function SP(n){return n&&typeof n=="object"&&"getTopicFilter"in n&&typeof n.getTopicFilter=="function"&&n.fragment}async function Xl(n,t){let e,r=null;if(Array.isArray(t)){const _=function(a){if(ee(a,32))return a;const c=n.interface.getEvent(a);return W(c,"unknown fragment","name",a),c.topicHash};e=t.map(a=>a==null?null:Array.isArray(a)?a.map(_):_(a))}else t==="*"?e=[null]:typeof t=="string"?ee(t,32)?e=[t]:(r=n.interface.getEvent(t),W(r,"unknown fragment","event",t),e=[r.topicHash]):SP(t)?e=await t.getTopicFilter():"fragment"in t?(r=t.fragment,e=[r.topicHash]):W(!1,"unknown event name","event",t);e=e.map(_=>{if(_==null)return null;if(Array.isArray(_)){const a=Array.from(new Set(_.map(c=>c.toLowerCase())).values());return a.length===1?a[0]:(a.sort(),a)}return _.toLowerCase()});const s=e.map(_=>_==null?"null":Array.isArray(_)?_.join("|"):_).join("&");return{fragment:r,tag:s,topics:e}}async function _u(n,t){const{subs:e}=We(n);return e.get((await Xl(n,t)).tag)||null}async function w0(n,t,e){const r=Qs(n.runner);ht(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:s,tag:_,topics:a}=await Xl(n,e),{addr:c,subs:u}=We(n);let l=u.get(_);if(!l){const w={address:c||n,topics:a},y=G=>{let P=s;if(P==null)try{P=n.interface.getEvent(G.topics[0])}catch{}if(P){const v=P,N=s?n.interface.decodeEventLog(s,G.data,G.topics):[];ep(n,e,N,C=>new wP(n,C,e,v,G))}else ep(n,e,[],v=>new o0(n,v,e,G))};let M=[];l={tag:_,listeners:[],start:()=>{M.length||M.push(r.on(w,y))},stop:async()=>{if(M.length==0)return;let G=M;M=[],await Promise.all(G),r.off(w,y)}},u.set(_,l)}return l}let tp=Promise.resolve();async function RP(n,t,e,r){await tp;const s=await _u(n,t);if(!s)return!1;const _=s.listeners.length;return s.listeners=s.listeners.filter(({listener:a,once:c})=>{const u=Array.from(e);r&&u.push(r(c?null:a));try{a.call(n,...u)}catch{}return!c}),s.listeners.length===0&&(s.stop(),We(n).subs.delete(s.tag)),_>0}async function ep(n,t,e,r){try{await tp}catch{}const s=RP(n,t,e,r);return tp=s,await s}const bf=["then"];Mm=gf;const xu=class xu{constructor(t,e,r,s){$(this,"target");$(this,"interface");$(this,"runner");$(this,"filters");$(this,Mm);$(this,"fallback");W(typeof t=="string"||qd(t),"invalid value for Contract target","target",t),r==null&&(r=null);const _=Jl.from(e);xt(this,{target:t,runner:r,interface:_}),Object.defineProperty(this,gf,{value:{}});let a,c=null,u=null;if(s){const w=Qs(r);u=new Zl(this.interface,w,s)}let l=new Map;if(typeof t=="string")if(ee(t))c=t,a=Promise.resolve(t);else{const w=qs(r,"resolveName");if(!df(w))throw ue("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=w.resolveName(t).then(y=>{if(y==null)throw ue("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:t});return We(this).addr=y,y})}else a=t.getAddress().then(w=>{if(w==null)throw new Error("TODO");return We(this).addr=w,w});mP(this,{addrPromise:a,addr:c,deployTx:u,subs:l});const f=new Proxy({},{get:(w,y,M)=>{if(typeof y=="symbol"||bf.indexOf(y)>=0)return Reflect.get(w,y,M);try{return this.getEvent(y)}catch(B){if(!Ee(B,"INVALID_ARGUMENT")||B.argument!=="key")throw B}},has:(w,y)=>bf.indexOf(y)>=0?Reflect.has(w,y):Reflect.has(w,y)||this.interface.hasEvent(String(y))});return xt(this,{filters:f}),xt(this,{fallback:_.receive||_.fallback?bP(this):null}),new Proxy(this,{get:(w,y,M)=>{if(typeof y=="symbol"||y in w||bf.indexOf(y)>=0)return Reflect.get(w,y,M);try{return w.getFunction(y)}catch(B){if(!Ee(B,"INVALID_ARGUMENT")||B.argument!=="key")throw B}},has:(w,y)=>typeof y=="symbol"||y in w||bf.indexOf(y)>=0?Reflect.has(w,y):w.interface.hasFunction(y)})}connect(t){return new xu(this.target,this.interface,t)}attach(t){return new xu(t,this.interface,this.runner)}async getAddress(){return await We(this).addrPromise}async getDeployedCode(){const t=Qs(this.runner);ht(t,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const e=await t.getCode(await this.getAddress());return e==="0x"?null:e}async waitForDeployment(){const t=this.deploymentTransaction();if(t)return await t.wait(),this;if(await this.getDeployedCode()!=null)return this;const r=Qs(this.runner);return ht(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,_)=>{const a=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);r.once("block",a)}catch(c){_(c)}};a()})}deploymentTransaction(){return We(this).deployTx}getFunction(t){return typeof t!="string"&&(t=t.format()),yP(this,t)}getEvent(t){return typeof t!="string"&&(t=t.format()),AP(this,t)}async queryTransaction(t){throw new Error("@TODO")}async queryFilter(t,e,r){e==null&&(e=0),r==null&&(r="latest");const{addr:s,addrPromise:_}=We(this),a=s||await _,{fragment:c,topics:u}=await Xl(this,t),l={address:a,topics:u,fromBlock:e,toBlock:r},f=Qs(this.runner);return ht(f,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await f.getLogs(l)).map(w=>{let y=c;if(y==null)try{y=this.interface.getEvent(w.topics[0])}catch{}if(y)try{return new $l(w,this.interface,y)}catch(M){return new _0(w,M)}return new iu(w,f)})}async on(t,e){const r=await w0(this,"on",t);return r.listeners.push({listener:e,once:!1}),r.start(),this}async once(t,e){const r=await w0(this,"once",t);return r.listeners.push({listener:e,once:!0}),r.start(),this}async emit(t,...e){return await ep(this,t,e,null)}async listenerCount(t){if(t){const s=await _u(this,t);return s?s.listeners.length:0}const{subs:e}=We(this);let r=0;for(const{listeners:s}of e.values())r+=s.length;return r}async listeners(t){if(t){const s=await _u(this,t);return s?s.listeners.map(({listener:_})=>_):[]}const{subs:e}=We(this);let r=[];for(const{listeners:s}of e.values())r=r.concat(s.map(({listener:_})=>_));return r}async off(t,e){const r=await _u(this,t);if(!r)return this;if(e){const s=r.listeners.map(({listener:_})=>_).indexOf(e);s>=0&&r.listeners.splice(s,1)}return(e==null||r.listeners.length===0)&&(r.stop(),We(this).subs.delete(r.tag)),this}async removeAllListeners(t){if(t){const e=await _u(this,t);if(!e)return this;e.stop(),We(this).subs.delete(e.tag)}else{const{subs:e}=We(this);for(const{tag:r,stop:s}of e.values())s(),e.delete(r)}return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return await this.off(t,e)}static buildClass(t){class e extends xu{constructor(s,_=null){super(s,t,_)}}return e}static from(t,e,r){return r==null&&(r=null),new this(t,e,r)}};let rp=xu;function EP(){return rp}class Pr extends EP(){}function np(n){return n.match(/^ipfs:\/\/ipfs\//i)?n=n.substring(12):n.match(/^ipfs:\/\//i)?n=n.substring(7):W(!1,"unsupported IPFS format","link",n),`https://gateway.ipfs.io/ipfs/${n}`}class PP{constructor(t){$(this,"name");xt(this,{name:t})}connect(t){return this}supportsCoinType(t){return!1}async encodeAddress(t,e){throw new Error("unsupported coin")}async decodeAddress(t,e){throw new Error("unsupported coin")}}const d0=new RegExp("^(ipfs)://(.*)$","i"),g0=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),d0,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")],Ec=class Ec{constructor(t,e,r){rt(this,Ss);$(this,"provider");$(this,"address");$(this,"name");rt(this,ms);rt(this,x_);xt(this,{provider:t,address:e,name:r}),K(this,ms,null),K(this,x_,new Pr(e,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],t))}async supportsWildcard(){return m(this,ms)==null&&K(this,ms,(async()=>{try{return await m(this,x_).supportsInterface("0x9061b923")}catch(t){if(Ee(t,"CALL_EXCEPTION"))return!1;throw K(this,ms,null),t}})()),await m(this,ms)}async getAddress(t){if(t==null&&(t=60),t===60)try{const _=await mt(this,Ss,Dc).call(this,"addr(bytes32)");return _==null||_===qc?null:_}catch(_){if(Ee(_,"CALL_EXCEPTION"))return null;throw _}if(t>=0&&t<2147483648){let _=t+2147483648;const a=await mt(this,Ss,Dc).call(this,"addr(bytes32,uint)",[_]);if(ee(a,20))return Vt(a)}let e=null;for(const _ of this.provider.plugins)if(_ instanceof PP&&_.supportsCoinType(t)){e=_;break}if(e==null)return null;const r=await mt(this,Ss,Dc).call(this,"addr(bytes32,uint)",[t]);if(r==null||r==="0x")return null;const s=await e.decodeAddress(t,r);if(s!=null)return s;ht(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(t){const e=await mt(this,Ss,Dc).call(this,"text(bytes32,string)",[t]);return e==null||e==="0x"?null:e}async getContentHash(){const t=await mt(this,Ss,Dc).call(this,"contenthash(bytes32)");if(t==null||t==="0x")return null;const e=t.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const s=e[1]==="e3010170"?"ipfs":"ipns",_=parseInt(e[4],16);if(e[5].length===_*2)return`${s}://${Wm("0x"+e[2])}`}const r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&r[1].length===64)return`bzz://${r[1]}`;ht(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:t}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const t=[{type:"name",value:this.name}];try{const e=await this.getText("avatar");if(e==null)return t.push({type:"!avatar",value:""}),{url:null,linkage:t};t.push({type:"avatar",value:e});for(let r=0;r<g0.length;r++){const s=e.match(g0[r]);if(s==null)continue;const _=s[1].toLowerCase();switch(_){case"https":case"data":return t.push({type:"url",value:e}),{linkage:t,url:e};case"ipfs":{const a=np(e);return t.push({type:"ipfs",value:e}),t.push({type:"url",value:a}),{linkage:t,url:a}}case"erc721":case"erc1155":{const a=_==="erc721"?"tokenURI(uint256)":"uri(uint256)";t.push({type:_,value:e});const c=await this.getAddress();if(c==null)return t.push({type:"!owner",value:""}),{url:null,linkage:t};const u=(s[2]||"").split("/");if(u.length!==2)return t.push({type:`!${_}caip`,value:s[2]||""}),{url:null,linkage:t};const l=u[1],f=new Pr(u[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if(_==="erc721"){const I=await f.ownerOf(l);if(c!==I)return t.push({type:"!owner",value:I}),{url:null,linkage:t};t.push({type:"owner",value:I})}else if(_==="erc1155"){const I=await f.balanceOf(c,l);if(!I)return t.push({type:"!balance",value:"0"}),{url:null,linkage:t};t.push({type:"balance",value:I.toString()})}let w=await f[a](l);if(w==null||w==="0x")return t.push({type:"!metadata-url",value:""}),{url:null,linkage:t};t.push({type:"metadata-url-base",value:w}),_==="erc1155"&&(w=w.replace("{id}",rs(l,32).substring(2)),t.push({type:"metadata-url-expanded",value:w})),w.match(/^ipfs:/i)&&(w=np(w)),t.push({type:"metadata-url",value:w});let y={};const M=await new Ii(w).send();M.assertOk();try{y=M.bodyJson}catch{try{t.push({type:"!metadata",value:M.bodyText})}catch{const P=M.body;return P&&t.push({type:"!metadata",value:Et(P)}),{url:null,linkage:t}}return{url:null,linkage:t}}if(!y)return t.push({type:"!metadata",value:""}),{url:null,linkage:t};t.push({type:"metadata",value:JSON.stringify(y)});let B=y.image;if(typeof B!="string")return t.push({type:"!imageUrl",value:""}),{url:null,linkage:t};if(!B.match(/^(https:\/\/|data:)/i)){if(B.match(d0)==null)return t.push({type:"!imageUrl-ipfs",value:B}),{url:null,linkage:t};t.push({type:"imageUrl-ipfs",value:B}),B=np(B)}return t.push({type:"url",value:B}),{linkage:t,url:B}}}}}catch{}return{linkage:t,url:null}}static async getEnsAddress(t){const e=await t.getNetwork(),r=e.getPlugin("org.ethers.plugins.network.Ens");return ht(r,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:e}}),r.address}static async fromName(t,e){var s;let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const _=await mt(s=Ec,Hf,Im).call(s,t,r);if(_!=null){const a=new Ec(t,_,e);return r!==e&&!await a.supportsWildcard()?null:a}r=r.split(".").slice(1).join(".")}}};ms=new WeakMap,x_=new WeakMap,Ss=new WeakSet,Dc=async function(t,e){e=(e||[]).slice();const r=m(this,x_).interface;e.unshift(Dl(this.name));let s=null;await this.supportsWildcard()&&(s=r.getFunction(t),ht(s,"missing fragment","UNKNOWN_ERROR",{info:{funcName:t}}),e=[vE(this.name,255),r.encodeFunctionData(s,e)],t="resolve(bytes,bytes)"),e.push({enableCcipRead:!0});try{const _=await m(this,x_)[t](...e);return s?r.decodeFunctionResult(s,_)[0]:_}catch(_){if(!Ee(_,"CALL_EXCEPTION"))throw _}return null},Hf=new WeakSet,Im=async function(t,e){const r=await Ec.getEnsAddress(t);try{const _=await new Pr(r,["function resolver(bytes32) view returns (address)"],t).resolver(Dl(e),{enableCcipRead:!0});return _===qc?null:_}catch(s){throw s}return null},rt(Ec,Hf);let yf=Ec;const b0=BigInt(0);function Yt(n,t){return function(e){return e==null?t:n(e)}}function Af(n,t){return e=>{if(t&&e==null)return null;if(!Array.isArray(e))throw new Error("not an array");return e.map(r=>n(r))}}function ou(n,t){return e=>{const r={};for(const s in n){let _=s;if(t&&s in t&&!(_ in e)){for(const a of t[s])if(a in e){_=a;break}}try{const a=n[s](e[_]);a!==void 0&&(r[s]=a)}catch(a){const c=a instanceof Error?a.message:"not-an-error";ht(!1,`invalid value for value.${s} (${c})`,"BAD_DATA",{value:e})}}return r}}function zP(n){switch(n){case!0:case"true":return!0;case!1:case"false":return!1}W(!1,`invalid boolean; ${JSON.stringify(n)}`,"value",n)}function no(n){return W(ee(n,!0),"invalid data","value",n),n}function ze(n){return W(ee(n,32),"invalid hash","value",n),n}const vP=ou({address:Vt,blockHash:ze,blockNumber:Kt,data:no,index:Kt,removed:Yt(zP,!1),topics:Af(ze),transactionHash:ze,transactionIndex:Kt},{index:["logIndex"]});function MP(n){return vP(n)}const BP=ou({hash:Yt(ze),parentHash:ze,parentBeaconBlockRoot:Yt(ze,null),number:Kt,timestamp:Kt,nonce:Yt(no),difficulty:zt,gasLimit:zt,gasUsed:zt,stateRoot:Yt(ze,null),receiptsRoot:Yt(ze,null),blobGasUsed:Yt(zt,null),excessBlobGas:Yt(zt,null),miner:Yt(Vt),prevRandao:Yt(ze,null),extraData:no,baseFeePerGas:Yt(zt)},{prevRandao:["mixHash"]});function xP(n){const t=BP(n);return t.transactions=n.transactions.map(e=>typeof e=="string"?e:y0(e)),t}const CP=ou({transactionIndex:Kt,blockNumber:Kt,transactionHash:ze,address:Vt,topics:Af(ze),data:no,index:Kt,blockHash:ze},{index:["logIndex"]});function IP(n){return CP(n)}const NP=ou({to:Yt(Vt,null),from:Yt(Vt,null),contractAddress:Yt(Vt,null),index:Kt,root:Yt(Et),gasUsed:zt,blobGasUsed:Yt(zt,null),logsBloom:Yt(no),blockHash:ze,hash:ze,logs:Af(IP),blockNumber:Kt,cumulativeGasUsed:zt,effectiveGasPrice:Yt(zt),blobGasPrice:Yt(zt,null),status:Yt(Kt),type:Yt(Kt,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function OP(n){return NP(n)}function y0(n){n.to&&zt(n.to)===b0&&(n.to="0x0000000000000000000000000000000000000000");const t=ou({hash:ze,index:Yt(Kt,void 0),type:e=>e==="0x"||e==null?0:Kt(e),accessList:Yt(js,null),blobVersionedHashes:Yt(Af(ze,!0),null),blockHash:Yt(ze,null),blockNumber:Yt(Kt,null),transactionIndex:Yt(Kt,null),from:Vt,gasPrice:Yt(zt),maxPriorityFeePerGas:Yt(zt),maxFeePerGas:Yt(zt),maxFeePerBlobGas:Yt(zt,null),gasLimit:zt,to:Yt(Vt,null),value:zt,nonce:Kt,data:no,creates:Yt(Vt,null),chainId:Yt(zt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(n);if(t.to==null&&t.creates==null&&(t.creates=xR(t)),(n.type===1||n.type===2)&&n.accessList==null&&(t.accessList=[]),n.signature?t.signature=Sr.from(n.signature):t.signature=Sr.from(n),t.chainId==null){const e=t.signature.legacyChainId;e!=null&&(t.chainId=e)}return t.blockHash&&zt(t.blockHash)===b0&&(t.blockHash=null),t}const kP="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class au{constructor(t){$(this,"name");xt(this,{name:t})}clone(){return new au(this.name)}}class mf extends au{constructor(e,r){e==null&&(e=0);super(`org.ethers.network.plugins.GasCost#${e||0}`);$(this,"effectiveBlock");$(this,"txBase");$(this,"txCreate");$(this,"txDataZero");$(this,"txDataNonzero");$(this,"txAccessListStorageKey");$(this,"txAccessListAddress");const s={effectiveBlock:e};function _(a,c){let u=(r||{})[a];u==null&&(u=c),W(typeof u=="number",`invalud value for ${a}`,"costs",r),s[a]=u}_("txBase",21e3),_("txCreate",32e3),_("txDataZero",4),_("txDataNonzero",16),_("txAccessListStorageKey",1900),_("txAccessListAddress",2400),xt(this,s)}clone(){return new mf(this.effectiveBlock,this)}}class Sf extends au{constructor(e,r){super("org.ethers.plugins.network.Ens");$(this,"address");$(this,"targetNetwork");xt(this,{address:e||kP,targetNetwork:r??1})}clone(){return new Sf(this.address,this.targetNetwork)}}class TP extends au{constructor(e,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");rt(this,Cu);rt(this,Iu);K(this,Cu,e),K(this,Iu,r)}get url(){return m(this,Cu)}get processFunc(){return m(this,Iu)}clone(){return this}}Cu=new WeakMap,Iu=new WeakMap;const ip=new Map,vc=class vc{constructor(t,e){rt(this,Pc);rt(this,zc);rt(this,Rs);K(this,Pc,t),K(this,zc,zt(e)),K(this,Rs,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return m(this,Pc)}set name(t){K(this,Pc,t)}get chainId(){return m(this,zc)}set chainId(t){K(this,zc,zt(t,"chainId"))}matches(t){if(t==null)return!1;if(typeof t=="string"){try{return this.chainId===zt(t)}catch{}return this.name===t}if(typeof t=="number"||typeof t=="bigint"){try{return this.chainId===zt(t)}catch{}return!1}if(typeof t=="object"){if(t.chainId!=null){try{return this.chainId===zt(t.chainId)}catch{}return!1}return t.name!=null?this.name===t.name:!1}return!1}get plugins(){return Array.from(m(this,Rs).values())}attachPlugin(t){if(m(this,Rs).get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return m(this,Rs).set(t.name,t.clone()),this}getPlugin(t){return m(this,Rs).get(t)||null}getPlugins(t){return this.plugins.filter(e=>e.name.split("#")[0]===t)}clone(){const t=new vc(this.name,this.chainId);return this.plugins.forEach(e=>{t.attachPlugin(e.clone())}),t}computeIntrinsicGas(t){const e=this.getPlugin("org.ethers.plugins.network.GasCost")||new mf;let r=e.txBase;if(t.to==null&&(r+=e.txCreate),t.data)for(let s=2;s<t.data.length;s+=2)t.data.substring(s,s+2)==="00"?r+=e.txDataZero:r+=e.txDataNonzero;if(t.accessList){const s=js(t.accessList);for(const _ in s)r+=e.txAccessListAddress+e.txAccessListStorageKey*s[_].storageKeys.length}return r}static from(t){if(GP(),t==null)return vc.from("mainnet");if(typeof t=="number"&&(t=BigInt(t)),typeof t=="string"||typeof t=="bigint"){const e=ip.get(t);if(e)return e();if(typeof t=="bigint")return new vc("unknown",t);W(!1,"unknown network","network",t)}if(typeof t.clone=="function")return t.clone();if(typeof t=="object"){W(typeof t.name=="string"&&typeof t.chainId=="number","invalid network object name or chainId","network",t);const e=new vc(t.name,t.chainId);return(t.ensAddress||t.ensNetwork!=null)&&e.attachPlugin(new Sf(t.ensAddress,t.ensNetwork)),e}W(!1,"invalid network","network",t)}static register(t,e){typeof t=="number"&&(t=BigInt(t));const r=ip.get(t);r&&W(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",t),ip.set(t,e)}};Pc=new WeakMap,zc=new WeakMap,Rs=new WeakMap;let Fr=vc;function A0(n,t){const e=String(n);if(!e.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${n}`);const r=e.split(".");if(r.length===1&&r.push(""),r.length!==2)throw new Error(`invalid gwei value: ${n}`);for(;r[1].length<t;)r[1]+="0";if(r[1].length>9){let s=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||s++,r[1]=s.toString()}return BigInt(r[0]+r[1])}function m0(n){return new TP(n,async(t,e,r)=>{r.setHeader("User-Agent","ethers");let s;try{const[_,a]=await Promise.all([r.send(),t()]);s=_;const c=s.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:A0(c.maxFee,9),maxPriorityFeePerGas:A0(c.maxPriorityFee,9)}}catch(_){ht(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:s,error:_})}})}let S0=!1;function GP(){if(S0)return;S0=!0;function n(t,e,r){const s=function(){const _=new Fr(t,e);return r.ensNetwork!=null&&_.attachPlugin(new Sf(null,r.ensNetwork)),_.attachPlugin(new mf),(r.plugins||[]).forEach(a=>{_.attachPlugin(a)}),_};Fr.register(t,s),Fr.register(e,s),r.altNames&&r.altNames.forEach(_=>{Fr.register(_,s)})}n("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),n("ropsten",3,{ensNetwork:3}),n("rinkeby",4,{ensNetwork:4}),n("goerli",5,{ensNetwork:5}),n("kovan",42,{ensNetwork:42}),n("sepolia",11155111,{ensNetwork:11155111}),n("holesky",17e3,{ensNetwork:17e3}),n("classic",61,{}),n("classicKotti",6,{}),n("arbitrum",42161,{ensNetwork:1}),n("arbitrum-goerli",421613,{}),n("arbitrum-sepolia",421614,{}),n("base",8453,{ensNetwork:1}),n("base-goerli",84531,{}),n("base-sepolia",84532,{}),n("bnb",56,{ensNetwork:1}),n("bnbt",97,{}),n("linea",59144,{ensNetwork:1}),n("linea-goerli",59140,{}),n("linea-sepolia",59141,{}),n("matic",137,{ensNetwork:1,plugins:[m0("https://gasstation.polygon.technology/v2")]}),n("matic-amoy",80002,{}),n("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[m0("https://gasstation-testnet.polygon.technology/v2")]}),n("optimism",10,{ensNetwork:1,plugins:[]}),n("optimism-goerli",420,{}),n("optimism-sepolia",11155420,{}),n("xdai",100,{ensNetwork:1})}function sp(n){return JSON.parse(JSON.stringify(n))}class FP{constructor(t){rt(this,Mc);rt(this,$i);rt(this,pr);rt(this,Es);rt(this,Mi);K(this,$i,t),K(this,pr,null),K(this,Es,4e3),K(this,Mi,-2)}get pollingInterval(){return m(this,Es)}set pollingInterval(t){K(this,Es,t)}start(){m(this,pr)||(K(this,pr,m(this,$i)._setTimeout(mt(this,Mc,tl).bind(this),m(this,Es))),mt(this,Mc,tl).call(this))}stop(){m(this,pr)&&(m(this,$i)._clearTimeout(m(this,pr)),K(this,pr,null))}pause(t){this.stop(),t&&K(this,Mi,-2)}resume(){this.start()}}$i=new WeakMap,pr=new WeakMap,Es=new WeakMap,Mi=new WeakMap,Mc=new WeakSet,tl=async function(){try{const t=await m(this,$i).getBlockNumber();if(m(this,Mi)===-2){K(this,Mi,t);return}if(t!==m(this,Mi)){for(let e=m(this,Mi)+1;e<=t;e++){if(m(this,pr)==null)return;await m(this,$i).emit("block",e)}K(this,Mi,t)}}catch{}m(this,pr)!=null&&K(this,pr,m(this,$i)._setTimeout(mt(this,Mc,tl).bind(this),m(this,Es)))};class _p{constructor(t){rt(this,C_);rt(this,I_);rt(this,Ps);K(this,C_,t),K(this,Ps,!1),K(this,I_,e=>{this._poll(e,m(this,C_))})}async _poll(t,e){throw new Error("sub-classes must override this")}start(){m(this,Ps)||(K(this,Ps,!0),m(this,I_).call(this,-2),m(this,C_).on("block",m(this,I_)))}stop(){m(this,Ps)&&(K(this,Ps,!1),m(this,C_).off("block",m(this,I_)))}pause(t){this.stop()}resume(){this.start()}}C_=new WeakMap,I_=new WeakMap,Ps=new WeakMap;class UP extends _p{constructor(e,r){super(e);rt(this,Bc);rt(this,Zi);K(this,Bc,r),K(this,Zi,-2)}pause(e){e&&K(this,Zi,-2),super.pause(e)}async _poll(e,r){const s=await r.getBlock(m(this,Bc));s!=null&&(m(this,Zi)===-2?K(this,Zi,s.number):s.number>m(this,Zi)&&(r.emit(m(this,Bc),s.number),K(this,Zi,s.number)))}}Bc=new WeakMap,Zi=new WeakMap;class KP extends _p{constructor(e,r){super(e);rt(this,qf);K(this,qf,sp(r))}async _poll(e,r){throw new Error("@TODO")}}qf=new WeakMap;class DP extends _p{constructor(e,r){super(e);rt(this,xc);K(this,xc,r)}async _poll(e,r){const s=await r.getTransactionReceipt(m(this,xc));s&&r.emit(m(this,xc),s)}}xc=new WeakMap;class op{constructor(t,e){rt(this,Qf);rt(this,Xi);rt(this,Cc);rt(this,Ic);rt(this,zs);rt(this,hr);K(this,Xi,t),K(this,Cc,sp(e)),K(this,Ic,mt(this,Qf,Nm).bind(this)),K(this,zs,!1),K(this,hr,-2)}start(){m(this,zs)||(K(this,zs,!0),m(this,hr)===-2&&m(this,Xi).getBlockNumber().then(t=>{K(this,hr,t)}),m(this,Xi).on("block",m(this,Ic)))}stop(){m(this,zs)&&(K(this,zs,!1),m(this,Xi).off("block",m(this,Ic)))}pause(t){this.stop(),t&&K(this,hr,-2)}resume(){this.start()}}Xi=new WeakMap,Cc=new WeakMap,Ic=new WeakMap,zs=new WeakMap,hr=new WeakMap,Qf=new WeakSet,Nm=async function(t){if(m(this,hr)===-2)return;const e=sp(m(this,Cc));e.fromBlock=m(this,hr)+1,e.toBlock=t;const r=await m(this,Xi).getLogs(e);if(r.length===0){m(this,hr)<t-60&&K(this,hr,t-60);return}for(const s of r)m(this,Xi).emit(m(this,Cc),s),K(this,hr,s.blockNumber)};const LP=BigInt(2),jP=10;function Rf(n){return n&&typeof n.then=="function"}function Ef(n,t){return n+":"+JSON.stringify(t,(e,r)=>{if(r==null)return"null";if(typeof r=="bigint")return`bigint:${r.toString()}`;if(typeof r=="string")return r.toLowerCase();if(typeof r=="object"&&!Array.isArray(r)){const s=Object.keys(r);return s.sort(),s.reduce((_,a)=>(_[a]=r[a],_),{})}return r})}class R0{constructor(t){$(this,"name");xt(this,{name:t})}start(){}stop(){}pause(t){}resume(){}}function VP(n){return JSON.parse(JSON.stringify(n))}function ap(n){return n=Array.from(new Set(n).values()),n.sort(),n}async function cp(n,t){if(n==null)throw new Error("invalid event");if(Array.isArray(n)&&(n={topics:n}),typeof n=="string")switch(n){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:n,tag:n}}if(ee(n,32)){const e=n.toLowerCase();return{type:"transaction",tag:Ef("tx",{hash:e}),hash:e}}if(n.orphan){const e=n;return{type:"orphan",tag:Ef("orphan",e),filter:VP(e)}}if(n.address||n.topics){const e=n,r={topics:(e.topics||[]).map(s=>s==null?null:Array.isArray(s)?ap(s.map(_=>_.toLowerCase())):s.toLowerCase())};if(e.address){const s=[],_=[],a=c=>{ee(c)?s.push(c):_.push((async()=>{s.push(await Te(c,t))})())};Array.isArray(e.address)?e.address.forEach(a):a(e.address),_.length&&await Promise.all(_),r.address=ap(s.map(c=>c.toLowerCase()))}return{filter:r,tag:Ef("event",r),type:"event"}}W(!1,"unknown ProviderEvent","event",n)}function up(){return new Date().getTime()}const YP={cacheTimeout:250,pollingInterval:4e3};class HP{constructor(t,e){rt(this,Dt);rt(this,xe);rt(this,vs);rt(this,Ce);rt(this,Nc);rt(this,tr);rt(this,N_);rt(this,Ms);rt(this,ts);rt(this,Nu);rt(this,wr);rt(this,Oc);rt(this,kc);if(K(this,kc,Object.assign({},YP,e||{})),t==="any")K(this,N_,!0),K(this,tr,null);else if(t){const r=Fr.from(t);K(this,N_,!1),K(this,tr,Promise.resolve(r)),setTimeout(()=>{this.emit("network",r,null)},0)}else K(this,N_,!1),K(this,tr,null);K(this,ts,-1),K(this,Ms,new Map),K(this,xe,new Map),K(this,vs,new Map),K(this,Ce,null),K(this,Nc,!1),K(this,Nu,1),K(this,wr,new Map),K(this,Oc,!1)}get pollingInterval(){return m(this,kc).pollingInterval}get provider(){return this}get plugins(){return Array.from(m(this,vs).values())}attachPlugin(t){if(m(this,vs).get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return m(this,vs).set(t.name,t.connect(this)),this}getPlugin(t){return m(this,vs).get(t)||null}get disableCcipRead(){return m(this,Oc)}set disableCcipRead(t){K(this,Oc,!!t)}async ccipReadFetch(t,e,r){if(this.disableCcipRead||r.length===0||t.to==null)return null;const s=t.to.toLowerCase(),_=e.toLowerCase(),a=[];for(let c=0;c<r.length;c++){const u=r[c],l=u.replace("{sender}",s).replace("{data}",_),f=new Ii(l);u.indexOf("{data}")===-1&&(f.body={data:_,sender:s}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:f,index:c,urls:r});let w="unknown error",y;try{y=await f.send()}catch(M){a.push(M.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:f,result:{error:M}});continue}try{const M=y.bodyJson;if(M.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:f,result:M}),M.data;M.message&&(w=M.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:f,result:M})}catch{}ht(y.statusCode<400||y.statusCode>=500,`response not found during CCIP fetch: ${w}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:t,info:{url:u,errorMessage:w}}),a.push(w)}ht(!1,`error encountered during CCIP fetch: ${a.map(c=>JSON.stringify(c)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:t,info:{urls:r,errorMessages:a}})}_wrapBlock(t,e){return new fP(xP(t),this)}_wrapLog(t,e){return new iu(MP(t),this)}_wrapTransactionReceipt(t,e){return new n0(OP(t),this)}_wrapTransactionResponse(t,e){return new su(y0(t),this)}_detectNetwork(){ht(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(t){ht(!1,`unsupported method: ${t.method}`,"UNSUPPORTED_OPERATION",{operation:t.method,info:t})}async getBlockNumber(){const t=Kt(await mt(this,Dt,er).call(this,{method:"getBlockNumber"}),"%response");return m(this,ts)>=0&&K(this,ts,t),t}_getAddress(t){return Te(t,this)}_getBlockTag(t){if(t==null)return"latest";switch(t){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return t}if(ee(t))return ee(t,32)?t:j_(t);if(typeof t=="bigint"&&(t=Kt(t,"blockTag")),typeof t=="number")return t>=0?j_(t):m(this,ts)>=0?j_(m(this,ts)+t):this.getBlockNumber().then(e=>j_(e+t));W(!1,"invalid blockTag","blockTag",t)}_getFilter(t){const e=(t.topics||[]).map(u=>u==null?null:Array.isArray(u)?ap(u.map(l=>l.toLowerCase())):u.toLowerCase()),r="blockHash"in t?t.blockHash:void 0,s=(u,l,f)=>{let w;switch(u.length){case 0:break;case 1:w=u[0];break;default:u.sort(),w=u}if(r&&(l!=null||f!=null))throw new Error("invalid filter");const y={};return w&&(y.address=w),e.length&&(y.topics=e),l&&(y.fromBlock=l),f&&(y.toBlock=f),r&&(y.blockHash=r),y};let _=[];if(t.address)if(Array.isArray(t.address))for(const u of t.address)_.push(this._getAddress(u));else _.push(this._getAddress(t.address));let a;"fromBlock"in t&&(a=this._getBlockTag(t.fromBlock));let c;return"toBlock"in t&&(c=this._getBlockTag(t.toBlock)),_.filter(u=>typeof u!="string").length||a!=null&&typeof a!="string"||c!=null&&typeof c!="string"?Promise.all([Promise.all(_),a,c]).then(u=>s(u[0],u[1],u[2])):s(_,a,c)}_getTransactionRequest(t){const e=wf(t),r=[];if(["to","from"].forEach(s=>{if(e[s]==null)return;const _=Te(e[s],this);Rf(_)?r.push(async function(){e[s]=await _}()):e[s]=_}),e.blockTag!=null){const s=this._getBlockTag(e.blockTag);Rf(s)?r.push(async function(){e.blockTag=await s}()):e.blockTag=s}return r.length?async function(){return await Promise.all(r),e}():e}async getNetwork(){if(m(this,tr)==null){const s=(async()=>{try{const _=await this._detectNetwork();return this.emit("network",_,null),_}catch(_){throw m(this,tr)===s&&K(this,tr,null),_}})();return K(this,tr,s),(await s).clone()}const t=m(this,tr),[e,r]=await Promise.all([t,this._detectNetwork()]);return e.chainId!==r.chainId&&(m(this,N_)?(this.emit("network",r,e),m(this,tr)===t&&K(this,tr,Promise.resolve(r))):ht(!1,`network changed: ${e.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),e.clone()}async getFeeData(){const t=await this.getNetwork(),e=async()=>{const{_block:s,gasPrice:_,priorityFee:a}=await Ie({_block:mt(this,Dt,Ew).call(this,"latest",!1),gasPrice:(async()=>{try{const f=await mt(this,Dt,er).call(this,{method:"getGasPrice"});return zt(f,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const f=await mt(this,Dt,er).call(this,{method:"getPriorityFee"});return zt(f,"%response")}catch{}return null})()});let c=null,u=null;const l=this._wrapBlock(s,t);return l&&l.baseFeePerGas&&(u=a??BigInt("1000000000"),c=l.baseFeePerGas*LP+u),new r0(_,c,u)},r=t.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const s=new Ii(r.url),_=await r.processFunc(e,this,s);return new r0(_.gasPrice,_.maxFeePerGas,_.maxPriorityFeePerGas)}return await e()}async estimateGas(t){let e=this._getTransactionRequest(t);return Rf(e)&&(e=await e),zt(await mt(this,Dt,er).call(this,{method:"estimateGas",transaction:e}),"%response")}async call(t){const{tx:e,blockTag:r}=await Ie({tx:this._getTransactionRequest(t),blockTag:this._getBlockTag(t.blockTag)});return await mt(this,Dt,Rw).call(this,mt(this,Dt,Sw).call(this,e,r,t.enableCcipRead?0:-1))}async getBalance(t,e){return zt(await mt(this,Dt,Uu).call(this,{method:"getBalance"},t,e),"%response")}async getTransactionCount(t,e){return Kt(await mt(this,Dt,Uu).call(this,{method:"getTransactionCount"},t,e),"%response")}async getCode(t,e){return Et(await mt(this,Dt,Uu).call(this,{method:"getCode"},t,e))}async getStorage(t,e,r){const s=zt(e,"position");return Et(await mt(this,Dt,Uu).call(this,{method:"getStorage",position:s},t,r))}async broadcastTransaction(t){const{blockNumber:e,hash:r,network:s}=await Ie({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:t}),network:this.getNetwork()}),_=ff.from(t);if(_.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(_,s).replaceableTransaction(e)}async getBlock(t,e){const{network:r,params:s}=await Ie({network:this.getNetwork(),params:mt(this,Dt,Ew).call(this,t,!!e)});return s==null?null:this._wrapBlock(s,r)}async getTransaction(t){const{network:e,params:r}=await Ie({network:this.getNetwork(),params:mt(this,Dt,er).call(this,{method:"getTransaction",hash:t})});return r==null?null:this._wrapTransactionResponse(r,e)}async getTransactionReceipt(t){const{network:e,params:r}=await Ie({network:this.getNetwork(),params:mt(this,Dt,er).call(this,{method:"getTransactionReceipt",hash:t})});if(r==null)return null;if(r.gasPrice==null&&r.effectiveGasPrice==null){const s=await mt(this,Dt,er).call(this,{method:"getTransaction",hash:t});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(r,e)}async getTransactionResult(t){const{result:e}=await Ie({network:this.getNetwork(),result:mt(this,Dt,er).call(this,{method:"getTransactionResult",hash:t})});return e==null?null:Et(e)}async getLogs(t){let e=this._getFilter(t);Rf(e)&&(e=await e);const{network:r,params:s}=await Ie({network:this.getNetwork(),params:mt(this,Dt,er).call(this,{method:"getLogs",filter:e})});return s.map(_=>this._wrapLog(_,r))}_getProvider(t){ht(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(t){return await yf.fromName(this,t)}async getAvatar(t){const e=await this.getResolver(t);return e?await e.getAvatar():null}async resolveName(t){const e=await this.getResolver(t);return e?await e.getAddress():null}async lookupAddress(t){t=Vt(t);const e=Dl(t.substring(2).toLowerCase()+".addr.reverse");try{const r=await yf.getEnsAddress(this),_=await new Pr(r,["function resolver(bytes32) view returns (address)"],this).resolver(e);if(_==null||_===qc)return null;const c=await new Pr(_,["function name(bytes32) view returns (string)"],this).name(e);return await this.resolveName(c)!==t?null:c}catch(r){if(Ee(r,"BAD_DATA")&&r.value==="0x"||Ee(r,"CALL_EXCEPTION"))return null;throw r}return null}async waitForTransaction(t,e,r){const s=e??1;return s===0?this.getTransactionReceipt(t):new Promise(async(_,a)=>{let c=null;const u=async l=>{try{const f=await this.getTransactionReceipt(t);if(f!=null&&l-f.blockNumber+1>=s){_(f),c&&(clearTimeout(c),c=null);return}}catch(f){console.log("EEE",f)}this.once("block",u)};r!=null&&(c=setTimeout(()=>{c!=null&&(c=null,this.off("block",u),a(ue("timeout","TIMEOUT",{reason:"timeout"})))},r)),u(await this.getBlockNumber())})}async waitForBlock(t){ht(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(t){const e=m(this,wr).get(t);e&&(e.timer&&clearTimeout(e.timer),m(this,wr).delete(t))}_setTimeout(t,e){e==null&&(e=0);const r=Gu(this,Nu)._++,s=()=>{m(this,wr).delete(r),t()};if(this.paused)m(this,wr).set(r,{timer:null,func:s,time:e});else{const _=setTimeout(s,e);m(this,wr).set(r,{timer:_,func:s,time:up()})}return r}_forEachSubscriber(t){for(const e of m(this,xe).values())t(e.subscriber)}_getSubscriber(t){switch(t.type){case"debug":case"error":case"network":return new R0(t.type);case"block":{const e=new FP(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new UP(this,t.type);case"event":return new op(this,t.filter);case"transaction":return new DP(this,t.hash);case"orphan":return new KP(this,t.filter)}throw new Error(`unsupported event: ${t.type}`)}_recoverSubscriber(t,e){for(const r of m(this,xe).values())if(r.subscriber===t){r.started&&r.subscriber.stop(),r.subscriber=e,r.started&&e.start(),m(this,Ce)!=null&&e.pause(m(this,Ce));break}}async on(t,e){const r=await mt(this,Dt,el).call(this,t);return r.listeners.push({listener:e,once:!1}),r.started||(r.subscriber.start(),r.started=!0,m(this,Ce)!=null&&r.subscriber.pause(m(this,Ce))),this}async once(t,e){const r=await mt(this,Dt,el).call(this,t);return r.listeners.push({listener:e,once:!0}),r.started||(r.subscriber.start(),r.started=!0,m(this,Ce)!=null&&r.subscriber.pause(m(this,Ce))),this}async emit(t,...e){const r=await mt(this,Dt,Ku).call(this,t,e);if(!r||r.listeners.length===0)return!1;const s=r.listeners.length;return r.listeners=r.listeners.filter(({listener:_,once:a})=>{const c=new Gw(this,a?null:_,t);try{_.call(this,...e,c)}catch{}return!a}),r.listeners.length===0&&(r.started&&r.subscriber.stop(),m(this,xe).delete(r.tag)),s>0}async listenerCount(t){if(t){const r=await mt(this,Dt,Ku).call(this,t);return r?r.listeners.length:0}let e=0;for(const{listeners:r}of m(this,xe).values())e+=r.length;return e}async listeners(t){if(t){const r=await mt(this,Dt,Ku).call(this,t);return r?r.listeners.map(({listener:s})=>s):[]}let e=[];for(const{listeners:r}of m(this,xe).values())e=e.concat(r.map(({listener:s})=>s));return e}async off(t,e){const r=await mt(this,Dt,Ku).call(this,t);if(!r)return this;if(e){const s=r.listeners.map(({listener:_})=>_).indexOf(e);s>=0&&r.listeners.splice(s,1)}return(!e||r.listeners.length===0)&&(r.started&&r.subscriber.stop(),m(this,xe).delete(r.tag)),this}async removeAllListeners(t){if(t){const{tag:e,started:r,subscriber:s}=await mt(this,Dt,el).call(this,t);r&&s.stop(),m(this,xe).delete(e)}else for(const[e,{started:r,subscriber:s}]of m(this,xe))r&&s.stop(),m(this,xe).delete(e);return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return this.off(t,e)}get destroyed(){return m(this,Nc)}destroy(){this.removeAllListeners();for(const t of m(this,wr).keys())this._clearTimeout(t);K(this,Nc,!0)}get paused(){return m(this,Ce)!=null}set paused(t){!!t!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(t){if(K(this,ts,-1),m(this,Ce)!=null){if(m(this,Ce)==!!t)return;ht(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(e=>e.pause(t)),K(this,Ce,!!t);for(const e of m(this,wr).values())e.timer&&clearTimeout(e.timer),e.time=up()-e.time}resume(){if(m(this,Ce)!=null){this._forEachSubscriber(t=>t.resume()),K(this,Ce,null);for(const t of m(this,wr).values()){let e=t.time;e<0&&(e=0),t.time=up(),setTimeout(t.func,e)}}}}xe=new WeakMap,vs=new WeakMap,Ce=new WeakMap,Nc=new WeakMap,tr=new WeakMap,N_=new WeakMap,Ms=new WeakMap,ts=new WeakMap,Nu=new WeakMap,wr=new WeakMap,Oc=new WeakMap,kc=new WeakMap,Dt=new WeakSet,er=async function(t){const e=m(this,kc).cacheTimeout;if(e<0)return await this._perform(t);const r=Ef(t.method,t);let s=m(this,Ms).get(r);return s||(s=this._perform(t),m(this,Ms).set(r,s),setTimeout(()=>{m(this,Ms).get(r)===s&&m(this,Ms).delete(r)},e)),await s},Sw=async function(t,e,r){ht(r<jP,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},t,{blockTag:e,enableCcipRead:!0})});const s=wf(t);try{return Et(await this._perform({method:"call",transaction:s,blockTag:e}))}catch(_){if(!this.disableCcipRead&&il(_)&&_.data&&r>=0&&e==="latest"&&s.to!=null&&fe(_.data,0,4)==="0x556f1830"){const a=_.data,c=await Te(s.to,this);let u;try{u=$P(fe(_.data,4))}catch(w){ht(!1,w.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:a}})}ht(u.sender.toLowerCase()===c.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:a,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:u.errorArgs}});const l=await this.ccipReadFetch(s,u.calldata,u.urls);ht(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:_.data,errorArgs:u.errorArgs}});const f={to:c,data:le([u.selector,JP([l,u.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:f});try{const w=await mt(this,Dt,Sw).call(this,f,e,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},f),result:w}),w}catch(w){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},f),error:w}),w}}throw _}},Rw=async function(t){const{value:e}=await Ie({network:this.getNetwork(),value:t});return e},Uu=async function(t,e,r){let s=this._getAddress(e),_=this._getBlockTag(r);return(typeof s!="string"||typeof _!="string")&&([s,_]=await Promise.all([s,_])),await mt(this,Dt,Rw).call(this,mt(this,Dt,er).call(this,Object.assign(t,{address:s,blockTag:_})))},Ew=async function(t,e){if(ee(t,32))return await mt(this,Dt,er).call(this,{method:"getBlock",blockHash:t,includeTransactions:e});let r=this._getBlockTag(t);return typeof r!="string"&&(r=await r),await mt(this,Dt,er).call(this,{method:"getBlock",blockTag:r,includeTransactions:e})},Ku=async function(t,e){let r=await cp(t,this);return r.type==="event"&&e&&e.length>0&&e[0].removed===!0&&(r=await cp({orphan:"drop-log",log:e[0]},this)),m(this,xe).get(r.tag)||null},el=async function(t){const e=await cp(t,this),r=e.tag;let s=m(this,xe).get(r);return s||(s={subscriber:this._getSubscriber(e),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},m(this,xe).set(r,s)),s};function qP(n,t){try{const e=fp(n,t);if(e)return Vu(e)}catch{}return null}function fp(n,t){if(n==="0x")return null;try{const e=Kt(fe(n,t,t+32)),r=Kt(fe(n,e,e+32));return fe(n,e+32,e+32+r)}catch{}return null}function E0(n){const t=Oe(n);if(t.length>32)throw new Error("internal; should not happen");const e=new Uint8Array(32);return e.set(t,32-t.length),e}function QP(n){if(n.length%32===0)return n;const t=new Uint8Array(Math.ceil(n.length/32)*32);return t.set(n),t}const WP=new Uint8Array([]);function JP(n){const t=[];let e=0;for(let r=0;r<n.length;r++)t.push(WP),e+=32;for(let r=0;r<n.length;r++){const s=qt(n[r]);t[r]=E0(e),t.push(E0(s.length)),t.push(QP(s)),e+=32+Math.ceil(s.length/32)*32}return le(t)}const P0="0x0000000000000000000000000000000000000000000000000000000000000000";function $P(n){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};ht(L_(n)>=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const e=fe(n,0,32);ht(fe(e,0,12)===fe(P0,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=fe(e,12);try{const r=[],s=Kt(fe(n,32,64)),_=Kt(fe(n,s,s+32)),a=fe(n,s+32);for(let c=0;c<_;c++){const u=qP(a,c*32);if(u==null)throw new Error("abort");r.push(u)}t.urls=r}catch{ht(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const r=fp(n,64);if(r==null)throw new Error("abort");t.calldata=r}catch{ht(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}ht(fe(n,100,128)===fe(P0,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=fe(n,96,100);try{const r=fp(n,128);if(r==null)throw new Error("abort");t.extraData=r}catch{ht(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(r=>t[r]),t}function io(n,t){if(n.provider)return n.provider;ht(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function z0(n,t){let e=wf(t);if(e.to!=null&&(e.to=Te(e.to,n)),e.from!=null){const r=e.from;e.from=Promise.all([n.getAddress(),Te(r,n)]).then(([s,_])=>(W(s.toLowerCase()===_.toLowerCase(),"transaction from mismatch","tx.from",_),s))}else e.from=n.getAddress();return await Ie(e)}class ZP{constructor(t){$(this,"provider");xt(this,{provider:t||null})}async getNonce(t){return io(this,"getTransactionCount").getTransactionCount(await this.getAddress(),t)}async populateCall(t){return await z0(this,t)}async populateTransaction(t){const e=io(this,"populateTransaction"),r=await z0(this,t);r.nonce==null&&(r.nonce=await this.getNonce("pending")),r.gasLimit==null&&(r.gasLimit=await this.estimateGas(r));const s=await this.provider.getNetwork();if(r.chainId!=null){const a=zt(r.chainId);W(a===s.chainId,"transaction chainId mismatch","tx.chainId",t.chainId)}else r.chainId=s.chainId;const _=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||_)?W(!1,"eip-1559 transaction do not support gasPrice","tx",t):(r.type===0||r.type===1)&&_&&W(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1){const a=await e.getFeeData();ht(a.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),r.gasPrice==null&&(r.gasPrice=a.gasPrice)}else{const a=await e.getFeeData();if(r.type==null)if(a.maxFeePerGas!=null&&a.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const c=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=c,r.maxPriorityFeePerGas=c}else r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas);else a.gasPrice!=null?(ht(!_,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=a.gasPrice),r.type=0):ht(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(r.type===2||r.type===3)&&(r.maxFeePerGas==null&&(r.maxFeePerGas=a.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=a.maxPriorityFeePerGas))}return await Ie(r)}async estimateGas(t){return io(this,"estimateGas").estimateGas(await this.populateCall(t))}async call(t){return io(this,"call").call(await this.populateCall(t))}async resolveName(t){return await io(this,"resolveName").resolveName(t)}async sendTransaction(t){const e=io(this,"sendTransaction"),r=await this.populateTransaction(t);delete r.from;const s=ff.from(r);return await e.broadcastTransaction(await this.signTransaction(s))}}function XP(n){return JSON.parse(JSON.stringify(n))}class v0{constructor(t){rt(this,xs);rt(this,Fe);rt(this,Bi);rt(this,O_);rt(this,Bs);rt(this,k_);rt(this,Tc);K(this,Fe,t),K(this,Bi,null),K(this,O_,mt(this,xs,Pw).bind(this)),K(this,Bs,!1),K(this,k_,null),K(this,Tc,!1)}_subscribe(t){throw new Error("subclasses must override this")}_emitResults(t,e){throw new Error("subclasses must override this")}_recover(t){throw new Error("subclasses must override this")}start(){m(this,Bs)||(K(this,Bs,!0),mt(this,xs,Pw).call(this,-2))}stop(){m(this,Bs)&&(K(this,Bs,!1),K(this,Tc,!0),mt(this,xs,zw).call(this),m(this,Fe).off("block",m(this,O_)))}pause(t){t&&mt(this,xs,zw).call(this),m(this,Fe).off("block",m(this,O_))}resume(){this.start()}}Fe=new WeakMap,Bi=new WeakMap,O_=new WeakMap,Bs=new WeakMap,k_=new WeakMap,Tc=new WeakMap,xs=new WeakSet,Pw=async function(t){try{m(this,Bi)==null&&K(this,Bi,this._subscribe(m(this,Fe)));let e=null;try{e=await m(this,Bi)}catch(_){if(!Ee(_,"UNSUPPORTED_OPERATION")||_.operation!=="eth_newFilter")throw _}if(e==null){K(this,Bi,null),m(this,Fe)._recoverSubscriber(this,this._recover(m(this,Fe)));return}const r=await m(this,Fe).getNetwork();if(m(this,k_)||K(this,k_,r),m(this,k_).chainId!==r.chainId)throw new Error("chaid changed");if(m(this,Tc))return;const s=await m(this,Fe).send("eth_getFilterChanges",[e]);await this._emitResults(m(this,Fe),s)}catch(e){console.log("@TODO",e)}m(this,Fe).once("block",m(this,O_))},zw=function(){const t=m(this,Bi);t&&(K(this,Bi,null),t.then(e=>{m(this,Fe).destroyed||m(this,Fe).send("eth_uninstallFilter",[e])}))};class tz extends v0{constructor(e,r){super(e);rt(this,T_);K(this,T_,XP(r))}_recover(e){return new op(e,m(this,T_))}async _subscribe(e){return await e.send("eth_newFilter",[m(this,T_)])}async _emitResults(e,r){for(const s of r)e.emit(m(this,T_),e._wrapLog(s,e._network))}}T_=new WeakMap;class ez extends v0{async _subscribe(t){return await t.send("eth_newPendingTransactionFilter",[])}async _emitResults(t,e){for(const r of e)t.emit("pending",r)}}const rz="bigint,boolean,function,number,string,symbol".split(/,/g);function Pf(n){if(n==null||rz.indexOf(typeof n)>=0||typeof n.getAddress=="function")return n;if(Array.isArray(n))return n.map(Pf);if(typeof n=="object")return Object.keys(n).reduce((t,e)=>(t[e]=n[e],t),{});throw new Error(`should not happen: ${n} (${typeof n})`)}function nz(n){return new Promise(t=>{setTimeout(t,n)})}function so(n){return n&&n.toLowerCase()}function M0(n){return n&&typeof n.pollingInterval=="number"}const B0={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class lp extends ZP{constructor(e,r){super(e);$(this,"address");r=Vt(r),xt(this,{address:r})}connect(e){ht(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const r=Pf(e),s=[];if(r.from){const a=r.from;s.push((async()=>{const c=await Te(a,this.provider);W(c!=null&&c.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),r.from=c})())}else r.from=this.address;if(r.gasLimit==null&&s.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const a=r.to;s.push((async()=>{r.to=await Te(a,this.provider)})())}s.length&&await Promise.all(s);const _=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[_])}async sendTransaction(e){const r=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(e);return await new Promise((_,a)=>{const c=[1e3,100];let u=0;const l=async()=>{try{const f=await this.provider.getTransaction(s);if(f!=null){_(f.replaceableTransaction(r));return}}catch(f){if(Ee(f,"CANCELLED")||Ee(f,"BAD_DATA")||Ee(f,"NETWORK_ERROR")||Ee(f,"UNSUPPORTED_OPERATION")){f.info==null&&(f.info={}),f.info.sendTransactionHash=s,a(f);return}if(Ee(f,"INVALID_ARGUMENT")&&(u++,f.info==null&&(f.info={}),f.info.sendTransactionHash=s,u>10)){a(f);return}this.provider.emit("error",ue("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:f}))}this.provider._setTimeout(()=>{l()},c.pop()||4e3)};l()})}async signTransaction(e){const r=Pf(e);if(r.from){const _=await Te(r.from,this.provider);W(_!=null&&_.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),r.from=_}else r.from=this.address;const s=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[s])}async signMessage(e){const r=typeof e=="string"?Ci(e):e;return await this.provider.send("personal_sign",[Et(r),this.address.toLowerCase()])}async signTypedData(e,r,s){const _=Pf(s),a=await ru.resolveNames(e,r,_,async c=>{const u=await Te(c);return W(u!=null,"TypedData does not support null address","value",c),u});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(ru.getPayload(a.domain,r,a.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const r=typeof e=="string"?Ci(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),Et(r)])}}class iz extends HP{constructor(e,r){super(e,r);rt(this,Ou);rt(this,G_);rt(this,Gc);rt(this,es);rt(this,xi);rt(this,Nr);rt(this,dr);rt(this,Ve);K(this,Gc,1),K(this,G_,Object.assign({},B0,r||{})),K(this,es,[]),K(this,xi,null),K(this,dr,null),K(this,Ve,null);{let _=null;const a=new Promise(c=>{_=c});K(this,Nr,{promise:a,resolve:_})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(W(!s||e!=="any","staticNetwork cannot be used on special network 'any'","options",r),s&&e!=null&&K(this,dr,Fr.from(e))):s&&(W(e==null||s.matches(e),"staticNetwork MUST match network object","options",r),K(this,dr,s))}_getOption(e){return m(this,G_)[e]}get _network(){return ht(m(this,dr),"network is not available yet","NETWORK_ERROR"),m(this,dr)}async _perform(e){if(e.method==="call"||e.method==="estimateGas"){let s=e.transaction;if(s&&s.type!=null&&zt(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const _=await this.getFeeData();_.maxFeePerGas==null&&_.maxPriorityFeePerGas==null&&(e=Object.assign({},e,{transaction:Object.assign({},s,{type:void 0})}))}}const r=this.getRpcRequest(e);return r!=null?await this.send(r.method,r.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e)if(e===!0){if(m(this,dr))return m(this,dr)}else return e;return m(this,Ve)?await m(this,Ve):this.ready?(K(this,Ve,(async()=>{try{const r=Fr.from(zt(await this.send("eth_chainId",[])));return K(this,Ve,null),r}catch(r){throw K(this,Ve,null),r}})()),await m(this,Ve)):(K(this,Ve,(async()=>{const r={id:Gu(this,Gc)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let s;try{s=(await this._send(r))[0],K(this,Ve,null)}catch(_){throw K(this,Ve,null),this.emit("debug",{action:"receiveRpcError",error:_}),_}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return Fr.from(zt(s.result));throw this.getRpcError(r,s)})()),await m(this,Ve))}_start(){m(this,Nr)==null||m(this,Nr).resolve==null||(m(this,Nr).resolve(),K(this,Nr,null),(async()=>{for(;m(this,dr)==null&&!this.destroyed;)try{K(this,dr,await this._detectNetwork())}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ue("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await nz(1e3)}mt(this,Ou,vw).call(this)})())}async _waitUntilReady(){if(m(this,Nr)!=null)return await m(this,Nr).promise}_getSubscriber(e){return e.type==="pending"?new ez(this):e.type==="event"?this._getOption("polling")?new op(this,e.filter):new tz(this,e.filter):e.type==="orphan"&&e.filter.orphan==="drop-log"?new R0("orphan"):super._getSubscriber(e)}get ready(){return m(this,Nr)==null}getRpcTransaction(e){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(e[s]==null)return;let _=s;s==="gasLimit"&&(_="gas"),r[_]=j_(zt(e[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{e[s]!=null&&(r[s]=Et(e[s]))}),e.accessList&&(r.accessList=js(e.accessList)),e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes.map(s=>s.toLowerCase())),r}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[so(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[so(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[so(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[so(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&e.filter.address!=null&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(so):e.filter.address=so(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,r){const{method:s}=e,{error:_}=r;if(s==="eth_estimateGas"&&_.message){const u=_.message;if(!u.match(/revert/i)&&u.match(/insufficient funds/i))return ue("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:_}})}if(s==="eth_call"||s==="eth_estimateGas"){const u=pp(_),l=eo.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",e.params[0],u?u.data:null);return l.info={error:_,payload:e},l}const a=JSON.stringify(_z(_));if(typeof _.message=="string"&&_.message.match(/user denied|ethers-user-denied/i))return ue("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:e,error:_}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const u=e.params[0];if(a.match(/insufficient funds|base fee exceeds gas limit/i))return ue("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:u,info:{error:_}});if(a.match(/nonce/i)&&a.match(/too low/i))return ue("nonce has already been used","NONCE_EXPIRED",{transaction:u,info:{error:_}});if(a.match(/replacement transaction/i)&&a.match(/underpriced/i))return ue("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:u,info:{error:_}});if(a.match(/only replay-protected/i))return ue("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:u,info:{error:_}}})}let c=!!a.match(/the method .* does not exist/i);return c||_&&_.details&&_.details.startsWith("Unauthorized method:")&&(c=!0),c?ue("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:_,payload:e}}):ue("could not coalesce error","UNKNOWN_ERROR",{error:_,payload:e})}send(e,r){if(this.destroyed)return Promise.reject(ue("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const s=Gu(this,Gc)._++,_=new Promise((a,c)=>{m(this,es).push({resolve:a,reject:c,payload:{method:e,params:r,id:s,jsonrpc:"2.0"}})});return mt(this,Ou,vw).call(this),_}async getSigner(e){e==null&&(e=0);const r=this.send("eth_accounts",[]);if(typeof e=="number"){const _=await r;if(e>=_.length)throw new Error("no such account");return new lp(this,_[e])}const{accounts:s}=await Ie({network:this.getNetwork(),accounts:r});e=Vt(e);for(const _ of s)if(Vt(_)===e)return new lp(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new lp(this,r))}destroy(){m(this,xi)&&(clearTimeout(m(this,xi)),K(this,xi,null));for(const{payload:e,reject:r}of m(this,es))r(ue("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));K(this,es,[]),super.destroy()}}G_=new WeakMap,Gc=new WeakMap,es=new WeakMap,xi=new WeakMap,Nr=new WeakMap,dr=new WeakMap,Ve=new WeakMap,Ou=new WeakSet,vw=function(){if(m(this,xi))return;const e=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");K(this,xi,setTimeout(()=>{K(this,xi,null);const r=m(this,es);for(K(this,es,[]);r.length;){const s=[r.shift()];for(;r.length&&s.length!==m(this,G_).batchMaxCount;)if(s.push(r.shift()),JSON.stringify(s.map(a=>a.payload)).length>m(this,G_).batchMaxSize){r.unshift(s.pop());break}(async()=>{const _=s.length===1?s[0].payload:s.map(a=>a.payload);this.emit("debug",{action:"sendRpcPayload",payload:_});try{const a=await this._send(_);this.emit("debug",{action:"receiveRpcResult",result:a});for(const{resolve:c,reject:u,payload:l}of s){if(this.destroyed){u(ue("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const f=a.filter(w=>w.id===l.id)[0];if(f==null){const w=ue("missing response for request","BAD_DATA",{value:a,info:{payload:l}});this.emit("error",w),u(w);continue}if("error"in f){u(this.getRpcError(l,f));continue}c(f.result)}}catch(a){this.emit("debug",{action:"receiveRpcError",error:a});for(const{reject:c}of s)c(a)}})()}},e))};class x0 extends iz{constructor(e,r){super(e,r);rt(this,Cs);let s=this._getOption("pollingInterval");s==null&&(s=B0.pollingInterval),K(this,Cs,s)}_getSubscriber(e){const r=super._getSubscriber(e);return M0(r)&&(r.pollingInterval=m(this,Cs)),r}get pollingInterval(){return m(this,Cs)}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");K(this,Cs,e),this._forEachSubscriber(r=>{M0(r)&&(r.pollingInterval=m(this,Cs))})}}Cs=new WeakMap;class sz extends x0{constructor(e,r,s){e==null&&(e="http://localhost:8545");super(r,s);rt(this,Fc);typeof e=="string"?K(this,Fc,new Ii(e)):K(this,Fc,e.clone())}_getConnection(){return m(this,Fc).clone()}async send(e,r){return await this._start(),await super.send(e,r)}async _send(e){const r=this._getConnection();r.body=JSON.stringify(e),r.setHeader("content-type","application/json");const s=await r.send();s.assertOk();let _=s.bodyJson;return Array.isArray(_)||(_=[_]),_}}Fc=new WeakMap;function pp(n){if(n==null)return null;if(typeof n.message=="string"&&n.message.match(/revert/i)&&ee(n.data))return{message:n.message,data:n.data};if(typeof n=="object"){for(const t in n){const e=pp(n[t]);if(e)return e}return null}if(typeof n=="string")try{return pp(JSON.parse(n))}catch{}return null}function hp(n,t){if(n!=null){if(typeof n.message=="string"&&t.push(n.message),typeof n=="object")for(const e in n)hp(n[e],t);if(typeof n=="string")try{return hp(JSON.parse(n),t)}catch{}}}function _z(n){const t=[];return hp(n,t),t}class oz extends x0{constructor(e,r,s){const _=Object.assign({},s??{},{batchMaxCount:1});W(e&&e.request,"invalid EIP-1193 provider","ethereum",e);super(r,_);rt(this,Uc);K(this,Uc,async(a,c)=>{const u={method:a,params:c};this.emit("debug",{action:"sendEip1193Request",payload:u});try{const l=await e.request(u);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const f=new Error(l.message);throw f.code=l.code,f.data=l.data,f.payload=u,this.emit("debug",{action:"receiveEip1193Error",error:f}),f}})}async send(e,r){return await this._start(),await super.send(e,r)}async _send(e){W(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const r=await m(this,Uc).call(this,e.method,e.params||[]);return[{id:e.id,result:r}]}catch(r){return[{id:e.id,error:{code:r.code,data:r.data,message:r.message}}]}}getRpcError(e,r){switch(r=JSON.parse(JSON.stringify(r)),r.error.code||-1){case 4001:r.error.message=`ethers-user-denied: ${r.error.message}`;break;case 4200:r.error.message=`ethers-unsupported: ${r.error.message}`;break}return super.getRpcError(e,r)}async hasSigner(e){e==null&&(e=0);const r=await this.send("eth_accounts",[]);return typeof e=="number"?r.length>e:(e=e.toLowerCase(),r.filter(s=>s.toLowerCase()===e).length!==0)}async getSigner(e){if(e==null&&(e=0),!await this.hasSigner(e))try{await m(this,Uc).call(this,"eth_requestAccounts",[])}catch(r){const s=r.payload;throw this.getRpcError(s,{id:s.id,error:r})}return await super.getSigner(e)}}Uc=new WeakMap;var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zf={exports:{}};function az(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var I0={exports:{}},de=I0.exports={},Ur,Kr;function wp(){throw new Error("setTimeout has not been defined")}function dp(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ur=setTimeout:Ur=wp}catch{Ur=wp}try{typeof clearTimeout=="function"?Kr=clearTimeout:Kr=dp}catch{Kr=dp}})();function N0(n){if(Ur===setTimeout)return setTimeout(n,0);if((Ur===wp||!Ur)&&setTimeout)return Ur=setTimeout,setTimeout(n,0);try{return Ur(n,0)}catch{try{return Ur.call(null,n,0)}catch{return Ur.call(this,n,0)}}}function cz(n){if(Kr===clearTimeout)return clearTimeout(n);if((Kr===dp||!Kr)&&clearTimeout)return Kr=clearTimeout,clearTimeout(n);try{return Kr(n)}catch{try{return Kr.call(null,n)}catch{return Kr.call(this,n)}}}var Ki=[],_o=!1,Ws,vf=-1;function uz(){!_o||!Ws||(_o=!1,Ws.length?Ki=Ws.concat(Ki):vf=-1,Ki.length&&O0())}function O0(){if(!_o){var n=N0(uz);_o=!0;for(var t=Ki.length;t;){for(Ws=Ki,Ki=[];++vf<t;)Ws&&Ws[vf].run();vf=-1,t=Ki.length}Ws=null,_o=!1,cz(n)}}de.nextTick=function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];Ki.push(new k0(n,t)),Ki.length===1&&!_o&&N0(O0)};function k0(n,t){this.fun=n,this.array=t}k0.prototype.run=function(){this.fun.apply(null,this.array)},de.title="browser",de.browser=!0,de.env={},de.argv=[],de.version="",de.versions={};function Di(){}de.on=Di,de.addListener=Di,de.once=Di,de.off=Di,de.removeListener=Di,de.removeAllListeners=Di,de.emit=Di,de.prependListener=Di,de.prependOnceListener=Di,de.listeners=function(n){return[]},de.binding=function(n){throw new Error("process.binding is not supported")},de.cwd=function(){return"/"},de.chdir=function(n){throw new Error("process.chdir is not supported")},de.umask=function(){return 0};var fz=I0.exports;const Lt=az(fz);var Mf={exports:{}},T0;function G0(){if(T0)return Mf.exports;T0=1;var n=typeof Reflect=="object"?Reflect:null,t=n&&typeof n.apply=="function"?n.apply:function(F,D,j){return Function.prototype.apply.call(F,D,j)},e;n&&typeof n.ownKeys=="function"?e=n.ownKeys:Object.getOwnPropertySymbols?e=function(F){return Object.getOwnPropertyNames(F).concat(Object.getOwnPropertySymbols(F))}:e=function(F){return Object.getOwnPropertyNames(F)};function r(C){console&&console.warn&&console.warn(C)}var s=Number.isNaN||function(F){return F!==F};function _(){_.init.call(this)}Mf.exports=_,Mf.exports.once=P,_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var a=10;function c(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(C){if(typeof C!="number"||C<0||s(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");a=C}}),_.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_.prototype.setMaxListeners=function(F){if(typeof F!="number"||F<0||s(F))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+F+".");return this._maxListeners=F,this};function u(C){return C._maxListeners===void 0?_.defaultMaxListeners:C._maxListeners}_.prototype.getMaxListeners=function(){return u(this)},_.prototype.emit=function(F){for(var D=[],j=1;j<arguments.length;j++)D.push(arguments[j]);var L=F==="error",Z=this._events;if(Z!==void 0)L=L&&Z.error===void 0;else if(!L)return!1;if(L){var ot;if(D.length>0&&(ot=D[0]),ot instanceof Error)throw ot;var pt=new Error("Unhandled error."+(ot?" ("+ot.message+")":""));throw pt.context=ot,pt}var Y=Z[F];if(Y===void 0)return!1;if(typeof Y=="function")t(Y,this,D);else for(var At=Y.length,Bt=B(Y,At),j=0;j<At;++j)t(Bt[j],this,D);return!0};function l(C,F,D,j){var L,Z,ot;if(c(D),Z=C._events,Z===void 0?(Z=C._events=Object.create(null),C._eventsCount=0):(Z.newListener!==void 0&&(C.emit("newListener",F,D.listener?D.listener:D),Z=C._events),ot=Z[F]),ot===void 0)ot=Z[F]=D,++C._eventsCount;else if(typeof ot=="function"?ot=Z[F]=j?[D,ot]:[ot,D]:j?ot.unshift(D):ot.push(D),L=u(C),L>0&&ot.length>L&&!ot.warned){ot.warned=!0;var pt=new Error("Possible EventEmitter memory leak detected. "+ot.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");pt.name="MaxListenersExceededWarning",pt.emitter=C,pt.type=F,pt.count=ot.length,r(pt)}return C}_.prototype.addListener=function(F,D){return l(this,F,D,!1)},_.prototype.on=_.prototype.addListener,_.prototype.prependListener=function(F,D){return l(this,F,D,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(C,F,D){var j={fired:!1,wrapFn:void 0,target:C,type:F,listener:D},L=f.bind(j);return L.listener=D,j.wrapFn=L,L}_.prototype.once=function(F,D){return c(D),this.on(F,w(this,F,D)),this},_.prototype.prependOnceListener=function(F,D){return c(D),this.prependListener(F,w(this,F,D)),this},_.prototype.removeListener=function(F,D){var j,L,Z,ot,pt;if(c(D),L=this._events,L===void 0)return this;if(j=L[F],j===void 0)return this;if(j===D||j.listener===D)--this._eventsCount===0?this._events=Object.create(null):(delete L[F],L.removeListener&&this.emit("removeListener",F,j.listener||D));else if(typeof j!="function"){for(Z=-1,ot=j.length-1;ot>=0;ot--)if(j[ot]===D||j[ot].listener===D){pt=j[ot].listener,Z=ot;break}if(Z<0)return this;Z===0?j.shift():I(j,Z),j.length===1&&(L[F]=j[0]),L.removeListener!==void 0&&this.emit("removeListener",F,pt||D)}return this},_.prototype.off=_.prototype.removeListener,_.prototype.removeAllListeners=function(F){var D,j,L;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[F]),this;if(arguments.length===0){var Z=Object.keys(j),ot;for(L=0;L<Z.length;++L)ot=Z[L],ot!=="removeListener"&&this.removeAllListeners(ot);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(D=j[F],typeof D=="function")this.removeListener(F,D);else if(D!==void 0)for(L=D.length-1;L>=0;L--)this.removeListener(F,D[L]);return this};function y(C,F,D){var j=C._events;if(j===void 0)return[];var L=j[F];return L===void 0?[]:typeof L=="function"?D?[L.listener||L]:[L]:D?G(L):B(L,L.length)}_.prototype.listeners=function(F){return y(this,F,!0)},_.prototype.rawListeners=function(F){return y(this,F,!1)},_.listenerCount=function(C,F){return typeof C.listenerCount=="function"?C.listenerCount(F):M.call(C,F)},_.prototype.listenerCount=M;function M(C){var F=this._events;if(F!==void 0){var D=F[C];if(typeof D=="function")return 1;if(D!==void 0)return D.length}return 0}_.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]};function B(C,F){for(var D=new Array(F),j=0;j<F;++j)D[j]=C[j];return D}function I(C,F){for(;F+1<C.length;F++)C[F]=C[F+1];C.pop()}function G(C){for(var F=new Array(C.length),D=0;D<F.length;++D)F[D]=C[D].listener||C[D];return F}function P(C,F){return new Promise(function(D,j){function L(ot){C.removeListener(F,Z),j(ot)}function Z(){typeof C.removeListener=="function"&&C.removeListener("error",L),D([].slice.call(arguments))}N(C,F,Z,{once:!0}),F!=="error"&&v(C,L,{once:!0})})}function v(C,F,D){typeof C.on=="function"&&N(C,"error",F,D)}function N(C,F,D,j){if(typeof C.on=="function")j.once?C.once(F,D):C.on(F,D);else if(typeof C.addEventListener=="function")C.addEventListener(F,function L(Z){j.once&&C.removeEventListener(F,L),D(Z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}return Mf.exports}var gp,F0;function U0(){return F0||(F0=1,gp=G0().EventEmitter),gp}var bp={},K0;function Bf(){return K0||(K0=1,function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},e={};e.byteLength=f,e.toByteArray=y,e.fromByteArray=I;for(var r=[],s=[],_=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],s[a.charCodeAt(c)]=c;s[45]=62,s[95]=63;function l(v){var N=v.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=v.indexOf("=");C===-1&&(C=N);var F=C===N?0:4-C%4;return[C,F]}function f(v){var N=l(v),C=N[0],F=N[1];return(C+F)*3/4-F}function w(v,N,C){return(N+C)*3/4-C}function y(v){var N,C=l(v),F=C[0],D=C[1],j=new _(w(v,F,D)),L=0,Z=D>0?F-4:F,ot;for(ot=0;ot<Z;ot+=4)N=s[v.charCodeAt(ot)]<<18|s[v.charCodeAt(ot+1)]<<12|s[v.charCodeAt(ot+2)]<<6|s[v.charCodeAt(ot+3)],j[L++]=N>>16&255,j[L++]=N>>8&255,j[L++]=N&255;return D===2&&(N=s[v.charCodeAt(ot)]<<2|s[v.charCodeAt(ot+1)]>>4,j[L++]=N&255),D===1&&(N=s[v.charCodeAt(ot)]<<10|s[v.charCodeAt(ot+1)]<<4|s[v.charCodeAt(ot+2)]>>2,j[L++]=N>>8&255,j[L++]=N&255),j}function M(v){return r[v>>18&63]+r[v>>12&63]+r[v>>6&63]+r[v&63]}function B(v,N,C){for(var F,D=[],j=N;j<C;j+=3)F=(v[j]<<16&16711680)+(v[j+1]<<8&65280)+(v[j+2]&255),D.push(M(F));return D.join("")}function I(v){for(var N,C=v.length,F=C%3,D=[],j=16383,L=0,Z=C-F;L<Z;L+=j)D.push(B(v,L,L+j>Z?Z:L+j));return F===1?(N=v[C-1],D.push(r[N>>2]+r[N<<4&63]+"==")):F===2&&(N=(v[C-2]<<8)+v[C-1],D.push(r[N>>10]+r[N>>4&63]+r[N<<2&63]+"=")),D.join("")}var G={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */G.read=function(v,N,C,F,D){var j,L,Z=D*8-F-1,ot=(1<<Z)-1,pt=ot>>1,Y=-7,At=C?D-1:0,Bt=C?-1:1,ft=v[N+At];for(At+=Bt,j=ft&(1<<-Y)-1,ft>>=-Y,Y+=Z;Y>0;j=j*256+v[N+At],At+=Bt,Y-=8);for(L=j&(1<<-Y)-1,j>>=-Y,Y+=F;Y>0;L=L*256+v[N+At],At+=Bt,Y-=8);if(j===0)j=1-pt;else{if(j===ot)return L?NaN:(ft?-1:1)*(1/0);L=L+Math.pow(2,F),j=j-pt}return(ft?-1:1)*L*Math.pow(2,j-F)},G.write=function(v,N,C,F,D,j){var L,Z,ot,pt=j*8-D-1,Y=(1<<pt)-1,At=Y>>1,Bt=D===23?Math.pow(2,-24)-Math.pow(2,-77):0,ft=F?0:j-1,wt=F?1:-1,Pt=N<0||N===0&&1/N<0?1:0;for(N=Math.abs(N),isNaN(N)||N===1/0?(Z=isNaN(N)?1:0,L=Y):(L=Math.floor(Math.log(N)/Math.LN2),N*(ot=Math.pow(2,-L))<1&&(L--,ot*=2),L+At>=1?N+=Bt/ot:N+=Bt*Math.pow(2,1-At),N*ot>=2&&(L++,ot/=2),L+At>=Y?(Z=0,L=Y):L+At>=1?(Z=(N*ot-1)*Math.pow(2,D),L=L+At):(Z=N*Math.pow(2,At-1)*Math.pow(2,D),L=0));D>=8;v[C+ft]=Z&255,ft+=wt,Z/=256,D-=8);for(L=L<<D|Z,pt+=D;pt>0;v[C+ft]=L&255,ft+=wt,L/=256,pt-=8);v[C+ft-wt]|=Pt*128};/*!
|
|
7
7
|
* The buffer module from node.js, for the browser.
|
|
8
8
|
*
|
|
9
9
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/(function(v){const N=e,C=G,F=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=Y,v.SlowBuffer=it,v.INSPECT_MAX_BYTES=50;const D=2147483647;v.kMaxLength=D;const{Uint8Array:j,ArrayBuffer:L,SharedArrayBuffer:Z}=globalThis;Y.TYPED_ARRAY_SUPPORT=ot(),!Y.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 ot(){try{const z=new j(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,j.prototype),Object.setPrototypeOf(z,h),z.foo()===42}catch{return!1}}Object.defineProperty(Y.prototype,"parent",{enumerable:!0,get:function(){if(Y.isBuffer(this))return this.buffer}}),Object.defineProperty(Y.prototype,"offset",{enumerable:!0,get:function(){if(Y.isBuffer(this))return this.byteOffset}});function pt(z){if(z>D)throw new RangeError('The value "'+z+'" is invalid for option "size"');const h=new j(z);return Object.setPrototypeOf(h,Y.prototype),h}function Y(z,h,g){if(typeof z=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return wt(z)}return At(z,h,g)}Y.poolSize=8192;function At(z,h,g){if(typeof z=="string")return Pt(z,h);if(L.isView(z))return Mt(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Qe(z,L)||z&&Qe(z.buffer,L)||typeof Z<"u"&&(Qe(z,Z)||z&&Qe(z.buffer,Z)))return It(z,h,g);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=z.valueOf&&z.valueOf();if(T!=null&&T!==z)return Y.from(T,h,g);const Q=jt(z);if(Q)return Q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return Y.from(z[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}Y.from=function(z,h,g){return At(z,h,g)},Object.setPrototypeOf(Y.prototype,j.prototype),Object.setPrototypeOf(Y,j);function Bt(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function ft(z,h,g){return Bt(z),z<=0?pt(z):h!==void 0?typeof g=="string"?pt(z).fill(h,g):pt(z).fill(h):pt(z)}Y.alloc=function(z,h,g){return ft(z,h,g)};function wt(z){return Bt(z),pt(z<0?0:J(z)|0)}Y.allocUnsafe=function(z){return wt(z)},Y.allocUnsafeSlow=function(z){return wt(z)};function Pt(z,h){if((typeof h!="string"||h==="")&&(h="utf8"),!Y.isEncoding(h))throw new TypeError("Unknown encoding: "+h);const g=st(z,h)|0;let T=pt(g);const Q=T.write(z,h);return Q!==g&&(T=T.slice(0,Q)),T}function Ct(z){const h=z.length<0?0:J(z.length)|0,g=pt(h);for(let T=0;T<h;T+=1)g[T]=z[T]&255;return g}function Mt(z){if(Qe(z,j)){const h=new j(z);return It(h.buffer,h.byteOffset,h.byteLength)}return Ct(z)}function It(z,h,g){if(h<0||z.byteLength<h)throw new RangeError('"offset" is outside of buffer bounds');if(z.byteLength<h+(g||0))throw new RangeError('"length" is outside of buffer bounds');let T;return h===void 0&&g===void 0?T=new j(z):g===void 0?T=new j(z,h):T=new j(z,h,g),Object.setPrototypeOf(T,Y.prototype),T}function jt(z){if(Y.isBuffer(z)){const h=J(z.length)|0,g=pt(h);return g.length===0||z.copy(g,0,0,h),g}if(z.length!==void 0)return typeof z.length!="number"||T_(z.length)?pt(0):Ct(z);if(z.type==="Buffer"&&Array.isArray(z.data))return Ct(z.data)}function J(z){if(z>=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return z|0}function it(z){return+z!=z&&(z=0),Y.alloc(+z)}Y.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==Y.prototype},Y.compare=function(h,g){if(Qe(h,j)&&(h=Y.from(h,h.offset,h.byteLength)),Qe(g,j)&&(g=Y.from(g,g.offset,g.byteLength)),!Y.isBuffer(h)||!Y.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let T=h.length,Q=g.length;for(let et=0,lt=Math.min(T,Q);et<lt;++et)if(h[et]!==g[et]){T=h[et],Q=g[et];break}return T<Q?-1:Q<T?1:0},Y.isEncoding=function(h){switch(String(h).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}},Y.concat=function(h,g){if(!Array.isArray(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return Y.alloc(0);let T;if(g===void 0)for(g=0,T=0;T<h.length;++T)g+=h[T].length;const Q=Y.allocUnsafe(g);let et=0;for(T=0;T<h.length;++T){let lt=h[T];if(Qe(lt,j))et+lt.length>Q.length?(Y.isBuffer(lt)||(lt=Y.from(lt)),lt.copy(Q,et)):j.prototype.set.call(Q,lt,et);else if(Y.isBuffer(lt))lt.copy(Q,et);else throw new TypeError('"list" argument must be an Array of Buffers');et+=lt.length}return Q};function st(z,h){if(Y.isBuffer(z))return z.length;if(L.isView(z)||Qe(z,L))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);const g=z.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&g===0)return 0;let Q=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return Jt(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return Ht(z).length;default:if(Q)return T?-1:Jt(z).length;h=(""+h).toLowerCase(),Q=!0}}Y.byteLength=st;function St(z,h,g){let T=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(z||(z="utf8");;)switch(z){case"hex":return Re(this,h,g);case"utf8":case"utf-8":return Ot(this,h,g);case"ascii":return _e(this,h,g);case"latin1":case"binary":return at(this,h,g);case"base64":return bt(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,h,g);default:if(T)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),T=!0}}Y.prototype._isBuffer=!0;function H(z,h,g){const T=z[h];z[h]=z[g],z[g]=T}Y.prototype.swap16=function(){const h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<h;g+=2)H(this,g,g+1);return this},Y.prototype.swap32=function(){const h=this.length;if(h%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<h;g+=4)H(this,g,g+3),H(this,g+1,g+2);return this},Y.prototype.swap64=function(){const h=this.length;if(h%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<h;g+=8)H(this,g,g+7),H(this,g+1,g+6),H(this,g+2,g+5),H(this,g+3,g+4);return this},Y.prototype.toString=function(){const h=this.length;return h===0?"":arguments.length===0?Ot(this,0,h):St.apply(this,arguments)},Y.prototype.toLocaleString=Y.prototype.toString,Y.prototype.equals=function(h){if(!Y.isBuffer(h))throw new TypeError("Argument must be a Buffer");return this===h?!0:Y.compare(this,h)===0},Y.prototype.inspect=function(){let h="";const g=v.INSPECT_MAX_BYTES;return h=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(h+=" ... "),"<Buffer "+h+">"},F&&(Y.prototype[F]=Y.prototype.inspect),Y.prototype.compare=function(h,g,T,Q,et){if(Qe(h,j)&&(h=Y.from(h,h.offset,h.byteLength)),!Y.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(g===void 0&&(g=0),T===void 0&&(T=h?h.length:0),Q===void 0&&(Q=0),et===void 0&&(et=this.length),g<0||T>h.length||Q<0||et>this.length)throw new RangeError("out of range index");if(Q>=et&&g>=T)return 0;if(Q>=et)return-1;if(g>=T)return 1;if(g>>>=0,T>>>=0,Q>>>=0,et>>>=0,this===h)return 0;let lt=et-Q,Tt=T-g;const ne=Math.min(lt,Tt),Xt=this.slice(Q,et),ie=h.slice(g,T);for(let Wt=0;Wt<ne;++Wt)if(Xt[Wt]!==ie[Wt]){lt=Xt[Wt],Tt=ie[Wt];break}return lt<Tt?-1:Tt<lt?1:0};function V(z,h,g,T,Q){if(z.length===0)return-1;if(typeof g=="string"?(T=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,T_(g)&&(g=Q?0:z.length-1),g<0&&(g=z.length+g),g>=z.length){if(Q)return-1;g=z.length-1}else if(g<0)if(Q)g=0;else return-1;if(typeof h=="string"&&(h=Y.from(h,T)),Y.isBuffer(h))return h.length===0?-1:tt(z,h,g,T,Q);if(typeof h=="number")return h=h&255,typeof j.prototype.indexOf=="function"?Q?j.prototype.indexOf.call(z,h,g):j.prototype.lastIndexOf.call(z,h,g):tt(z,[h],g,T,Q);throw new TypeError("val must be string, number or Buffer")}function tt(z,h,g,T,Q){let et=1,lt=z.length,Tt=h.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(z.length<2||h.length<2)return-1;et=2,lt/=2,Tt/=2,g/=2}function ne(ie,Wt){return et===1?ie[Wt]:ie.readUInt16BE(Wt*et)}let Xt;if(Q){let ie=-1;for(Xt=g;Xt<lt;Xt++)if(ne(z,Xt)===ne(h,ie===-1?0:Xt-ie)){if(ie===-1&&(ie=Xt),Xt-ie+1===Tt)return ie*et}else ie!==-1&&(Xt-=Xt-ie),ie=-1}else for(g+Tt>lt&&(g=lt-Tt),Xt=g;Xt>=0;Xt--){let ie=!0;for(let Wt=0;Wt<Tt;Wt++)if(ne(z,Xt+Wt)!==ne(h,Wt)){ie=!1;break}if(ie)return Xt}return-1}Y.prototype.includes=function(h,g,T){return this.indexOf(h,g,T)!==-1},Y.prototype.indexOf=function(h,g,T){return V(this,h,g,T,!0)},Y.prototype.lastIndexOf=function(h,g,T){return V(this,h,g,T,!1)};function ut(z,h,g,T){g=Number(g)||0;const Q=z.length-g;T?(T=Number(T),T>Q&&(T=Q)):T=Q;const et=h.length;T>et/2&&(T=et/2);let lt;for(lt=0;lt<T;++lt){const Tt=parseInt(h.substr(lt*2,2),16);if(T_(Tt))return lt;z[g+lt]=Tt}return lt}function dt(z,h,g,T){return Is(Jt(h,z.length-g),z,g,T)}function x(z,h,g,T){return Is($t(h),z,g,T)}function O(z,h,g,T){return Is(Ht(h),z,g,T)}function nt(z,h,g,T){return Is(Zt(h,z.length-g),z,g,T)}Y.prototype.write=function(h,g,T,Q){if(g===void 0)Q="utf8",T=this.length,g=0;else if(T===void 0&&typeof g=="string")Q=g,T=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(T)?(T=T>>>0,Q===void 0&&(Q="utf8")):(Q=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const et=this.length-g;if((T===void 0||T>et)&&(T=et),h.length>0&&(T<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");let lt=!1;for(;;)switch(Q){case"hex":return ut(this,h,g,T);case"utf8":case"utf-8":return dt(this,h,g,T);case"ascii":case"latin1":case"binary":return x(this,h,g,T);case"base64":return O(this,h,g,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,h,g,T);default:if(lt)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),lt=!0}},Y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function bt(z,h,g){return h===0&&g===z.length?N.fromByteArray(z):N.fromByteArray(z.slice(h,g))}function Ot(z,h,g){g=Math.min(z.length,g);const T=[];let Q=h;for(;Q<g;){const et=z[Q];let lt=null,Tt=et>239?4:et>223?3:et>191?2:1;if(Q+Tt<=g){let ne,Xt,ie,Wt;switch(Tt){case 1:et<128&&(lt=et);break;case 2:ne=z[Q+1],(ne&192)===128&&(Wt=(et&31)<<6|ne&63,Wt>127&&(lt=Wt));break;case 3:ne=z[Q+1],Xt=z[Q+2],(ne&192)===128&&(Xt&192)===128&&(Wt=(et&15)<<12|(ne&63)<<6|Xt&63,Wt>2047&&(Wt<55296||Wt>57343)&&(lt=Wt));break;case 4:ne=z[Q+1],Xt=z[Q+2],ie=z[Q+3],(ne&192)===128&&(Xt&192)===128&&(ie&192)===128&&(Wt=(et&15)<<18|(ne&63)<<12|(Xt&63)<<6|ie&63,Wt>65535&&Wt<1114112&&(lt=Wt))}}lt===null?(lt=65533,Tt=1):lt>65535&&(lt-=65536,T.push(lt>>>10&1023|55296),lt=56320|lt&1023),T.push(lt),Q+=Tt}return Nt(T)}const vt=4096;function Nt(z){const h=z.length;if(h<=vt)return String.fromCharCode.apply(String,z);let g="",T=0;for(;T<h;)g+=String.fromCharCode.apply(String,z.slice(T,T+=vt));return g}function _e(z,h,g){let T="";g=Math.min(z.length,g);for(let Q=h;Q<g;++Q)T+=String.fromCharCode(z[Q]&127);return T}function at(z,h,g){let T="";g=Math.min(z.length,g);for(let Q=h;Q<g;++Q)T+=String.fromCharCode(z[Q]);return T}function Re(z,h,g){const T=z.length;(!h||h<0)&&(h=0),(!g||g<0||g>T)&&(g=T);let Q="";for(let et=h;et<g;++et)Q+=ku[z[et]];return Q}function Ye(z,h,g){const T=z.slice(h,g);let Q="";for(let et=0;et<T.length-1;et+=2)Q+=String.fromCharCode(T[et]+T[et+1]*256);return Q}Y.prototype.slice=function(h,g){const T=this.length;h=~~h,g=g===void 0?T:~~g,h<0?(h+=T,h<0&&(h=0)):h>T&&(h=T),g<0?(g+=T,g<0&&(g=0)):g>T&&(g=T),g<h&&(g=h);const Q=this.subarray(h,g);return Object.setPrototypeOf(Q,Y.prototype),Q};function re(z,h,g){if(z%1!==0||z<0)throw new RangeError("offset is not uint");if(z+h>g)throw new RangeError("Trying to access beyond buffer length")}Y.prototype.readUintLE=Y.prototype.readUIntLE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=this[h],et=1,lt=0;for(;++lt<g&&(et*=256);)Q+=this[h+lt]*et;return Q},Y.prototype.readUintBE=Y.prototype.readUIntBE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=this[h+--g],et=1;for(;g>0&&(et*=256);)Q+=this[h+--g]*et;return Q},Y.prototype.readUint8=Y.prototype.readUInt8=function(h,g){return h=h>>>0,g||re(h,1,this.length),this[h]},Y.prototype.readUint16LE=Y.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||re(h,2,this.length),this[h]|this[h+1]<<8},Y.prototype.readUint16BE=Y.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||re(h,2,this.length),this[h]<<8|this[h+1]},Y.prototype.readUint32LE=Y.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||re(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},Y.prototype.readUint32BE=Y.prototype.readUInt32BE=function(h,g){return h=h>>>0,g||re(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},Y.prototype.readBigUInt64LE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,et=this[++h]+this[++h]*2**8+this[++h]*2**16+T*2**24;return BigInt(Q)+(BigInt(et)<<BigInt(32))}),Y.prototype.readBigUInt64BE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=g*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],et=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+T;return(BigInt(Q)<<BigInt(32))+BigInt(et)}),Y.prototype.readIntLE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=this[h],et=1,lt=0;for(;++lt<g&&(et*=256);)Q+=this[h+lt]*et;return et*=128,Q>=et&&(Q-=Math.pow(2,8*g)),Q},Y.prototype.readIntBE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=g,et=1,lt=this[h+--Q];for(;Q>0&&(et*=256);)lt+=this[h+--Q]*et;return et*=128,lt>=et&&(lt-=Math.pow(2,8*g)),lt},Y.prototype.readInt8=function(h,g){return h=h>>>0,g||re(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},Y.prototype.readInt16LE=function(h,g){h=h>>>0,g||re(h,2,this.length);const T=this[h]|this[h+1]<<8;return T&32768?T|4294901760:T},Y.prototype.readInt16BE=function(h,g){h=h>>>0,g||re(h,2,this.length);const T=this[h+1]|this[h]<<8;return T&32768?T|4294901760:T},Y.prototype.readInt32LE=function(h,g){return h=h>>>0,g||re(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},Y.prototype.readInt32BE=function(h,g){return h=h>>>0,g||re(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},Y.prototype.readBigInt64LE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(T<<24);return(BigInt(Q)<<BigInt(32))+BigInt(g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24)}),Y.prototype.readBigInt64BE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=(g<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(Q)<<BigInt(32))+BigInt(this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+T)}),Y.prototype.readFloatLE=function(h,g){return h=h>>>0,g||re(h,4,this.length),C.read(this,h,!0,23,4)},Y.prototype.readFloatBE=function(h,g){return h=h>>>0,g||re(h,4,this.length),C.read(this,h,!1,23,4)},Y.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||re(h,8,this.length),C.read(this,h,!0,52,8)},Y.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||re(h,8,this.length),C.read(this,h,!1,52,8)};function oe(z,h,g,T,Q,et){if(!Y.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>Q||h<et)throw new RangeError('"value" argument is out of bounds');if(g+T>z.length)throw new RangeError("Index out of range")}Y.prototype.writeUintLE=Y.prototype.writeUIntLE=function(h,g,T,Q){if(h=+h,g=g>>>0,T=T>>>0,!Q){const Tt=Math.pow(2,8*T)-1;oe(this,h,g,T,Tt,0)}let et=1,lt=0;for(this[g]=h&255;++lt<T&&(et*=256);)this[g+lt]=h/et&255;return g+T},Y.prototype.writeUintBE=Y.prototype.writeUIntBE=function(h,g,T,Q){if(h=+h,g=g>>>0,T=T>>>0,!Q){const Tt=Math.pow(2,8*T)-1;oe(this,h,g,T,Tt,0)}let et=T-1,lt=1;for(this[g+et]=h&255;--et>=0&&(lt*=256);)this[g+et]=h/lt&255;return g+T},Y.prototype.writeUint8=Y.prototype.writeUInt8=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,1,255,0),this[g]=h&255,g+1},Y.prototype.writeUint16LE=Y.prototype.writeUInt16LE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},Y.prototype.writeUint16BE=Y.prototype.writeUInt16BE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},Y.prototype.writeUint32LE=Y.prototype.writeUInt32LE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},Y.prototype.writeUint32BE=Y.prototype.writeUInt32BE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function He(z,h,g,T,Q){k(h,T,Q,z,g,7);let et=Number(h&BigInt(4294967295));z[g++]=et,et=et>>8,z[g++]=et,et=et>>8,z[g++]=et,et=et>>8,z[g++]=et;let lt=Number(h>>BigInt(32)&BigInt(4294967295));return z[g++]=lt,lt=lt>>8,z[g++]=lt,lt=lt>>8,z[g++]=lt,lt=lt>>8,z[g++]=lt,g}function ye(z,h,g,T,Q){k(h,T,Q,z,g,7);let et=Number(h&BigInt(4294967295));z[g+7]=et,et=et>>8,z[g+6]=et,et=et>>8,z[g+5]=et,et=et>>8,z[g+4]=et;let lt=Number(h>>BigInt(32)&BigInt(4294967295));return z[g+3]=lt,lt=lt>>8,z[g+2]=lt,lt=lt>>8,z[g+1]=lt,lt=lt>>8,z[g]=lt,g+8}Y.prototype.writeBigUInt64LE=br(function(h,g=0){return He(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),Y.prototype.writeBigUInt64BE=br(function(h,g=0){return ye(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),Y.prototype.writeIntLE=function(h,g,T,Q){if(h=+h,g=g>>>0,!Q){const ne=Math.pow(2,8*T-1);oe(this,h,g,T,ne-1,-ne)}let et=0,lt=1,Tt=0;for(this[g]=h&255;++et<T&&(lt*=256);)h<0&&Tt===0&&this[g+et-1]!==0&&(Tt=1),this[g+et]=(h/lt>>0)-Tt&255;return g+T},Y.prototype.writeIntBE=function(h,g,T,Q){if(h=+h,g=g>>>0,!Q){const ne=Math.pow(2,8*T-1);oe(this,h,g,T,ne-1,-ne)}let et=T-1,lt=1,Tt=0;for(this[g+et]=h&255;--et>=0&&(lt*=256);)h<0&&Tt===0&&this[g+et+1]!==0&&(Tt=1),this[g+et]=(h/lt>>0)-Tt&255;return g+T},Y.prototype.writeInt8=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},Y.prototype.writeInt16LE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},Y.prototype.writeInt16BE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},Y.prototype.writeInt32LE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},Y.prototype.writeInt32BE=function(h,g,T){return h=+h,g=g>>>0,T||oe(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},Y.prototype.writeBigInt64LE=br(function(h,g=0){return He(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Y.prototype.writeBigInt64BE=br(function(h,g=0){return ye(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ue(z,h,g,T,Q,et){if(g+T>z.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function qe(z,h,g,T,Q){return h=+h,g=g>>>0,Q||Ue(z,h,g,4),C.write(z,h,g,T,23,4),g+4}Y.prototype.writeFloatLE=function(h,g,T){return qe(this,h,g,!0,T)},Y.prototype.writeFloatBE=function(h,g,T){return qe(this,h,g,!1,T)};function ge(z,h,g,T,Q){return h=+h,g=g>>>0,Q||Ue(z,h,g,8),C.write(z,h,g,T,52,8),g+8}Y.prototype.writeDoubleLE=function(h,g,T){return ge(this,h,g,!0,T)},Y.prototype.writeDoubleBE=function(h,g,T){return ge(this,h,g,!1,T)},Y.prototype.copy=function(h,g,T,Q){if(!Y.isBuffer(h))throw new TypeError("argument should be a Buffer");if(T||(T=0),!Q&&Q!==0&&(Q=this.length),g>=h.length&&(g=h.length),g||(g=0),Q>0&&Q<T&&(Q=T),Q===T||h.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),h.length-g<Q-T&&(Q=h.length-g+T);const et=Q-T;return this===h&&typeof j.prototype.copyWithin=="function"?this.copyWithin(g,T,Q):j.prototype.set.call(h,this.subarray(T,Q),g),et},Y.prototype.fill=function(h,g,T,Q){if(typeof h=="string"){if(typeof g=="string"?(Q=g,g=0,T=this.length):typeof T=="string"&&(Q=T,T=this.length),Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!Y.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(h.length===1){const lt=h.charCodeAt(0);(Q==="utf8"&<<128||Q==="latin1")&&(h=lt)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if(g<0||this.length<g||this.length<T)throw new RangeError("Out of range index");if(T<=g)return this;g=g>>>0,T=T===void 0?this.length:T>>>0,h||(h=0);let et;if(typeof h=="number")for(et=g;et<T;++et)this[et]=h;else{const lt=Y.isBuffer(h)?h:Y.from(h,Q),Tt=lt.length;if(Tt===0)throw new TypeError('The value "'+h+'" is invalid for argument "value"');for(et=0;et<T-g;++et)this[et+g]=lt[et%Tt]}return this};const gr={};function E(z,h,g){gr[z]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:h.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${z}]`,this.stack,delete this.name}get code(){return z}set code(Q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Q,writable:!0})}toString(){return`${this.name} [${z}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(z){return z?`${z} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(z,h){return`The "${z}" argument must be of type number. Received type ${typeof h}`},TypeError),E("ERR_OUT_OF_RANGE",function(z,h,g){let T=`The value of "${z}" is out of range.`,Q=g;return Number.isInteger(g)&&Math.abs(g)>2**32?Q=p(String(g)):typeof g=="bigint"&&(Q=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(Q=p(Q)),Q+="n"),T+=` It must be ${h}. Received ${Q}`,T},RangeError);function p(z){let h="",g=z.length;const T=z[0]==="-"?1:0;for(;g>=T+4;g-=3)h=`_${z.slice(g-3,g)}${h}`;return`${z.slice(0,g)}${h}`}function d(z,h,g){q(h,"offset"),(z[h]===void 0||z[h+g]===void 0)&&X(h,z.length-(g+1))}function k(z,h,g,T,Q,et){if(z>g||z<h){const lt=typeof h=="bigint"?"n":"";let Tt;throw h===0||h===BigInt(0)?Tt=`>= 0${lt} and < 2${lt} ** ${(et+1)*8}${lt}`:Tt=`>= -(2${lt} ** ${(et+1)*8-1}${lt}) and < 2 ** ${(et+1)*8-1}${lt}`,new gr.ERR_OUT_OF_RANGE("value",Tt,z)}d(T,Q,et)}function q(z,h){if(typeof z!="number")throw new gr.ERR_INVALID_ARG_TYPE(h,"number",z)}function X(z,h,g){throw Math.floor(z)!==z?(q(z,g),new gr.ERR_OUT_OF_RANGE("offset","an integer",z)):h<0?new gr.ERR_BUFFER_OUT_OF_BOUNDS:new gr.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${h}`,z)}const ct=/[^+/0-9A-Za-z-_]/g;function kt(z){if(z=z.split("=")[0],z=z.trim().replace(ct,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function Jt(z,h){h=h||1/0;let g;const T=z.length;let Q=null;const et=[];for(let lt=0;lt<T;++lt){if(g=z.charCodeAt(lt),g>55295&&g<57344){if(!Q){if(g>56319){(h-=3)>-1&&et.push(239,191,189);continue}else if(lt+1===T){(h-=3)>-1&&et.push(239,191,189);continue}Q=g;continue}if(g<56320){(h-=3)>-1&&et.push(239,191,189),Q=g;continue}g=(Q-55296<<10|g-56320)+65536}else Q&&(h-=3)>-1&&et.push(239,191,189);if(Q=null,g<128){if((h-=1)<0)break;et.push(g)}else if(g<2048){if((h-=2)<0)break;et.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;et.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;et.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return et}function $t(z){const h=[];for(let g=0;g<z.length;++g)h.push(z.charCodeAt(g)&255);return h}function Zt(z,h){let g,T,Q;const et=[];for(let lt=0;lt<z.length&&!((h-=2)<0);++lt)g=z.charCodeAt(lt),T=g>>8,Q=g%256,et.push(Q),et.push(T);return et}function Ht(z){return N.toByteArray(kt(z))}function Is(z,h,g,T){let Q;for(Q=0;Q<T&&!(Q+g>=h.length||Q>=z.length);++Q)h[Q+g]=z[Q];return Q}function Qe(z,h){return z instanceof h||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===h.name}function T_(z){return z!==z}const ku=function(){const z="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){const T=g*16;for(let Q=0;Q<16;++Q)h[T+Q]=z[g]+z[Q]}return h}();function br(z){return typeof BigInt>"u"?Tu:z}function Tu(){throw new Error("BigInt not supported")}})(t);const P=t.Buffer;n.Blob=t.Blob,n.BlobOptions=t.BlobOptions,n.Buffer=t.Buffer,n.File=t.File,n.FileOptions=t.FileOptions,n.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,n.SlowBuffer=t.SlowBuffer,n.TranscodeEncoding=t.TranscodeEncoding,n.atob=t.atob,n.btoa=t.btoa,n.constants=t.constants,n.default=P,n.isAscii=t.isAscii,n.isUtf8=t.isUtf8,n.kMaxLength=t.kMaxLength,n.kStringMaxLength=t.kStringMaxLength,n.resolveObjectURL=t.resolveObjectURL,n.transcode=t.transcode}(bp)),bp}var yp={},Ap={},mp,D0;function L0(){return D0||(D0=1,mp=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var s=42;t[e]=s;for(var _ in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,e);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),mp}var Sp,j0;function Rp(){if(j0)return Sp;j0=1;var n=L0();return Sp=function(){return n()&&!!Symbol.toStringTag},Sp}var Ep,V0;function lz(){return V0||(V0=1,Ep=Object),Ep}var Pp,Y0;function pz(){return Y0||(Y0=1,Pp=Error),Pp}var zp,H0;function hz(){return H0||(H0=1,zp=EvalError),zp}var vp,q0;function wz(){return q0||(q0=1,vp=RangeError),vp}var Mp,Q0;function dz(){return Q0||(Q0=1,Mp=ReferenceError),Mp}var Bp,W0;function J0(){return W0||(W0=1,Bp=SyntaxError),Bp}var xp,$0;function xf(){return $0||($0=1,xp=TypeError),xp}var Cp,Z0;function gz(){return Z0||(Z0=1,Cp=URIError),Cp}var Ip,X0;function bz(){return X0||(X0=1,Ip=Math.abs),Ip}var Np,t1;function yz(){return t1||(t1=1,Np=Math.floor),Np}var Op,e1;function Az(){return e1||(e1=1,Op=Math.max),Op}var kp,r1;function mz(){return r1||(r1=1,kp=Math.min),kp}var Tp,n1;function Sz(){return n1||(n1=1,Tp=Math.pow),Tp}var Gp,i1;function Rz(){return i1||(i1=1,Gp=Object.getOwnPropertyDescriptor),Gp}var Fp,s1;function au(){if(s1)return Fp;s1=1;var n=Rz();if(n)try{n([],"length")}catch{n=null}return Fp=n,Fp}var Up,_1;function Cf(){if(_1)return Up;_1=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Up=n,Up}var Kp,o1;function Ez(){if(o1)return Kp;o1=1;var n=typeof Symbol<"u"&&Symbol,t=L0();return Kp=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Kp}var Dp,a1;function Pz(){if(a1)return Dp;a1=1;var n="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,r="[object Function]",s=function(u,l){for(var f=[],w=0;w<u.length;w+=1)f[w]=u[w];for(var y=0;y<l.length;y+=1)f[y+u.length]=l[y];return f},_=function(u,l){for(var f=[],w=l,y=0;w<u.length;w+=1,y+=1)f[y]=u[w];return f},a=function(c,u){for(var l="",f=0;f<c.length;f+=1)l+=c[f],f+1<c.length&&(l+=u);return l};return Dp=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==r)throw new TypeError(n+l);for(var f=_(arguments,1),w,y=function(){if(this instanceof w){var P=l.apply(this,s(f,arguments));return Object(P)===P?P:this}return l.apply(u,s(f,arguments))},M=e(0,l.length-f.length),B=[],I=0;I<M;I++)B[I]="$"+I;if(w=Function("binder","return function ("+a(B,",")+"){ return binder.apply(this,arguments); }")(y),l.prototype){var G=function(){};G.prototype=l.prototype,w.prototype=new G,G.prototype=null}return w},Dp}var Lp,c1;function cu(){if(c1)return Lp;c1=1;var n=Pz();return Lp=Function.prototype.bind||n,Lp}var jp,u1;function Vp(){return u1||(u1=1,jp=Function.prototype.call),jp}var Yp,f1;function Hp(){return f1||(f1=1,Yp=Function.prototype.apply),Yp}var qp,l1;function zz(){return l1||(l1=1,qp=typeof Reflect<"u"&&Reflect&&Reflect.apply),qp}var Qp,p1;function h1(){if(p1)return Qp;p1=1;var n=cu(),t=Hp(),e=Vp(),r=zz();return Qp=r||n.call(e,t),Qp}var Wp,w1;function d1(){if(w1)return Wp;w1=1;var n=cu(),t=xf(),e=Vp(),r=h1();return Wp=function(_){if(_.length<1||typeof _[0]!="function")throw new t("a function is required");return r(n,e,_)},Wp}var Jp,g1;function vz(){if(g1)return Jp;g1=1;var n=d1(),t=au(),e=[].__proto__===Array.prototype,r=e&&t&&t(Object.prototype,"__proto__"),s=Object,_=s.getPrototypeOf;return Jp=r&&typeof r.get=="function"?n([r.get]):typeof _=="function"?function(c){return _(c==null?c:s(c))}:!1,Jp}var $p,b1;function Mz(){if(b1)return $p;b1=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=cu();return $p=e.call(n,t),$p}var Zp,y1;function Xp(){if(y1)return Zp;y1=1;var n,t=lz(),e=pz(),r=hz(),s=wz(),_=dz(),a=J0(),c=xf(),u=gz(),l=bz(),f=yz(),w=Az(),y=mz(),M=Sz(),B=Function,I=function(H){try{return B('"use strict"; return ('+H+").constructor;")()}catch{}},G=au(),P=Cf(),v=function(){throw new c},N=G?function(){try{return arguments.callee,v}catch{try{return G(arguments,"callee").get}catch{return v}}}():v,C=Ez()(),F=vz(),D=typeof Reflect=="function"&&Reflect.getPrototypeOf||t.getPrototypeOf||F,j=Hp(),L=Vp(),Z={},ot=typeof Uint8Array>"u"||!D?n:D(Uint8Array),pt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&D?D([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":B,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&D?D(D([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!D?n:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":G,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":s,"%ReferenceError%":_,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!D?n:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&D?D(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":N,"%TypedArray%":ot,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":j,"%Object.defineProperty%":P,"%Math.abs%":l,"%Math.floor%":f,"%Math.max%":w,"%Math.min%":y,"%Math.pow%":M};if(D)try{null.error}catch(H){var Y=D(D(H));pt["%Error.prototype%"]=Y}var At=function H(V){var tt;if(V==="%AsyncFunction%")tt=I("async function () {}");else if(V==="%GeneratorFunction%")tt=I("function* () {}");else if(V==="%AsyncGeneratorFunction%")tt=I("async function* () {}");else if(V==="%AsyncGenerator%"){var ut=H("%AsyncGeneratorFunction%");ut&&(tt=ut.prototype)}else if(V==="%AsyncIteratorPrototype%"){var dt=H("%AsyncGenerator%");dt&&D&&(tt=D(dt.prototype))}return pt[V]=tt,tt},Bt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ft=cu(),wt=Mz(),Pt=ft.call(L,Array.prototype.concat),Ct=ft.call(j,Array.prototype.splice),Mt=ft.call(L,String.prototype.replace),It=ft.call(L,String.prototype.slice),jt=ft.call(L,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,it=/\\(\\)?/g,st=function(V){var tt=It(V,0,1),ut=It(V,-1);if(tt==="%"&&ut!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(ut==="%"&&tt!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var dt=[];return Mt(V,J,function(x,O,nt,bt){dt[dt.length]=nt?Mt(bt,it,"$1"):O||x}),dt},St=function(V,tt){var ut=V,dt;if(wt(Bt,ut)&&(dt=Bt[ut],ut="%"+dt[0]+"%"),wt(pt,ut)){var x=pt[ut];if(x===Z&&(x=At(ut)),typeof x>"u"&&!tt)throw new c("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:dt,name:ut,value:x}}throw new a("intrinsic "+V+" does not exist!")};return Zp=function(V,tt){if(typeof V!="string"||V.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof tt!="boolean")throw new c('"allowMissing" argument must be a boolean');if(jt(/^%?[^%]*%?$/,V)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ut=st(V),dt=ut.length>0?ut[0]:"",x=St("%"+dt+"%",tt),O=x.name,nt=x.value,bt=!1,Ot=x.alias;Ot&&(dt=Ot[0],Ct(ut,Pt([0,1],Ot)));for(var vt=1,Nt=!0;vt<ut.length;vt+=1){var _e=ut[vt],at=It(_e,0,1),Re=It(_e,-1);if((at==='"'||at==="'"||at==="`"||Re==='"'||Re==="'"||Re==="`")&&at!==Re)throw new a("property names with quotes must have matching quotes");if((_e==="constructor"||!Nt)&&(bt=!0),dt+="."+_e,O="%"+dt+"%",wt(pt,O))nt=pt[O];else if(nt!=null){if(!(_e in nt)){if(!tt)throw new c("base intrinsic for "+V+" exists, but the property is not available.");return}if(G&&vt+1>=ut.length){var Ye=G(nt,_e);Nt=!!Ye,Nt&&"get"in Ye&&!("originalValue"in Ye.get)?nt=Ye.get:nt=nt[_e]}else Nt=wt(nt,_e),nt=nt[_e];Nt&&!bt&&(pt[O]=nt)}}return nt},Zp}var th={exports:{}},eh,A1;function Bz(){if(A1)return eh;A1=1;var n=Cf(),t=J0(),e=xf(),r=au();return eh=function(_,a,c){if(!_||typeof _!="object"&&typeof _!="function")throw new e("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,y=!!r&&r(_,a);if(n)n(_,a,{configurable:f===null&&y?y.configurable:!f,enumerable:u===null&&y?y.enumerable:!u,value:c,writable:l===null&&y?y.writable:!l});else if(w||!u&&!l&&!f)_[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},eh}var rh,m1;function xz(){if(m1)return rh;m1=1;var n=Cf(),t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},rh=t,rh}var nh,S1;function Cz(){if(S1)return nh;S1=1;var n=Xp(),t=Bz(),e=xz()(),r=au(),s=xf(),_=n("%Math.floor%");return nh=function(c,u){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||_(u)!==u)throw new s("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],f=!0,w=!0;if("length"in c&&r){var y=r(c,"length");y&&!y.configurable&&(f=!1),y&&!y.writable&&(w=!1)}return(f||w||!l)&&(e?t(c,"length",u,!0,!0):t(c,"length",u)),c},nh}var ih,R1;function Iz(){if(R1)return ih;R1=1;var n=cu(),t=Hp(),e=h1();return ih=function(){return e(n,t,arguments)},ih}var E1;function sh(){return E1||(E1=1,function(n){var t=Cz(),e=Cf(),r=d1(),s=Iz();n.exports=function(a){var c=r(arguments),u=a.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},e?e(n.exports,"apply",{value:s}):n.exports.apply=s}(th)),th.exports}var _h,P1;function Nz(){if(P1)return _h;P1=1;var n=Xp(),t=sh(),e=t(n("String.prototype.indexOf"));return _h=function(s,_){var a=n(s,!!_);return typeof a=="function"&&e(s,".prototype.")>-1?t(a):a},_h}var oh,z1;function Oz(){if(z1)return oh;z1=1;var n=Rp()(),t=Nz(),e=t("Object.prototype.toString"),r=function(c){return n&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:e(c)==="[object Arguments]"},s=function(c){return r(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&e(c)!=="[object Array]"&&"callee"in c&&e(c.callee)==="[object Function]"},_=function(){return r(arguments)}();return r.isLegacyArguments=s,oh=_?r:s,oh}var ah,v1;function kz(){if(v1)return ah;v1=1;var n=Object.prototype.toString,t=Function.prototype.toString,e=/^\s*(?:function)?\*/,r=Rp()(),s=Object.getPrototypeOf,_=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},a;return ah=function(u){if(typeof u!="function")return!1;if(e.test(t.call(u)))return!0;if(!r){var l=n.call(u);return l==="[object GeneratorFunction]"}if(!s)return!1;if(typeof a>"u"){var f=_();a=f?s(f):!1}return s(u)===a},ah}var ch,M1;function Tz(){if(M1)return ch;M1=1;var n=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,e)}catch(v){v!==r&&(t=null)}else t=null;var s=/^\s*class\b/,_=function(N){try{var C=n.call(N);return s.test(C)}catch{return!1}},a=function(N){try{return _(N)?!1:(n.call(N),!0)}catch{return!1}},c=Object.prototype.toString,u="[object Object]",l="[object Function]",f="[object GeneratorFunction]",w="[object HTMLAllCollection]",y="[object HTML document.all class]",M="[object HTMLCollection]",B=typeof Symbol=="function"&&!!Symbol.toStringTag,I=!(0 in[,]),G=function(){return!1};if(typeof document=="object"){var P=document.all;c.call(P)===c.call(document.all)&&(G=function(N){if((I||!N)&&(typeof N>"u"||typeof N=="object"))try{var C=c.call(N);return(C===w||C===y||C===M||C===u)&&N("")==null}catch{}return!1})}return ch=t?function(N){if(G(N))return!0;if(!N||typeof N!="function"&&typeof N!="object")return!1;try{t(N,null,e)}catch(C){if(C!==r)return!1}return!_(N)&&a(N)}:function(N){if(G(N))return!0;if(!N||typeof N!="function"&&typeof N!="object")return!1;if(B)return a(N);if(_(N))return!1;var C=c.call(N);return C!==l&&C!==f&&!/^\[object HTML/.test(C)?!1:a(N)},ch}var uh,B1;function Gz(){if(B1)return uh;B1=1;var n=Tz(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=function(u,l,f){for(var w=0,y=u.length;w<y;w++)e.call(u,w)&&(f==null?l(u[w],w,u):l.call(f,u[w],w,u))},s=function(u,l,f){for(var w=0,y=u.length;w<y;w++)f==null?l(u.charAt(w),w,u):l.call(f,u.charAt(w),w,u)},_=function(u,l,f){for(var w in u)e.call(u,w)&&(f==null?l(u[w],w,u):l.call(f,u[w],w,u))},a=function(u,l,f){if(!n(l))throw new TypeError("iterator must be a function");var w;arguments.length>=3&&(w=f),t.call(u)==="[object Array]"?r(u,l,w):typeof u=="string"?s(u,l,w):_(u,l,w)};return uh=a,uh}var fh,x1;function Fz(){return x1||(x1=1,fh=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),fh}var lh,C1;function Uz(){if(C1)return lh;C1=1;var n=Fz(),t=typeof globalThis>"u"?us:globalThis;return lh=function(){for(var r=[],s=0;s<n.length;s++)typeof t[n[s]]=="function"&&(r[r.length]=n[s]);return r},lh}var ph,I1;function Kz(){if(I1)return ph;I1=1;var n=Xp(),t=sh(),e=t(n("String.prototype.indexOf"));return ph=function(s,_){var a=n(s,!!_);return typeof a=="function"&&e(s,".prototype.")>-1?t(a):a},ph}var hh,N1;function O1(){if(N1)return hh;N1=1;var n=Gz(),t=Uz(),e=sh(),r=Kz(),s=au(),_=r("Object.prototype.toString"),a=Rp()(),c=typeof globalThis>"u"?us:globalThis,u=t(),l=r("String.prototype.slice"),f=Object.getPrototypeOf,w=r("Array.prototype.indexOf",!0)||function(G,P){for(var v=0;v<G.length;v+=1)if(G[v]===P)return v;return-1},y={__proto__:null};a&&s&&f?n(u,function(I){var G=new c[I];if(Symbol.toStringTag in G){var P=f(G),v=s(P,Symbol.toStringTag);if(!v){var N=f(P);v=s(N,Symbol.toStringTag)}y["$"+I]=e(v.get)}}):n(u,function(I){var G=new c[I],P=G.slice||G.set;P&&(y["$"+I]=e(P))});var M=function(G){var P=!1;return n(y,function(v,N){if(!P)try{"$"+v(G)===N&&(P=l(N,1))}catch{}}),P},B=function(G){var P=!1;return n(y,function(v,N){if(!P)try{v(G),P=l(N,1)}catch{}}),P};return hh=function(G){if(!G||typeof G!="object")return!1;if(!a){var P=l(_(G),8,-1);return w(u,P)>-1?P:P!=="Object"?!1:B(G)}return s?M(G):null},hh}var wh,k1;function Dz(){if(k1)return wh;k1=1;var n=O1();return wh=function(e){return!!n(e)},wh}var T1;function Lz(){return T1||(T1=1,function(n){var t=Oz(),e=kz(),r=O1(),s=Dz();function _(at){return at.call.bind(at)}var a=typeof BigInt<"u",c=typeof Symbol<"u",u=_(Object.prototype.toString),l=_(Number.prototype.valueOf),f=_(String.prototype.valueOf),w=_(Boolean.prototype.valueOf);if(a)var y=_(BigInt.prototype.valueOf);if(c)var M=_(Symbol.prototype.valueOf);function B(at,Re){if(typeof at!="object")return!1;try{return Re(at),!0}catch{return!1}}n.isArgumentsObject=t,n.isGeneratorFunction=e,n.isTypedArray=s;function I(at){return typeof Promise<"u"&&at instanceof Promise||at!==null&&typeof at=="object"&&typeof at.then=="function"&&typeof at.catch=="function"}n.isPromise=I;function G(at){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(at):s(at)||it(at)}n.isArrayBufferView=G;function P(at){return r(at)==="Uint8Array"}n.isUint8Array=P;function v(at){return r(at)==="Uint8ClampedArray"}n.isUint8ClampedArray=v;function N(at){return r(at)==="Uint16Array"}n.isUint16Array=N;function C(at){return r(at)==="Uint32Array"}n.isUint32Array=C;function F(at){return r(at)==="Int8Array"}n.isInt8Array=F;function D(at){return r(at)==="Int16Array"}n.isInt16Array=D;function j(at){return r(at)==="Int32Array"}n.isInt32Array=j;function L(at){return r(at)==="Float32Array"}n.isFloat32Array=L;function Z(at){return r(at)==="Float64Array"}n.isFloat64Array=Z;function ot(at){return r(at)==="BigInt64Array"}n.isBigInt64Array=ot;function pt(at){return r(at)==="BigUint64Array"}n.isBigUint64Array=pt;function Y(at){return u(at)==="[object Map]"}Y.working=typeof Map<"u"&&Y(new Map);function At(at){return typeof Map>"u"?!1:Y.working?Y(at):at instanceof Map}n.isMap=At;function Bt(at){return u(at)==="[object Set]"}Bt.working=typeof Set<"u"&&Bt(new Set);function ft(at){return typeof Set>"u"?!1:Bt.working?Bt(at):at instanceof Set}n.isSet=ft;function wt(at){return u(at)==="[object WeakMap]"}wt.working=typeof WeakMap<"u"&&wt(new WeakMap);function Pt(at){return typeof WeakMap>"u"?!1:wt.working?wt(at):at instanceof WeakMap}n.isWeakMap=Pt;function Ct(at){return u(at)==="[object WeakSet]"}Ct.working=typeof WeakSet<"u"&&Ct(new WeakSet);function Mt(at){return Ct(at)}n.isWeakSet=Mt;function It(at){return u(at)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function jt(at){return typeof ArrayBuffer>"u"?!1:It.working?It(at):at instanceof ArrayBuffer}n.isArrayBuffer=jt;function J(at){return u(at)==="[object DataView]"}J.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&J(new DataView(new ArrayBuffer(1),0,1));function it(at){return typeof DataView>"u"?!1:J.working?J(at):at instanceof DataView}n.isDataView=it;var st=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function St(at){return u(at)==="[object SharedArrayBuffer]"}function H(at){return typeof st>"u"?!1:(typeof St.working>"u"&&(St.working=St(new st)),St.working?St(at):at instanceof st)}n.isSharedArrayBuffer=H;function V(at){return u(at)==="[object AsyncFunction]"}n.isAsyncFunction=V;function tt(at){return u(at)==="[object Map Iterator]"}n.isMapIterator=tt;function ut(at){return u(at)==="[object Set Iterator]"}n.isSetIterator=ut;function dt(at){return u(at)==="[object Generator]"}n.isGeneratorObject=dt;function x(at){return u(at)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=x;function O(at){return B(at,l)}n.isNumberObject=O;function nt(at){return B(at,f)}n.isStringObject=nt;function bt(at){return B(at,w)}n.isBooleanObject=bt;function Ot(at){return a&&B(at,y)}n.isBigIntObject=Ot;function vt(at){return c&&B(at,M)}n.isSymbolObject=vt;function Nt(at){return O(at)||nt(at)||bt(at)||Ot(at)||vt(at)}n.isBoxedPrimitive=Nt;function _e(at){return typeof Uint8Array<"u"&&(jt(at)||H(at))}n.isAnyArrayBuffer=_e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(at){Object.defineProperty(n,at,{enumerable:!1,value:function(){throw new Error(at+" is not supported in userland")}})})}(Ap)),Ap}var dh,G1;function jz(){return G1||(G1=1,dh=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),dh}var If={exports:{}},F1;function so(){return F1||(F1=1,typeof Object.create=="function"?If.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:If.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),If.exports}var U1;function K1(){return U1||(U1=1,function(n){var t=Object.getOwnPropertyDescriptors||function(it){for(var st=Object.keys(it),St={},H=0;H<st.length;H++)St[st[H]]=Object.getOwnPropertyDescriptor(it,st[H]);return St},e=/%[sdj%]/g;n.format=function(J){if(!F(J)){for(var it=[],st=0;st<arguments.length;st++)it.push(a(arguments[st]));return it.join(" ")}for(var st=1,St=arguments,H=St.length,V=String(J).replace(e,function(ut){if(ut==="%%")return"%";if(st>=H)return ut;switch(ut){case"%s":return String(St[st++]);case"%d":return Number(St[st++]);case"%j":try{return JSON.stringify(St[st++])}catch{return"[Circular]"}default:return ut}}),tt=St[st];st<H;tt=St[++st])v(tt)||!Z(tt)?V+=" "+tt:V+=" "+a(tt);return V},n.deprecate=function(J,it){if(typeof Lt<"u"&&Lt.noDeprecation===!0)return J;if(typeof Lt>"u")return function(){return n.deprecate(J,it).apply(this,arguments)};var st=!1;function St(){if(!st){if(Lt.throwDeprecation)throw new Error(it);Lt.traceDeprecation?console.trace(it):console.error(it),st=!0}return J.apply(this,arguments)}return St};var r={},s=/^$/;if(Lt.env.NODE_DEBUG){var _=Lt.env.NODE_DEBUG;_=_.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+_+"$","i")}n.debuglog=function(J){if(J=J.toUpperCase(),!r[J])if(s.test(J)){var it=Lt.pid;r[J]=function(){var st=n.format.apply(n,arguments);console.error("%s %d: %s",J,it,st)}}else r[J]=function(){};return r[J]};function a(J,it){var st={seen:[],stylize:u};return arguments.length>=3&&(st.depth=arguments[2]),arguments.length>=4&&(st.colors=arguments[3]),P(it)?st.showHidden=it:it&&n._extend(st,it),j(st.showHidden)&&(st.showHidden=!1),j(st.depth)&&(st.depth=2),j(st.colors)&&(st.colors=!1),j(st.customInspect)&&(st.customInspect=!0),st.colors&&(st.stylize=c),f(st,J,st.depth)}n.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(J,it){var st=a.styles[it];return st?"\x1B["+a.colors[st][0]+"m"+J+"\x1B["+a.colors[st][1]+"m":J}function u(J,it){return J}function l(J){var it={};return J.forEach(function(st,St){it[st]=!0}),it}function f(J,it,st){if(J.customInspect&&it&&Y(it.inspect)&&it.inspect!==n.inspect&&!(it.constructor&&it.constructor.prototype===it)){var St=it.inspect(st,J);return F(St)||(St=f(J,St,st)),St}var H=w(J,it);if(H)return H;var V=Object.keys(it),tt=l(V);if(J.showHidden&&(V=Object.getOwnPropertyNames(it)),pt(it)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return y(it);if(V.length===0){if(Y(it)){var ut=it.name?": "+it.name:"";return J.stylize("[Function"+ut+"]","special")}if(L(it))return J.stylize(RegExp.prototype.toString.call(it),"regexp");if(ot(it))return J.stylize(Date.prototype.toString.call(it),"date");if(pt(it))return y(it)}var dt="",x=!1,O=["{","}"];if(G(it)&&(x=!0,O=["[","]"]),Y(it)){var nt=it.name?": "+it.name:"";dt=" [Function"+nt+"]"}if(L(it)&&(dt=" "+RegExp.prototype.toString.call(it)),ot(it)&&(dt=" "+Date.prototype.toUTCString.call(it)),pt(it)&&(dt=" "+y(it)),V.length===0&&(!x||it.length==0))return O[0]+dt+O[1];if(st<0)return L(it)?J.stylize(RegExp.prototype.toString.call(it),"regexp"):J.stylize("[Object]","special");J.seen.push(it);var bt;return x?bt=M(J,it,st,tt,V):bt=V.map(function(Ot){return B(J,it,st,tt,Ot,x)}),J.seen.pop(),I(bt,dt,O)}function w(J,it){if(j(it))return J.stylize("undefined","undefined");if(F(it)){var st="'"+JSON.stringify(it).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(st,"string")}if(C(it))return J.stylize(""+it,"number");if(P(it))return J.stylize(""+it,"boolean");if(v(it))return J.stylize("null","null")}function y(J){return"["+Error.prototype.toString.call(J)+"]"}function M(J,it,st,St,H){for(var V=[],tt=0,ut=it.length;tt<ut;++tt)Ct(it,String(tt))?V.push(B(J,it,st,St,String(tt),!0)):V.push("");return H.forEach(function(dt){dt.match(/^\d+$/)||V.push(B(J,it,st,St,dt,!0))}),V}function B(J,it,st,St,H,V){var tt,ut,dt;if(dt=Object.getOwnPropertyDescriptor(it,H)||{value:it[H]},dt.get?dt.set?ut=J.stylize("[Getter/Setter]","special"):ut=J.stylize("[Getter]","special"):dt.set&&(ut=J.stylize("[Setter]","special")),Ct(St,H)||(tt="["+H+"]"),ut||(J.seen.indexOf(dt.value)<0?(v(st)?ut=f(J,dt.value,null):ut=f(J,dt.value,st-1),ut.indexOf(`
|
|
11
|
+
*/(function(v){const N=e,C=G,F=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;v.Buffer=Y,v.SlowBuffer=it,v.INSPECT_MAX_BYTES=50;const D=2147483647;v.kMaxLength=D;const{Uint8Array:j,ArrayBuffer:L,SharedArrayBuffer:Z}=globalThis;Y.TYPED_ARRAY_SUPPORT=ot(),!Y.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 ot(){try{const z=new j(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,j.prototype),Object.setPrototypeOf(z,h),z.foo()===42}catch{return!1}}Object.defineProperty(Y.prototype,"parent",{enumerable:!0,get:function(){if(Y.isBuffer(this))return this.buffer}}),Object.defineProperty(Y.prototype,"offset",{enumerable:!0,get:function(){if(Y.isBuffer(this))return this.byteOffset}});function pt(z){if(z>D)throw new RangeError('The value "'+z+'" is invalid for option "size"');const h=new j(z);return Object.setPrototypeOf(h,Y.prototype),h}function Y(z,h,g){if(typeof z=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return wt(z)}return At(z,h,g)}Y.poolSize=8192;function At(z,h,g){if(typeof z=="string")return Pt(z,h);if(L.isView(z))return Mt(z);if(z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Qe(z,L)||z&&Qe(z.buffer,L)||typeof Z<"u"&&(Qe(z,Z)||z&&Qe(z.buffer,Z)))return It(z,h,g);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=z.valueOf&&z.valueOf();if(T!=null&&T!==z)return Y.from(T,h,g);const Q=jt(z);if(Q)return Q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return Y.from(z[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}Y.from=function(z,h,g){return At(z,h,g)},Object.setPrototypeOf(Y.prototype,j.prototype),Object.setPrototypeOf(Y,j);function Bt(z){if(typeof z!="number")throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function ft(z,h,g){return Bt(z),z<=0?pt(z):h!==void 0?typeof g=="string"?pt(z).fill(h,g):pt(z).fill(h):pt(z)}Y.alloc=function(z,h,g){return ft(z,h,g)};function wt(z){return Bt(z),pt(z<0?0:J(z)|0)}Y.allocUnsafe=function(z){return wt(z)},Y.allocUnsafeSlow=function(z){return wt(z)};function Pt(z,h){if((typeof h!="string"||h==="")&&(h="utf8"),!Y.isEncoding(h))throw new TypeError("Unknown encoding: "+h);const g=_t(z,h)|0;let T=pt(g);const Q=T.write(z,h);return Q!==g&&(T=T.slice(0,Q)),T}function Ct(z){const h=z.length<0?0:J(z.length)|0,g=pt(h);for(let T=0;T<h;T+=1)g[T]=z[T]&255;return g}function Mt(z){if(Qe(z,j)){const h=new j(z);return It(h.buffer,h.byteOffset,h.byteLength)}return Ct(z)}function It(z,h,g){if(h<0||z.byteLength<h)throw new RangeError('"offset" is outside of buffer bounds');if(z.byteLength<h+(g||0))throw new RangeError('"length" is outside of buffer bounds');let T;return h===void 0&&g===void 0?T=new j(z):g===void 0?T=new j(z,h):T=new j(z,h,g),Object.setPrototypeOf(T,Y.prototype),T}function jt(z){if(Y.isBuffer(z)){const h=J(z.length)|0,g=pt(h);return g.length===0||z.copy(g,0,0,h),g}if(z.length!==void 0)return typeof z.length!="number"||F_(z.length)?pt(0):Ct(z);if(z.type==="Buffer"&&Array.isArray(z.data))return Ct(z.data)}function J(z){if(z>=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return z|0}function it(z){return+z!=z&&(z=0),Y.alloc(+z)}Y.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==Y.prototype},Y.compare=function(h,g){if(Qe(h,j)&&(h=Y.from(h,h.offset,h.byteLength)),Qe(g,j)&&(g=Y.from(g,g.offset,g.byteLength)),!Y.isBuffer(h)||!Y.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let T=h.length,Q=g.length;for(let et=0,lt=Math.min(T,Q);et<lt;++et)if(h[et]!==g[et]){T=h[et],Q=g[et];break}return T<Q?-1:Q<T?1:0},Y.isEncoding=function(h){switch(String(h).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}},Y.concat=function(h,g){if(!Array.isArray(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return Y.alloc(0);let T;if(g===void 0)for(g=0,T=0;T<h.length;++T)g+=h[T].length;const Q=Y.allocUnsafe(g);let et=0;for(T=0;T<h.length;++T){let lt=h[T];if(Qe(lt,j))et+lt.length>Q.length?(Y.isBuffer(lt)||(lt=Y.from(lt)),lt.copy(Q,et)):j.prototype.set.call(Q,lt,et);else if(Y.isBuffer(lt))lt.copy(Q,et);else throw new TypeError('"list" argument must be an Array of Buffers');et+=lt.length}return Q};function _t(z,h){if(Y.isBuffer(z))return z.length;if(L.isView(z)||Qe(z,L))return z.byteLength;if(typeof z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);const g=z.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&g===0)return 0;let Q=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return Jt(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return Ht(z).length;default:if(Q)return T?-1:Jt(z).length;h=(""+h).toLowerCase(),Q=!0}}Y.byteLength=_t;function St(z,h,g){let T=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(z||(z="utf8");;)switch(z){case"hex":return Re(this,h,g);case"utf8":case"utf-8":return Ot(this,h,g);case"ascii":return _e(this,h,g);case"latin1":case"binary":return at(this,h,g);case"base64":return bt(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,h,g);default:if(T)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),T=!0}}Y.prototype._isBuffer=!0;function H(z,h,g){const T=z[h];z[h]=z[g],z[g]=T}Y.prototype.swap16=function(){const h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<h;g+=2)H(this,g,g+1);return this},Y.prototype.swap32=function(){const h=this.length;if(h%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<h;g+=4)H(this,g,g+3),H(this,g+1,g+2);return this},Y.prototype.swap64=function(){const h=this.length;if(h%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<h;g+=8)H(this,g,g+7),H(this,g+1,g+6),H(this,g+2,g+5),H(this,g+3,g+4);return this},Y.prototype.toString=function(){const h=this.length;return h===0?"":arguments.length===0?Ot(this,0,h):St.apply(this,arguments)},Y.prototype.toLocaleString=Y.prototype.toString,Y.prototype.equals=function(h){if(!Y.isBuffer(h))throw new TypeError("Argument must be a Buffer");return this===h?!0:Y.compare(this,h)===0},Y.prototype.inspect=function(){let h="";const g=v.INSPECT_MAX_BYTES;return h=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(h+=" ... "),"<Buffer "+h+">"},F&&(Y.prototype[F]=Y.prototype.inspect),Y.prototype.compare=function(h,g,T,Q,et){if(Qe(h,j)&&(h=Y.from(h,h.offset,h.byteLength)),!Y.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(g===void 0&&(g=0),T===void 0&&(T=h?h.length:0),Q===void 0&&(Q=0),et===void 0&&(et=this.length),g<0||T>h.length||Q<0||et>this.length)throw new RangeError("out of range index");if(Q>=et&&g>=T)return 0;if(Q>=et)return-1;if(g>=T)return 1;if(g>>>=0,T>>>=0,Q>>>=0,et>>>=0,this===h)return 0;let lt=et-Q,Tt=T-g;const ne=Math.min(lt,Tt),Xt=this.slice(Q,et),ie=h.slice(g,T);for(let Wt=0;Wt<ne;++Wt)if(Xt[Wt]!==ie[Wt]){lt=Xt[Wt],Tt=ie[Wt];break}return lt<Tt?-1:Tt<lt?1:0};function V(z,h,g,T,Q){if(z.length===0)return-1;if(typeof g=="string"?(T=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,F_(g)&&(g=Q?0:z.length-1),g<0&&(g=z.length+g),g>=z.length){if(Q)return-1;g=z.length-1}else if(g<0)if(Q)g=0;else return-1;if(typeof h=="string"&&(h=Y.from(h,T)),Y.isBuffer(h))return h.length===0?-1:tt(z,h,g,T,Q);if(typeof h=="number")return h=h&255,typeof j.prototype.indexOf=="function"?Q?j.prototype.indexOf.call(z,h,g):j.prototype.lastIndexOf.call(z,h,g):tt(z,[h],g,T,Q);throw new TypeError("val must be string, number or Buffer")}function tt(z,h,g,T,Q){let et=1,lt=z.length,Tt=h.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(z.length<2||h.length<2)return-1;et=2,lt/=2,Tt/=2,g/=2}function ne(ie,Wt){return et===1?ie[Wt]:ie.readUInt16BE(Wt*et)}let Xt;if(Q){let ie=-1;for(Xt=g;Xt<lt;Xt++)if(ne(z,Xt)===ne(h,ie===-1?0:Xt-ie)){if(ie===-1&&(ie=Xt),Xt-ie+1===Tt)return ie*et}else ie!==-1&&(Xt-=Xt-ie),ie=-1}else for(g+Tt>lt&&(g=lt-Tt),Xt=g;Xt>=0;Xt--){let ie=!0;for(let Wt=0;Wt<Tt;Wt++)if(ne(z,Xt+Wt)!==ne(h,Wt)){ie=!1;break}if(ie)return Xt}return-1}Y.prototype.includes=function(h,g,T){return this.indexOf(h,g,T)!==-1},Y.prototype.indexOf=function(h,g,T){return V(this,h,g,T,!0)},Y.prototype.lastIndexOf=function(h,g,T){return V(this,h,g,T,!1)};function ut(z,h,g,T){g=Number(g)||0;const Q=z.length-g;T?(T=Number(T),T>Q&&(T=Q)):T=Q;const et=h.length;T>et/2&&(T=et/2);let lt;for(lt=0;lt<T;++lt){const Tt=parseInt(h.substr(lt*2,2),16);if(F_(Tt))return lt;z[g+lt]=Tt}return lt}function dt(z,h,g,T){return Is(Jt(h,z.length-g),z,g,T)}function x(z,h,g,T){return Is($t(h),z,g,T)}function O(z,h,g,T){return Is(Ht(h),z,g,T)}function nt(z,h,g,T){return Is(Zt(h,z.length-g),z,g,T)}Y.prototype.write=function(h,g,T,Q){if(g===void 0)Q="utf8",T=this.length,g=0;else if(T===void 0&&typeof g=="string")Q=g,T=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(T)?(T=T>>>0,Q===void 0&&(Q="utf8")):(Q=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const et=this.length-g;if((T===void 0||T>et)&&(T=et),h.length>0&&(T<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");let lt=!1;for(;;)switch(Q){case"hex":return ut(this,h,g,T);case"utf8":case"utf-8":return dt(this,h,g,T);case"ascii":case"latin1":case"binary":return x(this,h,g,T);case"base64":return O(this,h,g,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,h,g,T);default:if(lt)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),lt=!0}},Y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function bt(z,h,g){return h===0&&g===z.length?N.fromByteArray(z):N.fromByteArray(z.slice(h,g))}function Ot(z,h,g){g=Math.min(z.length,g);const T=[];let Q=h;for(;Q<g;){const et=z[Q];let lt=null,Tt=et>239?4:et>223?3:et>191?2:1;if(Q+Tt<=g){let ne,Xt,ie,Wt;switch(Tt){case 1:et<128&&(lt=et);break;case 2:ne=z[Q+1],(ne&192)===128&&(Wt=(et&31)<<6|ne&63,Wt>127&&(lt=Wt));break;case 3:ne=z[Q+1],Xt=z[Q+2],(ne&192)===128&&(Xt&192)===128&&(Wt=(et&15)<<12|(ne&63)<<6|Xt&63,Wt>2047&&(Wt<55296||Wt>57343)&&(lt=Wt));break;case 4:ne=z[Q+1],Xt=z[Q+2],ie=z[Q+3],(ne&192)===128&&(Xt&192)===128&&(ie&192)===128&&(Wt=(et&15)<<18|(ne&63)<<12|(Xt&63)<<6|ie&63,Wt>65535&&Wt<1114112&&(lt=Wt))}}lt===null?(lt=65533,Tt=1):lt>65535&&(lt-=65536,T.push(lt>>>10&1023|55296),lt=56320|lt&1023),T.push(lt),Q+=Tt}return Nt(T)}const vt=4096;function Nt(z){const h=z.length;if(h<=vt)return String.fromCharCode.apply(String,z);let g="",T=0;for(;T<h;)g+=String.fromCharCode.apply(String,z.slice(T,T+=vt));return g}function _e(z,h,g){let T="";g=Math.min(z.length,g);for(let Q=h;Q<g;++Q)T+=String.fromCharCode(z[Q]&127);return T}function at(z,h,g){let T="";g=Math.min(z.length,g);for(let Q=h;Q<g;++Q)T+=String.fromCharCode(z[Q]);return T}function Re(z,h,g){const T=z.length;(!h||h<0)&&(h=0),(!g||g<0||g>T)&&(g=T);let Q="";for(let et=h;et<g;++et)Q+=ku[z[et]];return Q}function Ye(z,h,g){const T=z.slice(h,g);let Q="";for(let et=0;et<T.length-1;et+=2)Q+=String.fromCharCode(T[et]+T[et+1]*256);return Q}Y.prototype.slice=function(h,g){const T=this.length;h=~~h,g=g===void 0?T:~~g,h<0?(h+=T,h<0&&(h=0)):h>T&&(h=T),g<0?(g+=T,g<0&&(g=0)):g>T&&(g=T),g<h&&(g=h);const Q=this.subarray(h,g);return Object.setPrototypeOf(Q,Y.prototype),Q};function re(z,h,g){if(z%1!==0||z<0)throw new RangeError("offset is not uint");if(z+h>g)throw new RangeError("Trying to access beyond buffer length")}Y.prototype.readUintLE=Y.prototype.readUIntLE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=this[h],et=1,lt=0;for(;++lt<g&&(et*=256);)Q+=this[h+lt]*et;return Q},Y.prototype.readUintBE=Y.prototype.readUIntBE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=this[h+--g],et=1;for(;g>0&&(et*=256);)Q+=this[h+--g]*et;return Q},Y.prototype.readUint8=Y.prototype.readUInt8=function(h,g){return h=h>>>0,g||re(h,1,this.length),this[h]},Y.prototype.readUint16LE=Y.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||re(h,2,this.length),this[h]|this[h+1]<<8},Y.prototype.readUint16BE=Y.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||re(h,2,this.length),this[h]<<8|this[h+1]},Y.prototype.readUint32LE=Y.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||re(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},Y.prototype.readUint32BE=Y.prototype.readUInt32BE=function(h,g){return h=h>>>0,g||re(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},Y.prototype.readBigUInt64LE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,et=this[++h]+this[++h]*2**8+this[++h]*2**16+T*2**24;return BigInt(Q)+(BigInt(et)<<BigInt(32))}),Y.prototype.readBigUInt64BE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=g*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],et=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+T;return(BigInt(Q)<<BigInt(32))+BigInt(et)}),Y.prototype.readIntLE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=this[h],et=1,lt=0;for(;++lt<g&&(et*=256);)Q+=this[h+lt]*et;return et*=128,Q>=et&&(Q-=Math.pow(2,8*g)),Q},Y.prototype.readIntBE=function(h,g,T){h=h>>>0,g=g>>>0,T||re(h,g,this.length);let Q=g,et=1,lt=this[h+--Q];for(;Q>0&&(et*=256);)lt+=this[h+--Q]*et;return et*=128,lt>=et&&(lt-=Math.pow(2,8*g)),lt},Y.prototype.readInt8=function(h,g){return h=h>>>0,g||re(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},Y.prototype.readInt16LE=function(h,g){h=h>>>0,g||re(h,2,this.length);const T=this[h]|this[h+1]<<8;return T&32768?T|4294901760:T},Y.prototype.readInt16BE=function(h,g){h=h>>>0,g||re(h,2,this.length);const T=this[h+1]|this[h]<<8;return T&32768?T|4294901760:T},Y.prototype.readInt32LE=function(h,g){return h=h>>>0,g||re(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},Y.prototype.readInt32BE=function(h,g){return h=h>>>0,g||re(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},Y.prototype.readBigInt64LE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(T<<24);return(BigInt(Q)<<BigInt(32))+BigInt(g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24)}),Y.prototype.readBigInt64BE=br(function(h){h=h>>>0,q(h,"offset");const g=this[h],T=this[h+7];(g===void 0||T===void 0)&&X(h,this.length-8);const Q=(g<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(Q)<<BigInt(32))+BigInt(this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+T)}),Y.prototype.readFloatLE=function(h,g){return h=h>>>0,g||re(h,4,this.length),C.read(this,h,!0,23,4)},Y.prototype.readFloatBE=function(h,g){return h=h>>>0,g||re(h,4,this.length),C.read(this,h,!1,23,4)},Y.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||re(h,8,this.length),C.read(this,h,!0,52,8)},Y.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||re(h,8,this.length),C.read(this,h,!1,52,8)};function ae(z,h,g,T,Q,et){if(!Y.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>Q||h<et)throw new RangeError('"value" argument is out of bounds');if(g+T>z.length)throw new RangeError("Index out of range")}Y.prototype.writeUintLE=Y.prototype.writeUIntLE=function(h,g,T,Q){if(h=+h,g=g>>>0,T=T>>>0,!Q){const Tt=Math.pow(2,8*T)-1;ae(this,h,g,T,Tt,0)}let et=1,lt=0;for(this[g]=h&255;++lt<T&&(et*=256);)this[g+lt]=h/et&255;return g+T},Y.prototype.writeUintBE=Y.prototype.writeUIntBE=function(h,g,T,Q){if(h=+h,g=g>>>0,T=T>>>0,!Q){const Tt=Math.pow(2,8*T)-1;ae(this,h,g,T,Tt,0)}let et=T-1,lt=1;for(this[g+et]=h&255;--et>=0&&(lt*=256);)this[g+et]=h/lt&255;return g+T},Y.prototype.writeUint8=Y.prototype.writeUInt8=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,1,255,0),this[g]=h&255,g+1},Y.prototype.writeUint16LE=Y.prototype.writeUInt16LE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},Y.prototype.writeUint16BE=Y.prototype.writeUInt16BE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},Y.prototype.writeUint32LE=Y.prototype.writeUInt32LE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},Y.prototype.writeUint32BE=Y.prototype.writeUInt32BE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function He(z,h,g,T,Q){k(h,T,Q,z,g,7);let et=Number(h&BigInt(4294967295));z[g++]=et,et=et>>8,z[g++]=et,et=et>>8,z[g++]=et,et=et>>8,z[g++]=et;let lt=Number(h>>BigInt(32)&BigInt(4294967295));return z[g++]=lt,lt=lt>>8,z[g++]=lt,lt=lt>>8,z[g++]=lt,lt=lt>>8,z[g++]=lt,g}function ye(z,h,g,T,Q){k(h,T,Q,z,g,7);let et=Number(h&BigInt(4294967295));z[g+7]=et,et=et>>8,z[g+6]=et,et=et>>8,z[g+5]=et,et=et>>8,z[g+4]=et;let lt=Number(h>>BigInt(32)&BigInt(4294967295));return z[g+3]=lt,lt=lt>>8,z[g+2]=lt,lt=lt>>8,z[g+1]=lt,lt=lt>>8,z[g]=lt,g+8}Y.prototype.writeBigUInt64LE=br(function(h,g=0){return He(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),Y.prototype.writeBigUInt64BE=br(function(h,g=0){return ye(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),Y.prototype.writeIntLE=function(h,g,T,Q){if(h=+h,g=g>>>0,!Q){const ne=Math.pow(2,8*T-1);ae(this,h,g,T,ne-1,-ne)}let et=0,lt=1,Tt=0;for(this[g]=h&255;++et<T&&(lt*=256);)h<0&&Tt===0&&this[g+et-1]!==0&&(Tt=1),this[g+et]=(h/lt>>0)-Tt&255;return g+T},Y.prototype.writeIntBE=function(h,g,T,Q){if(h=+h,g=g>>>0,!Q){const ne=Math.pow(2,8*T-1);ae(this,h,g,T,ne-1,-ne)}let et=T-1,lt=1,Tt=0;for(this[g+et]=h&255;--et>=0&&(lt*=256);)h<0&&Tt===0&&this[g+et+1]!==0&&(Tt=1),this[g+et]=(h/lt>>0)-Tt&255;return g+T},Y.prototype.writeInt8=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},Y.prototype.writeInt16LE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},Y.prototype.writeInt16BE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},Y.prototype.writeInt32LE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},Y.prototype.writeInt32BE=function(h,g,T){return h=+h,g=g>>>0,T||ae(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},Y.prototype.writeBigInt64LE=br(function(h,g=0){return He(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Y.prototype.writeBigInt64BE=br(function(h,g=0){return ye(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ue(z,h,g,T,Q,et){if(g+T>z.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function qe(z,h,g,T,Q){return h=+h,g=g>>>0,Q||Ue(z,h,g,4),C.write(z,h,g,T,23,4),g+4}Y.prototype.writeFloatLE=function(h,g,T){return qe(this,h,g,!0,T)},Y.prototype.writeFloatBE=function(h,g,T){return qe(this,h,g,!1,T)};function ge(z,h,g,T,Q){return h=+h,g=g>>>0,Q||Ue(z,h,g,8),C.write(z,h,g,T,52,8),g+8}Y.prototype.writeDoubleLE=function(h,g,T){return ge(this,h,g,!0,T)},Y.prototype.writeDoubleBE=function(h,g,T){return ge(this,h,g,!1,T)},Y.prototype.copy=function(h,g,T,Q){if(!Y.isBuffer(h))throw new TypeError("argument should be a Buffer");if(T||(T=0),!Q&&Q!==0&&(Q=this.length),g>=h.length&&(g=h.length),g||(g=0),Q>0&&Q<T&&(Q=T),Q===T||h.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),h.length-g<Q-T&&(Q=h.length-g+T);const et=Q-T;return this===h&&typeof j.prototype.copyWithin=="function"?this.copyWithin(g,T,Q):j.prototype.set.call(h,this.subarray(T,Q),g),et},Y.prototype.fill=function(h,g,T,Q){if(typeof h=="string"){if(typeof g=="string"?(Q=g,g=0,T=this.length):typeof T=="string"&&(Q=T,T=this.length),Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!Y.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(h.length===1){const lt=h.charCodeAt(0);(Q==="utf8"&<<128||Q==="latin1")&&(h=lt)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if(g<0||this.length<g||this.length<T)throw new RangeError("Out of range index");if(T<=g)return this;g=g>>>0,T=T===void 0?this.length:T>>>0,h||(h=0);let et;if(typeof h=="number")for(et=g;et<T;++et)this[et]=h;else{const lt=Y.isBuffer(h)?h:Y.from(h,Q),Tt=lt.length;if(Tt===0)throw new TypeError('The value "'+h+'" is invalid for argument "value"');for(et=0;et<T-g;++et)this[et+g]=lt[et%Tt]}return this};const gr={};function E(z,h,g){gr[z]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:h.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${z}]`,this.stack,delete this.name}get code(){return z}set code(Q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Q,writable:!0})}toString(){return`${this.name} [${z}]: ${this.message}`}}}E("ERR_BUFFER_OUT_OF_BOUNDS",function(z){return z?`${z} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(z,h){return`The "${z}" argument must be of type number. Received type ${typeof h}`},TypeError),E("ERR_OUT_OF_RANGE",function(z,h,g){let T=`The value of "${z}" is out of range.`,Q=g;return Number.isInteger(g)&&Math.abs(g)>2**32?Q=p(String(g)):typeof g=="bigint"&&(Q=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(Q=p(Q)),Q+="n"),T+=` It must be ${h}. Received ${Q}`,T},RangeError);function p(z){let h="",g=z.length;const T=z[0]==="-"?1:0;for(;g>=T+4;g-=3)h=`_${z.slice(g-3,g)}${h}`;return`${z.slice(0,g)}${h}`}function d(z,h,g){q(h,"offset"),(z[h]===void 0||z[h+g]===void 0)&&X(h,z.length-(g+1))}function k(z,h,g,T,Q,et){if(z>g||z<h){const lt=typeof h=="bigint"?"n":"";let Tt;throw h===0||h===BigInt(0)?Tt=`>= 0${lt} and < 2${lt} ** ${(et+1)*8}${lt}`:Tt=`>= -(2${lt} ** ${(et+1)*8-1}${lt}) and < 2 ** ${(et+1)*8-1}${lt}`,new gr.ERR_OUT_OF_RANGE("value",Tt,z)}d(T,Q,et)}function q(z,h){if(typeof z!="number")throw new gr.ERR_INVALID_ARG_TYPE(h,"number",z)}function X(z,h,g){throw Math.floor(z)!==z?(q(z,g),new gr.ERR_OUT_OF_RANGE("offset","an integer",z)):h<0?new gr.ERR_BUFFER_OUT_OF_BOUNDS:new gr.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${h}`,z)}const ct=/[^+/0-9A-Za-z-_]/g;function kt(z){if(z=z.split("=")[0],z=z.trim().replace(ct,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function Jt(z,h){h=h||1/0;let g;const T=z.length;let Q=null;const et=[];for(let lt=0;lt<T;++lt){if(g=z.charCodeAt(lt),g>55295&&g<57344){if(!Q){if(g>56319){(h-=3)>-1&&et.push(239,191,189);continue}else if(lt+1===T){(h-=3)>-1&&et.push(239,191,189);continue}Q=g;continue}if(g<56320){(h-=3)>-1&&et.push(239,191,189),Q=g;continue}g=(Q-55296<<10|g-56320)+65536}else Q&&(h-=3)>-1&&et.push(239,191,189);if(Q=null,g<128){if((h-=1)<0)break;et.push(g)}else if(g<2048){if((h-=2)<0)break;et.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;et.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;et.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return et}function $t(z){const h=[];for(let g=0;g<z.length;++g)h.push(z.charCodeAt(g)&255);return h}function Zt(z,h){let g,T,Q;const et=[];for(let lt=0;lt<z.length&&!((h-=2)<0);++lt)g=z.charCodeAt(lt),T=g>>8,Q=g%256,et.push(Q),et.push(T);return et}function Ht(z){return N.toByteArray(kt(z))}function Is(z,h,g,T){let Q;for(Q=0;Q<T&&!(Q+g>=h.length||Q>=z.length);++Q)h[Q+g]=z[Q];return Q}function Qe(z,h){return z instanceof h||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===h.name}function F_(z){return z!==z}const ku=function(){const z="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){const T=g*16;for(let Q=0;Q<16;++Q)h[T+Q]=z[g]+z[Q]}return h}();function br(z){return typeof BigInt>"u"?Tu:z}function Tu(){throw new Error("BigInt not supported")}})(t);const P=t.Buffer;n.Blob=t.Blob,n.BlobOptions=t.BlobOptions,n.Buffer=t.Buffer,n.File=t.File,n.FileOptions=t.FileOptions,n.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,n.SlowBuffer=t.SlowBuffer,n.TranscodeEncoding=t.TranscodeEncoding,n.atob=t.atob,n.btoa=t.btoa,n.constants=t.constants,n.default=P,n.isAscii=t.isAscii,n.isUtf8=t.isUtf8,n.kMaxLength=t.kMaxLength,n.kStringMaxLength=t.kStringMaxLength,n.resolveObjectURL=t.resolveObjectURL,n.transcode=t.transcode}(bp)),bp}var yp={},Ap={},mp,D0;function L0(){return D0||(D0=1,mp=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),r=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var s=42;t[e]=s;for(var _ in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,e);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),mp}var Sp,j0;function Rp(){if(j0)return Sp;j0=1;var n=L0();return Sp=function(){return n()&&!!Symbol.toStringTag},Sp}var Ep,V0;function lz(){return V0||(V0=1,Ep=Object),Ep}var Pp,Y0;function pz(){return Y0||(Y0=1,Pp=Error),Pp}var zp,H0;function hz(){return H0||(H0=1,zp=EvalError),zp}var vp,q0;function wz(){return q0||(q0=1,vp=RangeError),vp}var Mp,Q0;function dz(){return Q0||(Q0=1,Mp=ReferenceError),Mp}var Bp,W0;function J0(){return W0||(W0=1,Bp=SyntaxError),Bp}var xp,$0;function xf(){return $0||($0=1,xp=TypeError),xp}var Cp,Z0;function gz(){return Z0||(Z0=1,Cp=URIError),Cp}var Ip,X0;function bz(){return X0||(X0=1,Ip=Math.abs),Ip}var Np,t1;function yz(){return t1||(t1=1,Np=Math.floor),Np}var Op,e1;function Az(){return e1||(e1=1,Op=Math.max),Op}var kp,r1;function mz(){return r1||(r1=1,kp=Math.min),kp}var Tp,n1;function Sz(){return n1||(n1=1,Tp=Math.pow),Tp}var Gp,i1;function Rz(){return i1||(i1=1,Gp=Object.getOwnPropertyDescriptor),Gp}var Fp,s1;function cu(){if(s1)return Fp;s1=1;var n=Rz();if(n)try{n([],"length")}catch{n=null}return Fp=n,Fp}var Up,_1;function Cf(){if(_1)return Up;_1=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Up=n,Up}var Kp,o1;function Ez(){if(o1)return Kp;o1=1;var n=typeof Symbol<"u"&&Symbol,t=L0();return Kp=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Kp}var Dp,a1;function Pz(){if(a1)return Dp;a1=1;var n="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,e=Math.max,r="[object Function]",s=function(u,l){for(var f=[],w=0;w<u.length;w+=1)f[w]=u[w];for(var y=0;y<l.length;y+=1)f[y+u.length]=l[y];return f},_=function(u,l){for(var f=[],w=l,y=0;w<u.length;w+=1,y+=1)f[y]=u[w];return f},a=function(c,u){for(var l="",f=0;f<c.length;f+=1)l+=c[f],f+1<c.length&&(l+=u);return l};return Dp=function(u){var l=this;if(typeof l!="function"||t.apply(l)!==r)throw new TypeError(n+l);for(var f=_(arguments,1),w,y=function(){if(this instanceof w){var P=l.apply(this,s(f,arguments));return Object(P)===P?P:this}return l.apply(u,s(f,arguments))},M=e(0,l.length-f.length),B=[],I=0;I<M;I++)B[I]="$"+I;if(w=Function("binder","return function ("+a(B,",")+"){ return binder.apply(this,arguments); }")(y),l.prototype){var G=function(){};G.prototype=l.prototype,w.prototype=new G,G.prototype=null}return w},Dp}var Lp,c1;function uu(){if(c1)return Lp;c1=1;var n=Pz();return Lp=Function.prototype.bind||n,Lp}var jp,u1;function Vp(){return u1||(u1=1,jp=Function.prototype.call),jp}var Yp,f1;function Hp(){return f1||(f1=1,Yp=Function.prototype.apply),Yp}var qp,l1;function zz(){return l1||(l1=1,qp=typeof Reflect<"u"&&Reflect&&Reflect.apply),qp}var Qp,p1;function h1(){if(p1)return Qp;p1=1;var n=uu(),t=Hp(),e=Vp(),r=zz();return Qp=r||n.call(e,t),Qp}var Wp,w1;function d1(){if(w1)return Wp;w1=1;var n=uu(),t=xf(),e=Vp(),r=h1();return Wp=function(_){if(_.length<1||typeof _[0]!="function")throw new t("a function is required");return r(n,e,_)},Wp}var Jp,g1;function vz(){if(g1)return Jp;g1=1;var n=d1(),t=cu(),e=[].__proto__===Array.prototype,r=e&&t&&t(Object.prototype,"__proto__"),s=Object,_=s.getPrototypeOf;return Jp=r&&typeof r.get=="function"?n([r.get]):typeof _=="function"?function(c){return _(c==null?c:s(c))}:!1,Jp}var $p,b1;function Mz(){if(b1)return $p;b1=1;var n=Function.prototype.call,t=Object.prototype.hasOwnProperty,e=uu();return $p=e.call(n,t),$p}var Zp,y1;function Xp(){if(y1)return Zp;y1=1;var n,t=lz(),e=pz(),r=hz(),s=wz(),_=dz(),a=J0(),c=xf(),u=gz(),l=bz(),f=yz(),w=Az(),y=mz(),M=Sz(),B=Function,I=function(H){try{return B('"use strict"; return ('+H+").constructor;")()}catch{}},G=cu(),P=Cf(),v=function(){throw new c},N=G?function(){try{return arguments.callee,v}catch{try{return G(arguments,"callee").get}catch{return v}}}():v,C=Ez()(),F=vz(),D=typeof Reflect=="function"&&Reflect.getPrototypeOf||t.getPrototypeOf||F,j=Hp(),L=Vp(),Z={},ot=typeof Uint8Array>"u"||!D?n:D(Uint8Array),pt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&D?D([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":Z,"%AsyncGenerator%":Z,"%AsyncGeneratorFunction%":Z,"%AsyncIteratorPrototype%":Z,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":B,"%GeneratorFunction%":Z,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&D?D(D([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!D?n:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":G,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":s,"%ReferenceError%":_,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!D?n:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&D?D(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":a,"%ThrowTypeError%":N,"%TypedArray%":ot,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":j,"%Object.defineProperty%":P,"%Math.abs%":l,"%Math.floor%":f,"%Math.max%":w,"%Math.min%":y,"%Math.pow%":M};if(D)try{null.error}catch(H){var Y=D(D(H));pt["%Error.prototype%"]=Y}var At=function H(V){var tt;if(V==="%AsyncFunction%")tt=I("async function () {}");else if(V==="%GeneratorFunction%")tt=I("function* () {}");else if(V==="%AsyncGeneratorFunction%")tt=I("async function* () {}");else if(V==="%AsyncGenerator%"){var ut=H("%AsyncGeneratorFunction%");ut&&(tt=ut.prototype)}else if(V==="%AsyncIteratorPrototype%"){var dt=H("%AsyncGenerator%");dt&&D&&(tt=D(dt.prototype))}return pt[V]=tt,tt},Bt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ft=uu(),wt=Mz(),Pt=ft.call(L,Array.prototype.concat),Ct=ft.call(j,Array.prototype.splice),Mt=ft.call(L,String.prototype.replace),It=ft.call(L,String.prototype.slice),jt=ft.call(L,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,it=/\\(\\)?/g,_t=function(V){var tt=It(V,0,1),ut=It(V,-1);if(tt==="%"&&ut!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(ut==="%"&&tt!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var dt=[];return Mt(V,J,function(x,O,nt,bt){dt[dt.length]=nt?Mt(bt,it,"$1"):O||x}),dt},St=function(V,tt){var ut=V,dt;if(wt(Bt,ut)&&(dt=Bt[ut],ut="%"+dt[0]+"%"),wt(pt,ut)){var x=pt[ut];if(x===Z&&(x=At(ut)),typeof x>"u"&&!tt)throw new c("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:dt,name:ut,value:x}}throw new a("intrinsic "+V+" does not exist!")};return Zp=function(V,tt){if(typeof V!="string"||V.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof tt!="boolean")throw new c('"allowMissing" argument must be a boolean');if(jt(/^%?[^%]*%?$/,V)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ut=_t(V),dt=ut.length>0?ut[0]:"",x=St("%"+dt+"%",tt),O=x.name,nt=x.value,bt=!1,Ot=x.alias;Ot&&(dt=Ot[0],Ct(ut,Pt([0,1],Ot)));for(var vt=1,Nt=!0;vt<ut.length;vt+=1){var _e=ut[vt],at=It(_e,0,1),Re=It(_e,-1);if((at==='"'||at==="'"||at==="`"||Re==='"'||Re==="'"||Re==="`")&&at!==Re)throw new a("property names with quotes must have matching quotes");if((_e==="constructor"||!Nt)&&(bt=!0),dt+="."+_e,O="%"+dt+"%",wt(pt,O))nt=pt[O];else if(nt!=null){if(!(_e in nt)){if(!tt)throw new c("base intrinsic for "+V+" exists, but the property is not available.");return}if(G&&vt+1>=ut.length){var Ye=G(nt,_e);Nt=!!Ye,Nt&&"get"in Ye&&!("originalValue"in Ye.get)?nt=Ye.get:nt=nt[_e]}else Nt=wt(nt,_e),nt=nt[_e];Nt&&!bt&&(pt[O]=nt)}}return nt},Zp}var th={exports:{}},eh,A1;function Bz(){if(A1)return eh;A1=1;var n=Cf(),t=J0(),e=xf(),r=cu();return eh=function(_,a,c){if(!_||typeof _!="object"&&typeof _!="function")throw new e("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new e("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new e("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new e("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new e("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new e("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,y=!!r&&r(_,a);if(n)n(_,a,{configurable:f===null&&y?y.configurable:!f,enumerable:u===null&&y?y.enumerable:!u,value:c,writable:l===null&&y?y.writable:!l});else if(w||!u&&!l&&!f)_[a]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},eh}var rh,m1;function xz(){if(m1)return rh;m1=1;var n=Cf(),t=function(){return!!n};return t.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},rh=t,rh}var nh,S1;function Cz(){if(S1)return nh;S1=1;var n=Xp(),t=Bz(),e=xz()(),r=cu(),s=xf(),_=n("%Math.floor%");return nh=function(c,u){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||_(u)!==u)throw new s("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],f=!0,w=!0;if("length"in c&&r){var y=r(c,"length");y&&!y.configurable&&(f=!1),y&&!y.writable&&(w=!1)}return(f||w||!l)&&(e?t(c,"length",u,!0,!0):t(c,"length",u)),c},nh}var ih,R1;function Iz(){if(R1)return ih;R1=1;var n=uu(),t=Hp(),e=h1();return ih=function(){return e(n,t,arguments)},ih}var E1;function sh(){return E1||(E1=1,function(n){var t=Cz(),e=Cf(),r=d1(),s=Iz();n.exports=function(a){var c=r(arguments),u=a.length-(arguments.length-1);return t(c,1+(u>0?u:0),!0)},e?e(n.exports,"apply",{value:s}):n.exports.apply=s}(th)),th.exports}var _h,P1;function Nz(){if(P1)return _h;P1=1;var n=Xp(),t=sh(),e=t(n("String.prototype.indexOf"));return _h=function(s,_){var a=n(s,!!_);return typeof a=="function"&&e(s,".prototype.")>-1?t(a):a},_h}var oh,z1;function Oz(){if(z1)return oh;z1=1;var n=Rp()(),t=Nz(),e=t("Object.prototype.toString"),r=function(c){return n&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:e(c)==="[object Arguments]"},s=function(c){return r(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&e(c)!=="[object Array]"&&"callee"in c&&e(c.callee)==="[object Function]"},_=function(){return r(arguments)}();return r.isLegacyArguments=s,oh=_?r:s,oh}var ah,v1;function kz(){if(v1)return ah;v1=1;var n=Object.prototype.toString,t=Function.prototype.toString,e=/^\s*(?:function)?\*/,r=Rp()(),s=Object.getPrototypeOf,_=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}},a;return ah=function(u){if(typeof u!="function")return!1;if(e.test(t.call(u)))return!0;if(!r){var l=n.call(u);return l==="[object GeneratorFunction]"}if(!s)return!1;if(typeof a>"u"){var f=_();a=f?s(f):!1}return s(u)===a},ah}var ch,M1;function Tz(){if(M1)return ch;M1=1;var n=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,e,r;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},t(function(){throw 42},null,e)}catch(v){v!==r&&(t=null)}else t=null;var s=/^\s*class\b/,_=function(N){try{var C=n.call(N);return s.test(C)}catch{return!1}},a=function(N){try{return _(N)?!1:(n.call(N),!0)}catch{return!1}},c=Object.prototype.toString,u="[object Object]",l="[object Function]",f="[object GeneratorFunction]",w="[object HTMLAllCollection]",y="[object HTML document.all class]",M="[object HTMLCollection]",B=typeof Symbol=="function"&&!!Symbol.toStringTag,I=!(0 in[,]),G=function(){return!1};if(typeof document=="object"){var P=document.all;c.call(P)===c.call(document.all)&&(G=function(N){if((I||!N)&&(typeof N>"u"||typeof N=="object"))try{var C=c.call(N);return(C===w||C===y||C===M||C===u)&&N("")==null}catch{}return!1})}return ch=t?function(N){if(G(N))return!0;if(!N||typeof N!="function"&&typeof N!="object")return!1;try{t(N,null,e)}catch(C){if(C!==r)return!1}return!_(N)&&a(N)}:function(N){if(G(N))return!0;if(!N||typeof N!="function"&&typeof N!="object")return!1;if(B)return a(N);if(_(N))return!1;var C=c.call(N);return C!==l&&C!==f&&!/^\[object HTML/.test(C)?!1:a(N)},ch}var uh,B1;function Gz(){if(B1)return uh;B1=1;var n=Tz(),t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=function(u,l,f){for(var w=0,y=u.length;w<y;w++)e.call(u,w)&&(f==null?l(u[w],w,u):l.call(f,u[w],w,u))},s=function(u,l,f){for(var w=0,y=u.length;w<y;w++)f==null?l(u.charAt(w),w,u):l.call(f,u.charAt(w),w,u)},_=function(u,l,f){for(var w in u)e.call(u,w)&&(f==null?l(u[w],w,u):l.call(f,u[w],w,u))},a=function(u,l,f){if(!n(l))throw new TypeError("iterator must be a function");var w;arguments.length>=3&&(w=f),t.call(u)==="[object Array]"?r(u,l,w):typeof u=="string"?s(u,l,w):_(u,l,w)};return uh=a,uh}var fh,x1;function Fz(){return x1||(x1=1,fh=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),fh}var lh,C1;function Uz(){if(C1)return lh;C1=1;var n=Fz(),t=typeof globalThis>"u"?us:globalThis;return lh=function(){for(var r=[],s=0;s<n.length;s++)typeof t[n[s]]=="function"&&(r[r.length]=n[s]);return r},lh}var ph,I1;function Kz(){if(I1)return ph;I1=1;var n=Xp(),t=sh(),e=t(n("String.prototype.indexOf"));return ph=function(s,_){var a=n(s,!!_);return typeof a=="function"&&e(s,".prototype.")>-1?t(a):a},ph}var hh,N1;function O1(){if(N1)return hh;N1=1;var n=Gz(),t=Uz(),e=sh(),r=Kz(),s=cu(),_=r("Object.prototype.toString"),a=Rp()(),c=typeof globalThis>"u"?us:globalThis,u=t(),l=r("String.prototype.slice"),f=Object.getPrototypeOf,w=r("Array.prototype.indexOf",!0)||function(G,P){for(var v=0;v<G.length;v+=1)if(G[v]===P)return v;return-1},y={__proto__:null};a&&s&&f?n(u,function(I){var G=new c[I];if(Symbol.toStringTag in G){var P=f(G),v=s(P,Symbol.toStringTag);if(!v){var N=f(P);v=s(N,Symbol.toStringTag)}y["$"+I]=e(v.get)}}):n(u,function(I){var G=new c[I],P=G.slice||G.set;P&&(y["$"+I]=e(P))});var M=function(G){var P=!1;return n(y,function(v,N){if(!P)try{"$"+v(G)===N&&(P=l(N,1))}catch{}}),P},B=function(G){var P=!1;return n(y,function(v,N){if(!P)try{v(G),P=l(N,1)}catch{}}),P};return hh=function(G){if(!G||typeof G!="object")return!1;if(!a){var P=l(_(G),8,-1);return w(u,P)>-1?P:P!=="Object"?!1:B(G)}return s?M(G):null},hh}var wh,k1;function Dz(){if(k1)return wh;k1=1;var n=O1();return wh=function(e){return!!n(e)},wh}var T1;function Lz(){return T1||(T1=1,function(n){var t=Oz(),e=kz(),r=O1(),s=Dz();function _(at){return at.call.bind(at)}var a=typeof BigInt<"u",c=typeof Symbol<"u",u=_(Object.prototype.toString),l=_(Number.prototype.valueOf),f=_(String.prototype.valueOf),w=_(Boolean.prototype.valueOf);if(a)var y=_(BigInt.prototype.valueOf);if(c)var M=_(Symbol.prototype.valueOf);function B(at,Re){if(typeof at!="object")return!1;try{return Re(at),!0}catch{return!1}}n.isArgumentsObject=t,n.isGeneratorFunction=e,n.isTypedArray=s;function I(at){return typeof Promise<"u"&&at instanceof Promise||at!==null&&typeof at=="object"&&typeof at.then=="function"&&typeof at.catch=="function"}n.isPromise=I;function G(at){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(at):s(at)||it(at)}n.isArrayBufferView=G;function P(at){return r(at)==="Uint8Array"}n.isUint8Array=P;function v(at){return r(at)==="Uint8ClampedArray"}n.isUint8ClampedArray=v;function N(at){return r(at)==="Uint16Array"}n.isUint16Array=N;function C(at){return r(at)==="Uint32Array"}n.isUint32Array=C;function F(at){return r(at)==="Int8Array"}n.isInt8Array=F;function D(at){return r(at)==="Int16Array"}n.isInt16Array=D;function j(at){return r(at)==="Int32Array"}n.isInt32Array=j;function L(at){return r(at)==="Float32Array"}n.isFloat32Array=L;function Z(at){return r(at)==="Float64Array"}n.isFloat64Array=Z;function ot(at){return r(at)==="BigInt64Array"}n.isBigInt64Array=ot;function pt(at){return r(at)==="BigUint64Array"}n.isBigUint64Array=pt;function Y(at){return u(at)==="[object Map]"}Y.working=typeof Map<"u"&&Y(new Map);function At(at){return typeof Map>"u"?!1:Y.working?Y(at):at instanceof Map}n.isMap=At;function Bt(at){return u(at)==="[object Set]"}Bt.working=typeof Set<"u"&&Bt(new Set);function ft(at){return typeof Set>"u"?!1:Bt.working?Bt(at):at instanceof Set}n.isSet=ft;function wt(at){return u(at)==="[object WeakMap]"}wt.working=typeof WeakMap<"u"&&wt(new WeakMap);function Pt(at){return typeof WeakMap>"u"?!1:wt.working?wt(at):at instanceof WeakMap}n.isWeakMap=Pt;function Ct(at){return u(at)==="[object WeakSet]"}Ct.working=typeof WeakSet<"u"&&Ct(new WeakSet);function Mt(at){return Ct(at)}n.isWeakSet=Mt;function It(at){return u(at)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function jt(at){return typeof ArrayBuffer>"u"?!1:It.working?It(at):at instanceof ArrayBuffer}n.isArrayBuffer=jt;function J(at){return u(at)==="[object DataView]"}J.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&J(new DataView(new ArrayBuffer(1),0,1));function it(at){return typeof DataView>"u"?!1:J.working?J(at):at instanceof DataView}n.isDataView=it;var _t=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function St(at){return u(at)==="[object SharedArrayBuffer]"}function H(at){return typeof _t>"u"?!1:(typeof St.working>"u"&&(St.working=St(new _t)),St.working?St(at):at instanceof _t)}n.isSharedArrayBuffer=H;function V(at){return u(at)==="[object AsyncFunction]"}n.isAsyncFunction=V;function tt(at){return u(at)==="[object Map Iterator]"}n.isMapIterator=tt;function ut(at){return u(at)==="[object Set Iterator]"}n.isSetIterator=ut;function dt(at){return u(at)==="[object Generator]"}n.isGeneratorObject=dt;function x(at){return u(at)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=x;function O(at){return B(at,l)}n.isNumberObject=O;function nt(at){return B(at,f)}n.isStringObject=nt;function bt(at){return B(at,w)}n.isBooleanObject=bt;function Ot(at){return a&&B(at,y)}n.isBigIntObject=Ot;function vt(at){return c&&B(at,M)}n.isSymbolObject=vt;function Nt(at){return O(at)||nt(at)||bt(at)||Ot(at)||vt(at)}n.isBoxedPrimitive=Nt;function _e(at){return typeof Uint8Array<"u"&&(jt(at)||H(at))}n.isAnyArrayBuffer=_e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(at){Object.defineProperty(n,at,{enumerable:!1,value:function(){throw new Error(at+" is not supported in userland")}})})}(Ap)),Ap}var dh,G1;function jz(){return G1||(G1=1,dh=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),dh}var If={exports:{}},F1;function oo(){return F1||(F1=1,typeof Object.create=="function"?If.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:If.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),If.exports}var U1;function K1(){return U1||(U1=1,function(n){var t=Object.getOwnPropertyDescriptors||function(it){for(var _t=Object.keys(it),St={},H=0;H<_t.length;H++)St[_t[H]]=Object.getOwnPropertyDescriptor(it,_t[H]);return St},e=/%[sdj%]/g;n.format=function(J){if(!F(J)){for(var it=[],_t=0;_t<arguments.length;_t++)it.push(a(arguments[_t]));return it.join(" ")}for(var _t=1,St=arguments,H=St.length,V=String(J).replace(e,function(ut){if(ut==="%%")return"%";if(_t>=H)return ut;switch(ut){case"%s":return String(St[_t++]);case"%d":return Number(St[_t++]);case"%j":try{return JSON.stringify(St[_t++])}catch{return"[Circular]"}default:return ut}}),tt=St[_t];_t<H;tt=St[++_t])v(tt)||!Z(tt)?V+=" "+tt:V+=" "+a(tt);return V},n.deprecate=function(J,it){if(typeof Lt<"u"&&Lt.noDeprecation===!0)return J;if(typeof Lt>"u")return function(){return n.deprecate(J,it).apply(this,arguments)};var _t=!1;function St(){if(!_t){if(Lt.throwDeprecation)throw new Error(it);Lt.traceDeprecation?console.trace(it):console.error(it),_t=!0}return J.apply(this,arguments)}return St};var r={},s=/^$/;if(Lt.env.NODE_DEBUG){var _=Lt.env.NODE_DEBUG;_=_.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+_+"$","i")}n.debuglog=function(J){if(J=J.toUpperCase(),!r[J])if(s.test(J)){var it=Lt.pid;r[J]=function(){var _t=n.format.apply(n,arguments);console.error("%s %d: %s",J,it,_t)}}else r[J]=function(){};return r[J]};function a(J,it){var _t={seen:[],stylize:u};return arguments.length>=3&&(_t.depth=arguments[2]),arguments.length>=4&&(_t.colors=arguments[3]),P(it)?_t.showHidden=it:it&&n._extend(_t,it),j(_t.showHidden)&&(_t.showHidden=!1),j(_t.depth)&&(_t.depth=2),j(_t.colors)&&(_t.colors=!1),j(_t.customInspect)&&(_t.customInspect=!0),_t.colors&&(_t.stylize=c),f(_t,J,_t.depth)}n.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(J,it){var _t=a.styles[it];return _t?"\x1B["+a.colors[_t][0]+"m"+J+"\x1B["+a.colors[_t][1]+"m":J}function u(J,it){return J}function l(J){var it={};return J.forEach(function(_t,St){it[_t]=!0}),it}function f(J,it,_t){if(J.customInspect&&it&&Y(it.inspect)&&it.inspect!==n.inspect&&!(it.constructor&&it.constructor.prototype===it)){var St=it.inspect(_t,J);return F(St)||(St=f(J,St,_t)),St}var H=w(J,it);if(H)return H;var V=Object.keys(it),tt=l(V);if(J.showHidden&&(V=Object.getOwnPropertyNames(it)),pt(it)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return y(it);if(V.length===0){if(Y(it)){var ut=it.name?": "+it.name:"";return J.stylize("[Function"+ut+"]","special")}if(L(it))return J.stylize(RegExp.prototype.toString.call(it),"regexp");if(ot(it))return J.stylize(Date.prototype.toString.call(it),"date");if(pt(it))return y(it)}var dt="",x=!1,O=["{","}"];if(G(it)&&(x=!0,O=["[","]"]),Y(it)){var nt=it.name?": "+it.name:"";dt=" [Function"+nt+"]"}if(L(it)&&(dt=" "+RegExp.prototype.toString.call(it)),ot(it)&&(dt=" "+Date.prototype.toUTCString.call(it)),pt(it)&&(dt=" "+y(it)),V.length===0&&(!x||it.length==0))return O[0]+dt+O[1];if(_t<0)return L(it)?J.stylize(RegExp.prototype.toString.call(it),"regexp"):J.stylize("[Object]","special");J.seen.push(it);var bt;return x?bt=M(J,it,_t,tt,V):bt=V.map(function(Ot){return B(J,it,_t,tt,Ot,x)}),J.seen.pop(),I(bt,dt,O)}function w(J,it){if(j(it))return J.stylize("undefined","undefined");if(F(it)){var _t="'"+JSON.stringify(it).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return J.stylize(_t,"string")}if(C(it))return J.stylize(""+it,"number");if(P(it))return J.stylize(""+it,"boolean");if(v(it))return J.stylize("null","null")}function y(J){return"["+Error.prototype.toString.call(J)+"]"}function M(J,it,_t,St,H){for(var V=[],tt=0,ut=it.length;tt<ut;++tt)Ct(it,String(tt))?V.push(B(J,it,_t,St,String(tt),!0)):V.push("");return H.forEach(function(dt){dt.match(/^\d+$/)||V.push(B(J,it,_t,St,dt,!0))}),V}function B(J,it,_t,St,H,V){var tt,ut,dt;if(dt=Object.getOwnPropertyDescriptor(it,H)||{value:it[H]},dt.get?dt.set?ut=J.stylize("[Getter/Setter]","special"):ut=J.stylize("[Getter]","special"):dt.set&&(ut=J.stylize("[Setter]","special")),Ct(St,H)||(tt="["+H+"]"),ut||(J.seen.indexOf(dt.value)<0?(v(_t)?ut=f(J,dt.value,null):ut=f(J,dt.value,_t-1),ut.indexOf(`
|
|
12
12
|
`)>-1&&(V?ut=ut.split(`
|
|
13
13
|
`).map(function(x){return" "+x}).join(`
|
|
14
14
|
`).slice(2):ut=`
|
|
15
15
|
`+ut.split(`
|
|
16
16
|
`).map(function(x){return" "+x}).join(`
|
|
17
|
-
`))):ut=J.stylize("[Circular]","special")),j(tt)){if(V&&H.match(/^\d+$/))return ut;tt=JSON.stringify(""+H),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=J.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=J.stylize(tt,"string"))}return tt+": "+ut}function I(J,it,
|
|
18
|
-
`)>=0,H+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return St>60?
|
|
17
|
+
`))):ut=J.stylize("[Circular]","special")),j(tt)){if(V&&H.match(/^\d+$/))return ut;tt=JSON.stringify(""+H),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=J.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=J.stylize(tt,"string"))}return tt+": "+ut}function I(J,it,_t){var St=J.reduce(function(H,V){return V.indexOf(`
|
|
18
|
+
`)>=0,H+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return St>60?_t[0]+(it===""?"":it+`
|
|
19
19
|
`)+" "+J.join(`,
|
|
20
|
-
`)+" "+st[1]:st[0]+it+" "+J.join(", ")+" "+st[1]}n.types=Lz();function G(J){return Array.isArray(J)}n.isArray=G;function P(J){return typeof J=="boolean"}n.isBoolean=P;function v(J){return J===null}n.isNull=v;function N(J){return J==null}n.isNullOrUndefined=N;function C(J){return typeof J=="number"}n.isNumber=C;function F(J){return typeof J=="string"}n.isString=F;function D(J){return typeof J=="symbol"}n.isSymbol=D;function j(J){return J===void 0}n.isUndefined=j;function L(J){return Z(J)&&Bt(J)==="[object RegExp]"}n.isRegExp=L,n.types.isRegExp=L;function Z(J){return typeof J=="object"&&J!==null}n.isObject=Z;function ot(J){return Z(J)&&Bt(J)==="[object Date]"}n.isDate=ot,n.types.isDate=ot;function pt(J){return Z(J)&&(Bt(J)==="[object Error]"||J instanceof Error)}n.isError=pt,n.types.isNativeError=pt;function Y(J){return typeof J=="function"}n.isFunction=Y;function At(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}n.isPrimitive=At,n.isBuffer=jz();function Bt(J){return Object.prototype.toString.call(J)}function ft(J){return J<10?"0"+J.toString(10):J.toString(10)}var wt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Pt(){var J=new Date,it=[ft(J.getHours()),ft(J.getMinutes()),ft(J.getSeconds())].join(":");return[J.getDate(),wt[J.getMonth()],it].join(" ")}n.log=function(){console.log("%s - %s",Pt(),n.format.apply(n,arguments))},n.inherits=so(),n._extend=function(J,it){if(!it||!Z(it))return J;for(var st=Object.keys(it),St=st.length;St--;)J[st[St]]=it[st[St]];return J};function Ct(J,it){return Object.prototype.hasOwnProperty.call(J,it)}var Mt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(it){if(typeof it!="function")throw new TypeError('The "original" argument must be of type Function');if(Mt&&it[Mt]){var st=it[Mt];if(typeof st!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(st,Mt,{value:st,enumerable:!1,writable:!1,configurable:!0}),st}function st(){for(var St,H,V=new Promise(function(dt,x){St=dt,H=x}),tt=[],ut=0;ut<arguments.length;ut++)tt.push(arguments[ut]);tt.push(function(dt,x){dt?H(dt):St(x)});try{it.apply(this,tt)}catch(dt){H(dt)}return V}return Object.setPrototypeOf(st,Object.getPrototypeOf(it)),Mt&&Object.defineProperty(st,Mt,{value:st,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(st,t(it))},n.promisify.custom=Mt;function It(J,it){if(!J){var st=new Error("Promise was rejected with a falsy value");st.reason=J,J=st}return it(J)}function jt(J){if(typeof J!="function")throw new TypeError('The "original" argument must be of type Function');function it(){for(var st=[],St=0;St<arguments.length;St++)st.push(arguments[St]);var H=st.pop();if(typeof H!="function")throw new TypeError("The last argument must be of type Function");var V=this,tt=function(){return H.apply(V,arguments)};J.apply(this,st).then(function(ut){Lt.nextTick(tt.bind(null,null,ut))},function(ut){Lt.nextTick(It.bind(null,ut,tt))})}return Object.setPrototypeOf(it,Object.getPrototypeOf(J)),Object.defineProperties(it,t(J)),it}n.callbackify=jt}(yp)),yp}var gh,D1;function Vz(){if(D1)return gh;D1=1;function n(B,I){var G=Object.keys(B);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(B);I&&(P=P.filter(function(v){return Object.getOwnPropertyDescriptor(B,v).enumerable})),G.push.apply(G,P)}return G}function t(B){for(var I=1;I<arguments.length;I++){var G=arguments[I]!=null?arguments[I]:{};I%2?n(Object(G),!0).forEach(function(P){e(B,P,G[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(G)):n(Object(G)).forEach(function(P){Object.defineProperty(B,P,Object.getOwnPropertyDescriptor(G,P))})}return B}function e(B,I,G){return I=a(I),I in B?Object.defineProperty(B,I,{value:G,enumerable:!0,configurable:!0,writable:!0}):B[I]=G,B}function r(B,I){if(!(B instanceof I))throw new TypeError("Cannot call a class as a function")}function s(B,I){for(var G=0;G<I.length;G++){var P=I[G];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(B,a(P.key),P)}}function _(B,I,G){return I&&s(B.prototype,I),Object.defineProperty(B,"prototype",{writable:!1}),B}function a(B){var I=c(B,"string");return typeof I=="symbol"?I:String(I)}function c(B,I){if(typeof B!="object"||B===null)return B;var G=B[Symbol.toPrimitive];if(G!==void 0){var P=G.call(B,I);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}var u=Bf(),l=u.Buffer,f=K1(),w=f.inspect,y=w&&w.custom||"inspect";function M(B,I,G){l.prototype.copy.call(B,I,G)}return gh=function(){function B(){r(this,B),this.head=null,this.tail=null,this.length=0}return _(B,[{key:"push",value:function(G){var P={data:G,next:null};this.length>0?this.tail.next=P:this.head=P,this.tail=P,++this.length}},{key:"unshift",value:function(G){var P={data:G,next:this.head};this.length===0&&(this.tail=P),this.head=P,++this.length}},{key:"shift",value:function(){if(this.length!==0){var G=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,G}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(G){if(this.length===0)return"";for(var P=this.head,v=""+P.data;P=P.next;)v+=G+P.data;return v}},{key:"concat",value:function(G){if(this.length===0)return l.alloc(0);for(var P=l.allocUnsafe(G>>>0),v=this.head,N=0;v;)M(v.data,P,N),N+=v.data.length,v=v.next;return P}},{key:"consume",value:function(G,P){var v;return G<this.head.data.length?(v=this.head.data.slice(0,G),this.head.data=this.head.data.slice(G)):G===this.head.data.length?v=this.shift():v=P?this._getString(G):this._getBuffer(G),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(G){var P=this.head,v=1,N=P.data;for(G-=N.length;P=P.next;){var C=P.data,F=G>C.length?C.length:G;if(F===C.length?N+=C:N+=C.slice(0,G),G-=F,G===0){F===C.length?(++v,P.next?this.head=P.next:this.head=this.tail=null):(this.head=P,P.data=C.slice(F));break}++v}return this.length-=v,N}},{key:"_getBuffer",value:function(G){var P=l.allocUnsafe(G),v=this.head,N=1;for(v.data.copy(P),G-=v.data.length;v=v.next;){var C=v.data,F=G>C.length?C.length:G;if(C.copy(P,P.length-G,0,F),G-=F,G===0){F===C.length?(++N,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=C.slice(F));break}++N}return this.length-=N,P}},{key:y,value:function(G,P){return w(this,t(t({},P),{},{depth:0,customInspect:!1}))}}]),B}(),gh}var bh,L1;function j1(){if(L1)return bh;L1=1;function n(a,c){var u=this,l=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return l||f?(c?c(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Lt.nextTick(s,this,a)):Lt.nextTick(s,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(w){!c&&w?u._writableState?u._writableState.errorEmitted?Lt.nextTick(e,u):(u._writableState.errorEmitted=!0,Lt.nextTick(t,u,w)):Lt.nextTick(t,u,w):c?(Lt.nextTick(e,u),c(w)):Lt.nextTick(e,u)}),this)}function t(a,c){s(a,c),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(a,c){a.emit("error",c)}function _(a,c){var u=a._readableState,l=a._writableState;u&&u.autoDestroy||l&&l.autoDestroy?a.destroy(c):a.emit("error",c)}return bh={destroy:n,undestroy:r,errorOrDestroy:_},bh}var yh={},V1;function _o(){if(V1)return yh;V1=1;function n(c,u){c.prototype=Object.create(u.prototype),c.prototype.constructor=c,c.__proto__=u}var t={};function e(c,u,l){l||(l=Error);function f(y,M,B){return typeof u=="string"?u:u(y,M,B)}var w=function(y){n(M,y);function M(B,I,G){return y.call(this,f(B,I,G))||this}return M}(l);w.prototype.name=l.name,w.prototype.code=c,t[c]=w}function r(c,u){if(Array.isArray(c)){var l=c.length;return c=c.map(function(f){return String(f)}),l>2?"one of ".concat(u," ").concat(c.slice(0,l-1).join(", "),", or ")+c[l-1]:l===2?"one of ".concat(u," ").concat(c[0]," or ").concat(c[1]):"of ".concat(u," ").concat(c[0])}else return"of ".concat(u," ").concat(String(c))}function s(c,u,l){return c.substr(0,u.length)===u}function _(c,u,l){return(l===void 0||l>c.length)&&(l=c.length),c.substring(l-u.length,l)===u}function a(c,u,l){return typeof l!="number"&&(l=0),l+u.length>c.length?!1:c.indexOf(u,l)!==-1}return e("ERR_INVALID_OPT_VALUE",function(c,u){return'The value "'+u+'" is invalid for option "'+c+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(c,u,l){var f;typeof u=="string"&&s(u,"not ")?(f="must not be",u=u.replace(/^not /,"")):f="must be";var w;if(_(c," argument"))w="The ".concat(c," ").concat(f," ").concat(r(u,"type"));else{var y=a(c,".")?"property":"argument";w='The "'.concat(c,'" ').concat(y," ").concat(f," ").concat(r(u,"type"))}return w+=". Received type ".concat(typeof l),w},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),yh.codes=t,yh}var Ah,Y1;function H1(){if(Y1)return Ah;Y1=1;var n=_o().codes.ERR_INVALID_OPT_VALUE;function t(r,s,_){return r.highWaterMark!=null?r.highWaterMark:s?r[_]:null}function e(r,s,_,a){var c=t(s,a,_);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var u=a?_:"highWaterMark";throw new n(u,c)}return Math.floor(c)}return r.objectMode?16:16*1024}return Ah={getHighWaterMark:e},Ah}var mh,q1;function Yz(){if(q1)return mh;q1=1,mh=n;function n(e,r){if(t("noDeprecation"))return e;var s=!1;function _(){if(!s){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),s=!0}return e.apply(this,arguments)}return _}function t(e){try{if(!us.localStorage)return!1}catch{return!1}var r=us.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}return mh}var Sh,Q1;function W1(){if(Q1)return Sh;Q1=1,Sh=L;function n(H){var V=this;this.next=null,this.entry=null,this.finish=function(){St(V,H)}}var t;L.WritableState=D;var e={deprecate:Yz()},r=U0(),s=Bf().Buffer,_=(typeof us<"u"?us:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(H){return s.from(H)}function c(H){return s.isBuffer(H)||H instanceof _}var u=j1(),l=H1(),f=l.getHighWaterMark,w=_o().codes,y=w.ERR_INVALID_ARG_TYPE,M=w.ERR_METHOD_NOT_IMPLEMENTED,B=w.ERR_MULTIPLE_CALLBACK,I=w.ERR_STREAM_CANNOT_PIPE,G=w.ERR_STREAM_DESTROYED,P=w.ERR_STREAM_NULL_VALUES,v=w.ERR_STREAM_WRITE_AFTER_END,N=w.ERR_UNKNOWN_ENCODING,C=u.errorOrDestroy;so()(L,r);function F(){}function D(H,V,tt){t=t||oo(),H=H||{},typeof tt!="boolean"&&(tt=V instanceof t),this.objectMode=!!H.objectMode,tt&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=f(this,H,"writableHighWaterMark",tt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ut=H.decodeStrings===!1;this.decodeStrings=!ut,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(dt){wt(V,dt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}D.prototype.getBuffer=function(){for(var V=this.bufferedRequest,tt=[];V;)tt.push(V),V=V.next;return tt},function(){try{Object.defineProperty(D.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var j;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(V){return j.call(this,V)?!0:this!==L?!1:V&&V._writableState instanceof D}})):j=function(V){return V instanceof this};function L(H){t=t||oo();var V=this instanceof t;if(!V&&!j.call(L,this))return new L(H);this._writableState=new D(H,this,V),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),r.call(this)}L.prototype.pipe=function(){C(this,new I)};function Z(H,V){var tt=new v;C(H,tt),Lt.nextTick(V,tt)}function ot(H,V,tt,ut){var dt;return tt===null?dt=new P:typeof tt!="string"&&!V.objectMode&&(dt=new y("chunk",["string","Buffer"],tt)),dt?(C(H,dt),Lt.nextTick(ut,dt),!1):!0}L.prototype.write=function(H,V,tt){var ut=this._writableState,dt=!1,x=!ut.objectMode&&c(H);return x&&!s.isBuffer(H)&&(H=a(H)),typeof V=="function"&&(tt=V,V=null),x?V="buffer":V||(V=ut.defaultEncoding),typeof tt!="function"&&(tt=F),ut.ending?Z(this,tt):(x||ot(this,ut,H,tt))&&(ut.pendingcb++,dt=Y(this,ut,x,H,V,tt)),dt},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&Mt(this,H))},L.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new N(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function pt(H,V,tt){return!H.objectMode&&H.decodeStrings!==!1&&typeof V=="string"&&(V=s.from(V,tt)),V}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(H,V,tt,ut,dt,x){if(!tt){var O=pt(V,ut,dt);ut!==O&&(tt=!0,dt="buffer",ut=O)}var nt=V.objectMode?1:ut.length;V.length+=nt;var bt=V.length<V.highWaterMark;if(bt||(V.needDrain=!0),V.writing||V.corked){var Ot=V.lastBufferedRequest;V.lastBufferedRequest={chunk:ut,encoding:dt,isBuf:tt,callback:x,next:null},Ot?Ot.next=V.lastBufferedRequest:V.bufferedRequest=V.lastBufferedRequest,V.bufferedRequestCount+=1}else At(H,V,!1,nt,ut,dt,x);return bt}function At(H,V,tt,ut,dt,x,O){V.writelen=ut,V.writecb=O,V.writing=!0,V.sync=!0,V.destroyed?V.onwrite(new G("write")):tt?H._writev(dt,V.onwrite):H._write(dt,x,V.onwrite),V.sync=!1}function Bt(H,V,tt,ut,dt){--V.pendingcb,tt?(Lt.nextTick(dt,ut),Lt.nextTick(it,H,V),H._writableState.errorEmitted=!0,C(H,ut)):(dt(ut),H._writableState.errorEmitted=!0,C(H,ut),it(H,V))}function ft(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function wt(H,V){var tt=H._writableState,ut=tt.sync,dt=tt.writecb;if(typeof dt!="function")throw new B;if(ft(tt),V)Bt(H,tt,ut,V,dt);else{var x=It(tt)||H.destroyed;!x&&!tt.corked&&!tt.bufferProcessing&&tt.bufferedRequest&&Mt(H,tt),ut?Lt.nextTick(Pt,H,tt,x,dt):Pt(H,tt,x,dt)}}function Pt(H,V,tt,ut){tt||Ct(H,V),V.pendingcb--,ut(),it(H,V)}function Ct(H,V){V.length===0&&V.needDrain&&(V.needDrain=!1,H.emit("drain"))}function Mt(H,V){V.bufferProcessing=!0;var tt=V.bufferedRequest;if(H._writev&&tt&&tt.next){var ut=V.bufferedRequestCount,dt=new Array(ut),x=V.corkedRequestsFree;x.entry=tt;for(var O=0,nt=!0;tt;)dt[O]=tt,tt.isBuf||(nt=!1),tt=tt.next,O+=1;dt.allBuffers=nt,At(H,V,!0,V.length,dt,"",x.finish),V.pendingcb++,V.lastBufferedRequest=null,x.next?(V.corkedRequestsFree=x.next,x.next=null):V.corkedRequestsFree=new n(V),V.bufferedRequestCount=0}else{for(;tt;){var bt=tt.chunk,Ot=tt.encoding,vt=tt.callback,Nt=V.objectMode?1:bt.length;if(At(H,V,!1,Nt,bt,Ot,vt),tt=tt.next,V.bufferedRequestCount--,V.writing)break}tt===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=tt,V.bufferProcessing=!1}L.prototype._write=function(H,V,tt){tt(new M("_write()"))},L.prototype._writev=null,L.prototype.end=function(H,V,tt){var ut=this._writableState;return typeof H=="function"?(tt=H,H=null,V=null):typeof V=="function"&&(tt=V,V=null),H!=null&&this.write(H,V),ut.corked&&(ut.corked=1,this.uncork()),ut.ending||st(this,ut,tt),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function It(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function jt(H,V){H._final(function(tt){V.pendingcb--,tt&&C(H,tt),V.prefinished=!0,H.emit("prefinish"),it(H,V)})}function J(H,V){!V.prefinished&&!V.finalCalled&&(typeof H._final=="function"&&!V.destroyed?(V.pendingcb++,V.finalCalled=!0,Lt.nextTick(jt,H,V)):(V.prefinished=!0,H.emit("prefinish")))}function it(H,V){var tt=It(V);if(tt&&(J(H,V),V.pendingcb===0&&(V.finished=!0,H.emit("finish"),V.autoDestroy))){var ut=H._readableState;(!ut||ut.autoDestroy&&ut.endEmitted)&&H.destroy()}return tt}function st(H,V,tt){V.ending=!0,it(H,V),tt&&(V.finished?Lt.nextTick(tt):H.once("finish",tt)),V.ended=!0,H.writable=!1}function St(H,V,tt){var ut=H.entry;for(H.entry=null;ut;){var dt=ut.callback;V.pendingcb--,dt(tt),ut=ut.next}V.corkedRequestsFree.next=H}return Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),L.prototype.destroy=u.destroy,L.prototype._undestroy=u.undestroy,L.prototype._destroy=function(H,V){V(H)},Sh}var Rh,J1;function oo(){if(J1)return Rh;J1=1;var n=Object.keys||function(l){var f=[];for(var w in l)f.push(w);return f};Rh=a;var t=ib(),e=W1();so()(a,t);for(var r=n(e.prototype),s=0;s<r.length;s++){var _=r[s];a.prototype[_]||(a.prototype[_]=e.prototype[_])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),e.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||Lt.nextTick(u,this)}function u(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),Rh}var Eh={},Nf={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $1;function Hz(){return $1||($1=1,function(n,t){var e=Bf(),r=e.Buffer;function s(a,c){for(var u in a)c[u]=a[u]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=e:(s(e,t),t.Buffer=_);function _(a,c,u){return r(a,c,u)}_.prototype=Object.create(r.prototype),s(r,_),_.from=function(a,c,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,c,u)},_.alloc=function(a,c,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=r(a);return c!==void 0?typeof u=="string"?l.fill(c,u):l.fill(c):l.fill(0),l},_.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},_.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}}(Nf,Nf.exports)),Nf.exports}var Z1;function X1(){if(Z1)return Eh;Z1=1;var n=Hz().Buffer,t=n.isEncoding||function(P){switch(P=""+P,P&&P.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function e(P){if(!P)return"utf8";for(var v;;)switch(P){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return P;default:if(v)return;P=(""+P).toLowerCase(),v=!0}}function r(P){var v=e(P);if(typeof v!="string"&&(n.isEncoding===t||!t(P)))throw new Error("Unknown encoding: "+P);return v||P}Eh.StringDecoder=s;function s(P){this.encoding=r(P);var v;switch(this.encoding){case"utf16le":this.text=w,this.end=y,v=4;break;case"utf8":this.fillLast=u,v=4;break;case"base64":this.text=M,this.end=B,v=3;break;default:this.write=I,this.end=G;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(v)}s.prototype.write=function(P){if(P.length===0)return"";var v,N;if(this.lastNeed){if(v=this.fillLast(P),v===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<P.length?v?v+this.text(P,N):this.text(P,N):v||""},s.prototype.end=f,s.prototype.text=l,s.prototype.fillLast=function(P){if(this.lastNeed<=P.length)return P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,P.length),this.lastNeed-=P.length};function _(P){return P<=127?0:P>>5===6?2:P>>4===14?3:P>>3===30?4:P>>6===2?-1:-2}function a(P,v,N){var C=v.length-1;if(C<N)return 0;var F=_(v[C]);return F>=0?(F>0&&(P.lastNeed=F-1),F):--C<N||F===-2?0:(F=_(v[C]),F>=0?(F>0&&(P.lastNeed=F-2),F):--C<N||F===-2?0:(F=_(v[C]),F>=0?(F>0&&(F===2?F=0:P.lastNeed=F-3),F):0))}function c(P,v,N){if((v[0]&192)!==128)return P.lastNeed=0,"�";if(P.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return P.lastNeed=1,"�";if(P.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return P.lastNeed=2,"�"}}function u(P){var v=this.lastTotal-this.lastNeed,N=c(this,P);if(N!==void 0)return N;if(this.lastNeed<=P.length)return P.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,v,0,P.length),this.lastNeed-=P.length}function l(P,v){var N=a(this,P,v);if(!this.lastNeed)return P.toString("utf8",v);this.lastTotal=N;var C=P.length-(N-this.lastNeed);return P.copy(this.lastChar,0,C),P.toString("utf8",v,C)}function f(P){var v=P&&P.length?this.write(P):"";return this.lastNeed?v+"�":v}function w(P,v){if((P.length-v)%2===0){var N=P.toString("utf16le",v);if(N){var C=N.charCodeAt(N.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=P[P.length-1],P.toString("utf16le",v,P.length-1)}function y(P){var v=P&&P.length?this.write(P):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,N)}return v}function M(P,v){var N=(P.length-v)%3;return N===0?P.toString("base64",v):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=P[P.length-1]:(this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1]),P.toString("base64",v,P.length-N))}function B(P){var v=P&&P.length?this.write(P):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function I(P){return P.toString(this.encoding)}function G(P){return P&&P.length?this.write(P):""}return Eh}var Ph,tb;function zh(){if(tb)return Ph;tb=1;var n=_o().codes.ERR_STREAM_PREMATURE_CLOSE;function t(_){var a=!1;return function(){if(!a){a=!0;for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];_.apply(this,u)}}}function e(){}function r(_){return _.setHeader&&typeof _.abort=="function"}function s(_,a,c){if(typeof a=="function")return s(_,null,a);a||(a={}),c=t(c||e);var u=a.readable||a.readable!==!1&&_.readable,l=a.writable||a.writable!==!1&&_.writable,f=function(){_.writable||y()},w=_._writableState&&_._writableState.finished,y=function(){l=!1,w=!0,u||c.call(_)},M=_._readableState&&_._readableState.endEmitted,B=function(){u=!1,M=!0,l||c.call(_)},I=function(N){c.call(_,N)},G=function(){var N;if(u&&!M)return(!_._readableState||!_._readableState.ended)&&(N=new n),c.call(_,N);if(l&&!w)return(!_._writableState||!_._writableState.ended)&&(N=new n),c.call(_,N)},P=function(){_.req.on("finish",y)};return r(_)?(_.on("complete",y),_.on("abort",G),_.req?P():_.on("request",P)):l&&!_._writableState&&(_.on("end",f),_.on("close",f)),_.on("end",B),_.on("finish",y),a.error!==!1&&_.on("error",I),_.on("close",G),function(){_.removeListener("complete",y),_.removeListener("abort",G),_.removeListener("request",P),_.req&&_.req.removeListener("finish",y),_.removeListener("end",f),_.removeListener("close",f),_.removeListener("finish",y),_.removeListener("end",B),_.removeListener("error",I),_.removeListener("close",G)}}return Ph=s,Ph}var vh,eb;function qz(){if(eb)return vh;eb=1;var n;function t(N,C,F){return C=e(C),C in N?Object.defineProperty(N,C,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[C]=F,N}function e(N){var C=r(N,"string");return typeof C=="symbol"?C:String(C)}function r(N,C){if(typeof N!="object"||N===null)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var D=F.call(N,C);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(N)}var s=zh(),_=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),w=Symbol("stream");function y(N,C){return{value:N,done:C}}function M(N){var C=N[_];if(C!==null){var F=N[w].read();F!==null&&(N[l]=null,N[_]=null,N[a]=null,C(y(F,!1)))}}function B(N){Lt.nextTick(M,N)}function I(N,C){return function(F,D){N.then(function(){if(C[u]){F(y(void 0,!0));return}C[f](F,D)},D)}}var G=Object.getPrototypeOf(function(){}),P=Object.setPrototypeOf((n={get stream(){return this[w]},next:function(){var C=this,F=this[c];if(F!==null)return Promise.reject(F);if(this[u])return Promise.resolve(y(void 0,!0));if(this[w].destroyed)return new Promise(function(Z,ot){Lt.nextTick(function(){C[c]?ot(C[c]):Z(y(void 0,!0))})});var D=this[l],j;if(D)j=new Promise(I(D,this));else{var L=this[w].read();if(L!==null)return Promise.resolve(y(L,!1));j=new Promise(this[f])}return this[l]=j,j}},t(n,Symbol.asyncIterator,function(){return this}),t(n,"return",function(){var C=this;return new Promise(function(F,D){C[w].destroy(null,function(j){if(j){D(j);return}F(y(void 0,!0))})})}),n),G),v=function(C){var F,D=Object.create(P,(F={},t(F,w,{value:C,writable:!0}),t(F,_,{value:null,writable:!0}),t(F,a,{value:null,writable:!0}),t(F,c,{value:null,writable:!0}),t(F,u,{value:C._readableState.endEmitted,writable:!0}),t(F,f,{value:function(L,Z){var ot=D[w].read();ot?(D[l]=null,D[_]=null,D[a]=null,L(y(ot,!1))):(D[_]=L,D[a]=Z)},writable:!0}),F));return D[l]=null,s(C,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var L=D[a];L!==null&&(D[l]=null,D[_]=null,D[a]=null,L(j)),D[c]=j;return}var Z=D[_];Z!==null&&(D[l]=null,D[_]=null,D[a]=null,Z(y(void 0,!0))),D[u]=!0}),C.on("readable",B.bind(null,D)),D};return vh=v,vh}var Mh,rb;function Qz(){return rb||(rb=1,Mh=function(){throw new Error("Readable.from is not available in the browser")}),Mh}var Bh,nb;function ib(){if(nb)return Bh;nb=1,Bh=Z;var n;Z.ReadableState=L,G0().EventEmitter;var t=function(O,nt){return O.listeners(nt).length},e=U0(),r=Bf().Buffer,s=(typeof us<"u"?us:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(x){return r.from(x)}function a(x){return r.isBuffer(x)||x instanceof s}var c=K1(),u;c&&c.debuglog?u=c.debuglog("stream"):u=function(){};var l=Vz(),f=j1(),w=H1(),y=w.getHighWaterMark,M=_o().codes,B=M.ERR_INVALID_ARG_TYPE,I=M.ERR_STREAM_PUSH_AFTER_EOF,G=M.ERR_METHOD_NOT_IMPLEMENTED,P=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v,N,C;so()(Z,e);var F=f.errorOrDestroy,D=["error","close","destroy","pause","resume"];function j(x,O,nt){if(typeof x.prependListener=="function")return x.prependListener(O,nt);!x._events||!x._events[O]?x.on(O,nt):Array.isArray(x._events[O])?x._events[O].unshift(nt):x._events[O]=[nt,x._events[O]]}function L(x,O,nt){n=n||oo(),x=x||{},typeof nt!="boolean"&&(nt=O instanceof n),this.objectMode=!!x.objectMode,nt&&(this.objectMode=this.objectMode||!!x.readableObjectMode),this.highWaterMark=y(this,x,"readableHighWaterMark",nt),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=x.emitClose!==!1,this.autoDestroy=!!x.autoDestroy,this.destroyed=!1,this.defaultEncoding=x.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,x.encoding&&(v||(v=X1().StringDecoder),this.decoder=new v(x.encoding),this.encoding=x.encoding)}function Z(x){if(n=n||oo(),!(this instanceof Z))return new Z(x);var O=this instanceof n;this._readableState=new L(x,this,O),this.readable=!0,x&&(typeof x.read=="function"&&(this._read=x.read),typeof x.destroy=="function"&&(this._destroy=x.destroy)),e.call(this)}Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),Z.prototype.destroy=f.destroy,Z.prototype._undestroy=f.undestroy,Z.prototype._destroy=function(x,O){O(x)},Z.prototype.push=function(x,O){var nt=this._readableState,bt;return nt.objectMode?bt=!0:typeof x=="string"&&(O=O||nt.defaultEncoding,O!==nt.encoding&&(x=r.from(x,O),O=""),bt=!0),ot(this,x,O,!1,bt)},Z.prototype.unshift=function(x){return ot(this,x,null,!0,!1)};function ot(x,O,nt,bt,Ot){u("readableAddChunk",O);var vt=x._readableState;if(O===null)vt.reading=!1,wt(x,vt);else{var Nt;if(Ot||(Nt=Y(vt,O)),Nt)F(x,Nt);else if(vt.objectMode||O&&O.length>0)if(typeof O!="string"&&!vt.objectMode&&Object.getPrototypeOf(O)!==r.prototype&&(O=_(O)),bt)vt.endEmitted?F(x,new P):pt(x,vt,O,!0);else if(vt.ended)F(x,new I);else{if(vt.destroyed)return!1;vt.reading=!1,vt.decoder&&!nt?(O=vt.decoder.write(O),vt.objectMode||O.length!==0?pt(x,vt,O,!1):Mt(x,vt)):pt(x,vt,O,!1)}else bt||(vt.reading=!1,Mt(x,vt))}return!vt.ended&&(vt.length<vt.highWaterMark||vt.length===0)}function pt(x,O,nt,bt){O.flowing&&O.length===0&&!O.sync?(O.awaitDrain=0,x.emit("data",nt)):(O.length+=O.objectMode?1:nt.length,bt?O.buffer.unshift(nt):O.buffer.push(nt),O.needReadable&&Pt(x)),Mt(x,O)}function Y(x,O){var nt;return!a(O)&&typeof O!="string"&&O!==void 0&&!x.objectMode&&(nt=new B("chunk",["string","Buffer","Uint8Array"],O)),nt}Z.prototype.isPaused=function(){return this._readableState.flowing===!1},Z.prototype.setEncoding=function(x){v||(v=X1().StringDecoder);var O=new v(x);this._readableState.decoder=O,this._readableState.encoding=this._readableState.decoder.encoding;for(var nt=this._readableState.buffer.head,bt="";nt!==null;)bt+=O.write(nt.data),nt=nt.next;return this._readableState.buffer.clear(),bt!==""&&this._readableState.buffer.push(bt),this._readableState.length=bt.length,this};var At=1073741824;function Bt(x){return x>=At?x=At:(x--,x|=x>>>1,x|=x>>>2,x|=x>>>4,x|=x>>>8,x|=x>>>16,x++),x}function ft(x,O){return x<=0||O.length===0&&O.ended?0:O.objectMode?1:x!==x?O.flowing&&O.length?O.buffer.head.data.length:O.length:(x>O.highWaterMark&&(O.highWaterMark=Bt(x)),x<=O.length?x:O.ended?O.length:(O.needReadable=!0,0))}Z.prototype.read=function(x){u("read",x),x=parseInt(x,10);var O=this._readableState,nt=x;if(x!==0&&(O.emittedReadable=!1),x===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return u("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?tt(this):Pt(this),null;if(x=ft(x,O),x===0&&O.ended)return O.length===0&&tt(this),null;var bt=O.needReadable;u("need readable",bt),(O.length===0||O.length-x<O.highWaterMark)&&(bt=!0,u("length less than watermark",bt)),O.ended||O.reading?(bt=!1,u("reading or ended",bt)):bt&&(u("do read"),O.reading=!0,O.sync=!0,O.length===0&&(O.needReadable=!0),this._read(O.highWaterMark),O.sync=!1,O.reading||(x=ft(nt,O)));var Ot;return x>0?Ot=V(x,O):Ot=null,Ot===null?(O.needReadable=O.length<=O.highWaterMark,x=0):(O.length-=x,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),nt!==x&&O.ended&&tt(this)),Ot!==null&&this.emit("data",Ot),Ot};function wt(x,O){if(u("onEofChunk"),!O.ended){if(O.decoder){var nt=O.decoder.end();nt&&nt.length&&(O.buffer.push(nt),O.length+=O.objectMode?1:nt.length)}O.ended=!0,O.sync?Pt(x):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,Ct(x)))}}function Pt(x){var O=x._readableState;u("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(u("emitReadable",O.flowing),O.emittedReadable=!0,Lt.nextTick(Ct,x))}function Ct(x){var O=x._readableState;u("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(x.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,H(x)}function Mt(x,O){O.readingMore||(O.readingMore=!0,Lt.nextTick(It,x,O))}function It(x,O){for(;!O.reading&&!O.ended&&(O.length<O.highWaterMark||O.flowing&&O.length===0);){var nt=O.length;if(u("maybeReadMore read 0"),x.read(0),nt===O.length)break}O.readingMore=!1}Z.prototype._read=function(x){F(this,new G("_read()"))},Z.prototype.pipe=function(x,O){var nt=this,bt=this._readableState;switch(bt.pipesCount){case 0:bt.pipes=x;break;case 1:bt.pipes=[bt.pipes,x];break;default:bt.pipes.push(x);break}bt.pipesCount+=1,u("pipe count=%d opts=%j",bt.pipesCount,O);var Ot=(!O||O.end!==!1)&&x!==Lt.stdout&&x!==Lt.stderr,vt=Ot?_e:Ue;bt.endEmitted?Lt.nextTick(vt):nt.once("end",vt),x.on("unpipe",Nt);function Nt(qe,ge){u("onunpipe"),qe===nt&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,Ye())}function _e(){u("onend"),x.end()}var at=jt(nt);x.on("drain",at);var Re=!1;function Ye(){u("cleanup"),x.removeListener("close",He),x.removeListener("finish",ye),x.removeListener("drain",at),x.removeListener("error",oe),x.removeListener("unpipe",Nt),nt.removeListener("end",_e),nt.removeListener("end",Ue),nt.removeListener("data",re),Re=!0,bt.awaitDrain&&(!x._writableState||x._writableState.needDrain)&&at()}nt.on("data",re);function re(qe){u("ondata");var ge=x.write(qe);u("dest.write",ge),ge===!1&&((bt.pipesCount===1&&bt.pipes===x||bt.pipesCount>1&&dt(bt.pipes,x)!==-1)&&!Re&&(u("false write response, pause",bt.awaitDrain),bt.awaitDrain++),nt.pause())}function oe(qe){u("onerror",qe),Ue(),x.removeListener("error",oe),t(x,"error")===0&&F(x,qe)}j(x,"error",oe);function He(){x.removeListener("finish",ye),Ue()}x.once("close",He);function ye(){u("onfinish"),x.removeListener("close",He),Ue()}x.once("finish",ye);function Ue(){u("unpipe"),nt.unpipe(x)}return x.emit("pipe",nt),bt.flowing||(u("pipe resume"),nt.resume()),x};function jt(x){return function(){var nt=x._readableState;u("pipeOnDrain",nt.awaitDrain),nt.awaitDrain&&nt.awaitDrain--,nt.awaitDrain===0&&t(x,"data")&&(nt.flowing=!0,H(x))}}Z.prototype.unpipe=function(x){var O=this._readableState,nt={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return x&&x!==O.pipes?this:(x||(x=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,x&&x.emit("unpipe",this,nt),this);if(!x){var bt=O.pipes,Ot=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var vt=0;vt<Ot;vt++)bt[vt].emit("unpipe",this,{hasUnpiped:!1});return this}var Nt=dt(O.pipes,x);return Nt===-1?this:(O.pipes.splice(Nt,1),O.pipesCount-=1,O.pipesCount===1&&(O.pipes=O.pipes[0]),x.emit("unpipe",this,nt),this)},Z.prototype.on=function(x,O){var nt=e.prototype.on.call(this,x,O),bt=this._readableState;return x==="data"?(bt.readableListening=this.listenerCount("readable")>0,bt.flowing!==!1&&this.resume()):x==="readable"&&!bt.endEmitted&&!bt.readableListening&&(bt.readableListening=bt.needReadable=!0,bt.flowing=!1,bt.emittedReadable=!1,u("on readable",bt.length,bt.reading),bt.length?Pt(this):bt.reading||Lt.nextTick(it,this)),nt},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(x,O){var nt=e.prototype.removeListener.call(this,x,O);return x==="readable"&&Lt.nextTick(J,this),nt},Z.prototype.removeAllListeners=function(x){var O=e.prototype.removeAllListeners.apply(this,arguments);return(x==="readable"||x===void 0)&&Lt.nextTick(J,this),O};function J(x){var O=x._readableState;O.readableListening=x.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:x.listenerCount("data")>0&&x.resume()}function it(x){u("readable nexttick read 0"),x.read(0)}Z.prototype.resume=function(){var x=this._readableState;return x.flowing||(u("resume"),x.flowing=!x.readableListening,st(this,x)),x.paused=!1,this};function st(x,O){O.resumeScheduled||(O.resumeScheduled=!0,Lt.nextTick(St,x,O))}function St(x,O){u("resume",O.reading),O.reading||x.read(0),O.resumeScheduled=!1,x.emit("resume"),H(x),O.flowing&&!O.reading&&x.read(0)}Z.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(x){var O=x._readableState;for(u("flow",O.flowing);O.flowing&&x.read()!==null;);}Z.prototype.wrap=function(x){var O=this,nt=this._readableState,bt=!1;x.on("end",function(){if(u("wrapped end"),nt.decoder&&!nt.ended){var Nt=nt.decoder.end();Nt&&Nt.length&&O.push(Nt)}O.push(null)}),x.on("data",function(Nt){if(u("wrapped data"),nt.decoder&&(Nt=nt.decoder.write(Nt)),!(nt.objectMode&&Nt==null)&&!(!nt.objectMode&&(!Nt||!Nt.length))){var _e=O.push(Nt);_e||(bt=!0,x.pause())}});for(var Ot in x)this[Ot]===void 0&&typeof x[Ot]=="function"&&(this[Ot]=function(_e){return function(){return x[_e].apply(x,arguments)}}(Ot));for(var vt=0;vt<D.length;vt++)x.on(D[vt],this.emit.bind(this,D[vt]));return this._read=function(Nt){u("wrapped _read",Nt),bt&&(bt=!1,x.resume())},this},typeof Symbol=="function"&&(Z.prototype[Symbol.asyncIterator]=function(){return N===void 0&&(N=qz()),N(this)}),Object.defineProperty(Z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}}),Z._fromList=V,Object.defineProperty(Z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function V(x,O){if(O.length===0)return null;var nt;return O.objectMode?nt=O.buffer.shift():!x||x>=O.length?(O.decoder?nt=O.buffer.join(""):O.buffer.length===1?nt=O.buffer.first():nt=O.buffer.concat(O.length),O.buffer.clear()):nt=O.buffer.consume(x,O.decoder),nt}function tt(x){var O=x._readableState;u("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,Lt.nextTick(ut,O,x))}function ut(x,O){if(u("endReadableNT",x.endEmitted,x.length),!x.endEmitted&&x.length===0&&(x.endEmitted=!0,O.readable=!1,O.emit("end"),x.autoDestroy)){var nt=O._writableState;(!nt||nt.autoDestroy&&nt.finished)&&O.destroy()}}typeof Symbol=="function"&&(Z.from=function(x,O){return C===void 0&&(C=Qz()),C(Z,x,O)});function dt(x,O){for(var nt=0,bt=x.length;nt<bt;nt++)if(x[nt]===O)return nt;return-1}return Bh}var xh,sb;function _b(){if(sb)return xh;sb=1,xh=c;var n=_o().codes,t=n.ERR_METHOD_NOT_IMPLEMENTED,e=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,_=oo();so()(c,_);function a(f,w){var y=this._transformState;y.transforming=!1;var M=y.writecb;if(M===null)return this.emit("error",new e);y.writechunk=null,y.writecb=null,w!=null&&this.push(w),M(f);var B=this._readableState;B.reading=!1,(B.needReadable||B.length<B.highWaterMark)&&this._read(B.highWaterMark)}function c(f){if(!(this instanceof c))return new c(f);_.call(this,f),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function u(){var f=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(w,y){l(f,w,y)}):l(this,null,null)}c.prototype.push=function(f,w){return this._transformState.needTransform=!1,_.prototype.push.call(this,f,w)},c.prototype._transform=function(f,w,y){y(new t("_transform()"))},c.prototype._write=function(f,w,y){var M=this._transformState;if(M.writecb=y,M.writechunk=f,M.writeencoding=w,!M.transforming){var B=this._readableState;(M.needTransform||B.needReadable||B.length<B.highWaterMark)&&this._read(B.highWaterMark)}},c.prototype._read=function(f){var w=this._transformState;w.writechunk!==null&&!w.transforming?(w.transforming=!0,this._transform(w.writechunk,w.writeencoding,w.afterTransform)):w.needTransform=!0},c.prototype._destroy=function(f,w){_.prototype._destroy.call(this,f,function(y){w(y)})};function l(f,w,y){if(w)return f.emit("error",w);if(y!=null&&f.push(y),f._writableState.length)throw new s;if(f._transformState.transforming)throw new r;return f.push(null)}return xh}var Ch,ob;function Wz(){if(ob)return Ch;ob=1,Ch=t;var n=_b();so()(t,n);function t(e){if(!(this instanceof t))return new t(e);n.call(this,e)}return t.prototype._transform=function(e,r,s){s(null,e)},Ch}var Ih,ab;function Jz(){if(ab)return Ih;ab=1;var n;function t(y){var M=!1;return function(){M||(M=!0,y.apply(void 0,arguments))}}var e=_o().codes,r=e.ERR_MISSING_ARGS,s=e.ERR_STREAM_DESTROYED;function _(y){if(y)throw y}function a(y){return y.setHeader&&typeof y.abort=="function"}function c(y,M,B,I){I=t(I);var G=!1;y.on("close",function(){G=!0}),n===void 0&&(n=zh()),n(y,{readable:M,writable:B},function(v){if(v)return I(v);G=!0,I()});var P=!1;return function(v){if(!G&&!P){if(P=!0,a(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();I(v||new s("pipe"))}}}function u(y){y()}function l(y,M){return y.pipe(M)}function f(y){return!y.length||typeof y[y.length-1]!="function"?_:y.pop()}function w(){for(var y=arguments.length,M=new Array(y),B=0;B<y;B++)M[B]=arguments[B];var I=f(M);if(Array.isArray(M[0])&&(M=M[0]),M.length<2)throw new r("streams");var G,P=M.map(function(v,N){var C=N<M.length-1,F=N>0;return c(v,C,F,function(D){G||(G=D),D&&P.forEach(u),!C&&(P.forEach(u),I(G))})});return M.reduce(l)}return Ih=w,Ih}var cb;function ub(){return cb||(cb=1,function(n,t){t=n.exports=ib(),t.Stream=t,t.Readable=t,t.Writable=W1(),t.Duplex=oo(),t.Transform=_b(),t.PassThrough=Wz(),t.finished=zh(),t.pipeline=Jz()}(zf,zf.exports)),zf.exports}var Nh,fb;function $z(){if(fb)return Nh;fb=1;const{Transform:n}=ub();return Nh=t=>class Om extends n{constructor(r,s,_,a,c){super(c),this._rate=r,this._capacity=s,this._delimitedSuffix=_,this._hashBitLength=a,this._options=c,this._state=new t,this._state.initialize(r,s),this._finalized=!1}_transform(r,s,_){let a=null;try{this.update(r,s)}catch(c){a=c}_(a)}_flush(r){let s=null;try{this.push(this.digest())}catch(_){s=_}r(s)}update(r,s){if(!yr.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return yr.isBuffer(r)||(r=yr.from(r,s)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let s=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(s=s.toString(r)),this._resetState(),s}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new Om(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}},Nh}var Oh,lb;function Zz(){if(lb)return Oh;lb=1;const{Transform:n}=ub();return Oh=t=>class km extends n{constructor(r,s,_,a){super(a),this._rate=r,this._capacity=s,this._delimitedSuffix=_,this._options=a,this._state=new t,this._state.initialize(r,s),this._finalized=!1}_transform(r,s,_){let a=null;try{this.update(r,s)}catch(c){a=c}_(a)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,s){if(!yr.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return yr.isBuffer(r)||(r=yr.from(r,s)),this._state.absorb(r),this}squeeze(r,s){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let _=this._state.squeeze(r);return s!==void 0&&(_=_.toString(s)),_}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new km(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}},Oh}var kh,pb;function Xz(){if(pb)return kh;pb=1;const n=$z(),t=Zz();return kh=function(e){const r=n(e),s=t(e);return function(_,a){switch(typeof _=="string"?_.toLowerCase():_){case"keccak224":return new r(1152,448,null,224,a);case"keccak256":return new r(1088,512,null,256,a);case"keccak384":return new r(832,768,null,384,a);case"keccak512":return new r(576,1024,null,512,a);case"sha3-224":return new r(1152,448,6,224,a);case"sha3-256":return new r(1088,512,6,256,a);case"sha3-384":return new r(832,768,6,384,a);case"sha3-512":return new r(576,1024,6,512,a);case"shake128":return new s(1344,256,31,a);case"shake256":return new s(1088,512,31,a);default:throw new Error("Invald algorithm: "+_)}}},kh}var Th={},hb;function tv(){if(hb)return Th;hb=1;const n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];return Th.p1600=function(t){for(let e=0;e<24;++e){const r=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],_=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],w=t[8]^t[18]^t[28]^t[38]^t[48],y=t[9]^t[19]^t[29]^t[39]^t[49];let M=w^(_<<1|a>>>31),B=y^(a<<1|_>>>31);const I=t[0]^M,G=t[1]^B,P=t[10]^M,v=t[11]^B,N=t[20]^M,C=t[21]^B,F=t[30]^M,D=t[31]^B,j=t[40]^M,L=t[41]^B;M=r^(c<<1|u>>>31),B=s^(u<<1|c>>>31);const Z=t[2]^M,ot=t[3]^B,pt=t[12]^M,Y=t[13]^B,At=t[22]^M,Bt=t[23]^B,ft=t[32]^M,wt=t[33]^B,Pt=t[42]^M,Ct=t[43]^B;M=_^(l<<1|f>>>31),B=a^(f<<1|l>>>31);const Mt=t[4]^M,It=t[5]^B,jt=t[14]^M,J=t[15]^B,it=t[24]^M,st=t[25]^B,St=t[34]^M,H=t[35]^B,V=t[44]^M,tt=t[45]^B;M=c^(w<<1|y>>>31),B=u^(y<<1|w>>>31);const ut=t[6]^M,dt=t[7]^B,x=t[16]^M,O=t[17]^B,nt=t[26]^M,bt=t[27]^B,Ot=t[36]^M,vt=t[37]^B,Nt=t[46]^M,_e=t[47]^B;M=l^(r<<1|s>>>31),B=f^(s<<1|r>>>31);const at=t[8]^M,Re=t[9]^B,Ye=t[18]^M,re=t[19]^B,oe=t[28]^M,He=t[29]^B,ye=t[38]^M,Ue=t[39]^B,qe=t[48]^M,ge=t[49]^B,gr=I,E=G,p=v<<4|P>>>28,d=P<<4|v>>>28,k=N<<3|C>>>29,q=C<<3|N>>>29,X=D<<9|F>>>23,ct=F<<9|D>>>23,kt=j<<18|L>>>14,Jt=L<<18|j>>>14,$t=Z<<1|ot>>>31,Zt=ot<<1|Z>>>31,Ht=Y<<12|pt>>>20,Is=pt<<12|Y>>>20,Qe=At<<10|Bt>>>22,T_=Bt<<10|At>>>22,ku=wt<<13|ft>>>19,br=ft<<13|wt>>>19,Tu=Pt<<2|Ct>>>30,z=Ct<<2|Pt>>>30,h=It<<30|Mt>>>2,g=Mt<<30|It>>>2,T=jt<<6|J>>>26,Q=J<<6|jt>>>26,et=st<<11|it>>>21,lt=it<<11|st>>>21,Tt=St<<15|H>>>17,ne=H<<15|St>>>17,Xt=tt<<29|V>>>3,ie=V<<29|tt>>>3,Wt=ut<<28|dt>>>4,tw=dt<<28|ut>>>4,ew=O<<23|x>>>9,rw=x<<23|O>>>9,nw=nt<<25|bt>>>7,iw=bt<<25|nt>>>7,sw=Ot<<21|vt>>>11,_w=vt<<21|Ot>>>11,ow=_e<<24|Nt>>>8,aw=Nt<<24|_e>>>8,cw=at<<27|Re>>>5,uw=Re<<27|at>>>5,fw=Ye<<20|re>>>12,lw=re<<20|Ye>>>12,pw=He<<7|oe>>>25,hw=oe<<7|He>>>25,ww=ye<<8|Ue>>>24,dw=Ue<<8|ye>>>24,gw=qe<<14|ge>>>18,bw=ge<<14|qe>>>18;t[0]=gr^~Ht&et,t[1]=E^~Is<,t[10]=Wt^~fw&k,t[11]=tw^~lw&q,t[20]=$t^~T&nw,t[21]=Zt^~Q&iw,t[30]=cw^~p&Qe,t[31]=uw^~d&T_,t[40]=h^~ew&pw,t[41]=g^~rw&hw,t[2]=Ht^~et&sw,t[3]=Is^~lt&_w,t[12]=fw^~k&ku,t[13]=lw^~q&br,t[22]=T^~nw&ww,t[23]=Q^~iw&dw,t[32]=p^~Qe&Tt,t[33]=d^~T_&ne,t[42]=ew^~pw&X,t[43]=rw^~hw&ct,t[4]=et^~sw&gw,t[5]=lt^~_w&bw,t[14]=k^~ku&Xt,t[15]=q^~br&ie,t[24]=nw^~ww&kt,t[25]=iw^~dw&Jt,t[34]=Qe^~Tt&ow,t[35]=T_^~ne&aw,t[44]=pw^~X&Tu,t[45]=hw^~ct&z,t[6]=sw^~gw&gr,t[7]=_w^~bw&E,t[16]=ku^~Xt&Wt,t[17]=br^~ie&tw,t[26]=ww^~kt&$t,t[27]=dw^~Jt&Zt,t[36]=Tt^~ow&cw,t[37]=ne^~aw&uw,t[46]=X^~Tu&h,t[47]=ct^~z&g,t[8]=gw^~gr&Ht,t[9]=bw^~E&Is,t[18]=Xt^~Wt&fw,t[19]=ie^~tw&lw,t[28]=kt^~$t&T,t[29]=Jt^~Zt&Q,t[38]=ow^~cw&p,t[39]=aw^~uw&d,t[48]=Tu^~h&ew,t[49]=z^~g&rw,t[0]^=n[e*2],t[1]^=n[e*2+1]}},Th}var Gh,wb;function ev(){if(wb)return Gh;wb=1;const n=tv();function t(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}return t.prototype.initialize=function(e,r){for(let s=0;s<50;++s)this.state[s]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},t.prototype.absorb=function(e){for(let r=0;r<e.length;++r)this.state[~~(this.count/4)]^=e[r]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},t.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),n.p1600(this.state),this.count=0,this.squeezing=!0},t.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const r=yr.alloc(e);for(let s=0;s<e;++s)r[s]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},t.prototype.copy=function(e){for(let r=0;r<50;++r)e.state[r]=this.state[r];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},Gh=t,Gh}var Fh,db;function rv(){return db||(db=1,Fh=Xz()(ev())),Fh}var nv=rv();const gb=C0(nv);var Of={exports:{}},iv=Of.exports,bb;function sv(){return bb||(bb=1,function(n,t){(function(e,r){n.exports=r()})(iv,function(){var e=function(_,a){if(a=a||{},typeof _!="function")throw new s("fetch must be a function");if(typeof a!="object")throw new s("defaults must be an object");if(a.retries!==void 0&&!r(a.retries))throw new s("retries must be a positive integer");if(a.retryDelay!==void 0&&!r(a.retryDelay)&&typeof a.retryDelay!="function")throw new s("retryDelay must be a positive integer or a function returning a positive integer");if(a.retryOn!==void 0&&!Array.isArray(a.retryOn)&&typeof a.retryOn!="function")throw new s("retryOn property expects an array or function");var c={retries:3,retryDelay:1e3,retryOn:[]};return a=Object.assign(c,a),function(l,f){var w=a.retries,y=a.retryDelay,M=a.retryOn;if(f&&f.retries!==void 0)if(r(f.retries))w=f.retries;else throw new s("retries must be a positive integer");if(f&&f.retryDelay!==void 0)if(r(f.retryDelay)||typeof f.retryDelay=="function")y=f.retryDelay;else throw new s("retryDelay must be a positive integer or a function returning a positive integer");if(f&&f.retryOn)if(Array.isArray(f.retryOn)||typeof f.retryOn=="function")M=f.retryOn;else throw new s("retryOn property expects an array or function");return new Promise(function(B,I){var G=function(v){var N=typeof Request<"u"&&l instanceof Request?l.clone():l;_(N,f).then(function(C){if(Array.isArray(M)&&M.indexOf(C.status)===-1)B(C);else if(typeof M=="function")try{return Promise.resolve(M(v,null,C)).then(function(F){F?P(v,null,C):B(C)}).catch(I)}catch(F){I(F)}else v<w?P(v,null,C):B(C)}).catch(function(C){if(typeof M=="function")try{Promise.resolve(M(v,C,null)).then(function(F){F?P(v,C,null):I(C)}).catch(function(F){I(F)})}catch(F){I(F)}else v<w?P(v,C,null):I(C)})};function P(v,N,C){var F=typeof y=="function"?y(v,N,C):y;setTimeout(function(){G(++v)},F)}G(0)})}};function r(_){return Number.isInteger(_)&&_>=0}function s(_){this.name="ArgumentError",this.message=_}return e})}(Of)),Of.exports}var _v=sv();const ov=C0(_v),av=()=>(async n=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(n)}catch{return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));var kf=typeof te<"u"?te:typeof self<"u"?self:typeof window<"u"?window:{};function yb(n,t){return new Promise(e=>{n.addEventListener("message",function r({data:s}){(s==null?void 0:s.type)===t&&(n.removeEventListener("message",r),e(s))})})}yb(self,"wasm_bindgen_worker_init").then(async({init:n,receiver:t})=>{const e=await Promise.resolve().then(function(){return xv});await e.default(n),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(t)});async function cv(n,t,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");const r={type:"wasm_bindgen_worker_init",init:{module_or_path:n,memory:t},receiver:e.receiver()};await Promise.all(Array.from({length:e.numThreads()},async()=>{let s;try{s=new Worker(new URL("/workerHelpers.js",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ft&&Ft.tagName.toUpperCase()==="SCRIPT"&&Ft.src||new URL("fhevm.umd.cjs",document.baseURI).href),{type:"module"})}catch{const c=await(await fetch("/workerHelpers.js")).blob(),u=URL.createObjectURL(c);s=new Worker(u)}return s.postMessage(r),await yb(s,"wasm_bindgen_worker_ready"),s})),e.build()}let i;function uu(n){const t=i.__externref_table_alloc();return i.__wbindgen_export_2.set(t,n),t}function ao(n,t){try{return n.apply(this,t)}catch(e){const r=uu(e);i.__wbindgen_exn_store(r)}}const Ab=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Ab.decode();let fu=null;function co(){return(fu===null||fu.buffer!==i.memory.buffer)&&(fu=new Uint8Array(i.memory.buffer)),fu}function Js(n,t){return n=n>>>0,Ab.decode(co().slice(n,n+t))}let A=0;const mb=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},uv=function(n,t){const e=mb.encode(n);return t.set(e),{read:n.length,written:e.length}};function Tf(n,t,e){if(e===void 0){const c=mb.encode(n),u=t(c.length,1)>>>0;return co().subarray(u,u+c.length).set(c),A=c.length,u}let r=n.length,s=t(r,1)>>>0;const _=co();let a=0;for(;a<r;a++){const c=n.charCodeAt(a);if(c>127)break;_[s+a]=c}if(a!==r){a!==0&&(n=n.slice(a)),s=e(s,r,r=a+n.length*3,1)>>>0;const c=co().subarray(s+a,s+r),u=uv(n,c);a+=u.written,s=e(s,r,a,1)>>>0}return A=a,s}let lu=null;function Dr(){return(lu===null||lu.buffer!==i.memory.buffer)&&(lu=new DataView(i.memory.buffer)),lu}function $s(n){return n==null}function Uh(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const s=n.description;return s==null?"Symbol":`Symbol(${s})`}if(t=="function"){const s=n.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(n)){const s=n.length;let _="[";s>0&&(_+=Uh(n[0]));for(let a=1;a<s;a++)_+=", "+Uh(n[a]);return _+="]",_}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
21
|
-
${n.stack}`:r}function o(n){const t=i.__wbindgen_export_2.get(n);return i.__externref_table_dealloc(n),t}function b(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(n,t){return n=n>>>0,co().subarray(n/1,n/1+t)}function S(n,t){const e=t(n.length*1,1)>>>0;return co().set(n,e/1),A=n.length,e}function Kh(){i.init_panic_hook()}function fv(n){b(n,hu);const t=i.set_server_key(n.__wbg_ptr);if(t[1])throw o(t[0])}function lv(n){let t,e;try{const r=i.shortint_pke_params_name(n);return t=r[0],e=r[1],Js(r[0],r[1])}finally{i.__wbindgen_free(t,e,1)}}function pv(n){let t,e;try{const r=i.shortint_params_name(n);return t=r[0],e=r[1],Js(r[0],r[1])}finally{i.__wbindgen_free(t,e,1)}}function Dh(n){return i.initThreadPool(n)}function hv(n){i.wbg_rayon_start_worker(n)}const wv=Object.freeze({Big:0,0:"Big",Small:1,1:"Small"}),dv=Object.freeze({Default:0,0:"Default",TfheLib:1,1:"TfheLib",DefaultKsPbs:2,2:"DefaultKsPbs",TfheLibKsPbs:3,3:"TfheLibKsPbs"}),gv=Object.freeze({Bool:0,0:"Bool",Uint4:1,1:"Uint4",Uint8:2,2:"Uint8",Uint16:3,3:"Uint16",Uint32:4,4:"Uint32",Uint64:5,5:"Uint64",Uint128:6,6:"Uint128",Uint160:7,7:"Uint160",Uint256:8,8:"Uint256",Uint512:9,9:"Uint512",Uint1024:10,10:"Uint1024",Uint2048:11,11:"Uint2048",Uint2:12,12:"Uint2",Uint6:13,13:"Uint6",Uint10:14,14:"Uint10",Uint12:15,15:"Uint12",Uint14:16,16:"Uint14",Int2:17,17:"Int2",Int4:18,18:"Int4",Int6:19,19:"Int6",Int8:20,20:"Int8",Int10:21,21:"Int10",Int12:22,22:"Int12",Int14:23,23:"Int14",Int16:24,24:"Int16",Int32:25,25:"Int32",Int64:26,26:"Int64",Int128:27,27:"Int128",Int160:28,28:"Int160",Int256:29,29:"Int256",AsciiString:30,30:"AsciiString",Int512:31,31:"Int512",Int1024:32,32:"Int1024",Int2048:33,33:"Int2048",Uint24:34,34:"Uint24",Uint40:35,35:"Uint40",Uint48:36,36:"Uint48",Uint56:37,37:"Uint56",Uint72:38,38:"Uint72",Uint80:39,39:"Uint80",Uint88:40,40:"Uint88",Uint96:41,41:"Uint96",Uint104:42,42:"Uint104",Uint112:43,43:"Uint112",Uint120:44,44:"Uint120",Uint136:45,45:"Uint136",Uint144:46,46:"Uint144",Uint152:47,47:"Uint152",Uint168:48,48:"Uint168",Uint176:49,49:"Uint176",Uint184:50,50:"Uint184",Uint192:51,51:"Uint192",Uint200:52,52:"Uint200",Uint208:53,53:"Uint208",Uint216:54,54:"Uint216",Uint224:55,55:"Uint224",Uint232:56,56:"Uint232",Uint240:57,57:"Uint240",Uint248:58,58:"Uint248",Int24:59,59:"Int24",Int40:60,60:"Int40",Int48:61,61:"Int48",Int56:62,62:"Int56",Int72:63,63:"Int72",Int80:64,64:"Int80",Int88:65,65:"Int88",Int96:66,66:"Int96",Int104:67,67:"Int104",Int112:68,68:"Int112",Int120:69,69:"Int120",Int136:70,70:"Int136",Int144:71,71:"Int144",Int152:72,72:"Int152",Int168:73,73:"Int168",Int176:74,74:"Int176",Int184:75,75:"Int184",Int192:76,76:"Int192",Int200:77,77:"Int200",Int208:78,78:"Int208",Int216:79,79:"Int216",Int224:80,80:"Int224",Int232:81,81:"Int232",Int240:82,82:"Int240",Int248:83,83:"Int248"}),bv=Object.freeze({PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:0,0:"PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:1,1:"V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1:2,2:"V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:3,3:"V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1:4,4:"V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64:5,5:"V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64",V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64_ZKV1:6,6:"V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64_ZKV1"}),yv=Object.freeze({Big:0,0:"Big",Small:1,1:"Small"}),Av=Object.freeze({KeyswitchBootstrap:0,0:"KeyswitchBootstrap",BootstrapKeyswitch:1,1:"BootstrapKeyswitch"}),mv=Object.freeze({PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:0,0:"PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_1_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128:1,1:"V1_1_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128:2,2:"V1_1_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128:3,3:"V1_1_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128:4,4:"V1_1_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128:5,5:"V1_1_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128:6,6:"V1_1_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128:7,7:"V1_1_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128:8,8:"V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128:9,9:"V1_1_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128:10,10:"V1_1_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128:11,11:"V1_1_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128:12,12:"V1_1_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128:13,13:"V1_1_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128:14,14:"V1_1_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128:15,15:"V1_1_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128:16,16:"V1_1_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128:17,17:"V1_1_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128:18,18:"V1_1_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128:19,19:"V1_1_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128:20,20:"V1_1_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128:21,21:"V1_1_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128:22,22:"V1_1_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128:23,23:"V1_1_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128:24,24:"V1_1_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128:25,25:"V1_1_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128:26,26:"V1_1_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128:27,27:"V1_1_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128:28,28:"V1_1_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128:29,29:"V1_1_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128:30,30:"V1_1_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128:31,31:"V1_1_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128:32,32:"V1_1_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128:33,33:"V1_1_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128:34,34:"V1_1_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128:35,35:"V1_1_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128:36,36:"V1_1_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128:37,37:"V1_1_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128:38,38:"V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128:39,39:"V1_1_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128:40,40:"V1_1_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:41,41:"V1_1_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:42,42:"V1_1_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:43,43:"V1_1_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:44,44:"V1_1_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:45,45:"V1_1_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:46,46:"V1_1_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:47,47:"V1_1_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:48,48:"V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:49,49:"V1_1_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:50,50:"V1_1_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:51,51:"V1_1_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:52,52:"V1_1_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:53,53:"V1_1_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:54,54:"V1_1_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:55,55:"V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:56,56:"V1_1_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:57,57:"V1_1_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:58,58:"V1_1_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:59,59:"V1_1_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:60,60:"V1_1_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:61,61:"V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:62,62:"V1_1_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:63,63:"V1_1_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:64,64:"V1_1_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:65,65:"V1_1_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:66,66:"V1_1_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:67,67:"V1_1_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:68,68:"V1_1_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:69,69:"V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:70,70:"V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:71,71:"V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128:72,72:"V1_0_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128:73,73:"V1_0_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128:74,74:"V1_0_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128:75,75:"V1_0_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128:76,76:"V1_0_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128:77,77:"V1_0_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128:78,78:"V1_0_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128:79,79:"V1_0_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128:80,80:"V1_0_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128:81,81:"V1_0_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128:82,82:"V1_0_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128:83,83:"V1_0_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128:84,84:"V1_0_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128:85,85:"V1_0_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128:86,86:"V1_0_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128:87,87:"V1_0_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128:88,88:"V1_0_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128:89,89:"V1_0_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128:90,90:"V1_0_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128:91,91:"V1_0_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128:92,92:"V1_0_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128:93,93:"V1_0_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128:94,94:"V1_0_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128:95,95:"V1_0_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128:96,96:"V1_0_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128:97,97:"V1_0_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128:98,98:"V1_0_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128:99,99:"V1_0_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128:100,100:"V1_0_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128:101,101:"V1_0_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128:102,102:"V1_0_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128:103,103:"V1_0_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128:104,104:"V1_0_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128:105,105:"V1_0_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128:106,106:"V1_0_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128:107,107:"V1_0_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128:108,108:"V1_0_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128:109,109:"V1_0_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128:110,110:"V1_0_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128:111,111:"V1_0_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:112,112:"V1_0_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:113,113:"V1_0_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:114,114:"V1_0_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:115,115:"V1_0_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:116,116:"V1_0_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:117,117:"V1_0_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:118,118:"V1_0_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:119,119:"V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:120,120:"V1_0_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:121,121:"V1_0_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:122,122:"V1_0_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:123,123:"V1_0_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:124,124:"V1_0_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:125,125:"V1_0_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:126,126:"V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:127,127:"V1_0_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:128,128:"V1_0_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:129,129:"V1_0_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:130,130:"V1_0_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:131,131:"V1_0_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:132,132:"V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:133,133:"V1_0_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:134,134:"V1_0_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:135,135:"V1_0_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:136,136:"V1_0_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:137,137:"V1_0_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:138,138:"V1_0_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:139,139:"V1_0_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:140,140:"V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:141,141:"V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:142,142:"V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V0_11_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M64:143,143:"V0_11_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64:144,144:"V0_11_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M64:145,145:"V0_11_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M64:146,146:"V0_11_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M64:147,147:"V0_11_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M64:148,148:"V0_11_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M64:149,149:"V0_11_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64:150,150:"V0_11_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M64:151,151:"V0_11_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M64:152,152:"V0_11_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M64:153,153:"V0_11_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M64:154,154:"V0_11_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M64:155,155:"V0_11_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M64:156,156:"V0_11_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M64:157,157:"V0_11_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M64:158,158:"V0_11_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M64:159,159:"V0_11_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64:160,160:"V0_11_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M64:161,161:"V0_11_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M64:162,162:"V0_11_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M64:163,163:"V0_11_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M64:164,164:"V0_11_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M64:165,165:"V0_11_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M64:166,166:"V0_11_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M64:167,167:"V0_11_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M64:168,168:"V0_11_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M64:169,169:"V0_11_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M64:170,170:"V0_11_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M64:171,171:"V0_11_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M64:172,172:"V0_11_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M64:173,173:"V0_11_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M64:174,174:"V0_11_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M64:175,175:"V0_11_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M64:176,176:"V0_11_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M64:177,177:"V0_11_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M64:178,178:"V0_11_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M64:179,179:"V0_11_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64:180,180:"V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M64:181,181:"V0_11_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M64:182,182:"V0_11_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:183,183:"V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:184,184:"V0_11_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:185,185:"V0_11_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:186,186:"V0_11_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:187,187:"V0_11_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:188,188:"V0_11_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:189,189:"V0_11_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:190,190:"V0_11_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:191,191:"V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:192,192:"V0_11_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:193,193:"V0_11_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:194,194:"V0_11_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:195,195:"V0_11_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:196,196:"V0_11_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:197,197:"V0_11_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:198,198:"V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:199,199:"V0_11_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:200,200:"V0_11_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:201,201:"V0_11_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:202,202:"V0_11_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:203,203:"V0_11_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:204,204:"V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:205,205:"V0_11_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:206,206:"V0_11_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:207,207:"V0_11_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:208,208:"V0_11_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:209,209:"V0_11_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:210,210:"V0_11_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:211,211:"V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:212,212:"V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:213,213:"V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:214,214:"V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M64"}),Sb=Object.freeze({Proof:0,0:"Proof",Verify:1,1:"Verify"}),Sv=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_boolean_free(n>>>0,1));let Rv=class{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Sv.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_boolean_free(t,0)}static get_parameters(t){const e=i.boolean_get_parameters(t);if(e[2])throw o(e[1]);return t_.__wrap(e[0])}static new_gaussian_from_std_dev(t){const e=i.boolean_new_gaussian_from_std_dev(t);return Xs.__wrap(e)}static try_new_t_uniform(t){const e=i.boolean_try_new_t_uniform(t);if(e[2])throw o(e[1]);return Xs.__wrap(e[0])}static new_parameters(t,e,r,s,_,a,c,u,l,f){b(s,Xs),b(_,Xs);const w=i.boolean_new_parameters(t,e,r,s.__wbg_ptr,_.__wbg_ptr,a,c,u,l,f);return t_.__wrap(w)}static new_client_key_from_seed_and_parameters(t,e,r){b(r,t_);const s=i.boolean_new_client_key_from_seed_and_parameters(t,e,r.__wbg_ptr);return _r.__wrap(s)}static new_client_key(t){b(t,t_);const e=i.boolean_new_client_key(t.__wbg_ptr);return _r.__wrap(e)}static new_public_key(t){b(t,_r);const e=i.boolean_new_public_key(t.__wbg_ptr);return e_.__wrap(e)}static new_compressed_server_key(t){b(t,_r);const e=i.boolean_new_compressed_server_key(t.__wbg_ptr);return uo.__wrap(e)}static encrypt(t,e){b(t,_r);const r=i.boolean_encrypt(t.__wbg_ptr,e);return Lr.__wrap(r)}static encrypt_compressed(t,e){b(t,_r);const r=i.boolean_encrypt_compressed(t.__wbg_ptr,e);return Zs.__wrap(r)}static decompress_ciphertext(t){b(t,Zs);const e=i.boolean_decompress_ciphertext(t.__wbg_ptr);return Lr.__wrap(e)}static encrypt_with_public_key(t,e){b(t,e_);const r=i.boolean_encrypt_with_public_key(t.__wbg_ptr,e);return Lr.__wrap(r)}static trivial_encrypt(t){const e=i.boolean_trivial_encrypt(t);return Lr.__wrap(e)}static decrypt(t,e){return b(t,_r),b(e,Lr),i.boolean_decrypt(t.__wbg_ptr,e.__wbg_ptr)!==0}static serialize_ciphertext(t){b(t,Lr);const e=i.boolean_serialize_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_ciphertext(e,r);if(s[2])throw o(s[1]);return Lr.__wrap(s[0])}static serialize_compressed_ciphertext(t){b(t,Zs);const e=i.boolean_serialize_compressed_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_compressed_ciphertext(e,r);if(s[2])throw o(s[1]);return Zs.__wrap(s[0])}static serialize_client_key(t){b(t,_r);const e=i.boolean_serialize_client_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_client_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_client_key(e,r);if(s[2])throw o(s[1]);return _r.__wrap(s[0])}static serialize_public_key(t){b(t,e_);const e=i.boolean_serialize_public_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_public_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_public_key(e,r);if(s[2])throw o(s[1]);return e_.__wrap(s[0])}static serialize_compressed_server_key(t){b(t,uo);const e=i.boolean_serialize_compressed_server_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_server_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_compressed_server_key(e,r);if(s[2])throw o(s[1]);return uo.__wrap(s[0])}};const Rb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanciphertext_free(n>>>0,1));class Lr{static __wrap(t){t=t>>>0;const e=Object.create(Lr.prototype);return e.__wbg_ptr=t,Rb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanciphertext_free(t,0)}}const Eb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanclientkey_free(n>>>0,1));class _r{static __wrap(t){t=t>>>0;const e=Object.create(_r.prototype);return e.__wbg_ptr=t,Eb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Eb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanclientkey_free(t,0)}}const Pb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleancompressedciphertext_free(n>>>0,1));class Zs{static __wrap(t){t=t>>>0;const e=Object.create(Zs.prototype);return e.__wbg_ptr=t,Pb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleancompressedciphertext_free(t,0)}}const zb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleancompressedserverkey_free(n>>>0,1));class uo{static __wrap(t){t=t>>>0;const e=Object.create(uo.prototype);return e.__wbg_ptr=t,zb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleancompressedserverkey_free(t,0)}}const vb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleannoisedistribution_free(n>>>0,1));class Xs{static __wrap(t){t=t>>>0;const e=Object.create(Xs.prototype);return e.__wbg_ptr=t,vb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleannoisedistribution_free(t,0)}}const Mb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanparameters_free(n>>>0,1));class t_{static __wrap(t){t=t>>>0;const e=Object.create(t_.prototype);return e.__wbg_ptr=t,Mb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanparameters_free(t,0)}}const Bb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanpublickey_free(n>>>0,1));class e_{static __wrap(t){t=t>>>0;const e=Object.create(e_.prototype);return e.__wbg_ptr=t,Bb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanpublickey_free(t,0)}}const xb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactciphertextlist_free(n>>>0,1));class fs{static __wrap(t){t=t>>>0;const e=Object.create(fs.prototype);return e.__wbg_ptr=t,xb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactciphertextlist_free(t,0)}static builder(t){b(t,ar);const e=i.compactciphertextlist_builder(t.__wbg_ptr);if(e[2])throw o(e[1]);return pu.__wrap(e[0])}len(){return i.compactciphertextlist_len(this.__wbg_ptr)>>>0}is_empty(){return i.compactciphertextlist_is_empty(this.__wbg_ptr)!==0}get_kind_of(t){const e=i.compactciphertextlist_get_kind_of(this.__wbg_ptr,t);return e===84?void 0:e}expand(){const t=i.compactciphertextlist_expand(this.__wbg_ptr);if(t[2])throw o(t[1]);return fo.__wrap(t[0])}serialize(){const t=i.compactciphertextlist_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compactciphertextlist_deserialize(e,r);if(s[2])throw o(s[1]);return fs.__wrap(s[0])}safe_serialize(t){const e=i.compactciphertextlist_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compactciphertextlist_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fs.__wrap(_[0])}}const Cb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactciphertextlistbuilder_free(n>>>0,1));class pu{static __wrap(t){t=t>>>0;const e=Object.create(pu.prototype);return e.__wbg_ptr=t,Cb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Cb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactciphertextlistbuilder_free(t,0)}push_u24(t){const e=i.compactciphertextlistbuilder_push_u24(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u40(t){const e=i.compactciphertextlistbuilder_push_u40(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u48(t){const e=i.compactciphertextlistbuilder_push_u48(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u56(t){const e=i.compactciphertextlistbuilder_push_u56(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u2(t){const e=i.compactciphertextlistbuilder_push_u2(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u4(t){const e=i.compactciphertextlistbuilder_push_u4(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u6(t){const e=i.compactciphertextlistbuilder_push_u6(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u8(t){const e=i.compactciphertextlistbuilder_push_u8(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u10(t){const e=i.compactciphertextlistbuilder_push_u10(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u12(t){const e=i.compactciphertextlistbuilder_push_u12(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u14(t){const e=i.compactciphertextlistbuilder_push_u14(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u16(t){const e=i.compactciphertextlistbuilder_push_u16(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u32(t){const e=i.compactciphertextlistbuilder_push_u32(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u64(t){const e=i.compactciphertextlistbuilder_push_u64(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i24(t){const e=i.compactciphertextlistbuilder_push_i24(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i40(t){const e=i.compactciphertextlistbuilder_push_i40(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i48(t){const e=i.compactciphertextlistbuilder_push_i48(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i56(t){const e=i.compactciphertextlistbuilder_push_i56(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i2(t){const e=i.compactciphertextlistbuilder_push_i2(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i4(t){const e=i.compactciphertextlistbuilder_push_i4(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i6(t){const e=i.compactciphertextlistbuilder_push_i6(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i8(t){const e=i.compactciphertextlistbuilder_push_i8(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i10(t){const e=i.compactciphertextlistbuilder_push_i10(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i12(t){const e=i.compactciphertextlistbuilder_push_i12(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i14(t){const e=i.compactciphertextlistbuilder_push_i14(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i16(t){const e=i.compactciphertextlistbuilder_push_i16(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i32(t){const e=i.compactciphertextlistbuilder_push_i32(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i64(t){const e=i.compactciphertextlistbuilder_push_i64(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u128(t){const e=i.compactciphertextlistbuilder_push_u128(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u160(t){const e=i.compactciphertextlistbuilder_push_u160(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u256(t){const e=i.compactciphertextlistbuilder_push_u256(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u512(t){const e=i.compactciphertextlistbuilder_push_u512(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u1024(t){const e=i.compactciphertextlistbuilder_push_u1024(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u2048(t){const e=i.compactciphertextlistbuilder_push_u2048(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i128(t){const e=i.compactciphertextlistbuilder_push_i128(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i160(t){const e=i.compactciphertextlistbuilder_push_i160(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i256(t){const e=i.compactciphertextlistbuilder_push_i256(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i512(t){const e=i.compactciphertextlistbuilder_push_i512(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i1024(t){const e=i.compactciphertextlistbuilder_push_i1024(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i2048(t){const e=i.compactciphertextlistbuilder_push_i2048(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_boolean(t){const e=i.compactciphertextlistbuilder_push_boolean(this.__wbg_ptr,t);if(e[1])throw o(e[0])}build(){const t=i.compactciphertextlistbuilder_build(this.__wbg_ptr);if(t[2])throw o(t[1]);return fs.__wrap(t[0])}build_packed(){const t=i.compactciphertextlistbuilder_build_packed(this.__wbg_ptr);if(t[2])throw o(t[1]);return fs.__wrap(t[0])}build_with_proof_packed(t,e,r){b(t,zr);const s=S(e,i.__wbindgen_malloc),_=A,a=i.compactciphertextlistbuilder_build_with_proof_packed(this.__wbg_ptr,t.__wbg_ptr,s,_,r);if(a[2])throw o(a[1]);return La.__wrap(a[0])}push_u72(t){const e=i.compactciphertextlistbuilder_push_u72(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u80(t){const e=i.compactciphertextlistbuilder_push_u80(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u88(t){const e=i.compactciphertextlistbuilder_push_u88(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u96(t){const e=i.compactciphertextlistbuilder_push_u96(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u104(t){const e=i.compactciphertextlistbuilder_push_u104(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u112(t){const e=i.compactciphertextlistbuilder_push_u112(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u120(t){const e=i.compactciphertextlistbuilder_push_u120(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u136(t){const e=i.compactciphertextlistbuilder_push_u136(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u144(t){const e=i.compactciphertextlistbuilder_push_u144(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u152(t){const e=i.compactciphertextlistbuilder_push_u152(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u168(t){const e=i.compactciphertextlistbuilder_push_u168(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u176(t){const e=i.compactciphertextlistbuilder_push_u176(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u184(t){const e=i.compactciphertextlistbuilder_push_u184(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u192(t){const e=i.compactciphertextlistbuilder_push_u192(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u200(t){const e=i.compactciphertextlistbuilder_push_u200(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u208(t){const e=i.compactciphertextlistbuilder_push_u208(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u216(t){const e=i.compactciphertextlistbuilder_push_u216(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u224(t){const e=i.compactciphertextlistbuilder_push_u224(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u232(t){const e=i.compactciphertextlistbuilder_push_u232(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u240(t){const e=i.compactciphertextlistbuilder_push_u240(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u248(t){const e=i.compactciphertextlistbuilder_push_u248(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i72(t){const e=i.compactciphertextlistbuilder_push_i72(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i80(t){const e=i.compactciphertextlistbuilder_push_i80(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i88(t){const e=i.compactciphertextlistbuilder_push_i88(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i96(t){const e=i.compactciphertextlistbuilder_push_i96(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i104(t){const e=i.compactciphertextlistbuilder_push_i104(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i112(t){const e=i.compactciphertextlistbuilder_push_i112(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i120(t){const e=i.compactciphertextlistbuilder_push_i120(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i136(t){const e=i.compactciphertextlistbuilder_push_i136(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i144(t){const e=i.compactciphertextlistbuilder_push_i144(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i152(t){const e=i.compactciphertextlistbuilder_push_i152(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i168(t){const e=i.compactciphertextlistbuilder_push_i168(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i176(t){const e=i.compactciphertextlistbuilder_push_i176(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i184(t){const e=i.compactciphertextlistbuilder_push_i184(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i192(t){const e=i.compactciphertextlistbuilder_push_i192(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i200(t){const e=i.compactciphertextlistbuilder_push_i200(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i208(t){const e=i.compactciphertextlistbuilder_push_i208(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i216(t){const e=i.compactciphertextlistbuilder_push_i216(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i224(t){const e=i.compactciphertextlistbuilder_push_i224(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i232(t){const e=i.compactciphertextlistbuilder_push_i232(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i240(t){const e=i.compactciphertextlistbuilder_push_i240(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i248(t){const e=i.compactciphertextlistbuilder_push_i248(this.__wbg_ptr,t);if(e[1])throw o(e[0])}}const Ib=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactciphertextlistexpander_free(n>>>0,1));class fo{static __wrap(t){t=t>>>0;const e=Object.create(fo.prototype);return e.__wbg_ptr=t,Ib.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ib.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactciphertextlistexpander_free(t,0)}get_uint24(t){const e=i.compactciphertextlistexpander_get_uint24(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ri.__wrap(e[0])}get_uint40(t){const e=i.compactciphertextlistexpander_get_uint40(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ai.__wrap(e[0])}get_uint48(t){const e=i.compactciphertextlistexpander_get_uint48(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ci.__wrap(e[0])}get_uint56(t){const e=i.compactciphertextlistexpander_get_uint56(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return fi.__wrap(e[0])}get_uint72(t){const e=i.compactciphertextlistexpander_get_uint72(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return hi.__wrap(e[0])}get_uint80(t){const e=i.compactciphertextlistexpander_get_uint80(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return di.__wrap(e[0])}get_uint88(t){const e=i.compactciphertextlistexpander_get_uint88(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return gi.__wrap(e[0])}get_uint96(t){const e=i.compactciphertextlistexpander_get_uint96(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return bi.__wrap(e[0])}get_uint104(t){const e=i.compactciphertextlistexpander_get_uint104(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return On.__wrap(e[0])}get_uint112(t){const e=i.compactciphertextlistexpander_get_uint112(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return kn.__wrap(e[0])}get_uint120(t){const e=i.compactciphertextlistexpander_get_uint120(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Gn.__wrap(e[0])}get_uint136(t){const e=i.compactciphertextlistexpander_get_uint136(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Un.__wrap(e[0])}get_uint144(t){const e=i.compactciphertextlistexpander_get_uint144(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Dn.__wrap(e[0])}get_uint152(t){const e=i.compactciphertextlistexpander_get_uint152(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Ln.__wrap(e[0])}get_uint168(t){const e=i.compactciphertextlistexpander_get_uint168(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Yn.__wrap(e[0])}get_uint176(t){const e=i.compactciphertextlistexpander_get_uint176(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Hn.__wrap(e[0])}get_uint184(t){const e=i.compactciphertextlistexpander_get_uint184(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return qn.__wrap(e[0])}get_uint192(t){const e=i.compactciphertextlistexpander_get_uint192(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Qn.__wrap(e[0])}get_uint200(t){const e=i.compactciphertextlistexpander_get_uint200(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Jn.__wrap(e[0])}get_uint208(t){const e=i.compactciphertextlistexpander_get_uint208(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Zn.__wrap(e[0])}get_uint216(t){const e=i.compactciphertextlistexpander_get_uint216(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Xn.__wrap(e[0])}get_uint224(t){const e=i.compactciphertextlistexpander_get_uint224(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ti.__wrap(e[0])}get_uint232(t){const e=i.compactciphertextlistexpander_get_uint232(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ei.__wrap(e[0])}get_uint240(t){const e=i.compactciphertextlistexpander_get_uint240(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ni.__wrap(e[0])}get_uint248(t){const e=i.compactciphertextlistexpander_get_uint248(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ii.__wrap(e[0])}get_uint256(t){const e=i.compactciphertextlistexpander_get_uint256(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return si.__wrap(e[0])}get_uint2(t){const e=i.compactciphertextlistexpander_get_uint2(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Wn.__wrap(e[0])}get_uint4(t){const e=i.compactciphertextlistexpander_get_uint4(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return oi.__wrap(e[0])}get_uint6(t){const e=i.compactciphertextlistexpander_get_uint6(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return li.__wrap(e[0])}get_uint8(t){const e=i.compactciphertextlistexpander_get_uint8(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return wi.__wrap(e[0])}get_uint10(t){const e=i.compactciphertextlistexpander_get_uint10(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return In.__wrap(e[0])}get_uint12(t){const e=i.compactciphertextlistexpander_get_uint12(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Tn.__wrap(e[0])}get_uint14(t){const e=i.compactciphertextlistexpander_get_uint14(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Kn.__wrap(e[0])}get_uint16(t){const e=i.compactciphertextlistexpander_get_uint16(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return jn.__wrap(e[0])}get_uint32(t){const e=i.compactciphertextlistexpander_get_uint32(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return _i.__wrap(e[0])}get_uint64(t){const e=i.compactciphertextlistexpander_get_uint64(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return pi.__wrap(e[0])}get_uint128(t){const e=i.compactciphertextlistexpander_get_uint128(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Fn.__wrap(e[0])}get_uint160(t){const e=i.compactciphertextlistexpander_get_uint160(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Vn.__wrap(e[0])}get_uint512(t){const e=i.compactciphertextlistexpander_get_uint512(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ui.__wrap(e[0])}get_uint1024(t){const e=i.compactciphertextlistexpander_get_uint1024(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Nn.__wrap(e[0])}get_uint2048(t){const e=i.compactciphertextlistexpander_get_uint2048(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return $n.__wrap(e[0])}get_int24(t){const e=i.compactciphertextlistexpander_get_int24(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return wn.__wrap(e[0])}get_int40(t){const e=i.compactciphertextlistexpander_get_int40(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return mn.__wrap(e[0])}get_int48(t){const e=i.compactciphertextlistexpander_get_int48(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Sn.__wrap(e[0])}get_int56(t){const e=i.compactciphertextlistexpander_get_int56(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return En.__wrap(e[0])}get_int72(t){const e=i.compactciphertextlistexpander_get_int72(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return vn.__wrap(e[0])}get_int80(t){const e=i.compactciphertextlistexpander_get_int80(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Bn.__wrap(e[0])}get_int88(t){const e=i.compactciphertextlistexpander_get_int88(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return xn.__wrap(e[0])}get_int96(t){const e=i.compactciphertextlistexpander_get_int96(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Cn.__wrap(e[0])}get_int104(t){const e=i.compactciphertextlistexpander_get_int104(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Hr.__wrap(e[0])}get_int112(t){const e=i.compactciphertextlistexpander_get_int112(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return qr.__wrap(e[0])}get_int120(t){const e=i.compactciphertextlistexpander_get_int120(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Wr.__wrap(e[0])}get_int136(t){const e=i.compactciphertextlistexpander_get_int136(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return $r.__wrap(e[0])}get_int144(t){const e=i.compactciphertextlistexpander_get_int144(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Xr.__wrap(e[0])}get_int152(t){const e=i.compactciphertextlistexpander_get_int152(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return tn.__wrap(e[0])}get_int168(t){const e=i.compactciphertextlistexpander_get_int168(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return nn.__wrap(e[0])}get_int176(t){const e=i.compactciphertextlistexpander_get_int176(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return sn.__wrap(e[0])}get_int184(t){const e=i.compactciphertextlistexpander_get_int184(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return _n.__wrap(e[0])}get_int192(t){const e=i.compactciphertextlistexpander_get_int192(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return on.__wrap(e[0])}get_int200(t){const e=i.compactciphertextlistexpander_get_int200(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return cn.__wrap(e[0])}get_int208(t){const e=i.compactciphertextlistexpander_get_int208(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return fn.__wrap(e[0])}get_int216(t){const e=i.compactciphertextlistexpander_get_int216(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ln.__wrap(e[0])}get_int224(t){const e=i.compactciphertextlistexpander_get_int224(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return pn.__wrap(e[0])}get_int232(t){const e=i.compactciphertextlistexpander_get_int232(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return hn.__wrap(e[0])}get_int240(t){const e=i.compactciphertextlistexpander_get_int240(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return dn.__wrap(e[0])}get_int248(t){const e=i.compactciphertextlistexpander_get_int248(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return gn.__wrap(e[0])}get_int2(t){const e=i.compactciphertextlistexpander_get_int2(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return an.__wrap(e[0])}get_int4(t){const e=i.compactciphertextlistexpander_get_int4(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return An.__wrap(e[0])}get_int6(t){const e=i.compactciphertextlistexpander_get_int6(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Pn.__wrap(e[0])}get_int8(t){const e=i.compactciphertextlistexpander_get_int8(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Mn.__wrap(e[0])}get_int10(t){const e=i.compactciphertextlistexpander_get_int10(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Vr.__wrap(e[0])}get_int12(t){const e=i.compactciphertextlistexpander_get_int12(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Qr.__wrap(e[0])}get_int14(t){const e=i.compactciphertextlistexpander_get_int14(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Zr.__wrap(e[0])}get_int16(t){const e=i.compactciphertextlistexpander_get_int16(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return en.__wrap(e[0])}get_int32(t){const e=i.compactciphertextlistexpander_get_int32(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return yn.__wrap(e[0])}get_int64(t){const e=i.compactciphertextlistexpander_get_int64(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return zn.__wrap(e[0])}get_int128(t){const e=i.compactciphertextlistexpander_get_int128(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Jr.__wrap(e[0])}get_int160(t){const e=i.compactciphertextlistexpander_get_int160(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return rn.__wrap(e[0])}get_int256(t){const e=i.compactciphertextlistexpander_get_int256(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return bn.__wrap(e[0])}get_int512(t){const e=i.compactciphertextlistexpander_get_int512(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Rn.__wrap(e[0])}get_int1024(t){const e=i.compactciphertextlistexpander_get_int1024(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Yr.__wrap(e[0])}get_int2048(t){const e=i.compactciphertextlistexpander_get_int2048(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return un.__wrap(e[0])}get_bool(t){const e=i.compactciphertextlistexpander_get_bool(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return jr.__wrap(e[0])}len(){return i.compactciphertextlistexpander_len(this.__wbg_ptr)>>>0}is_empty(){return i.compactciphertextlistexpander_is_empty(this.__wbg_ptr)!==0}get_kind_of(t){const e=i.compactciphertextlistexpander_get_kind_of(this.__wbg_ptr,t);return e===84?void 0:e}}const Nb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactpkecrs_free(n>>>0,1));class zr{static __wrap(t){t=t>>>0;const e=Object.create(zr.prototype);return e.__wbg_ptr=t,Nb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactpkecrs_free(t,0)}serialize(t){const e=i.compactpkecrs_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compactpkecrs_deserialize(e,r);if(s[2])throw o(s[1]);return zr.__wrap(s[0])}safe_serialize(t){const e=i.compactpkecrs_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compactpkecrs_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return zr.__wrap(_[0])}static from_config(t,e){b(t,o_);const r=i.compactpkecrs_from_config(t.__wbg_ptr,e);if(r[2])throw o(r[1]);return zr.__wrap(r[0])}static deserialize_from_public_params(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compactpkecrs_deserialize_from_public_params(e,r);if(s[2])throw o(s[1]);return zr.__wrap(s[0])}static safe_deserialize_from_public_params(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compactpkecrs_safe_deserialize_from_public_params(r,s,e);if(_[2])throw o(_[1]);return zr.__wrap(_[0])}}const Ob=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfhebool_free(n>>>0,1));class lo{static __wrap(t){t=t>>>0;const e=Object.create(lo.prototype);return e.__wbg_ptr=t,Ob.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ob.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfhebool_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfhebool_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return lo.__wrap(r[0])}decompress(){const t=i.compressedfhebool_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return jr.__wrap(t[0])}serialize(){const t=i.compressedfhebool_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfhebool_deserialize(e,r);if(s[2])throw o(s[1]);return lo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfhebool_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfhebool_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return lo.__wrap(_[0])}}const kb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint10_free(n>>>0,1));class po{static __wrap(t){t=t>>>0;const e=Object.create(po.prototype);return e.__wbg_ptr=t,kb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return po.__wrap(r[0])}decompress(){const t=i.compressedfheint10_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Vr.__wrap(t[0])}serialize(){const t=i.compressedfheint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint10_deserialize(e,r);if(s[2])throw o(s[1]);return po.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return po.__wrap(_[0])}}const Tb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint1024_free(n>>>0,1));class ho{static __wrap(t){t=t>>>0;const e=Object.create(ho.prototype);return e.__wbg_ptr=t,Tb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ho.__wrap(r[0])}decompress(){const t=i.compressedfheint1024_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Yr.__wrap(t[0])}serialize(){const t=i.compressedfheint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint1024_deserialize(e,r);if(s[2])throw o(s[1]);return ho.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ho.__wrap(_[0])}}const Gb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint104_free(n>>>0,1));class wo{static __wrap(t){t=t>>>0;const e=Object.create(wo.prototype);return e.__wbg_ptr=t,Gb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wo.__wrap(r[0])}decompress(){const t=i.compressedfheint104_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Hr.__wrap(t[0])}serialize(){const t=i.compressedfheint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint104_deserialize(e,r);if(s[2])throw o(s[1]);return wo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wo.__wrap(_[0])}}const Fb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint112_free(n>>>0,1));class go{static __wrap(t){t=t>>>0;const e=Object.create(go.prototype);return e.__wbg_ptr=t,Fb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Fb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return go.__wrap(r[0])}decompress(){const t=i.compressedfheint112_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return qr.__wrap(t[0])}serialize(){const t=i.compressedfheint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint112_deserialize(e,r);if(s[2])throw o(s[1]);return go.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return go.__wrap(_[0])}}const Ub=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint12_free(n>>>0,1));class bo{static __wrap(t){t=t>>>0;const e=Object.create(bo.prototype);return e.__wbg_ptr=t,Ub.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ub.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bo.__wrap(r[0])}decompress(){const t=i.compressedfheint12_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Qr.__wrap(t[0])}serialize(){const t=i.compressedfheint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint12_deserialize(e,r);if(s[2])throw o(s[1]);return bo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return bo.__wrap(_[0])}}const Kb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint120_free(n>>>0,1));class yo{static __wrap(t){t=t>>>0;const e=Object.create(yo.prototype);return e.__wbg_ptr=t,Kb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yo.__wrap(r[0])}decompress(){const t=i.compressedfheint120_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Wr.__wrap(t[0])}serialize(){const t=i.compressedfheint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint120_deserialize(e,r);if(s[2])throw o(s[1]);return yo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return yo.__wrap(_[0])}}const Db=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint128_free(n>>>0,1));class Ao{static __wrap(t){t=t>>>0;const e=Object.create(Ao.prototype);return e.__wbg_ptr=t,Db.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Db.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ao.__wrap(r[0])}decompress(){const t=i.compressedfheint128_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Jr.__wrap(t[0])}serialize(){const t=i.compressedfheint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint128_deserialize(e,r);if(s[2])throw o(s[1]);return Ao.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ao.__wrap(_[0])}}const Lb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint136_free(n>>>0,1));class mo{static __wrap(t){t=t>>>0;const e=Object.create(mo.prototype);return e.__wbg_ptr=t,Lb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mo.__wrap(r[0])}decompress(){const t=i.compressedfheint136_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return $r.__wrap(t[0])}serialize(){const t=i.compressedfheint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint136_deserialize(e,r);if(s[2])throw o(s[1]);return mo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return mo.__wrap(_[0])}}const jb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint14_free(n>>>0,1));class So{static __wrap(t){t=t>>>0;const e=Object.create(So.prototype);return e.__wbg_ptr=t,jb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return So.__wrap(r[0])}decompress(){const t=i.compressedfheint14_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Zr.__wrap(t[0])}serialize(){const t=i.compressedfheint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint14_deserialize(e,r);if(s[2])throw o(s[1]);return So.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return So.__wrap(_[0])}}const Vb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint144_free(n>>>0,1));class Ro{static __wrap(t){t=t>>>0;const e=Object.create(Ro.prototype);return e.__wbg_ptr=t,Vb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ro.__wrap(r[0])}decompress(){const t=i.compressedfheint144_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Xr.__wrap(t[0])}serialize(){const t=i.compressedfheint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint144_deserialize(e,r);if(s[2])throw o(s[1]);return Ro.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ro.__wrap(_[0])}}const Yb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint152_free(n>>>0,1));class Eo{static __wrap(t){t=t>>>0;const e=Object.create(Eo.prototype);return e.__wbg_ptr=t,Yb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Eo.__wrap(r[0])}decompress(){const t=i.compressedfheint152_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return tn.__wrap(t[0])}serialize(){const t=i.compressedfheint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint152_deserialize(e,r);if(s[2])throw o(s[1]);return Eo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Eo.__wrap(_[0])}}const Hb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint16_free(n>>>0,1));class Po{static __wrap(t){t=t>>>0;const e=Object.create(Po.prototype);return e.__wbg_ptr=t,Hb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Hb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Po.__wrap(r[0])}decompress(){const t=i.compressedfheint16_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return en.__wrap(t[0])}serialize(){const t=i.compressedfheint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint16_deserialize(e,r);if(s[2])throw o(s[1]);return Po.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Po.__wrap(_[0])}}const qb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint160_free(n>>>0,1));class zo{static __wrap(t){t=t>>>0;const e=Object.create(zo.prototype);return e.__wbg_ptr=t,qb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zo.__wrap(r[0])}decompress(){const t=i.compressedfheint160_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return rn.__wrap(t[0])}serialize(){const t=i.compressedfheint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint160_deserialize(e,r);if(s[2])throw o(s[1]);return zo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return zo.__wrap(_[0])}}const Qb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint168_free(n>>>0,1));class vo{static __wrap(t){t=t>>>0;const e=Object.create(vo.prototype);return e.__wbg_ptr=t,Qb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Qb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vo.__wrap(r[0])}decompress(){const t=i.compressedfheint168_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return nn.__wrap(t[0])}serialize(){const t=i.compressedfheint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint168_deserialize(e,r);if(s[2])throw o(s[1]);return vo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return vo.__wrap(_[0])}}const Wb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint176_free(n>>>0,1));class Mo{static __wrap(t){t=t>>>0;const e=Object.create(Mo.prototype);return e.__wbg_ptr=t,Wb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mo.__wrap(r[0])}decompress(){const t=i.compressedfheint176_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return sn.__wrap(t[0])}serialize(){const t=i.compressedfheint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint176_deserialize(e,r);if(s[2])throw o(s[1]);return Mo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Mo.__wrap(_[0])}}const Jb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint184_free(n>>>0,1));class Bo{static __wrap(t){t=t>>>0;const e=Object.create(Bo.prototype);return e.__wbg_ptr=t,Jb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bo.__wrap(r[0])}decompress(){const t=i.compressedfheint184_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return _n.__wrap(t[0])}serialize(){const t=i.compressedfheint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint184_deserialize(e,r);if(s[2])throw o(s[1]);return Bo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Bo.__wrap(_[0])}}const $b=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint192_free(n>>>0,1));class xo{static __wrap(t){t=t>>>0;const e=Object.create(xo.prototype);return e.__wbg_ptr=t,$b.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$b.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xo.__wrap(r[0])}decompress(){const t=i.compressedfheint192_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return on.__wrap(t[0])}serialize(){const t=i.compressedfheint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint192_deserialize(e,r);if(s[2])throw o(s[1]);return xo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return xo.__wrap(_[0])}}const Zb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint2_free(n>>>0,1));class Co{static __wrap(t){t=t>>>0;const e=Object.create(Co.prototype);return e.__wbg_ptr=t,Zb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Co.__wrap(r[0])}decompress(){const t=i.compressedfheint2_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return an.__wrap(t[0])}serialize(){const t=i.compressedfheint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint2_deserialize(e,r);if(s[2])throw o(s[1]);return Co.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Co.__wrap(_[0])}}const Xb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint200_free(n>>>0,1));class Io{static __wrap(t){t=t>>>0;const e=Object.create(Io.prototype);return e.__wbg_ptr=t,Xb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Io.__wrap(r[0])}decompress(){const t=i.compressedfheint200_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return cn.__wrap(t[0])}serialize(){const t=i.compressedfheint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint200_deserialize(e,r);if(s[2])throw o(s[1]);return Io.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Io.__wrap(_[0])}}const ty=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint2048_free(n>>>0,1));class No{static __wrap(t){t=t>>>0;const e=Object.create(No.prototype);return e.__wbg_ptr=t,ty.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ty.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return No.__wrap(r[0])}decompress(){const t=i.compressedfheint2048_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return un.__wrap(t[0])}serialize(){const t=i.compressedfheint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint2048_deserialize(e,r);if(s[2])throw o(s[1]);return No.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return No.__wrap(_[0])}}const ey=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint208_free(n>>>0,1));class Oo{static __wrap(t){t=t>>>0;const e=Object.create(Oo.prototype);return e.__wbg_ptr=t,ey.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ey.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Oo.__wrap(r[0])}decompress(){const t=i.compressedfheint208_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return fn.__wrap(t[0])}serialize(){const t=i.compressedfheint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint208_deserialize(e,r);if(s[2])throw o(s[1]);return Oo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Oo.__wrap(_[0])}}const ry=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint216_free(n>>>0,1));class ko{static __wrap(t){t=t>>>0;const e=Object.create(ko.prototype);return e.__wbg_ptr=t,ry.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ry.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ko.__wrap(r[0])}decompress(){const t=i.compressedfheint216_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ln.__wrap(t[0])}serialize(){const t=i.compressedfheint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint216_deserialize(e,r);if(s[2])throw o(s[1]);return ko.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ko.__wrap(_[0])}}const ny=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint224_free(n>>>0,1));class To{static __wrap(t){t=t>>>0;const e=Object.create(To.prototype);return e.__wbg_ptr=t,ny.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ny.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return To.__wrap(r[0])}decompress(){const t=i.compressedfheint224_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return pn.__wrap(t[0])}serialize(){const t=i.compressedfheint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint224_deserialize(e,r);if(s[2])throw o(s[1]);return To.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return To.__wrap(_[0])}}const iy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint232_free(n>>>0,1));class Go{static __wrap(t){t=t>>>0;const e=Object.create(Go.prototype);return e.__wbg_ptr=t,iy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,iy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Go.__wrap(r[0])}decompress(){const t=i.compressedfheint232_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return hn.__wrap(t[0])}serialize(){const t=i.compressedfheint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint232_deserialize(e,r);if(s[2])throw o(s[1]);return Go.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Go.__wrap(_[0])}}const sy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint24_free(n>>>0,1));class Fo{static __wrap(t){t=t>>>0;const e=Object.create(Fo.prototype);return e.__wbg_ptr=t,sy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,sy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fo.__wrap(r[0])}decompress(){const t=i.compressedfheint24_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return wn.__wrap(t[0])}serialize(){const t=i.compressedfheint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint24_deserialize(e,r);if(s[2])throw o(s[1]);return Fo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Fo.__wrap(_[0])}}const _y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint240_free(n>>>0,1));class Uo{static __wrap(t){t=t>>>0;const e=Object.create(Uo.prototype);return e.__wbg_ptr=t,_y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,_y.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Uo.__wrap(r[0])}decompress(){const t=i.compressedfheint240_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return dn.__wrap(t[0])}serialize(){const t=i.compressedfheint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint240_deserialize(e,r);if(s[2])throw o(s[1]);return Uo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Uo.__wrap(_[0])}}const oy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint248_free(n>>>0,1));class Ko{static __wrap(t){t=t>>>0;const e=Object.create(Ko.prototype);return e.__wbg_ptr=t,oy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,oy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ko.__wrap(r[0])}decompress(){const t=i.compressedfheint248_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return gn.__wrap(t[0])}serialize(){const t=i.compressedfheint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint248_deserialize(e,r);if(s[2])throw o(s[1]);return Ko.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ko.__wrap(_[0])}}const ay=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint256_free(n>>>0,1));class Do{static __wrap(t){t=t>>>0;const e=Object.create(Do.prototype);return e.__wbg_ptr=t,ay.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ay.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Do.__wrap(r[0])}decompress(){const t=i.compressedfheint256_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return bn.__wrap(t[0])}serialize(){const t=i.compressedfheint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint256_deserialize(e,r);if(s[2])throw o(s[1]);return Do.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Do.__wrap(_[0])}}const cy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint32_free(n>>>0,1));class Lo{static __wrap(t){t=t>>>0;const e=Object.create(Lo.prototype);return e.__wbg_ptr=t,cy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,cy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Lo.__wrap(r[0])}decompress(){const t=i.compressedfheint32_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return yn.__wrap(t[0])}serialize(){const t=i.compressedfheint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint32_deserialize(e,r);if(s[2])throw o(s[1]);return Lo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Lo.__wrap(_[0])}}const uy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint4_free(n>>>0,1));class jo{static __wrap(t){t=t>>>0;const e=Object.create(jo.prototype);return e.__wbg_ptr=t,uy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,uy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jo.__wrap(r[0])}decompress(){const t=i.compressedfheint4_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return An.__wrap(t[0])}serialize(){const t=i.compressedfheint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint4_deserialize(e,r);if(s[2])throw o(s[1]);return jo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return jo.__wrap(_[0])}}const fy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint40_free(n>>>0,1));class Vo{static __wrap(t){t=t>>>0;const e=Object.create(Vo.prototype);return e.__wbg_ptr=t,fy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,fy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vo.__wrap(r[0])}decompress(){const t=i.compressedfheint40_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return mn.__wrap(t[0])}serialize(){const t=i.compressedfheint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint40_deserialize(e,r);if(s[2])throw o(s[1]);return Vo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Vo.__wrap(_[0])}}const ly=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint48_free(n>>>0,1));class Yo{static __wrap(t){t=t>>>0;const e=Object.create(Yo.prototype);return e.__wbg_ptr=t,ly.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ly.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yo.__wrap(r[0])}decompress(){const t=i.compressedfheint48_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Sn.__wrap(t[0])}serialize(){const t=i.compressedfheint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint48_deserialize(e,r);if(s[2])throw o(s[1]);return Yo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Yo.__wrap(_[0])}}const py=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint512_free(n>>>0,1));class Ho{static __wrap(t){t=t>>>0;const e=Object.create(Ho.prototype);return e.__wbg_ptr=t,py.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,py.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ho.__wrap(r[0])}decompress(){const t=i.compressedfheint512_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Rn.__wrap(t[0])}serialize(){const t=i.compressedfheint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint512_deserialize(e,r);if(s[2])throw o(s[1]);return Ho.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ho.__wrap(_[0])}}const hy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint56_free(n>>>0,1));class qo{static __wrap(t){t=t>>>0;const e=Object.create(qo.prototype);return e.__wbg_ptr=t,hy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,hy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qo.__wrap(r[0])}decompress(){const t=i.compressedfheint56_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return En.__wrap(t[0])}serialize(){const t=i.compressedfheint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint56_deserialize(e,r);if(s[2])throw o(s[1]);return qo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return qo.__wrap(_[0])}}const wy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint6_free(n>>>0,1));class Qo{static __wrap(t){t=t>>>0;const e=Object.create(Qo.prototype);return e.__wbg_ptr=t,wy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qo.__wrap(r[0])}decompress(){const t=i.compressedfheint6_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Pn.__wrap(t[0])}serialize(){const t=i.compressedfheint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint6_deserialize(e,r);if(s[2])throw o(s[1]);return Qo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Qo.__wrap(_[0])}}const dy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint64_free(n>>>0,1));class Wo{static __wrap(t){t=t>>>0;const e=Object.create(Wo.prototype);return e.__wbg_ptr=t,dy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wo.__wrap(r[0])}decompress(){const t=i.compressedfheint64_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return zn.__wrap(t[0])}serialize(){const t=i.compressedfheint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint64_deserialize(e,r);if(s[2])throw o(s[1]);return Wo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Wo.__wrap(_[0])}}const gy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint72_free(n>>>0,1));class Jo{static __wrap(t){t=t>>>0;const e=Object.create(Jo.prototype);return e.__wbg_ptr=t,gy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jo.__wrap(r[0])}decompress(){const t=i.compressedfheint72_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return vn.__wrap(t[0])}serialize(){const t=i.compressedfheint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint72_deserialize(e,r);if(s[2])throw o(s[1]);return Jo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Jo.__wrap(_[0])}}const by=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint8_free(n>>>0,1));class $o{static __wrap(t){t=t>>>0;const e=Object.create($o.prototype);return e.__wbg_ptr=t,by.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,by.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $o.__wrap(r[0])}decompress(){const t=i.compressedfheint8_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Mn.__wrap(t[0])}serialize(){const t=i.compressedfheint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint8_deserialize(e,r);if(s[2])throw o(s[1]);return $o.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return $o.__wrap(_[0])}}const yy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint80_free(n>>>0,1));class Zo{static __wrap(t){t=t>>>0;const e=Object.create(Zo.prototype);return e.__wbg_ptr=t,yy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zo.__wrap(r[0])}decompress(){const t=i.compressedfheint80_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Bn.__wrap(t[0])}serialize(){const t=i.compressedfheint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint80_deserialize(e,r);if(s[2])throw o(s[1]);return Zo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Zo.__wrap(_[0])}}const Ay=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint88_free(n>>>0,1));class Xo{static __wrap(t){t=t>>>0;const e=Object.create(Xo.prototype);return e.__wbg_ptr=t,Ay.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ay.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xo.__wrap(r[0])}decompress(){const t=i.compressedfheint88_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return xn.__wrap(t[0])}serialize(){const t=i.compressedfheint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint88_deserialize(e,r);if(s[2])throw o(s[1]);return Xo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Xo.__wrap(_[0])}}const my=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint96_free(n>>>0,1));class ta{static __wrap(t){t=t>>>0;const e=Object.create(ta.prototype);return e.__wbg_ptr=t,my.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,my.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ta.__wrap(r[0])}decompress(){const t=i.compressedfheint96_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Cn.__wrap(t[0])}serialize(){const t=i.compressedfheint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint96_deserialize(e,r);if(s[2])throw o(s[1]);return ta.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ta.__wrap(_[0])}}const Sy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint10_free(n>>>0,1));class ea{static __wrap(t){t=t>>>0;const e=Object.create(ea.prototype);return e.__wbg_ptr=t,Sy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Sy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ea.__wrap(r[0])}decompress(){const t=i.compressedfheuint10_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return In.__wrap(t[0])}serialize(){const t=i.compressedfheuint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint10_deserialize(e,r);if(s[2])throw o(s[1]);return ea.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ea.__wrap(_[0])}}const Ry=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint1024_free(n>>>0,1));class ra{static __wrap(t){t=t>>>0;const e=Object.create(ra.prototype);return e.__wbg_ptr=t,Ry.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ry.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ra.__wrap(r[0])}decompress(){const t=i.compressedfheuint1024_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Nn.__wrap(t[0])}serialize(){const t=i.compressedfheuint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint1024_deserialize(e,r);if(s[2])throw o(s[1]);return ra.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ra.__wrap(_[0])}}const Ey=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint104_free(n>>>0,1));class na{static __wrap(t){t=t>>>0;const e=Object.create(na.prototype);return e.__wbg_ptr=t,Ey.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ey.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return na.__wrap(r[0])}decompress(){const t=i.compressedfheuint104_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return On.__wrap(t[0])}serialize(){const t=i.compressedfheuint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint104_deserialize(e,r);if(s[2])throw o(s[1]);return na.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return na.__wrap(_[0])}}const Py=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint112_free(n>>>0,1));class ia{static __wrap(t){t=t>>>0;const e=Object.create(ia.prototype);return e.__wbg_ptr=t,Py.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Py.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ia.__wrap(r[0])}decompress(){const t=i.compressedfheuint112_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return kn.__wrap(t[0])}serialize(){const t=i.compressedfheuint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint112_deserialize(e,r);if(s[2])throw o(s[1]);return ia.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ia.__wrap(_[0])}}const zy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint12_free(n>>>0,1));class sa{static __wrap(t){t=t>>>0;const e=Object.create(sa.prototype);return e.__wbg_ptr=t,zy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sa.__wrap(r[0])}decompress(){const t=i.compressedfheuint12_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Tn.__wrap(t[0])}serialize(){const t=i.compressedfheuint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint12_deserialize(e,r);if(s[2])throw o(s[1]);return sa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return sa.__wrap(_[0])}}const vy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint120_free(n>>>0,1));class _a{static __wrap(t){t=t>>>0;const e=Object.create(_a.prototype);return e.__wbg_ptr=t,vy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _a.__wrap(r[0])}decompress(){const t=i.compressedfheuint120_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Gn.__wrap(t[0])}serialize(){const t=i.compressedfheuint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint120_deserialize(e,r);if(s[2])throw o(s[1]);return _a.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return _a.__wrap(_[0])}}const My=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint128_free(n>>>0,1));class oa{static __wrap(t){t=t>>>0;const e=Object.create(oa.prototype);return e.__wbg_ptr=t,My.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,My.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oa.__wrap(r[0])}decompress(){const t=i.compressedfheuint128_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Fn.__wrap(t[0])}serialize(){const t=i.compressedfheuint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint128_deserialize(e,r);if(s[2])throw o(s[1]);return oa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return oa.__wrap(_[0])}}const By=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint136_free(n>>>0,1));class aa{static __wrap(t){t=t>>>0;const e=Object.create(aa.prototype);return e.__wbg_ptr=t,By.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,By.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return aa.__wrap(r[0])}decompress(){const t=i.compressedfheuint136_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Un.__wrap(t[0])}serialize(){const t=i.compressedfheuint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint136_deserialize(e,r);if(s[2])throw o(s[1]);return aa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return aa.__wrap(_[0])}}const xy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint14_free(n>>>0,1));class ca{static __wrap(t){t=t>>>0;const e=Object.create(ca.prototype);return e.__wbg_ptr=t,xy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ca.__wrap(r[0])}decompress(){const t=i.compressedfheuint14_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Kn.__wrap(t[0])}serialize(){const t=i.compressedfheuint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint14_deserialize(e,r);if(s[2])throw o(s[1]);return ca.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ca.__wrap(_[0])}}const Cy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint144_free(n>>>0,1));class ua{static __wrap(t){t=t>>>0;const e=Object.create(ua.prototype);return e.__wbg_ptr=t,Cy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Cy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ua.__wrap(r[0])}decompress(){const t=i.compressedfheuint144_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Dn.__wrap(t[0])}serialize(){const t=i.compressedfheuint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint144_deserialize(e,r);if(s[2])throw o(s[1]);return ua.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ua.__wrap(_[0])}}const Iy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint152_free(n>>>0,1));class fa{static __wrap(t){t=t>>>0;const e=Object.create(fa.prototype);return e.__wbg_ptr=t,Iy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Iy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fa.__wrap(r[0])}decompress(){const t=i.compressedfheuint152_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Ln.__wrap(t[0])}serialize(){const t=i.compressedfheuint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint152_deserialize(e,r);if(s[2])throw o(s[1]);return fa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fa.__wrap(_[0])}}const Ny=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint16_free(n>>>0,1));class la{static __wrap(t){t=t>>>0;const e=Object.create(la.prototype);return e.__wbg_ptr=t,Ny.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ny.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return la.__wrap(r[0])}decompress(){const t=i.compressedfheuint16_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return jn.__wrap(t[0])}serialize(){const t=i.compressedfheuint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint16_deserialize(e,r);if(s[2])throw o(s[1]);return la.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return la.__wrap(_[0])}}const Oy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint160_free(n>>>0,1));class pa{static __wrap(t){t=t>>>0;const e=Object.create(pa.prototype);return e.__wbg_ptr=t,Oy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Oy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pa.__wrap(r[0])}decompress(){const t=i.compressedfheuint160_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Vn.__wrap(t[0])}serialize(){const t=i.compressedfheuint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint160_deserialize(e,r);if(s[2])throw o(s[1]);return pa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return pa.__wrap(_[0])}}const ky=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint168_free(n>>>0,1));class ha{static __wrap(t){t=t>>>0;const e=Object.create(ha.prototype);return e.__wbg_ptr=t,ky.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ky.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ha.__wrap(r[0])}decompress(){const t=i.compressedfheuint168_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Yn.__wrap(t[0])}serialize(){const t=i.compressedfheuint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint168_deserialize(e,r);if(s[2])throw o(s[1]);return ha.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ha.__wrap(_[0])}}const Ty=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint176_free(n>>>0,1));class wa{static __wrap(t){t=t>>>0;const e=Object.create(wa.prototype);return e.__wbg_ptr=t,Ty.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ty.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wa.__wrap(r[0])}decompress(){const t=i.compressedfheuint176_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Hn.__wrap(t[0])}serialize(){const t=i.compressedfheuint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint176_deserialize(e,r);if(s[2])throw o(s[1]);return wa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wa.__wrap(_[0])}}const Gy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint184_free(n>>>0,1));class da{static __wrap(t){t=t>>>0;const e=Object.create(da.prototype);return e.__wbg_ptr=t,Gy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return da.__wrap(r[0])}decompress(){const t=i.compressedfheuint184_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return qn.__wrap(t[0])}serialize(){const t=i.compressedfheuint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint184_deserialize(e,r);if(s[2])throw o(s[1]);return da.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return da.__wrap(_[0])}}const Fy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint192_free(n>>>0,1));class ga{static __wrap(t){t=t>>>0;const e=Object.create(ga.prototype);return e.__wbg_ptr=t,Fy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Fy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ga.__wrap(r[0])}decompress(){const t=i.compressedfheuint192_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Qn.__wrap(t[0])}serialize(){const t=i.compressedfheuint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint192_deserialize(e,r);if(s[2])throw o(s[1]);return ga.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ga.__wrap(_[0])}}const Uy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint2_free(n>>>0,1));class ba{static __wrap(t){t=t>>>0;const e=Object.create(ba.prototype);return e.__wbg_ptr=t,Uy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Uy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ba.__wrap(r[0])}decompress(){const t=i.compressedfheuint2_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Wn.__wrap(t[0])}serialize(){const t=i.compressedfheuint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint2_deserialize(e,r);if(s[2])throw o(s[1]);return ba.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ba.__wrap(_[0])}}const Ky=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint200_free(n>>>0,1));class ya{static __wrap(t){t=t>>>0;const e=Object.create(ya.prototype);return e.__wbg_ptr=t,Ky.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ky.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ya.__wrap(r[0])}decompress(){const t=i.compressedfheuint200_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Jn.__wrap(t[0])}serialize(){const t=i.compressedfheuint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint200_deserialize(e,r);if(s[2])throw o(s[1]);return ya.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ya.__wrap(_[0])}}const Dy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint2048_free(n>>>0,1));class Aa{static __wrap(t){t=t>>>0;const e=Object.create(Aa.prototype);return e.__wbg_ptr=t,Dy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Aa.__wrap(r[0])}decompress(){const t=i.compressedfheuint2048_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return $n.__wrap(t[0])}serialize(){const t=i.compressedfheuint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint2048_deserialize(e,r);if(s[2])throw o(s[1]);return Aa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Aa.__wrap(_[0])}}const Ly=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint208_free(n>>>0,1));class ma{static __wrap(t){t=t>>>0;const e=Object.create(ma.prototype);return e.__wbg_ptr=t,Ly.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ly.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ma.__wrap(r[0])}decompress(){const t=i.compressedfheuint208_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Zn.__wrap(t[0])}serialize(){const t=i.compressedfheuint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint208_deserialize(e,r);if(s[2])throw o(s[1]);return ma.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ma.__wrap(_[0])}}const jy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint216_free(n>>>0,1));class Sa{static __wrap(t){t=t>>>0;const e=Object.create(Sa.prototype);return e.__wbg_ptr=t,jy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sa.__wrap(r[0])}decompress(){const t=i.compressedfheuint216_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Xn.__wrap(t[0])}serialize(){const t=i.compressedfheuint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint216_deserialize(e,r);if(s[2])throw o(s[1]);return Sa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Sa.__wrap(_[0])}}const Vy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint224_free(n>>>0,1));class Ra{static __wrap(t){t=t>>>0;const e=Object.create(Ra.prototype);return e.__wbg_ptr=t,Vy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ra.__wrap(r[0])}decompress(){const t=i.compressedfheuint224_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ti.__wrap(t[0])}serialize(){const t=i.compressedfheuint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint224_deserialize(e,r);if(s[2])throw o(s[1]);return Ra.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ra.__wrap(_[0])}}const Yy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint232_free(n>>>0,1));class Ea{static __wrap(t){t=t>>>0;const e=Object.create(Ea.prototype);return e.__wbg_ptr=t,Yy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ea.__wrap(r[0])}decompress(){const t=i.compressedfheuint232_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ei.__wrap(t[0])}serialize(){const t=i.compressedfheuint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint232_deserialize(e,r);if(s[2])throw o(s[1]);return Ea.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ea.__wrap(_[0])}}const Hy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint24_free(n>>>0,1));class Pa{static __wrap(t){t=t>>>0;const e=Object.create(Pa.prototype);return e.__wbg_ptr=t,Hy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Hy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pa.__wrap(r[0])}decompress(){const t=i.compressedfheuint24_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ri.__wrap(t[0])}serialize(){const t=i.compressedfheuint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint24_deserialize(e,r);if(s[2])throw o(s[1]);return Pa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Pa.__wrap(_[0])}}const qy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint240_free(n>>>0,1));class za{static __wrap(t){t=t>>>0;const e=Object.create(za.prototype);return e.__wbg_ptr=t,qy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return za.__wrap(r[0])}decompress(){const t=i.compressedfheuint240_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ni.__wrap(t[0])}serialize(){const t=i.compressedfheuint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint240_deserialize(e,r);if(s[2])throw o(s[1]);return za.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return za.__wrap(_[0])}}const Qy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint248_free(n>>>0,1));class va{static __wrap(t){t=t>>>0;const e=Object.create(va.prototype);return e.__wbg_ptr=t,Qy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Qy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return va.__wrap(r[0])}decompress(){const t=i.compressedfheuint248_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ii.__wrap(t[0])}serialize(){const t=i.compressedfheuint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint248_deserialize(e,r);if(s[2])throw o(s[1]);return va.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return va.__wrap(_[0])}}const Wy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint256_free(n>>>0,1));class Ma{static __wrap(t){t=t>>>0;const e=Object.create(Ma.prototype);return e.__wbg_ptr=t,Wy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ma.__wrap(r[0])}decompress(){const t=i.compressedfheuint256_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return si.__wrap(t[0])}serialize(){const t=i.compressedfheuint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint256_deserialize(e,r);if(s[2])throw o(s[1]);return Ma.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ma.__wrap(_[0])}}const Jy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint32_free(n>>>0,1));class Ba{static __wrap(t){t=t>>>0;const e=Object.create(Ba.prototype);return e.__wbg_ptr=t,Jy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ba.__wrap(r[0])}decompress(){const t=i.compressedfheuint32_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return _i.__wrap(t[0])}serialize(){const t=i.compressedfheuint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint32_deserialize(e,r);if(s[2])throw o(s[1]);return Ba.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ba.__wrap(_[0])}}const $y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint4_free(n>>>0,1));class xa{static __wrap(t){t=t>>>0;const e=Object.create(xa.prototype);return e.__wbg_ptr=t,$y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$y.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xa.__wrap(r[0])}decompress(){const t=i.compressedfheuint4_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return oi.__wrap(t[0])}serialize(){const t=i.compressedfheuint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint4_deserialize(e,r);if(s[2])throw o(s[1]);return xa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return xa.__wrap(_[0])}}const Zy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint40_free(n>>>0,1));class Ca{static __wrap(t){t=t>>>0;const e=Object.create(Ca.prototype);return e.__wbg_ptr=t,Zy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ca.__wrap(r[0])}decompress(){const t=i.compressedfheuint40_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ai.__wrap(t[0])}serialize(){const t=i.compressedfheuint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint40_deserialize(e,r);if(s[2])throw o(s[1]);return Ca.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ca.__wrap(_[0])}}const Xy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint48_free(n>>>0,1));class Ia{static __wrap(t){t=t>>>0;const e=Object.create(Ia.prototype);return e.__wbg_ptr=t,Xy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ia.__wrap(r[0])}decompress(){const t=i.compressedfheuint48_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ci.__wrap(t[0])}serialize(){const t=i.compressedfheuint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint48_deserialize(e,r);if(s[2])throw o(s[1]);return Ia.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ia.__wrap(_[0])}}const tA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint512_free(n>>>0,1));class Na{static __wrap(t){t=t>>>0;const e=Object.create(Na.prototype);return e.__wbg_ptr=t,tA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,tA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Na.__wrap(r[0])}decompress(){const t=i.compressedfheuint512_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ui.__wrap(t[0])}serialize(){const t=i.compressedfheuint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint512_deserialize(e,r);if(s[2])throw o(s[1]);return Na.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Na.__wrap(_[0])}}const eA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint56_free(n>>>0,1));class Oa{static __wrap(t){t=t>>>0;const e=Object.create(Oa.prototype);return e.__wbg_ptr=t,eA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,eA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Oa.__wrap(r[0])}decompress(){const t=i.compressedfheuint56_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return fi.__wrap(t[0])}serialize(){const t=i.compressedfheuint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint56_deserialize(e,r);if(s[2])throw o(s[1]);return Oa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Oa.__wrap(_[0])}}const rA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint6_free(n>>>0,1));class ka{static __wrap(t){t=t>>>0;const e=Object.create(ka.prototype);return e.__wbg_ptr=t,rA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,rA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ka.__wrap(r[0])}decompress(){const t=i.compressedfheuint6_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return li.__wrap(t[0])}serialize(){const t=i.compressedfheuint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint6_deserialize(e,r);if(s[2])throw o(s[1]);return ka.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ka.__wrap(_[0])}}const nA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint64_free(n>>>0,1));class Ta{static __wrap(t){t=t>>>0;const e=Object.create(Ta.prototype);return e.__wbg_ptr=t,nA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,nA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ta.__wrap(r[0])}decompress(){const t=i.compressedfheuint64_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return pi.__wrap(t[0])}serialize(){const t=i.compressedfheuint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint64_deserialize(e,r);if(s[2])throw o(s[1]);return Ta.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ta.__wrap(_[0])}}const iA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint72_free(n>>>0,1));class Ga{static __wrap(t){t=t>>>0;const e=Object.create(Ga.prototype);return e.__wbg_ptr=t,iA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,iA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ga.__wrap(r[0])}decompress(){const t=i.compressedfheuint72_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return hi.__wrap(t[0])}serialize(){const t=i.compressedfheuint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint72_deserialize(e,r);if(s[2])throw o(s[1]);return Ga.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ga.__wrap(_[0])}}const sA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint8_free(n>>>0,1));class Fa{static __wrap(t){t=t>>>0;const e=Object.create(Fa.prototype);return e.__wbg_ptr=t,sA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,sA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fa.__wrap(r[0])}decompress(){const t=i.compressedfheuint8_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return wi.__wrap(t[0])}serialize(){const t=i.compressedfheuint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint8_deserialize(e,r);if(s[2])throw o(s[1]);return Fa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Fa.__wrap(_[0])}}const _A=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint80_free(n>>>0,1));class Ua{static __wrap(t){t=t>>>0;const e=Object.create(Ua.prototype);return e.__wbg_ptr=t,_A.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,_A.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ua.__wrap(r[0])}decompress(){const t=i.compressedfheuint80_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return di.__wrap(t[0])}serialize(){const t=i.compressedfheuint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint80_deserialize(e,r);if(s[2])throw o(s[1]);return Ua.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ua.__wrap(_[0])}}const oA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint88_free(n>>>0,1));class Ka{static __wrap(t){t=t>>>0;const e=Object.create(Ka.prototype);return e.__wbg_ptr=t,oA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,oA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ka.__wrap(r[0])}decompress(){const t=i.compressedfheuint88_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return gi.__wrap(t[0])}serialize(){const t=i.compressedfheuint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint88_deserialize(e,r);if(s[2])throw o(s[1]);return Ka.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ka.__wrap(_[0])}}const aA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint96_free(n>>>0,1));class Da{static __wrap(t){t=t>>>0;const e=Object.create(Da.prototype);return e.__wbg_ptr=t,aA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,aA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Da.__wrap(r[0])}decompress(){const t=i.compressedfheuint96_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return bi.__wrap(t[0])}serialize(){const t=i.compressedfheuint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint96_deserialize(e,r);if(s[2])throw o(s[1]);return Da.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Da.__wrap(_[0])}}const cA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fhebool_free(n>>>0,1));class jr{static __wrap(t){t=t>>>0;const e=Object.create(jr.prototype);return e.__wbg_ptr=t,cA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,cA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fhebool_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fhebool_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fhebool_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fhebool_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fhebool_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]!==0}serialize(){const t=i.fhebool_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fhebool_deserialize(e,r);if(s[2])throw o(s[1]);return jr.__wrap(s[0])}safe_serialize(t){const e=i.fhebool_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fhebool_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return jr.__wrap(_[0])}}const uA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint10_free(n>>>0,1));class Vr{static __wrap(t){t=t>>>0;const e=Object.create(Vr.prototype);return e.__wbg_ptr=t,uA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,uA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint10_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint10_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint10_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint10_deserialize(e,r);if(s[2])throw o(s[1]);return Vr.__wrap(s[0])}safe_serialize(t){const e=i.fheint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Vr.__wrap(_[0])}}const fA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint1024_free(n>>>0,1));class Yr{static __wrap(t){t=t>>>0;const e=Object.create(Yr.prototype);return e.__wbg_ptr=t,fA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,fA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint1024_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint1024_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint1024_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint1024_deserialize(e,r);if(s[2])throw o(s[1]);return Yr.__wrap(s[0])}safe_serialize(t){const e=i.fheint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Yr.__wrap(_[0])}}const lA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint104_free(n>>>0,1));class Hr{static __wrap(t){t=t>>>0;const e=Object.create(Hr.prototype);return e.__wbg_ptr=t,lA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint104_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint104_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint104_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint104_deserialize(e,r);if(s[2])throw o(s[1]);return Hr.__wrap(s[0])}safe_serialize(t){const e=i.fheint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Hr.__wrap(_[0])}}const pA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint112_free(n>>>0,1));class qr{static __wrap(t){t=t>>>0;const e=Object.create(qr.prototype);return e.__wbg_ptr=t,pA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint112_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint112_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint112_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint112_deserialize(e,r);if(s[2])throw o(s[1]);return qr.__wrap(s[0])}safe_serialize(t){const e=i.fheint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return qr.__wrap(_[0])}}const hA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint12_free(n>>>0,1));class Qr{static __wrap(t){t=t>>>0;const e=Object.create(Qr.prototype);return e.__wbg_ptr=t,hA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,hA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint12_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint12_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint12_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint12_deserialize(e,r);if(s[2])throw o(s[1]);return Qr.__wrap(s[0])}safe_serialize(t){const e=i.fheint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Qr.__wrap(_[0])}}const wA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint120_free(n>>>0,1));class Wr{static __wrap(t){t=t>>>0;const e=Object.create(Wr.prototype);return e.__wbg_ptr=t,wA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint120_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint120_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint120_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint120_deserialize(e,r);if(s[2])throw o(s[1]);return Wr.__wrap(s[0])}safe_serialize(t){const e=i.fheint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Wr.__wrap(_[0])}}const dA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint128_free(n>>>0,1));class Jr{static __wrap(t){t=t>>>0;const e=Object.create(Jr.prototype);return e.__wbg_ptr=t,dA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint128_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint128_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint128_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint128_deserialize(e,r);if(s[2])throw o(s[1]);return Jr.__wrap(s[0])}safe_serialize(t){const e=i.fheint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Jr.__wrap(_[0])}}const gA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint136_free(n>>>0,1));class $r{static __wrap(t){t=t>>>0;const e=Object.create($r.prototype);return e.__wbg_ptr=t,gA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $r.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint136_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $r.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint136_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $r.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint136_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint136_deserialize(e,r);if(s[2])throw o(s[1]);return $r.__wrap(s[0])}safe_serialize(t){const e=i.fheint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return $r.__wrap(_[0])}}const bA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint14_free(n>>>0,1));class Zr{static __wrap(t){t=t>>>0;const e=Object.create(Zr.prototype);return e.__wbg_ptr=t,bA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,bA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint14_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint14_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint14_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint14_deserialize(e,r);if(s[2])throw o(s[1]);return Zr.__wrap(s[0])}safe_serialize(t){const e=i.fheint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Zr.__wrap(_[0])}}const yA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint144_free(n>>>0,1));class Xr{static __wrap(t){t=t>>>0;const e=Object.create(Xr.prototype);return e.__wbg_ptr=t,yA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint144_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint144_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint144_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint144_deserialize(e,r);if(s[2])throw o(s[1]);return Xr.__wrap(s[0])}safe_serialize(t){const e=i.fheint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Xr.__wrap(_[0])}}const AA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint152_free(n>>>0,1));class tn{static __wrap(t){t=t>>>0;const e=Object.create(tn.prototype);return e.__wbg_ptr=t,AA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,AA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return tn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint152_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return tn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint152_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return tn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint152_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint152_deserialize(e,r);if(s[2])throw o(s[1]);return tn.__wrap(s[0])}safe_serialize(t){const e=i.fheint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return tn.__wrap(_[0])}}const mA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint16_free(n>>>0,1));class en{static __wrap(t){t=t>>>0;const e=Object.create(en.prototype);return e.__wbg_ptr=t,mA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return en.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint16_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return en.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint16_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return en.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint16_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint16_deserialize(e,r);if(s[2])throw o(s[1]);return en.__wrap(s[0])}safe_serialize(t){const e=i.fheint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return en.__wrap(_[0])}}const SA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint160_free(n>>>0,1));class rn{static __wrap(t){t=t>>>0;const e=Object.create(rn.prototype);return e.__wbg_ptr=t,SA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,SA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return rn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint160_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return rn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint160_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return rn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint160_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint160_deserialize(e,r);if(s[2])throw o(s[1]);return rn.__wrap(s[0])}safe_serialize(t){const e=i.fheint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return rn.__wrap(_[0])}}const RA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint168_free(n>>>0,1));class nn{static __wrap(t){t=t>>>0;const e=Object.create(nn.prototype);return e.__wbg_ptr=t,RA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,RA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return nn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint168_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return nn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint168_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return nn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint168_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint168_deserialize(e,r);if(s[2])throw o(s[1]);return nn.__wrap(s[0])}safe_serialize(t){const e=i.fheint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return nn.__wrap(_[0])}}const EA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint176_free(n>>>0,1));class sn{static __wrap(t){t=t>>>0;const e=Object.create(sn.prototype);return e.__wbg_ptr=t,EA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,EA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint176_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint176_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint176_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint176_deserialize(e,r);if(s[2])throw o(s[1]);return sn.__wrap(s[0])}safe_serialize(t){const e=i.fheint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return sn.__wrap(_[0])}}const PA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint184_free(n>>>0,1));class _n{static __wrap(t){t=t>>>0;const e=Object.create(_n.prototype);return e.__wbg_ptr=t,PA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,PA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _n.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint184_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _n.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint184_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _n.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint184_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint184_deserialize(e,r);if(s[2])throw o(s[1]);return _n.__wrap(s[0])}safe_serialize(t){const e=i.fheint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return _n.__wrap(_[0])}}const zA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint192_free(n>>>0,1));class on{static __wrap(t){t=t>>>0;const e=Object.create(on.prototype);return e.__wbg_ptr=t,zA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return on.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint192_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return on.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint192_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return on.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint192_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint192_deserialize(e,r);if(s[2])throw o(s[1]);return on.__wrap(s[0])}safe_serialize(t){const e=i.fheint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return on.__wrap(_[0])}}const vA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint2_free(n>>>0,1));class an{static __wrap(t){t=t>>>0;const e=Object.create(an.prototype);return e.__wbg_ptr=t,vA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return an.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint2_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return an.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint2_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return an.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint2_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint2_deserialize(e,r);if(s[2])throw o(s[1]);return an.__wrap(s[0])}safe_serialize(t){const e=i.fheint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return an.__wrap(_[0])}}const MA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint200_free(n>>>0,1));class cn{static __wrap(t){t=t>>>0;const e=Object.create(cn.prototype);return e.__wbg_ptr=t,MA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,MA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return cn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint200_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return cn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint200_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return cn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint200_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint200_deserialize(e,r);if(s[2])throw o(s[1]);return cn.__wrap(s[0])}safe_serialize(t){const e=i.fheint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return cn.__wrap(_[0])}}const BA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint2048_free(n>>>0,1));class un{static __wrap(t){t=t>>>0;const e=Object.create(un.prototype);return e.__wbg_ptr=t,BA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,BA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return un.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint2048_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return un.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint2048_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return un.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint2048_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint2048_deserialize(e,r);if(s[2])throw o(s[1]);return un.__wrap(s[0])}safe_serialize(t){const e=i.fheint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return un.__wrap(_[0])}}const xA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint208_free(n>>>0,1));class fn{static __wrap(t){t=t>>>0;const e=Object.create(fn.prototype);return e.__wbg_ptr=t,xA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint208_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint208_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint208_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint208_deserialize(e,r);if(s[2])throw o(s[1]);return fn.__wrap(s[0])}safe_serialize(t){const e=i.fheint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fn.__wrap(_[0])}}const CA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint216_free(n>>>0,1));class ln{static __wrap(t){t=t>>>0;const e=Object.create(ln.prototype);return e.__wbg_ptr=t,CA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,CA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ln.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint216_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ln.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint216_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ln.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint216_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint216_deserialize(e,r);if(s[2])throw o(s[1]);return ln.__wrap(s[0])}safe_serialize(t){const e=i.fheint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ln.__wrap(_[0])}}const IA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint224_free(n>>>0,1));class pn{static __wrap(t){t=t>>>0;const e=Object.create(pn.prototype);return e.__wbg_ptr=t,IA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,IA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint224_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint224_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint224_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint224_deserialize(e,r);if(s[2])throw o(s[1]);return pn.__wrap(s[0])}safe_serialize(t){const e=i.fheint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return pn.__wrap(_[0])}}const NA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint232_free(n>>>0,1));class hn{static __wrap(t){t=t>>>0;const e=Object.create(hn.prototype);return e.__wbg_ptr=t,NA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,NA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint232_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint232_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint232_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint232_deserialize(e,r);if(s[2])throw o(s[1]);return hn.__wrap(s[0])}safe_serialize(t){const e=i.fheint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return hn.__wrap(_[0])}}const OA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint24_free(n>>>0,1));class wn{static __wrap(t){t=t>>>0;const e=Object.create(wn.prototype);return e.__wbg_ptr=t,OA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,OA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint24_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint24_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint24_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint24_deserialize(e,r);if(s[2])throw o(s[1]);return wn.__wrap(s[0])}safe_serialize(t){const e=i.fheint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wn.__wrap(_[0])}}const kA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint240_free(n>>>0,1));class dn{static __wrap(t){t=t>>>0;const e=Object.create(dn.prototype);return e.__wbg_ptr=t,kA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return dn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint240_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return dn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint240_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return dn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint240_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint240_deserialize(e,r);if(s[2])throw o(s[1]);return dn.__wrap(s[0])}safe_serialize(t){const e=i.fheint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return dn.__wrap(_[0])}}const TA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint248_free(n>>>0,1));class gn{static __wrap(t){t=t>>>0;const e=Object.create(gn.prototype);return e.__wbg_ptr=t,TA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,TA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint248_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint248_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint248_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint248_deserialize(e,r);if(s[2])throw o(s[1]);return gn.__wrap(s[0])}safe_serialize(t){const e=i.fheint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return gn.__wrap(_[0])}}const GA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint256_free(n>>>0,1));class bn{static __wrap(t){t=t>>>0;const e=Object.create(bn.prototype);return e.__wbg_ptr=t,GA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,GA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint256_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint256_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint256_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint256_deserialize(e,r);if(s[2])throw o(s[1]);return bn.__wrap(s[0])}safe_serialize(t){const e=i.fheint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return bn.__wrap(_[0])}}const FA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint32_free(n>>>0,1));class yn{static __wrap(t){t=t>>>0;const e=Object.create(yn.prototype);return e.__wbg_ptr=t,FA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,FA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint32_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint32_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint32_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint32_deserialize(e,r);if(s[2])throw o(s[1]);return yn.__wrap(s[0])}safe_serialize(t){const e=i.fheint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return yn.__wrap(_[0])}}const UA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint4_free(n>>>0,1));class An{static __wrap(t){t=t>>>0;const e=Object.create(An.prototype);return e.__wbg_ptr=t,UA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,UA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return An.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint4_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return An.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint4_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return An.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint4_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint4_deserialize(e,r);if(s[2])throw o(s[1]);return An.__wrap(s[0])}safe_serialize(t){const e=i.fheint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return An.__wrap(_[0])}}const KA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint40_free(n>>>0,1));class mn{static __wrap(t){t=t>>>0;const e=Object.create(mn.prototype);return e.__wbg_ptr=t,KA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,KA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint40_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint40_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint40_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint40_deserialize(e,r);if(s[2])throw o(s[1]);return mn.__wrap(s[0])}safe_serialize(t){const e=i.fheint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return mn.__wrap(_[0])}}const DA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint48_free(n>>>0,1));class Sn{static __wrap(t){t=t>>>0;const e=Object.create(Sn.prototype);return e.__wbg_ptr=t,DA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,DA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint48_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint48_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint48_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint48_deserialize(e,r);if(s[2])throw o(s[1]);return Sn.__wrap(s[0])}safe_serialize(t){const e=i.fheint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Sn.__wrap(_[0])}}const LA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint512_free(n>>>0,1));class Rn{static __wrap(t){t=t>>>0;const e=Object.create(Rn.prototype);return e.__wbg_ptr=t,LA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,LA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Rn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint512_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Rn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint512_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Rn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint512_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint512_deserialize(e,r);if(s[2])throw o(s[1]);return Rn.__wrap(s[0])}safe_serialize(t){const e=i.fheint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Rn.__wrap(_[0])}}const jA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint56_free(n>>>0,1));class En{static __wrap(t){t=t>>>0;const e=Object.create(En.prototype);return e.__wbg_ptr=t,jA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return En.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint56_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return En.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint56_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return En.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint56_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint56_deserialize(e,r);if(s[2])throw o(s[1]);return En.__wrap(s[0])}safe_serialize(t){const e=i.fheint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return En.__wrap(_[0])}}const VA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint6_free(n>>>0,1));class Pn{static __wrap(t){t=t>>>0;const e=Object.create(Pn.prototype);return e.__wbg_ptr=t,VA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,VA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint6_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint6_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint6_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint6_deserialize(e,r);if(s[2])throw o(s[1]);return Pn.__wrap(s[0])}safe_serialize(t){const e=i.fheint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Pn.__wrap(_[0])}}const YA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint64_free(n>>>0,1));class zn{static __wrap(t){t=t>>>0;const e=Object.create(zn.prototype);return e.__wbg_ptr=t,YA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,YA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint64_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint64_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint64_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint64_deserialize(e,r);if(s[2])throw o(s[1]);return zn.__wrap(s[0])}safe_serialize(t){const e=i.fheint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return zn.__wrap(_[0])}}const HA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint72_free(n>>>0,1));class vn{static __wrap(t){t=t>>>0;const e=Object.create(vn.prototype);return e.__wbg_ptr=t,HA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,HA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint72_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint72_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint72_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint72_deserialize(e,r);if(s[2])throw o(s[1]);return vn.__wrap(s[0])}safe_serialize(t){const e=i.fheint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return vn.__wrap(_[0])}}const qA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint8_free(n>>>0,1));class Mn{static __wrap(t){t=t>>>0;const e=Object.create(Mn.prototype);return e.__wbg_ptr=t,qA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint8_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint8_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint8_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint8_deserialize(e,r);if(s[2])throw o(s[1]);return Mn.__wrap(s[0])}safe_serialize(t){const e=i.fheint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Mn.__wrap(_[0])}}const QA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint80_free(n>>>0,1));class Bn{static __wrap(t){t=t>>>0;const e=Object.create(Bn.prototype);return e.__wbg_ptr=t,QA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,QA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint80_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint80_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint80_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint80_deserialize(e,r);if(s[2])throw o(s[1]);return Bn.__wrap(s[0])}safe_serialize(t){const e=i.fheint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Bn.__wrap(_[0])}}const WA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint88_free(n>>>0,1));class xn{static __wrap(t){t=t>>>0;const e=Object.create(xn.prototype);return e.__wbg_ptr=t,WA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,WA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint88_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint88_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint88_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint88_deserialize(e,r);if(s[2])throw o(s[1]);return xn.__wrap(s[0])}safe_serialize(t){const e=i.fheint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return xn.__wrap(_[0])}}const JA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint96_free(n>>>0,1));class Cn{static __wrap(t){t=t>>>0;const e=Object.create(Cn.prototype);return e.__wbg_ptr=t,JA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,JA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Cn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint96_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Cn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint96_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Cn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint96_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint96_deserialize(e,r);if(s[2])throw o(s[1]);return Cn.__wrap(s[0])}safe_serialize(t){const e=i.fheint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Cn.__wrap(_[0])}}const $A=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint10_free(n>>>0,1));class In{static __wrap(t){t=t>>>0;const e=Object.create(In.prototype);return e.__wbg_ptr=t,$A.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$A.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return In.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint10_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return In.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint10_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return In.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint10_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint10_deserialize(e,r);if(s[2])throw o(s[1]);return In.__wrap(s[0])}safe_serialize(t){const e=i.fheuint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return In.__wrap(_[0])}}const ZA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint1024_free(n>>>0,1));class Nn{static __wrap(t){t=t>>>0;const e=Object.create(Nn.prototype);return e.__wbg_ptr=t,ZA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ZA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Nn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint1024_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Nn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint1024_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Nn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint1024_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint1024_deserialize(e,r);if(s[2])throw o(s[1]);return Nn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Nn.__wrap(_[0])}}const XA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint104_free(n>>>0,1));class On{static __wrap(t){t=t>>>0;const e=Object.create(On.prototype);return e.__wbg_ptr=t,XA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,XA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return On.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint104_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return On.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint104_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return On.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint104_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint104_deserialize(e,r);if(s[2])throw o(s[1]);return On.__wrap(s[0])}safe_serialize(t){const e=i.fheuint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return On.__wrap(_[0])}}const t2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint112_free(n>>>0,1));class kn{static __wrap(t){t=t>>>0;const e=Object.create(kn.prototype);return e.__wbg_ptr=t,t2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return kn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint112_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return kn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint112_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return kn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint112_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint112_deserialize(e,r);if(s[2])throw o(s[1]);return kn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return kn.__wrap(_[0])}}const e2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint12_free(n>>>0,1));class Tn{static __wrap(t){t=t>>>0;const e=Object.create(Tn.prototype);return e.__wbg_ptr=t,e2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,e2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Tn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint12_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Tn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint12_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Tn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint12_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint12_deserialize(e,r);if(s[2])throw o(s[1]);return Tn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Tn.__wrap(_[0])}}const r2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint120_free(n>>>0,1));class Gn{static __wrap(t){t=t>>>0;const e=Object.create(Gn.prototype);return e.__wbg_ptr=t,r2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,r2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Gn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint120_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Gn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint120_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Gn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint120_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint120_deserialize(e,r);if(s[2])throw o(s[1]);return Gn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Gn.__wrap(_[0])}}const n2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint128_free(n>>>0,1));class Fn{static __wrap(t){t=t>>>0;const e=Object.create(Fn.prototype);return e.__wbg_ptr=t,n2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,n2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint128_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint128_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint128_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint128_deserialize(e,r);if(s[2])throw o(s[1]);return Fn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Fn.__wrap(_[0])}}const i2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint136_free(n>>>0,1));class Un{static __wrap(t){t=t>>>0;const e=Object.create(Un.prototype);return e.__wbg_ptr=t,i2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,i2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Un.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint136_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Un.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint136_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Un.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint136_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint136_deserialize(e,r);if(s[2])throw o(s[1]);return Un.__wrap(s[0])}safe_serialize(t){const e=i.fheuint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Un.__wrap(_[0])}}const s2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint14_free(n>>>0,1));class Kn{static __wrap(t){t=t>>>0;const e=Object.create(Kn.prototype);return e.__wbg_ptr=t,s2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,s2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Kn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint14_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Kn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint14_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Kn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint14_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint14_deserialize(e,r);if(s[2])throw o(s[1]);return Kn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Kn.__wrap(_[0])}}const _2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint144_free(n>>>0,1));class Dn{static __wrap(t){t=t>>>0;const e=Object.create(Dn.prototype);return e.__wbg_ptr=t,_2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,_2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Dn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint144_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Dn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint144_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Dn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint144_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint144_deserialize(e,r);if(s[2])throw o(s[1]);return Dn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Dn.__wrap(_[0])}}const o2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint152_free(n>>>0,1));class Ln{static __wrap(t){t=t>>>0;const e=Object.create(Ln.prototype);return e.__wbg_ptr=t,o2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,o2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ln.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint152_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ln.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint152_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ln.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint152_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint152_deserialize(e,r);if(s[2])throw o(s[1]);return Ln.__wrap(s[0])}safe_serialize(t){const e=i.fheuint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ln.__wrap(_[0])}}const a2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint16_free(n>>>0,1));class jn{static __wrap(t){t=t>>>0;const e=Object.create(jn.prototype);return e.__wbg_ptr=t,a2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,a2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint16_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint16_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint16_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint16_deserialize(e,r);if(s[2])throw o(s[1]);return jn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return jn.__wrap(_[0])}}const c2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint160_free(n>>>0,1));class Vn{static __wrap(t){t=t>>>0;const e=Object.create(Vn.prototype);return e.__wbg_ptr=t,c2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,c2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint160_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint160_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint160_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint160_deserialize(e,r);if(s[2])throw o(s[1]);return Vn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Vn.__wrap(_[0])}}const u2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint168_free(n>>>0,1));class Yn{static __wrap(t){t=t>>>0;const e=Object.create(Yn.prototype);return e.__wbg_ptr=t,u2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,u2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint168_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint168_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint168_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint168_deserialize(e,r);if(s[2])throw o(s[1]);return Yn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Yn.__wrap(_[0])}}const f2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint176_free(n>>>0,1));class Hn{static __wrap(t){t=t>>>0;const e=Object.create(Hn.prototype);return e.__wbg_ptr=t,f2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,f2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint176_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint176_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint176_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint176_deserialize(e,r);if(s[2])throw o(s[1]);return Hn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Hn.__wrap(_[0])}}const l2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint184_free(n>>>0,1));class qn{static __wrap(t){t=t>>>0;const e=Object.create(qn.prototype);return e.__wbg_ptr=t,l2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,l2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint184_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint184_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint184_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint184_deserialize(e,r);if(s[2])throw o(s[1]);return qn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return qn.__wrap(_[0])}}const p2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint192_free(n>>>0,1));class Qn{static __wrap(t){t=t>>>0;const e=Object.create(Qn.prototype);return e.__wbg_ptr=t,p2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,p2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint192_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint192_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint192_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint192_deserialize(e,r);if(s[2])throw o(s[1]);return Qn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Qn.__wrap(_[0])}}const h2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint2_free(n>>>0,1));class Wn{static __wrap(t){t=t>>>0;const e=Object.create(Wn.prototype);return e.__wbg_ptr=t,h2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,h2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint2_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint2_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint2_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint2_deserialize(e,r);if(s[2])throw o(s[1]);return Wn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Wn.__wrap(_[0])}}const w2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint200_free(n>>>0,1));class Jn{static __wrap(t){t=t>>>0;const e=Object.create(Jn.prototype);return e.__wbg_ptr=t,w2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,w2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint200_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint200_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint200_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint200_deserialize(e,r);if(s[2])throw o(s[1]);return Jn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Jn.__wrap(_[0])}}const d2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint2048_free(n>>>0,1));class $n{static __wrap(t){t=t>>>0;const e=Object.create($n.prototype);return e.__wbg_ptr=t,d2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,d2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $n.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint2048_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $n.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint2048_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $n.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint2048_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint2048_deserialize(e,r);if(s[2])throw o(s[1]);return $n.__wrap(s[0])}safe_serialize(t){const e=i.fheuint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return $n.__wrap(_[0])}}const g2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint208_free(n>>>0,1));class Zn{static __wrap(t){t=t>>>0;const e=Object.create(Zn.prototype);return e.__wbg_ptr=t,g2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,g2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint208_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint208_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint208_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint208_deserialize(e,r);if(s[2])throw o(s[1]);return Zn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Zn.__wrap(_[0])}}const b2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint216_free(n>>>0,1));class Xn{static __wrap(t){t=t>>>0;const e=Object.create(Xn.prototype);return e.__wbg_ptr=t,b2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,b2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint216_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint216_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint216_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint216_deserialize(e,r);if(s[2])throw o(s[1]);return Xn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Xn.__wrap(_[0])}}const y2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint224_free(n>>>0,1));class ti{static __wrap(t){t=t>>>0;const e=Object.create(ti.prototype);return e.__wbg_ptr=t,y2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,y2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ti.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint224_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ti.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint224_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ti.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint224_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint224_deserialize(e,r);if(s[2])throw o(s[1]);return ti.__wrap(s[0])}safe_serialize(t){const e=i.fheuint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ti.__wrap(_[0])}}const A2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint232_free(n>>>0,1));class ei{static __wrap(t){t=t>>>0;const e=Object.create(ei.prototype);return e.__wbg_ptr=t,A2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,A2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ei.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint232_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ei.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint232_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ei.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint232_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint232_deserialize(e,r);if(s[2])throw o(s[1]);return ei.__wrap(s[0])}safe_serialize(t){const e=i.fheuint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ei.__wrap(_[0])}}const m2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint24_free(n>>>0,1));class ri{static __wrap(t){t=t>>>0;const e=Object.create(ri.prototype);return e.__wbg_ptr=t,m2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,m2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ri.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint24_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ri.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint24_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ri.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint24_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]>>>0}serialize(){const t=i.fheuint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint24_deserialize(e,r);if(s[2])throw o(s[1]);return ri.__wrap(s[0])}safe_serialize(t){const e=i.fheuint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ri.__wrap(_[0])}}const S2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint240_free(n>>>0,1));class ni{static __wrap(t){t=t>>>0;const e=Object.create(ni.prototype);return e.__wbg_ptr=t,S2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,S2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ni.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint240_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ni.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint240_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ni.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint240_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint240_deserialize(e,r);if(s[2])throw o(s[1]);return ni.__wrap(s[0])}safe_serialize(t){const e=i.fheuint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ni.__wrap(_[0])}}const R2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint248_free(n>>>0,1));class ii{static __wrap(t){t=t>>>0;const e=Object.create(ii.prototype);return e.__wbg_ptr=t,R2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,R2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ii.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint248_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ii.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint248_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ii.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint248_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint248_deserialize(e,r);if(s[2])throw o(s[1]);return ii.__wrap(s[0])}safe_serialize(t){const e=i.fheuint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ii.__wrap(_[0])}}const E2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint256_free(n>>>0,1));class si{static __wrap(t){t=t>>>0;const e=Object.create(si.prototype);return e.__wbg_ptr=t,E2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return si.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint256_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return si.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint256_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return si.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint256_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint256_deserialize(e,r);if(s[2])throw o(s[1]);return si.__wrap(s[0])}safe_serialize(t){const e=i.fheuint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return si.__wrap(_[0])}}const P2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint32_free(n>>>0,1));class _i{static __wrap(t){t=t>>>0;const e=Object.create(_i.prototype);return e.__wbg_ptr=t,P2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,P2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _i.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint32_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _i.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint32_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _i.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint32_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]>>>0}serialize(){const t=i.fheuint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint32_deserialize(e,r);if(s[2])throw o(s[1]);return _i.__wrap(s[0])}safe_serialize(t){const e=i.fheuint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return _i.__wrap(_[0])}}const z2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint4_free(n>>>0,1));class oi{static __wrap(t){t=t>>>0;const e=Object.create(oi.prototype);return e.__wbg_ptr=t,z2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,z2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint4_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint4_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint4_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint4_deserialize(e,r);if(s[2])throw o(s[1]);return oi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return oi.__wrap(_[0])}}const v2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint40_free(n>>>0,1));class ai{static __wrap(t){t=t>>>0;const e=Object.create(ai.prototype);return e.__wbg_ptr=t,v2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,v2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ai.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint40_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ai.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint40_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ai.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint40_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint40_deserialize(e,r);if(s[2])throw o(s[1]);return ai.__wrap(s[0])}safe_serialize(t){const e=i.fheuint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ai.__wrap(_[0])}}const M2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint48_free(n>>>0,1));class ci{static __wrap(t){t=t>>>0;const e=Object.create(ci.prototype);return e.__wbg_ptr=t,M2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,M2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ci.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint48_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ci.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint48_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ci.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint48_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint48_deserialize(e,r);if(s[2])throw o(s[1]);return ci.__wrap(s[0])}safe_serialize(t){const e=i.fheuint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ci.__wrap(_[0])}}const B2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint512_free(n>>>0,1));class ui{static __wrap(t){t=t>>>0;const e=Object.create(ui.prototype);return e.__wbg_ptr=t,B2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,B2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ui.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint512_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ui.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint512_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ui.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint512_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint512_deserialize(e,r);if(s[2])throw o(s[1]);return ui.__wrap(s[0])}safe_serialize(t){const e=i.fheuint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ui.__wrap(_[0])}}const x2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint56_free(n>>>0,1));class fi{static __wrap(t){t=t>>>0;const e=Object.create(fi.prototype);return e.__wbg_ptr=t,x2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,x2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint56_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint56_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint56_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint56_deserialize(e,r);if(s[2])throw o(s[1]);return fi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fi.__wrap(_[0])}}const C2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint6_free(n>>>0,1));class li{static __wrap(t){t=t>>>0;const e=Object.create(li.prototype);return e.__wbg_ptr=t,C2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,C2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return li.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint6_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return li.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint6_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return li.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint6_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint6_deserialize(e,r);if(s[2])throw o(s[1]);return li.__wrap(s[0])}safe_serialize(t){const e=i.fheuint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return li.__wrap(_[0])}}const I2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint64_free(n>>>0,1));class pi{static __wrap(t){t=t>>>0;const e=Object.create(pi.prototype);return e.__wbg_ptr=t,I2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,I2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint64_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint64_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint64_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint64_deserialize(e,r);if(s[2])throw o(s[1]);return pi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return pi.__wrap(_[0])}}const N2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint72_free(n>>>0,1));class hi{static __wrap(t){t=t>>>0;const e=Object.create(hi.prototype);return e.__wbg_ptr=t,N2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,N2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint72_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint72_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint72_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint72_deserialize(e,r);if(s[2])throw o(s[1]);return hi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return hi.__wrap(_[0])}}const O2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint8_free(n>>>0,1));class wi{static __wrap(t){t=t>>>0;const e=Object.create(wi.prototype);return e.__wbg_ptr=t,O2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,O2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint8_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint8_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint8_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint8_deserialize(e,r);if(s[2])throw o(s[1]);return wi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wi.__wrap(_[0])}}const k2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint80_free(n>>>0,1));class di{static __wrap(t){t=t>>>0;const e=Object.create(di.prototype);return e.__wbg_ptr=t,k2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,k2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return di.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint80_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return di.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint80_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return di.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint80_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint80_deserialize(e,r);if(s[2])throw o(s[1]);return di.__wrap(s[0])}safe_serialize(t){const e=i.fheuint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return di.__wrap(_[0])}}const T2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint88_free(n>>>0,1));class gi{static __wrap(t){t=t>>>0;const e=Object.create(gi.prototype);return e.__wbg_ptr=t,T2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,T2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint88_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint88_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint88_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint88_deserialize(e,r);if(s[2])throw o(s[1]);return gi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return gi.__wrap(_[0])}}const G2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint96_free(n>>>0,1));class bi{static __wrap(t){t=t>>>0;const e=Object.create(bi.prototype);return e.__wbg_ptr=t,G2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint96_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint96_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint96_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint96_deserialize(e,r);if(s[2])throw o(s[1]);return bi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return bi.__wrap(_[0])}}const F2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_provencompactciphertextlist_free(n>>>0,1));class La{static __wrap(t){t=t>>>0;const e=Object.create(La.prototype);return e.__wbg_ptr=t,F2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,F2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_provencompactciphertextlist_free(t,0)}static builder(t){b(t,ar);const e=i.provencompactciphertextlist_builder(t.__wbg_ptr);if(e[2])throw o(e[1]);return pu.__wrap(e[0])}len(){return i.compactciphertextlistexpander_len(this.__wbg_ptr)>>>0}is_empty(){return i.compactciphertextlistexpander_is_empty(this.__wbg_ptr)!==0}get_kind_of(t){const e=i.provencompactciphertextlist_get_kind_of(this.__wbg_ptr,t);return e===84?void 0:e}verify_and_expand(t,e,r){b(t,zr),b(e,ar);const s=S(r,i.__wbindgen_malloc),_=A,a=i.provencompactciphertextlist_verify_and_expand(this.__wbg_ptr,t.__wbg_ptr,e.__wbg_ptr,s,_);if(a[2])throw o(a[1]);return fo.__wrap(a[0])}expand_without_verification(){const t=i.provencompactciphertextlist_expand_without_verification(this.__wbg_ptr);if(t[2])throw o(t[1]);return fo.__wrap(t[0])}serialize(){const t=i.provencompactciphertextlist_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.provencompactciphertextlist_deserialize(e,r);if(s[2])throw o(s[1]);return La.__wrap(s[0])}safe_serialize(t){const e=i.provencompactciphertextlist_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.provencompactciphertextlist_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return La.__wrap(_[0])}}const Ev=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortint_free(n>>>0,1));class Pv{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ev.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortint_free(t,0)}static new_gaussian_from_std_dev(t){const e=i.shortint_new_gaussian_from_std_dev(t);return or.__wrap(e)}static try_new_t_uniform(t){const e=i.shortint_try_new_t_uniform(t);if(e[2])throw o(e[1]);return or.__wrap(e[0])}static new_parameters(t,e,r,s,_,a,c,u,l,f,w,y,M,B,I){b(s,or),b(_,or);const G=i.shortint_new_parameters(t,e,r,s.__wbg_ptr,_.__wbg_ptr,a,c,u,l,f,w,y,M,B,I);return ls.__wrap(G)}static new_client_key_from_seed_and_parameters(t,e,r){b(r,ls);const s=i.shortint_new_client_key_from_seed_and_parameters(t,e,r.__wbg_ptr);return Je.__wrap(s)}static new_client_key(t){b(t,ls);const e=i.shortint_new_client_key(t.__wbg_ptr);return Je.__wrap(e)}static new_public_key(t){b(t,Je);const e=i.shortint_new_public_key(t.__wbg_ptr);return s_.__wrap(e)}static new_compressed_public_key(t){b(t,Je);const e=i.shortint_new_compressed_public_key(t.__wbg_ptr);return i_.__wrap(e)}static new_compressed_server_key(t){b(t,Je);const e=i.shortint_new_compressed_server_key(t.__wbg_ptr);return ja.__wrap(e)}static encrypt(t,e){b(t,Je);const r=i.shortint_encrypt(t.__wbg_ptr,e);return yi.__wrap(r)}static encrypt_compressed(t,e){b(t,Je);const r=i.shortint_encrypt_compressed(t.__wbg_ptr,e);return n_.__wrap(r)}static decompress_ciphertext(t){b(t,n_);const e=i.shortint_decompress_ciphertext(t.__wbg_ptr);return yi.__wrap(e)}static encrypt_with_public_key(t,e){b(t,s_);const r=i.shortint_encrypt_with_public_key(t.__wbg_ptr,e);return yi.__wrap(r)}static encrypt_with_compressed_public_key(t,e){b(t,i_);const r=i.shortint_encrypt_with_compressed_public_key(t.__wbg_ptr,e);return yi.__wrap(r)}static decrypt(t,e){b(t,Je),b(e,yi);const r=i.shortint_decrypt(t.__wbg_ptr,e.__wbg_ptr);return BigInt.asUintN(64,r)}static serialize_ciphertext(t){b(t,yi);const e=i.shortint_serialize_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_ciphertext(e,r);if(s[2])throw o(s[1]);return yi.__wrap(s[0])}static serialize_compressed_ciphertext(t){b(t,n_);const e=i.shortint_serialize_compressed_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_compressed_ciphertext(e,r);if(s[2])throw o(s[1]);return n_.__wrap(s[0])}static serialize_client_key(t){b(t,Je);const e=i.shortint_serialize_client_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_client_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_client_key(e,r);if(s[2])throw o(s[1]);return Je.__wrap(s[0])}static serialize_public_key(t){b(t,s_);const e=i.shortint_serialize_public_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_public_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_public_key(e,r);if(s[2])throw o(s[1]);return s_.__wrap(s[0])}static serialize_compressed_public_key(t){b(t,i_);const e=i.shortint_serialize_compressed_public_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_public_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_compressed_public_key(e,r);if(s[2])throw o(s[1]);return i_.__wrap(s[0])}static serialize_compressed_server_key(t){b(t,ja);const e=i.shortint_serialize_compressed_server_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_server_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_compressed_server_key(e,r);if(s[2])throw o(s[1]);return ja.__wrap(s[0])}}const U2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintciphertext_free(n>>>0,1));class yi{static __wrap(t){t=t>>>0;const e=Object.create(yi.prototype);return e.__wbg_ptr=t,U2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,U2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintciphertext_free(t,0)}}const K2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintclientkey_free(n>>>0,1));class Je{static __wrap(t){t=t>>>0;const e=Object.create(Je.prototype);return e.__wbg_ptr=t,K2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,K2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintclientkey_free(t,0)}}const Lh=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompactpublickeyencryptionparameters_free(n>>>0,1));class r_{static __wrap(t){t=t>>>0;const e=Object.create(r_.prototype);return e.__wbg_ptr=t,Lh.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lh.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompactpublickeyencryptionparameters_free(t,0)}constructor(t){const e=i.shortintcompactpublickeyencryptionparameters_new(t);return this.__wbg_ptr=e>>>0,Lh.register(this,this.__wbg_ptr,this),this}static new_parameters(t,e,r,s,_,a,c,u){b(e,or);const l=i.shortintcompactpublickeyencryptionparameters_new_parameters(t,e.__wbg_ptr,r,s,_,a,c,u);if(l[2])throw o(l[1]);return r_.__wrap(l[0])}}const D2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompressedciphertext_free(n>>>0,1));class n_{static __wrap(t){t=t>>>0;const e=Object.create(n_.prototype);return e.__wbg_ptr=t,D2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,D2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompressedciphertext_free(t,0)}}const L2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompressedpublickey_free(n>>>0,1));class i_{static __wrap(t){t=t>>>0;const e=Object.create(i_.prototype);return e.__wbg_ptr=t,L2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,L2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompressedpublickey_free(t,0)}}const j2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompressedserverkey_free(n>>>0,1));class ja{static __wrap(t){t=t>>>0;const e=Object.create(ja.prototype);return e.__wbg_ptr=t,j2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,j2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompressedserverkey_free(t,0)}}const V2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintnoisedistribution_free(n>>>0,1));class or{static __wrap(t){t=t>>>0;const e=Object.create(or.prototype);return e.__wbg_ptr=t,V2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintnoisedistribution_free(t,0)}}const jh=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintparameters_free(n>>>0,1));class ls{static __wrap(t){t=t>>>0;const e=Object.create(ls.prototype);return e.__wbg_ptr=t,jh.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jh.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintparameters_free(t,0)}lwe_dimension(){return i.shortintparameters_lwe_dimension(this.__wbg_ptr)>>>0}set_lwe_dimension(t){i.shortintparameters_set_lwe_dimension(this.__wbg_ptr,t)}glwe_dimension(){return i.shortintparameters_glwe_dimension(this.__wbg_ptr)>>>0}set_glwe_dimension(t){i.shortintparameters_set_glwe_dimension(this.__wbg_ptr,t)}polynomial_size(){return i.shortintparameters_polynomial_size(this.__wbg_ptr)>>>0}set_polynomial_size(t){i.shortintparameters_set_polynomial_size(this.__wbg_ptr,t)}lwe_noise_distribution(){const t=i.shortintparameters_glwe_noise_distribution(this.__wbg_ptr);return or.__wrap(t)}set_lwe_noise_distribution(t){b(t,or),i.shortintparameters_set_lwe_noise_distribution(this.__wbg_ptr,t.__wbg_ptr)}glwe_noise_distribution(){const t=i.shortintparameters_glwe_noise_distribution(this.__wbg_ptr);return or.__wrap(t)}set_glwe_noise_distribution(t){b(t,or),i.shortintparameters_set_glwe_noise_distribution(this.__wbg_ptr,t.__wbg_ptr)}pbs_base_log(){return i.shortintparameters_pbs_base_log(this.__wbg_ptr)>>>0}set_pbs_base_log(t){i.shortintparameters_set_pbs_base_log(this.__wbg_ptr,t)}pbs_level(){return i.shortintparameters_pbs_level(this.__wbg_ptr)>>>0}set_pbs_level(t){i.shortintparameters_set_pbs_level(this.__wbg_ptr,t)}ks_base_log(){return i.shortintparameters_ks_base_log(this.__wbg_ptr)>>>0}set_ks_base_log(t){i.shortintparameters_set_ks_base_log(this.__wbg_ptr,t)}ks_level(){return i.shortintparameters_ks_level(this.__wbg_ptr)>>>0}set_ks_level(t){i.shortintparameters_set_ks_level(this.__wbg_ptr,t)}message_modulus(){const t=i.shortintparameters_message_modulus(this.__wbg_ptr);return BigInt.asUintN(64,t)}set_message_modulus(t){i.shortintparameters_set_message_modulus(this.__wbg_ptr,t)}carry_modulus(){const t=i.shortintparameters_carry_modulus(this.__wbg_ptr);return BigInt.asUintN(64,t)}set_carry_modulus(t){i.shortintparameters_set_carry_modulus(this.__wbg_ptr,t)}encryption_key_choice(){return i.shortintparameters_encryption_key_choice(this.__wbg_ptr)}set_encryption_key_choice(t){i.shortintparameters_set_encryption_key_choice(this.__wbg_ptr,t)}constructor(t){const e=i.shortintparameters_new(t);return this.__wbg_ptr=e>>>0,jh.register(this,this.__wbg_ptr,this),this}}const Y2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintpublickey_free(n>>>0,1));class s_{static __wrap(t){t=t>>>0;const e=Object.create(s_.prototype);return e.__wbg_ptr=t,Y2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Y2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintpublickey_free(t,0)}}const H2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheclientkey_free(n>>>0,1));class U{static __wrap(t){t=t>>>0;const e=Object.create(U.prototype);return e.__wbg_ptr=t,H2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,H2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheclientkey_free(t,0)}static generate(t){b(t,o_);const e=i.tfheclientkey_generate(t.__wbg_ptr);if(e[2])throw o(e[1]);return U.__wrap(e[0])}static generate_with_seed(t,e){b(t,o_);const r=i.tfheclientkey_generate_with_seed(t.__wbg_ptr,e);if(r[2])throw o(r[1]);return U.__wrap(r[0])}serialize(){const t=i.tfheclientkey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfheclientkey_deserialize(e,r);if(s[2])throw o(s[1]);return U.__wrap(s[0])}safe_serialize(t){const e=i.tfheclientkey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfheclientkey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return U.__wrap(_[0])}}const q2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompactpublickey_free(n>>>0,1));class ar{static __wrap(t){t=t>>>0;const e=Object.create(ar.prototype);return e.__wbg_ptr=t,q2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,q2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompactpublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompactpublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return ar.__wrap(e[0])}serialize(){const t=i.tfhecompactpublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompactpublickey_deserialize(e,r);if(s[2])throw o(s[1]);return ar.__wrap(s[0])}safe_serialize(t){const e=i.tfhecompactpublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompactpublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ar.__wrap(_[0])}static safe_deserialize_conformant(t,e,r){const s=S(t,i.__wbindgen_malloc),_=A;b(r,r_);const a=i.tfhecompactpublickey_safe_deserialize_conformant(s,_,e,r.__wbg_ptr);if(a[2])throw o(a[1]);return ar.__wrap(a[0])}}const Q2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompressedcompactpublickey_free(n>>>0,1));class __{static __wrap(t){t=t>>>0;const e=Object.create(__.prototype);return e.__wbg_ptr=t,Q2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Q2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompressedcompactpublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompressedcompactpublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return __.__wrap(e[0])}serialize(){const t=i.tfhecompressedcompactpublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompressedcompactpublickey_deserialize(e,r);if(s[2])throw o(s[1]);return __.__wrap(s[0])}decompress(){const t=i.tfhecompressedcompactpublickey_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ar.__wrap(t[0])}safe_serialize(t){const e=i.tfhecompressedcompactpublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompressedcompactpublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return __.__wrap(_[0])}static safe_deserialize_conformant(t,e,r){const s=S(t,i.__wbindgen_malloc),_=A;b(r,r_);const a=i.tfhecompressedcompactpublickey_safe_deserialize_conformant(s,_,e,r.__wbg_ptr);if(a[2])throw o(a[1]);return __.__wrap(a[0])}}const W2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompressedpublickey_free(n>>>0,1));class yt{static __wrap(t){t=t>>>0;const e=Object.create(yt.prototype);return e.__wbg_ptr=t,W2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,W2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompressedpublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompressedpublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return yt.__wrap(e[0])}decompress(){const t=i.tfhecompressedpublickey_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return gt.__wrap(t[0])}serialize(){const t=i.tfhecompressedpublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompressedpublickey_deserialize(e,r);if(s[2])throw o(s[1]);return yt.__wrap(s[0])}safe_serialize(t){const e=i.tfhecompressedpublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompressedpublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return yt.__wrap(_[0])}}const J2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompressedserverkey_free(n>>>0,1));class Va{static __wrap(t){t=t>>>0;const e=Object.create(Va.prototype);return e.__wbg_ptr=t,J2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,J2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompressedserverkey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompressedserverkey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return Va.__wrap(e[0])}serialize(){const t=i.tfhecompressedserverkey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompressedserverkey_deserialize(e,r);if(s[2])throw o(s[1]);return Va.__wrap(s[0])}safe_serialize(t){const e=i.tfhecompressedserverkey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompressedserverkey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Va.__wrap(_[0])}}const $2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheconfig_free(n>>>0,1));class o_{static __wrap(t){t=t>>>0;const e=Object.create(o_.prototype);return e.__wbg_ptr=t,$2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheconfig_free(t,0)}}const Z2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheconfigbuilder_free(n>>>0,1));class a_{static __wrap(t){t=t>>>0;const e=Object.create(a_.prototype);return e.__wbg_ptr=t,Z2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Z2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheconfigbuilder_free(t,0)}static default(){const t=i.tfheconfigbuilder_default();return a_.__wrap(t)}static with_custom_parameters(t){b(t,ls);const e=i.tfheconfigbuilder_with_custom_parameters(t.__wbg_ptr);return a_.__wrap(e)}use_custom_parameters(t){const e=this.__destroy_into_raw();b(t,ls);const r=i.tfheconfigbuilder_use_custom_parameters(e,t.__wbg_ptr);return a_.__wrap(r)}use_dedicated_compact_public_key_parameters(t){const e=this.__destroy_into_raw();b(t,r_);const r=i.tfheconfigbuilder_use_dedicated_compact_public_key_parameters(e,t.__wbg_ptr);return a_.__wrap(r)}build(){const t=this.__destroy_into_raw(),e=i.tfheconfigbuilder_build(t);return o_.__wrap(e)}}const X2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhepublickey_free(n>>>0,1));class gt{static __wrap(t){t=t>>>0;const e=Object.create(gt.prototype);return e.__wbg_ptr=t,X2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,X2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhepublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhepublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return gt.__wrap(e[0])}serialize(){const t=i.tfhepublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhepublickey_deserialize(e,r);if(s[2])throw o(s[1]);return gt.__wrap(s[0])}safe_serialize(t){const e=i.tfhepublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhepublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return gt.__wrap(_[0])}}const tm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheserverkey_free(n>>>0,1));class hu{static __wrap(t){t=t>>>0;const e=Object.create(hu.prototype);return e.__wbg_ptr=t,tm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,tm.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheserverkey_free(t,0)}static new(t){b(t,U);const e=i.tfheserverkey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return hu.__wrap(e[0])}}const zv=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhe_free(n>>>0,1));class vv{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zv.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhe_free(t,0)}}const em=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_wbg_rayon_poolbuilder_free(n>>>0,1));class Gf{static __wrap(t){t=t>>>0;const e=Object.create(Gf.prototype);return e.__wbg_ptr=t,em.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,em.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return i.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return i.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}build(){i.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}}async function Mv(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(r){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function rm(){const n={};return n.wbg={},n.wbg.__wbg_BigInt_470dd987b8190f8e=function(t){return BigInt(t)},n.wbg.__wbg_BigInt_ddea6d2f55558acb=function(){return ao(function(t){return BigInt(t)},arguments)},n.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},n.wbg.__wbg_call_672a4d21634d4a24=function(){return ao(function(t,e){return t.call(e)},arguments)},n.wbg.__wbg_call_7cccdd69e0791ae2=function(){return ao(function(t,e,r){return t.call(e,r)},arguments)},n.wbg.__wbg_crypto_ed58b8e10a292839=function(t){return t.crypto},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(Js(t,e))}finally{i.__wbindgen_free(r,s,1)}},n.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return ao(function(t,e){t.getRandomValues(e)},arguments)},n.wbg.__wbg_getTime_46267b1c24877e30=function(t){return t.getTime()},n.wbg.__wbg_instanceof_Window_def73ea0955fc569=function(t){let e;try{e=t instanceof Window}catch{e=!1}return e},n.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(t){return t.msCrypto},n.wbg.__wbg_new0_f788a2397c7ca929=function(){return new Date},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},n.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return new Function(Js(t,e))},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,e,r){return new Uint8Array(t,e>>>0,r>>>0)},n.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){return new Uint8Array(t>>>0)},n.wbg.__wbg_node_02999533c4ea02e3=function(t){return t.node},n.wbg.__wbg_process_5c1d670bc53614b8=function(t){return t.process},n.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return ao(function(t,e){t.randomFillSync(e)},arguments)},n.wbg.__wbg_require_79b1e9274cde3c87=function(){return ao(function(){return module.require},arguments)},n.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){t.set(e,r>>>0)},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const r=e.stack,s=Tf(r,i.__wbindgen_malloc,i.__wbindgen_realloc),_=A;Dr().setInt32(t+4*1,_,!0),Dr().setInt32(t+4*0,s,!0)},n.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(t,e,r){return cv(t,e,Gf.__wrap(r))},n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t=typeof kf>"u"?null:kf;return $s(t)?0:uu(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t=typeof globalThis>"u"?null:globalThis;return $s(t)?0:uu(t)},n.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t=typeof self>"u"?null:self;return $s(t)?0:uu(t)},n.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t=typeof window>"u"?null:window;return $s(t)?0:uu(t)},n.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,e,r){return t.subarray(e>>>0,r>>>0)},n.wbg.__wbg_toString_2f76f493957b63da=function(t,e,r){const s=e.toString(r),_=Tf(s,i.__wbindgen_malloc,i.__wbindgen_realloc),a=A;Dr().setInt32(t+4*1,a,!0),Dr().setInt32(t+4*0,_,!0)},n.wbg.__wbg_toString_c813bbd34d063839=function(t){return t.toString()},n.wbg.__wbg_versions_c71aa1626a93e0a1=function(t){return t.versions},n.wbg.__wbindgen_bigint_from_i128=function(t,e){return t<<BigInt(64)|BigInt.asUintN(64,e)},n.wbg.__wbindgen_bigint_from_i64=function(t){return t},n.wbg.__wbindgen_bigint_from_u128=function(t,e){return BigInt.asUintN(64,t)<<BigInt(64)|BigInt.asUintN(64,e)},n.wbg.__wbindgen_bigint_from_u64=function(t){return BigInt.asUintN(64,t)},n.wbg.__wbindgen_bigint_get_as_i64=function(t,e){const r=e,s=typeof r=="bigint"?r:void 0;Dr().setBigInt64(t+8*1,$s(s)?BigInt(0):s,!0),Dr().setInt32(t+4*0,!$s(s),!0)},n.wbg.__wbindgen_bit_and=function(t,e){return t&e},n.wbg.__wbindgen_bit_or=function(t,e){return t|e},n.wbg.__wbindgen_debug_string=function(t,e){const r=Uh(e),s=Tf(r,i.__wbindgen_malloc,i.__wbindgen_realloc),_=A;Dr().setInt32(t+4*1,_,!0),Dr().setInt32(t+4*0,s,!0)},n.wbg.__wbindgen_error_new=function(t,e){return new Error(Js(t,e))},n.wbg.__wbindgen_init_externref_table=function(){const t=i.__wbindgen_export_2,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},n.wbg.__wbindgen_is_function=function(t){return typeof t=="function"},n.wbg.__wbindgen_is_object=function(t){const e=t;return typeof e=="object"&&e!==null},n.wbg.__wbindgen_is_string=function(t){return typeof t=="string"},n.wbg.__wbindgen_is_undefined=function(t){return t===void 0},n.wbg.__wbindgen_jsval_eq=function(t,e){return t===e},n.wbg.__wbindgen_lt=function(t,e){return t<e},n.wbg.__wbindgen_memory=function(){return i.memory},n.wbg.__wbindgen_module=function(){return wu.__wbindgen_wasm_module},n.wbg.__wbindgen_neg=function(t){return-t},n.wbg.__wbindgen_number_new=function(t){return t},n.wbg.__wbindgen_shl=function(t,e){return t<<e},n.wbg.__wbindgen_shr=function(t,e){return t>>e},n.wbg.__wbindgen_string_get=function(t,e){const r=e,s=typeof r=="string"?r:void 0;var _=$s(s)?0:Tf(s,i.__wbindgen_malloc,i.__wbindgen_realloc),a=A;Dr().setInt32(t+4*1,a,!0),Dr().setInt32(t+4*0,_,!0)},n.wbg.__wbindgen_string_new=function(t,e){return Js(t,e)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(Js(t,e))},n}function nm(n,t){n.wbg.memory=t||new WebAssembly.Memory({initial:20,maximum:16384,shared:!0})}function im(n,t,e){if(i=n.exports,wu.__wbindgen_wasm_module=t,lu=null,fu=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return i.__wbindgen_start(e),i}function Bv(n,t){if(i!==void 0)return i;let e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n,memory:t,thread_stack_size:e}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const r=rm();nm(r,t),n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const s=new WebAssembly.Instance(n,r);return im(s,n,e)}async function wu(n,t){if(i!==void 0)return i;let e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n,memory:t,thread_stack_size:e}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/tfhe_bg.wasm",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ft&&Ft.tagName.toUpperCase()==="SCRIPT"&&Ft.src||new URL("fhevm.umd.cjs",document.baseURI).href));const r=rm();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n)),nm(r,t);const{instance:s,module:_}=await Mv(await n,r);return im(s,_,e)}var xv=Object.freeze({__proto__:null,Boolean:Rv,BooleanCiphertext:Lr,BooleanClientKey:_r,BooleanCompressedCiphertext:Zs,BooleanCompressedServerKey:uo,BooleanEncryptionKeyChoice:wv,BooleanNoiseDistribution:Xs,BooleanParameterSet:dv,BooleanParameters:t_,BooleanPublicKey:e_,CompactCiphertextList:fs,CompactCiphertextListBuilder:pu,CompactCiphertextListExpander:fo,CompactPkeCrs:zr,CompressedFheBool:lo,CompressedFheInt10:po,CompressedFheInt1024:ho,CompressedFheInt104:wo,CompressedFheInt112:go,CompressedFheInt12:bo,CompressedFheInt120:yo,CompressedFheInt128:Ao,CompressedFheInt136:mo,CompressedFheInt14:So,CompressedFheInt144:Ro,CompressedFheInt152:Eo,CompressedFheInt16:Po,CompressedFheInt160:zo,CompressedFheInt168:vo,CompressedFheInt176:Mo,CompressedFheInt184:Bo,CompressedFheInt192:xo,CompressedFheInt2:Co,CompressedFheInt200:Io,CompressedFheInt2048:No,CompressedFheInt208:Oo,CompressedFheInt216:ko,CompressedFheInt224:To,CompressedFheInt232:Go,CompressedFheInt24:Fo,CompressedFheInt240:Uo,CompressedFheInt248:Ko,CompressedFheInt256:Do,CompressedFheInt32:Lo,CompressedFheInt4:jo,CompressedFheInt40:Vo,CompressedFheInt48:Yo,CompressedFheInt512:Ho,CompressedFheInt56:qo,CompressedFheInt6:Qo,CompressedFheInt64:Wo,CompressedFheInt72:Jo,CompressedFheInt8:$o,CompressedFheInt80:Zo,CompressedFheInt88:Xo,CompressedFheInt96:ta,CompressedFheUint10:ea,CompressedFheUint1024:ra,CompressedFheUint104:na,CompressedFheUint112:ia,CompressedFheUint12:sa,CompressedFheUint120:_a,CompressedFheUint128:oa,CompressedFheUint136:aa,CompressedFheUint14:ca,CompressedFheUint144:ua,CompressedFheUint152:fa,CompressedFheUint16:la,CompressedFheUint160:pa,CompressedFheUint168:ha,CompressedFheUint176:wa,CompressedFheUint184:da,CompressedFheUint192:ga,CompressedFheUint2:ba,CompressedFheUint200:ya,CompressedFheUint2048:Aa,CompressedFheUint208:ma,CompressedFheUint216:Sa,CompressedFheUint224:Ra,CompressedFheUint232:Ea,CompressedFheUint24:Pa,CompressedFheUint240:za,CompressedFheUint248:va,CompressedFheUint256:Ma,CompressedFheUint32:Ba,CompressedFheUint4:xa,CompressedFheUint40:Ca,CompressedFheUint48:Ia,CompressedFheUint512:Na,CompressedFheUint56:Oa,CompressedFheUint6:ka,CompressedFheUint64:Ta,CompressedFheUint72:Ga,CompressedFheUint8:Fa,CompressedFheUint80:Ua,CompressedFheUint88:Ka,CompressedFheUint96:Da,FheBool:jr,FheInt10:Vr,FheInt1024:Yr,FheInt104:Hr,FheInt112:qr,FheInt12:Qr,FheInt120:Wr,FheInt128:Jr,FheInt136:$r,FheInt14:Zr,FheInt144:Xr,FheInt152:tn,FheInt16:en,FheInt160:rn,FheInt168:nn,FheInt176:sn,FheInt184:_n,FheInt192:on,FheInt2:an,FheInt200:cn,FheInt2048:un,FheInt208:fn,FheInt216:ln,FheInt224:pn,FheInt232:hn,FheInt24:wn,FheInt240:dn,FheInt248:gn,FheInt256:bn,FheInt32:yn,FheInt4:An,FheInt40:mn,FheInt48:Sn,FheInt512:Rn,FheInt56:En,FheInt6:Pn,FheInt64:zn,FheInt72:vn,FheInt8:Mn,FheInt80:Bn,FheInt88:xn,FheInt96:Cn,FheTypes:gv,FheUint10:In,FheUint1024:Nn,FheUint104:On,FheUint112:kn,FheUint12:Tn,FheUint120:Gn,FheUint128:Fn,FheUint136:Un,FheUint14:Kn,FheUint144:Dn,FheUint152:Ln,FheUint16:jn,FheUint160:Vn,FheUint168:Yn,FheUint176:Hn,FheUint184:qn,FheUint192:Qn,FheUint2:Wn,FheUint200:Jn,FheUint2048:$n,FheUint208:Zn,FheUint216:Xn,FheUint224:ti,FheUint232:ei,FheUint24:ri,FheUint240:ni,FheUint248:ii,FheUint256:si,FheUint32:_i,FheUint4:oi,FheUint40:ai,FheUint48:ci,FheUint512:ui,FheUint56:fi,FheUint6:li,FheUint64:pi,FheUint72:hi,FheUint8:wi,FheUint80:di,FheUint88:gi,FheUint96:bi,ProvenCompactCiphertextList:La,Shortint:Pv,ShortintCiphertext:yi,ShortintClientKey:Je,ShortintCompactPublicKeyEncryptionParameters:r_,ShortintCompactPublicKeyEncryptionParametersName:bv,ShortintCompressedCiphertext:n_,ShortintCompressedPublicKey:i_,ShortintCompressedServerKey:ja,ShortintEncryptionKeyChoice:yv,ShortintNoiseDistribution:or,ShortintPBSOrder:Av,ShortintParameters:ls,ShortintParametersName:mv,ShortintPublicKey:s_,TfheClientKey:U,TfheCompactPublicKey:ar,TfheCompressedCompactPublicKey:__,TfheCompressedPublicKey:yt,TfheCompressedServerKey:Va,TfheConfig:o_,TfheConfigBuilder:a_,TfhePublicKey:gt,TfheServerKey:hu,ZkComputeLoad:Sb,default:wu,initSync:Bv,initThreadPool:Dh,init_panic_hook:Kh,set_server_key:fv,shortint_params_name:pv,shortint_pke_params_name:lv,tfhe:vv,wbg_rayon_PoolBuilder:Gf,wbg_rayon_start_worker:hv});let _t,ce=0,du=null;function Ya(){return(du===null||du.byteLength===0)&&(du=new Uint8Array(_t.memory.buffer)),du}const Ff=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Cv=typeof Ff.encodeInto=="function"?function(n,t){return Ff.encodeInto(n,t)}:function(n,t){const e=Ff.encode(n);return t.set(e),{read:n.length,written:e.length}};function Ha(n,t,e){if(e===void 0){const c=Ff.encode(n),u=t(c.length,1)>>>0;return Ya().subarray(u,u+c.length).set(c),ce=c.length,u}let r=n.length,s=t(r,1)>>>0;const _=Ya();let a=0;for(;a<r;a++){const c=n.charCodeAt(a);if(c>127)break;_[s+a]=c}if(a!==r){a!==0&&(n=n.slice(a)),s=e(s,r,r=a+n.length*3,1)>>>0;const c=Ya().subarray(s+a,s+r),u=Cv(n,c);a+=u.written,s=e(s,r,a,1)>>>0}return ce=a,s}let c_=null;function cr(){return(c_===null||c_.buffer.detached===!0||c_.buffer.detached===void 0&&c_.buffer!==_t.memory.buffer)&&(c_=new DataView(_t.memory.buffer)),c_}function qa(n){const t=_t.__externref_table_alloc();return _t.__wbindgen_export_4.set(t,n),t}function u_(n,t){try{return n.apply(this,t)}catch(e){const r=qa(e);_t.__wbindgen_exn_store(r)}}const sm=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&sm.decode();function gu(n,t){return n=n>>>0,sm.decode(Ya().subarray(n,n+t))}function ps(n){return n==null}function Vh(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const s=n.description;return s==null?"Symbol":`Symbol(${s})`}if(t=="function"){const s=n.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(n)){const s=n.length;let _="[";s>0&&(_+=Vh(n[0]));for(let a=1;a<s;a++)_+=", "+Vh(n[a]);return _+="]",_}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
22
|
-
${n.stack}`:r}function f_(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function vr(n,t){return n=n>>>0,Ya().subarray(n/1,n/1+t)}function Mr(n,t){const e=t(n.length*1,1)>>>0;return Ya().set(n,e/1),ce=n.length,e}function Qa(n){const t=_t.__wbindgen_export_4.get(n);return _t.__externref_table_dealloc(n),t}function _m(n,t){const e=t(n.length*4,4)>>>0;for(let r=0;r<n.length;r++){const s=qa(n[r]);cr().setUint32(e+4*r,s,!0)}return ce=n.length,e}function Iv(n,t,e){const r=_m(n,_t.__wbindgen_malloc),s=ce,_=Ha(t,_t.__wbindgen_malloc,_t.__wbindgen_realloc),a=ce,c=Ha(e,_t.__wbindgen_malloc,_t.__wbindgen_realloc),u=ce,l=_t.new_client(r,s,_,a,c,u);if(l[2])throw Qa(l[1]);return Uf.__wrap(l[0])}function om(n,t){n=n>>>0;const e=cr(),r=[];for(let s=n;s<n+4*t;s+=4)r.push(_t.__wbindgen_export_4.get(e.getUint32(s,!0)));return _t.__externref_drop_slice(n,t),r}function Nv(){const n=_t.ml_kem_pke_keygen();return l_.__wrap(n)}function Ov(n){f_(n,l_);const t=_t.ml_kem_pke_get_pk(n.__wbg_ptr);return Wa.__wrap(t)}function kv(n){f_(n,Wa);const t=_t.ml_kem_pke_pk_to_u8vec(n.__wbg_ptr);if(t[3])throw Qa(t[2]);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}function Tv(n){f_(n,l_);const t=_t.ml_kem_pke_sk_to_u8vec(n.__wbg_ptr);if(t[3])throw Qa(t[2]);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}function Gv(n){const t=Mr(n,_t.__wbindgen_malloc),e=ce,r=_t.u8vec_to_ml_kem_pke_pk(t,e);if(r[2])throw Qa(r[1]);return Wa.__wrap(r[0])}function Fv(n){const t=Mr(n,_t.__wbindgen_malloc),e=ce,r=_t.u8vec_to_ml_kem_pke_sk(t,e);if(r[2])throw Qa(r[1]);return l_.__wrap(r[0])}function Uv(n,t,e,r,s,_,a){f_(n,Uf),f_(s,Wa),f_(_,l_);const c=_t.process_user_decryption_resp_from_js(n.__wbg_ptr,t,e,r,s.__wbg_ptr,_.__wbg_ptr,a);if(c[3])throw Qa(c[2]);var u=om(c[0],c[1]).slice();return _t.__wbindgen_free(c[0],c[1]*4,4),u}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_ciphertexthandle_free(n>>>0,1));const am=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_client_free(n>>>0,1));class Uf{static __wrap(t){t=t>>>0;const e=Object.create(Uf.prototype);return e.__wbg_ptr=t,am.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,am.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_client_free(t,0)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_cryptoboxct_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_eip712domainmsg_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_parseduserdecryptionrequest_free(n>>>0,1));const cm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_privateenckey_free(n>>>0,1));class l_{static __wrap(t){t=t>>>0;const e=Object.create(l_.prototype);return e.__wbg_ptr=t,cm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,cm.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_privateenckey_free(t,0)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_privatesigkey_free(n>>>0,1));const um=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_publicenckey_free(n>>>0,1));class Wa{static __wrap(t){t=t>>>0;const e=Object.create(Wa.prototype);return e.__wbg_ptr=t,um.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,um.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_publicenckey_free(t,0)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_publicsigkey_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_requestid_free(n>>>0,1));const fm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_serveridaddr_free(n>>>0,1));class bu{static __wrap(t){t=t>>>0;const e=Object.create(bu.prototype);return e.__wbg_ptr=t,fm.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof bu?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,fm.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_serveridaddr_free(t,0)}}const lm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_typedciphertext_free(n>>>0,1));class yu{static __wrap(t){t=t>>>0;const e=Object.create(yu.prototype);return e.__wbg_ptr=t,lm.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof yu?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lm.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_typedciphertext_free(t,0)}get ciphertext(){const t=_t.__wbg_get_typedciphertext_ciphertext(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set ciphertext(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get fhe_type(){return _t.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr)}set fhe_type(t){_t.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr,t)}get external_handle(){const t=_t.__wbg_get_typedciphertext_external_handle(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set external_handle(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get ciphertext_format(){return _t.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr)}set ciphertext_format(t){_t.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr,t)}}const pm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_typedplaintext_free(n>>>0,1));class Yh{static __wrap(t){t=t>>>0;const e=Object.create(Yh.prototype);return e.__wbg_ptr=t,pm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pm.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_typedplaintext_free(t,0)}get bytes(){const t=_t.__wbg_get_typedplaintext_bytes(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set bytes(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get fhe_type(){return _t.__wbg_get_typedplaintext_fhe_type(this.__wbg_ptr)}set fhe_type(t){_t.__wbg_set_typedplaintext_fhe_type(this.__wbg_ptr,t)}}const hm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_typedsigncryptedciphertext_free(n>>>0,1));class Au{static __wrap(t){t=t>>>0;const e=Object.create(Au.prototype);return e.__wbg_ptr=t,hm.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof Au?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,hm.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_typedsigncryptedciphertext_free(t,0)}get fhe_type(){return _t.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr)}set fhe_type(t){_t.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr,t)}get signcrypted_ciphertext(){const t=_t.__wbg_get_typedsigncryptedciphertext_signcrypted_ciphertext(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set signcrypted_ciphertext(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get external_handle(){const t=_t.__wbg_get_typedsigncryptedciphertext_external_handle(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set external_handle(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get packing_factor(){return _t.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr)>>>0}set packing_factor(t){_t.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr,t)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>_t.__wbg_userdecryptionrequest_free(n>>>0,1));const Kv=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_userdecryptionresponse_free(n>>>0,1));class Hh{static __unwrap(t){return t instanceof Hh?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kv.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_userdecryptionresponse_free(t,0)}get signature(){const t=_t.__wbg_get_userdecryptionresponse_signature(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set signature(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get external_signature(){const t=_t.__wbg_get_userdecryptionresponse_external_signature(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set external_signature(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get payload(){const t=_t.__wbg_get_userdecryptionresponse_payload(this.__wbg_ptr);return t===0?void 0:Kf.__wrap(t)}set payload(t){let e=0;ps(t)||(f_(t,Kf),e=t.__destroy_into_raw()),_t.__wbg_set_userdecryptionresponse_payload(this.__wbg_ptr,e)}}const wm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_t.__wbg_userdecryptionresponsepayload_free(n>>>0,1));class Kf{static __wrap(t){t=t>>>0;const e=Object.create(Kf.prototype);return e.__wbg_ptr=t,wm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wm.unregister(this),t}free(){const t=this.__destroy_into_raw();_t.__wbg_userdecryptionresponsepayload_free(t,0)}get verification_key(){const t=_t.__wbg_get_userdecryptionresponsepayload_verification_key(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set verification_key(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get digest(){const t=_t.__wbg_get_userdecryptionresponsepayload_digest(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*1,1),e}set digest(t){const e=Mr(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get signcrypted_ciphertexts(){const t=_t.__wbg_get_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr);var e=om(t[0],t[1]).slice();return _t.__wbindgen_free(t[0],t[1]*4,4),e}set signcrypted_ciphertexts(t){const e=_m(t,_t.__wbindgen_malloc),r=ce;_t.__wbg_set_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr,e,r)}get party_id(){return _t.__wbg_get_userdecryptionresponsepayload_party_id(this.__wbg_ptr)>>>0}set party_id(t){_t.__wbg_set_userdecryptionresponsepayload_party_id(this.__wbg_ptr,t)}get degree(){return _t.__wbg_get_userdecryptionresponsepayload_degree(this.__wbg_ptr)>>>0}set degree(t){_t.__wbg_set_userdecryptionresponsepayload_degree(this.__wbg_ptr,t)}}async function Dv(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(r){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function Lv(){const n={};return n.wbg={},n.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,e){const r=String(e),s=Ha(r,_t.__wbindgen_malloc,_t.__wbindgen_realloc),_=ce;cr().setInt32(t+4*1,_,!0),cr().setInt32(t+4*0,s,!0)},n.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},n.wbg.__wbg_call_672a4d21634d4a24=function(){return u_(function(t,e){return t.call(e)},arguments)},n.wbg.__wbg_call_7cccdd69e0791ae2=function(){return u_(function(t,e,r){return t.call(e,r)},arguments)},n.wbg.__wbg_crypto_ed58b8e10a292839=function(t){return t.crypto},n.wbg.__wbg_done_769e5ede4b31c67b=function(t){return t.done},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(gu(t,e))}finally{_t.__wbindgen_free(r,s,1)}},n.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return u_(function(t,e){t.getRandomValues(e)},arguments)},n.wbg.__wbg_get_67b2ba62fc30de12=function(){return u_(function(t,e){return Reflect.get(t,e)},arguments)},n.wbg.__wbg_get_b9b93047fe3cf45b=function(t,e){return t[e>>>0]},n.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(t,e){return t[e]},n.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(t){let e;try{e=t instanceof ArrayBuffer}catch{e=!1}return e},n.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(t){let e;try{e=t instanceof Uint8Array}catch{e=!1}return e},n.wbg.__wbg_isArray_a1eab7e0d067391b=function(t){return Array.isArray(t)},n.wbg.__wbg_isSafeInteger_343e2beeeece1bb0=function(t){return Number.isSafeInteger(t)},n.wbg.__wbg_iterator_9a24c88df860dc65=function(){return Symbol.iterator},n.wbg.__wbg_length_a446193dc22c12f8=function(t){return t.length},n.wbg.__wbg_length_e2d2a49132c1b256=function(t){return t.length},n.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(t){return t.msCrypto},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},n.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return new Function(gu(t,e))},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,e,r){return new Uint8Array(t,e>>>0,r>>>0)},n.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){return new Uint8Array(t>>>0)},n.wbg.__wbg_next_25feadfc0913fea9=function(t){return t.next},n.wbg.__wbg_next_6574e1a8a62d1055=function(){return u_(function(t){return t.next()},arguments)},n.wbg.__wbg_node_02999533c4ea02e3=function(t){return t.node},n.wbg.__wbg_process_5c1d670bc53614b8=function(t){return t.process},n.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return u_(function(t,e){t.randomFillSync(e)},arguments)},n.wbg.__wbg_require_79b1e9274cde3c87=function(){return u_(function(){return module.require},arguments)},n.wbg.__wbg_serveridaddr_new=function(t){return bu.__wrap(t)},n.wbg.__wbg_serveridaddr_unwrap=function(t){return bu.__unwrap(t)},n.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){t.set(e,r>>>0)},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const r=e.stack,s=Ha(r,_t.__wbindgen_malloc,_t.__wbindgen_realloc),_=ce;cr().setInt32(t+4*1,_,!0),cr().setInt32(t+4*0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t=typeof kf>"u"?null:kf;return ps(t)?0:qa(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t=typeof globalThis>"u"?null:globalThis;return ps(t)?0:qa(t)},n.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t=typeof self>"u"?null:self;return ps(t)?0:qa(t)},n.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t=typeof window>"u"?null:window;return ps(t)?0:qa(t)},n.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,e,r){return t.subarray(e>>>0,r>>>0)},n.wbg.__wbg_typedciphertext_new=function(t){return yu.__wrap(t)},n.wbg.__wbg_typedciphertext_unwrap=function(t){return yu.__unwrap(t)},n.wbg.__wbg_typedplaintext_new=function(t){return Yh.__wrap(t)},n.wbg.__wbg_typedsigncryptedciphertext_new=function(t){return Au.__wrap(t)},n.wbg.__wbg_typedsigncryptedciphertext_unwrap=function(t){return Au.__unwrap(t)},n.wbg.__wbg_userdecryptionresponse_unwrap=function(t){return Hh.__unwrap(t)},n.wbg.__wbg_value_cd1ffa7b1ab794f1=function(t){return t.value},n.wbg.__wbg_versions_c71aa1626a93e0a1=function(t){return t.versions},n.wbg.__wbindgen_as_number=function(t){return+t},n.wbg.__wbindgen_boolean_get=function(t){const e=t;return typeof e=="boolean"?e?1:0:2},n.wbg.__wbindgen_debug_string=function(t,e){const r=Vh(e),s=Ha(r,_t.__wbindgen_malloc,_t.__wbindgen_realloc),_=ce;cr().setInt32(t+4*1,_,!0),cr().setInt32(t+4*0,s,!0)},n.wbg.__wbindgen_error_new=function(t,e){return new Error(gu(t,e))},n.wbg.__wbindgen_in=function(t,e){return t in e},n.wbg.__wbindgen_init_externref_table=function(){const t=_t.__wbindgen_export_4,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},n.wbg.__wbindgen_is_function=function(t){return typeof t=="function"},n.wbg.__wbindgen_is_null=function(t){return t===null},n.wbg.__wbindgen_is_object=function(t){const e=t;return typeof e=="object"&&e!==null},n.wbg.__wbindgen_is_string=function(t){return typeof t=="string"},n.wbg.__wbindgen_is_undefined=function(t){return t===void 0},n.wbg.__wbindgen_jsval_loose_eq=function(t,e){return t==e},n.wbg.__wbindgen_memory=function(){return _t.memory},n.wbg.__wbindgen_number_get=function(t,e){const r=e,s=typeof r=="number"?r:void 0;cr().setFloat64(t+8*1,ps(s)?0:s,!0),cr().setInt32(t+4*0,!ps(s),!0)},n.wbg.__wbindgen_string_get=function(t,e){const r=e,s=typeof r=="string"?r:void 0;var _=ps(s)?0:Ha(s,_t.__wbindgen_malloc,_t.__wbindgen_realloc),a=ce;cr().setInt32(t+4*1,a,!0),cr().setInt32(t+4*0,_,!0)},n.wbg.__wbindgen_string_new=function(t,e){return gu(t,e)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(gu(t,e))},n}function jv(n,t){return _t=n.exports,qh.__wbindgen_wasm_module=t,c_=null,du=null,_t.__wbindgen_start(),_t}async function qh(n){if(_t!==void 0)return _t;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/kms_lib_bg.wasm",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ft&&Ft.tagName.toUpperCase()==="SCRIPT"&&Ft.src||new URL("fhevm.umd.cjs",document.baseURI).href));const t=Lv();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:r}=await Dv(await n,t);return jv(e,r)}const Vv=BigInt(1024*1024*512),Qh=BigInt(1024*1024*512),Wh=BigInt(1024*1024*512),mu=n=>n?n.endsWith("/")?n.slice(0,-1):n:"",dm=n=>{let t=n.toString(16);return t.length%2?"0"+t:t},ur=n=>{const t=n.replace(/^(0x)/,"").match(/.{1,2}/g);return t?Uint8Array.from(t.map(e=>parseInt(e,16))):new Uint8Array},Ai=(n,t=!1)=>`${t?"0x":""}${n.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")}`,Df=function(n){if(!n||(n==null?void 0:n.length)===0)return BigInt(0);const t=Array.from(n).map(e=>e.toString(16).padStart(2,"0")).join("");return BigInt(`0x${t}`)},Jh={},gm=async(n,t)=>{if(Jh[n])return Jh[n];try{const e=await fetch(`${n}/v1/keyurl`);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();if(r){let s;if(!t)s=r.response.fhe_key_info[0].fhe_public_key.urls[0],t=r.response.fhe_key_info[0].fhe_public_key.data_id;else{const B=r.response.fhe_key_info.find(I=>I.fhe_public_key.data_id===t);if(!B)throw new Error(`Could not find FHE key info with data_id ${t}`);s=B.fhe_public_key.urls[0]}const _=await fetch(s);if(!_.ok)throw new Error(`HTTP error! status: ${_.status} on ${_.url}`);let a;typeof _.bytes=="function"?a=await _.bytes():a=new Uint8Array(await _.arrayBuffer());const c=r.response.crs[2048].urls[0],u=r.response.crs[2048].data_id,l=await fetch(c);if(!l.ok)throw new Error(`HTTP error! status: ${l.status} on ${l.url}`);let f;typeof l.bytes=="function"?f=await l.bytes():f=new Uint8Array(await l.arrayBuffer());let w;try{w=TFHE.TfheCompactPublicKey.safe_deserialize(a,Qh)}catch(B){throw new Error("Invalid public key (deserialization failed)",{cause:B})}let y;try{y=TFHE.CompactPkeCrs.safe_deserialize(new Uint8Array(f),Wh)}catch(B){throw new Error("Invalid crs (deserialization failed)",{cause:B})}const M={publicKey:w,publicKeyId:t,publicParams:{2048:{publicParams:y,publicParamsId:u}}};return Jh[n]=M,M}else throw new Error("No public key available")}catch(e){throw new Error("Impossible to fetch public key: wrong relayer url.",{cause:e})}},bm=["function getKmsSigners() view returns (address[])","function getThreshold() view returns (uint256)"],ym=["function getCoprocessorSigners() view returns (address[])","function getThreshold() view returns (uint256)"],Yv=n=>{if(typeof n.network=="string")return new sz(n.network);if(n.network)return new oz(n.network);throw new Error("You must provide a network URL or a EIP1193 object (eg: window.ethereum)")},Hv=async(n,t)=>{if(t.chainId&&typeof t.chainId=="number")return t.chainId;if(t.chainId&&typeof t.chainId!="number")throw new Error("chainId must be a number.");{const e=(await n.getNetwork()).chainId;return Number(e)}},qv=async n=>{if(n.relayerUrl&&!n.publicKey){const t=await gm(mu(n.relayerUrl));return{publicKey:t.publicKey,publicKeyId:t.publicKeyId}}else if(n.publicKey&&n.publicKey.data&&n.publicKey.id){const t=n.publicKey.data;try{return{publicKey:TFHE.TfheCompactPublicKey.safe_deserialize(t,Qh),publicKeyId:n.publicKey.id}}catch(e){throw new Error("Invalid public key (deserialization failed)",{cause:e})}}else throw new Error("You must provide a public key with its public key ID.")},Qv=async n=>{if(n.relayerUrl&&!n.publicParams)return(await gm(mu(n.relayerUrl))).publicParams;if(n.publicParams&&n.publicParams[2048]){const t=n.publicParams[2048].publicParams;try{return{2048:{publicParams:TFHE.CompactPkeCrs.safe_deserialize(t,Wh),publicParamsId:n.publicParams[2048].publicParamsId}}}catch(e){throw new Error("Invalid public key (deserialization failed)",{cause:e})}}else throw new Error("You must provide a valid CRS with its CRS ID.")},Wv=async(n,t)=>await new Pr(t.kmsContractAddress,bm,n).getKmsSigners(),Jv=async(n,t)=>{const r=await new Pr(t.kmsContractAddress,bm,n).getThreshold();return Number(r)},$v=async(n,t)=>await new Pr(t.inputVerifierContractAddress,ym,n).getCoprocessorSigners(),Zv=async(n,t)=>{const r=await new Pr(t.inputVerifierContractAddress,ym,n).getThreshold();return Number(r)},Am={0:2,2:8,3:16,4:32,5:64,6:128,7:160,8:256,9:512,10:1024,11:2048};function mm(n){let t=0;for(const e of n){if(e.length!==66)throw new Error(`Handle ${e} is not of valid length`);const r=e.slice(-4,-2).toLowerCase(),s=parseInt(r,16);if(!(s in Am))throw new Error(`Handle ${e} is not of valid type`);if(t+=Am[s],t>2048)throw new Error("Cannot decrypt more than 2048 encrypted bits in a single request")}return t}const Xv=["function persistAllowed(bytes32 handle, address account) view returns (bool)"],Sm=10,Rm=BigInt(365);function tM(n,t){return t===0?n===BigInt(1):t===7?Vt("0x"+n.toString(16).padStart(40,"0")):t===9?"0x"+n.toString(16).padStart(128,"0"):t===10?"0x"+n.toString(16).padStart(256,"0"):t===11?"0x"+n.toString(16).padStart(512,"0"):n}function eM(n,t){let e=[];for(const s of n){const _=s.slice(-4,-2).toLowerCase(),a=parseInt(_,16);e.push(a)}let r={};return n.forEach((s,_)=>r[s]=tM(t[_],e[_])),r}function rM(n,t){if(t===BigInt(0))throw Error("durationDays is null");if(t>Rm)throw Error(`durationDays is above max duration of ${Rm}`);const e=BigInt(Math.floor(Date.now()/1e3));if(n>e)throw Error("startTimestamp is set in the future");const r=t*BigInt(86400);if(n+r<e)throw Error("User decrypt request has expired")}const nM=(n,t,e,r,s,_,a)=>async(c,u,l,f,w,y,M,B)=>{const I=f.replace(/^(0x)/,""),G=l.replace(/^(0x)/,""),P=c.map(At=>({handle:typeof At.handle=="string"?Ai(ur(At.handle),!0):Ai(At.handle,!0),contractAddress:At.contractAddress}));mm(P.map(At=>At.handle)),rM(BigInt(M),BigInt(B));const v=new Pr(s,Xv,a),N=P.map(async({handle:At,contractAddress:Bt})=>{const ft=await v.persistAllowed(At,y),wt=await v.persistAllowed(At,Bt);if(!ft)throw new Error(`User ${y} is not authorized to user decrypt handle ${At}!`);if(!wt)throw new Error(`dapp contract ${Bt} is not authorized to user decrypt handle ${At}!`);if(y===Bt)throw new Error(`userAddress ${y} should not be equal to contractAddress when requesting user decryption!`)}),C=w.length;if(C===0)throw Error("contractAddresses is empty");if(C>Sm)throw Error(`contractAddresses max length of ${Sm} exceeded`);await Promise.all(N).catch(At=>{throw At});const F={handleContractPairs:P,requestValidity:{startTimestamp:M.toString(),durationDays:B.toString()},contractsChainId:e.toString(),contractAddresses:w.map(At=>Vt(At)),userAddress:Vt(y),signature:I,publicKey:G},D={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F)};let j,L;try{j=TKMS.u8vec_to_ml_kem_pke_pk(ur(l)),L=TKMS.u8vec_to_ml_kem_pke_sk(ur(u))}catch(At){throw new Error("Invalid public or private key",{cause:At})}let Z,ot;try{if(Z=await fetch(`${_}/v1/user-decrypt`,D),!Z.ok)throw new Error(`User decrypt failed: relayer respond with HTTP code ${Z.status}`)}catch(At){throw new Error("User decrypt failed: Relayer didn't respond",{cause:At})}try{ot=await Z.json()}catch(At){throw new Error("User decrypt failed: Relayer didn't return a JSON",{cause:At})}if(ot.status==="failure")throw new Error("User decrypt failed: the user decryption didn't succeed for an unknown reason",{cause:ot});let pt=n.map((At,Bt)=>TKMS.new_server_id_addr(Bt+1,At));const Y=TKMS.new_client(pt,y,"default");try{const At=new ArrayBuffer(32);new DataView(At).setUint32(28,t,!1);const wt={name:"Decryption",version:"1",chain_id:new Uint8Array(At),verifying_contract:r,salt:null},Pt={signature:I,client_address:y,enc_key:G,ciphertext_handles:P.map(jt=>jt.handle.replace(/^0x/,"")),eip712_verifying_contract:r},Mt=TKMS.process_user_decryption_resp_from_js(Y,Pt,wt,ot.response,j,L,!0).map(jt=>Df(jt.bytes));return eM(P.map(jt=>jt.handle),Mt)}catch(At){throw new Error("An error occured during decryption",{cause:At})}},mi=(n,t)=>{if(n==null)throw new Error("Missing value");let e;if(t>=8?e=BigInt(`0x${new Array(t/8).fill(null).reduce(r=>`${r}ff`,"")}`):e=BigInt(2**t-1),typeof n!="number"&&typeof n!="bigint")throw new Error("Value must be a number or a bigint.");if(n>e)throw new Error(`The value exceeds the limit for ${t}bits integer (${e.toString()}).`)},iM=({aclContractAddress:n,chainId:t,tfheCompactPublicKey:e,publicParams:r,contractAddress:s,userAddress:_})=>{if(!sr(s))throw new Error("Contract address is not a valid address.");if(!sr(_))throw new Error("User address is not a valid address.");const a=e,c=[],u=TFHE.CompactCiphertextList.builder(a);let l=new Uint8Array;const f=w=>{if(c.reduce((y,M)=>y+Math.max(2,M),0)+w>2048)throw Error("Packing more than 2048 bits in a single input ciphertext is unsupported");if(c.length+1>256)throw Error("Packing more than 256 variables in a single input ciphertext is unsupported")};return{addBool(w){if(w==null)throw new Error("Missing value");if(typeof w!="boolean"&&typeof w!="number"&&typeof w!="bigint")throw new Error("The value must be a boolean, a number or a bigint.");if(Number(w)>1)throw new Error("The value must be 1 or 0.");return mi(Number(w),1),f(2),u.push_boolean(!!w),c.push(1),this},add8(w){return mi(w,8),f(8),u.push_u8(Number(w)),c.push(8),this},add16(w){return mi(w,16),f(16),u.push_u16(Number(w)),c.push(16),this},add32(w){return mi(w,32),f(32),u.push_u32(Number(w)),c.push(32),this},add64(w){return mi(w,64),f(64),u.push_u64(BigInt(w)),c.push(64),this},add128(w){return mi(w,128),f(128),u.push_u128(BigInt(w)),c.push(128),this},addAddress(w){if(!sr(w))throw new Error("The value must be a valid address.");return f(160),u.push_u160(BigInt(w)),c.push(160),this},add256(w){return mi(w,256),f(256),u.push_u256(BigInt(w)),c.push(256),this},addBytes64(w){if(w.length!==64)throw Error("Uncorrect length of input Uint8Array, should be 64 for an ebytes64");const y=Df(w);return mi(y,512),f(512),u.push_u512(y),c.push(512),this},addBytes128(w){if(w.length!==128)throw Error("Uncorrect length of input Uint8Array, should be 128 for an ebytes128");const y=Df(w);return mi(y,1024),f(1024),u.push_u1024(y),c.push(1024),this},addBytes256(w){if(w.length!==256)throw Error("Uncorrect length of input Uint8Array, should be 256 for an ebytes256");const y=Df(w);return mi(y,2048),f(2048),u.push_u2048(y),c.push(2048),this},getBits(){return c},encrypt(){const y=(()=>{const C=L=>Object.keys(L),F=c.reduce((L,Z)=>L+Z,0),D=C(r),j=D.find(L=>Number(L)>=F);if(!j)throw new Error(`Too many bits in provided values. Maximum is ${D[D.length-1]}.`);return j})(),M=r[y].publicParams,B=ur(s),I=ur(_),G=ur(n),P=ur(t.toString(16).padStart(64,"0")),v=new Uint8Array(B.length+I.length+G.length+32);return v.set(B,0),v.set(I,20),v.set(G,40),v.set(P,v.length-P.length),l=u.build_with_proof_packed(M,v,TFHE.ZkComputeLoad.Verify).safe_serialize(Vv),l}}},Em={1:0,8:2,16:3,32:4,64:5,128:6,160:7,256:8,512:9,1024:10,2048:11},sM=BigInt("18446744073709551615"),_M=(n,t,e,r,s)=>{const _=gb("keccak256").update(yr.from(n)).digest(),a=yr.from(ur(e)),c=r.toString(16).padStart(64,"0"),u=yr.from(c,"hex");return t.map((f,w)=>{const y=Em[f],M=yr.from([w]),B=gb("keccak256").update(_).update(M).update(a).update(u).digest(),I=new Uint8Array(32);if(I.set(B,0),BigInt(r)>sM)throw new Error("ChainId exceeds maximum allowed value (8 bytes)");const G=ur(c).slice(24,32);return I[21]=w,I.set(G,22),I[30]=y,I[31]=s,I})},oM=()=>0;function aM(n,t,e){const r=new Map;t.forEach((s,_)=>{if(r.has(s)){const a=s;throw new Error(`Duplicate coprocessor signer address found: ${a} appears multiple times in recovered addresses`)}r.set(s,_)});for(const s of t)if(!n.includes(s))throw new Error(`Invalid address found: ${s} is not in the list of coprocessor signers`);return t.length>=e}const cM=(n,t,e,r,s,_,a,c,u)=>(l,f)=>{if(!sr(l))throw new Error("Contract address is not a valid address.");if(!sr(f))throw new Error("User address is not a valid address.");const w=iM({aclContractAddress:n,chainId:e,tfheCompactPublicKey:_,publicParams:a,contractAddress:l,userAddress:f});return{_input:w,addBool(y){return w.addBool(y),this},add8(y){return w.add8(y),this},add16(y){return w.add16(y),this},add32(y){return w.add32(y),this},add64(y){return w.add64(y),this},add128(y){return w.add128(y),this},add256(y){return w.add256(y),this},addBytes64(y){return w.addBytes64(y),this},addBytes128(y){return w.addBytes128(y),this},addBytes256(y){return w.addBytes256(y),this},addAddress(y){return w.addAddress(y),this},getBits(){return w.getBits()},encrypt:async()=>{const y=w.getBits(),M=w.encrypt(),B={contractAddress:Vt(l),userAddress:Vt(f),ciphertextWithInputVerification:Ai(M),contractChainId:"0x"+e.toString(16)},I={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)},G=`${s}/v1/input-proof`;let P;try{const pt=await fetch(G,I);if(!pt.ok)throw new Error(`Relayer didn't response correctly. Bad status ${pt.statusText}. Content: ${await pt.text()}`);try{P=await pt.json()}catch(Y){throw new Error("Relayer didn't response correctly. Bad JSON.",{cause:Y})}}catch(pt){throw new Error("Relayer didn't response correctly.",{cause:pt})}const v=_M(M,y,n,e,oM());if(P.response.handles&&P.response.handles.length>0){const pt=P.response.handles.map(ur);if(v.length!=pt.length)throw new Error(`Incorrect Handles list sizes: (expected) ${v.length} != ${pt.length} (received)`);for(let Y=0;Y<v.length;Y+=1){let At=v[Y],Bt=pt[Y],ft=Ai(At),wt=Ai(Bt);if(ft!==wt)throw new Error(`Incorrect Handle ${Y}: (expected) ${ft} != ${wt} (received)`)}}const N=P.response.signatures,C={name:"InputVerification",version:"1",chainId:r,verifyingContract:t},F={CiphertextVerification:[{name:"ctHandles",type:"bytes32[]"},{name:"userAddress",type:"address"},{name:"contractAddress",type:"address"},{name:"contractChainId",type:"uint256"}]},D=N.map(pt=>{const Y=pt.startsWith("0x")?pt:`0x${pt}`;return Ng(C,F,{ctHandles:v,userAddress:f,contractAddress:l,contractChainId:e},Y)});if(!aM(c,D,u))throw Error("Coprocessor signers threshold is not reached");let L=dm(v.length);const Z=N.length;return L+=dm(Z),v.map(pt=>Ai(pt)).map(pt=>L+=pt),N.map(pt=>L+=pt.slice(2)),{handles:v,inputProof:ur(L)}}}},uM=["function isAllowedForDecryption(bytes32 handle) view returns (bool)"];function fM(n,t,e){const r=new Map;t.forEach((s,_)=>{if(r.has(s)){const a=s;throw new Error(`Duplicate KMS signer address found: ${a} appears multiple times in recovered addresses`)}r.set(s,_)});for(const s of t)if(!n.includes(s))throw new Error(`Invalid address found: ${s} is not in the list of KMS signers`);return t.length>=e}const lM={0:"bool",2:"uint256",3:"uint256",4:"uint256",5:"uint256",6:"uint256",7:"address",8:"uint256",9:"bytes",10:"bytes",11:"bytes"};function pM(n,t){let e=[];for(const l of n){const f=l.slice(-4,-2).toLowerCase(),w=parseInt(f,16);e.push(w)}const r="0x"+"00".repeat(32)+t.slice(2)+"00".repeat(32),s=e.map(l=>lM[l]),c=new X_().decode(["uint256",...s,"bytes[]"],r).slice(1,1+e.length);let u={};return n.forEach((l,f)=>u[l]=c[f]),u}const hM=(n,t,e,r,s,_,a)=>async c=>{const u=new Pr(s,uM,a);let l;try{l=await Promise.all(c.map(async j=>{const L=Ai(typeof j=="string"?ur(j):j,!0);if(!await u.isAllowedForDecryption(L))throw new Error(`Handle ${L} is not allowed for public decryption!`);return L}))}catch(j){throw j}const f=l.map(async j=>{if(!await u.isAllowedForDecryption(j))throw new Error(`Handle ${j} is not allowed for public decryption!`)});await Promise.all(f).catch(j=>{throw j}),mm(l);const y={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ciphertextHandles:l})};let M,B;try{if(M=await fetch(`${_}/v1/public-decrypt`,y),!M.ok)throw new Error(`Public decrypt failed: relayer respond with HTTP code ${M.status}`)}catch(j){throw new Error("Public decrypt failed: Relayer didn't respond",{cause:j})}try{B=await M.json()}catch(j){throw new Error("Public decrypt failed: Relayer didn't return a JSON",{cause:j})}if(B.status==="failure")throw new Error("Public decrypt failed: the public decrypt didn't succeed for an unknown reason",{cause:B});const I={name:"Decryption",version:"1",chainId:e,verifyingContract:r},G={PublicDecryptVerification:[{name:"ctHandles",type:"bytes32[]"},{name:"decryptedResult",type:"bytes"}]},P=B.response[0],v=P.decrypted_value.startsWith("0x")?P.decrypted_value:`0x${P.decrypted_value}`,C=P.signatures.map(j=>{const L=j.startsWith("0x")?j:`0x${j}`;return Ng(I,G,{ctHandles:l,decryptedResult:v},L)});if(!fM(n,C,t))throw Error("KMS signers threshold is not reached");return pM(l,v)},Pm=(n,t)=>(e,r,s,_,a)=>{if(a&&!sr(a))throw new Error("Invalid delegated account.");if(!sr(n))throw new Error("Invalid verifying contract address.");if(!r.every(y=>sr(y)))throw new Error("Invalid contract address.");const c=typeof e=="string"?e.startsWith("0x")?e:`0x${e}`:e,u=typeof s=="number"?s.toString():s,l=typeof _=="number"?_.toString():_,f=[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],w={name:"Decryption",version:"1",chainId:t,verifyingContract:n};return a?{types:{EIP712Domain:f,DelegatedUserDecryptRequestVerification:[{name:"publicKey",type:"bytes"},{name:"contractAddresses",type:"address[]"},{name:"contractsChainId",type:"uint256"},{name:"startTimestamp",type:"uint256"},{name:"durationDays",type:"uint256"},{name:"delegatedAccount",type:"address"}]},primaryType:"DelegatedUserDecryptRequestVerification",domain:w,message:{publicKey:c,contractAddresses:r,contractsChainId:t,startTimestamp:u,durationDays:l,delegatedAccount:a}}:{types:{EIP712Domain:f,UserDecryptRequestVerification:[{name:"publicKey",type:"bytes"},{name:"contractAddresses",type:"address[]"},{name:"contractsChainId",type:"uint256"},{name:"startTimestamp",type:"uint256"},{name:"durationDays",type:"uint256"}]},primaryType:"UserDecryptRequestVerification",domain:w,message:{publicKey:c,contractAddresses:r,contractsChainId:t,startTimestamp:u,durationDays:l}}},zm=()=>{const n=TKMS.ml_kem_pke_keygen();return{publicKey:Ai(TKMS.ml_kem_pke_pk_to_u8vec(TKMS.ml_kem_pke_get_pk(n))),privateKey:Ai(TKMS.ml_kem_pke_sk_to_u8vec(n))}};te.fetch=ov(te.fetch,{retries:5,retryDelay:500});const wM={aclContractAddress:"0x687820221192C5B662b25367F70076A37bc79b6c",kmsContractAddress:"0x1364cBBf2cDF5032C47d8226a6f6FBD2AFCDacAC",inputVerifierContractAddress:"0xbc91f3daD1A5F19F8390c400196e58073B6a0BC4",verifyingContractAddressDecryption:"0xb6E160B1ff80D67Bfe90A85eE06Ce0A2613607D1",verifyingContractAddressInputVerification:"0x7048C39f048125eDa9d678AEbaDfB22F7900a29F",chainId:11155111,gatewayChainId:55815,network:"https://eth-sepolia.public.blastapi.io",relayerUrl:"https://relayer.testnet.zama.cloud"},dM=async n=>{const{verifyingContractAddressDecryption:t,verifyingContractAddressInputVerification:e,publicKey:r,kmsContractAddress:s,aclContractAddress:_,gatewayChainId:a}=n;if(!s||!sr(s))throw new Error("KMS contract address is not valid or empty");if(!t||!sr(t))throw new Error("Verifying contract for Decryption address is not valid or empty");if(!e||!sr(e))throw new Error("Verifying contract for InputVerification address is not valid or empty");if(!_||!sr(_))throw new Error("ACL contract address is not valid or empty");if(r&&!(r.data instanceof Uint8Array))throw new Error("publicKey must be a Uint8Array");const c=Yv(n);if(!c)throw new Error("No network has been provided!");const u=await Hv(c,n),l=await qv(n),f=await Qv(n),w=await Wv(c,n),y=await Jv(c,n),M=await $v(c,n),B=await Zv(c,n);return{createEncryptedInput:cM(_,e,u,a,mu(n.relayerUrl),l.publicKey,f,M,B),generateKeypair:zm,createEIP712:Pm(t,u),publicDecrypt:hM(w,y,a,t,_,mu(n.relayerUrl),c),userDecrypt:nM(w,a,u,t,_,mu(n.relayerUrl),c),getPublicKey:()=>l.publicKey?{publicKey:l.publicKey.safe_serialize(Qh),publicKeyId:l.publicKeyId}:null,getPublicParams:I=>f[I]?{publicParams:f[I].publicParams.safe_serialize(Wh),publicParamsId:f[I].publicParamsId}:null}};let vm=!1;const gM=async({tfheParams:n,kmsParams:t,thread:e}={})=>(e==null&&(e=navigator.hardwareConcurrency),await av()||(console.warn(`This browser does not support threads. Verify that your server returns correct headers:
|
|
20
|
+
`)+" "+_t[1]:_t[0]+it+" "+J.join(", ")+" "+_t[1]}n.types=Lz();function G(J){return Array.isArray(J)}n.isArray=G;function P(J){return typeof J=="boolean"}n.isBoolean=P;function v(J){return J===null}n.isNull=v;function N(J){return J==null}n.isNullOrUndefined=N;function C(J){return typeof J=="number"}n.isNumber=C;function F(J){return typeof J=="string"}n.isString=F;function D(J){return typeof J=="symbol"}n.isSymbol=D;function j(J){return J===void 0}n.isUndefined=j;function L(J){return Z(J)&&Bt(J)==="[object RegExp]"}n.isRegExp=L,n.types.isRegExp=L;function Z(J){return typeof J=="object"&&J!==null}n.isObject=Z;function ot(J){return Z(J)&&Bt(J)==="[object Date]"}n.isDate=ot,n.types.isDate=ot;function pt(J){return Z(J)&&(Bt(J)==="[object Error]"||J instanceof Error)}n.isError=pt,n.types.isNativeError=pt;function Y(J){return typeof J=="function"}n.isFunction=Y;function At(J){return J===null||typeof J=="boolean"||typeof J=="number"||typeof J=="string"||typeof J=="symbol"||typeof J>"u"}n.isPrimitive=At,n.isBuffer=jz();function Bt(J){return Object.prototype.toString.call(J)}function ft(J){return J<10?"0"+J.toString(10):J.toString(10)}var wt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Pt(){var J=new Date,it=[ft(J.getHours()),ft(J.getMinutes()),ft(J.getSeconds())].join(":");return[J.getDate(),wt[J.getMonth()],it].join(" ")}n.log=function(){console.log("%s - %s",Pt(),n.format.apply(n,arguments))},n.inherits=oo(),n._extend=function(J,it){if(!it||!Z(it))return J;for(var _t=Object.keys(it),St=_t.length;St--;)J[_t[St]]=it[_t[St]];return J};function Ct(J,it){return Object.prototype.hasOwnProperty.call(J,it)}var Mt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(it){if(typeof it!="function")throw new TypeError('The "original" argument must be of type Function');if(Mt&&it[Mt]){var _t=it[Mt];if(typeof _t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(_t,Mt,{value:_t,enumerable:!1,writable:!1,configurable:!0}),_t}function _t(){for(var St,H,V=new Promise(function(dt,x){St=dt,H=x}),tt=[],ut=0;ut<arguments.length;ut++)tt.push(arguments[ut]);tt.push(function(dt,x){dt?H(dt):St(x)});try{it.apply(this,tt)}catch(dt){H(dt)}return V}return Object.setPrototypeOf(_t,Object.getPrototypeOf(it)),Mt&&Object.defineProperty(_t,Mt,{value:_t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(_t,t(it))},n.promisify.custom=Mt;function It(J,it){if(!J){var _t=new Error("Promise was rejected with a falsy value");_t.reason=J,J=_t}return it(J)}function jt(J){if(typeof J!="function")throw new TypeError('The "original" argument must be of type Function');function it(){for(var _t=[],St=0;St<arguments.length;St++)_t.push(arguments[St]);var H=_t.pop();if(typeof H!="function")throw new TypeError("The last argument must be of type Function");var V=this,tt=function(){return H.apply(V,arguments)};J.apply(this,_t).then(function(ut){Lt.nextTick(tt.bind(null,null,ut))},function(ut){Lt.nextTick(It.bind(null,ut,tt))})}return Object.setPrototypeOf(it,Object.getPrototypeOf(J)),Object.defineProperties(it,t(J)),it}n.callbackify=jt}(yp)),yp}var gh,D1;function Vz(){if(D1)return gh;D1=1;function n(B,I){var G=Object.keys(B);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(B);I&&(P=P.filter(function(v){return Object.getOwnPropertyDescriptor(B,v).enumerable})),G.push.apply(G,P)}return G}function t(B){for(var I=1;I<arguments.length;I++){var G=arguments[I]!=null?arguments[I]:{};I%2?n(Object(G),!0).forEach(function(P){e(B,P,G[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(G)):n(Object(G)).forEach(function(P){Object.defineProperty(B,P,Object.getOwnPropertyDescriptor(G,P))})}return B}function e(B,I,G){return I=a(I),I in B?Object.defineProperty(B,I,{value:G,enumerable:!0,configurable:!0,writable:!0}):B[I]=G,B}function r(B,I){if(!(B instanceof I))throw new TypeError("Cannot call a class as a function")}function s(B,I){for(var G=0;G<I.length;G++){var P=I[G];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(B,a(P.key),P)}}function _(B,I,G){return I&&s(B.prototype,I),Object.defineProperty(B,"prototype",{writable:!1}),B}function a(B){var I=c(B,"string");return typeof I=="symbol"?I:String(I)}function c(B,I){if(typeof B!="object"||B===null)return B;var G=B[Symbol.toPrimitive];if(G!==void 0){var P=G.call(B,I);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}var u=Bf(),l=u.Buffer,f=K1(),w=f.inspect,y=w&&w.custom||"inspect";function M(B,I,G){l.prototype.copy.call(B,I,G)}return gh=function(){function B(){r(this,B),this.head=null,this.tail=null,this.length=0}return _(B,[{key:"push",value:function(G){var P={data:G,next:null};this.length>0?this.tail.next=P:this.head=P,this.tail=P,++this.length}},{key:"unshift",value:function(G){var P={data:G,next:this.head};this.length===0&&(this.tail=P),this.head=P,++this.length}},{key:"shift",value:function(){if(this.length!==0){var G=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,G}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(G){if(this.length===0)return"";for(var P=this.head,v=""+P.data;P=P.next;)v+=G+P.data;return v}},{key:"concat",value:function(G){if(this.length===0)return l.alloc(0);for(var P=l.allocUnsafe(G>>>0),v=this.head,N=0;v;)M(v.data,P,N),N+=v.data.length,v=v.next;return P}},{key:"consume",value:function(G,P){var v;return G<this.head.data.length?(v=this.head.data.slice(0,G),this.head.data=this.head.data.slice(G)):G===this.head.data.length?v=this.shift():v=P?this._getString(G):this._getBuffer(G),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(G){var P=this.head,v=1,N=P.data;for(G-=N.length;P=P.next;){var C=P.data,F=G>C.length?C.length:G;if(F===C.length?N+=C:N+=C.slice(0,G),G-=F,G===0){F===C.length?(++v,P.next?this.head=P.next:this.head=this.tail=null):(this.head=P,P.data=C.slice(F));break}++v}return this.length-=v,N}},{key:"_getBuffer",value:function(G){var P=l.allocUnsafe(G),v=this.head,N=1;for(v.data.copy(P),G-=v.data.length;v=v.next;){var C=v.data,F=G>C.length?C.length:G;if(C.copy(P,P.length-G,0,F),G-=F,G===0){F===C.length?(++N,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=C.slice(F));break}++N}return this.length-=N,P}},{key:y,value:function(G,P){return w(this,t(t({},P),{},{depth:0,customInspect:!1}))}}]),B}(),gh}var bh,L1;function j1(){if(L1)return bh;L1=1;function n(a,c){var u=this,l=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return l||f?(c?c(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Lt.nextTick(s,this,a)):Lt.nextTick(s,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(w){!c&&w?u._writableState?u._writableState.errorEmitted?Lt.nextTick(e,u):(u._writableState.errorEmitted=!0,Lt.nextTick(t,u,w)):Lt.nextTick(t,u,w):c?(Lt.nextTick(e,u),c(w)):Lt.nextTick(e,u)}),this)}function t(a,c){s(a,c),e(a)}function e(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(a,c){a.emit("error",c)}function _(a,c){var u=a._readableState,l=a._writableState;u&&u.autoDestroy||l&&l.autoDestroy?a.destroy(c):a.emit("error",c)}return bh={destroy:n,undestroy:r,errorOrDestroy:_},bh}var yh={},V1;function ao(){if(V1)return yh;V1=1;function n(c,u){c.prototype=Object.create(u.prototype),c.prototype.constructor=c,c.__proto__=u}var t={};function e(c,u,l){l||(l=Error);function f(y,M,B){return typeof u=="string"?u:u(y,M,B)}var w=function(y){n(M,y);function M(B,I,G){return y.call(this,f(B,I,G))||this}return M}(l);w.prototype.name=l.name,w.prototype.code=c,t[c]=w}function r(c,u){if(Array.isArray(c)){var l=c.length;return c=c.map(function(f){return String(f)}),l>2?"one of ".concat(u," ").concat(c.slice(0,l-1).join(", "),", or ")+c[l-1]:l===2?"one of ".concat(u," ").concat(c[0]," or ").concat(c[1]):"of ".concat(u," ").concat(c[0])}else return"of ".concat(u," ").concat(String(c))}function s(c,u,l){return c.substr(0,u.length)===u}function _(c,u,l){return(l===void 0||l>c.length)&&(l=c.length),c.substring(l-u.length,l)===u}function a(c,u,l){return typeof l!="number"&&(l=0),l+u.length>c.length?!1:c.indexOf(u,l)!==-1}return e("ERR_INVALID_OPT_VALUE",function(c,u){return'The value "'+u+'" is invalid for option "'+c+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(c,u,l){var f;typeof u=="string"&&s(u,"not ")?(f="must not be",u=u.replace(/^not /,"")):f="must be";var w;if(_(c," argument"))w="The ".concat(c," ").concat(f," ").concat(r(u,"type"));else{var y=a(c,".")?"property":"argument";w='The "'.concat(c,'" ').concat(y," ").concat(f," ").concat(r(u,"type"))}return w+=". Received type ".concat(typeof l),w},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),yh.codes=t,yh}var Ah,Y1;function H1(){if(Y1)return Ah;Y1=1;var n=ao().codes.ERR_INVALID_OPT_VALUE;function t(r,s,_){return r.highWaterMark!=null?r.highWaterMark:s?r[_]:null}function e(r,s,_,a){var c=t(s,a,_);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var u=a?_:"highWaterMark";throw new n(u,c)}return Math.floor(c)}return r.objectMode?16:16*1024}return Ah={getHighWaterMark:e},Ah}var mh,q1;function Yz(){if(q1)return mh;q1=1,mh=n;function n(e,r){if(t("noDeprecation"))return e;var s=!1;function _(){if(!s){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),s=!0}return e.apply(this,arguments)}return _}function t(e){try{if(!us.localStorage)return!1}catch{return!1}var r=us.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}return mh}var Sh,Q1;function W1(){if(Q1)return Sh;Q1=1,Sh=L;function n(H){var V=this;this.next=null,this.entry=null,this.finish=function(){St(V,H)}}var t;L.WritableState=D;var e={deprecate:Yz()},r=U0(),s=Bf().Buffer,_=(typeof us<"u"?us:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(H){return s.from(H)}function c(H){return s.isBuffer(H)||H instanceof _}var u=j1(),l=H1(),f=l.getHighWaterMark,w=ao().codes,y=w.ERR_INVALID_ARG_TYPE,M=w.ERR_METHOD_NOT_IMPLEMENTED,B=w.ERR_MULTIPLE_CALLBACK,I=w.ERR_STREAM_CANNOT_PIPE,G=w.ERR_STREAM_DESTROYED,P=w.ERR_STREAM_NULL_VALUES,v=w.ERR_STREAM_WRITE_AFTER_END,N=w.ERR_UNKNOWN_ENCODING,C=u.errorOrDestroy;oo()(L,r);function F(){}function D(H,V,tt){t=t||co(),H=H||{},typeof tt!="boolean"&&(tt=V instanceof t),this.objectMode=!!H.objectMode,tt&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=f(this,H,"writableHighWaterMark",tt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ut=H.decodeStrings===!1;this.decodeStrings=!ut,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(dt){wt(V,dt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}D.prototype.getBuffer=function(){for(var V=this.bufferedRequest,tt=[];V;)tt.push(V),V=V.next;return tt},function(){try{Object.defineProperty(D.prototype,"buffer",{get:e.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var j;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(V){return j.call(this,V)?!0:this!==L?!1:V&&V._writableState instanceof D}})):j=function(V){return V instanceof this};function L(H){t=t||co();var V=this instanceof t;if(!V&&!j.call(L,this))return new L(H);this._writableState=new D(H,this,V),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),r.call(this)}L.prototype.pipe=function(){C(this,new I)};function Z(H,V){var tt=new v;C(H,tt),Lt.nextTick(V,tt)}function ot(H,V,tt,ut){var dt;return tt===null?dt=new P:typeof tt!="string"&&!V.objectMode&&(dt=new y("chunk",["string","Buffer"],tt)),dt?(C(H,dt),Lt.nextTick(ut,dt),!1):!0}L.prototype.write=function(H,V,tt){var ut=this._writableState,dt=!1,x=!ut.objectMode&&c(H);return x&&!s.isBuffer(H)&&(H=a(H)),typeof V=="function"&&(tt=V,V=null),x?V="buffer":V||(V=ut.defaultEncoding),typeof tt!="function"&&(tt=F),ut.ending?Z(this,tt):(x||ot(this,ut,H,tt))&&(ut.pendingcb++,dt=Y(this,ut,x,H,V,tt)),dt},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&Mt(this,H))},L.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new N(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function pt(H,V,tt){return!H.objectMode&&H.decodeStrings!==!1&&typeof V=="string"&&(V=s.from(V,tt)),V}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y(H,V,tt,ut,dt,x){if(!tt){var O=pt(V,ut,dt);ut!==O&&(tt=!0,dt="buffer",ut=O)}var nt=V.objectMode?1:ut.length;V.length+=nt;var bt=V.length<V.highWaterMark;if(bt||(V.needDrain=!0),V.writing||V.corked){var Ot=V.lastBufferedRequest;V.lastBufferedRequest={chunk:ut,encoding:dt,isBuf:tt,callback:x,next:null},Ot?Ot.next=V.lastBufferedRequest:V.bufferedRequest=V.lastBufferedRequest,V.bufferedRequestCount+=1}else At(H,V,!1,nt,ut,dt,x);return bt}function At(H,V,tt,ut,dt,x,O){V.writelen=ut,V.writecb=O,V.writing=!0,V.sync=!0,V.destroyed?V.onwrite(new G("write")):tt?H._writev(dt,V.onwrite):H._write(dt,x,V.onwrite),V.sync=!1}function Bt(H,V,tt,ut,dt){--V.pendingcb,tt?(Lt.nextTick(dt,ut),Lt.nextTick(it,H,V),H._writableState.errorEmitted=!0,C(H,ut)):(dt(ut),H._writableState.errorEmitted=!0,C(H,ut),it(H,V))}function ft(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function wt(H,V){var tt=H._writableState,ut=tt.sync,dt=tt.writecb;if(typeof dt!="function")throw new B;if(ft(tt),V)Bt(H,tt,ut,V,dt);else{var x=It(tt)||H.destroyed;!x&&!tt.corked&&!tt.bufferProcessing&&tt.bufferedRequest&&Mt(H,tt),ut?Lt.nextTick(Pt,H,tt,x,dt):Pt(H,tt,x,dt)}}function Pt(H,V,tt,ut){tt||Ct(H,V),V.pendingcb--,ut(),it(H,V)}function Ct(H,V){V.length===0&&V.needDrain&&(V.needDrain=!1,H.emit("drain"))}function Mt(H,V){V.bufferProcessing=!0;var tt=V.bufferedRequest;if(H._writev&&tt&&tt.next){var ut=V.bufferedRequestCount,dt=new Array(ut),x=V.corkedRequestsFree;x.entry=tt;for(var O=0,nt=!0;tt;)dt[O]=tt,tt.isBuf||(nt=!1),tt=tt.next,O+=1;dt.allBuffers=nt,At(H,V,!0,V.length,dt,"",x.finish),V.pendingcb++,V.lastBufferedRequest=null,x.next?(V.corkedRequestsFree=x.next,x.next=null):V.corkedRequestsFree=new n(V),V.bufferedRequestCount=0}else{for(;tt;){var bt=tt.chunk,Ot=tt.encoding,vt=tt.callback,Nt=V.objectMode?1:bt.length;if(At(H,V,!1,Nt,bt,Ot,vt),tt=tt.next,V.bufferedRequestCount--,V.writing)break}tt===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=tt,V.bufferProcessing=!1}L.prototype._write=function(H,V,tt){tt(new M("_write()"))},L.prototype._writev=null,L.prototype.end=function(H,V,tt){var ut=this._writableState;return typeof H=="function"?(tt=H,H=null,V=null):typeof V=="function"&&(tt=V,V=null),H!=null&&this.write(H,V),ut.corked&&(ut.corked=1,this.uncork()),ut.ending||_t(this,ut,tt),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function It(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function jt(H,V){H._final(function(tt){V.pendingcb--,tt&&C(H,tt),V.prefinished=!0,H.emit("prefinish"),it(H,V)})}function J(H,V){!V.prefinished&&!V.finalCalled&&(typeof H._final=="function"&&!V.destroyed?(V.pendingcb++,V.finalCalled=!0,Lt.nextTick(jt,H,V)):(V.prefinished=!0,H.emit("prefinish")))}function it(H,V){var tt=It(V);if(tt&&(J(H,V),V.pendingcb===0&&(V.finished=!0,H.emit("finish"),V.autoDestroy))){var ut=H._readableState;(!ut||ut.autoDestroy&&ut.endEmitted)&&H.destroy()}return tt}function _t(H,V,tt){V.ending=!0,it(H,V),tt&&(V.finished?Lt.nextTick(tt):H.once("finish",tt)),V.ended=!0,H.writable=!1}function St(H,V,tt){var ut=H.entry;for(H.entry=null;ut;){var dt=ut.callback;V.pendingcb--,dt(tt),ut=ut.next}V.corkedRequestsFree.next=H}return Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),L.prototype.destroy=u.destroy,L.prototype._undestroy=u.undestroy,L.prototype._destroy=function(H,V){V(H)},Sh}var Rh,J1;function co(){if(J1)return Rh;J1=1;var n=Object.keys||function(l){var f=[];for(var w in l)f.push(w);return f};Rh=a;var t=ib(),e=W1();oo()(a,t);for(var r=n(e.prototype),s=0;s<r.length;s++){var _=r[s];a.prototype[_]||(a.prototype[_]=e.prototype[_])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),e.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||Lt.nextTick(u,this)}function u(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=f,this._writableState.destroyed=f)}}),Rh}var Eh={},Nf={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $1;function Hz(){return $1||($1=1,function(n,t){var e=Bf(),r=e.Buffer;function s(a,c){for(var u in a)c[u]=a[u]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=e:(s(e,t),t.Buffer=_);function _(a,c,u){return r(a,c,u)}_.prototype=Object.create(r.prototype),s(r,_),_.from=function(a,c,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,c,u)},_.alloc=function(a,c,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=r(a);return c!==void 0?typeof u=="string"?l.fill(c,u):l.fill(c):l.fill(0),l},_.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},_.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(a)}}(Nf,Nf.exports)),Nf.exports}var Z1;function X1(){if(Z1)return Eh;Z1=1;var n=Hz().Buffer,t=n.isEncoding||function(P){switch(P=""+P,P&&P.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function e(P){if(!P)return"utf8";for(var v;;)switch(P){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return P;default:if(v)return;P=(""+P).toLowerCase(),v=!0}}function r(P){var v=e(P);if(typeof v!="string"&&(n.isEncoding===t||!t(P)))throw new Error("Unknown encoding: "+P);return v||P}Eh.StringDecoder=s;function s(P){this.encoding=r(P);var v;switch(this.encoding){case"utf16le":this.text=w,this.end=y,v=4;break;case"utf8":this.fillLast=u,v=4;break;case"base64":this.text=M,this.end=B,v=3;break;default:this.write=I,this.end=G;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(v)}s.prototype.write=function(P){if(P.length===0)return"";var v,N;if(this.lastNeed){if(v=this.fillLast(P),v===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<P.length?v?v+this.text(P,N):this.text(P,N):v||""},s.prototype.end=f,s.prototype.text=l,s.prototype.fillLast=function(P){if(this.lastNeed<=P.length)return P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,this.lastTotal-this.lastNeed,0,P.length),this.lastNeed-=P.length};function _(P){return P<=127?0:P>>5===6?2:P>>4===14?3:P>>3===30?4:P>>6===2?-1:-2}function a(P,v,N){var C=v.length-1;if(C<N)return 0;var F=_(v[C]);return F>=0?(F>0&&(P.lastNeed=F-1),F):--C<N||F===-2?0:(F=_(v[C]),F>=0?(F>0&&(P.lastNeed=F-2),F):--C<N||F===-2?0:(F=_(v[C]),F>=0?(F>0&&(F===2?F=0:P.lastNeed=F-3),F):0))}function c(P,v,N){if((v[0]&192)!==128)return P.lastNeed=0,"�";if(P.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return P.lastNeed=1,"�";if(P.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return P.lastNeed=2,"�"}}function u(P){var v=this.lastTotal-this.lastNeed,N=c(this,P);if(N!==void 0)return N;if(this.lastNeed<=P.length)return P.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,v,0,P.length),this.lastNeed-=P.length}function l(P,v){var N=a(this,P,v);if(!this.lastNeed)return P.toString("utf8",v);this.lastTotal=N;var C=P.length-(N-this.lastNeed);return P.copy(this.lastChar,0,C),P.toString("utf8",v,C)}function f(P){var v=P&&P.length?this.write(P):"";return this.lastNeed?v+"�":v}function w(P,v){if((P.length-v)%2===0){var N=P.toString("utf16le",v);if(N){var C=N.charCodeAt(N.length-1);if(C>=55296&&C<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=P[P.length-1],P.toString("utf16le",v,P.length-1)}function y(P){var v=P&&P.length?this.write(P):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,N)}return v}function M(P,v){var N=(P.length-v)%3;return N===0?P.toString("base64",v):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=P[P.length-1]:(this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1]),P.toString("base64",v,P.length-N))}function B(P){var v=P&&P.length?this.write(P):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function I(P){return P.toString(this.encoding)}function G(P){return P&&P.length?this.write(P):""}return Eh}var Ph,tb;function zh(){if(tb)return Ph;tb=1;var n=ao().codes.ERR_STREAM_PREMATURE_CLOSE;function t(_){var a=!1;return function(){if(!a){a=!0;for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];_.apply(this,u)}}}function e(){}function r(_){return _.setHeader&&typeof _.abort=="function"}function s(_,a,c){if(typeof a=="function")return s(_,null,a);a||(a={}),c=t(c||e);var u=a.readable||a.readable!==!1&&_.readable,l=a.writable||a.writable!==!1&&_.writable,f=function(){_.writable||y()},w=_._writableState&&_._writableState.finished,y=function(){l=!1,w=!0,u||c.call(_)},M=_._readableState&&_._readableState.endEmitted,B=function(){u=!1,M=!0,l||c.call(_)},I=function(N){c.call(_,N)},G=function(){var N;if(u&&!M)return(!_._readableState||!_._readableState.ended)&&(N=new n),c.call(_,N);if(l&&!w)return(!_._writableState||!_._writableState.ended)&&(N=new n),c.call(_,N)},P=function(){_.req.on("finish",y)};return r(_)?(_.on("complete",y),_.on("abort",G),_.req?P():_.on("request",P)):l&&!_._writableState&&(_.on("end",f),_.on("close",f)),_.on("end",B),_.on("finish",y),a.error!==!1&&_.on("error",I),_.on("close",G),function(){_.removeListener("complete",y),_.removeListener("abort",G),_.removeListener("request",P),_.req&&_.req.removeListener("finish",y),_.removeListener("end",f),_.removeListener("close",f),_.removeListener("finish",y),_.removeListener("end",B),_.removeListener("error",I),_.removeListener("close",G)}}return Ph=s,Ph}var vh,eb;function qz(){if(eb)return vh;eb=1;var n;function t(N,C,F){return C=e(C),C in N?Object.defineProperty(N,C,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[C]=F,N}function e(N){var C=r(N,"string");return typeof C=="symbol"?C:String(C)}function r(N,C){if(typeof N!="object"||N===null)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var D=F.call(N,C);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(N)}var s=zh(),_=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),w=Symbol("stream");function y(N,C){return{value:N,done:C}}function M(N){var C=N[_];if(C!==null){var F=N[w].read();F!==null&&(N[l]=null,N[_]=null,N[a]=null,C(y(F,!1)))}}function B(N){Lt.nextTick(M,N)}function I(N,C){return function(F,D){N.then(function(){if(C[u]){F(y(void 0,!0));return}C[f](F,D)},D)}}var G=Object.getPrototypeOf(function(){}),P=Object.setPrototypeOf((n={get stream(){return this[w]},next:function(){var C=this,F=this[c];if(F!==null)return Promise.reject(F);if(this[u])return Promise.resolve(y(void 0,!0));if(this[w].destroyed)return new Promise(function(Z,ot){Lt.nextTick(function(){C[c]?ot(C[c]):Z(y(void 0,!0))})});var D=this[l],j;if(D)j=new Promise(I(D,this));else{var L=this[w].read();if(L!==null)return Promise.resolve(y(L,!1));j=new Promise(this[f])}return this[l]=j,j}},t(n,Symbol.asyncIterator,function(){return this}),t(n,"return",function(){var C=this;return new Promise(function(F,D){C[w].destroy(null,function(j){if(j){D(j);return}F(y(void 0,!0))})})}),n),G),v=function(C){var F,D=Object.create(P,(F={},t(F,w,{value:C,writable:!0}),t(F,_,{value:null,writable:!0}),t(F,a,{value:null,writable:!0}),t(F,c,{value:null,writable:!0}),t(F,u,{value:C._readableState.endEmitted,writable:!0}),t(F,f,{value:function(L,Z){var ot=D[w].read();ot?(D[l]=null,D[_]=null,D[a]=null,L(y(ot,!1))):(D[_]=L,D[a]=Z)},writable:!0}),F));return D[l]=null,s(C,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var L=D[a];L!==null&&(D[l]=null,D[_]=null,D[a]=null,L(j)),D[c]=j;return}var Z=D[_];Z!==null&&(D[l]=null,D[_]=null,D[a]=null,Z(y(void 0,!0))),D[u]=!0}),C.on("readable",B.bind(null,D)),D};return vh=v,vh}var Mh,rb;function Qz(){return rb||(rb=1,Mh=function(){throw new Error("Readable.from is not available in the browser")}),Mh}var Bh,nb;function ib(){if(nb)return Bh;nb=1,Bh=Z;var n;Z.ReadableState=L,G0().EventEmitter;var t=function(O,nt){return O.listeners(nt).length},e=U0(),r=Bf().Buffer,s=(typeof us<"u"?us:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(x){return r.from(x)}function a(x){return r.isBuffer(x)||x instanceof s}var c=K1(),u;c&&c.debuglog?u=c.debuglog("stream"):u=function(){};var l=Vz(),f=j1(),w=H1(),y=w.getHighWaterMark,M=ao().codes,B=M.ERR_INVALID_ARG_TYPE,I=M.ERR_STREAM_PUSH_AFTER_EOF,G=M.ERR_METHOD_NOT_IMPLEMENTED,P=M.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v,N,C;oo()(Z,e);var F=f.errorOrDestroy,D=["error","close","destroy","pause","resume"];function j(x,O,nt){if(typeof x.prependListener=="function")return x.prependListener(O,nt);!x._events||!x._events[O]?x.on(O,nt):Array.isArray(x._events[O])?x._events[O].unshift(nt):x._events[O]=[nt,x._events[O]]}function L(x,O,nt){n=n||co(),x=x||{},typeof nt!="boolean"&&(nt=O instanceof n),this.objectMode=!!x.objectMode,nt&&(this.objectMode=this.objectMode||!!x.readableObjectMode),this.highWaterMark=y(this,x,"readableHighWaterMark",nt),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=x.emitClose!==!1,this.autoDestroy=!!x.autoDestroy,this.destroyed=!1,this.defaultEncoding=x.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,x.encoding&&(v||(v=X1().StringDecoder),this.decoder=new v(x.encoding),this.encoding=x.encoding)}function Z(x){if(n=n||co(),!(this instanceof Z))return new Z(x);var O=this instanceof n;this._readableState=new L(x,this,O),this.readable=!0,x&&(typeof x.read=="function"&&(this._read=x.read),typeof x.destroy=="function"&&(this._destroy=x.destroy)),e.call(this)}Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),Z.prototype.destroy=f.destroy,Z.prototype._undestroy=f.undestroy,Z.prototype._destroy=function(x,O){O(x)},Z.prototype.push=function(x,O){var nt=this._readableState,bt;return nt.objectMode?bt=!0:typeof x=="string"&&(O=O||nt.defaultEncoding,O!==nt.encoding&&(x=r.from(x,O),O=""),bt=!0),ot(this,x,O,!1,bt)},Z.prototype.unshift=function(x){return ot(this,x,null,!0,!1)};function ot(x,O,nt,bt,Ot){u("readableAddChunk",O);var vt=x._readableState;if(O===null)vt.reading=!1,wt(x,vt);else{var Nt;if(Ot||(Nt=Y(vt,O)),Nt)F(x,Nt);else if(vt.objectMode||O&&O.length>0)if(typeof O!="string"&&!vt.objectMode&&Object.getPrototypeOf(O)!==r.prototype&&(O=_(O)),bt)vt.endEmitted?F(x,new P):pt(x,vt,O,!0);else if(vt.ended)F(x,new I);else{if(vt.destroyed)return!1;vt.reading=!1,vt.decoder&&!nt?(O=vt.decoder.write(O),vt.objectMode||O.length!==0?pt(x,vt,O,!1):Mt(x,vt)):pt(x,vt,O,!1)}else bt||(vt.reading=!1,Mt(x,vt))}return!vt.ended&&(vt.length<vt.highWaterMark||vt.length===0)}function pt(x,O,nt,bt){O.flowing&&O.length===0&&!O.sync?(O.awaitDrain=0,x.emit("data",nt)):(O.length+=O.objectMode?1:nt.length,bt?O.buffer.unshift(nt):O.buffer.push(nt),O.needReadable&&Pt(x)),Mt(x,O)}function Y(x,O){var nt;return!a(O)&&typeof O!="string"&&O!==void 0&&!x.objectMode&&(nt=new B("chunk",["string","Buffer","Uint8Array"],O)),nt}Z.prototype.isPaused=function(){return this._readableState.flowing===!1},Z.prototype.setEncoding=function(x){v||(v=X1().StringDecoder);var O=new v(x);this._readableState.decoder=O,this._readableState.encoding=this._readableState.decoder.encoding;for(var nt=this._readableState.buffer.head,bt="";nt!==null;)bt+=O.write(nt.data),nt=nt.next;return this._readableState.buffer.clear(),bt!==""&&this._readableState.buffer.push(bt),this._readableState.length=bt.length,this};var At=1073741824;function Bt(x){return x>=At?x=At:(x--,x|=x>>>1,x|=x>>>2,x|=x>>>4,x|=x>>>8,x|=x>>>16,x++),x}function ft(x,O){return x<=0||O.length===0&&O.ended?0:O.objectMode?1:x!==x?O.flowing&&O.length?O.buffer.head.data.length:O.length:(x>O.highWaterMark&&(O.highWaterMark=Bt(x)),x<=O.length?x:O.ended?O.length:(O.needReadable=!0,0))}Z.prototype.read=function(x){u("read",x),x=parseInt(x,10);var O=this._readableState,nt=x;if(x!==0&&(O.emittedReadable=!1),x===0&&O.needReadable&&((O.highWaterMark!==0?O.length>=O.highWaterMark:O.length>0)||O.ended))return u("read: emitReadable",O.length,O.ended),O.length===0&&O.ended?tt(this):Pt(this),null;if(x=ft(x,O),x===0&&O.ended)return O.length===0&&tt(this),null;var bt=O.needReadable;u("need readable",bt),(O.length===0||O.length-x<O.highWaterMark)&&(bt=!0,u("length less than watermark",bt)),O.ended||O.reading?(bt=!1,u("reading or ended",bt)):bt&&(u("do read"),O.reading=!0,O.sync=!0,O.length===0&&(O.needReadable=!0),this._read(O.highWaterMark),O.sync=!1,O.reading||(x=ft(nt,O)));var Ot;return x>0?Ot=V(x,O):Ot=null,Ot===null?(O.needReadable=O.length<=O.highWaterMark,x=0):(O.length-=x,O.awaitDrain=0),O.length===0&&(O.ended||(O.needReadable=!0),nt!==x&&O.ended&&tt(this)),Ot!==null&&this.emit("data",Ot),Ot};function wt(x,O){if(u("onEofChunk"),!O.ended){if(O.decoder){var nt=O.decoder.end();nt&&nt.length&&(O.buffer.push(nt),O.length+=O.objectMode?1:nt.length)}O.ended=!0,O.sync?Pt(x):(O.needReadable=!1,O.emittedReadable||(O.emittedReadable=!0,Ct(x)))}}function Pt(x){var O=x._readableState;u("emitReadable",O.needReadable,O.emittedReadable),O.needReadable=!1,O.emittedReadable||(u("emitReadable",O.flowing),O.emittedReadable=!0,Lt.nextTick(Ct,x))}function Ct(x){var O=x._readableState;u("emitReadable_",O.destroyed,O.length,O.ended),!O.destroyed&&(O.length||O.ended)&&(x.emit("readable"),O.emittedReadable=!1),O.needReadable=!O.flowing&&!O.ended&&O.length<=O.highWaterMark,H(x)}function Mt(x,O){O.readingMore||(O.readingMore=!0,Lt.nextTick(It,x,O))}function It(x,O){for(;!O.reading&&!O.ended&&(O.length<O.highWaterMark||O.flowing&&O.length===0);){var nt=O.length;if(u("maybeReadMore read 0"),x.read(0),nt===O.length)break}O.readingMore=!1}Z.prototype._read=function(x){F(this,new G("_read()"))},Z.prototype.pipe=function(x,O){var nt=this,bt=this._readableState;switch(bt.pipesCount){case 0:bt.pipes=x;break;case 1:bt.pipes=[bt.pipes,x];break;default:bt.pipes.push(x);break}bt.pipesCount+=1,u("pipe count=%d opts=%j",bt.pipesCount,O);var Ot=(!O||O.end!==!1)&&x!==Lt.stdout&&x!==Lt.stderr,vt=Ot?_e:Ue;bt.endEmitted?Lt.nextTick(vt):nt.once("end",vt),x.on("unpipe",Nt);function Nt(qe,ge){u("onunpipe"),qe===nt&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,Ye())}function _e(){u("onend"),x.end()}var at=jt(nt);x.on("drain",at);var Re=!1;function Ye(){u("cleanup"),x.removeListener("close",He),x.removeListener("finish",ye),x.removeListener("drain",at),x.removeListener("error",ae),x.removeListener("unpipe",Nt),nt.removeListener("end",_e),nt.removeListener("end",Ue),nt.removeListener("data",re),Re=!0,bt.awaitDrain&&(!x._writableState||x._writableState.needDrain)&&at()}nt.on("data",re);function re(qe){u("ondata");var ge=x.write(qe);u("dest.write",ge),ge===!1&&((bt.pipesCount===1&&bt.pipes===x||bt.pipesCount>1&&dt(bt.pipes,x)!==-1)&&!Re&&(u("false write response, pause",bt.awaitDrain),bt.awaitDrain++),nt.pause())}function ae(qe){u("onerror",qe),Ue(),x.removeListener("error",ae),t(x,"error")===0&&F(x,qe)}j(x,"error",ae);function He(){x.removeListener("finish",ye),Ue()}x.once("close",He);function ye(){u("onfinish"),x.removeListener("close",He),Ue()}x.once("finish",ye);function Ue(){u("unpipe"),nt.unpipe(x)}return x.emit("pipe",nt),bt.flowing||(u("pipe resume"),nt.resume()),x};function jt(x){return function(){var nt=x._readableState;u("pipeOnDrain",nt.awaitDrain),nt.awaitDrain&&nt.awaitDrain--,nt.awaitDrain===0&&t(x,"data")&&(nt.flowing=!0,H(x))}}Z.prototype.unpipe=function(x){var O=this._readableState,nt={hasUnpiped:!1};if(O.pipesCount===0)return this;if(O.pipesCount===1)return x&&x!==O.pipes?this:(x||(x=O.pipes),O.pipes=null,O.pipesCount=0,O.flowing=!1,x&&x.emit("unpipe",this,nt),this);if(!x){var bt=O.pipes,Ot=O.pipesCount;O.pipes=null,O.pipesCount=0,O.flowing=!1;for(var vt=0;vt<Ot;vt++)bt[vt].emit("unpipe",this,{hasUnpiped:!1});return this}var Nt=dt(O.pipes,x);return Nt===-1?this:(O.pipes.splice(Nt,1),O.pipesCount-=1,O.pipesCount===1&&(O.pipes=O.pipes[0]),x.emit("unpipe",this,nt),this)},Z.prototype.on=function(x,O){var nt=e.prototype.on.call(this,x,O),bt=this._readableState;return x==="data"?(bt.readableListening=this.listenerCount("readable")>0,bt.flowing!==!1&&this.resume()):x==="readable"&&!bt.endEmitted&&!bt.readableListening&&(bt.readableListening=bt.needReadable=!0,bt.flowing=!1,bt.emittedReadable=!1,u("on readable",bt.length,bt.reading),bt.length?Pt(this):bt.reading||Lt.nextTick(it,this)),nt},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(x,O){var nt=e.prototype.removeListener.call(this,x,O);return x==="readable"&&Lt.nextTick(J,this),nt},Z.prototype.removeAllListeners=function(x){var O=e.prototype.removeAllListeners.apply(this,arguments);return(x==="readable"||x===void 0)&&Lt.nextTick(J,this),O};function J(x){var O=x._readableState;O.readableListening=x.listenerCount("readable")>0,O.resumeScheduled&&!O.paused?O.flowing=!0:x.listenerCount("data")>0&&x.resume()}function it(x){u("readable nexttick read 0"),x.read(0)}Z.prototype.resume=function(){var x=this._readableState;return x.flowing||(u("resume"),x.flowing=!x.readableListening,_t(this,x)),x.paused=!1,this};function _t(x,O){O.resumeScheduled||(O.resumeScheduled=!0,Lt.nextTick(St,x,O))}function St(x,O){u("resume",O.reading),O.reading||x.read(0),O.resumeScheduled=!1,x.emit("resume"),H(x),O.flowing&&!O.reading&&x.read(0)}Z.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(x){var O=x._readableState;for(u("flow",O.flowing);O.flowing&&x.read()!==null;);}Z.prototype.wrap=function(x){var O=this,nt=this._readableState,bt=!1;x.on("end",function(){if(u("wrapped end"),nt.decoder&&!nt.ended){var Nt=nt.decoder.end();Nt&&Nt.length&&O.push(Nt)}O.push(null)}),x.on("data",function(Nt){if(u("wrapped data"),nt.decoder&&(Nt=nt.decoder.write(Nt)),!(nt.objectMode&&Nt==null)&&!(!nt.objectMode&&(!Nt||!Nt.length))){var _e=O.push(Nt);_e||(bt=!0,x.pause())}});for(var Ot in x)this[Ot]===void 0&&typeof x[Ot]=="function"&&(this[Ot]=function(_e){return function(){return x[_e].apply(x,arguments)}}(Ot));for(var vt=0;vt<D.length;vt++)x.on(D[vt],this.emit.bind(this,D[vt]));return this._read=function(Nt){u("wrapped _read",Nt),bt&&(bt=!1,x.resume())},this},typeof Symbol=="function"&&(Z.prototype[Symbol.asyncIterator]=function(){return N===void 0&&(N=qz()),N(this)}),Object.defineProperty(Z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(O){this._readableState&&(this._readableState.flowing=O)}}),Z._fromList=V,Object.defineProperty(Z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function V(x,O){if(O.length===0)return null;var nt;return O.objectMode?nt=O.buffer.shift():!x||x>=O.length?(O.decoder?nt=O.buffer.join(""):O.buffer.length===1?nt=O.buffer.first():nt=O.buffer.concat(O.length),O.buffer.clear()):nt=O.buffer.consume(x,O.decoder),nt}function tt(x){var O=x._readableState;u("endReadable",O.endEmitted),O.endEmitted||(O.ended=!0,Lt.nextTick(ut,O,x))}function ut(x,O){if(u("endReadableNT",x.endEmitted,x.length),!x.endEmitted&&x.length===0&&(x.endEmitted=!0,O.readable=!1,O.emit("end"),x.autoDestroy)){var nt=O._writableState;(!nt||nt.autoDestroy&&nt.finished)&&O.destroy()}}typeof Symbol=="function"&&(Z.from=function(x,O){return C===void 0&&(C=Qz()),C(Z,x,O)});function dt(x,O){for(var nt=0,bt=x.length;nt<bt;nt++)if(x[nt]===O)return nt;return-1}return Bh}var xh,sb;function _b(){if(sb)return xh;sb=1,xh=c;var n=ao().codes,t=n.ERR_METHOD_NOT_IMPLEMENTED,e=n.ERR_MULTIPLE_CALLBACK,r=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,_=co();oo()(c,_);function a(f,w){var y=this._transformState;y.transforming=!1;var M=y.writecb;if(M===null)return this.emit("error",new e);y.writechunk=null,y.writecb=null,w!=null&&this.push(w),M(f);var B=this._readableState;B.reading=!1,(B.needReadable||B.length<B.highWaterMark)&&this._read(B.highWaterMark)}function c(f){if(!(this instanceof c))return new c(f);_.call(this,f),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function u(){var f=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(w,y){l(f,w,y)}):l(this,null,null)}c.prototype.push=function(f,w){return this._transformState.needTransform=!1,_.prototype.push.call(this,f,w)},c.prototype._transform=function(f,w,y){y(new t("_transform()"))},c.prototype._write=function(f,w,y){var M=this._transformState;if(M.writecb=y,M.writechunk=f,M.writeencoding=w,!M.transforming){var B=this._readableState;(M.needTransform||B.needReadable||B.length<B.highWaterMark)&&this._read(B.highWaterMark)}},c.prototype._read=function(f){var w=this._transformState;w.writechunk!==null&&!w.transforming?(w.transforming=!0,this._transform(w.writechunk,w.writeencoding,w.afterTransform)):w.needTransform=!0},c.prototype._destroy=function(f,w){_.prototype._destroy.call(this,f,function(y){w(y)})};function l(f,w,y){if(w)return f.emit("error",w);if(y!=null&&f.push(y),f._writableState.length)throw new s;if(f._transformState.transforming)throw new r;return f.push(null)}return xh}var Ch,ob;function Wz(){if(ob)return Ch;ob=1,Ch=t;var n=_b();oo()(t,n);function t(e){if(!(this instanceof t))return new t(e);n.call(this,e)}return t.prototype._transform=function(e,r,s){s(null,e)},Ch}var Ih,ab;function Jz(){if(ab)return Ih;ab=1;var n;function t(y){var M=!1;return function(){M||(M=!0,y.apply(void 0,arguments))}}var e=ao().codes,r=e.ERR_MISSING_ARGS,s=e.ERR_STREAM_DESTROYED;function _(y){if(y)throw y}function a(y){return y.setHeader&&typeof y.abort=="function"}function c(y,M,B,I){I=t(I);var G=!1;y.on("close",function(){G=!0}),n===void 0&&(n=zh()),n(y,{readable:M,writable:B},function(v){if(v)return I(v);G=!0,I()});var P=!1;return function(v){if(!G&&!P){if(P=!0,a(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();I(v||new s("pipe"))}}}function u(y){y()}function l(y,M){return y.pipe(M)}function f(y){return!y.length||typeof y[y.length-1]!="function"?_:y.pop()}function w(){for(var y=arguments.length,M=new Array(y),B=0;B<y;B++)M[B]=arguments[B];var I=f(M);if(Array.isArray(M[0])&&(M=M[0]),M.length<2)throw new r("streams");var G,P=M.map(function(v,N){var C=N<M.length-1,F=N>0;return c(v,C,F,function(D){G||(G=D),D&&P.forEach(u),!C&&(P.forEach(u),I(G))})});return M.reduce(l)}return Ih=w,Ih}var cb;function ub(){return cb||(cb=1,function(n,t){t=n.exports=ib(),t.Stream=t,t.Readable=t,t.Writable=W1(),t.Duplex=co(),t.Transform=_b(),t.PassThrough=Wz(),t.finished=zh(),t.pipeline=Jz()}(zf,zf.exports)),zf.exports}var Nh,fb;function $z(){if(fb)return Nh;fb=1;const{Transform:n}=ub();return Nh=t=>class Om extends n{constructor(r,s,_,a,c){super(c),this._rate=r,this._capacity=s,this._delimitedSuffix=_,this._hashBitLength=a,this._options=c,this._state=new t,this._state.initialize(r,s),this._finalized=!1}_transform(r,s,_){let a=null;try{this.update(r,s)}catch(c){a=c}_(a)}_flush(r){let s=null;try{this.push(this.digest())}catch(_){s=_}r(s)}update(r,s){if(!yr.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return yr.isBuffer(r)||(r=yr.from(r,s)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let s=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(s=s.toString(r)),this._resetState(),s}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new Om(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}},Nh}var Oh,lb;function Zz(){if(lb)return Oh;lb=1;const{Transform:n}=ub();return Oh=t=>class km extends n{constructor(r,s,_,a){super(a),this._rate=r,this._capacity=s,this._delimitedSuffix=_,this._options=a,this._state=new t,this._state.initialize(r,s),this._finalized=!1}_transform(r,s,_){let a=null;try{this.update(r,s)}catch(c){a=c}_(a)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,s){if(!yr.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return yr.isBuffer(r)||(r=yr.from(r,s)),this._state.absorb(r),this}squeeze(r,s){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let _=this._state.squeeze(r);return s!==void 0&&(_=_.toString(s)),_}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new km(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}},Oh}var kh,pb;function Xz(){if(pb)return kh;pb=1;const n=$z(),t=Zz();return kh=function(e){const r=n(e),s=t(e);return function(_,a){switch(typeof _=="string"?_.toLowerCase():_){case"keccak224":return new r(1152,448,null,224,a);case"keccak256":return new r(1088,512,null,256,a);case"keccak384":return new r(832,768,null,384,a);case"keccak512":return new r(576,1024,null,512,a);case"sha3-224":return new r(1152,448,6,224,a);case"sha3-256":return new r(1088,512,6,256,a);case"sha3-384":return new r(832,768,6,384,a);case"sha3-512":return new r(576,1024,6,512,a);case"shake128":return new s(1344,256,31,a);case"shake256":return new s(1088,512,31,a);default:throw new Error("Invald algorithm: "+_)}}},kh}var Th={},hb;function tv(){if(hb)return Th;hb=1;const n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];return Th.p1600=function(t){for(let e=0;e<24;++e){const r=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],_=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],w=t[8]^t[18]^t[28]^t[38]^t[48],y=t[9]^t[19]^t[29]^t[39]^t[49];let M=w^(_<<1|a>>>31),B=y^(a<<1|_>>>31);const I=t[0]^M,G=t[1]^B,P=t[10]^M,v=t[11]^B,N=t[20]^M,C=t[21]^B,F=t[30]^M,D=t[31]^B,j=t[40]^M,L=t[41]^B;M=r^(c<<1|u>>>31),B=s^(u<<1|c>>>31);const Z=t[2]^M,ot=t[3]^B,pt=t[12]^M,Y=t[13]^B,At=t[22]^M,Bt=t[23]^B,ft=t[32]^M,wt=t[33]^B,Pt=t[42]^M,Ct=t[43]^B;M=_^(l<<1|f>>>31),B=a^(f<<1|l>>>31);const Mt=t[4]^M,It=t[5]^B,jt=t[14]^M,J=t[15]^B,it=t[24]^M,_t=t[25]^B,St=t[34]^M,H=t[35]^B,V=t[44]^M,tt=t[45]^B;M=c^(w<<1|y>>>31),B=u^(y<<1|w>>>31);const ut=t[6]^M,dt=t[7]^B,x=t[16]^M,O=t[17]^B,nt=t[26]^M,bt=t[27]^B,Ot=t[36]^M,vt=t[37]^B,Nt=t[46]^M,_e=t[47]^B;M=l^(r<<1|s>>>31),B=f^(s<<1|r>>>31);const at=t[8]^M,Re=t[9]^B,Ye=t[18]^M,re=t[19]^B,ae=t[28]^M,He=t[29]^B,ye=t[38]^M,Ue=t[39]^B,qe=t[48]^M,ge=t[49]^B,gr=I,E=G,p=v<<4|P>>>28,d=P<<4|v>>>28,k=N<<3|C>>>29,q=C<<3|N>>>29,X=D<<9|F>>>23,ct=F<<9|D>>>23,kt=j<<18|L>>>14,Jt=L<<18|j>>>14,$t=Z<<1|ot>>>31,Zt=ot<<1|Z>>>31,Ht=Y<<12|pt>>>20,Is=pt<<12|Y>>>20,Qe=At<<10|Bt>>>22,F_=Bt<<10|At>>>22,ku=wt<<13|ft>>>19,br=ft<<13|wt>>>19,Tu=Pt<<2|Ct>>>30,z=Ct<<2|Pt>>>30,h=It<<30|Mt>>>2,g=Mt<<30|It>>>2,T=jt<<6|J>>>26,Q=J<<6|jt>>>26,et=_t<<11|it>>>21,lt=it<<11|_t>>>21,Tt=St<<15|H>>>17,ne=H<<15|St>>>17,Xt=tt<<29|V>>>3,ie=V<<29|tt>>>3,Wt=ut<<28|dt>>>4,tw=dt<<28|ut>>>4,ew=O<<23|x>>>9,rw=x<<23|O>>>9,nw=nt<<25|bt>>>7,iw=bt<<25|nt>>>7,sw=Ot<<21|vt>>>11,_w=vt<<21|Ot>>>11,ow=_e<<24|Nt>>>8,aw=Nt<<24|_e>>>8,cw=at<<27|Re>>>5,uw=Re<<27|at>>>5,fw=Ye<<20|re>>>12,lw=re<<20|Ye>>>12,pw=He<<7|ae>>>25,hw=ae<<7|He>>>25,ww=ye<<8|Ue>>>24,dw=Ue<<8|ye>>>24,gw=qe<<14|ge>>>18,bw=ge<<14|qe>>>18;t[0]=gr^~Ht&et,t[1]=E^~Is<,t[10]=Wt^~fw&k,t[11]=tw^~lw&q,t[20]=$t^~T&nw,t[21]=Zt^~Q&iw,t[30]=cw^~p&Qe,t[31]=uw^~d&F_,t[40]=h^~ew&pw,t[41]=g^~rw&hw,t[2]=Ht^~et&sw,t[3]=Is^~lt&_w,t[12]=fw^~k&ku,t[13]=lw^~q&br,t[22]=T^~nw&ww,t[23]=Q^~iw&dw,t[32]=p^~Qe&Tt,t[33]=d^~F_&ne,t[42]=ew^~pw&X,t[43]=rw^~hw&ct,t[4]=et^~sw&gw,t[5]=lt^~_w&bw,t[14]=k^~ku&Xt,t[15]=q^~br&ie,t[24]=nw^~ww&kt,t[25]=iw^~dw&Jt,t[34]=Qe^~Tt&ow,t[35]=F_^~ne&aw,t[44]=pw^~X&Tu,t[45]=hw^~ct&z,t[6]=sw^~gw&gr,t[7]=_w^~bw&E,t[16]=ku^~Xt&Wt,t[17]=br^~ie&tw,t[26]=ww^~kt&$t,t[27]=dw^~Jt&Zt,t[36]=Tt^~ow&cw,t[37]=ne^~aw&uw,t[46]=X^~Tu&h,t[47]=ct^~z&g,t[8]=gw^~gr&Ht,t[9]=bw^~E&Is,t[18]=Xt^~Wt&fw,t[19]=ie^~tw&lw,t[28]=kt^~$t&T,t[29]=Jt^~Zt&Q,t[38]=ow^~cw&p,t[39]=aw^~uw&d,t[48]=Tu^~h&ew,t[49]=z^~g&rw,t[0]^=n[e*2],t[1]^=n[e*2+1]}},Th}var Gh,wb;function ev(){if(wb)return Gh;wb=1;const n=tv();function t(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}return t.prototype.initialize=function(e,r){for(let s=0;s<50;++s)this.state[s]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},t.prototype.absorb=function(e){for(let r=0;r<e.length;++r)this.state[~~(this.count/4)]^=e[r]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},t.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(e&128)!==0&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),n.p1600(this.state),this.count=0,this.squeezing=!0},t.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const r=yr.alloc(e);for(let s=0;s<e;++s)r[s]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return r},t.prototype.copy=function(e){for(let r=0;r<50;++r)e.state[r]=this.state[r];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},Gh=t,Gh}var Fh,db;function rv(){return db||(db=1,Fh=Xz()(ev())),Fh}var nv=rv();const gb=C0(nv);var Of={exports:{}},iv=Of.exports,bb;function sv(){return bb||(bb=1,function(n,t){(function(e,r){n.exports=r()})(iv,function(){var e=function(_,a){if(a=a||{},typeof _!="function")throw new s("fetch must be a function");if(typeof a!="object")throw new s("defaults must be an object");if(a.retries!==void 0&&!r(a.retries))throw new s("retries must be a positive integer");if(a.retryDelay!==void 0&&!r(a.retryDelay)&&typeof a.retryDelay!="function")throw new s("retryDelay must be a positive integer or a function returning a positive integer");if(a.retryOn!==void 0&&!Array.isArray(a.retryOn)&&typeof a.retryOn!="function")throw new s("retryOn property expects an array or function");var c={retries:3,retryDelay:1e3,retryOn:[]};return a=Object.assign(c,a),function(l,f){var w=a.retries,y=a.retryDelay,M=a.retryOn;if(f&&f.retries!==void 0)if(r(f.retries))w=f.retries;else throw new s("retries must be a positive integer");if(f&&f.retryDelay!==void 0)if(r(f.retryDelay)||typeof f.retryDelay=="function")y=f.retryDelay;else throw new s("retryDelay must be a positive integer or a function returning a positive integer");if(f&&f.retryOn)if(Array.isArray(f.retryOn)||typeof f.retryOn=="function")M=f.retryOn;else throw new s("retryOn property expects an array or function");return new Promise(function(B,I){var G=function(v){var N=typeof Request<"u"&&l instanceof Request?l.clone():l;_(N,f).then(function(C){if(Array.isArray(M)&&M.indexOf(C.status)===-1)B(C);else if(typeof M=="function")try{return Promise.resolve(M(v,null,C)).then(function(F){F?P(v,null,C):B(C)}).catch(I)}catch(F){I(F)}else v<w?P(v,null,C):B(C)}).catch(function(C){if(typeof M=="function")try{Promise.resolve(M(v,C,null)).then(function(F){F?P(v,C,null):I(C)}).catch(function(F){I(F)})}catch(F){I(F)}else v<w?P(v,C,null):I(C)})};function P(v,N,C){var F=typeof y=="function"?y(v,N,C):y;setTimeout(function(){G(++v)},F)}G(0)})}};function r(_){return Number.isInteger(_)&&_>=0}function s(_){this.name="ArgumentError",this.message=_}return e})}(Of)),Of.exports}var _v=sv();const ov=C0(_v),av=()=>(async n=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(n)}catch{return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));var kf=typeof te<"u"?te:typeof self<"u"?self:typeof window<"u"?window:{};function yb(n,t){return new Promise(e=>{n.addEventListener("message",function r({data:s}){(s==null?void 0:s.type)===t&&(n.removeEventListener("message",r),e(s))})})}yb(self,"wasm_bindgen_worker_init").then(async({init:n,receiver:t})=>{const e=await Promise.resolve().then(function(){return xv});await e.default(n),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(t)});async function cv(n,t,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");const r={type:"wasm_bindgen_worker_init",init:{module_or_path:n,memory:t},receiver:e.receiver()};await Promise.all(Array.from({length:e.numThreads()},async()=>{let s;try{s=new Worker(new URL("/workerHelpers.js",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ft&&Ft.tagName.toUpperCase()==="SCRIPT"&&Ft.src||new URL("relayer-sdk-js.umd.cjs",document.baseURI).href),{type:"module"})}catch{const c=await(await fetch("/workerHelpers.js")).blob(),u=URL.createObjectURL(c);s=new Worker(u)}return s.postMessage(r),await yb(s,"wasm_bindgen_worker_ready"),s})),e.build()}let i;function fu(n){const t=i.__externref_table_alloc();return i.__wbindgen_export_2.set(t,n),t}function uo(n,t){try{return n.apply(this,t)}catch(e){const r=fu(e);i.__wbindgen_exn_store(r)}}const Ab=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Ab.decode();let lu=null;function fo(){return(lu===null||lu.buffer!==i.memory.buffer)&&(lu=new Uint8Array(i.memory.buffer)),lu}function Js(n,t){return n=n>>>0,Ab.decode(fo().slice(n,n+t))}let A=0;const mb=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},uv=function(n,t){const e=mb.encode(n);return t.set(e),{read:n.length,written:e.length}};function Tf(n,t,e){if(e===void 0){const c=mb.encode(n),u=t(c.length,1)>>>0;return fo().subarray(u,u+c.length).set(c),A=c.length,u}let r=n.length,s=t(r,1)>>>0;const _=fo();let a=0;for(;a<r;a++){const c=n.charCodeAt(a);if(c>127)break;_[s+a]=c}if(a!==r){a!==0&&(n=n.slice(a)),s=e(s,r,r=a+n.length*3,1)>>>0;const c=fo().subarray(s+a,s+r),u=uv(n,c);a+=u.written,s=e(s,r,a,1)>>>0}return A=a,s}let pu=null;function Dr(){return(pu===null||pu.buffer!==i.memory.buffer)&&(pu=new DataView(i.memory.buffer)),pu}function $s(n){return n==null}function Uh(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const s=n.description;return s==null?"Symbol":`Symbol(${s})`}if(t=="function"){const s=n.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(n)){const s=n.length;let _="[";s>0&&(_+=Uh(n[0]));for(let a=1;a<s;a++)_+=", "+Uh(n[a]);return _+="]",_}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
21
|
+
${n.stack}`:r}function o(n){const t=i.__wbindgen_export_2.get(n);return i.__externref_table_dealloc(n),t}function b(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function R(n,t){return n=n>>>0,fo().subarray(n/1,n/1+t)}function S(n,t){const e=t(n.length*1,1)>>>0;return fo().set(n,e/1),A=n.length,e}function Kh(){i.init_panic_hook()}function fv(n){b(n,wu);const t=i.set_server_key(n.__wbg_ptr);if(t[1])throw o(t[0])}function lv(n){let t,e;try{const r=i.shortint_pke_params_name(n);return t=r[0],e=r[1],Js(r[0],r[1])}finally{i.__wbindgen_free(t,e,1)}}function pv(n){let t,e;try{const r=i.shortint_params_name(n);return t=r[0],e=r[1],Js(r[0],r[1])}finally{i.__wbindgen_free(t,e,1)}}function Dh(n){return i.initThreadPool(n)}function hv(n){i.wbg_rayon_start_worker(n)}const wv=Object.freeze({Big:0,0:"Big",Small:1,1:"Small"}),dv=Object.freeze({Default:0,0:"Default",TfheLib:1,1:"TfheLib",DefaultKsPbs:2,2:"DefaultKsPbs",TfheLibKsPbs:3,3:"TfheLibKsPbs"}),gv=Object.freeze({Bool:0,0:"Bool",Uint4:1,1:"Uint4",Uint8:2,2:"Uint8",Uint16:3,3:"Uint16",Uint32:4,4:"Uint32",Uint64:5,5:"Uint64",Uint128:6,6:"Uint128",Uint160:7,7:"Uint160",Uint256:8,8:"Uint256",Uint512:9,9:"Uint512",Uint1024:10,10:"Uint1024",Uint2048:11,11:"Uint2048",Uint2:12,12:"Uint2",Uint6:13,13:"Uint6",Uint10:14,14:"Uint10",Uint12:15,15:"Uint12",Uint14:16,16:"Uint14",Int2:17,17:"Int2",Int4:18,18:"Int4",Int6:19,19:"Int6",Int8:20,20:"Int8",Int10:21,21:"Int10",Int12:22,22:"Int12",Int14:23,23:"Int14",Int16:24,24:"Int16",Int32:25,25:"Int32",Int64:26,26:"Int64",Int128:27,27:"Int128",Int160:28,28:"Int160",Int256:29,29:"Int256",AsciiString:30,30:"AsciiString",Int512:31,31:"Int512",Int1024:32,32:"Int1024",Int2048:33,33:"Int2048",Uint24:34,34:"Uint24",Uint40:35,35:"Uint40",Uint48:36,36:"Uint48",Uint56:37,37:"Uint56",Uint72:38,38:"Uint72",Uint80:39,39:"Uint80",Uint88:40,40:"Uint88",Uint96:41,41:"Uint96",Uint104:42,42:"Uint104",Uint112:43,43:"Uint112",Uint120:44,44:"Uint120",Uint136:45,45:"Uint136",Uint144:46,46:"Uint144",Uint152:47,47:"Uint152",Uint168:48,48:"Uint168",Uint176:49,49:"Uint176",Uint184:50,50:"Uint184",Uint192:51,51:"Uint192",Uint200:52,52:"Uint200",Uint208:53,53:"Uint208",Uint216:54,54:"Uint216",Uint224:55,55:"Uint224",Uint232:56,56:"Uint232",Uint240:57,57:"Uint240",Uint248:58,58:"Uint248",Int24:59,59:"Int24",Int40:60,60:"Int40",Int48:61,61:"Int48",Int56:62,62:"Int56",Int72:63,63:"Int72",Int80:64,64:"Int80",Int88:65,65:"Int88",Int96:66,66:"Int96",Int104:67,67:"Int104",Int112:68,68:"Int112",Int120:69,69:"Int120",Int136:70,70:"Int136",Int144:71,71:"Int144",Int152:72,72:"Int152",Int168:73,73:"Int168",Int176:74,74:"Int176",Int184:75,75:"Int184",Int192:76,76:"Int192",Int200:77,77:"Int200",Int208:78,78:"Int208",Int216:79,79:"Int216",Int224:80,80:"Int224",Int232:81,81:"Int232",Int240:82,82:"Int240",Int248:83,83:"Int248"}),bv=Object.freeze({PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:0,0:"PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:1,1:"V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1:2,2:"V1_1_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:3,3:"V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1:4,4:"V1_0_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128_ZKV1",V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64:5,5:"V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64",V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64_ZKV1:6,6:"V0_11_PARAM_PKE_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64_ZKV1"}),yv=Object.freeze({Big:0,0:"Big",Small:1,1:"Small"}),Av=Object.freeze({KeyswitchBootstrap:0,0:"KeyswitchBootstrap",BootstrapKeyswitch:1,1:"BootstrapKeyswitch"}),mv=Object.freeze({PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128:0,0:"PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128",V1_1_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128:1,1:"V1_1_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128:2,2:"V1_1_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128:3,3:"V1_1_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128:4,4:"V1_1_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128:5,5:"V1_1_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128:6,6:"V1_1_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128:7,7:"V1_1_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128:8,8:"V1_1_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128:9,9:"V1_1_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128:10,10:"V1_1_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128:11,11:"V1_1_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128:12,12:"V1_1_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128:13,13:"V1_1_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128:14,14:"V1_1_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128:15,15:"V1_1_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128:16,16:"V1_1_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128:17,17:"V1_1_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128:18,18:"V1_1_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128:19,19:"V1_1_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128:20,20:"V1_1_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128:21,21:"V1_1_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128:22,22:"V1_1_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128:23,23:"V1_1_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128:24,24:"V1_1_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128:25,25:"V1_1_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128:26,26:"V1_1_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128:27,27:"V1_1_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128:28,28:"V1_1_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128:29,29:"V1_1_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128:30,30:"V1_1_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128:31,31:"V1_1_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128:32,32:"V1_1_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128:33,33:"V1_1_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128:34,34:"V1_1_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128:35,35:"V1_1_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128:36,36:"V1_1_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128:37,37:"V1_1_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128:38,38:"V1_1_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128:39,39:"V1_1_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128:40,40:"V1_1_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:41,41:"V1_1_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:42,42:"V1_1_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:43,43:"V1_1_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:44,44:"V1_1_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:45,45:"V1_1_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:46,46:"V1_1_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:47,47:"V1_1_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:48,48:"V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:49,49:"V1_1_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:50,50:"V1_1_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:51,51:"V1_1_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:52,52:"V1_1_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:53,53:"V1_1_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:54,54:"V1_1_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:55,55:"V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:56,56:"V1_1_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:57,57:"V1_1_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:58,58:"V1_1_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:59,59:"V1_1_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:60,60:"V1_1_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:61,61:"V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:62,62:"V1_1_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:63,63:"V1_1_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:64,64:"V1_1_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:65,65:"V1_1_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:66,66:"V1_1_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:67,67:"V1_1_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:68,68:"V1_1_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:69,69:"V1_1_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:70,70:"V1_1_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:71,71:"V1_1_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128:72,72:"V1_0_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128:73,73:"V1_0_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128:74,74:"V1_0_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128:75,75:"V1_0_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128:76,76:"V1_0_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128:77,77:"V1_0_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128:78,78:"V1_0_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128:79,79:"V1_0_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128:80,80:"V1_0_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128:81,81:"V1_0_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128:82,82:"V1_0_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128:83,83:"V1_0_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128:84,84:"V1_0_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128:85,85:"V1_0_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128:86,86:"V1_0_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128:87,87:"V1_0_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128:88,88:"V1_0_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128:89,89:"V1_0_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128:90,90:"V1_0_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128:91,91:"V1_0_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128:92,92:"V1_0_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128:93,93:"V1_0_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128:94,94:"V1_0_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128:95,95:"V1_0_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128:96,96:"V1_0_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128:97,97:"V1_0_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128:98,98:"V1_0_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128:99,99:"V1_0_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128:100,100:"V1_0_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128:101,101:"V1_0_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128:102,102:"V1_0_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128:103,103:"V1_0_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128:104,104:"V1_0_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128:105,105:"V1_0_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128:106,106:"V1_0_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128:107,107:"V1_0_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128:108,108:"V1_0_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128:109,109:"V1_0_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128:110,110:"V1_0_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128:111,111:"V1_0_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:112,112:"V1_0_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:113,113:"V1_0_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:114,114:"V1_0_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:115,115:"V1_0_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:116,116:"V1_0_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:117,117:"V1_0_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:118,118:"V1_0_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:119,119:"V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:120,120:"V1_0_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:121,121:"V1_0_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:122,122:"V1_0_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:123,123:"V1_0_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:124,124:"V1_0_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:125,125:"V1_0_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:126,126:"V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:127,127:"V1_0_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:128,128:"V1_0_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:129,129:"V1_0_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:130,130:"V1_0_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:131,131:"V1_0_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:132,132:"V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:133,133:"V1_0_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:134,134:"V1_0_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:135,135:"V1_0_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:136,136:"V1_0_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:137,137:"V1_0_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128:138,138:"V1_0_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:139,139:"V1_0_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:140,140:"V1_0_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:141,141:"V1_0_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128:142,142:"V1_0_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M128",V0_11_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M64:143,143:"V0_11_PARAM_MESSAGE_1_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64:144,144:"V0_11_PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M64:145,145:"V0_11_PARAM_MESSAGE_2_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M64:146,146:"V0_11_PARAM_MESSAGE_1_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M64:147,147:"V0_11_PARAM_MESSAGE_2_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M64:148,148:"V0_11_PARAM_MESSAGE_3_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M64:149,149:"V0_11_PARAM_MESSAGE_1_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64:150,150:"V0_11_PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M64:151,151:"V0_11_PARAM_MESSAGE_3_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M64:152,152:"V0_11_PARAM_MESSAGE_4_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M64:153,153:"V0_11_PARAM_MESSAGE_1_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M64:154,154:"V0_11_PARAM_MESSAGE_2_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M64:155,155:"V0_11_PARAM_MESSAGE_3_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M64:156,156:"V0_11_PARAM_MESSAGE_4_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M64:157,157:"V0_11_PARAM_MESSAGE_5_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M64:158,158:"V0_11_PARAM_MESSAGE_1_CARRY_5_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M64:159,159:"V0_11_PARAM_MESSAGE_2_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64:160,160:"V0_11_PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M64:161,161:"V0_11_PARAM_MESSAGE_4_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M64:162,162:"V0_11_PARAM_MESSAGE_5_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M64:163,163:"V0_11_PARAM_MESSAGE_6_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M64:164,164:"V0_11_PARAM_MESSAGE_1_CARRY_6_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M64:165,165:"V0_11_PARAM_MESSAGE_2_CARRY_5_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M64:166,166:"V0_11_PARAM_MESSAGE_3_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M64:167,167:"V0_11_PARAM_MESSAGE_4_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M64:168,168:"V0_11_PARAM_MESSAGE_5_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M64:169,169:"V0_11_PARAM_MESSAGE_6_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M64:170,170:"V0_11_PARAM_MESSAGE_7_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M64:171,171:"V0_11_PARAM_MESSAGE_1_CARRY_7_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M64:172,172:"V0_11_PARAM_MESSAGE_2_CARRY_6_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M64:173,173:"V0_11_PARAM_MESSAGE_3_CARRY_5_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M64:174,174:"V0_11_PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M64:175,175:"V0_11_PARAM_MESSAGE_5_CARRY_3_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M64:176,176:"V0_11_PARAM_MESSAGE_6_CARRY_2_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M64:177,177:"V0_11_PARAM_MESSAGE_7_CARRY_1_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M64:178,178:"V0_11_PARAM_MESSAGE_8_CARRY_0_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M64:179,179:"V0_11_PARAM_MESSAGE_1_CARRY_1_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64:180,180:"V0_11_PARAM_MESSAGE_2_CARRY_2_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M64:181,181:"V0_11_PARAM_MESSAGE_3_CARRY_3_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M64:182,182:"V0_11_PARAM_MESSAGE_4_CARRY_4_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:183,183:"V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:184,184:"V0_11_PARAM_MESSAGE_1_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:185,185:"V0_11_PARAM_MESSAGE_1_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:186,186:"V0_11_PARAM_MESSAGE_1_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:187,187:"V0_11_PARAM_MESSAGE_1_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:188,188:"V0_11_PARAM_MESSAGE_1_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:189,189:"V0_11_PARAM_MESSAGE_1_CARRY_7_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:190,190:"V0_11_PARAM_MESSAGE_2_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:191,191:"V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:192,192:"V0_11_PARAM_MESSAGE_2_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:193,193:"V0_11_PARAM_MESSAGE_2_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:194,194:"V0_11_PARAM_MESSAGE_2_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:195,195:"V0_11_PARAM_MESSAGE_2_CARRY_6_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:196,196:"V0_11_PARAM_MESSAGE_3_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:197,197:"V0_11_PARAM_MESSAGE_3_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:198,198:"V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:199,199:"V0_11_PARAM_MESSAGE_3_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:200,200:"V0_11_PARAM_MESSAGE_3_CARRY_5_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:201,201:"V0_11_PARAM_MESSAGE_4_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:202,202:"V0_11_PARAM_MESSAGE_4_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:203,203:"V0_11_PARAM_MESSAGE_4_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:204,204:"V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:205,205:"V0_11_PARAM_MESSAGE_5_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:206,206:"V0_11_PARAM_MESSAGE_5_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:207,207:"V0_11_PARAM_MESSAGE_5_CARRY_3_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:208,208:"V0_11_PARAM_MESSAGE_6_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:209,209:"V0_11_PARAM_MESSAGE_6_CARRY_2_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64:210,210:"V0_11_PARAM_MESSAGE_7_CARRY_1_COMPACT_PK_KS_PBS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:211,211:"V0_11_PARAM_MESSAGE_1_CARRY_1_COMPACT_PK_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:212,212:"V0_11_PARAM_MESSAGE_2_CARRY_2_COMPACT_PK_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:213,213:"V0_11_PARAM_MESSAGE_3_CARRY_3_COMPACT_PK_PBS_KS_GAUSSIAN_2M64",V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M64:214,214:"V0_11_PARAM_MESSAGE_4_CARRY_4_COMPACT_PK_PBS_KS_GAUSSIAN_2M64"}),Sb=Object.freeze({Proof:0,0:"Proof",Verify:1,1:"Verify"}),Sv=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_boolean_free(n>>>0,1));let Rv=class{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Sv.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_boolean_free(t,0)}static get_parameters(t){const e=i.boolean_get_parameters(t);if(e[2])throw o(e[1]);return t_.__wrap(e[0])}static new_gaussian_from_std_dev(t){const e=i.boolean_new_gaussian_from_std_dev(t);return Xs.__wrap(e)}static try_new_t_uniform(t){const e=i.boolean_try_new_t_uniform(t);if(e[2])throw o(e[1]);return Xs.__wrap(e[0])}static new_parameters(t,e,r,s,_,a,c,u,l,f){b(s,Xs),b(_,Xs);const w=i.boolean_new_parameters(t,e,r,s.__wbg_ptr,_.__wbg_ptr,a,c,u,l,f);return t_.__wrap(w)}static new_client_key_from_seed_and_parameters(t,e,r){b(r,t_);const s=i.boolean_new_client_key_from_seed_and_parameters(t,e,r.__wbg_ptr);return _r.__wrap(s)}static new_client_key(t){b(t,t_);const e=i.boolean_new_client_key(t.__wbg_ptr);return _r.__wrap(e)}static new_public_key(t){b(t,_r);const e=i.boolean_new_public_key(t.__wbg_ptr);return e_.__wrap(e)}static new_compressed_server_key(t){b(t,_r);const e=i.boolean_new_compressed_server_key(t.__wbg_ptr);return lo.__wrap(e)}static encrypt(t,e){b(t,_r);const r=i.boolean_encrypt(t.__wbg_ptr,e);return Lr.__wrap(r)}static encrypt_compressed(t,e){b(t,_r);const r=i.boolean_encrypt_compressed(t.__wbg_ptr,e);return Zs.__wrap(r)}static decompress_ciphertext(t){b(t,Zs);const e=i.boolean_decompress_ciphertext(t.__wbg_ptr);return Lr.__wrap(e)}static encrypt_with_public_key(t,e){b(t,e_);const r=i.boolean_encrypt_with_public_key(t.__wbg_ptr,e);return Lr.__wrap(r)}static trivial_encrypt(t){const e=i.boolean_trivial_encrypt(t);return Lr.__wrap(e)}static decrypt(t,e){return b(t,_r),b(e,Lr),i.boolean_decrypt(t.__wbg_ptr,e.__wbg_ptr)!==0}static serialize_ciphertext(t){b(t,Lr);const e=i.boolean_serialize_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_ciphertext(e,r);if(s[2])throw o(s[1]);return Lr.__wrap(s[0])}static serialize_compressed_ciphertext(t){b(t,Zs);const e=i.boolean_serialize_compressed_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_compressed_ciphertext(e,r);if(s[2])throw o(s[1]);return Zs.__wrap(s[0])}static serialize_client_key(t){b(t,_r);const e=i.boolean_serialize_client_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_client_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_client_key(e,r);if(s[2])throw o(s[1]);return _r.__wrap(s[0])}static serialize_public_key(t){b(t,e_);const e=i.boolean_serialize_public_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_public_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_public_key(e,r);if(s[2])throw o(s[1]);return e_.__wrap(s[0])}static serialize_compressed_server_key(t){b(t,lo);const e=i.boolean_serialize_compressed_server_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_server_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.boolean_deserialize_compressed_server_key(e,r);if(s[2])throw o(s[1]);return lo.__wrap(s[0])}};const Rb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanciphertext_free(n>>>0,1));class Lr{static __wrap(t){t=t>>>0;const e=Object.create(Lr.prototype);return e.__wbg_ptr=t,Rb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Rb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanciphertext_free(t,0)}}const Eb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanclientkey_free(n>>>0,1));class _r{static __wrap(t){t=t>>>0;const e=Object.create(_r.prototype);return e.__wbg_ptr=t,Eb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Eb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanclientkey_free(t,0)}}const Pb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleancompressedciphertext_free(n>>>0,1));class Zs{static __wrap(t){t=t>>>0;const e=Object.create(Zs.prototype);return e.__wbg_ptr=t,Pb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Pb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleancompressedciphertext_free(t,0)}}const zb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleancompressedserverkey_free(n>>>0,1));class lo{static __wrap(t){t=t>>>0;const e=Object.create(lo.prototype);return e.__wbg_ptr=t,zb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleancompressedserverkey_free(t,0)}}const vb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleannoisedistribution_free(n>>>0,1));class Xs{static __wrap(t){t=t>>>0;const e=Object.create(Xs.prototype);return e.__wbg_ptr=t,vb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleannoisedistribution_free(t,0)}}const Mb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanparameters_free(n>>>0,1));class t_{static __wrap(t){t=t>>>0;const e=Object.create(t_.prototype);return e.__wbg_ptr=t,Mb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Mb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanparameters_free(t,0)}}const Bb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_booleanpublickey_free(n>>>0,1));class e_{static __wrap(t){t=t>>>0;const e=Object.create(e_.prototype);return e.__wbg_ptr=t,Bb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Bb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_booleanpublickey_free(t,0)}}const xb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactciphertextlist_free(n>>>0,1));class fs{static __wrap(t){t=t>>>0;const e=Object.create(fs.prototype);return e.__wbg_ptr=t,xb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactciphertextlist_free(t,0)}static builder(t){b(t,ar);const e=i.compactciphertextlist_builder(t.__wbg_ptr);if(e[2])throw o(e[1]);return hu.__wrap(e[0])}len(){return i.compactciphertextlist_len(this.__wbg_ptr)>>>0}is_empty(){return i.compactciphertextlist_is_empty(this.__wbg_ptr)!==0}get_kind_of(t){const e=i.compactciphertextlist_get_kind_of(this.__wbg_ptr,t);return e===84?void 0:e}expand(){const t=i.compactciphertextlist_expand(this.__wbg_ptr);if(t[2])throw o(t[1]);return po.__wrap(t[0])}serialize(){const t=i.compactciphertextlist_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compactciphertextlist_deserialize(e,r);if(s[2])throw o(s[1]);return fs.__wrap(s[0])}safe_serialize(t){const e=i.compactciphertextlist_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compactciphertextlist_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fs.__wrap(_[0])}}const Cb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactciphertextlistbuilder_free(n>>>0,1));class hu{static __wrap(t){t=t>>>0;const e=Object.create(hu.prototype);return e.__wbg_ptr=t,Cb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Cb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactciphertextlistbuilder_free(t,0)}push_u24(t){const e=i.compactciphertextlistbuilder_push_u24(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u40(t){const e=i.compactciphertextlistbuilder_push_u40(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u48(t){const e=i.compactciphertextlistbuilder_push_u48(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u56(t){const e=i.compactciphertextlistbuilder_push_u56(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u2(t){const e=i.compactciphertextlistbuilder_push_u2(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u4(t){const e=i.compactciphertextlistbuilder_push_u4(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u6(t){const e=i.compactciphertextlistbuilder_push_u6(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u8(t){const e=i.compactciphertextlistbuilder_push_u8(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u10(t){const e=i.compactciphertextlistbuilder_push_u10(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u12(t){const e=i.compactciphertextlistbuilder_push_u12(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u14(t){const e=i.compactciphertextlistbuilder_push_u14(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u16(t){const e=i.compactciphertextlistbuilder_push_u16(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u32(t){const e=i.compactciphertextlistbuilder_push_u32(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u64(t){const e=i.compactciphertextlistbuilder_push_u64(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i24(t){const e=i.compactciphertextlistbuilder_push_i24(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i40(t){const e=i.compactciphertextlistbuilder_push_i40(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i48(t){const e=i.compactciphertextlistbuilder_push_i48(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i56(t){const e=i.compactciphertextlistbuilder_push_i56(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i2(t){const e=i.compactciphertextlistbuilder_push_i2(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i4(t){const e=i.compactciphertextlistbuilder_push_i4(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i6(t){const e=i.compactciphertextlistbuilder_push_i6(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i8(t){const e=i.compactciphertextlistbuilder_push_i8(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i10(t){const e=i.compactciphertextlistbuilder_push_i10(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i12(t){const e=i.compactciphertextlistbuilder_push_i12(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i14(t){const e=i.compactciphertextlistbuilder_push_i14(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i16(t){const e=i.compactciphertextlistbuilder_push_i16(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i32(t){const e=i.compactciphertextlistbuilder_push_i32(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i64(t){const e=i.compactciphertextlistbuilder_push_i64(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u128(t){const e=i.compactciphertextlistbuilder_push_u128(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u160(t){const e=i.compactciphertextlistbuilder_push_u160(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u256(t){const e=i.compactciphertextlistbuilder_push_u256(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u512(t){const e=i.compactciphertextlistbuilder_push_u512(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u1024(t){const e=i.compactciphertextlistbuilder_push_u1024(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u2048(t){const e=i.compactciphertextlistbuilder_push_u2048(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i128(t){const e=i.compactciphertextlistbuilder_push_i128(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i160(t){const e=i.compactciphertextlistbuilder_push_i160(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i256(t){const e=i.compactciphertextlistbuilder_push_i256(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i512(t){const e=i.compactciphertextlistbuilder_push_i512(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i1024(t){const e=i.compactciphertextlistbuilder_push_i1024(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i2048(t){const e=i.compactciphertextlistbuilder_push_i2048(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_boolean(t){const e=i.compactciphertextlistbuilder_push_boolean(this.__wbg_ptr,t);if(e[1])throw o(e[0])}build(){const t=i.compactciphertextlistbuilder_build(this.__wbg_ptr);if(t[2])throw o(t[1]);return fs.__wrap(t[0])}build_packed(){const t=i.compactciphertextlistbuilder_build_packed(this.__wbg_ptr);if(t[2])throw o(t[1]);return fs.__wrap(t[0])}build_with_proof_packed(t,e,r){b(t,zr);const s=S(e,i.__wbindgen_malloc),_=A,a=i.compactciphertextlistbuilder_build_with_proof_packed(this.__wbg_ptr,t.__wbg_ptr,s,_,r);if(a[2])throw o(a[1]);return Va.__wrap(a[0])}push_u72(t){const e=i.compactciphertextlistbuilder_push_u72(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u80(t){const e=i.compactciphertextlistbuilder_push_u80(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u88(t){const e=i.compactciphertextlistbuilder_push_u88(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u96(t){const e=i.compactciphertextlistbuilder_push_u96(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u104(t){const e=i.compactciphertextlistbuilder_push_u104(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u112(t){const e=i.compactciphertextlistbuilder_push_u112(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u120(t){const e=i.compactciphertextlistbuilder_push_u120(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u136(t){const e=i.compactciphertextlistbuilder_push_u136(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u144(t){const e=i.compactciphertextlistbuilder_push_u144(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u152(t){const e=i.compactciphertextlistbuilder_push_u152(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u168(t){const e=i.compactciphertextlistbuilder_push_u168(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u176(t){const e=i.compactciphertextlistbuilder_push_u176(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u184(t){const e=i.compactciphertextlistbuilder_push_u184(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u192(t){const e=i.compactciphertextlistbuilder_push_u192(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u200(t){const e=i.compactciphertextlistbuilder_push_u200(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u208(t){const e=i.compactciphertextlistbuilder_push_u208(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u216(t){const e=i.compactciphertextlistbuilder_push_u216(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u224(t){const e=i.compactciphertextlistbuilder_push_u224(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u232(t){const e=i.compactciphertextlistbuilder_push_u232(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u240(t){const e=i.compactciphertextlistbuilder_push_u240(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_u248(t){const e=i.compactciphertextlistbuilder_push_u248(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i72(t){const e=i.compactciphertextlistbuilder_push_i72(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i80(t){const e=i.compactciphertextlistbuilder_push_i80(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i88(t){const e=i.compactciphertextlistbuilder_push_i88(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i96(t){const e=i.compactciphertextlistbuilder_push_i96(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i104(t){const e=i.compactciphertextlistbuilder_push_i104(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i112(t){const e=i.compactciphertextlistbuilder_push_i112(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i120(t){const e=i.compactciphertextlistbuilder_push_i120(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i136(t){const e=i.compactciphertextlistbuilder_push_i136(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i144(t){const e=i.compactciphertextlistbuilder_push_i144(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i152(t){const e=i.compactciphertextlistbuilder_push_i152(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i168(t){const e=i.compactciphertextlistbuilder_push_i168(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i176(t){const e=i.compactciphertextlistbuilder_push_i176(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i184(t){const e=i.compactciphertextlistbuilder_push_i184(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i192(t){const e=i.compactciphertextlistbuilder_push_i192(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i200(t){const e=i.compactciphertextlistbuilder_push_i200(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i208(t){const e=i.compactciphertextlistbuilder_push_i208(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i216(t){const e=i.compactciphertextlistbuilder_push_i216(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i224(t){const e=i.compactciphertextlistbuilder_push_i224(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i232(t){const e=i.compactciphertextlistbuilder_push_i232(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i240(t){const e=i.compactciphertextlistbuilder_push_i240(this.__wbg_ptr,t);if(e[1])throw o(e[0])}push_i248(t){const e=i.compactciphertextlistbuilder_push_i248(this.__wbg_ptr,t);if(e[1])throw o(e[0])}}const Ib=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactciphertextlistexpander_free(n>>>0,1));class po{static __wrap(t){t=t>>>0;const e=Object.create(po.prototype);return e.__wbg_ptr=t,Ib.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ib.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactciphertextlistexpander_free(t,0)}get_uint24(t){const e=i.compactciphertextlistexpander_get_uint24(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ri.__wrap(e[0])}get_uint40(t){const e=i.compactciphertextlistexpander_get_uint40(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ai.__wrap(e[0])}get_uint48(t){const e=i.compactciphertextlistexpander_get_uint48(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ci.__wrap(e[0])}get_uint56(t){const e=i.compactciphertextlistexpander_get_uint56(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return fi.__wrap(e[0])}get_uint72(t){const e=i.compactciphertextlistexpander_get_uint72(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return hi.__wrap(e[0])}get_uint80(t){const e=i.compactciphertextlistexpander_get_uint80(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return di.__wrap(e[0])}get_uint88(t){const e=i.compactciphertextlistexpander_get_uint88(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return gi.__wrap(e[0])}get_uint96(t){const e=i.compactciphertextlistexpander_get_uint96(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return bi.__wrap(e[0])}get_uint104(t){const e=i.compactciphertextlistexpander_get_uint104(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return On.__wrap(e[0])}get_uint112(t){const e=i.compactciphertextlistexpander_get_uint112(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return kn.__wrap(e[0])}get_uint120(t){const e=i.compactciphertextlistexpander_get_uint120(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Gn.__wrap(e[0])}get_uint136(t){const e=i.compactciphertextlistexpander_get_uint136(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Un.__wrap(e[0])}get_uint144(t){const e=i.compactciphertextlistexpander_get_uint144(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Dn.__wrap(e[0])}get_uint152(t){const e=i.compactciphertextlistexpander_get_uint152(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Ln.__wrap(e[0])}get_uint168(t){const e=i.compactciphertextlistexpander_get_uint168(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Yn.__wrap(e[0])}get_uint176(t){const e=i.compactciphertextlistexpander_get_uint176(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Hn.__wrap(e[0])}get_uint184(t){const e=i.compactciphertextlistexpander_get_uint184(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return qn.__wrap(e[0])}get_uint192(t){const e=i.compactciphertextlistexpander_get_uint192(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Qn.__wrap(e[0])}get_uint200(t){const e=i.compactciphertextlistexpander_get_uint200(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Jn.__wrap(e[0])}get_uint208(t){const e=i.compactciphertextlistexpander_get_uint208(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Zn.__wrap(e[0])}get_uint216(t){const e=i.compactciphertextlistexpander_get_uint216(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Xn.__wrap(e[0])}get_uint224(t){const e=i.compactciphertextlistexpander_get_uint224(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ti.__wrap(e[0])}get_uint232(t){const e=i.compactciphertextlistexpander_get_uint232(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ei.__wrap(e[0])}get_uint240(t){const e=i.compactciphertextlistexpander_get_uint240(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ni.__wrap(e[0])}get_uint248(t){const e=i.compactciphertextlistexpander_get_uint248(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ii.__wrap(e[0])}get_uint256(t){const e=i.compactciphertextlistexpander_get_uint256(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return si.__wrap(e[0])}get_uint2(t){const e=i.compactciphertextlistexpander_get_uint2(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Wn.__wrap(e[0])}get_uint4(t){const e=i.compactciphertextlistexpander_get_uint4(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return oi.__wrap(e[0])}get_uint6(t){const e=i.compactciphertextlistexpander_get_uint6(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return li.__wrap(e[0])}get_uint8(t){const e=i.compactciphertextlistexpander_get_uint8(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return wi.__wrap(e[0])}get_uint10(t){const e=i.compactciphertextlistexpander_get_uint10(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return In.__wrap(e[0])}get_uint12(t){const e=i.compactciphertextlistexpander_get_uint12(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Tn.__wrap(e[0])}get_uint14(t){const e=i.compactciphertextlistexpander_get_uint14(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Kn.__wrap(e[0])}get_uint16(t){const e=i.compactciphertextlistexpander_get_uint16(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return jn.__wrap(e[0])}get_uint32(t){const e=i.compactciphertextlistexpander_get_uint32(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return _i.__wrap(e[0])}get_uint64(t){const e=i.compactciphertextlistexpander_get_uint64(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return pi.__wrap(e[0])}get_uint128(t){const e=i.compactciphertextlistexpander_get_uint128(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Fn.__wrap(e[0])}get_uint160(t){const e=i.compactciphertextlistexpander_get_uint160(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Vn.__wrap(e[0])}get_uint512(t){const e=i.compactciphertextlistexpander_get_uint512(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ui.__wrap(e[0])}get_uint1024(t){const e=i.compactciphertextlistexpander_get_uint1024(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Nn.__wrap(e[0])}get_uint2048(t){const e=i.compactciphertextlistexpander_get_uint2048(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return $n.__wrap(e[0])}get_int24(t){const e=i.compactciphertextlistexpander_get_int24(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return wn.__wrap(e[0])}get_int40(t){const e=i.compactciphertextlistexpander_get_int40(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return mn.__wrap(e[0])}get_int48(t){const e=i.compactciphertextlistexpander_get_int48(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Sn.__wrap(e[0])}get_int56(t){const e=i.compactciphertextlistexpander_get_int56(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return En.__wrap(e[0])}get_int72(t){const e=i.compactciphertextlistexpander_get_int72(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return vn.__wrap(e[0])}get_int80(t){const e=i.compactciphertextlistexpander_get_int80(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Bn.__wrap(e[0])}get_int88(t){const e=i.compactciphertextlistexpander_get_int88(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return xn.__wrap(e[0])}get_int96(t){const e=i.compactciphertextlistexpander_get_int96(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Cn.__wrap(e[0])}get_int104(t){const e=i.compactciphertextlistexpander_get_int104(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Hr.__wrap(e[0])}get_int112(t){const e=i.compactciphertextlistexpander_get_int112(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return qr.__wrap(e[0])}get_int120(t){const e=i.compactciphertextlistexpander_get_int120(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Wr.__wrap(e[0])}get_int136(t){const e=i.compactciphertextlistexpander_get_int136(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return $r.__wrap(e[0])}get_int144(t){const e=i.compactciphertextlistexpander_get_int144(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Xr.__wrap(e[0])}get_int152(t){const e=i.compactciphertextlistexpander_get_int152(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return tn.__wrap(e[0])}get_int168(t){const e=i.compactciphertextlistexpander_get_int168(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return nn.__wrap(e[0])}get_int176(t){const e=i.compactciphertextlistexpander_get_int176(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return sn.__wrap(e[0])}get_int184(t){const e=i.compactciphertextlistexpander_get_int184(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return _n.__wrap(e[0])}get_int192(t){const e=i.compactciphertextlistexpander_get_int192(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return on.__wrap(e[0])}get_int200(t){const e=i.compactciphertextlistexpander_get_int200(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return cn.__wrap(e[0])}get_int208(t){const e=i.compactciphertextlistexpander_get_int208(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return fn.__wrap(e[0])}get_int216(t){const e=i.compactciphertextlistexpander_get_int216(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return ln.__wrap(e[0])}get_int224(t){const e=i.compactciphertextlistexpander_get_int224(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return pn.__wrap(e[0])}get_int232(t){const e=i.compactciphertextlistexpander_get_int232(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return hn.__wrap(e[0])}get_int240(t){const e=i.compactciphertextlistexpander_get_int240(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return dn.__wrap(e[0])}get_int248(t){const e=i.compactciphertextlistexpander_get_int248(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return gn.__wrap(e[0])}get_int2(t){const e=i.compactciphertextlistexpander_get_int2(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return an.__wrap(e[0])}get_int4(t){const e=i.compactciphertextlistexpander_get_int4(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return An.__wrap(e[0])}get_int6(t){const e=i.compactciphertextlistexpander_get_int6(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Pn.__wrap(e[0])}get_int8(t){const e=i.compactciphertextlistexpander_get_int8(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Mn.__wrap(e[0])}get_int10(t){const e=i.compactciphertextlistexpander_get_int10(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Vr.__wrap(e[0])}get_int12(t){const e=i.compactciphertextlistexpander_get_int12(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Qr.__wrap(e[0])}get_int14(t){const e=i.compactciphertextlistexpander_get_int14(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Zr.__wrap(e[0])}get_int16(t){const e=i.compactciphertextlistexpander_get_int16(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return en.__wrap(e[0])}get_int32(t){const e=i.compactciphertextlistexpander_get_int32(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return yn.__wrap(e[0])}get_int64(t){const e=i.compactciphertextlistexpander_get_int64(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return zn.__wrap(e[0])}get_int128(t){const e=i.compactciphertextlistexpander_get_int128(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Jr.__wrap(e[0])}get_int160(t){const e=i.compactciphertextlistexpander_get_int160(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return rn.__wrap(e[0])}get_int256(t){const e=i.compactciphertextlistexpander_get_int256(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return bn.__wrap(e[0])}get_int512(t){const e=i.compactciphertextlistexpander_get_int512(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Rn.__wrap(e[0])}get_int1024(t){const e=i.compactciphertextlistexpander_get_int1024(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return Yr.__wrap(e[0])}get_int2048(t){const e=i.compactciphertextlistexpander_get_int2048(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return un.__wrap(e[0])}get_bool(t){const e=i.compactciphertextlistexpander_get_bool(this.__wbg_ptr,t);if(e[2])throw o(e[1]);return jr.__wrap(e[0])}len(){return i.compactciphertextlistexpander_len(this.__wbg_ptr)>>>0}is_empty(){return i.compactciphertextlistexpander_is_empty(this.__wbg_ptr)!==0}get_kind_of(t){const e=i.compactciphertextlistexpander_get_kind_of(this.__wbg_ptr,t);return e===84?void 0:e}}const Nb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compactpkecrs_free(n>>>0,1));class zr{static __wrap(t){t=t>>>0;const e=Object.create(zr.prototype);return e.__wbg_ptr=t,Nb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Nb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compactpkecrs_free(t,0)}serialize(t){const e=i.compactpkecrs_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compactpkecrs_deserialize(e,r);if(s[2])throw o(s[1]);return zr.__wrap(s[0])}safe_serialize(t){const e=i.compactpkecrs_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compactpkecrs_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return zr.__wrap(_[0])}static from_config(t,e){b(t,o_);const r=i.compactpkecrs_from_config(t.__wbg_ptr,e);if(r[2])throw o(r[1]);return zr.__wrap(r[0])}static deserialize_from_public_params(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compactpkecrs_deserialize_from_public_params(e,r);if(s[2])throw o(s[1]);return zr.__wrap(s[0])}static safe_deserialize_from_public_params(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compactpkecrs_safe_deserialize_from_public_params(r,s,e);if(_[2])throw o(_[1]);return zr.__wrap(_[0])}}const Ob=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfhebool_free(n>>>0,1));class ho{static __wrap(t){t=t>>>0;const e=Object.create(ho.prototype);return e.__wbg_ptr=t,Ob.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ob.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfhebool_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfhebool_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ho.__wrap(r[0])}decompress(){const t=i.compressedfhebool_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return jr.__wrap(t[0])}serialize(){const t=i.compressedfhebool_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfhebool_deserialize(e,r);if(s[2])throw o(s[1]);return ho.__wrap(s[0])}safe_serialize(t){const e=i.compressedfhebool_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfhebool_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ho.__wrap(_[0])}}const kb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint10_free(n>>>0,1));class wo{static __wrap(t){t=t>>>0;const e=Object.create(wo.prototype);return e.__wbg_ptr=t,kb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wo.__wrap(r[0])}decompress(){const t=i.compressedfheint10_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Vr.__wrap(t[0])}serialize(){const t=i.compressedfheint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint10_deserialize(e,r);if(s[2])throw o(s[1]);return wo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wo.__wrap(_[0])}}const Tb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint1024_free(n>>>0,1));class go{static __wrap(t){t=t>>>0;const e=Object.create(go.prototype);return e.__wbg_ptr=t,Tb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Tb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return go.__wrap(r[0])}decompress(){const t=i.compressedfheint1024_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Yr.__wrap(t[0])}serialize(){const t=i.compressedfheint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint1024_deserialize(e,r);if(s[2])throw o(s[1]);return go.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return go.__wrap(_[0])}}const Gb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint104_free(n>>>0,1));class bo{static __wrap(t){t=t>>>0;const e=Object.create(bo.prototype);return e.__wbg_ptr=t,Gb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bo.__wrap(r[0])}decompress(){const t=i.compressedfheint104_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Hr.__wrap(t[0])}serialize(){const t=i.compressedfheint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint104_deserialize(e,r);if(s[2])throw o(s[1]);return bo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return bo.__wrap(_[0])}}const Fb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint112_free(n>>>0,1));class yo{static __wrap(t){t=t>>>0;const e=Object.create(yo.prototype);return e.__wbg_ptr=t,Fb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Fb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yo.__wrap(r[0])}decompress(){const t=i.compressedfheint112_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return qr.__wrap(t[0])}serialize(){const t=i.compressedfheint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint112_deserialize(e,r);if(s[2])throw o(s[1]);return yo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return yo.__wrap(_[0])}}const Ub=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint12_free(n>>>0,1));class Ao{static __wrap(t){t=t>>>0;const e=Object.create(Ao.prototype);return e.__wbg_ptr=t,Ub.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ub.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ao.__wrap(r[0])}decompress(){const t=i.compressedfheint12_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Qr.__wrap(t[0])}serialize(){const t=i.compressedfheint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint12_deserialize(e,r);if(s[2])throw o(s[1]);return Ao.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ao.__wrap(_[0])}}const Kb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint120_free(n>>>0,1));class mo{static __wrap(t){t=t>>>0;const e=Object.create(mo.prototype);return e.__wbg_ptr=t,Kb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Kb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mo.__wrap(r[0])}decompress(){const t=i.compressedfheint120_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Wr.__wrap(t[0])}serialize(){const t=i.compressedfheint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint120_deserialize(e,r);if(s[2])throw o(s[1]);return mo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return mo.__wrap(_[0])}}const Db=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint128_free(n>>>0,1));class So{static __wrap(t){t=t>>>0;const e=Object.create(So.prototype);return e.__wbg_ptr=t,Db.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Db.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return So.__wrap(r[0])}decompress(){const t=i.compressedfheint128_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Jr.__wrap(t[0])}serialize(){const t=i.compressedfheint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint128_deserialize(e,r);if(s[2])throw o(s[1]);return So.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return So.__wrap(_[0])}}const Lb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint136_free(n>>>0,1));class Ro{static __wrap(t){t=t>>>0;const e=Object.create(Ro.prototype);return e.__wbg_ptr=t,Lb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ro.__wrap(r[0])}decompress(){const t=i.compressedfheint136_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return $r.__wrap(t[0])}serialize(){const t=i.compressedfheint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint136_deserialize(e,r);if(s[2])throw o(s[1]);return Ro.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ro.__wrap(_[0])}}const jb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint14_free(n>>>0,1));class Eo{static __wrap(t){t=t>>>0;const e=Object.create(Eo.prototype);return e.__wbg_ptr=t,jb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Eo.__wrap(r[0])}decompress(){const t=i.compressedfheint14_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Zr.__wrap(t[0])}serialize(){const t=i.compressedfheint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint14_deserialize(e,r);if(s[2])throw o(s[1]);return Eo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Eo.__wrap(_[0])}}const Vb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint144_free(n>>>0,1));class Po{static __wrap(t){t=t>>>0;const e=Object.create(Po.prototype);return e.__wbg_ptr=t,Vb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Po.__wrap(r[0])}decompress(){const t=i.compressedfheint144_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Xr.__wrap(t[0])}serialize(){const t=i.compressedfheint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint144_deserialize(e,r);if(s[2])throw o(s[1]);return Po.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Po.__wrap(_[0])}}const Yb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint152_free(n>>>0,1));class zo{static __wrap(t){t=t>>>0;const e=Object.create(zo.prototype);return e.__wbg_ptr=t,Yb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zo.__wrap(r[0])}decompress(){const t=i.compressedfheint152_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return tn.__wrap(t[0])}serialize(){const t=i.compressedfheint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint152_deserialize(e,r);if(s[2])throw o(s[1]);return zo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return zo.__wrap(_[0])}}const Hb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint16_free(n>>>0,1));class vo{static __wrap(t){t=t>>>0;const e=Object.create(vo.prototype);return e.__wbg_ptr=t,Hb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Hb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vo.__wrap(r[0])}decompress(){const t=i.compressedfheint16_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return en.__wrap(t[0])}serialize(){const t=i.compressedfheint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint16_deserialize(e,r);if(s[2])throw o(s[1]);return vo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return vo.__wrap(_[0])}}const qb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint160_free(n>>>0,1));class Mo{static __wrap(t){t=t>>>0;const e=Object.create(Mo.prototype);return e.__wbg_ptr=t,qb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mo.__wrap(r[0])}decompress(){const t=i.compressedfheint160_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return rn.__wrap(t[0])}serialize(){const t=i.compressedfheint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint160_deserialize(e,r);if(s[2])throw o(s[1]);return Mo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Mo.__wrap(_[0])}}const Qb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint168_free(n>>>0,1));class Bo{static __wrap(t){t=t>>>0;const e=Object.create(Bo.prototype);return e.__wbg_ptr=t,Qb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Qb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bo.__wrap(r[0])}decompress(){const t=i.compressedfheint168_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return nn.__wrap(t[0])}serialize(){const t=i.compressedfheint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint168_deserialize(e,r);if(s[2])throw o(s[1]);return Bo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Bo.__wrap(_[0])}}const Wb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint176_free(n>>>0,1));class xo{static __wrap(t){t=t>>>0;const e=Object.create(xo.prototype);return e.__wbg_ptr=t,Wb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xo.__wrap(r[0])}decompress(){const t=i.compressedfheint176_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return sn.__wrap(t[0])}serialize(){const t=i.compressedfheint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint176_deserialize(e,r);if(s[2])throw o(s[1]);return xo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return xo.__wrap(_[0])}}const Jb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint184_free(n>>>0,1));class Co{static __wrap(t){t=t>>>0;const e=Object.create(Co.prototype);return e.__wbg_ptr=t,Jb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Co.__wrap(r[0])}decompress(){const t=i.compressedfheint184_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return _n.__wrap(t[0])}serialize(){const t=i.compressedfheint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint184_deserialize(e,r);if(s[2])throw o(s[1]);return Co.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Co.__wrap(_[0])}}const $b=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint192_free(n>>>0,1));class Io{static __wrap(t){t=t>>>0;const e=Object.create(Io.prototype);return e.__wbg_ptr=t,$b.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$b.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Io.__wrap(r[0])}decompress(){const t=i.compressedfheint192_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return on.__wrap(t[0])}serialize(){const t=i.compressedfheint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint192_deserialize(e,r);if(s[2])throw o(s[1]);return Io.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Io.__wrap(_[0])}}const Zb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint2_free(n>>>0,1));class No{static __wrap(t){t=t>>>0;const e=Object.create(No.prototype);return e.__wbg_ptr=t,Zb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return No.__wrap(r[0])}decompress(){const t=i.compressedfheint2_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return an.__wrap(t[0])}serialize(){const t=i.compressedfheint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint2_deserialize(e,r);if(s[2])throw o(s[1]);return No.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return No.__wrap(_[0])}}const Xb=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint200_free(n>>>0,1));class Oo{static __wrap(t){t=t>>>0;const e=Object.create(Oo.prototype);return e.__wbg_ptr=t,Xb.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xb.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Oo.__wrap(r[0])}decompress(){const t=i.compressedfheint200_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return cn.__wrap(t[0])}serialize(){const t=i.compressedfheint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint200_deserialize(e,r);if(s[2])throw o(s[1]);return Oo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Oo.__wrap(_[0])}}const ty=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint2048_free(n>>>0,1));class ko{static __wrap(t){t=t>>>0;const e=Object.create(ko.prototype);return e.__wbg_ptr=t,ty.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ty.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ko.__wrap(r[0])}decompress(){const t=i.compressedfheint2048_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return un.__wrap(t[0])}serialize(){const t=i.compressedfheint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint2048_deserialize(e,r);if(s[2])throw o(s[1]);return ko.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ko.__wrap(_[0])}}const ey=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint208_free(n>>>0,1));class To{static __wrap(t){t=t>>>0;const e=Object.create(To.prototype);return e.__wbg_ptr=t,ey.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ey.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return To.__wrap(r[0])}decompress(){const t=i.compressedfheint208_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return fn.__wrap(t[0])}serialize(){const t=i.compressedfheint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint208_deserialize(e,r);if(s[2])throw o(s[1]);return To.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return To.__wrap(_[0])}}const ry=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint216_free(n>>>0,1));class Go{static __wrap(t){t=t>>>0;const e=Object.create(Go.prototype);return e.__wbg_ptr=t,ry.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ry.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Go.__wrap(r[0])}decompress(){const t=i.compressedfheint216_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ln.__wrap(t[0])}serialize(){const t=i.compressedfheint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint216_deserialize(e,r);if(s[2])throw o(s[1]);return Go.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Go.__wrap(_[0])}}const ny=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint224_free(n>>>0,1));class Fo{static __wrap(t){t=t>>>0;const e=Object.create(Fo.prototype);return e.__wbg_ptr=t,ny.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ny.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fo.__wrap(r[0])}decompress(){const t=i.compressedfheint224_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return pn.__wrap(t[0])}serialize(){const t=i.compressedfheint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint224_deserialize(e,r);if(s[2])throw o(s[1]);return Fo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Fo.__wrap(_[0])}}const iy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint232_free(n>>>0,1));class Uo{static __wrap(t){t=t>>>0;const e=Object.create(Uo.prototype);return e.__wbg_ptr=t,iy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,iy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Uo.__wrap(r[0])}decompress(){const t=i.compressedfheint232_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return hn.__wrap(t[0])}serialize(){const t=i.compressedfheint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint232_deserialize(e,r);if(s[2])throw o(s[1]);return Uo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Uo.__wrap(_[0])}}const sy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint24_free(n>>>0,1));class Ko{static __wrap(t){t=t>>>0;const e=Object.create(Ko.prototype);return e.__wbg_ptr=t,sy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,sy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ko.__wrap(r[0])}decompress(){const t=i.compressedfheint24_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return wn.__wrap(t[0])}serialize(){const t=i.compressedfheint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint24_deserialize(e,r);if(s[2])throw o(s[1]);return Ko.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ko.__wrap(_[0])}}const _y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint240_free(n>>>0,1));class Do{static __wrap(t){t=t>>>0;const e=Object.create(Do.prototype);return e.__wbg_ptr=t,_y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,_y.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Do.__wrap(r[0])}decompress(){const t=i.compressedfheint240_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return dn.__wrap(t[0])}serialize(){const t=i.compressedfheint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint240_deserialize(e,r);if(s[2])throw o(s[1]);return Do.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Do.__wrap(_[0])}}const oy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint248_free(n>>>0,1));class Lo{static __wrap(t){t=t>>>0;const e=Object.create(Lo.prototype);return e.__wbg_ptr=t,oy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,oy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Lo.__wrap(r[0])}decompress(){const t=i.compressedfheint248_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return gn.__wrap(t[0])}serialize(){const t=i.compressedfheint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint248_deserialize(e,r);if(s[2])throw o(s[1]);return Lo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Lo.__wrap(_[0])}}const ay=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint256_free(n>>>0,1));class jo{static __wrap(t){t=t>>>0;const e=Object.create(jo.prototype);return e.__wbg_ptr=t,ay.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ay.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jo.__wrap(r[0])}decompress(){const t=i.compressedfheint256_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return bn.__wrap(t[0])}serialize(){const t=i.compressedfheint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint256_deserialize(e,r);if(s[2])throw o(s[1]);return jo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return jo.__wrap(_[0])}}const cy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint32_free(n>>>0,1));class Vo{static __wrap(t){t=t>>>0;const e=Object.create(Vo.prototype);return e.__wbg_ptr=t,cy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,cy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vo.__wrap(r[0])}decompress(){const t=i.compressedfheint32_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return yn.__wrap(t[0])}serialize(){const t=i.compressedfheint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint32_deserialize(e,r);if(s[2])throw o(s[1]);return Vo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Vo.__wrap(_[0])}}const uy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint4_free(n>>>0,1));class Yo{static __wrap(t){t=t>>>0;const e=Object.create(Yo.prototype);return e.__wbg_ptr=t,uy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,uy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yo.__wrap(r[0])}decompress(){const t=i.compressedfheint4_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return An.__wrap(t[0])}serialize(){const t=i.compressedfheint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint4_deserialize(e,r);if(s[2])throw o(s[1]);return Yo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Yo.__wrap(_[0])}}const fy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint40_free(n>>>0,1));class Ho{static __wrap(t){t=t>>>0;const e=Object.create(Ho.prototype);return e.__wbg_ptr=t,fy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,fy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ho.__wrap(r[0])}decompress(){const t=i.compressedfheint40_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return mn.__wrap(t[0])}serialize(){const t=i.compressedfheint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint40_deserialize(e,r);if(s[2])throw o(s[1]);return Ho.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ho.__wrap(_[0])}}const ly=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint48_free(n>>>0,1));class qo{static __wrap(t){t=t>>>0;const e=Object.create(qo.prototype);return e.__wbg_ptr=t,ly.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ly.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qo.__wrap(r[0])}decompress(){const t=i.compressedfheint48_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Sn.__wrap(t[0])}serialize(){const t=i.compressedfheint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint48_deserialize(e,r);if(s[2])throw o(s[1]);return qo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return qo.__wrap(_[0])}}const py=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint512_free(n>>>0,1));class Qo{static __wrap(t){t=t>>>0;const e=Object.create(Qo.prototype);return e.__wbg_ptr=t,py.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,py.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qo.__wrap(r[0])}decompress(){const t=i.compressedfheint512_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Rn.__wrap(t[0])}serialize(){const t=i.compressedfheint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint512_deserialize(e,r);if(s[2])throw o(s[1]);return Qo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Qo.__wrap(_[0])}}const hy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint56_free(n>>>0,1));class Wo{static __wrap(t){t=t>>>0;const e=Object.create(Wo.prototype);return e.__wbg_ptr=t,hy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,hy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wo.__wrap(r[0])}decompress(){const t=i.compressedfheint56_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return En.__wrap(t[0])}serialize(){const t=i.compressedfheint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint56_deserialize(e,r);if(s[2])throw o(s[1]);return Wo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Wo.__wrap(_[0])}}const wy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint6_free(n>>>0,1));class Jo{static __wrap(t){t=t>>>0;const e=Object.create(Jo.prototype);return e.__wbg_ptr=t,wy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jo.__wrap(r[0])}decompress(){const t=i.compressedfheint6_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Pn.__wrap(t[0])}serialize(){const t=i.compressedfheint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint6_deserialize(e,r);if(s[2])throw o(s[1]);return Jo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Jo.__wrap(_[0])}}const dy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint64_free(n>>>0,1));class $o{static __wrap(t){t=t>>>0;const e=Object.create($o.prototype);return e.__wbg_ptr=t,dy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $o.__wrap(r[0])}decompress(){const t=i.compressedfheint64_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return zn.__wrap(t[0])}serialize(){const t=i.compressedfheint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint64_deserialize(e,r);if(s[2])throw o(s[1]);return $o.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return $o.__wrap(_[0])}}const gy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint72_free(n>>>0,1));class Zo{static __wrap(t){t=t>>>0;const e=Object.create(Zo.prototype);return e.__wbg_ptr=t,gy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zo.__wrap(r[0])}decompress(){const t=i.compressedfheint72_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return vn.__wrap(t[0])}serialize(){const t=i.compressedfheint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint72_deserialize(e,r);if(s[2])throw o(s[1]);return Zo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Zo.__wrap(_[0])}}const by=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint8_free(n>>>0,1));class Xo{static __wrap(t){t=t>>>0;const e=Object.create(Xo.prototype);return e.__wbg_ptr=t,by.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,by.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xo.__wrap(r[0])}decompress(){const t=i.compressedfheint8_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Mn.__wrap(t[0])}serialize(){const t=i.compressedfheint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint8_deserialize(e,r);if(s[2])throw o(s[1]);return Xo.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Xo.__wrap(_[0])}}const yy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint80_free(n>>>0,1));class ta{static __wrap(t){t=t>>>0;const e=Object.create(ta.prototype);return e.__wbg_ptr=t,yy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ta.__wrap(r[0])}decompress(){const t=i.compressedfheint80_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Bn.__wrap(t[0])}serialize(){const t=i.compressedfheint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint80_deserialize(e,r);if(s[2])throw o(s[1]);return ta.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ta.__wrap(_[0])}}const Ay=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint88_free(n>>>0,1));class ea{static __wrap(t){t=t>>>0;const e=Object.create(ea.prototype);return e.__wbg_ptr=t,Ay.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ay.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ea.__wrap(r[0])}decompress(){const t=i.compressedfheint88_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return xn.__wrap(t[0])}serialize(){const t=i.compressedfheint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint88_deserialize(e,r);if(s[2])throw o(s[1]);return ea.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ea.__wrap(_[0])}}const my=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheint96_free(n>>>0,1));class ra{static __wrap(t){t=t>>>0;const e=Object.create(ra.prototype);return e.__wbg_ptr=t,my.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,my.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ra.__wrap(r[0])}decompress(){const t=i.compressedfheint96_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Cn.__wrap(t[0])}serialize(){const t=i.compressedfheint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheint96_deserialize(e,r);if(s[2])throw o(s[1]);return ra.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ra.__wrap(_[0])}}const Sy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint10_free(n>>>0,1));class na{static __wrap(t){t=t>>>0;const e=Object.create(na.prototype);return e.__wbg_ptr=t,Sy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Sy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return na.__wrap(r[0])}decompress(){const t=i.compressedfheuint10_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return In.__wrap(t[0])}serialize(){const t=i.compressedfheuint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint10_deserialize(e,r);if(s[2])throw o(s[1]);return na.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return na.__wrap(_[0])}}const Ry=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint1024_free(n>>>0,1));class ia{static __wrap(t){t=t>>>0;const e=Object.create(ia.prototype);return e.__wbg_ptr=t,Ry.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ry.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ia.__wrap(r[0])}decompress(){const t=i.compressedfheuint1024_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Nn.__wrap(t[0])}serialize(){const t=i.compressedfheuint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint1024_deserialize(e,r);if(s[2])throw o(s[1]);return ia.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ia.__wrap(_[0])}}const Ey=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint104_free(n>>>0,1));class sa{static __wrap(t){t=t>>>0;const e=Object.create(sa.prototype);return e.__wbg_ptr=t,Ey.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ey.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sa.__wrap(r[0])}decompress(){const t=i.compressedfheuint104_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return On.__wrap(t[0])}serialize(){const t=i.compressedfheuint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint104_deserialize(e,r);if(s[2])throw o(s[1]);return sa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return sa.__wrap(_[0])}}const Py=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint112_free(n>>>0,1));class _a{static __wrap(t){t=t>>>0;const e=Object.create(_a.prototype);return e.__wbg_ptr=t,Py.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Py.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _a.__wrap(r[0])}decompress(){const t=i.compressedfheuint112_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return kn.__wrap(t[0])}serialize(){const t=i.compressedfheuint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint112_deserialize(e,r);if(s[2])throw o(s[1]);return _a.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return _a.__wrap(_[0])}}const zy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint12_free(n>>>0,1));class oa{static __wrap(t){t=t>>>0;const e=Object.create(oa.prototype);return e.__wbg_ptr=t,zy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oa.__wrap(r[0])}decompress(){const t=i.compressedfheuint12_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Tn.__wrap(t[0])}serialize(){const t=i.compressedfheuint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint12_deserialize(e,r);if(s[2])throw o(s[1]);return oa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return oa.__wrap(_[0])}}const vy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint120_free(n>>>0,1));class aa{static __wrap(t){t=t>>>0;const e=Object.create(aa.prototype);return e.__wbg_ptr=t,vy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return aa.__wrap(r[0])}decompress(){const t=i.compressedfheuint120_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Gn.__wrap(t[0])}serialize(){const t=i.compressedfheuint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint120_deserialize(e,r);if(s[2])throw o(s[1]);return aa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return aa.__wrap(_[0])}}const My=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint128_free(n>>>0,1));class ca{static __wrap(t){t=t>>>0;const e=Object.create(ca.prototype);return e.__wbg_ptr=t,My.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,My.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ca.__wrap(r[0])}decompress(){const t=i.compressedfheuint128_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Fn.__wrap(t[0])}serialize(){const t=i.compressedfheuint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint128_deserialize(e,r);if(s[2])throw o(s[1]);return ca.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ca.__wrap(_[0])}}const By=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint136_free(n>>>0,1));class ua{static __wrap(t){t=t>>>0;const e=Object.create(ua.prototype);return e.__wbg_ptr=t,By.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,By.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ua.__wrap(r[0])}decompress(){const t=i.compressedfheuint136_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Un.__wrap(t[0])}serialize(){const t=i.compressedfheuint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint136_deserialize(e,r);if(s[2])throw o(s[1]);return ua.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ua.__wrap(_[0])}}const xy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint14_free(n>>>0,1));class fa{static __wrap(t){t=t>>>0;const e=Object.create(fa.prototype);return e.__wbg_ptr=t,xy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fa.__wrap(r[0])}decompress(){const t=i.compressedfheuint14_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Kn.__wrap(t[0])}serialize(){const t=i.compressedfheuint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint14_deserialize(e,r);if(s[2])throw o(s[1]);return fa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fa.__wrap(_[0])}}const Cy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint144_free(n>>>0,1));class la{static __wrap(t){t=t>>>0;const e=Object.create(la.prototype);return e.__wbg_ptr=t,Cy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Cy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return la.__wrap(r[0])}decompress(){const t=i.compressedfheuint144_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Dn.__wrap(t[0])}serialize(){const t=i.compressedfheuint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint144_deserialize(e,r);if(s[2])throw o(s[1]);return la.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return la.__wrap(_[0])}}const Iy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint152_free(n>>>0,1));class pa{static __wrap(t){t=t>>>0;const e=Object.create(pa.prototype);return e.__wbg_ptr=t,Iy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Iy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pa.__wrap(r[0])}decompress(){const t=i.compressedfheuint152_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Ln.__wrap(t[0])}serialize(){const t=i.compressedfheuint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint152_deserialize(e,r);if(s[2])throw o(s[1]);return pa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return pa.__wrap(_[0])}}const Ny=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint16_free(n>>>0,1));class ha{static __wrap(t){t=t>>>0;const e=Object.create(ha.prototype);return e.__wbg_ptr=t,Ny.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ny.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ha.__wrap(r[0])}decompress(){const t=i.compressedfheuint16_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return jn.__wrap(t[0])}serialize(){const t=i.compressedfheuint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint16_deserialize(e,r);if(s[2])throw o(s[1]);return ha.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ha.__wrap(_[0])}}const Oy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint160_free(n>>>0,1));class wa{static __wrap(t){t=t>>>0;const e=Object.create(wa.prototype);return e.__wbg_ptr=t,Oy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Oy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wa.__wrap(r[0])}decompress(){const t=i.compressedfheuint160_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Vn.__wrap(t[0])}serialize(){const t=i.compressedfheuint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint160_deserialize(e,r);if(s[2])throw o(s[1]);return wa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wa.__wrap(_[0])}}const ky=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint168_free(n>>>0,1));class da{static __wrap(t){t=t>>>0;const e=Object.create(da.prototype);return e.__wbg_ptr=t,ky.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ky.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return da.__wrap(r[0])}decompress(){const t=i.compressedfheuint168_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Yn.__wrap(t[0])}serialize(){const t=i.compressedfheuint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint168_deserialize(e,r);if(s[2])throw o(s[1]);return da.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return da.__wrap(_[0])}}const Ty=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint176_free(n>>>0,1));class ga{static __wrap(t){t=t>>>0;const e=Object.create(ga.prototype);return e.__wbg_ptr=t,Ty.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ty.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ga.__wrap(r[0])}decompress(){const t=i.compressedfheuint176_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Hn.__wrap(t[0])}serialize(){const t=i.compressedfheuint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint176_deserialize(e,r);if(s[2])throw o(s[1]);return ga.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ga.__wrap(_[0])}}const Gy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint184_free(n>>>0,1));class ba{static __wrap(t){t=t>>>0;const e=Object.create(ba.prototype);return e.__wbg_ptr=t,Gy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Gy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ba.__wrap(r[0])}decompress(){const t=i.compressedfheuint184_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return qn.__wrap(t[0])}serialize(){const t=i.compressedfheuint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint184_deserialize(e,r);if(s[2])throw o(s[1]);return ba.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ba.__wrap(_[0])}}const Fy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint192_free(n>>>0,1));class ya{static __wrap(t){t=t>>>0;const e=Object.create(ya.prototype);return e.__wbg_ptr=t,Fy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Fy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ya.__wrap(r[0])}decompress(){const t=i.compressedfheuint192_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Qn.__wrap(t[0])}serialize(){const t=i.compressedfheuint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint192_deserialize(e,r);if(s[2])throw o(s[1]);return ya.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ya.__wrap(_[0])}}const Uy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint2_free(n>>>0,1));class Aa{static __wrap(t){t=t>>>0;const e=Object.create(Aa.prototype);return e.__wbg_ptr=t,Uy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Uy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Aa.__wrap(r[0])}decompress(){const t=i.compressedfheuint2_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Wn.__wrap(t[0])}serialize(){const t=i.compressedfheuint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint2_deserialize(e,r);if(s[2])throw o(s[1]);return Aa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Aa.__wrap(_[0])}}const Ky=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint200_free(n>>>0,1));class ma{static __wrap(t){t=t>>>0;const e=Object.create(ma.prototype);return e.__wbg_ptr=t,Ky.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ky.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ma.__wrap(r[0])}decompress(){const t=i.compressedfheuint200_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Jn.__wrap(t[0])}serialize(){const t=i.compressedfheuint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint200_deserialize(e,r);if(s[2])throw o(s[1]);return ma.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ma.__wrap(_[0])}}const Dy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint2048_free(n>>>0,1));class Sa{static __wrap(t){t=t>>>0;const e=Object.create(Sa.prototype);return e.__wbg_ptr=t,Dy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sa.__wrap(r[0])}decompress(){const t=i.compressedfheuint2048_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return $n.__wrap(t[0])}serialize(){const t=i.compressedfheuint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint2048_deserialize(e,r);if(s[2])throw o(s[1]);return Sa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Sa.__wrap(_[0])}}const Ly=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint208_free(n>>>0,1));class Ra{static __wrap(t){t=t>>>0;const e=Object.create(Ra.prototype);return e.__wbg_ptr=t,Ly.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ly.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ra.__wrap(r[0])}decompress(){const t=i.compressedfheuint208_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Zn.__wrap(t[0])}serialize(){const t=i.compressedfheuint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint208_deserialize(e,r);if(s[2])throw o(s[1]);return Ra.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ra.__wrap(_[0])}}const jy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint216_free(n>>>0,1));class Ea{static __wrap(t){t=t>>>0;const e=Object.create(Ea.prototype);return e.__wbg_ptr=t,jy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ea.__wrap(r[0])}decompress(){const t=i.compressedfheuint216_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return Xn.__wrap(t[0])}serialize(){const t=i.compressedfheuint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint216_deserialize(e,r);if(s[2])throw o(s[1]);return Ea.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ea.__wrap(_[0])}}const Vy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint224_free(n>>>0,1));class Pa{static __wrap(t){t=t>>>0;const e=Object.create(Pa.prototype);return e.__wbg_ptr=t,Vy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Vy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pa.__wrap(r[0])}decompress(){const t=i.compressedfheuint224_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ti.__wrap(t[0])}serialize(){const t=i.compressedfheuint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint224_deserialize(e,r);if(s[2])throw o(s[1]);return Pa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Pa.__wrap(_[0])}}const Yy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint232_free(n>>>0,1));class za{static __wrap(t){t=t>>>0;const e=Object.create(za.prototype);return e.__wbg_ptr=t,Yy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Yy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return za.__wrap(r[0])}decompress(){const t=i.compressedfheuint232_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ei.__wrap(t[0])}serialize(){const t=i.compressedfheuint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint232_deserialize(e,r);if(s[2])throw o(s[1]);return za.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return za.__wrap(_[0])}}const Hy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint24_free(n>>>0,1));class va{static __wrap(t){t=t>>>0;const e=Object.create(va.prototype);return e.__wbg_ptr=t,Hy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Hy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return va.__wrap(r[0])}decompress(){const t=i.compressedfheuint24_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ri.__wrap(t[0])}serialize(){const t=i.compressedfheuint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint24_deserialize(e,r);if(s[2])throw o(s[1]);return va.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return va.__wrap(_[0])}}const qy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint240_free(n>>>0,1));class Ma{static __wrap(t){t=t>>>0;const e=Object.create(Ma.prototype);return e.__wbg_ptr=t,qy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ma.__wrap(r[0])}decompress(){const t=i.compressedfheuint240_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ni.__wrap(t[0])}serialize(){const t=i.compressedfheuint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint240_deserialize(e,r);if(s[2])throw o(s[1]);return Ma.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ma.__wrap(_[0])}}const Qy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint248_free(n>>>0,1));class Ba{static __wrap(t){t=t>>>0;const e=Object.create(Ba.prototype);return e.__wbg_ptr=t,Qy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Qy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ba.__wrap(r[0])}decompress(){const t=i.compressedfheuint248_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ii.__wrap(t[0])}serialize(){const t=i.compressedfheuint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint248_deserialize(e,r);if(s[2])throw o(s[1]);return Ba.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ba.__wrap(_[0])}}const Wy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint256_free(n>>>0,1));class xa{static __wrap(t){t=t>>>0;const e=Object.create(xa.prototype);return e.__wbg_ptr=t,Wy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Wy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xa.__wrap(r[0])}decompress(){const t=i.compressedfheuint256_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return si.__wrap(t[0])}serialize(){const t=i.compressedfheuint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint256_deserialize(e,r);if(s[2])throw o(s[1]);return xa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return xa.__wrap(_[0])}}const Jy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint32_free(n>>>0,1));class Ca{static __wrap(t){t=t>>>0;const e=Object.create(Ca.prototype);return e.__wbg_ptr=t,Jy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Jy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ca.__wrap(r[0])}decompress(){const t=i.compressedfheuint32_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return _i.__wrap(t[0])}serialize(){const t=i.compressedfheuint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint32_deserialize(e,r);if(s[2])throw o(s[1]);return Ca.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ca.__wrap(_[0])}}const $y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint4_free(n>>>0,1));class Ia{static __wrap(t){t=t>>>0;const e=Object.create(Ia.prototype);return e.__wbg_ptr=t,$y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$y.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ia.__wrap(r[0])}decompress(){const t=i.compressedfheuint4_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return oi.__wrap(t[0])}serialize(){const t=i.compressedfheuint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint4_deserialize(e,r);if(s[2])throw o(s[1]);return Ia.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ia.__wrap(_[0])}}const Zy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint40_free(n>>>0,1));class Na{static __wrap(t){t=t>>>0;const e=Object.create(Na.prototype);return e.__wbg_ptr=t,Zy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Zy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Na.__wrap(r[0])}decompress(){const t=i.compressedfheuint40_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ai.__wrap(t[0])}serialize(){const t=i.compressedfheuint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint40_deserialize(e,r);if(s[2])throw o(s[1]);return Na.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Na.__wrap(_[0])}}const Xy=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint48_free(n>>>0,1));class Oa{static __wrap(t){t=t>>>0;const e=Object.create(Oa.prototype);return e.__wbg_ptr=t,Xy.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Xy.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Oa.__wrap(r[0])}decompress(){const t=i.compressedfheuint48_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ci.__wrap(t[0])}serialize(){const t=i.compressedfheuint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint48_deserialize(e,r);if(s[2])throw o(s[1]);return Oa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Oa.__wrap(_[0])}}const tA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint512_free(n>>>0,1));class ka{static __wrap(t){t=t>>>0;const e=Object.create(ka.prototype);return e.__wbg_ptr=t,tA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,tA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ka.__wrap(r[0])}decompress(){const t=i.compressedfheuint512_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ui.__wrap(t[0])}serialize(){const t=i.compressedfheuint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint512_deserialize(e,r);if(s[2])throw o(s[1]);return ka.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ka.__wrap(_[0])}}const eA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint56_free(n>>>0,1));class Ta{static __wrap(t){t=t>>>0;const e=Object.create(Ta.prototype);return e.__wbg_ptr=t,eA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,eA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ta.__wrap(r[0])}decompress(){const t=i.compressedfheuint56_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return fi.__wrap(t[0])}serialize(){const t=i.compressedfheuint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint56_deserialize(e,r);if(s[2])throw o(s[1]);return Ta.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ta.__wrap(_[0])}}const rA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint6_free(n>>>0,1));class Ga{static __wrap(t){t=t>>>0;const e=Object.create(Ga.prototype);return e.__wbg_ptr=t,rA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,rA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ga.__wrap(r[0])}decompress(){const t=i.compressedfheuint6_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return li.__wrap(t[0])}serialize(){const t=i.compressedfheuint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint6_deserialize(e,r);if(s[2])throw o(s[1]);return Ga.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ga.__wrap(_[0])}}const nA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint64_free(n>>>0,1));class Fa{static __wrap(t){t=t>>>0;const e=Object.create(Fa.prototype);return e.__wbg_ptr=t,nA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,nA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fa.__wrap(r[0])}decompress(){const t=i.compressedfheuint64_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return pi.__wrap(t[0])}serialize(){const t=i.compressedfheuint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint64_deserialize(e,r);if(s[2])throw o(s[1]);return Fa.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Fa.__wrap(_[0])}}const iA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint72_free(n>>>0,1));class Ua{static __wrap(t){t=t>>>0;const e=Object.create(Ua.prototype);return e.__wbg_ptr=t,iA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,iA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ua.__wrap(r[0])}decompress(){const t=i.compressedfheuint72_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return hi.__wrap(t[0])}serialize(){const t=i.compressedfheuint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint72_deserialize(e,r);if(s[2])throw o(s[1]);return Ua.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ua.__wrap(_[0])}}const sA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint8_free(n>>>0,1));class Ka{static __wrap(t){t=t>>>0;const e=Object.create(Ka.prototype);return e.__wbg_ptr=t,sA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,sA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ka.__wrap(r[0])}decompress(){const t=i.compressedfheuint8_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return wi.__wrap(t[0])}serialize(){const t=i.compressedfheuint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint8_deserialize(e,r);if(s[2])throw o(s[1]);return Ka.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ka.__wrap(_[0])}}const _A=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint80_free(n>>>0,1));class Da{static __wrap(t){t=t>>>0;const e=Object.create(Da.prototype);return e.__wbg_ptr=t,_A.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,_A.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Da.__wrap(r[0])}decompress(){const t=i.compressedfheuint80_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return di.__wrap(t[0])}serialize(){const t=i.compressedfheuint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint80_deserialize(e,r);if(s[2])throw o(s[1]);return Da.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Da.__wrap(_[0])}}const oA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint88_free(n>>>0,1));class La{static __wrap(t){t=t>>>0;const e=Object.create(La.prototype);return e.__wbg_ptr=t,oA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,oA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return La.__wrap(r[0])}decompress(){const t=i.compressedfheuint88_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return gi.__wrap(t[0])}serialize(){const t=i.compressedfheuint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint88_deserialize(e,r);if(s[2])throw o(s[1]);return La.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return La.__wrap(_[0])}}const aA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_compressedfheuint96_free(n>>>0,1));class ja{static __wrap(t){t=t>>>0;const e=Object.create(ja.prototype);return e.__wbg_ptr=t,aA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,aA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_compressedfheuint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.compressedfheuint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ja.__wrap(r[0])}decompress(){const t=i.compressedfheuint96_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return bi.__wrap(t[0])}serialize(){const t=i.compressedfheuint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.compressedfheuint96_deserialize(e,r);if(s[2])throw o(s[1]);return ja.__wrap(s[0])}safe_serialize(t){const e=i.compressedfheuint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.compressedfheuint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ja.__wrap(_[0])}}const cA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fhebool_free(n>>>0,1));class jr{static __wrap(t){t=t>>>0;const e=Object.create(jr.prototype);return e.__wbg_ptr=t,cA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,cA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fhebool_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fhebool_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fhebool_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fhebool_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fhebool_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]!==0}serialize(){const t=i.fhebool_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fhebool_deserialize(e,r);if(s[2])throw o(s[1]);return jr.__wrap(s[0])}safe_serialize(t){const e=i.fhebool_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fhebool_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return jr.__wrap(_[0])}}const uA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint10_free(n>>>0,1));class Vr{static __wrap(t){t=t>>>0;const e=Object.create(Vr.prototype);return e.__wbg_ptr=t,uA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,uA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint10_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint10_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint10_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint10_deserialize(e,r);if(s[2])throw o(s[1]);return Vr.__wrap(s[0])}safe_serialize(t){const e=i.fheint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Vr.__wrap(_[0])}}const fA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint1024_free(n>>>0,1));class Yr{static __wrap(t){t=t>>>0;const e=Object.create(Yr.prototype);return e.__wbg_ptr=t,fA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,fA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint1024_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint1024_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint1024_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint1024_deserialize(e,r);if(s[2])throw o(s[1]);return Yr.__wrap(s[0])}safe_serialize(t){const e=i.fheint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Yr.__wrap(_[0])}}const lA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint104_free(n>>>0,1));class Hr{static __wrap(t){t=t>>>0;const e=Object.create(Hr.prototype);return e.__wbg_ptr=t,lA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint104_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint104_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint104_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint104_deserialize(e,r);if(s[2])throw o(s[1]);return Hr.__wrap(s[0])}safe_serialize(t){const e=i.fheint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Hr.__wrap(_[0])}}const pA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint112_free(n>>>0,1));class qr{static __wrap(t){t=t>>>0;const e=Object.create(qr.prototype);return e.__wbg_ptr=t,pA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint112_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint112_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint112_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint112_deserialize(e,r);if(s[2])throw o(s[1]);return qr.__wrap(s[0])}safe_serialize(t){const e=i.fheint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return qr.__wrap(_[0])}}const hA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint12_free(n>>>0,1));class Qr{static __wrap(t){t=t>>>0;const e=Object.create(Qr.prototype);return e.__wbg_ptr=t,hA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,hA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint12_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint12_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint12_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint12_deserialize(e,r);if(s[2])throw o(s[1]);return Qr.__wrap(s[0])}safe_serialize(t){const e=i.fheint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Qr.__wrap(_[0])}}const wA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint120_free(n>>>0,1));class Wr{static __wrap(t){t=t>>>0;const e=Object.create(Wr.prototype);return e.__wbg_ptr=t,wA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint120_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint120_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint120_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint120_deserialize(e,r);if(s[2])throw o(s[1]);return Wr.__wrap(s[0])}safe_serialize(t){const e=i.fheint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Wr.__wrap(_[0])}}const dA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint128_free(n>>>0,1));class Jr{static __wrap(t){t=t>>>0;const e=Object.create(Jr.prototype);return e.__wbg_ptr=t,dA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,dA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint128_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint128_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint128_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint128_deserialize(e,r);if(s[2])throw o(s[1]);return Jr.__wrap(s[0])}safe_serialize(t){const e=i.fheint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Jr.__wrap(_[0])}}const gA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint136_free(n>>>0,1));class $r{static __wrap(t){t=t>>>0;const e=Object.create($r.prototype);return e.__wbg_ptr=t,gA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,gA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $r.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint136_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $r.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint136_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $r.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint136_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint136_deserialize(e,r);if(s[2])throw o(s[1]);return $r.__wrap(s[0])}safe_serialize(t){const e=i.fheint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return $r.__wrap(_[0])}}const bA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint14_free(n>>>0,1));class Zr{static __wrap(t){t=t>>>0;const e=Object.create(Zr.prototype);return e.__wbg_ptr=t,bA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,bA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint14_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint14_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint14_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint14_deserialize(e,r);if(s[2])throw o(s[1]);return Zr.__wrap(s[0])}safe_serialize(t){const e=i.fheint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Zr.__wrap(_[0])}}const yA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint144_free(n>>>0,1));class Xr{static __wrap(t){t=t>>>0;const e=Object.create(Xr.prototype);return e.__wbg_ptr=t,yA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,yA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xr.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint144_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xr.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint144_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xr.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint144_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint144_deserialize(e,r);if(s[2])throw o(s[1]);return Xr.__wrap(s[0])}safe_serialize(t){const e=i.fheint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Xr.__wrap(_[0])}}const AA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint152_free(n>>>0,1));class tn{static __wrap(t){t=t>>>0;const e=Object.create(tn.prototype);return e.__wbg_ptr=t,AA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,AA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return tn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint152_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return tn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint152_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return tn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint152_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint152_deserialize(e,r);if(s[2])throw o(s[1]);return tn.__wrap(s[0])}safe_serialize(t){const e=i.fheint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return tn.__wrap(_[0])}}const mA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint16_free(n>>>0,1));class en{static __wrap(t){t=t>>>0;const e=Object.create(en.prototype);return e.__wbg_ptr=t,mA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,mA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return en.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint16_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return en.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint16_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return en.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint16_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint16_deserialize(e,r);if(s[2])throw o(s[1]);return en.__wrap(s[0])}safe_serialize(t){const e=i.fheint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return en.__wrap(_[0])}}const SA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint160_free(n>>>0,1));class rn{static __wrap(t){t=t>>>0;const e=Object.create(rn.prototype);return e.__wbg_ptr=t,SA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,SA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return rn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint160_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return rn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint160_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return rn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint160_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint160_deserialize(e,r);if(s[2])throw o(s[1]);return rn.__wrap(s[0])}safe_serialize(t){const e=i.fheint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return rn.__wrap(_[0])}}const RA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint168_free(n>>>0,1));class nn{static __wrap(t){t=t>>>0;const e=Object.create(nn.prototype);return e.__wbg_ptr=t,RA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,RA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return nn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint168_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return nn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint168_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return nn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint168_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint168_deserialize(e,r);if(s[2])throw o(s[1]);return nn.__wrap(s[0])}safe_serialize(t){const e=i.fheint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return nn.__wrap(_[0])}}const EA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint176_free(n>>>0,1));class sn{static __wrap(t){t=t>>>0;const e=Object.create(sn.prototype);return e.__wbg_ptr=t,EA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,EA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint176_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint176_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return sn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint176_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint176_deserialize(e,r);if(s[2])throw o(s[1]);return sn.__wrap(s[0])}safe_serialize(t){const e=i.fheint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return sn.__wrap(_[0])}}const PA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint184_free(n>>>0,1));class _n{static __wrap(t){t=t>>>0;const e=Object.create(_n.prototype);return e.__wbg_ptr=t,PA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,PA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _n.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint184_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _n.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint184_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _n.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint184_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint184_deserialize(e,r);if(s[2])throw o(s[1]);return _n.__wrap(s[0])}safe_serialize(t){const e=i.fheint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return _n.__wrap(_[0])}}const zA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint192_free(n>>>0,1));class on{static __wrap(t){t=t>>>0;const e=Object.create(on.prototype);return e.__wbg_ptr=t,zA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return on.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint192_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return on.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint192_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return on.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint192_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint192_deserialize(e,r);if(s[2])throw o(s[1]);return on.__wrap(s[0])}safe_serialize(t){const e=i.fheint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return on.__wrap(_[0])}}const vA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint2_free(n>>>0,1));class an{static __wrap(t){t=t>>>0;const e=Object.create(an.prototype);return e.__wbg_ptr=t,vA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,vA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return an.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint2_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return an.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint2_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return an.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint2_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint2_deserialize(e,r);if(s[2])throw o(s[1]);return an.__wrap(s[0])}safe_serialize(t){const e=i.fheint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return an.__wrap(_[0])}}const MA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint200_free(n>>>0,1));class cn{static __wrap(t){t=t>>>0;const e=Object.create(cn.prototype);return e.__wbg_ptr=t,MA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,MA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return cn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint200_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return cn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint200_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return cn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint200_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint200_deserialize(e,r);if(s[2])throw o(s[1]);return cn.__wrap(s[0])}safe_serialize(t){const e=i.fheint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return cn.__wrap(_[0])}}const BA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint2048_free(n>>>0,1));class un{static __wrap(t){t=t>>>0;const e=Object.create(un.prototype);return e.__wbg_ptr=t,BA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,BA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return un.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint2048_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return un.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint2048_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return un.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint2048_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint2048_deserialize(e,r);if(s[2])throw o(s[1]);return un.__wrap(s[0])}safe_serialize(t){const e=i.fheint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return un.__wrap(_[0])}}const xA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint208_free(n>>>0,1));class fn{static __wrap(t){t=t>>>0;const e=Object.create(fn.prototype);return e.__wbg_ptr=t,xA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,xA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint208_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint208_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint208_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint208_deserialize(e,r);if(s[2])throw o(s[1]);return fn.__wrap(s[0])}safe_serialize(t){const e=i.fheint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fn.__wrap(_[0])}}const CA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint216_free(n>>>0,1));class ln{static __wrap(t){t=t>>>0;const e=Object.create(ln.prototype);return e.__wbg_ptr=t,CA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,CA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ln.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint216_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ln.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint216_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ln.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint216_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint216_deserialize(e,r);if(s[2])throw o(s[1]);return ln.__wrap(s[0])}safe_serialize(t){const e=i.fheint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ln.__wrap(_[0])}}const IA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint224_free(n>>>0,1));class pn{static __wrap(t){t=t>>>0;const e=Object.create(pn.prototype);return e.__wbg_ptr=t,IA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,IA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint224_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint224_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint224_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint224_deserialize(e,r);if(s[2])throw o(s[1]);return pn.__wrap(s[0])}safe_serialize(t){const e=i.fheint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return pn.__wrap(_[0])}}const NA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint232_free(n>>>0,1));class hn{static __wrap(t){t=t>>>0;const e=Object.create(hn.prototype);return e.__wbg_ptr=t,NA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,NA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint232_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint232_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint232_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint232_deserialize(e,r);if(s[2])throw o(s[1]);return hn.__wrap(s[0])}safe_serialize(t){const e=i.fheint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return hn.__wrap(_[0])}}const OA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint24_free(n>>>0,1));class wn{static __wrap(t){t=t>>>0;const e=Object.create(wn.prototype);return e.__wbg_ptr=t,OA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,OA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint24_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint24_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint24_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint24_deserialize(e,r);if(s[2])throw o(s[1]);return wn.__wrap(s[0])}safe_serialize(t){const e=i.fheint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wn.__wrap(_[0])}}const kA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint240_free(n>>>0,1));class dn{static __wrap(t){t=t>>>0;const e=Object.create(dn.prototype);return e.__wbg_ptr=t,kA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,kA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return dn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint240_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return dn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint240_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return dn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint240_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint240_deserialize(e,r);if(s[2])throw o(s[1]);return dn.__wrap(s[0])}safe_serialize(t){const e=i.fheint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return dn.__wrap(_[0])}}const TA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint248_free(n>>>0,1));class gn{static __wrap(t){t=t>>>0;const e=Object.create(gn.prototype);return e.__wbg_ptr=t,TA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,TA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint248_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint248_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint248_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint248_deserialize(e,r);if(s[2])throw o(s[1]);return gn.__wrap(s[0])}safe_serialize(t){const e=i.fheint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return gn.__wrap(_[0])}}const GA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint256_free(n>>>0,1));class bn{static __wrap(t){t=t>>>0;const e=Object.create(bn.prototype);return e.__wbg_ptr=t,GA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,GA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint256_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint256_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint256_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint256_deserialize(e,r);if(s[2])throw o(s[1]);return bn.__wrap(s[0])}safe_serialize(t){const e=i.fheint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return bn.__wrap(_[0])}}const FA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint32_free(n>>>0,1));class yn{static __wrap(t){t=t>>>0;const e=Object.create(yn.prototype);return e.__wbg_ptr=t,FA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,FA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint32_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint32_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return yn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint32_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint32_deserialize(e,r);if(s[2])throw o(s[1]);return yn.__wrap(s[0])}safe_serialize(t){const e=i.fheint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return yn.__wrap(_[0])}}const UA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint4_free(n>>>0,1));class An{static __wrap(t){t=t>>>0;const e=Object.create(An.prototype);return e.__wbg_ptr=t,UA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,UA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return An.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint4_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return An.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint4_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return An.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint4_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint4_deserialize(e,r);if(s[2])throw o(s[1]);return An.__wrap(s[0])}safe_serialize(t){const e=i.fheint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return An.__wrap(_[0])}}const KA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint40_free(n>>>0,1));class mn{static __wrap(t){t=t>>>0;const e=Object.create(mn.prototype);return e.__wbg_ptr=t,KA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,KA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint40_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint40_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return mn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint40_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint40_deserialize(e,r);if(s[2])throw o(s[1]);return mn.__wrap(s[0])}safe_serialize(t){const e=i.fheint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return mn.__wrap(_[0])}}const DA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint48_free(n>>>0,1));class Sn{static __wrap(t){t=t>>>0;const e=Object.create(Sn.prototype);return e.__wbg_ptr=t,DA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,DA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint48_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint48_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Sn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint48_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint48_deserialize(e,r);if(s[2])throw o(s[1]);return Sn.__wrap(s[0])}safe_serialize(t){const e=i.fheint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Sn.__wrap(_[0])}}const LA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint512_free(n>>>0,1));class Rn{static __wrap(t){t=t>>>0;const e=Object.create(Rn.prototype);return e.__wbg_ptr=t,LA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,LA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Rn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint512_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Rn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint512_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Rn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint512_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint512_deserialize(e,r);if(s[2])throw o(s[1]);return Rn.__wrap(s[0])}safe_serialize(t){const e=i.fheint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Rn.__wrap(_[0])}}const jA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint56_free(n>>>0,1));class En{static __wrap(t){t=t>>>0;const e=Object.create(En.prototype);return e.__wbg_ptr=t,jA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return En.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint56_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return En.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint56_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return En.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint56_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint56_deserialize(e,r);if(s[2])throw o(s[1]);return En.__wrap(s[0])}safe_serialize(t){const e=i.fheint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return En.__wrap(_[0])}}const VA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint6_free(n>>>0,1));class Pn{static __wrap(t){t=t>>>0;const e=Object.create(Pn.prototype);return e.__wbg_ptr=t,VA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,VA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint6_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint6_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Pn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint6_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint6_deserialize(e,r);if(s[2])throw o(s[1]);return Pn.__wrap(s[0])}safe_serialize(t){const e=i.fheint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Pn.__wrap(_[0])}}const YA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint64_free(n>>>0,1));class zn{static __wrap(t){t=t>>>0;const e=Object.create(zn.prototype);return e.__wbg_ptr=t,YA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,YA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint64_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint64_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return zn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint64_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint64_deserialize(e,r);if(s[2])throw o(s[1]);return zn.__wrap(s[0])}safe_serialize(t){const e=i.fheint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return zn.__wrap(_[0])}}const HA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint72_free(n>>>0,1));class vn{static __wrap(t){t=t>>>0;const e=Object.create(vn.prototype);return e.__wbg_ptr=t,HA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,HA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint72_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint72_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return vn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint72_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint72_deserialize(e,r);if(s[2])throw o(s[1]);return vn.__wrap(s[0])}safe_serialize(t){const e=i.fheint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return vn.__wrap(_[0])}}const qA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint8_free(n>>>0,1));class Mn{static __wrap(t){t=t>>>0;const e=Object.create(Mn.prototype);return e.__wbg_ptr=t,qA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,qA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint8_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint8_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Mn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint8_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint8_deserialize(e,r);if(s[2])throw o(s[1]);return Mn.__wrap(s[0])}safe_serialize(t){const e=i.fheint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Mn.__wrap(_[0])}}const QA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint80_free(n>>>0,1));class Bn{static __wrap(t){t=t>>>0;const e=Object.create(Bn.prototype);return e.__wbg_ptr=t,QA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,QA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint80_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint80_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Bn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint80_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint80_deserialize(e,r);if(s[2])throw o(s[1]);return Bn.__wrap(s[0])}safe_serialize(t){const e=i.fheint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Bn.__wrap(_[0])}}const WA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint88_free(n>>>0,1));class xn{static __wrap(t){t=t>>>0;const e=Object.create(xn.prototype);return e.__wbg_ptr=t,WA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,WA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint88_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint88_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return xn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint88_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint88_deserialize(e,r);if(s[2])throw o(s[1]);return xn.__wrap(s[0])}safe_serialize(t){const e=i.fheint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return xn.__wrap(_[0])}}const JA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheint96_free(n>>>0,1));class Cn{static __wrap(t){t=t>>>0;const e=Object.create(Cn.prototype);return e.__wbg_ptr=t,JA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,JA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Cn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheint96_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Cn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheint96_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Cn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheint96_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheint96_deserialize(e,r);if(s[2])throw o(s[1]);return Cn.__wrap(s[0])}safe_serialize(t){const e=i.fheint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Cn.__wrap(_[0])}}const $A=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint10_free(n>>>0,1));class In{static __wrap(t){t=t>>>0;const e=Object.create(In.prototype);return e.__wbg_ptr=t,$A.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$A.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint10_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint10_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return In.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint10_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return In.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint10_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return In.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint10_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint10_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint10_deserialize(e,r);if(s[2])throw o(s[1]);return In.__wrap(s[0])}safe_serialize(t){const e=i.fheuint10_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint10_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return In.__wrap(_[0])}}const ZA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint1024_free(n>>>0,1));class Nn{static __wrap(t){t=t>>>0;const e=Object.create(Nn.prototype);return e.__wbg_ptr=t,ZA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,ZA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint1024_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint1024_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Nn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint1024_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Nn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint1024_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Nn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint1024_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint1024_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint1024_deserialize(e,r);if(s[2])throw o(s[1]);return Nn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint1024_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint1024_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Nn.__wrap(_[0])}}const XA=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint104_free(n>>>0,1));class On{static __wrap(t){t=t>>>0;const e=Object.create(On.prototype);return e.__wbg_ptr=t,XA.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,XA.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint104_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint104_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return On.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint104_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return On.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint104_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return On.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint104_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint104_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint104_deserialize(e,r);if(s[2])throw o(s[1]);return On.__wrap(s[0])}safe_serialize(t){const e=i.fheuint104_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint104_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return On.__wrap(_[0])}}const t2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint112_free(n>>>0,1));class kn{static __wrap(t){t=t>>>0;const e=Object.create(kn.prototype);return e.__wbg_ptr=t,t2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,t2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint112_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint112_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return kn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint112_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return kn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint112_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return kn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint112_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint112_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint112_deserialize(e,r);if(s[2])throw o(s[1]);return kn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint112_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint112_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return kn.__wrap(_[0])}}const e2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint12_free(n>>>0,1));class Tn{static __wrap(t){t=t>>>0;const e=Object.create(Tn.prototype);return e.__wbg_ptr=t,e2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,e2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint12_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint12_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Tn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint12_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Tn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint12_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Tn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint12_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint12_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint12_deserialize(e,r);if(s[2])throw o(s[1]);return Tn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint12_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint12_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Tn.__wrap(_[0])}}const r2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint120_free(n>>>0,1));class Gn{static __wrap(t){t=t>>>0;const e=Object.create(Gn.prototype);return e.__wbg_ptr=t,r2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,r2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint120_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint120_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Gn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint120_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Gn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint120_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Gn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint120_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint120_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint120_deserialize(e,r);if(s[2])throw o(s[1]);return Gn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint120_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint120_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Gn.__wrap(_[0])}}const n2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint128_free(n>>>0,1));class Fn{static __wrap(t){t=t>>>0;const e=Object.create(Fn.prototype);return e.__wbg_ptr=t,n2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,n2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint128_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint128_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint128_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint128_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Fn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint128_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint128_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint128_deserialize(e,r);if(s[2])throw o(s[1]);return Fn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint128_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint128_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Fn.__wrap(_[0])}}const i2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint136_free(n>>>0,1));class Un{static __wrap(t){t=t>>>0;const e=Object.create(Un.prototype);return e.__wbg_ptr=t,i2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,i2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint136_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint136_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Un.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint136_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Un.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint136_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Un.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint136_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint136_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint136_deserialize(e,r);if(s[2])throw o(s[1]);return Un.__wrap(s[0])}safe_serialize(t){const e=i.fheuint136_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint136_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Un.__wrap(_[0])}}const s2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint14_free(n>>>0,1));class Kn{static __wrap(t){t=t>>>0;const e=Object.create(Kn.prototype);return e.__wbg_ptr=t,s2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,s2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint14_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint14_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Kn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint14_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Kn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint14_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Kn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint14_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint14_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint14_deserialize(e,r);if(s[2])throw o(s[1]);return Kn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint14_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint14_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Kn.__wrap(_[0])}}const _2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint144_free(n>>>0,1));class Dn{static __wrap(t){t=t>>>0;const e=Object.create(Dn.prototype);return e.__wbg_ptr=t,_2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,_2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint144_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint144_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Dn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint144_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Dn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint144_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Dn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint144_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint144_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint144_deserialize(e,r);if(s[2])throw o(s[1]);return Dn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint144_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint144_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Dn.__wrap(_[0])}}const o2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint152_free(n>>>0,1));class Ln{static __wrap(t){t=t>>>0;const e=Object.create(Ln.prototype);return e.__wbg_ptr=t,o2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,o2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint152_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint152_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ln.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint152_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ln.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint152_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Ln.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint152_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint152_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint152_deserialize(e,r);if(s[2])throw o(s[1]);return Ln.__wrap(s[0])}safe_serialize(t){const e=i.fheuint152_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint152_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ln.__wrap(_[0])}}const a2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint16_free(n>>>0,1));class jn{static __wrap(t){t=t>>>0;const e=Object.create(jn.prototype);return e.__wbg_ptr=t,a2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,a2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint16_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint16_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint16_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint16_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return jn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint16_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint16_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint16_deserialize(e,r);if(s[2])throw o(s[1]);return jn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint16_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint16_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return jn.__wrap(_[0])}}const c2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint160_free(n>>>0,1));class Vn{static __wrap(t){t=t>>>0;const e=Object.create(Vn.prototype);return e.__wbg_ptr=t,c2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,c2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint160_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint160_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint160_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint160_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Vn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint160_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint160_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint160_deserialize(e,r);if(s[2])throw o(s[1]);return Vn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint160_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint160_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Vn.__wrap(_[0])}}const u2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint168_free(n>>>0,1));class Yn{static __wrap(t){t=t>>>0;const e=Object.create(Yn.prototype);return e.__wbg_ptr=t,u2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,u2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint168_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint168_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint168_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint168_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Yn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint168_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint168_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint168_deserialize(e,r);if(s[2])throw o(s[1]);return Yn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint168_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint168_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Yn.__wrap(_[0])}}const f2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint176_free(n>>>0,1));class Hn{static __wrap(t){t=t>>>0;const e=Object.create(Hn.prototype);return e.__wbg_ptr=t,f2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,f2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint176_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint176_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint176_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint176_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Hn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint176_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint176_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint176_deserialize(e,r);if(s[2])throw o(s[1]);return Hn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint176_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint176_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Hn.__wrap(_[0])}}const l2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint184_free(n>>>0,1));class qn{static __wrap(t){t=t>>>0;const e=Object.create(qn.prototype);return e.__wbg_ptr=t,l2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,l2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint184_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint184_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint184_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint184_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return qn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint184_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint184_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint184_deserialize(e,r);if(s[2])throw o(s[1]);return qn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint184_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint184_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return qn.__wrap(_[0])}}const p2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint192_free(n>>>0,1));class Qn{static __wrap(t){t=t>>>0;const e=Object.create(Qn.prototype);return e.__wbg_ptr=t,p2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,p2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint192_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint192_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint192_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint192_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Qn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint192_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint192_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint192_deserialize(e,r);if(s[2])throw o(s[1]);return Qn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint192_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint192_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Qn.__wrap(_[0])}}const h2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint2_free(n>>>0,1));class Wn{static __wrap(t){t=t>>>0;const e=Object.create(Wn.prototype);return e.__wbg_ptr=t,h2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,h2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint2_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint2_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint2_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint2_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Wn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint2_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint2_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint2_deserialize(e,r);if(s[2])throw o(s[1]);return Wn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint2_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint2_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Wn.__wrap(_[0])}}const w2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint200_free(n>>>0,1));class Jn{static __wrap(t){t=t>>>0;const e=Object.create(Jn.prototype);return e.__wbg_ptr=t,w2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,w2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint200_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint200_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint200_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint200_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Jn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint200_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint200_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint200_deserialize(e,r);if(s[2])throw o(s[1]);return Jn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint200_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint200_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Jn.__wrap(_[0])}}const d2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint2048_free(n>>>0,1));class $n{static __wrap(t){t=t>>>0;const e=Object.create($n.prototype);return e.__wbg_ptr=t,d2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,d2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint2048_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint2048_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $n.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint2048_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $n.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint2048_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return $n.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint2048_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint2048_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint2048_deserialize(e,r);if(s[2])throw o(s[1]);return $n.__wrap(s[0])}safe_serialize(t){const e=i.fheuint2048_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint2048_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return $n.__wrap(_[0])}}const g2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint208_free(n>>>0,1));class Zn{static __wrap(t){t=t>>>0;const e=Object.create(Zn.prototype);return e.__wbg_ptr=t,g2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,g2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint208_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint208_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint208_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint208_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Zn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint208_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint208_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint208_deserialize(e,r);if(s[2])throw o(s[1]);return Zn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint208_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint208_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Zn.__wrap(_[0])}}const b2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint216_free(n>>>0,1));class Xn{static __wrap(t){t=t>>>0;const e=Object.create(Xn.prototype);return e.__wbg_ptr=t,b2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,b2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint216_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint216_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xn.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint216_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xn.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint216_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return Xn.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint216_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint216_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint216_deserialize(e,r);if(s[2])throw o(s[1]);return Xn.__wrap(s[0])}safe_serialize(t){const e=i.fheuint216_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint216_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Xn.__wrap(_[0])}}const y2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint224_free(n>>>0,1));class ti{static __wrap(t){t=t>>>0;const e=Object.create(ti.prototype);return e.__wbg_ptr=t,y2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,y2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint224_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint224_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ti.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint224_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ti.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint224_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ti.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint224_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint224_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint224_deserialize(e,r);if(s[2])throw o(s[1]);return ti.__wrap(s[0])}safe_serialize(t){const e=i.fheuint224_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint224_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ti.__wrap(_[0])}}const A2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint232_free(n>>>0,1));class ei{static __wrap(t){t=t>>>0;const e=Object.create(ei.prototype);return e.__wbg_ptr=t,A2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,A2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint232_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint232_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ei.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint232_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ei.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint232_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ei.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint232_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint232_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint232_deserialize(e,r);if(s[2])throw o(s[1]);return ei.__wrap(s[0])}safe_serialize(t){const e=i.fheuint232_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint232_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ei.__wrap(_[0])}}const m2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint24_free(n>>>0,1));class ri{static __wrap(t){t=t>>>0;const e=Object.create(ri.prototype);return e.__wbg_ptr=t,m2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,m2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint24_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint24_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ri.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint24_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ri.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint24_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ri.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint24_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]>>>0}serialize(){const t=i.fheuint24_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint24_deserialize(e,r);if(s[2])throw o(s[1]);return ri.__wrap(s[0])}safe_serialize(t){const e=i.fheuint24_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint24_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ri.__wrap(_[0])}}const S2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint240_free(n>>>0,1));class ni{static __wrap(t){t=t>>>0;const e=Object.create(ni.prototype);return e.__wbg_ptr=t,S2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,S2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint240_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint240_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ni.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint240_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ni.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint240_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ni.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint240_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint240_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint240_deserialize(e,r);if(s[2])throw o(s[1]);return ni.__wrap(s[0])}safe_serialize(t){const e=i.fheuint240_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint240_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ni.__wrap(_[0])}}const R2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint248_free(n>>>0,1));class ii{static __wrap(t){t=t>>>0;const e=Object.create(ii.prototype);return e.__wbg_ptr=t,R2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,R2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint248_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint248_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ii.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint248_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ii.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint248_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ii.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint248_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint248_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint248_deserialize(e,r);if(s[2])throw o(s[1]);return ii.__wrap(s[0])}safe_serialize(t){const e=i.fheuint248_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint248_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ii.__wrap(_[0])}}const E2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint256_free(n>>>0,1));class si{static __wrap(t){t=t>>>0;const e=Object.create(si.prototype);return e.__wbg_ptr=t,E2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint256_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint256_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return si.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint256_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return si.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint256_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return si.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint256_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint256_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint256_deserialize(e,r);if(s[2])throw o(s[1]);return si.__wrap(s[0])}safe_serialize(t){const e=i.fheuint256_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint256_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return si.__wrap(_[0])}}const P2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint32_free(n>>>0,1));class _i{static __wrap(t){t=t>>>0;const e=Object.create(_i.prototype);return e.__wbg_ptr=t,P2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,P2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint32_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint32_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _i.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint32_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _i.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint32_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return _i.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint32_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]>>>0}serialize(){const t=i.fheuint32_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint32_deserialize(e,r);if(s[2])throw o(s[1]);return _i.__wrap(s[0])}safe_serialize(t){const e=i.fheuint32_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint32_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return _i.__wrap(_[0])}}const z2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint4_free(n>>>0,1));class oi{static __wrap(t){t=t>>>0;const e=Object.create(oi.prototype);return e.__wbg_ptr=t,z2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,z2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint4_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint4_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint4_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint4_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return oi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint4_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint4_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint4_deserialize(e,r);if(s[2])throw o(s[1]);return oi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint4_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint4_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return oi.__wrap(_[0])}}const v2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint40_free(n>>>0,1));class ai{static __wrap(t){t=t>>>0;const e=Object.create(ai.prototype);return e.__wbg_ptr=t,v2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,v2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint40_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint40_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ai.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint40_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ai.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint40_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ai.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint40_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint40_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint40_deserialize(e,r);if(s[2])throw o(s[1]);return ai.__wrap(s[0])}safe_serialize(t){const e=i.fheuint40_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint40_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ai.__wrap(_[0])}}const M2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint48_free(n>>>0,1));class ci{static __wrap(t){t=t>>>0;const e=Object.create(ci.prototype);return e.__wbg_ptr=t,M2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,M2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint48_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint48_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ci.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint48_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ci.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint48_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ci.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint48_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint48_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint48_deserialize(e,r);if(s[2])throw o(s[1]);return ci.__wrap(s[0])}safe_serialize(t){const e=i.fheuint48_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint48_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ci.__wrap(_[0])}}const B2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint512_free(n>>>0,1));class ui{static __wrap(t){t=t>>>0;const e=Object.create(ui.prototype);return e.__wbg_ptr=t,B2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,B2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint512_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint512_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ui.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint512_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ui.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint512_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return ui.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint512_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint512_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint512_deserialize(e,r);if(s[2])throw o(s[1]);return ui.__wrap(s[0])}safe_serialize(t){const e=i.fheuint512_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint512_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ui.__wrap(_[0])}}const x2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint56_free(n>>>0,1));class fi{static __wrap(t){t=t>>>0;const e=Object.create(fi.prototype);return e.__wbg_ptr=t,x2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,x2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint56_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint56_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint56_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint56_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return fi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint56_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint56_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint56_deserialize(e,r);if(s[2])throw o(s[1]);return fi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint56_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint56_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return fi.__wrap(_[0])}}const C2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint6_free(n>>>0,1));class li{static __wrap(t){t=t>>>0;const e=Object.create(li.prototype);return e.__wbg_ptr=t,C2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,C2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint6_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint6_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return li.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint6_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return li.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint6_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return li.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint6_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint6_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint6_deserialize(e,r);if(s[2])throw o(s[1]);return li.__wrap(s[0])}safe_serialize(t){const e=i.fheuint6_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint6_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return li.__wrap(_[0])}}const I2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint64_free(n>>>0,1));class pi{static __wrap(t){t=t>>>0;const e=Object.create(pi.prototype);return e.__wbg_ptr=t,I2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,I2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint64_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint64_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint64_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint64_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return pi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint64_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return BigInt.asUintN(64,e[0])}serialize(){const t=i.fheuint64_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint64_deserialize(e,r);if(s[2])throw o(s[1]);return pi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint64_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint64_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return pi.__wrap(_[0])}}const N2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint72_free(n>>>0,1));class hi{static __wrap(t){t=t>>>0;const e=Object.create(hi.prototype);return e.__wbg_ptr=t,N2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,N2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint72_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint72_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint72_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint72_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return hi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint72_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint72_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint72_deserialize(e,r);if(s[2])throw o(s[1]);return hi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint72_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint72_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return hi.__wrap(_[0])}}const O2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint8_free(n>>>0,1));class wi{static __wrap(t){t=t>>>0;const e=Object.create(wi.prototype);return e.__wbg_ptr=t,O2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,O2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint8_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint8_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint8_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint8_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return wi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint8_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return e[0]}serialize(){const t=i.fheuint8_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint8_deserialize(e,r);if(s[2])throw o(s[1]);return wi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint8_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint8_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return wi.__wrap(_[0])}}const k2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint80_free(n>>>0,1));class di{static __wrap(t){t=t>>>0;const e=Object.create(di.prototype);return e.__wbg_ptr=t,k2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,k2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint80_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint80_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return di.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint80_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return di.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint80_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return di.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint80_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint80_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint80_deserialize(e,r);if(s[2])throw o(s[1]);return di.__wrap(s[0])}safe_serialize(t){const e=i.fheuint80_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint80_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return di.__wrap(_[0])}}const T2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint88_free(n>>>0,1));class gi{static __wrap(t){t=t>>>0;const e=Object.create(gi.prototype);return e.__wbg_ptr=t,T2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,T2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint88_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint88_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint88_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint88_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return gi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint88_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint88_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint88_deserialize(e,r);if(s[2])throw o(s[1]);return gi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint88_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint88_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return gi.__wrap(_[0])}}const G2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_fheuint96_free(n>>>0,1));class bi{static __wrap(t){t=t>>>0;const e=Object.create(bi.prototype);return e.__wbg_ptr=t,G2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_fheuint96_free(t,0)}static encrypt_with_client_key(t,e){b(e,U);const r=i.fheuint96_encrypt_with_client_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bi.__wrap(r[0])}static encrypt_with_public_key(t,e){b(e,gt);const r=i.fheuint96_encrypt_with_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bi.__wrap(r[0])}static encrypt_with_compressed_public_key(t,e){b(e,yt);const r=i.fheuint96_encrypt_with_compressed_public_key(t,e.__wbg_ptr);if(r[2])throw o(r[1]);return bi.__wrap(r[0])}decrypt(t){b(t,U);const e=i.fheuint96_decrypt(this.__wbg_ptr,t.__wbg_ptr);if(e[2])throw o(e[1]);return o(e[0])}serialize(){const t=i.fheuint96_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.fheuint96_deserialize(e,r);if(s[2])throw o(s[1]);return bi.__wrap(s[0])}safe_serialize(t){const e=i.fheuint96_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.fheuint96_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return bi.__wrap(_[0])}}const F2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_provencompactciphertextlist_free(n>>>0,1));class Va{static __wrap(t){t=t>>>0;const e=Object.create(Va.prototype);return e.__wbg_ptr=t,F2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,F2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_provencompactciphertextlist_free(t,0)}static builder(t){b(t,ar);const e=i.provencompactciphertextlist_builder(t.__wbg_ptr);if(e[2])throw o(e[1]);return hu.__wrap(e[0])}len(){return i.compactciphertextlistexpander_len(this.__wbg_ptr)>>>0}is_empty(){return i.compactciphertextlistexpander_is_empty(this.__wbg_ptr)!==0}get_kind_of(t){const e=i.provencompactciphertextlist_get_kind_of(this.__wbg_ptr,t);return e===84?void 0:e}verify_and_expand(t,e,r){b(t,zr),b(e,ar);const s=S(r,i.__wbindgen_malloc),_=A,a=i.provencompactciphertextlist_verify_and_expand(this.__wbg_ptr,t.__wbg_ptr,e.__wbg_ptr,s,_);if(a[2])throw o(a[1]);return po.__wrap(a[0])}expand_without_verification(){const t=i.provencompactciphertextlist_expand_without_verification(this.__wbg_ptr);if(t[2])throw o(t[1]);return po.__wrap(t[0])}serialize(){const t=i.provencompactciphertextlist_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.provencompactciphertextlist_deserialize(e,r);if(s[2])throw o(s[1]);return Va.__wrap(s[0])}safe_serialize(t){const e=i.provencompactciphertextlist_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.provencompactciphertextlist_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Va.__wrap(_[0])}}const Ev=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortint_free(n>>>0,1));class Pv{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Ev.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortint_free(t,0)}static new_gaussian_from_std_dev(t){const e=i.shortint_new_gaussian_from_std_dev(t);return or.__wrap(e)}static try_new_t_uniform(t){const e=i.shortint_try_new_t_uniform(t);if(e[2])throw o(e[1]);return or.__wrap(e[0])}static new_parameters(t,e,r,s,_,a,c,u,l,f,w,y,M,B,I){b(s,or),b(_,or);const G=i.shortint_new_parameters(t,e,r,s.__wbg_ptr,_.__wbg_ptr,a,c,u,l,f,w,y,M,B,I);return ls.__wrap(G)}static new_client_key_from_seed_and_parameters(t,e,r){b(r,ls);const s=i.shortint_new_client_key_from_seed_and_parameters(t,e,r.__wbg_ptr);return Je.__wrap(s)}static new_client_key(t){b(t,ls);const e=i.shortint_new_client_key(t.__wbg_ptr);return Je.__wrap(e)}static new_public_key(t){b(t,Je);const e=i.shortint_new_public_key(t.__wbg_ptr);return s_.__wrap(e)}static new_compressed_public_key(t){b(t,Je);const e=i.shortint_new_compressed_public_key(t.__wbg_ptr);return i_.__wrap(e)}static new_compressed_server_key(t){b(t,Je);const e=i.shortint_new_compressed_server_key(t.__wbg_ptr);return Ya.__wrap(e)}static encrypt(t,e){b(t,Je);const r=i.shortint_encrypt(t.__wbg_ptr,e);return yi.__wrap(r)}static encrypt_compressed(t,e){b(t,Je);const r=i.shortint_encrypt_compressed(t.__wbg_ptr,e);return n_.__wrap(r)}static decompress_ciphertext(t){b(t,n_);const e=i.shortint_decompress_ciphertext(t.__wbg_ptr);return yi.__wrap(e)}static encrypt_with_public_key(t,e){b(t,s_);const r=i.shortint_encrypt_with_public_key(t.__wbg_ptr,e);return yi.__wrap(r)}static encrypt_with_compressed_public_key(t,e){b(t,i_);const r=i.shortint_encrypt_with_compressed_public_key(t.__wbg_ptr,e);return yi.__wrap(r)}static decrypt(t,e){b(t,Je),b(e,yi);const r=i.shortint_decrypt(t.__wbg_ptr,e.__wbg_ptr);return BigInt.asUintN(64,r)}static serialize_ciphertext(t){b(t,yi);const e=i.shortint_serialize_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_ciphertext(e,r);if(s[2])throw o(s[1]);return yi.__wrap(s[0])}static serialize_compressed_ciphertext(t){b(t,n_);const e=i.shortint_serialize_compressed_ciphertext(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_ciphertext(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_compressed_ciphertext(e,r);if(s[2])throw o(s[1]);return n_.__wrap(s[0])}static serialize_client_key(t){b(t,Je);const e=i.shortint_serialize_client_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_client_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_client_key(e,r);if(s[2])throw o(s[1]);return Je.__wrap(s[0])}static serialize_public_key(t){b(t,s_);const e=i.shortint_serialize_public_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_public_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_public_key(e,r);if(s[2])throw o(s[1]);return s_.__wrap(s[0])}static serialize_compressed_public_key(t){b(t,i_);const e=i.shortint_serialize_compressed_public_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_public_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_compressed_public_key(e,r);if(s[2])throw o(s[1]);return i_.__wrap(s[0])}static serialize_compressed_server_key(t){b(t,Ya);const e=i.shortint_serialize_compressed_server_key(t.__wbg_ptr);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static deserialize_compressed_server_key(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.shortint_deserialize_compressed_server_key(e,r);if(s[2])throw o(s[1]);return Ya.__wrap(s[0])}}const U2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintciphertext_free(n>>>0,1));class yi{static __wrap(t){t=t>>>0;const e=Object.create(yi.prototype);return e.__wbg_ptr=t,U2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,U2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintciphertext_free(t,0)}}const K2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintclientkey_free(n>>>0,1));class Je{static __wrap(t){t=t>>>0;const e=Object.create(Je.prototype);return e.__wbg_ptr=t,K2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,K2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintclientkey_free(t,0)}}const Lh=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompactpublickeyencryptionparameters_free(n>>>0,1));class r_{static __wrap(t){t=t>>>0;const e=Object.create(r_.prototype);return e.__wbg_ptr=t,Lh.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Lh.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompactpublickeyencryptionparameters_free(t,0)}constructor(t){const e=i.shortintcompactpublickeyencryptionparameters_new(t);return this.__wbg_ptr=e>>>0,Lh.register(this,this.__wbg_ptr,this),this}static new_parameters(t,e,r,s,_,a,c,u){b(e,or);const l=i.shortintcompactpublickeyencryptionparameters_new_parameters(t,e.__wbg_ptr,r,s,_,a,c,u);if(l[2])throw o(l[1]);return r_.__wrap(l[0])}}const D2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompressedciphertext_free(n>>>0,1));class n_{static __wrap(t){t=t>>>0;const e=Object.create(n_.prototype);return e.__wbg_ptr=t,D2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,D2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompressedciphertext_free(t,0)}}const L2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompressedpublickey_free(n>>>0,1));class i_{static __wrap(t){t=t>>>0;const e=Object.create(i_.prototype);return e.__wbg_ptr=t,L2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,L2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompressedpublickey_free(t,0)}}const j2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintcompressedserverkey_free(n>>>0,1));class Ya{static __wrap(t){t=t>>>0;const e=Object.create(Ya.prototype);return e.__wbg_ptr=t,j2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,j2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintcompressedserverkey_free(t,0)}}const V2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintnoisedistribution_free(n>>>0,1));class or{static __wrap(t){t=t>>>0;const e=Object.create(or.prototype);return e.__wbg_ptr=t,V2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintnoisedistribution_free(t,0)}}const jh=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintparameters_free(n>>>0,1));class ls{static __wrap(t){t=t>>>0;const e=Object.create(ls.prototype);return e.__wbg_ptr=t,jh.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,jh.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintparameters_free(t,0)}lwe_dimension(){return i.shortintparameters_lwe_dimension(this.__wbg_ptr)>>>0}set_lwe_dimension(t){i.shortintparameters_set_lwe_dimension(this.__wbg_ptr,t)}glwe_dimension(){return i.shortintparameters_glwe_dimension(this.__wbg_ptr)>>>0}set_glwe_dimension(t){i.shortintparameters_set_glwe_dimension(this.__wbg_ptr,t)}polynomial_size(){return i.shortintparameters_polynomial_size(this.__wbg_ptr)>>>0}set_polynomial_size(t){i.shortintparameters_set_polynomial_size(this.__wbg_ptr,t)}lwe_noise_distribution(){const t=i.shortintparameters_glwe_noise_distribution(this.__wbg_ptr);return or.__wrap(t)}set_lwe_noise_distribution(t){b(t,or),i.shortintparameters_set_lwe_noise_distribution(this.__wbg_ptr,t.__wbg_ptr)}glwe_noise_distribution(){const t=i.shortintparameters_glwe_noise_distribution(this.__wbg_ptr);return or.__wrap(t)}set_glwe_noise_distribution(t){b(t,or),i.shortintparameters_set_glwe_noise_distribution(this.__wbg_ptr,t.__wbg_ptr)}pbs_base_log(){return i.shortintparameters_pbs_base_log(this.__wbg_ptr)>>>0}set_pbs_base_log(t){i.shortintparameters_set_pbs_base_log(this.__wbg_ptr,t)}pbs_level(){return i.shortintparameters_pbs_level(this.__wbg_ptr)>>>0}set_pbs_level(t){i.shortintparameters_set_pbs_level(this.__wbg_ptr,t)}ks_base_log(){return i.shortintparameters_ks_base_log(this.__wbg_ptr)>>>0}set_ks_base_log(t){i.shortintparameters_set_ks_base_log(this.__wbg_ptr,t)}ks_level(){return i.shortintparameters_ks_level(this.__wbg_ptr)>>>0}set_ks_level(t){i.shortintparameters_set_ks_level(this.__wbg_ptr,t)}message_modulus(){const t=i.shortintparameters_message_modulus(this.__wbg_ptr);return BigInt.asUintN(64,t)}set_message_modulus(t){i.shortintparameters_set_message_modulus(this.__wbg_ptr,t)}carry_modulus(){const t=i.shortintparameters_carry_modulus(this.__wbg_ptr);return BigInt.asUintN(64,t)}set_carry_modulus(t){i.shortintparameters_set_carry_modulus(this.__wbg_ptr,t)}encryption_key_choice(){return i.shortintparameters_encryption_key_choice(this.__wbg_ptr)}set_encryption_key_choice(t){i.shortintparameters_set_encryption_key_choice(this.__wbg_ptr,t)}constructor(t){const e=i.shortintparameters_new(t);return this.__wbg_ptr=e>>>0,jh.register(this,this.__wbg_ptr,this),this}}const Y2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_shortintpublickey_free(n>>>0,1));class s_{static __wrap(t){t=t>>>0;const e=Object.create(s_.prototype);return e.__wbg_ptr=t,Y2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Y2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_shortintpublickey_free(t,0)}}const H2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheclientkey_free(n>>>0,1));class U{static __wrap(t){t=t>>>0;const e=Object.create(U.prototype);return e.__wbg_ptr=t,H2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,H2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheclientkey_free(t,0)}static generate(t){b(t,o_);const e=i.tfheclientkey_generate(t.__wbg_ptr);if(e[2])throw o(e[1]);return U.__wrap(e[0])}static generate_with_seed(t,e){b(t,o_);const r=i.tfheclientkey_generate_with_seed(t.__wbg_ptr,e);if(r[2])throw o(r[1]);return U.__wrap(r[0])}serialize(){const t=i.tfheclientkey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfheclientkey_deserialize(e,r);if(s[2])throw o(s[1]);return U.__wrap(s[0])}safe_serialize(t){const e=i.tfheclientkey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfheclientkey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return U.__wrap(_[0])}}const q2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompactpublickey_free(n>>>0,1));class ar{static __wrap(t){t=t>>>0;const e=Object.create(ar.prototype);return e.__wbg_ptr=t,q2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,q2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompactpublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompactpublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return ar.__wrap(e[0])}serialize(){const t=i.tfhecompactpublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompactpublickey_deserialize(e,r);if(s[2])throw o(s[1]);return ar.__wrap(s[0])}safe_serialize(t){const e=i.tfhecompactpublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompactpublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return ar.__wrap(_[0])}static safe_deserialize_conformant(t,e,r){const s=S(t,i.__wbindgen_malloc),_=A;b(r,r_);const a=i.tfhecompactpublickey_safe_deserialize_conformant(s,_,e,r.__wbg_ptr);if(a[2])throw o(a[1]);return ar.__wrap(a[0])}}const Q2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompressedcompactpublickey_free(n>>>0,1));class __{static __wrap(t){t=t>>>0;const e=Object.create(__.prototype);return e.__wbg_ptr=t,Q2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Q2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompressedcompactpublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompressedcompactpublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return __.__wrap(e[0])}serialize(){const t=i.tfhecompressedcompactpublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompressedcompactpublickey_deserialize(e,r);if(s[2])throw o(s[1]);return __.__wrap(s[0])}decompress(){const t=i.tfhecompressedcompactpublickey_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return ar.__wrap(t[0])}safe_serialize(t){const e=i.tfhecompressedcompactpublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompressedcompactpublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return __.__wrap(_[0])}static safe_deserialize_conformant(t,e,r){const s=S(t,i.__wbindgen_malloc),_=A;b(r,r_);const a=i.tfhecompressedcompactpublickey_safe_deserialize_conformant(s,_,e,r.__wbg_ptr);if(a[2])throw o(a[1]);return __.__wrap(a[0])}}const W2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompressedpublickey_free(n>>>0,1));class yt{static __wrap(t){t=t>>>0;const e=Object.create(yt.prototype);return e.__wbg_ptr=t,W2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,W2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompressedpublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompressedpublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return yt.__wrap(e[0])}decompress(){const t=i.tfhecompressedpublickey_decompress(this.__wbg_ptr);if(t[2])throw o(t[1]);return gt.__wrap(t[0])}serialize(){const t=i.tfhecompressedpublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompressedpublickey_deserialize(e,r);if(s[2])throw o(s[1]);return yt.__wrap(s[0])}safe_serialize(t){const e=i.tfhecompressedpublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompressedpublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return yt.__wrap(_[0])}}const J2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhecompressedserverkey_free(n>>>0,1));class Ha{static __wrap(t){t=t>>>0;const e=Object.create(Ha.prototype);return e.__wbg_ptr=t,J2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,J2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhecompressedserverkey_free(t,0)}static new(t){b(t,U);const e=i.tfhecompressedserverkey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return Ha.__wrap(e[0])}serialize(){const t=i.tfhecompressedserverkey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhecompressedserverkey_deserialize(e,r);if(s[2])throw o(s[1]);return Ha.__wrap(s[0])}safe_serialize(t){const e=i.tfhecompressedserverkey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhecompressedserverkey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return Ha.__wrap(_[0])}}const $2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheconfig_free(n>>>0,1));class o_{static __wrap(t){t=t>>>0;const e=Object.create(o_.prototype);return e.__wbg_ptr=t,$2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheconfig_free(t,0)}}const Z2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheconfigbuilder_free(n>>>0,1));class a_{static __wrap(t){t=t>>>0;const e=Object.create(a_.prototype);return e.__wbg_ptr=t,Z2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Z2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheconfigbuilder_free(t,0)}static default(){const t=i.tfheconfigbuilder_default();return a_.__wrap(t)}static with_custom_parameters(t){b(t,ls);const e=i.tfheconfigbuilder_with_custom_parameters(t.__wbg_ptr);return a_.__wrap(e)}use_custom_parameters(t){const e=this.__destroy_into_raw();b(t,ls);const r=i.tfheconfigbuilder_use_custom_parameters(e,t.__wbg_ptr);return a_.__wrap(r)}use_dedicated_compact_public_key_parameters(t){const e=this.__destroy_into_raw();b(t,r_);const r=i.tfheconfigbuilder_use_dedicated_compact_public_key_parameters(e,t.__wbg_ptr);return a_.__wrap(r)}build(){const t=this.__destroy_into_raw(),e=i.tfheconfigbuilder_build(t);return o_.__wrap(e)}}const X2=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhepublickey_free(n>>>0,1));class gt{static __wrap(t){t=t>>>0;const e=Object.create(gt.prototype);return e.__wbg_ptr=t,X2.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,X2.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhepublickey_free(t,0)}static new(t){b(t,U);const e=i.tfhepublickey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return gt.__wrap(e[0])}serialize(){const t=i.tfhepublickey_serialize(this.__wbg_ptr);if(t[3])throw o(t[2]);var e=R(t[0],t[1]).slice();return i.__wbindgen_free(t[0],t[1]*1,1),e}static deserialize(t){const e=S(t,i.__wbindgen_malloc),r=A,s=i.tfhepublickey_deserialize(e,r);if(s[2])throw o(s[1]);return gt.__wrap(s[0])}safe_serialize(t){const e=i.tfhepublickey_safe_serialize(this.__wbg_ptr,t);if(e[3])throw o(e[2]);var r=R(e[0],e[1]).slice();return i.__wbindgen_free(e[0],e[1]*1,1),r}static safe_deserialize(t,e){const r=S(t,i.__wbindgen_malloc),s=A,_=i.tfhepublickey_safe_deserialize(r,s,e);if(_[2])throw o(_[1]);return gt.__wrap(_[0])}}const tm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfheserverkey_free(n>>>0,1));class wu{static __wrap(t){t=t>>>0;const e=Object.create(wu.prototype);return e.__wbg_ptr=t,tm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,tm.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfheserverkey_free(t,0)}static new(t){b(t,U);const e=i.tfheserverkey_new(t.__wbg_ptr);if(e[2])throw o(e[1]);return wu.__wrap(e[0])}}const zv=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_tfhe_free(n>>>0,1));class vv{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,zv.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_tfhe_free(t,0)}}const em=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>i.__wbg_wbg_rayon_poolbuilder_free(n>>>0,1));class Gf{static __wrap(t){t=t>>>0;const e=Object.create(Gf.prototype);return e.__wbg_ptr=t,em.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,em.unregister(this),t}free(){const t=this.__destroy_into_raw();i.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return i.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return i.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}build(){i.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}}async function Mv(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(r){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function rm(){const n={};return n.wbg={},n.wbg.__wbg_BigInt_470dd987b8190f8e=function(t){return BigInt(t)},n.wbg.__wbg_BigInt_ddea6d2f55558acb=function(){return uo(function(t){return BigInt(t)},arguments)},n.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},n.wbg.__wbg_call_672a4d21634d4a24=function(){return uo(function(t,e){return t.call(e)},arguments)},n.wbg.__wbg_call_7cccdd69e0791ae2=function(){return uo(function(t,e,r){return t.call(e,r)},arguments)},n.wbg.__wbg_crypto_ed58b8e10a292839=function(t){return t.crypto},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(Js(t,e))}finally{i.__wbindgen_free(r,s,1)}},n.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return uo(function(t,e){t.getRandomValues(e)},arguments)},n.wbg.__wbg_getTime_46267b1c24877e30=function(t){return t.getTime()},n.wbg.__wbg_instanceof_Window_def73ea0955fc569=function(t){let e;try{e=t instanceof Window}catch{e=!1}return e},n.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(t){return t.msCrypto},n.wbg.__wbg_new0_f788a2397c7ca929=function(){return new Date},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},n.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return new Function(Js(t,e))},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,e,r){return new Uint8Array(t,e>>>0,r>>>0)},n.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){return new Uint8Array(t>>>0)},n.wbg.__wbg_node_02999533c4ea02e3=function(t){return t.node},n.wbg.__wbg_process_5c1d670bc53614b8=function(t){return t.process},n.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return uo(function(t,e){t.randomFillSync(e)},arguments)},n.wbg.__wbg_require_79b1e9274cde3c87=function(){return uo(function(){return module.require},arguments)},n.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){t.set(e,r>>>0)},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const r=e.stack,s=Tf(r,i.__wbindgen_malloc,i.__wbindgen_realloc),_=A;Dr().setInt32(t+4*1,_,!0),Dr().setInt32(t+4*0,s,!0)},n.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(t,e,r){return cv(t,e,Gf.__wrap(r))},n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t=typeof kf>"u"?null:kf;return $s(t)?0:fu(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t=typeof globalThis>"u"?null:globalThis;return $s(t)?0:fu(t)},n.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t=typeof self>"u"?null:self;return $s(t)?0:fu(t)},n.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t=typeof window>"u"?null:window;return $s(t)?0:fu(t)},n.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,e,r){return t.subarray(e>>>0,r>>>0)},n.wbg.__wbg_toString_2f76f493957b63da=function(t,e,r){const s=e.toString(r),_=Tf(s,i.__wbindgen_malloc,i.__wbindgen_realloc),a=A;Dr().setInt32(t+4*1,a,!0),Dr().setInt32(t+4*0,_,!0)},n.wbg.__wbg_toString_c813bbd34d063839=function(t){return t.toString()},n.wbg.__wbg_versions_c71aa1626a93e0a1=function(t){return t.versions},n.wbg.__wbindgen_bigint_from_i128=function(t,e){return t<<BigInt(64)|BigInt.asUintN(64,e)},n.wbg.__wbindgen_bigint_from_i64=function(t){return t},n.wbg.__wbindgen_bigint_from_u128=function(t,e){return BigInt.asUintN(64,t)<<BigInt(64)|BigInt.asUintN(64,e)},n.wbg.__wbindgen_bigint_from_u64=function(t){return BigInt.asUintN(64,t)},n.wbg.__wbindgen_bigint_get_as_i64=function(t,e){const r=e,s=typeof r=="bigint"?r:void 0;Dr().setBigInt64(t+8*1,$s(s)?BigInt(0):s,!0),Dr().setInt32(t+4*0,!$s(s),!0)},n.wbg.__wbindgen_bit_and=function(t,e){return t&e},n.wbg.__wbindgen_bit_or=function(t,e){return t|e},n.wbg.__wbindgen_debug_string=function(t,e){const r=Uh(e),s=Tf(r,i.__wbindgen_malloc,i.__wbindgen_realloc),_=A;Dr().setInt32(t+4*1,_,!0),Dr().setInt32(t+4*0,s,!0)},n.wbg.__wbindgen_error_new=function(t,e){return new Error(Js(t,e))},n.wbg.__wbindgen_init_externref_table=function(){const t=i.__wbindgen_export_2,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},n.wbg.__wbindgen_is_function=function(t){return typeof t=="function"},n.wbg.__wbindgen_is_object=function(t){const e=t;return typeof e=="object"&&e!==null},n.wbg.__wbindgen_is_string=function(t){return typeof t=="string"},n.wbg.__wbindgen_is_undefined=function(t){return t===void 0},n.wbg.__wbindgen_jsval_eq=function(t,e){return t===e},n.wbg.__wbindgen_lt=function(t,e){return t<e},n.wbg.__wbindgen_memory=function(){return i.memory},n.wbg.__wbindgen_module=function(){return du.__wbindgen_wasm_module},n.wbg.__wbindgen_neg=function(t){return-t},n.wbg.__wbindgen_number_new=function(t){return t},n.wbg.__wbindgen_shl=function(t,e){return t<<e},n.wbg.__wbindgen_shr=function(t,e){return t>>e},n.wbg.__wbindgen_string_get=function(t,e){const r=e,s=typeof r=="string"?r:void 0;var _=$s(s)?0:Tf(s,i.__wbindgen_malloc,i.__wbindgen_realloc),a=A;Dr().setInt32(t+4*1,a,!0),Dr().setInt32(t+4*0,_,!0)},n.wbg.__wbindgen_string_new=function(t,e){return Js(t,e)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(Js(t,e))},n}function nm(n,t){n.wbg.memory=t||new WebAssembly.Memory({initial:20,maximum:16384,shared:!0})}function im(n,t,e){if(i=n.exports,du.__wbindgen_wasm_module=t,pu=null,lu=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return i.__wbindgen_start(e),i}function Bv(n,t){if(i!==void 0)return i;let e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module:n,memory:t,thread_stack_size:e}=n:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const r=rm();nm(r,t),n instanceof WebAssembly.Module||(n=new WebAssembly.Module(n));const s=new WebAssembly.Instance(n,r);return im(s,n,e)}async function du(n,t){if(i!==void 0)return i;let e;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n,memory:t,thread_stack_size:e}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/tfhe_bg.wasm",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ft&&Ft.tagName.toUpperCase()==="SCRIPT"&&Ft.src||new URL("relayer-sdk-js.umd.cjs",document.baseURI).href));const r=rm();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n)),nm(r,t);const{instance:s,module:_}=await Mv(await n,r);return im(s,_,e)}var xv=Object.freeze({__proto__:null,Boolean:Rv,BooleanCiphertext:Lr,BooleanClientKey:_r,BooleanCompressedCiphertext:Zs,BooleanCompressedServerKey:lo,BooleanEncryptionKeyChoice:wv,BooleanNoiseDistribution:Xs,BooleanParameterSet:dv,BooleanParameters:t_,BooleanPublicKey:e_,CompactCiphertextList:fs,CompactCiphertextListBuilder:hu,CompactCiphertextListExpander:po,CompactPkeCrs:zr,CompressedFheBool:ho,CompressedFheInt10:wo,CompressedFheInt1024:go,CompressedFheInt104:bo,CompressedFheInt112:yo,CompressedFheInt12:Ao,CompressedFheInt120:mo,CompressedFheInt128:So,CompressedFheInt136:Ro,CompressedFheInt14:Eo,CompressedFheInt144:Po,CompressedFheInt152:zo,CompressedFheInt16:vo,CompressedFheInt160:Mo,CompressedFheInt168:Bo,CompressedFheInt176:xo,CompressedFheInt184:Co,CompressedFheInt192:Io,CompressedFheInt2:No,CompressedFheInt200:Oo,CompressedFheInt2048:ko,CompressedFheInt208:To,CompressedFheInt216:Go,CompressedFheInt224:Fo,CompressedFheInt232:Uo,CompressedFheInt24:Ko,CompressedFheInt240:Do,CompressedFheInt248:Lo,CompressedFheInt256:jo,CompressedFheInt32:Vo,CompressedFheInt4:Yo,CompressedFheInt40:Ho,CompressedFheInt48:qo,CompressedFheInt512:Qo,CompressedFheInt56:Wo,CompressedFheInt6:Jo,CompressedFheInt64:$o,CompressedFheInt72:Zo,CompressedFheInt8:Xo,CompressedFheInt80:ta,CompressedFheInt88:ea,CompressedFheInt96:ra,CompressedFheUint10:na,CompressedFheUint1024:ia,CompressedFheUint104:sa,CompressedFheUint112:_a,CompressedFheUint12:oa,CompressedFheUint120:aa,CompressedFheUint128:ca,CompressedFheUint136:ua,CompressedFheUint14:fa,CompressedFheUint144:la,CompressedFheUint152:pa,CompressedFheUint16:ha,CompressedFheUint160:wa,CompressedFheUint168:da,CompressedFheUint176:ga,CompressedFheUint184:ba,CompressedFheUint192:ya,CompressedFheUint2:Aa,CompressedFheUint200:ma,CompressedFheUint2048:Sa,CompressedFheUint208:Ra,CompressedFheUint216:Ea,CompressedFheUint224:Pa,CompressedFheUint232:za,CompressedFheUint24:va,CompressedFheUint240:Ma,CompressedFheUint248:Ba,CompressedFheUint256:xa,CompressedFheUint32:Ca,CompressedFheUint4:Ia,CompressedFheUint40:Na,CompressedFheUint48:Oa,CompressedFheUint512:ka,CompressedFheUint56:Ta,CompressedFheUint6:Ga,CompressedFheUint64:Fa,CompressedFheUint72:Ua,CompressedFheUint8:Ka,CompressedFheUint80:Da,CompressedFheUint88:La,CompressedFheUint96:ja,FheBool:jr,FheInt10:Vr,FheInt1024:Yr,FheInt104:Hr,FheInt112:qr,FheInt12:Qr,FheInt120:Wr,FheInt128:Jr,FheInt136:$r,FheInt14:Zr,FheInt144:Xr,FheInt152:tn,FheInt16:en,FheInt160:rn,FheInt168:nn,FheInt176:sn,FheInt184:_n,FheInt192:on,FheInt2:an,FheInt200:cn,FheInt2048:un,FheInt208:fn,FheInt216:ln,FheInt224:pn,FheInt232:hn,FheInt24:wn,FheInt240:dn,FheInt248:gn,FheInt256:bn,FheInt32:yn,FheInt4:An,FheInt40:mn,FheInt48:Sn,FheInt512:Rn,FheInt56:En,FheInt6:Pn,FheInt64:zn,FheInt72:vn,FheInt8:Mn,FheInt80:Bn,FheInt88:xn,FheInt96:Cn,FheTypes:gv,FheUint10:In,FheUint1024:Nn,FheUint104:On,FheUint112:kn,FheUint12:Tn,FheUint120:Gn,FheUint128:Fn,FheUint136:Un,FheUint14:Kn,FheUint144:Dn,FheUint152:Ln,FheUint16:jn,FheUint160:Vn,FheUint168:Yn,FheUint176:Hn,FheUint184:qn,FheUint192:Qn,FheUint2:Wn,FheUint200:Jn,FheUint2048:$n,FheUint208:Zn,FheUint216:Xn,FheUint224:ti,FheUint232:ei,FheUint24:ri,FheUint240:ni,FheUint248:ii,FheUint256:si,FheUint32:_i,FheUint4:oi,FheUint40:ai,FheUint48:ci,FheUint512:ui,FheUint56:fi,FheUint6:li,FheUint64:pi,FheUint72:hi,FheUint8:wi,FheUint80:di,FheUint88:gi,FheUint96:bi,ProvenCompactCiphertextList:Va,Shortint:Pv,ShortintCiphertext:yi,ShortintClientKey:Je,ShortintCompactPublicKeyEncryptionParameters:r_,ShortintCompactPublicKeyEncryptionParametersName:bv,ShortintCompressedCiphertext:n_,ShortintCompressedPublicKey:i_,ShortintCompressedServerKey:Ya,ShortintEncryptionKeyChoice:yv,ShortintNoiseDistribution:or,ShortintPBSOrder:Av,ShortintParameters:ls,ShortintParametersName:mv,ShortintPublicKey:s_,TfheClientKey:U,TfheCompactPublicKey:ar,TfheCompressedCompactPublicKey:__,TfheCompressedPublicKey:yt,TfheCompressedServerKey:Ha,TfheConfig:o_,TfheConfigBuilder:a_,TfhePublicKey:gt,TfheServerKey:wu,ZkComputeLoad:Sb,default:du,initSync:Bv,initThreadPool:Dh,init_panic_hook:Kh,set_server_key:fv,shortint_params_name:pv,shortint_pke_params_name:lv,tfhe:vv,wbg_rayon_PoolBuilder:Gf,wbg_rayon_start_worker:hv});let st,oe=0,gu=null;function qa(){return(gu===null||gu.byteLength===0)&&(gu=new Uint8Array(st.memory.buffer)),gu}const Ff=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Cv=typeof Ff.encodeInto=="function"?function(n,t){return Ff.encodeInto(n,t)}:function(n,t){const e=Ff.encode(n);return t.set(e),{read:n.length,written:e.length}};function c_(n,t,e){if(e===void 0){const c=Ff.encode(n),u=t(c.length,1)>>>0;return qa().subarray(u,u+c.length).set(c),oe=c.length,u}let r=n.length,s=t(r,1)>>>0;const _=qa();let a=0;for(;a<r;a++){const c=n.charCodeAt(a);if(c>127)break;_[s+a]=c}if(a!==r){a!==0&&(n=n.slice(a)),s=e(s,r,r=a+n.length*3,1)>>>0;const c=qa().subarray(s+a,s+r),u=Cv(n,c);a+=u.written,s=e(s,r,a,1)>>>0}return oe=a,s}let u_=null;function cr(){return(u_===null||u_.buffer.detached===!0||u_.buffer.detached===void 0&&u_.buffer!==st.memory.buffer)&&(u_=new DataView(st.memory.buffer)),u_}function Qa(n){const t=st.__externref_table_alloc();return st.__wbindgen_export_4.set(t,n),t}function f_(n,t){try{return n.apply(this,t)}catch(e){const r=Qa(e);st.__wbindgen_exn_store(r)}}const sm=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&sm.decode();function bu(n,t){return n=n>>>0,sm.decode(qa().subarray(n,n+t))}function ps(n){return n==null}function Vh(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const s=n.description;return s==null?"Symbol":`Symbol(${s})`}if(t=="function"){const s=n.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(n)){const s=n.length;let _="[";s>0&&(_+=Vh(n[0]));for(let a=1;a<s;a++)_+=", "+Vh(n[a]);return _+="]",_}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
22
|
+
${n.stack}`:r}function l_(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}function vr(n,t){return n=n>>>0,qa().subarray(n/1,n/1+t)}function Mr(n,t){const e=t(n.length*1,1)>>>0;return qa().set(n,e/1),oe=n.length,e}function p_(n){const t=st.__wbindgen_export_4.get(n);return st.__externref_table_dealloc(n),t}function Iv(n,t){const e=c_(t,st.__wbindgen_malloc,st.__wbindgen_realloc),r=oe,s=st.new_server_id_addr(n,e,r);if(s[2])throw p_(s[1]);return Ja.__wrap(s[0])}function _m(n,t){const e=t(n.length*4,4)>>>0;for(let r=0;r<n.length;r++){const s=Qa(n[r]);cr().setUint32(e+4*r,s,!0)}return oe=n.length,e}function Nv(n,t,e){const r=_m(n,st.__wbindgen_malloc),s=oe,_=c_(t,st.__wbindgen_malloc,st.__wbindgen_realloc),a=oe,c=c_(e,st.__wbindgen_malloc,st.__wbindgen_realloc),u=oe,l=st.new_client(r,s,_,a,c,u);if(l[2])throw p_(l[1]);return Uf.__wrap(l[0])}function om(n,t){n=n>>>0;const e=cr(),r=[];for(let s=n;s<n+4*t;s+=4)r.push(st.__wbindgen_export_4.get(e.getUint32(s,!0)));return st.__externref_drop_slice(n,t),r}function Ov(){const n=st.ml_kem_pke_keygen();return h_.__wrap(n)}function kv(n){l_(n,h_);const t=st.ml_kem_pke_get_pk(n.__wbg_ptr);return Wa.__wrap(t)}function Tv(n){l_(n,Wa);const t=st.ml_kem_pke_pk_to_u8vec(n.__wbg_ptr);if(t[3])throw p_(t[2]);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}function Gv(n){l_(n,h_);const t=st.ml_kem_pke_sk_to_u8vec(n.__wbg_ptr);if(t[3])throw p_(t[2]);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}function Fv(n){const t=Mr(n,st.__wbindgen_malloc),e=oe,r=st.u8vec_to_ml_kem_pke_pk(t,e);if(r[2])throw p_(r[1]);return Wa.__wrap(r[0])}function Uv(n){const t=Mr(n,st.__wbindgen_malloc),e=oe,r=st.u8vec_to_ml_kem_pke_sk(t,e);if(r[2])throw p_(r[1]);return h_.__wrap(r[0])}function Kv(n,t,e,r,s,_,a){l_(n,Uf),l_(s,Wa),l_(_,h_);const c=st.process_user_decryption_resp_from_js(n.__wbg_ptr,t,e,r,s.__wbg_ptr,_.__wbg_ptr,a);if(c[3])throw p_(c[2]);var u=om(c[0],c[1]).slice();return st.__wbindgen_free(c[0],c[1]*4,4),u}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_ciphertexthandle_free(n>>>0,1));const am=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_client_free(n>>>0,1));class Uf{static __wrap(t){t=t>>>0;const e=Object.create(Uf.prototype);return e.__wbg_ptr=t,am.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,am.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_client_free(t,0)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_cryptoboxct_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_eip712domainmsg_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_parseduserdecryptionrequest_free(n>>>0,1));const cm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_privateenckey_free(n>>>0,1));class h_{static __wrap(t){t=t>>>0;const e=Object.create(h_.prototype);return e.__wbg_ptr=t,cm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,cm.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_privateenckey_free(t,0)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_privatesigkey_free(n>>>0,1));const um=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_publicenckey_free(n>>>0,1));class Wa{static __wrap(t){t=t>>>0;const e=Object.create(Wa.prototype);return e.__wbg_ptr=t,um.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,um.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_publicenckey_free(t,0)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_publicsigkey_free(n>>>0,1)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_requestid_free(n>>>0,1));const fm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_serveridaddr_free(n>>>0,1));class Ja{static __wrap(t){t=t>>>0;const e=Object.create(Ja.prototype);return e.__wbg_ptr=t,fm.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof Ja?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,fm.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_serveridaddr_free(t,0)}}const lm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_typedciphertext_free(n>>>0,1));class yu{static __wrap(t){t=t>>>0;const e=Object.create(yu.prototype);return e.__wbg_ptr=t,lm.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof yu?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,lm.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_typedciphertext_free(t,0)}get ciphertext(){const t=st.__wbg_get_typedciphertext_ciphertext(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set ciphertext(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get fhe_type(){return st.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr)}set fhe_type(t){st.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr,t)}get external_handle(){const t=st.__wbg_get_typedciphertext_external_handle(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set external_handle(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get ciphertext_format(){return st.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr)}set ciphertext_format(t){st.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr,t)}}const pm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_typedplaintext_free(n>>>0,1));class Yh{static __wrap(t){t=t>>>0;const e=Object.create(Yh.prototype);return e.__wbg_ptr=t,pm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pm.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_typedplaintext_free(t,0)}get bytes(){const t=st.__wbg_get_typedplaintext_bytes(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set bytes(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get fhe_type(){return st.__wbg_get_typedplaintext_fhe_type(this.__wbg_ptr)}set fhe_type(t){st.__wbg_set_typedplaintext_fhe_type(this.__wbg_ptr,t)}}const hm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_typedsigncryptedciphertext_free(n>>>0,1));class Au{static __wrap(t){t=t>>>0;const e=Object.create(Au.prototype);return e.__wbg_ptr=t,hm.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof Au?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,hm.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_typedsigncryptedciphertext_free(t,0)}get fhe_type(){return st.__wbg_get_typedciphertext_fhe_type(this.__wbg_ptr)}set fhe_type(t){st.__wbg_set_typedciphertext_fhe_type(this.__wbg_ptr,t)}get signcrypted_ciphertext(){const t=st.__wbg_get_typedsigncryptedciphertext_signcrypted_ciphertext(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set signcrypted_ciphertext(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get external_handle(){const t=st.__wbg_get_typedsigncryptedciphertext_external_handle(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set external_handle(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get packing_factor(){return st.__wbg_get_typedciphertext_ciphertext_format(this.__wbg_ptr)>>>0}set packing_factor(t){st.__wbg_set_typedciphertext_ciphertext_format(this.__wbg_ptr,t)}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>st.__wbg_userdecryptionrequest_free(n>>>0,1));const Dv=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_userdecryptionresponse_free(n>>>0,1));class Hh{static __unwrap(t){return t instanceof Hh?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Dv.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_userdecryptionresponse_free(t,0)}get signature(){const t=st.__wbg_get_userdecryptionresponse_signature(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set signature(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get external_signature(){const t=st.__wbg_get_userdecryptionresponse_external_signature(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set external_signature(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get payload(){const t=st.__wbg_get_userdecryptionresponse_payload(this.__wbg_ptr);return t===0?void 0:Kf.__wrap(t)}set payload(t){let e=0;ps(t)||(l_(t,Kf),e=t.__destroy_into_raw()),st.__wbg_set_userdecryptionresponse_payload(this.__wbg_ptr,e)}}const wm=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>st.__wbg_userdecryptionresponsepayload_free(n>>>0,1));class Kf{static __wrap(t){t=t>>>0;const e=Object.create(Kf.prototype);return e.__wbg_ptr=t,wm.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,wm.unregister(this),t}free(){const t=this.__destroy_into_raw();st.__wbg_userdecryptionresponsepayload_free(t,0)}get verification_key(){const t=st.__wbg_get_userdecryptionresponsepayload_verification_key(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set verification_key(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_name(this.__wbg_ptr,e,r)}get digest(){const t=st.__wbg_get_userdecryptionresponsepayload_digest(this.__wbg_ptr);var e=vr(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*1,1),e}set digest(t){const e=Mr(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_eip712domainmsg_version(this.__wbg_ptr,e,r)}get signcrypted_ciphertexts(){const t=st.__wbg_get_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr);var e=om(t[0],t[1]).slice();return st.__wbindgen_free(t[0],t[1]*4,4),e}set signcrypted_ciphertexts(t){const e=_m(t,st.__wbindgen_malloc),r=oe;st.__wbg_set_userdecryptionresponsepayload_signcrypted_ciphertexts(this.__wbg_ptr,e,r)}get party_id(){return st.__wbg_get_userdecryptionresponsepayload_party_id(this.__wbg_ptr)>>>0}set party_id(t){st.__wbg_set_userdecryptionresponsepayload_party_id(this.__wbg_ptr,t)}get degree(){return st.__wbg_get_userdecryptionresponsepayload_degree(this.__wbg_ptr)>>>0}set degree(t){st.__wbg_set_userdecryptionresponsepayload_degree(this.__wbg_ptr,t)}}async function Lv(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(r){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function jv(){const n={};return n.wbg={},n.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,e){const r=String(e),s=c_(r,st.__wbindgen_malloc,st.__wbindgen_realloc),_=oe;cr().setInt32(t+4*1,_,!0),cr().setInt32(t+4*0,s,!0)},n.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},n.wbg.__wbg_call_672a4d21634d4a24=function(){return f_(function(t,e){return t.call(e)},arguments)},n.wbg.__wbg_call_7cccdd69e0791ae2=function(){return f_(function(t,e,r){return t.call(e,r)},arguments)},n.wbg.__wbg_crypto_ed58b8e10a292839=function(t){return t.crypto},n.wbg.__wbg_done_769e5ede4b31c67b=function(t){return t.done},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(bu(t,e))}finally{st.__wbindgen_free(r,s,1)}},n.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return f_(function(t,e){t.getRandomValues(e)},arguments)},n.wbg.__wbg_get_67b2ba62fc30de12=function(){return f_(function(t,e){return Reflect.get(t,e)},arguments)},n.wbg.__wbg_get_b9b93047fe3cf45b=function(t,e){return t[e>>>0]},n.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(t,e){return t[e]},n.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(t){let e;try{e=t instanceof ArrayBuffer}catch{e=!1}return e},n.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(t){let e;try{e=t instanceof Uint8Array}catch{e=!1}return e},n.wbg.__wbg_isArray_a1eab7e0d067391b=function(t){return Array.isArray(t)},n.wbg.__wbg_isSafeInteger_343e2beeeece1bb0=function(t){return Number.isSafeInteger(t)},n.wbg.__wbg_iterator_9a24c88df860dc65=function(){return Symbol.iterator},n.wbg.__wbg_length_a446193dc22c12f8=function(t){return t.length},n.wbg.__wbg_length_e2d2a49132c1b256=function(t){return t.length},n.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(t){return t.msCrypto},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},n.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return new Function(bu(t,e))},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,e,r){return new Uint8Array(t,e>>>0,r>>>0)},n.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){return new Uint8Array(t>>>0)},n.wbg.__wbg_next_25feadfc0913fea9=function(t){return t.next},n.wbg.__wbg_next_6574e1a8a62d1055=function(){return f_(function(t){return t.next()},arguments)},n.wbg.__wbg_node_02999533c4ea02e3=function(t){return t.node},n.wbg.__wbg_process_5c1d670bc53614b8=function(t){return t.process},n.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return f_(function(t,e){t.randomFillSync(e)},arguments)},n.wbg.__wbg_require_79b1e9274cde3c87=function(){return f_(function(){return module.require},arguments)},n.wbg.__wbg_serveridaddr_new=function(t){return Ja.__wrap(t)},n.wbg.__wbg_serveridaddr_unwrap=function(t){return Ja.__unwrap(t)},n.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){t.set(e,r>>>0)},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const r=e.stack,s=c_(r,st.__wbindgen_malloc,st.__wbindgen_realloc),_=oe;cr().setInt32(t+4*1,_,!0),cr().setInt32(t+4*0,s,!0)},n.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t=typeof kf>"u"?null:kf;return ps(t)?0:Qa(t)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t=typeof globalThis>"u"?null:globalThis;return ps(t)?0:Qa(t)},n.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t=typeof self>"u"?null:self;return ps(t)?0:Qa(t)},n.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t=typeof window>"u"?null:window;return ps(t)?0:Qa(t)},n.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,e,r){return t.subarray(e>>>0,r>>>0)},n.wbg.__wbg_typedciphertext_new=function(t){return yu.__wrap(t)},n.wbg.__wbg_typedciphertext_unwrap=function(t){return yu.__unwrap(t)},n.wbg.__wbg_typedplaintext_new=function(t){return Yh.__wrap(t)},n.wbg.__wbg_typedsigncryptedciphertext_new=function(t){return Au.__wrap(t)},n.wbg.__wbg_typedsigncryptedciphertext_unwrap=function(t){return Au.__unwrap(t)},n.wbg.__wbg_userdecryptionresponse_unwrap=function(t){return Hh.__unwrap(t)},n.wbg.__wbg_value_cd1ffa7b1ab794f1=function(t){return t.value},n.wbg.__wbg_versions_c71aa1626a93e0a1=function(t){return t.versions},n.wbg.__wbindgen_as_number=function(t){return+t},n.wbg.__wbindgen_boolean_get=function(t){const e=t;return typeof e=="boolean"?e?1:0:2},n.wbg.__wbindgen_debug_string=function(t,e){const r=Vh(e),s=c_(r,st.__wbindgen_malloc,st.__wbindgen_realloc),_=oe;cr().setInt32(t+4*1,_,!0),cr().setInt32(t+4*0,s,!0)},n.wbg.__wbindgen_error_new=function(t,e){return new Error(bu(t,e))},n.wbg.__wbindgen_in=function(t,e){return t in e},n.wbg.__wbindgen_init_externref_table=function(){const t=st.__wbindgen_export_4,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},n.wbg.__wbindgen_is_function=function(t){return typeof t=="function"},n.wbg.__wbindgen_is_null=function(t){return t===null},n.wbg.__wbindgen_is_object=function(t){const e=t;return typeof e=="object"&&e!==null},n.wbg.__wbindgen_is_string=function(t){return typeof t=="string"},n.wbg.__wbindgen_is_undefined=function(t){return t===void 0},n.wbg.__wbindgen_jsval_loose_eq=function(t,e){return t==e},n.wbg.__wbindgen_memory=function(){return st.memory},n.wbg.__wbindgen_number_get=function(t,e){const r=e,s=typeof r=="number"?r:void 0;cr().setFloat64(t+8*1,ps(s)?0:s,!0),cr().setInt32(t+4*0,!ps(s),!0)},n.wbg.__wbindgen_string_get=function(t,e){const r=e,s=typeof r=="string"?r:void 0;var _=ps(s)?0:c_(s,st.__wbindgen_malloc,st.__wbindgen_realloc),a=oe;cr().setInt32(t+4*1,a,!0),cr().setInt32(t+4*0,_,!0)},n.wbg.__wbindgen_string_new=function(t,e){return bu(t,e)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(bu(t,e))},n}function Vv(n,t){return st=n.exports,qh.__wbindgen_wasm_module=t,u_=null,gu=null,st.__wbindgen_start(),st}async function qh(n){if(st!==void 0)return st;typeof n<"u"&&(Object.getPrototypeOf(n)===Object.prototype?{module_or_path:n}=n:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof n>"u"&&(n=new URL("/kms_lib_bg.wasm",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ft&&Ft.tagName.toUpperCase()==="SCRIPT"&&Ft.src||new URL("relayer-sdk-js.umd.cjs",document.baseURI).href));const t=jv();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:r}=await Lv(await n,t);return Vv(e,r)}const Yv=BigInt(1024*1024*512),Qh=BigInt(1024*1024*512),Wh=BigInt(1024*1024*512),mu=n=>n?n.endsWith("/")?n.slice(0,-1):n:"",dm=n=>{let t=n.toString(16);return t.length%2?"0"+t:t},ur=n=>{const t=n.replace(/^(0x)/,"").match(/.{1,2}/g);return t?Uint8Array.from(t.map(e=>parseInt(e,16))):new Uint8Array},Ai=(n,t=!1)=>`${t?"0x":""}${n.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")}`,Df=function(n){if(!n||(n==null?void 0:n.length)===0)return BigInt(0);const t=Array.from(n).map(e=>e.toString(16).padStart(2,"0")).join("");return BigInt(`0x${t}`)},Jh={},gm=async(n,t)=>{if(Jh[n])return Jh[n];try{const e=await fetch(`${n}/v1/keyurl`);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();if(r){let s;if(!t)s=r.response.fhe_key_info[0].fhe_public_key.urls[0],t=r.response.fhe_key_info[0].fhe_public_key.data_id;else{const B=r.response.fhe_key_info.find(I=>I.fhe_public_key.data_id===t);if(!B)throw new Error(`Could not find FHE key info with data_id ${t}`);s=B.fhe_public_key.urls[0]}const _=await fetch(s);if(!_.ok)throw new Error(`HTTP error! status: ${_.status} on ${_.url}`);let a;typeof _.bytes=="function"?a=await _.bytes():a=new Uint8Array(await _.arrayBuffer());const c=r.response.crs[2048].urls[0],u=r.response.crs[2048].data_id,l=await fetch(c);if(!l.ok)throw new Error(`HTTP error! status: ${l.status} on ${l.url}`);let f;typeof l.bytes=="function"?f=await l.bytes():f=new Uint8Array(await l.arrayBuffer());let w;try{w=TFHE.TfheCompactPublicKey.safe_deserialize(a,Qh)}catch(B){throw new Error("Invalid public key (deserialization failed)",{cause:B})}let y;try{y=TFHE.CompactPkeCrs.safe_deserialize(new Uint8Array(f),Wh)}catch(B){throw new Error("Invalid crs (deserialization failed)",{cause:B})}const M={publicKey:w,publicKeyId:t,publicParams:{2048:{publicParams:y,publicParamsId:u}}};return Jh[n]=M,M}else throw new Error("No public key available")}catch(e){throw new Error("Impossible to fetch public key: wrong relayer url.",{cause:e})}},bm=["function getKmsSigners() view returns (address[])","function getThreshold() view returns (uint256)"],ym=["function getCoprocessorSigners() view returns (address[])","function getThreshold() view returns (uint256)"],Hv=n=>{if(typeof n.network=="string")return new sz(n.network);if(n.network)return new oz(n.network);throw new Error("You must provide a network URL or a EIP1193 object (eg: window.ethereum)")},qv=async(n,t)=>{if(t.chainId&&typeof t.chainId=="number")return t.chainId;if(t.chainId&&typeof t.chainId!="number")throw new Error("chainId must be a number.");{const e=(await n.getNetwork()).chainId;return Number(e)}},Qv=async n=>{if(n.relayerUrl&&!n.publicKey){const t=await gm(mu(n.relayerUrl));return{publicKey:t.publicKey,publicKeyId:t.publicKeyId}}else if(n.publicKey&&n.publicKey.data&&n.publicKey.id){const t=n.publicKey.data;try{return{publicKey:TFHE.TfheCompactPublicKey.safe_deserialize(t,Qh),publicKeyId:n.publicKey.id}}catch(e){throw new Error("Invalid public key (deserialization failed)",{cause:e})}}else throw new Error("You must provide a public key with its public key ID.")},Wv=async n=>{if(n.relayerUrl&&!n.publicParams)return(await gm(mu(n.relayerUrl))).publicParams;if(n.publicParams&&n.publicParams[2048]){const t=n.publicParams[2048].publicParams;try{return{2048:{publicParams:TFHE.CompactPkeCrs.safe_deserialize(t,Wh),publicParamsId:n.publicParams[2048].publicParamsId}}}catch(e){throw new Error("Invalid public key (deserialization failed)",{cause:e})}}else throw new Error("You must provide a valid CRS with its CRS ID.")},Jv=async(n,t)=>await new Pr(t.kmsContractAddress,bm,n).getKmsSigners(),$v=async(n,t)=>{const r=await new Pr(t.kmsContractAddress,bm,n).getThreshold();return Number(r)},Zv=async(n,t)=>await new Pr(t.inputVerifierContractAddress,ym,n).getCoprocessorSigners(),Xv=async(n,t)=>{const r=await new Pr(t.inputVerifierContractAddress,ym,n).getThreshold();return Number(r)},Am={0:2,2:8,3:16,4:32,5:64,6:128,7:160,8:256,9:512,10:1024,11:2048};function mm(n){let t=0;for(const e of n){if(e.length!==66)throw new Error(`Handle ${e} is not of valid length`);const r=e.slice(-4,-2).toLowerCase(),s=parseInt(r,16);if(!(s in Am))throw new Error(`Handle ${e} is not of valid type`);if(t+=Am[s],t>2048)throw new Error("Cannot decrypt more than 2048 encrypted bits in a single request")}return t}const tM=["function persistAllowed(bytes32 handle, address account) view returns (bool)"],Sm=10,Rm=BigInt(365);function eM(n,t){return t===0?n===BigInt(1):t===7?Vt("0x"+n.toString(16).padStart(40,"0")):t===9?"0x"+n.toString(16).padStart(128,"0"):t===10?"0x"+n.toString(16).padStart(256,"0"):t===11?"0x"+n.toString(16).padStart(512,"0"):n}function rM(n,t){let e=[];for(const s of n){const _=s.slice(-4,-2).toLowerCase(),a=parseInt(_,16);e.push(a)}let r={};return n.forEach((s,_)=>r[s]=eM(t[_],e[_])),r}function nM(n,t){if(t===BigInt(0))throw Error("durationDays is null");if(t>Rm)throw Error(`durationDays is above max duration of ${Rm}`);const e=BigInt(Math.floor(Date.now()/1e3));if(n>e)throw Error("startTimestamp is set in the future");const r=t*BigInt(86400);if(n+r<e)throw Error("User decrypt request has expired")}const iM=(n,t,e,r,s,_,a)=>async(c,u,l,f,w,y,M,B)=>{const I=f.replace(/^(0x)/,""),G=l.replace(/^(0x)/,""),P=c.map(At=>({handle:typeof At.handle=="string"?Ai(ur(At.handle),!0):Ai(At.handle,!0),contractAddress:At.contractAddress}));mm(P.map(At=>At.handle)),nM(BigInt(M),BigInt(B));const v=new Pr(s,tM,a),N=P.map(async({handle:At,contractAddress:Bt})=>{const ft=await v.persistAllowed(At,y),wt=await v.persistAllowed(At,Bt);if(!ft)throw new Error(`User ${y} is not authorized to user decrypt handle ${At}!`);if(!wt)throw new Error(`dapp contract ${Bt} is not authorized to user decrypt handle ${At}!`);if(y===Bt)throw new Error(`userAddress ${y} should not be equal to contractAddress when requesting user decryption!`)}),C=w.length;if(C===0)throw Error("contractAddresses is empty");if(C>Sm)throw Error(`contractAddresses max length of ${Sm} exceeded`);await Promise.all(N).catch(At=>{throw At});const F={handleContractPairs:P,requestValidity:{startTimestamp:M.toString(),durationDays:B.toString()},contractsChainId:e.toString(),contractAddresses:w.map(At=>Vt(At)),userAddress:Vt(y),signature:I,publicKey:G},D={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F)};let j,L;try{j=TKMS.u8vec_to_ml_kem_pke_pk(ur(l)),L=TKMS.u8vec_to_ml_kem_pke_sk(ur(u))}catch(At){throw new Error("Invalid public or private key",{cause:At})}let Z,ot;try{if(Z=await fetch(`${_}/v1/user-decrypt`,D),!Z.ok)throw new Error(`User decrypt failed: relayer respond with HTTP code ${Z.status}`)}catch(At){throw new Error("User decrypt failed: Relayer didn't respond",{cause:At})}try{ot=await Z.json()}catch(At){throw new Error("User decrypt failed: Relayer didn't return a JSON",{cause:At})}if(ot.status==="failure")throw new Error("User decrypt failed: the user decryption didn't succeed for an unknown reason",{cause:ot});let pt=n.map((At,Bt)=>TKMS.new_server_id_addr(Bt+1,At));const Y=TKMS.new_client(pt,y,"default");try{const At=new ArrayBuffer(32);new DataView(At).setUint32(28,t,!1);const wt={name:"Decryption",version:"1",chain_id:new Uint8Array(At),verifying_contract:r,salt:null},Pt={signature:I,client_address:y,enc_key:G,ciphertext_handles:P.map(jt=>jt.handle.replace(/^0x/,"")),eip712_verifying_contract:r},Mt=TKMS.process_user_decryption_resp_from_js(Y,Pt,wt,ot.response,j,L,!0).map(jt=>Df(jt.bytes));return rM(P.map(jt=>jt.handle),Mt)}catch(At){throw new Error("An error occured during decryption",{cause:At})}},mi=(n,t)=>{if(n==null)throw new Error("Missing value");let e;if(t>=8?e=BigInt(`0x${new Array(t/8).fill(null).reduce(r=>`${r}ff`,"")}`):e=BigInt(2**t-1),typeof n!="number"&&typeof n!="bigint")throw new Error("Value must be a number or a bigint.");if(n>e)throw new Error(`The value exceeds the limit for ${t}bits integer (${e.toString()}).`)},sM=({aclContractAddress:n,chainId:t,tfheCompactPublicKey:e,publicParams:r,contractAddress:s,userAddress:_})=>{if(!sr(s))throw new Error("Contract address is not a valid address.");if(!sr(_))throw new Error("User address is not a valid address.");const a=e,c=[],u=TFHE.CompactCiphertextList.builder(a);let l=new Uint8Array;const f=w=>{if(c.reduce((y,M)=>y+Math.max(2,M),0)+w>2048)throw Error("Packing more than 2048 bits in a single input ciphertext is unsupported");if(c.length+1>256)throw Error("Packing more than 256 variables in a single input ciphertext is unsupported")};return{addBool(w){if(w==null)throw new Error("Missing value");if(typeof w!="boolean"&&typeof w!="number"&&typeof w!="bigint")throw new Error("The value must be a boolean, a number or a bigint.");if(Number(w)>1)throw new Error("The value must be 1 or 0.");return mi(Number(w),1),f(2),u.push_boolean(!!w),c.push(1),this},add8(w){return mi(w,8),f(8),u.push_u8(Number(w)),c.push(8),this},add16(w){return mi(w,16),f(16),u.push_u16(Number(w)),c.push(16),this},add32(w){return mi(w,32),f(32),u.push_u32(Number(w)),c.push(32),this},add64(w){return mi(w,64),f(64),u.push_u64(BigInt(w)),c.push(64),this},add128(w){return mi(w,128),f(128),u.push_u128(BigInt(w)),c.push(128),this},addAddress(w){if(!sr(w))throw new Error("The value must be a valid address.");return f(160),u.push_u160(BigInt(w)),c.push(160),this},add256(w){return mi(w,256),f(256),u.push_u256(BigInt(w)),c.push(256),this},addBytes64(w){if(w.length!==64)throw Error("Uncorrect length of input Uint8Array, should be 64 for an ebytes64");const y=Df(w);return mi(y,512),f(512),u.push_u512(y),c.push(512),this},addBytes128(w){if(w.length!==128)throw Error("Uncorrect length of input Uint8Array, should be 128 for an ebytes128");const y=Df(w);return mi(y,1024),f(1024),u.push_u1024(y),c.push(1024),this},addBytes256(w){if(w.length!==256)throw Error("Uncorrect length of input Uint8Array, should be 256 for an ebytes256");const y=Df(w);return mi(y,2048),f(2048),u.push_u2048(y),c.push(2048),this},getBits(){return c},encrypt(){const y=(()=>{const C=L=>Object.keys(L),F=c.reduce((L,Z)=>L+Z,0),D=C(r),j=D.find(L=>Number(L)>=F);if(!j)throw new Error(`Too many bits in provided values. Maximum is ${D[D.length-1]}.`);return j})(),M=r[y].publicParams,B=ur(s),I=ur(_),G=ur(n),P=ur(t.toString(16).padStart(64,"0")),v=new Uint8Array(B.length+I.length+G.length+32);return v.set(B,0),v.set(I,20),v.set(G,40),v.set(P,v.length-P.length),l=u.build_with_proof_packed(M,v,TFHE.ZkComputeLoad.Verify).safe_serialize(Yv),l}}},Em={1:0,8:2,16:3,32:4,64:5,128:6,160:7,256:8,512:9,1024:10,2048:11},_M=BigInt("18446744073709551615"),oM=(n,t,e,r,s)=>{const _=gb("keccak256").update(yr.from(n)).digest(),a=yr.from(ur(e)),c=r.toString(16).padStart(64,"0"),u=yr.from(c,"hex");return t.map((f,w)=>{const y=Em[f],M=yr.from([w]),B=gb("keccak256").update(_).update(M).update(a).update(u).digest(),I=new Uint8Array(32);if(I.set(B,0),BigInt(r)>_M)throw new Error("ChainId exceeds maximum allowed value (8 bytes)");const G=ur(c).slice(24,32);return I[21]=w,I.set(G,22),I[30]=y,I[31]=s,I})},aM=()=>0;function cM(n,t,e){const r=new Map;t.forEach((s,_)=>{if(r.has(s)){const a=s;throw new Error(`Duplicate coprocessor signer address found: ${a} appears multiple times in recovered addresses`)}r.set(s,_)});for(const s of t)if(!n.includes(s))throw new Error(`Invalid address found: ${s} is not in the list of coprocessor signers`);return t.length>=e}const uM=(n,t,e,r,s,_,a,c,u)=>(l,f)=>{if(!sr(l))throw new Error("Contract address is not a valid address.");if(!sr(f))throw new Error("User address is not a valid address.");const w=sM({aclContractAddress:n,chainId:e,tfheCompactPublicKey:_,publicParams:a,contractAddress:l,userAddress:f});return{_input:w,addBool(y){return w.addBool(y),this},add8(y){return w.add8(y),this},add16(y){return w.add16(y),this},add32(y){return w.add32(y),this},add64(y){return w.add64(y),this},add128(y){return w.add128(y),this},add256(y){return w.add256(y),this},addBytes64(y){return w.addBytes64(y),this},addBytes128(y){return w.addBytes128(y),this},addBytes256(y){return w.addBytes256(y),this},addAddress(y){return w.addAddress(y),this},getBits(){return w.getBits()},encrypt:async()=>{const y=w.getBits(),M=w.encrypt(),B={contractAddress:Vt(l),userAddress:Vt(f),ciphertextWithInputVerification:Ai(M),contractChainId:"0x"+e.toString(16)},I={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)},G=`${s}/v1/input-proof`;let P;try{const pt=await fetch(G,I);if(!pt.ok)throw new Error(`Relayer didn't response correctly. Bad status ${pt.statusText}. Content: ${await pt.text()}`);try{P=await pt.json()}catch(Y){throw new Error("Relayer didn't response correctly. Bad JSON.",{cause:Y})}}catch(pt){throw new Error("Relayer didn't response correctly.",{cause:pt})}const v=oM(M,y,n,e,aM());if(P.response.handles&&P.response.handles.length>0){const pt=P.response.handles.map(ur);if(v.length!=pt.length)throw new Error(`Incorrect Handles list sizes: (expected) ${v.length} != ${pt.length} (received)`);for(let Y=0;Y<v.length;Y+=1){let At=v[Y],Bt=pt[Y],ft=Ai(At),wt=Ai(Bt);if(ft!==wt)throw new Error(`Incorrect Handle ${Y}: (expected) ${ft} != ${wt} (received)`)}}const N=P.response.signatures,C={name:"InputVerification",version:"1",chainId:r,verifyingContract:t},F={CiphertextVerification:[{name:"ctHandles",type:"bytes32[]"},{name:"userAddress",type:"address"},{name:"contractAddress",type:"address"},{name:"contractChainId",type:"uint256"}]},D=N.map(pt=>{const Y=pt.startsWith("0x")?pt:`0x${pt}`;return Ng(C,F,{ctHandles:v,userAddress:f,contractAddress:l,contractChainId:e},Y)});if(!cM(c,D,u))throw Error("Coprocessor signers threshold is not reached");let L=dm(v.length);const Z=N.length;return L+=dm(Z),v.map(pt=>Ai(pt)).map(pt=>L+=pt),N.map(pt=>L+=pt.slice(2)),{handles:v,inputProof:ur(L)}}}},fM=["function isAllowedForDecryption(bytes32 handle) view returns (bool)"];function lM(n,t,e){const r=new Map;t.forEach((s,_)=>{if(r.has(s)){const a=s;throw new Error(`Duplicate KMS signer address found: ${a} appears multiple times in recovered addresses`)}r.set(s,_)});for(const s of t)if(!n.includes(s))throw new Error(`Invalid address found: ${s} is not in the list of KMS signers`);return t.length>=e}const pM={0:"bool",2:"uint256",3:"uint256",4:"uint256",5:"uint256",6:"uint256",7:"address",8:"uint256",9:"bytes",10:"bytes",11:"bytes"};function hM(n,t){let e=[];for(const l of n){const f=l.slice(-4,-2).toLowerCase(),w=parseInt(f,16);e.push(w)}const r="0x"+"00".repeat(32)+t.slice(2)+"00".repeat(32),s=e.map(l=>pM[l]),c=new eo().decode(["uint256",...s,"bytes[]"],r).slice(1,1+e.length);let u={};return n.forEach((l,f)=>u[l]=c[f]),u}const wM=(n,t,e,r,s,_,a)=>async c=>{const u=new Pr(s,fM,a);let l;try{l=await Promise.all(c.map(async j=>{const L=Ai(typeof j=="string"?ur(j):j,!0);if(!await u.isAllowedForDecryption(L))throw new Error(`Handle ${L} is not allowed for public decryption!`);return L}))}catch(j){throw j}const f=l.map(async j=>{if(!await u.isAllowedForDecryption(j))throw new Error(`Handle ${j} is not allowed for public decryption!`)});await Promise.all(f).catch(j=>{throw j}),mm(l);const y={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ciphertextHandles:l})};let M,B;try{if(M=await fetch(`${_}/v1/public-decrypt`,y),!M.ok)throw new Error(`Public decrypt failed: relayer respond with HTTP code ${M.status}`)}catch(j){throw new Error("Public decrypt failed: Relayer didn't respond",{cause:j})}try{B=await M.json()}catch(j){throw new Error("Public decrypt failed: Relayer didn't return a JSON",{cause:j})}if(B.status==="failure")throw new Error("Public decrypt failed: the public decrypt didn't succeed for an unknown reason",{cause:B});const I={name:"Decryption",version:"1",chainId:e,verifyingContract:r},G={PublicDecryptVerification:[{name:"ctHandles",type:"bytes32[]"},{name:"decryptedResult",type:"bytes"}]},P=B.response[0],v=P.decrypted_value.startsWith("0x")?P.decrypted_value:`0x${P.decrypted_value}`,C=P.signatures.map(j=>{const L=j.startsWith("0x")?j:`0x${j}`;return Ng(I,G,{ctHandles:l,decryptedResult:v},L)});if(!lM(n,C,t))throw Error("KMS signers threshold is not reached");return hM(l,v)},Pm=(n,t)=>(e,r,s,_,a)=>{if(a&&!sr(a))throw new Error("Invalid delegated account.");if(!sr(n))throw new Error("Invalid verifying contract address.");if(!r.every(y=>sr(y)))throw new Error("Invalid contract address.");const c=typeof e=="string"?e.startsWith("0x")?e:`0x${e}`:e,u=typeof s=="number"?s.toString():s,l=typeof _=="number"?_.toString():_,f=[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],w={name:"Decryption",version:"1",chainId:t,verifyingContract:n};return a?{types:{EIP712Domain:f,DelegatedUserDecryptRequestVerification:[{name:"publicKey",type:"bytes"},{name:"contractAddresses",type:"address[]"},{name:"contractsChainId",type:"uint256"},{name:"startTimestamp",type:"uint256"},{name:"durationDays",type:"uint256"},{name:"delegatedAccount",type:"address"}]},primaryType:"DelegatedUserDecryptRequestVerification",domain:w,message:{publicKey:c,contractAddresses:r,contractsChainId:t,startTimestamp:u,durationDays:l,delegatedAccount:a}}:{types:{EIP712Domain:f,UserDecryptRequestVerification:[{name:"publicKey",type:"bytes"},{name:"contractAddresses",type:"address[]"},{name:"contractsChainId",type:"uint256"},{name:"startTimestamp",type:"uint256"},{name:"durationDays",type:"uint256"}]},primaryType:"UserDecryptRequestVerification",domain:w,message:{publicKey:c,contractAddresses:r,contractsChainId:t,startTimestamp:u,durationDays:l}}},zm=()=>{const n=TKMS.ml_kem_pke_keygen();return{publicKey:Ai(TKMS.ml_kem_pke_pk_to_u8vec(TKMS.ml_kem_pke_get_pk(n))),privateKey:Ai(TKMS.ml_kem_pke_sk_to_u8vec(n))}};te.fetch=ov(te.fetch,{retries:5,retryDelay:500});const dM={aclContractAddress:"0x687820221192C5B662b25367F70076A37bc79b6c",kmsContractAddress:"0x1364cBBf2cDF5032C47d8226a6f6FBD2AFCDacAC",inputVerifierContractAddress:"0xbc91f3daD1A5F19F8390c400196e58073B6a0BC4",verifyingContractAddressDecryption:"0xb6E160B1ff80D67Bfe90A85eE06Ce0A2613607D1",verifyingContractAddressInputVerification:"0x7048C39f048125eDa9d678AEbaDfB22F7900a29F",chainId:11155111,gatewayChainId:55815,network:"https://eth-sepolia.public.blastapi.io",relayerUrl:"https://relayer.testnet.zama.cloud"},gM=async n=>{const{verifyingContractAddressDecryption:t,verifyingContractAddressInputVerification:e,publicKey:r,kmsContractAddress:s,aclContractAddress:_,gatewayChainId:a}=n;if(!s||!sr(s))throw new Error("KMS contract address is not valid or empty");if(!t||!sr(t))throw new Error("Verifying contract for Decryption address is not valid or empty");if(!e||!sr(e))throw new Error("Verifying contract for InputVerification address is not valid or empty");if(!_||!sr(_))throw new Error("ACL contract address is not valid or empty");if(r&&!(r.data instanceof Uint8Array))throw new Error("publicKey must be a Uint8Array");const c=Hv(n);if(!c)throw new Error("No network has been provided!");const u=await qv(c,n),l=await Qv(n),f=await Wv(n),w=await Jv(c,n),y=await $v(c,n),M=await Zv(c,n),B=await Xv(c,n);return{createEncryptedInput:uM(_,e,u,a,mu(n.relayerUrl),l.publicKey,f,M,B),generateKeypair:zm,createEIP712:Pm(t,u),publicDecrypt:wM(w,y,a,t,_,mu(n.relayerUrl),c),userDecrypt:iM(w,a,u,t,_,mu(n.relayerUrl),c),getPublicKey:()=>l.publicKey?{publicKey:l.publicKey.safe_serialize(Qh),publicKeyId:l.publicKeyId}:null,getPublicParams:I=>f[I]?{publicParams:f[I].publicParams.safe_serialize(Wh),publicParamsId:f[I].publicParamsId}:null}};let vm=!1;const bM=async({tfheParams:n,kmsParams:t,thread:e}={})=>(e==null&&(e=navigator.hardwareConcurrency),await av()||(console.warn(`This browser does not support threads. Verify that your server returns correct headers:
|
|
23
23
|
`,`'Cross-Origin-Opener-Policy': 'same-origin'
|
|
24
|
-
`,"'Cross-Origin-Embedder-Policy': 'require-corp'"),e=void 0),vm||(await
|
|
24
|
+
`,"'Cross-Origin-Embedder-Policy': 'require-corp'"),e=void 0),vm||(await du({module_or_path:n}),await qh({module_or_path:t}),e&&(Kh(),await Dh(e)),vm=!0),!0);window.TFHE={default:du,initThreadPool:Dh,init_panic_hook:Kh,TfheCompactPublicKey:ar,CompactPkeCrs:zr,CompactCiphertextList:fs,ZkComputeLoad:Sb},window.TKMS={default:qh,u8vec_to_ml_kem_pke_pk:Fv,u8vec_to_ml_kem_pke_sk:Uv,new_client:Nv,new_server_id_addr:Iv,process_user_decryption_resp_from_js:Kv,ml_kem_pke_keygen:Ov,ml_kem_pke_pk_to_u8vec:Tv,ml_kem_pke_sk_to_u8vec:Gv,ml_kem_pke_get_pk:kv},Ut.ENCRYPTION_TYPES=Em,Ut.SepoliaConfig=dM,Ut.createEIP712=Pm,Ut.createInstance=gM,Ut.generateKeypair=zm,Ut.initSDK=bM,Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"})});
|