@msafe/sui-app-store 0.0.4 → 0.0.6

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.
@@ -1,8 +1,8 @@
1
- "use strict";var MSafeWallet=(()=>{var qs=Object.create;var nt=Object.defineProperty;var Ks=Object.getOwnPropertyDescriptor;var Vs=Object.getOwnPropertyNames;var Gs=Object.getPrototypeOf,Xs=Object.prototype.hasOwnProperty;var Pn=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Js=(t,e)=>{for(var r in e)nt(t,r,{get:e[r],enumerable:!0})},zn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Vs(e))!Xs.call(t,i)&&i!==r&&nt(t,i,{get:()=>e[i],enumerable:!(n=Ks(e,i))||n.enumerable});return t};var Er=(t,e,r)=>(r=t!=null?qs(Gs(t)):{},zn(e||!t||!t.__esModule?nt(r,"default",{value:t,enumerable:!0}):r,t)),Ys=t=>zn(nt({},"__esModule",{value:!0}),t);var Nn=H((Bf,Mn)=>{"use strict";function Zs(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var i=t.charAt(n),o=i.charCodeAt(0);if(e[o]!==255)throw new TypeError(i+" is ambiguous");e[o]=n}var s=t.length,a=t.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function f(d){if(d instanceof Uint8Array||(ArrayBuffer.isView(d)?d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength):Array.isArray(d)&&(d=Uint8Array.from(d))),!(d instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(d.length===0)return"";for(var p=0,g=0,v=0,h=d.length;v!==h&&d[v]===0;)v++,p++;for(var y=(h-v)*l+1>>>0,B=new Uint8Array(y);v!==h;){for(var m=d[v],E=0,b=y-1;(m!==0||E<g)&&b!==-1;b--,E++)m+=256*B[b]>>>0,B[b]=m%s>>>0,m=m/s>>>0;if(m!==0)throw new Error("Non-zero carry");g=E,v++}for(var I=y-g;I!==y&&B[I]===0;)I++;for(var S=a.repeat(p);I<y;++I)S+=t.charAt(B[I]);return S}function u(d){if(typeof d!="string")throw new TypeError("Expected String");if(d.length===0)return new Uint8Array;for(var p=0,g=0,v=0;d[p]===a;)g++,p++;for(var h=(d.length-p)*c+1>>>0,y=new Uint8Array(h);d[p];){var B=e[d.charCodeAt(p)];if(B===255)return;for(var m=0,E=h-1;(B!==0||m<v)&&E!==-1;E--,m++)B+=s*y[E]>>>0,y[E]=B%256>>>0,B=B/256>>>0;if(B!==0)throw new Error("Non-zero carry");v=m,p++}for(var b=h-v;b!==h&&y[b]===0;)b++;for(var I=new Uint8Array(g+(h-b)),S=g;b!==h;)I[S++]=y[b++];return I}function x(d){var p=u(d);if(p)return p;throw new Error("Non-base"+s+" character")}return{encode:f,decodeUnsafe:u,decode:x}}Mn.exports=Zs});var Hn=H((Ef,$n)=>{var Qs=Nn(),ea="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";$n.exports=Qs(ea)});var xi=H(mt=>{"use strict";mt.byteLength=Ha;mt.toByteArray=Wa;mt.fromByteArray=Va;var Me=[],_e=[],$a=typeof Uint8Array<"u"?Uint8Array:Array,Qr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(c0=0,fi=Qr.length;c0<fi;++c0)Me[c0]=Qr[c0],_e[Qr.charCodeAt(c0)]=c0;var c0,fi;_e["-".charCodeAt(0)]=62;_e["_".charCodeAt(0)]=63;function ui(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Ha(t){var e=ui(t),r=e[0],n=e[1];return(r+n)*3/4-n}function La(t,e,r){return(e+r)*3/4-r}function Wa(t){var e,r=ui(t),n=r[0],i=r[1],o=new $a(La(t,n,i)),s=0,a=i>0?n-4:n,c;for(c=0;c<a;c+=4)e=_e[t.charCodeAt(c)]<<18|_e[t.charCodeAt(c+1)]<<12|_e[t.charCodeAt(c+2)]<<6|_e[t.charCodeAt(c+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=_e[t.charCodeAt(c)]<<2|_e[t.charCodeAt(c+1)]>>4,o[s++]=e&255),i===1&&(e=_e[t.charCodeAt(c)]<<10|_e[t.charCodeAt(c+1)]<<4|_e[t.charCodeAt(c+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function qa(t){return Me[t>>18&63]+Me[t>>12&63]+Me[t>>6&63]+Me[t&63]}function Ka(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(qa(n));return i.join("")}function Va(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Ka(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(Me[e>>2]+Me[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Me[e>>10]+Me[e>>4&63]+Me[e<<2&63]+"=")),i.join("")}});var li=H(en=>{en.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,f=-7,u=r?i-1:0,x=r?-1:1,d=t[e+u];for(u+=x,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=o*256+t[e+u],u+=x,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=s*256+t[e+u],u+=x,f-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(d?-1:1)*s*Math.pow(2,o-n)};en.write=function(t,e,r,n,i,o){var s,a,c,l=o*8-i-1,f=(1<<l)-1,u=f>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+u>=1?e+=x/c:e+=x*Math.pow(2,1-u),e*c>=2&&(s++,c/=2),s+u>=f?(a=0,s=f):s+u>=1?(a=(e*c-1)*Math.pow(2,i),s=s+u):(a=e*Math.pow(2,u-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=a&255,d+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[r+d]=s&255,d+=p,s/=256,l-=8);t[r+d-p]|=g*128}});var _i=H(S0=>{"use strict";var tn=xi(),F0=li(),di=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;S0.Buffer=w;S0.SlowBuffer=Qa;S0.INSPECT_MAX_BYTES=50;var Bt=2147483647;S0.kMaxLength=Bt;w.TYPED_ARRAY_SUPPORT=Ga();!w.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 Ga(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}});Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}});function He(t){if(t>Bt)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,w.prototype),e}function w(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return sn(t)}return gi(t,e,r)}w.poolSize=8192;function gi(t,e,r){if(typeof t=="string")return Ja(t,e);if(ArrayBuffer.isView(t))return Ya(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Ne(t,ArrayBuffer)||t&&Ne(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ne(t,SharedArrayBuffer)||t&&Ne(t.buffer,SharedArrayBuffer)))return nn(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return w.from(n,e,r);let i=Za(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return w.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}w.from=function(t,e,r){return gi(t,e,r)};Object.setPrototypeOf(w.prototype,Uint8Array.prototype);Object.setPrototypeOf(w,Uint8Array);function vi(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function Xa(t,e,r){return vi(t),t<=0?He(t):e!==void 0?typeof r=="string"?He(t).fill(e,r):He(t).fill(e):He(t)}w.alloc=function(t,e,r){return Xa(t,e,r)};function sn(t){return vi(t),He(t<0?0:an(t)|0)}w.allocUnsafe=function(t){return sn(t)};w.allocUnsafeSlow=function(t){return sn(t)};function Ja(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!w.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=mi(t,e)|0,n=He(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function rn(t){let e=t.length<0?0:an(t.length)|0,r=He(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Ya(t){if(Ne(t,Uint8Array)){let e=new Uint8Array(t);return nn(e.buffer,e.byteOffset,e.byteLength)}return rn(t)}function nn(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,w.prototype),n}function Za(t){if(w.isBuffer(t)){let e=an(t.length)|0,r=He(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||fn(t.length)?He(0):rn(t);if(t.type==="Buffer"&&Array.isArray(t.data))return rn(t.data)}function an(t){if(t>=Bt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bt.toString(16)+" bytes");return t|0}function Qa(t){return+t!=t&&(t=0),w.alloc(+t)}w.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==w.prototype};w.compare=function(e,r){if(Ne(e,Uint8Array)&&(e=w.from(e,e.offset,e.byteLength)),Ne(r,Uint8Array)&&(r=w.from(r,r.offset,r.byteLength)),!w.isBuffer(e)||!w.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,i=r.length;for(let o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};w.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};w.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return w.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let i=w.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){let s=e[n];if(Ne(s,Uint8Array))o+s.length>i.length?(w.isBuffer(s)||(s=w.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(w.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function mi(t,e){if(w.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Ne(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return on(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Si(t).length;default:if(i)return n?-1:on(t).length;e=(""+e).toLowerCase(),i=!0}}w.byteLength=mi;function ec(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return uc(this,e,r);case"utf8":case"utf-8":return Ei(this,e,r);case"ascii":return cc(this,e,r);case"latin1":case"binary":return fc(this,e,r);case"base64":return sc(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xc(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}w.prototype._isBuffer=!0;function f0(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}w.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)f0(this,r,r+1);return this};w.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)f0(this,r,r+3),f0(this,r+1,r+2);return this};w.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)f0(this,r,r+7),f0(this,r+1,r+6),f0(this,r+2,r+5),f0(this,r+3,r+4);return this};w.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Ei(this,0,e):ec.apply(this,arguments)};w.prototype.toLocaleString=w.prototype.toString;w.prototype.equals=function(e){if(!w.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:w.compare(this,e)===0};w.prototype.inspect=function(){let e="",r=S0.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};di&&(w.prototype[di]=w.prototype.inspect);w.prototype.compare=function(e,r,n,i,o){if(Ne(e,Uint8Array)&&(e=w.from(e,e.offset,e.byteLength)),!w.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;let s=o-i,a=n-r,c=Math.min(s,a),l=this.slice(i,o),f=e.slice(r,n);for(let u=0;u<c;++u)if(l[u]!==f[u]){s=l[u],a=f[u];break}return s<a?-1:a<s?1:0};function Bi(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,fn(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=w.from(e,n)),w.isBuffer(e))return e.length===0?-1:hi(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):hi(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function hi(t,e,r,n,i){let o=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,a/=2,r/=2}function c(f,u){return o===1?f[u]:f.readUInt16BE(u*o)}let l;if(i){let f=-1;for(l=r;l<s;l++)if(c(t,l)===c(e,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===a)return f*o}else f!==-1&&(l-=l-f),f=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){let f=!0;for(let u=0;u<a;u++)if(c(t,l+u)!==c(e,u)){f=!1;break}if(f)return l}return-1}w.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};w.prototype.indexOf=function(e,r,n){return Bi(this,e,r,n,!0)};w.prototype.lastIndexOf=function(e,r,n){return Bi(this,e,r,n,!1)};function tc(t,e,r,n){r=Number(r)||0;let i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=e.length;n>o/2&&(n=o/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(fn(a))return s;t[r+s]=a}return s}function rc(t,e,r,n){return Et(on(e,t.length-r),t,r,n)}function nc(t,e,r,n){return Et(pc(e),t,r,n)}function ic(t,e,r,n){return Et(Si(e),t,r,n)}function oc(t,e,r,n){return Et(yc(e,t.length-r),t,r,n)}w.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return tc(this,e,r,n);case"utf8":case"utf-8":return rc(this,e,r,n);case"ascii":case"latin1":case"binary":return nc(this,e,r,n);case"base64":return ic(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oc(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function sc(t,e,r){return e===0&&r===t.length?tn.fromByteArray(t):tn.fromByteArray(t.slice(e,r))}function Ei(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){let c,l,f,u;switch(a){case 1:o<128&&(s=o);break;case 2:c=t[i+1],(c&192)===128&&(u=(o&31)<<6|c&63,u>127&&(s=u));break;case 3:c=t[i+1],l=t[i+2],(c&192)===128&&(l&192)===128&&(u=(o&15)<<12|(c&63)<<6|l&63,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:c=t[i+1],l=t[i+2],f=t[i+3],(c&192)===128&&(l&192)===128&&(f&192)===128&&(u=(o&15)<<18|(c&63)<<12|(l&63)<<6|f&63,u>65535&&u<1114112&&(s=u))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return ac(n)}var pi=4096;function ac(t){let e=t.length;if(e<=pi)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=pi));return r}function cc(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function fc(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function uc(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=e;o<r;++o)i+=gc[t[o]];return i}function xc(t,e,r){let n=t.slice(e,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}w.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let i=this.subarray(e,r);return Object.setPrototypeOf(i,w.prototype),i};function fe(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}w.prototype.readUintLE=w.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return i};w.prototype.readUintBE=w.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=this[e+--r],o=1;for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i};w.prototype.readUint8=w.prototype.readUInt8=function(e,r){return e=e>>>0,r||fe(e,1,this.length),this[e]};w.prototype.readUint16LE=w.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||fe(e,2,this.length),this[e]|this[e+1]<<8};w.prototype.readUint16BE=w.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||fe(e,2,this.length),this[e]<<8|this[e+1]};w.prototype.readUint32LE=w.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};w.prototype.readUint32BE=w.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};w.prototype.readBigUInt64LE=t0(function(e){e=e>>>0,D0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&V0(e,this.length-8);let i=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,o=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});w.prototype.readBigUInt64BE=t0(function(e){e=e>>>0,D0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&V0(e,this.length-8);let i=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],o=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});w.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};w.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=r,o=1,s=this[e+--i];for(;i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};w.prototype.readInt8=function(e,r){return e=e>>>0,r||fe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};w.prototype.readInt16LE=function(e,r){e=e>>>0,r||fe(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};w.prototype.readInt16BE=function(e,r){e=e>>>0,r||fe(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};w.prototype.readInt32LE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};w.prototype.readInt32BE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};w.prototype.readBigInt64LE=t0(function(e){e=e>>>0,D0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&V0(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});w.prototype.readBigInt64BE=t0(function(e){e=e>>>0,D0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&V0(e,this.length-8);let i=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});w.prototype.readFloatLE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),F0.read(this,e,!0,23,4)};w.prototype.readFloatBE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),F0.read(this,e,!1,23,4)};w.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||fe(e,8,this.length),F0.read(this,e,!0,52,8)};w.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||fe(e,8,this.length),F0.read(this,e,!1,52,8)};function me(t,e,r,n,i,o){if(!w.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}w.prototype.writeUintLE=w.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;me(this,e,r,n,a,0)}let o=1,s=0;for(this[r]=e&255;++s<n&&(o*=256);)this[r+s]=e/o&255;return r+n};w.prototype.writeUintBE=w.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;me(this,e,r,n,a,0)}let o=n-1,s=1;for(this[r+o]=e&255;--o>=0&&(s*=256);)this[r+o]=e/s&255;return r+n};w.prototype.writeUint8=w.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,1,255,0),this[r]=e&255,r+1};w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function bi(t,e,r,n,i){Di(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function wi(t,e,r,n,i){Di(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o=o>>8,t[r+6]=o,o=o>>8,t[r+5]=o,o=o>>8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}w.prototype.writeBigUInt64LE=t0(function(e,r=0){return bi(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});w.prototype.writeBigUInt64BE=t0(function(e,r=0){return wi(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});w.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);me(this,e,r,n,c-1,-c)}let o=0,s=1,a=0;for(this[r]=e&255;++o<n&&(s*=256);)e<0&&a===0&&this[r+o-1]!==0&&(a=1),this[r+o]=(e/s>>0)-a&255;return r+n};w.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);me(this,e,r,n,c-1,-c)}let o=n-1,s=1,a=0;for(this[r+o]=e&255;--o>=0&&(s*=256);)e<0&&a===0&&this[r+o+1]!==0&&(a=1),this[r+o]=(e/s>>0)-a&255;return r+n};w.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};w.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};w.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};w.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};w.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||me(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};w.prototype.writeBigInt64LE=t0(function(e,r=0){return bi(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});w.prototype.writeBigInt64BE=t0(function(e,r=0){return wi(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ai(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ci(t,e,r,n,i){return e=+e,r=r>>>0,i||Ai(t,e,r,4,34028234663852886e22,-34028234663852886e22),F0.write(t,e,r,n,23,4),r+4}w.prototype.writeFloatLE=function(e,r,n){return Ci(this,e,r,!0,n)};w.prototype.writeFloatBE=function(e,r,n){return Ci(this,e,r,!1,n)};function Fi(t,e,r,n,i){return e=+e,r=r>>>0,i||Ai(t,e,r,8,17976931348623157e292,-17976931348623157e292),F0.write(t,e,r,n,52,8),r+8}w.prototype.writeDoubleLE=function(e,r,n){return Fi(this,e,r,!0,n)};w.prototype.writeDoubleBE=function(e,r,n){return Fi(this,e,r,!1,n)};w.prototype.copy=function(e,r,n,i){if(!w.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);let o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};w.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!w.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let s=e.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{let s=w.isBuffer(e)?e:w.from(e,i),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=s[o%a]}return this};var C0={};function cn(t,e,r){C0[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}cn("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);cn("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);cn("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=yi(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=yi(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function yi(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function lc(t,e,r){D0(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&V0(e,t.length-(r+1))}function Di(t,e,r,n,i,o){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw o>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new C0.ERR_OUT_OF_RANGE("value",a,t)}lc(n,i,o)}function D0(t,e){if(typeof t!="number")throw new C0.ERR_INVALID_ARG_TYPE(e,"number",t)}function V0(t,e,r){throw Math.floor(t)!==t?(D0(t,r),new C0.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new C0.ERR_BUFFER_OUT_OF_BOUNDS:new C0.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var dc=/[^+/0-9A-Za-z-_]/g;function hc(t){if(t=t.split("=")[0],t=t.trim().replace(dc,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function on(t,e){e=e||1/0;let r,n=t.length,i=null,o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function pc(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function yc(t,e){let r,n,i,o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Si(t){return tn.toByteArray(hc(t))}function Et(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Ne(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function fn(t){return t!==t}var gc=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function t0(t){return typeof BigInt>"u"?vc:t}function vc(){throw new Error("BigInt not supported")}});var Bo=H(()=>{});var V=H((jt,Eo)=>{(function(t,e){typeof jt=="object"?Eo.exports=jt=e():typeof define=="function"&&define.amd?define([],e):t.CryptoJS=e()})(jt,function(){var t=t||function(e,r){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<"u"&&global.crypto&&(n=global.crypto),!n&&typeof Pn=="function")try{n=Bo()}catch{}var i=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function h(){}return function(y){var B;return h.prototype=y,B=new h,h.prototype=null,B}}(),s={},a=s.lib={},c=a.Base=function(){return{extend:function(h){var y=o(this);return h&&y.mixIn(h),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var y in h)h.hasOwnProperty(y)&&(this[y]=h[y]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=c.extend({init:function(h,y){h=this.words=h||[],y!=r?this.sigBytes=y:this.sigBytes=h.length*4},toString:function(h){return(h||u).stringify(this)},concat:function(h){var y=this.words,B=h.words,m=this.sigBytes,E=h.sigBytes;if(this.clamp(),m%4)for(var b=0;b<E;b++){var I=B[b>>>2]>>>24-b%4*8&255;y[m+b>>>2]|=I<<24-(m+b)%4*8}else for(var S=0;S<E;S+=4)y[m+S>>>2]=B[S>>>2];return this.sigBytes+=E,this},clamp:function(){var h=this.words,y=this.sigBytes;h[y>>>2]&=4294967295<<32-y%4*8,h.length=e.ceil(y/4)},clone:function(){var h=c.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var y=[],B=0;B<h;B+=4)y.push(i());return new l.init(y,h)}}),f=s.enc={},u=f.Hex={stringify:function(h){for(var y=h.words,B=h.sigBytes,m=[],E=0;E<B;E++){var b=y[E>>>2]>>>24-E%4*8&255;m.push((b>>>4).toString(16)),m.push((b&15).toString(16))}return m.join("")},parse:function(h){for(var y=h.length,B=[],m=0;m<y;m+=2)B[m>>>3]|=parseInt(h.substr(m,2),16)<<24-m%8*4;return new l.init(B,y/2)}},x=f.Latin1={stringify:function(h){for(var y=h.words,B=h.sigBytes,m=[],E=0;E<B;E++){var b=y[E>>>2]>>>24-E%4*8&255;m.push(String.fromCharCode(b))}return m.join("")},parse:function(h){for(var y=h.length,B=[],m=0;m<y;m++)B[m>>>2]|=(h.charCodeAt(m)&255)<<24-m%4*8;return new l.init(B,y)}},d=f.Utf8={stringify:function(h){try{return decodeURIComponent(escape(x.stringify(h)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(h){return x.parse(unescape(encodeURIComponent(h)))}},p=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=d.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var y,B=this._data,m=B.words,E=B.sigBytes,b=this.blockSize,I=b*4,S=E/I;h?S=e.ceil(S):S=e.max((S|0)-this._minBufferSize,0);var R=S*b,M=e.min(R*4,E);if(R){for(var A=0;A<R;A+=b)this._doProcessBlock(m,A);y=m.splice(0,R),B.sigBytes-=M}return new l.init(y,M)},clone:function(){var h=c.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),g=a.Hasher=p.extend({cfg:c.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var y=this._doFinalize();return y},blockSize:512/32,_createHelper:function(h){return function(y,B){return new h.init(B).finalize(y)}},_createHmacHelper:function(h){return function(y,B){return new v.HMAC.init(h,B).finalize(y)}}}),v=s.algo={};return s}(Math);return t})});var Q0=H((Rt,bo)=>{(function(t,e){typeof Rt=="object"?bo.exports=Rt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Rt,function(t){return function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,s=r.x64={},a=s.Word=i.extend({init:function(l,f){this.high=l,this.low=f}}),c=s.WordArray=i.extend({init:function(l,f){l=this.words=l||[],f!=e?this.sigBytes=f:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,f=l.length,u=[],x=0;x<f;x++){var d=l[x];u.push(d.high),u.push(d.low)}return o.create(u,this.sigBytes)},clone:function(){for(var l=i.clone.call(this),f=l.words=this.words.slice(0),u=f.length,x=0;x<u;x++)f[x]=f[x].clone();return l}})}(),t})});var Ao=H((Ut,wo)=>{(function(t,e){typeof Ut=="object"?wo.exports=Ut=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Ut,function(t){return function(){if(typeof ArrayBuffer=="function"){var e=t,r=e.lib,n=r.WordArray,i=n.init,o=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var a=s.byteLength,c=[],l=0;l<a;l++)c[l>>>2]|=s[l]<<24-l%4*8;i.call(this,c,a)}else i.apply(this,arguments)};o.prototype=n}}(),t.lib.WordArray})});var Fo=H((Pt,Co)=>{(function(t,e){typeof Pt=="object"?Co.exports=Pt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Pt,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Utf16=i.Utf16BE={stringify:function(a){for(var c=a.words,l=a.sigBytes,f=[],u=0;u<l;u+=2){var x=c[u>>>2]>>>16-u%4*8&65535;f.push(String.fromCharCode(x))}return f.join("")},parse:function(a){for(var c=a.length,l=[],f=0;f<c;f++)l[f>>>1]|=a.charCodeAt(f)<<16-f%2*16;return n.create(l,c*2)}};i.Utf16LE={stringify:function(a){for(var c=a.words,l=a.sigBytes,f=[],u=0;u<l;u+=2){var x=s(c[u>>>2]>>>16-u%4*8&65535);f.push(String.fromCharCode(x))}return f.join("")},parse:function(a){for(var c=a.length,l=[],f=0;f<c;f++)l[f>>>1]|=s(a.charCodeAt(f)<<16-f%2*16);return n.create(l,c*2)}};function s(a){return a<<8&4278255360|a>>>8&16711935}}(),t.enc.Utf16})});var i0=H((zt,Do)=>{(function(t,e){typeof zt=="object"?Do.exports=zt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(zt,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Base64={stringify:function(a){var c=a.words,l=a.sigBytes,f=this._map;a.clamp();for(var u=[],x=0;x<l;x+=3)for(var d=c[x>>>2]>>>24-x%4*8&255,p=c[x+1>>>2]>>>24-(x+1)%4*8&255,g=c[x+2>>>2]>>>24-(x+2)%4*8&255,v=d<<16|p<<8|g,h=0;h<4&&x+h*.75<l;h++)u.push(f.charAt(v>>>6*(3-h)&63));var y=f.charAt(64);if(y)for(;u.length%4;)u.push(y);return u.join("")},parse:function(a){var c=a.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var u=0;u<l.length;u++)f[l.charCodeAt(u)]=u}var x=l.charAt(64);if(x){var d=a.indexOf(x);d!==-1&&(c=d)}return s(a,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(a,c,l){for(var f=[],u=0,x=0;x<c;x++)if(x%4){var d=l[a.charCodeAt(x-1)]<<x%4*2,p=l[a.charCodeAt(x)]>>>6-x%4*2,g=d|p;f[u>>>2]|=g<<24-u%4*8,u++}return n.create(f,u)}}(),t.enc.Base64})});var _o=H((Mt,So)=>{(function(t,e){typeof Mt=="object"?So.exports=Mt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Mt,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Base64url={stringify:function(a,c){c===void 0&&(c=!0);var l=a.words,f=a.sigBytes,u=c?this._safe_map:this._map;a.clamp();for(var x=[],d=0;d<f;d+=3)for(var p=l[d>>>2]>>>24-d%4*8&255,g=l[d+1>>>2]>>>24-(d+1)%4*8&255,v=l[d+2>>>2]>>>24-(d+2)%4*8&255,h=p<<16|g<<8|v,y=0;y<4&&d+y*.75<f;y++)x.push(u.charAt(h>>>6*(3-y)&63));var B=u.charAt(64);if(B)for(;x.length%4;)x.push(B);return x.join("")},parse:function(a,c){c===void 0&&(c=!0);var l=a.length,f=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var x=0;x<f.length;x++)u[f.charCodeAt(x)]=x}var d=f.charAt(64);if(d){var p=a.indexOf(d);p!==-1&&(l=p)}return s(a,l,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(a,c,l){for(var f=[],u=0,x=0;x<c;x++)if(x%4){var d=l[a.charCodeAt(x-1)]<<x%4*2,p=l[a.charCodeAt(x)]>>>6-x%4*2,g=d|p;f[u>>>2]|=g<<24-u%4*8,u++}return n.create(f,u)}}(),t.enc.Base64url})});var o0=H((Nt,To)=>{(function(t,e){typeof Nt=="object"?To.exports=Nt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Nt,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];(function(){for(var d=0;d<64;d++)a[d]=e.abs(e.sin(d+1))*4294967296|0})();var c=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,p){for(var g=0;g<16;g++){var v=p+g,h=d[v];d[v]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var y=this._hash.words,B=d[p+0],m=d[p+1],E=d[p+2],b=d[p+3],I=d[p+4],S=d[p+5],R=d[p+6],M=d[p+7],A=d[p+8],O=d[p+9],z=d[p+10],T=d[p+11],$=d[p+12],N=d[p+13],W=d[p+14],G=d[p+15],F=y[0],_=y[1],k=y[2],D=y[3];F=l(F,_,k,D,B,7,a[0]),D=l(D,F,_,k,m,12,a[1]),k=l(k,D,F,_,E,17,a[2]),_=l(_,k,D,F,b,22,a[3]),F=l(F,_,k,D,I,7,a[4]),D=l(D,F,_,k,S,12,a[5]),k=l(k,D,F,_,R,17,a[6]),_=l(_,k,D,F,M,22,a[7]),F=l(F,_,k,D,A,7,a[8]),D=l(D,F,_,k,O,12,a[9]),k=l(k,D,F,_,z,17,a[10]),_=l(_,k,D,F,T,22,a[11]),F=l(F,_,k,D,$,7,a[12]),D=l(D,F,_,k,N,12,a[13]),k=l(k,D,F,_,W,17,a[14]),_=l(_,k,D,F,G,22,a[15]),F=f(F,_,k,D,m,5,a[16]),D=f(D,F,_,k,R,9,a[17]),k=f(k,D,F,_,T,14,a[18]),_=f(_,k,D,F,B,20,a[19]),F=f(F,_,k,D,S,5,a[20]),D=f(D,F,_,k,z,9,a[21]),k=f(k,D,F,_,G,14,a[22]),_=f(_,k,D,F,I,20,a[23]),F=f(F,_,k,D,O,5,a[24]),D=f(D,F,_,k,W,9,a[25]),k=f(k,D,F,_,b,14,a[26]),_=f(_,k,D,F,A,20,a[27]),F=f(F,_,k,D,N,5,a[28]),D=f(D,F,_,k,E,9,a[29]),k=f(k,D,F,_,M,14,a[30]),_=f(_,k,D,F,$,20,a[31]),F=u(F,_,k,D,S,4,a[32]),D=u(D,F,_,k,A,11,a[33]),k=u(k,D,F,_,T,16,a[34]),_=u(_,k,D,F,W,23,a[35]),F=u(F,_,k,D,m,4,a[36]),D=u(D,F,_,k,I,11,a[37]),k=u(k,D,F,_,M,16,a[38]),_=u(_,k,D,F,z,23,a[39]),F=u(F,_,k,D,N,4,a[40]),D=u(D,F,_,k,B,11,a[41]),k=u(k,D,F,_,b,16,a[42]),_=u(_,k,D,F,R,23,a[43]),F=u(F,_,k,D,O,4,a[44]),D=u(D,F,_,k,$,11,a[45]),k=u(k,D,F,_,G,16,a[46]),_=u(_,k,D,F,E,23,a[47]),F=x(F,_,k,D,B,6,a[48]),D=x(D,F,_,k,M,10,a[49]),k=x(k,D,F,_,W,15,a[50]),_=x(_,k,D,F,S,21,a[51]),F=x(F,_,k,D,$,6,a[52]),D=x(D,F,_,k,b,10,a[53]),k=x(k,D,F,_,z,15,a[54]),_=x(_,k,D,F,m,21,a[55]),F=x(F,_,k,D,A,6,a[56]),D=x(D,F,_,k,G,10,a[57]),k=x(k,D,F,_,R,15,a[58]),_=x(_,k,D,F,N,21,a[59]),F=x(F,_,k,D,I,6,a[60]),D=x(D,F,_,k,T,10,a[61]),k=x(k,D,F,_,E,15,a[62]),_=x(_,k,D,F,O,21,a[63]),y[0]=y[0]+F|0,y[1]=y[1]+_|0,y[2]=y[2]+k|0,y[3]=y[3]+D|0},_doFinalize:function(){var d=this._data,p=d.words,g=this._nDataBytes*8,v=d.sigBytes*8;p[v>>>5]|=128<<24-v%32;var h=e.floor(g/4294967296),y=g;p[(v+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p[(v+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,d.sigBytes=(p.length+1)*4,this._process();for(var B=this._hash,m=B.words,E=0;E<4;E++){var b=m[E];m[E]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return B},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});function l(d,p,g,v,h,y,B){var m=d+(p&g|~p&v)+h+B;return(m<<y|m>>>32-y)+p}function f(d,p,g,v,h,y,B){var m=d+(p&v|g&~v)+h+B;return(m<<y|m>>>32-y)+p}function u(d,p,g,v,h,y,B){var m=d+(p^g^v)+h+B;return(m<<y|m>>>32-y)+p}function x(d,p,g,v,h,y,B){var m=d+(g^(p|~v))+h+B;return(m<<y|m>>>32-y)+p}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),t.MD5})});var bn=H(($t,Io)=>{(function(t,e){typeof $t=="object"?Io.exports=$t=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})($t,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,l){for(var f=this._hash.words,u=f[0],x=f[1],d=f[2],p=f[3],g=f[4],v=0;v<80;v++){if(v<16)s[v]=c[l+v]|0;else{var h=s[v-3]^s[v-8]^s[v-14]^s[v-16];s[v]=h<<1|h>>>31}var y=(u<<5|u>>>27)+g+s[v];v<20?y+=(x&d|~x&p)+1518500249:v<40?y+=(x^d^p)+1859775393:v<60?y+=(x&d|x&p|d&p)-1894007588:y+=(x^d^p)-899497514,g=p,p=d,d=x<<30|x>>>2,x=u,u=y}f[0]=f[0]+u|0,f[1]=f[1]+x|0,f[2]=f[2]+d|0,f[3]=f[3]+p|0,f[4]=f[4]+g|0},_doFinalize:function(){var c=this._data,l=c.words,f=this._nDataBytes*8,u=c.sigBytes*8;return l[u>>>5]|=128<<24-u%32,l[(u+64>>>9<<4)+14]=Math.floor(f/4294967296),l[(u+64>>>9<<4)+15]=f,c.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var c=i.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=i._createHelper(a),e.HmacSHA1=i._createHmacHelper(a)}(),t.SHA1})});var Lt=H((Ht,ko)=>{(function(t,e){typeof Ht=="object"?ko.exports=Ht=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Ht,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],c=[];(function(){function u(g){for(var v=e.sqrt(g),h=2;h<=v;h++)if(!(g%h))return!1;return!0}function x(g){return(g-(g|0))*4294967296|0}for(var d=2,p=0;p<64;)u(d)&&(p<8&&(a[p]=x(e.pow(d,1/2))),c[p]=x(e.pow(d,1/3)),p++),d++})();var l=[],f=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(u,x){for(var d=this._hash.words,p=d[0],g=d[1],v=d[2],h=d[3],y=d[4],B=d[5],m=d[6],E=d[7],b=0;b<64;b++){if(b<16)l[b]=u[x+b]|0;else{var I=l[b-15],S=(I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3,R=l[b-2],M=(R<<15|R>>>17)^(R<<13|R>>>19)^R>>>10;l[b]=S+l[b-7]+M+l[b-16]}var A=y&B^~y&m,O=p&g^p&v^g&v,z=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),T=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),$=E+T+A+c[b]+l[b],N=z+O;E=m,m=B,B=y,y=h+$|0,h=v,v=g,g=p,p=$+N|0}d[0]=d[0]+p|0,d[1]=d[1]+g|0,d[2]=d[2]+v|0,d[3]=d[3]+h|0,d[4]=d[4]+y|0,d[5]=d[5]+B|0,d[6]=d[6]+m|0,d[7]=d[7]+E|0},_doFinalize:function(){var u=this._data,x=u.words,d=this._nDataBytes*8,p=u.sigBytes*8;return x[p>>>5]|=128<<24-p%32,x[(p+64>>>9<<4)+14]=e.floor(d/4294967296),x[(p+64>>>9<<4)+15]=d,u.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=o._createHelper(f),r.HmacSHA256=o._createHmacHelper(f)}(Math),t.SHA256})});var jo=H((Wt,Oo)=>{(function(t,e,r){typeof Wt=="object"?Oo.exports=Wt=e(V(),Lt()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(t.CryptoJS)})(Wt,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=o._doFinalize.call(this);return a.sigBytes-=4,a}});e.SHA224=o._createHelper(s),e.HmacSHA224=o._createHmacHelper(s)}(),t.SHA224})});var wn=H((qt,Ro)=>{(function(t,e,r){typeof qt=="object"?Ro.exports=qt=e(V(),Q0()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(qt,function(t){return function(){var e=t,r=e.lib,n=r.Hasher,i=e.x64,o=i.Word,s=i.WordArray,a=e.algo;function c(){return o.create.apply(o,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],f=[];(function(){for(var x=0;x<80;x++)f[x]=c()})();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(x,d){for(var p=this._hash.words,g=p[0],v=p[1],h=p[2],y=p[3],B=p[4],m=p[5],E=p[6],b=p[7],I=g.high,S=g.low,R=v.high,M=v.low,A=h.high,O=h.low,z=y.high,T=y.low,$=B.high,N=B.low,W=m.high,G=m.low,F=E.high,_=E.low,k=b.high,D=b.low,ie=I,ee=S,ge=R,K=M,k0=A,d0=O,mr=z,O0=T,ke=$,Be=N,et=W,j0=G,tt=F,R0=_,Br=k,U0=D,Oe=0;Oe<80;Oe++){var Ae,Ke,rt=f[Oe];if(Oe<16)Ke=rt.high=x[d+Oe*2]|0,Ae=rt.low=x[d+Oe*2+1]|0;else{var Cn=f[Oe-15],h0=Cn.high,P0=Cn.low,ks=(h0>>>1|P0<<31)^(h0>>>8|P0<<24)^h0>>>7,Fn=(P0>>>1|h0<<31)^(P0>>>8|h0<<24)^(P0>>>7|h0<<25),Dn=f[Oe-2],p0=Dn.high,z0=Dn.low,Os=(p0>>>19|z0<<13)^(p0<<3|z0>>>29)^p0>>>6,Sn=(z0>>>19|p0<<13)^(z0<<3|p0>>>29)^(z0>>>6|p0<<26),_n=f[Oe-7],js=_n.high,Rs=_n.low,Tn=f[Oe-16],Us=Tn.high,In=Tn.low;Ae=Fn+Rs,Ke=ks+js+(Ae>>>0<Fn>>>0?1:0),Ae=Ae+Sn,Ke=Ke+Os+(Ae>>>0<Sn>>>0?1:0),Ae=Ae+In,Ke=Ke+Us+(Ae>>>0<In>>>0?1:0),rt.high=Ke,rt.low=Ae}var Ps=ke&et^~ke&tt,kn=Be&j0^~Be&R0,zs=ie&ge^ie&k0^ge&k0,Ms=ee&K^ee&d0^K&d0,Ns=(ie>>>28|ee<<4)^(ie<<30|ee>>>2)^(ie<<25|ee>>>7),On=(ee>>>28|ie<<4)^(ee<<30|ie>>>2)^(ee<<25|ie>>>7),$s=(ke>>>14|Be<<18)^(ke>>>18|Be<<14)^(ke<<23|Be>>>9),Hs=(Be>>>14|ke<<18)^(Be>>>18|ke<<14)^(Be<<23|ke>>>9),jn=l[Oe],Ls=jn.high,Rn=jn.low,Ee=U0+Hs,Ve=Br+$s+(Ee>>>0<U0>>>0?1:0),Ee=Ee+kn,Ve=Ve+Ps+(Ee>>>0<kn>>>0?1:0),Ee=Ee+Rn,Ve=Ve+Ls+(Ee>>>0<Rn>>>0?1:0),Ee=Ee+Ae,Ve=Ve+Ke+(Ee>>>0<Ae>>>0?1:0),Un=On+Ms,Ws=Ns+zs+(Un>>>0<On>>>0?1:0);Br=tt,U0=R0,tt=et,R0=j0,et=ke,j0=Be,Be=O0+Ee|0,ke=mr+Ve+(Be>>>0<O0>>>0?1:0)|0,mr=k0,O0=d0,k0=ge,d0=K,ge=ie,K=ee,ee=Ee+Un|0,ie=Ve+Ws+(ee>>>0<Ee>>>0?1:0)|0}S=g.low=S+ee,g.high=I+ie+(S>>>0<ee>>>0?1:0),M=v.low=M+K,v.high=R+ge+(M>>>0<K>>>0?1:0),O=h.low=O+d0,h.high=A+k0+(O>>>0<d0>>>0?1:0),T=y.low=T+O0,y.high=z+mr+(T>>>0<O0>>>0?1:0),N=B.low=N+Be,B.high=$+ke+(N>>>0<Be>>>0?1:0),G=m.low=G+j0,m.high=W+et+(G>>>0<j0>>>0?1:0),_=E.low=_+R0,E.high=F+tt+(_>>>0<R0>>>0?1:0),D=b.low=D+U0,b.high=k+Br+(D>>>0<U0>>>0?1:0)},_doFinalize:function(){var x=this._data,d=x.words,p=this._nDataBytes*8,g=x.sigBytes*8;d[g>>>5]|=128<<24-g%32,d[(g+128>>>10<<5)+30]=Math.floor(p/4294967296),d[(g+128>>>10<<5)+31]=p,x.sigBytes=d.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var x=n.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512})});var Po=H((Kt,Uo)=>{(function(t,e,r){typeof Kt=="object"?Uo.exports=Kt=e(V(),Q0(),wn()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(t.CryptoJS)})(Kt,function(t){return function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a)}(),t.SHA384})});var Mo=H((Vt,zo)=>{(function(t,e,r){typeof Vt=="object"?zo.exports=Vt=e(V(),Q0()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(Vt,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.x64,a=s.Word,c=r.algo,l=[],f=[],u=[];(function(){for(var p=1,g=0,v=0;v<24;v++){l[p+5*g]=(v+1)*(v+2)/2%64;var h=g%5,y=(2*p+3*g)%5;p=h,g=y}for(var p=0;p<5;p++)for(var g=0;g<5;g++)f[p+5*g]=g+(2*p+3*g)%5*5;for(var B=1,m=0;m<24;m++){for(var E=0,b=0,I=0;I<7;I++){if(B&1){var S=(1<<I)-1;S<32?b^=1<<S:E^=1<<S-32}B&128?B=B<<1^113:B<<=1}u[m]=a.create(E,b)}})();var x=[];(function(){for(var p=0;p<25;p++)x[p]=a.create()})();var d=c.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],g=0;g<25;g++)p[g]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,g){for(var v=this._state,h=this.blockSize/2,y=0;y<h;y++){var B=p[g+2*y],m=p[g+2*y+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360;var E=v[y];E.high^=m,E.low^=B}for(var b=0;b<24;b++){for(var I=0;I<5;I++){for(var S=0,R=0,M=0;M<5;M++){var E=v[I+5*M];S^=E.high,R^=E.low}var A=x[I];A.high=S,A.low=R}for(var I=0;I<5;I++)for(var O=x[(I+4)%5],z=x[(I+1)%5],T=z.high,$=z.low,S=O.high^(T<<1|$>>>31),R=O.low^($<<1|T>>>31),M=0;M<5;M++){var E=v[I+5*M];E.high^=S,E.low^=R}for(var N=1;N<25;N++){var S,R,E=v[N],W=E.high,G=E.low,F=l[N];F<32?(S=W<<F|G>>>32-F,R=G<<F|W>>>32-F):(S=G<<F-32|W>>>64-F,R=W<<F-32|G>>>64-F);var _=x[f[N]];_.high=S,_.low=R}var k=x[0],D=v[0];k.high=D.high,k.low=D.low;for(var I=0;I<5;I++)for(var M=0;M<5;M++){var N=I+5*M,E=v[N],ie=x[N],ee=x[(I+1)%5+5*M],ge=x[(I+2)%5+5*M];E.high=ie.high^~ee.high&ge.high,E.low=ie.low^~ee.low&ge.low}var E=v[0],K=u[b];E.high^=K.high,E.low^=K.low}},_doFinalize:function(){var p=this._data,g=p.words,v=this._nDataBytes*8,h=p.sigBytes*8,y=this.blockSize*32;g[h>>>5]|=1<<24-h%32,g[(e.ceil((h+1)/y)*y>>>5)-1]|=128,p.sigBytes=g.length*4,this._process();for(var B=this._state,m=this.cfg.outputLength/8,E=m/8,b=[],I=0;I<E;I++){var S=B[I],R=S.high,M=S.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,b.push(M),b.push(R)}return new i.init(b,m)},clone:function(){for(var p=o.clone.call(this),g=p._state=this._state.slice(0),v=0;v<25;v++)g[v]=g[v].clone();return p}});r.SHA3=o._createHelper(d),r.HmacSHA3=o._createHmacHelper(d)}(Math),t.SHA3})});var $o=H((Gt,No)=>{(function(t,e){typeof Gt=="object"?No.exports=Gt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Gt,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),x=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,E){for(var b=0;b<16;b++){var I=E+b,S=m[I];m[I]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var R=this._hash.words,M=u.words,A=x.words,O=a.words,z=c.words,T=l.words,$=f.words,N,W,G,F,_,k,D,ie,ee,ge;k=N=R[0],D=W=R[1],ie=G=R[2],ee=F=R[3],ge=_=R[4];for(var K,b=0;b<80;b+=1)K=N+m[E+O[b]]|0,b<16?K+=p(W,G,F)+M[0]:b<32?K+=g(W,G,F)+M[1]:b<48?K+=v(W,G,F)+M[2]:b<64?K+=h(W,G,F)+M[3]:K+=y(W,G,F)+M[4],K=K|0,K=B(K,T[b]),K=K+_|0,N=_,_=F,F=B(G,10),G=W,W=K,K=k+m[E+z[b]]|0,b<16?K+=y(D,ie,ee)+A[0]:b<32?K+=h(D,ie,ee)+A[1]:b<48?K+=v(D,ie,ee)+A[2]:b<64?K+=g(D,ie,ee)+A[3]:K+=p(D,ie,ee)+A[4],K=K|0,K=B(K,$[b]),K=K+ge|0,k=ge,ge=ee,ee=B(ie,10),ie=D,D=K;K=R[1]+G+ee|0,R[1]=R[2]+F+ge|0,R[2]=R[3]+_+k|0,R[3]=R[4]+N+D|0,R[4]=R[0]+W+ie|0,R[0]=K},_doFinalize:function(){var m=this._data,E=m.words,b=this._nDataBytes*8,I=m.sigBytes*8;E[I>>>5]|=128<<24-I%32,E[(I+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(E.length+1)*4,this._process();for(var S=this._hash,R=S.words,M=0;M<5;M++){var A=R[M];R[M]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return S},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m}});function p(m,E,b){return m^E^b}function g(m,E,b){return m&E|~m&b}function v(m,E,b){return(m|~E)^b}function h(m,E,b){return m&b|E&~b}function y(m,E,b){return m^(E|~b)}function B(m,E){return m<<E|m>>>32-E}r.RIPEMD160=o._createHelper(d),r.HmacRIPEMD160=o._createHmacHelper(d)}(Math),t.RIPEMD160})});var Jt=H((Xt,Ho)=>{(function(t,e){typeof Xt=="object"?Ho.exports=Xt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Xt,function(t){(function(){var e=t,r=e.lib,n=r.Base,i=e.enc,o=i.Utf8,s=e.algo,a=s.HMAC=n.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=o.parse(l));var f=c.blockSize,u=f*4;l.sigBytes>u&&(l=c.finalize(l)),l.clamp();for(var x=this._oKey=l.clone(),d=this._iKey=l.clone(),p=x.words,g=d.words,v=0;v<f;v++)p[v]^=1549556828,g[v]^=909522486;x.sigBytes=d.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,f=l.finalize(c);l.reset();var u=l.finalize(this._oKey.clone().concat(f));return u}})})()})});var Wo=H((Yt,Lo)=>{(function(t,e,r){typeof Yt=="object"?Lo.exports=Yt=e(V(),Lt(),Jt()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(t.CryptoJS)})(Yt,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,s=o.SHA256,a=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:25e4}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var u=this.cfg,x=a.create(u.hasher,l),d=i.create(),p=i.create([1]),g=d.words,v=p.words,h=u.keySize,y=u.iterations;g.length<h;){var B=x.update(f).finalize(p);x.reset();for(var m=B.words,E=m.length,b=B,I=1;I<y;I++){b=x.finalize(b),x.reset();for(var S=b.words,R=0;R<E;R++)m[R]^=S[R]}d.concat(B),v[0]++}return d.sigBytes=h*4,d}});e.PBKDF2=function(l,f,u){return c.create(u).compute(l,f)}}(),t.PBKDF2})});var qe=H((Zt,qo)=>{(function(t,e,r){typeof Zt=="object"?qo.exports=Zt=e(V(),bn(),Jt()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(t.CryptoJS)})(Zt,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,s=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,l){for(var f,u=this.cfg,x=u.hasher.create(),d=i.create(),p=d.words,g=u.keySize,v=u.iterations;p.length<g;){f&&x.update(f),f=x.update(c).finalize(l),x.reset();for(var h=1;h<v;h++)f=x.finalize(f),x.reset();d.concat(f)}return d.sigBytes=g*4,d}});e.EvpKDF=function(c,l,f){return a.create(f).compute(c,l)}}(),t.EvpKDF})});var ae=H((Qt,Ko)=>{(function(t,e,r){typeof Qt=="object"?Ko.exports=Qt=e(V(),qe()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(t.CryptoJS)})(Qt,function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=r.enc,c=a.Utf8,l=a.Base64,f=r.algo,u=f.EvpKDF,x=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(A,O){return this.create(this._ENC_XFORM_MODE,A,O)},createDecryptor:function(A,O){return this.create(this._DEC_XFORM_MODE,A,O)},init:function(A,O,z){this.cfg=this.cfg.extend(z),this._xformMode=A,this._key=O,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(O){return typeof O=="string"?M:I}return function(O){return{encrypt:function(z,T,$){return A(T).encrypt(O,z,T,$)},decrypt:function(z,T,$){return A(T).decrypt(O,z,T,$)}}}}()}),d=n.StreamCipher=x.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1}),p=r.mode={},g=n.BlockCipherMode=i.extend({createEncryptor:function(A,O){return this.Encryptor.create(A,O)},createDecryptor:function(A,O){return this.Decryptor.create(A,O)},init:function(A,O){this._cipher=A,this._iv=O}}),v=p.CBC=function(){var A=g.extend();A.Encryptor=A.extend({processBlock:function(z,T){var $=this._cipher,N=$.blockSize;O.call(this,z,T,N),$.encryptBlock(z,T),this._prevBlock=z.slice(T,T+N)}}),A.Decryptor=A.extend({processBlock:function(z,T){var $=this._cipher,N=$.blockSize,W=z.slice(T,T+N);$.decryptBlock(z,T),O.call(this,z,T,N),this._prevBlock=W}});function O(z,T,$){var N,W=this._iv;W?(N=W,this._iv=e):N=this._prevBlock;for(var G=0;G<$;G++)z[T+G]^=N[G]}return A}(),h=r.pad={},y=h.Pkcs7={pad:function(A,O){for(var z=O*4,T=z-A.sigBytes%z,$=T<<24|T<<16|T<<8|T,N=[],W=0;W<T;W+=4)N.push($);var G=o.create(N,T);A.concat(G)},unpad:function(A){var O=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=O}},B=n.BlockCipher=x.extend({cfg:x.cfg.extend({mode:v,padding:y}),reset:function(){var A;x.reset.call(this);var O=this.cfg,z=O.iv,T=O.mode;this._xformMode==this._ENC_XFORM_MODE?A=T.createEncryptor:(A=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,z&&z.words):(this._mode=A.call(T,this,z&&z.words),this._mode.__creator=A)},_doProcessBlock:function(A,O){this._mode.processBlock(A,O)},_doFinalize:function(){var A,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),O.unpad(A)),A},blockSize:128/32}),m=n.CipherParams=i.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),E=r.format={},b=E.OpenSSL={stringify:function(A){var O,z=A.ciphertext,T=A.salt;return T?O=o.create([1398893684,1701076831]).concat(T).concat(z):O=z,O.toString(l)},parse:function(A){var O,z=l.parse(A),T=z.words;return T[0]==1398893684&&T[1]==1701076831&&(O=o.create(T.slice(2,4)),T.splice(0,4),z.sigBytes-=16),m.create({ciphertext:z,salt:O})}},I=n.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(A,O,z,T){T=this.cfg.extend(T);var $=A.createEncryptor(z,T),N=$.finalize(O),W=$.cfg;return m.create({ciphertext:N,key:z,iv:W.iv,algorithm:A,mode:W.mode,padding:W.padding,blockSize:A.blockSize,formatter:T.format})},decrypt:function(A,O,z,T){T=this.cfg.extend(T),O=this._parse(O,T.format);var $=A.createDecryptor(z,T).finalize(O.ciphertext);return $},_parse:function(A,O){return typeof A=="string"?O.parse(A,this):A}}),S=r.kdf={},R=S.OpenSSL={execute:function(A,O,z,T,$){if(T||(T=o.random(64/8)),$)var N=u.create({keySize:O+z,hasher:$}).compute(A,T);else var N=u.create({keySize:O+z}).compute(A,T);var W=o.create(N.words.slice(O),z*4);return N.sigBytes=O*4,m.create({key:N,iv:W,salt:T})}},M=n.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:R}),encrypt:function(A,O,z,T){T=this.cfg.extend(T);var $=T.kdf.execute(z,A.keySize,A.ivSize,T.salt,T.hasher);T.iv=$.iv;var N=I.encrypt.call(this,A,O,$.key,T);return N.mixIn($),N},decrypt:function(A,O,z,T){T=this.cfg.extend(T),O=this._parse(O,T.format);var $=T.kdf.execute(z,A.keySize,A.ivSize,O.salt,T.hasher);T.iv=$.iv;var N=I.decrypt.call(this,A,O,$.key,T);return N}})}()})});var Go=H((er,Vo)=>{(function(t,e,r){typeof er=="object"?Vo.exports=er=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(er,function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize;r.call(this,n,i,s,o),this._prevBlock=n.slice(i,i+s)}}),e.Decryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize,a=n.slice(i,i+s);r.call(this,n,i,s,o),this._prevBlock=a}});function r(n,i,o,s){var a,c=this._iv;c?(a=c.slice(0),this._iv=void 0):a=this._prevBlock,s.encryptBlock(a,0);for(var l=0;l<o;l++)n[i+l]^=a[l]}return e}(),t.mode.CFB})});var Jo=H((tr,Xo)=>{(function(t,e,r){typeof tr=="object"?Xo.exports=tr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(tr,function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize,a=this._iv,c=this._counter;a&&(c=this._counter=a.slice(0),this._iv=void 0);var l=c.slice(0);o.encryptBlock(l,0),c[s-1]=c[s-1]+1|0;for(var f=0;f<s;f++)n[i+f]^=l[f]}});return e.Decryptor=r,e}(),t.mode.CTR})});var Zo=H((rr,Yo)=>{(function(t,e,r){typeof rr=="object"?Yo.exports=rr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(rr,function(t){return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(o){if((o>>24&255)===255){var s=o>>16&255,a=o>>8&255,c=o&255;s===255?(s=0,a===255?(a=0,c===255?c=0:++c):++a):++s,o=0,o+=s<<16,o+=a<<8,o+=c}else o+=1<<24;return o}function n(o){return(o[0]=r(o[0]))===0&&(o[1]=r(o[1])),o}var i=e.Encryptor=e.extend({processBlock:function(o,s){var a=this._cipher,c=a.blockSize,l=this._iv,f=this._counter;l&&(f=this._counter=l.slice(0),this._iv=void 0),n(f);var u=f.slice(0);a.encryptBlock(u,0);for(var x=0;x<c;x++)o[s+x]^=u[x]}});return e.Decryptor=i,e}(),t.mode.CTRGladman})});var es=H((nr,Qo)=>{(function(t,e,r){typeof nr=="object"?Qo.exports=nr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(nr,function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize,a=this._iv,c=this._keystream;a&&(c=this._keystream=a.slice(0),this._iv=void 0),o.encryptBlock(c,0);for(var l=0;l<s;l++)n[i+l]^=c[l]}});return e.Decryptor=r,e}(),t.mode.OFB})});var rs=H((ir,ts)=>{(function(t,e,r){typeof ir=="object"?ts.exports=ir=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(ir,function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),e.Decryptor=e.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),e}(),t.mode.ECB})});var is=H((or,ns)=>{(function(t,e,r){typeof or=="object"?ns.exports=or=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(or,function(t){return t.pad.AnsiX923={pad:function(e,r){var n=e.sigBytes,i=r*4,o=i-n%i,s=n+o-1;e.clamp(),e.words[s>>>2]|=o<<24-s%4*8,e.sigBytes+=o},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Ansix923})});var ss=H((sr,os)=>{(function(t,e,r){typeof sr=="object"?os.exports=sr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(sr,function(t){return t.pad.Iso10126={pad:function(e,r){var n=r*4,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Iso10126})});var cs=H((ar,as)=>{(function(t,e,r){typeof ar=="object"?as.exports=ar=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(ar,function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971})});var us=H((cr,fs)=>{(function(t,e,r){typeof cr=="object"?fs.exports=cr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(cr,function(t){return t.pad.ZeroPadding={pad:function(e,r){var n=r*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var r=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(r[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},t.pad.ZeroPadding})});var ls=H((fr,xs)=>{(function(t,e,r){typeof fr=="object"?xs.exports=fr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(fr,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})});var hs=H((ur,ds)=>{(function(t,e,r){typeof ur=="object"?ds.exports=ur=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(ur,function(t){return function(e){var r=t,n=r.lib,i=n.CipherParams,o=r.enc,s=o.Hex,a=r.format,c=a.Hex={stringify:function(l){return l.ciphertext.toString(s)},parse:function(l){var f=s.parse(l);return i.create({ciphertext:f})}}}(),t.format.Hex})});var ys=H((xr,ps)=>{(function(t,e,r){typeof xr=="object"?ps.exports=xr=e(V(),i0(),o0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(xr,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo,o=[],s=[],a=[],c=[],l=[],f=[],u=[],x=[],d=[],p=[];(function(){for(var h=[],y=0;y<256;y++)y<128?h[y]=y<<1:h[y]=y<<1^283;for(var B=0,m=0,y=0;y<256;y++){var E=m^m<<1^m<<2^m<<3^m<<4;E=E>>>8^E&255^99,o[B]=E,s[E]=B;var b=h[B],I=h[b],S=h[I],R=h[E]*257^E*16843008;a[B]=R<<24|R>>>8,c[B]=R<<16|R>>>16,l[B]=R<<8|R>>>24,f[B]=R;var R=S*16843009^I*65537^b*257^B*16843008;u[E]=R<<24|R>>>8,x[E]=R<<16|R>>>16,d[E]=R<<8|R>>>24,p[E]=R,B?(B=b^h[h[h[S^b]]],m^=h[h[m]]):B=m=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=n.extend({_doReset:function(){var h;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,B=y.words,m=y.sigBytes/4,E=this._nRounds=m+6,b=(E+1)*4,I=this._keySchedule=[],S=0;S<b;S++)S<m?I[S]=B[S]:(h=I[S-1],S%m?m>6&&S%m==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[h&255]):(h=h<<8|h>>>24,h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[h&255],h^=g[S/m|0]<<24),I[S]=I[S-m]^h);for(var R=this._invKeySchedule=[],M=0;M<b;M++){var S=b-M;if(M%4)var h=I[S];else var h=I[S-4];M<4||S<=4?R[M]=h:R[M]=u[o[h>>>24]]^x[o[h>>>16&255]]^d[o[h>>>8&255]]^p[o[h&255]]}}},encryptBlock:function(h,y){this._doCryptBlock(h,y,this._keySchedule,a,c,l,f,o)},decryptBlock:function(h,y){var B=h[y+1];h[y+1]=h[y+3],h[y+3]=B,this._doCryptBlock(h,y,this._invKeySchedule,u,x,d,p,s);var B=h[y+1];h[y+1]=h[y+3],h[y+3]=B},_doCryptBlock:function(h,y,B,m,E,b,I,S){for(var R=this._nRounds,M=h[y]^B[0],A=h[y+1]^B[1],O=h[y+2]^B[2],z=h[y+3]^B[3],T=4,$=1;$<R;$++){var N=m[M>>>24]^E[A>>>16&255]^b[O>>>8&255]^I[z&255]^B[T++],W=m[A>>>24]^E[O>>>16&255]^b[z>>>8&255]^I[M&255]^B[T++],G=m[O>>>24]^E[z>>>16&255]^b[M>>>8&255]^I[A&255]^B[T++],F=m[z>>>24]^E[M>>>16&255]^b[A>>>8&255]^I[O&255]^B[T++];M=N,A=W,O=G,z=F}var N=(S[M>>>24]<<24|S[A>>>16&255]<<16|S[O>>>8&255]<<8|S[z&255])^B[T++],W=(S[A>>>24]<<24|S[O>>>16&255]<<16|S[z>>>8&255]<<8|S[M&255])^B[T++],G=(S[O>>>24]<<24|S[z>>>16&255]<<16|S[M>>>8&255]<<8|S[A&255])^B[T++],F=(S[z>>>24]<<24|S[M>>>16&255]<<16|S[A>>>8&255]<<8|S[O&255])^B[T++];h[y]=N,h[y+1]=W,h[y+2]=G,h[y+3]=F},keySize:256/32});e.AES=n._createHelper(v)}(),t.AES})});var vs=H((lr,gs)=>{(function(t,e,r){typeof lr=="object"?gs.exports=lr=e(V(),i0(),o0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(lr,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=o.DES=i.extend({_doReset:function(){for(var g=this._key,v=g.words,h=[],y=0;y<56;y++){var B=s[y]-1;h[y]=v[B>>>5]>>>31-B%32&1}for(var m=this._subKeys=[],E=0;E<16;E++){for(var b=m[E]=[],I=c[E],y=0;y<24;y++)b[y/6|0]|=h[(a[y]-1+I)%28]<<31-y%6,b[4+(y/6|0)]|=h[28+(a[y+24]-1+I)%28]<<31-y%6;b[0]=b[0]<<1|b[0]>>>31;for(var y=1;y<7;y++)b[y]=b[y]>>>(y-1)*4+3;b[7]=b[7]<<5|b[7]>>>27}for(var S=this._invSubKeys=[],y=0;y<16;y++)S[y]=m[15-y]},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._subKeys)},decryptBlock:function(g,v){this._doCryptBlock(g,v,this._invSubKeys)},_doCryptBlock:function(g,v,h){this._lBlock=g[v],this._rBlock=g[v+1],x.call(this,4,252645135),x.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),x.call(this,1,1431655765);for(var y=0;y<16;y++){for(var B=h[y],m=this._lBlock,E=this._rBlock,b=0,I=0;I<8;I++)b|=l[I][((E^B[I])&f[I])>>>0];this._lBlock=E,this._rBlock=m^b}var S=this._lBlock;this._lBlock=this._rBlock,this._rBlock=S,x.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),g[v]=this._lBlock,g[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function x(g,v){var h=(this._lBlock>>>g^this._rBlock)&v;this._rBlock^=h,this._lBlock^=h<<g}function d(g,v){var h=(this._rBlock>>>g^this._lBlock)&v;this._lBlock^=h,this._rBlock^=h<<g}e.DES=i._createHelper(u);var p=o.TripleDES=i.extend({_doReset:function(){var g=this._key,v=g.words;if(v.length!==2&&v.length!==4&&v.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=v.slice(0,2),y=v.length<4?v.slice(0,2):v.slice(2,4),B=v.length<6?v.slice(0,2):v.slice(4,6);this._des1=u.createEncryptor(n.create(h)),this._des2=u.createEncryptor(n.create(y)),this._des3=u.createEncryptor(n.create(B))},encryptBlock:function(g,v){this._des1.encryptBlock(g,v),this._des2.decryptBlock(g,v),this._des3.encryptBlock(g,v)},decryptBlock:function(g,v){this._des3.decryptBlock(g,v),this._des2.encryptBlock(g,v),this._des1.decryptBlock(g,v)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=i._createHelper(p)}(),t.TripleDES})});var Bs=H((dr,ms)=>{(function(t,e,r){typeof dr=="object"?ms.exports=dr=e(V(),i0(),o0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(dr,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,o=i.RC4=n.extend({_doReset:function(){for(var c=this._key,l=c.words,f=c.sigBytes,u=this._S=[],x=0;x<256;x++)u[x]=x;for(var x=0,d=0;x<256;x++){var p=x%f,g=l[p>>>2]>>>24-p%4*8&255;d=(d+u[x]+g)%256;var v=u[x];u[x]=u[d],u[d]=v}this._i=this._j=0},_doProcessBlock:function(c,l){c[l]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,l=this._i,f=this._j,u=0,x=0;x<4;x++){l=(l+1)%256,f=(f+c[l])%256;var d=c[l];c[l]=c[f],c[f]=d,u|=c[(c[l]+c[f])%256]<<24-x*8}return this._i=l,this._j=f,u}e.RC4=n._createHelper(o);var a=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(a)}(),t.RC4})});var bs=H((hr,Es)=>{(function(t,e,r){typeof hr=="object"?Es.exports=hr=e(V(),i0(),o0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(hr,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,o=[],s=[],a=[],c=i.Rabbit=n.extend({_doReset:function(){for(var f=this._key.words,u=this.cfg.iv,x=0;x<4;x++)f[x]=(f[x]<<8|f[x]>>>24)&16711935|(f[x]<<24|f[x]>>>8)&4278255360;var d=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],p=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var x=0;x<4;x++)l.call(this);for(var x=0;x<8;x++)p[x]^=d[x+4&7];if(u){var g=u.words,v=g[0],h=g[1],y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,m=y>>>16|B&4294901760,E=B<<16|y&65535;p[0]^=y,p[1]^=m,p[2]^=B,p[3]^=E,p[4]^=y,p[5]^=m,p[6]^=B,p[7]^=E;for(var x=0;x<4;x++)l.call(this)}},_doProcessBlock:function(f,u){var x=this._X;l.call(this),o[0]=x[0]^x[5]>>>16^x[3]<<16,o[1]=x[2]^x[7]>>>16^x[5]<<16,o[2]=x[4]^x[1]>>>16^x[7]<<16,o[3]=x[6]^x[3]>>>16^x[1]<<16;for(var d=0;d<4;d++)o[d]=(o[d]<<8|o[d]>>>24)&16711935|(o[d]<<24|o[d]>>>8)&4278255360,f[u+d]^=o[d]},blockSize:128/32,ivSize:64/32});function l(){for(var f=this._X,u=this._C,x=0;x<8;x++)s[x]=u[x];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<s[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<s[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<s[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<s[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<s[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<s[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<s[6]>>>0?1:0)|0,this._b=u[7]>>>0<s[7]>>>0?1:0;for(var x=0;x<8;x++){var d=f[x]+u[x],p=d&65535,g=d>>>16,v=((p*p>>>17)+p*g>>>15)+g*g,h=((d&4294901760)*d|0)+((d&65535)*d|0);a[x]=v^h}f[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,f[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,f[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,f[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,f[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,f[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,f[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,f[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=n._createHelper(c)}(),t.Rabbit})});var As=H((pr,ws)=>{(function(t,e,r){typeof pr=="object"?ws.exports=pr=e(V(),i0(),o0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(pr,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,o=[],s=[],a=[],c=i.RabbitLegacy=n.extend({_doReset:function(){var f=this._key.words,u=this.cfg.iv,x=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],d=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var p=0;p<4;p++)l.call(this);for(var p=0;p<8;p++)d[p]^=x[p+4&7];if(u){var g=u.words,v=g[0],h=g[1],y=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,m=y>>>16|B&4294901760,E=B<<16|y&65535;d[0]^=y,d[1]^=m,d[2]^=B,d[3]^=E,d[4]^=y,d[5]^=m,d[6]^=B,d[7]^=E;for(var p=0;p<4;p++)l.call(this)}},_doProcessBlock:function(f,u){var x=this._X;l.call(this),o[0]=x[0]^x[5]>>>16^x[3]<<16,o[1]=x[2]^x[7]>>>16^x[5]<<16,o[2]=x[4]^x[1]>>>16^x[7]<<16,o[3]=x[6]^x[3]>>>16^x[1]<<16;for(var d=0;d<4;d++)o[d]=(o[d]<<8|o[d]>>>24)&16711935|(o[d]<<24|o[d]>>>8)&4278255360,f[u+d]^=o[d]},blockSize:128/32,ivSize:64/32});function l(){for(var f=this._X,u=this._C,x=0;x<8;x++)s[x]=u[x];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<s[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<s[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<s[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<s[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<s[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<s[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<s[6]>>>0?1:0)|0,this._b=u[7]>>>0<s[7]>>>0?1:0;for(var x=0;x<8;x++){var d=f[x]+u[x],p=d&65535,g=d>>>16,v=((p*p>>>17)+p*g>>>15)+g*g,h=((d&4294901760)*d|0)+((d&65535)*d|0);a[x]=v^h}f[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,f[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,f[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,f[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,f[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,f[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,f[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,f[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=n._createHelper(c)}(),t.RabbitLegacy})});var Fs=H((yr,Cs)=>{(function(t,e,r){typeof yr=="object"?Cs.exports=yr=e(V(),i0(),o0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(yr,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo;let o=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function l(p,g){let v=g>>24&255,h=g>>16&255,y=g>>8&255,B=g&255,m=p.sbox[0][v]+p.sbox[1][h];return m=m^p.sbox[2][y],m=m+p.sbox[3][B],m}function f(p,g,v){let h=g,y=v,B;for(let m=0;m<o;++m)h=h^p.pbox[m],y=l(p,h)^y,B=h,h=y,y=B;return B=h,h=y,y=B,y=y^p.pbox[o],h=h^p.pbox[o+1],{left:h,right:y}}function u(p,g,v){let h=g,y=v,B;for(let m=o+1;m>1;--m)h=h^p.pbox[m],y=l(p,h)^y,B=h,h=y,y=B;return B=h,h=y,y=B,y=y^p.pbox[1],h=h^p.pbox[0],{left:h,right:y}}function x(p,g,v){for(let E=0;E<4;E++){p.sbox[E]=[];for(let b=0;b<256;b++)p.sbox[E][b]=a[E][b]}let h=0;for(let E=0;E<o+2;E++)p.pbox[E]=s[E]^g[h],h++,h>=v&&(h=0);let y=0,B=0,m=0;for(let E=0;E<o+2;E+=2)m=f(p,y,B),y=m.left,B=m.right,p.pbox[E]=y,p.pbox[E+1]=B;for(let E=0;E<4;E++)for(let b=0;b<256;b+=2)m=f(p,y,B),y=m.left,B=m.right,p.sbox[E][b]=y,p.sbox[E][b+1]=B;return!0}var d=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,g=p.words,v=p.sigBytes/4;x(c,g,v)}},encryptBlock:function(p,g){var v=f(c,p[g],p[g+1]);p[g]=v.left,p[g+1]=v.right},decryptBlock:function(p,g){var v=u(c,p[g],p[g+1]);p[g]=v.left,p[g+1]=v.right},blockSize:64/32,keySize:128/32,ivSize:64/32});e.Blowfish=n._createHelper(d)}(),t.Blowfish})});var Ss=H((gr,Ds)=>{(function(t,e,r){typeof gr=="object"?Ds.exports=gr=e(V(),Q0(),Ao(),Fo(),i0(),_o(),o0(),bn(),Lt(),jo(),wn(),Po(),Mo(),$o(),Jt(),Wo(),qe(),ae(),Go(),Jo(),Zo(),es(),rs(),is(),ss(),cs(),us(),ls(),hs(),ys(),vs(),Bs(),bs(),As(),Fs()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],e):t.CryptoJS=e(t.CryptoJS)})(gr,function(t){return t})});var vf={};Js(vf,{MSafeApps:()=>An});var br=Er(Hn(),1),je=t=>br.default.encode(t),Ge=t=>br.default.decode(t);function ta(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:t===43?62:t===47?63:0}function Ce(t,e){for(var r=t.replace(/[^A-Za-z0-9+/]/g,""),n=r.length,i=e?Math.ceil((n*3+1>>2)/e)*e:n*3+1>>2,o=new Uint8Array(i),s,a,c=0,l=0,f=0;f<n;f++)if(a=f&3,c|=ta(r.charCodeAt(f))<<6*(3-a),a===3||n-f===1){for(s=0;s<3&&l<i;s++,l++)o[l]=c>>>(16>>>s&24)&255;c=0}return o}function it(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65}function Xe(t){for(var e=2,r="",n=t.length,i=0,o=0;o<n;o++)e=o%3,i|=t[o]<<(16>>>e&24),(e===2||t.length-o===1)&&(r+=String.fromCodePoint(it(i>>>18&63),it(i>>>12&63),it(i>>>6&63),it(i&63)),i=0);return r.slice(0,r.length-2+e)+(e===2?"":e===1?"=":"==")}function Je(t){let e=t.startsWith("0x")?t.slice(2):t,n=(e.length%2===0?e:`0${e}}`).match(/.{2}/g)?.map(i=>parseInt(i,16))??[];return Uint8Array.from(n)}function ze(t){return t.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")}function y0(t){let e=[],r=0;if(t===0)return[0];for(;t>0;)e[r]=t&127,(t>>=7)&&(e[r]|=128),r+=1;return e}function Ln(t){let e=0,r=0,n=0;for(;;){let i=t[n];if(n+=1,e|=(i&127)<<r,!(i&128))break;r+=7}return{value:e,length:n}}var g0=class{constructor(e){this.bytePosition=0,this.dataView=new DataView(e.buffer)}shift(e){return this.bytePosition+=e,this}read8(){let e=this.dataView.getUint8(this.bytePosition);return this.shift(1),e}read16(){let e=this.dataView.getUint16(this.bytePosition,!0);return this.shift(2),e}read32(){let e=this.dataView.getUint32(this.bytePosition,!0);return this.shift(4),e}read64(){let e=this.read32(),n=this.read32().toString(16)+e.toString(16).padStart(8,"0");return BigInt("0x"+n).toString(10)}read128(){let e=BigInt(this.read64()),n=BigInt(this.read64()).toString(16)+e.toString(16).padStart(16,"0");return BigInt("0x"+n).toString(10)}read256(){let e=BigInt(this.read128()),n=BigInt(this.read128()).toString(16)+e.toString(16).padStart(32,"0");return BigInt("0x"+n).toString(10)}readBytes(e){let r=this.bytePosition+this.dataView.byteOffset,n=new Uint8Array(this.dataView.buffer,r,e);return this.shift(e),n}readULEB(){let e=this.bytePosition+this.dataView.byteOffset,r=new Uint8Array(this.dataView.buffer,e),{value:n,length:i}=Ln(r);return this.shift(i),n}readVec(e){let r=this.readULEB(),n=[];for(let i=0;i<r;i++)n.push(e(this,i,r));return n}};function wr(t,e){switch(e){case"base58":return je(t);case"base64":return Xe(t);case"hex":return ze(t);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function Ar(t,e){switch(e){case"base58":return Ge(t);case"base64":return Ce(t);case"hex":return Je(t);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function s0(t,e=["<",">"]){let[r,n]=e,i=[],o="",s=0;for(let a=0;a<t.length;a++){let c=t[a];if(c===r&&s++,c===n&&s--,s===0&&c===","){i.push(o.trim()),o="";continue}o+=c}return i.push(o.trim()),i}var v0=class{constructor({size:e=1024,maxSize:r,allocateSize:n=1024}={}){this.bytePosition=0,this.size=e,this.maxSize=r||e,this.allocateSize=n,this.dataView=new DataView(new ArrayBuffer(e))}ensureSizeOrGrow(e){let r=this.bytePosition+e;if(r>this.size){let n=Math.min(this.maxSize,this.size+this.allocateSize);if(r>n)throw new Error(`Attempting to serialize to BCS, but buffer does not have enough size. Allocated size: ${this.size}, Max size: ${this.maxSize}, Required size: ${r}`);this.size=n;let i=new ArrayBuffer(this.size);new Uint8Array(i).set(new Uint8Array(this.dataView.buffer)),this.dataView=new DataView(i)}}shift(e){return this.bytePosition+=e,this}write8(e){return this.ensureSizeOrGrow(1),this.dataView.setUint8(this.bytePosition,Number(e)),this.shift(1)}write16(e){return this.ensureSizeOrGrow(2),this.dataView.setUint16(this.bytePosition,Number(e),!0),this.shift(2)}write32(e){return this.ensureSizeOrGrow(4),this.dataView.setUint32(this.bytePosition,Number(e),!0),this.shift(4)}write64(e){return Cr(BigInt(e),8).forEach(r=>this.write8(r)),this}write128(e){return Cr(BigInt(e),16).forEach(r=>this.write8(r)),this}write256(e){return Cr(BigInt(e),32).forEach(r=>this.write8(r)),this}writeULEB(e){return y0(e).forEach(r=>this.write8(r)),this}writeVec(e,r){return this.writeULEB(e.length),Array.from(e).forEach((n,i)=>r(this,n,i,e.length)),this}*[Symbol.iterator](){for(let e=0;e<this.bytePosition;e++)yield this.dataView.getUint8(e);return this.toBytes()}toBytes(){return new Uint8Array(this.dataView.buffer.slice(0,this.bytePosition))}toString(e){return wr(this.toBytes(),e)}};function Cr(t,e){let r=new Uint8Array(e),n=0;for(;t>0;)r[n]=Number(t%BigInt(256)),t=t/BigInt(256),n+=1;return r}var Wn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Re=(t,e,r)=>(Wn(t,e,"read from private field"),r?r.call(t):e.get(t)),st=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},at=(t,e,r,n)=>(Wn(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),m0,M0,ot,Ye,qn=class{constructor(t){st(this,m0,void 0),st(this,M0,void 0),this.name=t.name,this.read=t.read,this.serializedSize=t.serializedSize??(()=>null),at(this,m0,t.write),at(this,M0,t.serialize??((e,r)=>{let n=new v0({size:this.serializedSize(e)??void 0,...r});return Re(this,m0).call(this,e,n),n.toBytes()})),this.validate=t.validate??(()=>{})}write(t,e){this.validate(t),Re(this,m0).call(this,t,e)}serialize(t,e){return this.validate(t),new ct(this,Re(this,M0).call(this,t,e))}parse(t){let e=new g0(t);return this.read(e)}transform({name:t,input:e,output:r}){return new qn({name:t??this.name,read:n=>r(this.read(n)),write:(n,i)=>Re(this,m0).call(this,e(n),i),serializedSize:n=>this.serializedSize(e(n)),serialize:(n,i)=>Re(this,M0).call(this,e(n),i),validate:n=>this.validate(e(n))})}},ve=qn;m0=new WeakMap;M0=new WeakMap;var Kn=Symbol.for("@mysten/serialized-bcs");function B0(t){return!!t&&typeof t=="object"&&t[Kn]===!0}var ct=class{constructor(e,r){st(this,ot,void 0),st(this,Ye,void 0),at(this,ot,e),at(this,Ye,r)}get[Kn](){return!0}toBytes(){return Re(this,Ye)}toHex(){return ze(Re(this,Ye))}toBase64(){return Xe(Re(this,Ye))}toBase58(){return je(Re(this,Ye))}parse(){return Re(this,ot).parse(Re(this,Ye))}};ot=new WeakMap;Ye=new WeakMap;function N0({size:t,...e}){return new ve({...e,serializedSize:()=>t})}function ft({readMethod:t,writeMethod:e,...r}){return N0({...r,read:n=>n[t](),write:(n,i)=>i[e](n),validate:n=>{if(n<0||n>r.maxValue)throw new TypeError(`Invalid ${r.name} value: ${n}. Expected value in range 0-${r.maxValue}`);r.validate?.(n)}})}function ut({readMethod:t,writeMethod:e,...r}){return N0({...r,read:n=>n[t](),write:(n,i)=>i[e](BigInt(n)),validate:n=>{let i=BigInt(n);if(i<0||i>r.maxValue)throw new TypeError(`Invalid ${r.name} value: ${i}. Expected value in range 0-${r.maxValue}`);r.validate?.(i)}})}function Vn({serialize:t,...e}){let r=new ve({...e,serialize:t,write:(n,i)=>{for(let o of r.serialize(n).toBytes())i.write8(o)}});return r}function Gn({toBytes:t,fromBytes:e,...r}){return new ve({...r,read:n=>{let i=n.readULEB(),o=n.readBytes(i);return e(o)},write:(n,i)=>{let o=t(n);i.writeULEB(o.length);for(let s=0;s<o.length;s++)i.write8(o[s])},serialize:n=>{let i=t(n),o=y0(i.length),s=new Uint8Array(o.length+i.length);return s.set(o,0),s.set(i,o.length),s},validate:n=>{if(typeof n!="string")throw new TypeError(`Invalid ${r.name} value: ${n}. Expected string`);r.validate?.(n)}})}function Xn(t){let e=null;function r(){return e||(e=t()),e}return new ve({name:"lazy",read:n=>r().read(n),serializedSize:n=>r().serializedSize(n),write:(n,i)=>r().write(n,i),serialize:(n,i)=>r().serialize(n,i).toBytes()})}var C={u8(t){return ft({name:"u8",readMethod:"read8",writeMethod:"write8",size:1,maxValue:2**8-1,...t})},u16(t){return ft({name:"u16",readMethod:"read16",writeMethod:"write16",size:2,maxValue:2**16-1,...t})},u32(t){return ft({name:"u32",readMethod:"read32",writeMethod:"write32",size:4,maxValue:2**32-1,...t})},u64(t){return ut({name:"u64",readMethod:"read64",writeMethod:"write64",size:8,maxValue:2n**64n-1n,...t})},u128(t){return ut({name:"u128",readMethod:"read128",writeMethod:"write128",size:16,maxValue:2n**128n-1n,...t})},u256(t){return ut({name:"u256",readMethod:"read256",writeMethod:"write256",size:32,maxValue:2n**256n-1n,...t})},bool(t){return N0({name:"bool",size:1,read:e=>e.read8()===1,write:(e,r)=>r.write8(e?1:0),...t,validate:e=>{if(t?.validate?.(e),typeof e!="boolean")throw new TypeError(`Expected boolean, found ${typeof e}`)}})},uleb128(t){return Vn({name:"uleb128",read:e=>e.readULEB(),serialize:e=>Uint8Array.from(y0(e)),...t})},bytes(t,e){return N0({name:`bytes[${t}]`,size:t,read:r=>r.readBytes(t),write:(r,n)=>{for(let i=0;i<t;i++)n.write8(r[i]??0)},...e,validate:r=>{if(e?.validate?.(r),!("length"in r))throw new TypeError(`Expected array, found ${typeof r}`);if(r.length!==t)throw new TypeError(`Expected array of length ${t}, found ${r.length}`)}})},string(t){return Gn({name:"string",toBytes:e=>new TextEncoder().encode(e),fromBytes:e=>new TextDecoder().decode(e),...t})},fixedArray(t,e,r){return new ve({name:`${e.name}[${t}]`,read:n=>{let i=new Array(t);for(let o=0;o<t;o++)i[o]=e.read(n);return i},write:(n,i)=>{for(let o of n)e.write(o,i)},...r,validate:n=>{if(r?.validate?.(n),!("length"in n))throw new TypeError(`Expected array, found ${typeof n}`);if(n.length!==t)throw new TypeError(`Expected array of length ${t}, found ${n.length}`)}})},option(t){return C.enum(`Option<${t.name}>`,{None:null,Some:t}).transform({input:e=>e==null?{None:!0}:{Some:e},output:e=>"Some"in e?e.Some:null})},vector(t,e){return new ve({name:`vector<${t.name}>`,read:r=>{let n=r.readULEB(),i=new Array(n);for(let o=0;o<n;o++)i[o]=t.read(r);return i},write:(r,n)=>{n.writeULEB(r.length);for(let i of r)t.write(i,n)},...e,validate:r=>{if(e?.validate?.(r),!("length"in r))throw new TypeError(`Expected array, found ${typeof r}`)}})},tuple(t,e){return new ve({name:`(${t.map(r=>r.name).join(", ")})`,serializedSize:r=>{let n=0;for(let i=0;i<t.length;i++){let o=t[i].serializedSize(r[i]);if(o==null)return null;n+=o}return n},read:r=>{let n=[];for(let i of t)n.push(i.read(r));return n},write:(r,n)=>{for(let i=0;i<t.length;i++)t[i].write(r[i],n)},...e,validate:r=>{if(e?.validate?.(r),!Array.isArray(r))throw new TypeError(`Expected array, found ${typeof r}`);if(r.length!==t.length)throw new TypeError(`Expected array of length ${t.length}, found ${r.length}`)}})},struct(t,e,r){let n=Object.entries(e);return new ve({name:t,serializedSize:i=>{let o=0;for(let[s,a]of n){let c=a.serializedSize(i[s]);if(c==null)return null;o+=c}return o},read:i=>{let o={};for(let[s,a]of n)o[s]=a.read(i);return o},write:(i,o)=>{for(let[s,a]of n)a.write(i[s],o)},...r,validate:i=>{if(r?.validate?.(i),typeof i!="object"||i==null)throw new TypeError(`Expected object, found ${typeof i}`)}})},enum(t,e,r){let n=Object.entries(e);return new ve({name:t,read:i=>{let o=i.readULEB(),[s,a]=n[o];return{[s]:a?.read(i)??!0}},write:(i,o)=>{let[s,a]=Object.entries(i)[0];for(let c=0;c<n.length;c++){let[l,f]=n[c];if(l===s){o.writeULEB(c),f?.write(a,o);return}}},...r,validate:i=>{if(r?.validate?.(i),typeof i!="object"||i==null)throw new TypeError(`Expected object, found ${typeof i}`);let o=Object.keys(i);if(o.length!==1)throw new TypeError(`Expected object with one key, found ${o.length}`);let[s]=o;if(!Object.hasOwn(e,s))throw new TypeError(`Invalid enum variant ${s}`)}})},map(t,e){return C.vector(C.tuple([t,e])).transform({name:`Map<${t.name}, ${e.name}>`,input:r=>[...r.entries()],output:r=>{let n=new Map;for(let[i,o]of r)n.set(i,o);return n}})},generic(t,e){return(...r)=>e(...r).transform({name:`${e.name}<${r.map(n=>n.name).join(", ")}>`,input:n=>n,output:n=>n})},lazy(t){return Xn(t)}};var ra=32,$0=class{constructor(t){if(this.types=new Map,this.counter=0,t instanceof $0){this.schema=t.schema,this.types=new Map(t.types);return}if(this.schema=t,this.registerAddressType($0.ADDRESS,t.addressLength,t.addressEncoding),this.registerVectorType(t.vectorType),t.types&&t.types.structs)for(let e of Object.keys(t.types.structs))this.registerStructType(e,t.types.structs[e]);if(t.types&&t.types.enums)for(let e of Object.keys(t.types.enums))this.registerEnumType(e,t.types.enums[e]);if(t.types&&t.types.aliases)for(let e of Object.keys(t.types.aliases))this.registerAlias(e,t.types.aliases[e]);t.withPrimitives!==!1&&na(this)}tempKey(){return`bcs-struct-${++this.counter}`}ser(t,e,r){if(typeof t=="string"||Array.isArray(t)){let{name:n,params:i}=this.parseTypeName(t);return this.getTypeInterface(n).encode(this,e,r,i)}if(typeof t=="object"){let n=this.tempKey();return new $0(this).registerStructType(n,t).ser(n,e,r)}throw new Error(`Incorrect type passed into the '.ser()' function.
2
- ${JSON.stringify(t)}`)}de(t,e,r){if(typeof e=="string")if(r)e=Ar(e,r);else throw new Error("To pass a string to `bcs.de`, specify encoding");if(typeof t=="string"||Array.isArray(t)){let{name:n,params:i}=this.parseTypeName(t);return this.getTypeInterface(n).decode(this,e,i)}if(typeof t=="object"){let n=new $0(this),i=this.tempKey();return n.registerStructType(i,t).de(i,e,r)}throw new Error(`Incorrect type passed into the '.de()' function.
3
- ${JSON.stringify(t)}`)}hasType(t){return this.types.has(t)}registerAlias(t,e){return this.types.set(t,e),this}registerType(t,e,r,n=()=>!0){let{name:i,params:o}=this.parseTypeName(t);return this.types.set(i,{encode(s,a,c,l){let f=o.reduce((u,x,d)=>Object.assign(u,{[x]:l[d]}),{});return this._encodeRaw.call(s,new v0(c),a,l,f)},decode(s,a,c){let l=o.reduce((f,u,x)=>Object.assign(f,{[u]:c[x]}),{});return this._decodeRaw.call(s,new g0(a),c,l)},_encodeRaw(s,a,c,l){if(n(a))return e.call(this,s,a,c,l);throw new Error(`Validation failed for type ${i}, data: ${a}`)},_decodeRaw(s,a,c){return r.call(this,s,a,c)}}),this}registerBcsType(t,e){return this.registerType(t,(r,n,i)=>{let o=i.map(s=>new ve({name:String(s),write:(a,c)=>{let{name:l,params:f}=this.parseTypeName(s),u=this.getTypeInterface(l),x=f.reduce((d,p,g)=>Object.assign(d,{[p]:i[g]}),{});return u._encodeRaw.call(this,c,a,f,x)},read:()=>{throw new Error("Not implemented")}}));return e(...o).write(n,r),r},(r,n)=>{let i=n.map(o=>new ve({name:String(o),write:(s,a)=>{throw new Error("Not implemented")},read:s=>{let{name:a,params:c}=this.parseTypeName(o),l=this.getTypeInterface(a),f=c.reduce((u,x,d)=>Object.assign(u,{[x]:n[d]}),{});return l._decodeRaw.call(this,s,c,f)}}));return e(...i).read(r)}),this}registerAddressType(t,e,r="hex"){switch(r){case"base64":return this.registerType(t,function(i,o){return Ce(o).reduce((s,a)=>s.write8(a),i)},function(i){return Xe(i.readBytes(e))});case"hex":return this.registerType(t,function(i,o){return Je(o).reduce((s,a)=>s.write8(a),i)},function(i){return ze(i.readBytes(e))});default:throw new Error("Unsupported encoding! Use either hex or base64")}}registerVectorType(t){let{name:e,params:r}=this.parseTypeName(t);if(r.length>1)throw new Error("Vector can have only one type parameter; got "+e);return this.registerType(t,function(i,o,s,a){return i.writeVec(o,(c,l)=>{let f=s[0];if(!f)throw new Error(`Incorrect number of type parameters passed a to vector '${t}'`);let{name:u,params:x}=this.parseTypeName(f);if(this.hasType(u))return this.getTypeInterface(u)._encodeRaw.call(this,c,l,x,a);if(!(u in a))throw new Error(`Unable to find a matching type definition for ${u} in vector; make sure you passed a generic`);let{name:d,params:p}=this.parseTypeName(a[u]);return this.getTypeInterface(d)._encodeRaw.call(this,c,l,p,a)})},function(i,o,s){return i.readVec(a=>{let c=o[0];if(!c)throw new Error(`Incorrect number of type parameters passed to a vector '${t}'`);let{name:l,params:f}=this.parseTypeName(c);if(this.hasType(l))return this.getTypeInterface(l)._decodeRaw.call(this,a,f,s);if(!(l in s))throw new Error(`Unable to find a matching type definition for ${l} in vector; make sure you passed a generic`);let{name:u,params:x}=this.parseTypeName(s[l]);return this.getTypeInterface(u)._decodeRaw.call(this,a,x,s)})})}registerStructType(t,e){for(let s in e){let a=this.tempKey(),c=e[s];!Array.isArray(c)&&typeof c!="string"&&(e[s]=a,this.registerStructType(a,c))}let r=Object.freeze(e),n=Object.keys(r),{name:i,params:o}=this.parseTypeName(t);return this.registerType(t,function(a,c,l,f){if(!c||c.constructor!==Object)throw new Error(`Expected ${i} to be an Object, got: ${c}`);if(l.length!==o.length)throw new Error(`Incorrect number of generic parameters passed; expected: ${o.length}, got: ${l.length}`);for(let u of n){if(!(u in c))throw new Error(`Struct ${i} requires field ${u}:${r[u]}`);let{name:x,params:d}=this.parseTypeName(r[u]);if(!o.includes(x))this.getTypeInterface(x)._encodeRaw.call(this,a,c[u],d,f);else{let p=o.indexOf(x),{name:g,params:v}=this.parseTypeName(l[p]);if(this.hasType(g)){this.getTypeInterface(g)._encodeRaw.call(this,a,c[u],v,f);continue}if(!(g in f))throw new Error(`Unable to find a matching type definition for ${g} in ${i}; make sure you passed a generic`);let{name:h,params:y}=this.parseTypeName(f[g]);this.getTypeInterface(h)._encodeRaw.call(this,a,c[u],y,f)}}return a},function(a,c,l){if(c.length!==o.length)throw new Error(`Incorrect number of generic parameters passed; expected: ${o.length}, got: ${c.length}`);let f={};for(let u of n){let{name:x,params:d}=this.parseTypeName(r[u]);if(!o.includes(x))f[u]=this.getTypeInterface(x)._decodeRaw.call(this,a,d,l);else{let p=o.indexOf(x),{name:g,params:v}=this.parseTypeName(c[p]);if(this.hasType(g)){f[u]=this.getTypeInterface(g)._decodeRaw.call(this,a,v,l);continue}if(!(g in l))throw new Error(`Unable to find a matching type definition for ${g} in ${i}; make sure you passed a generic`);let{name:h,params:y}=this.parseTypeName(l[g]);f[u]=this.getTypeInterface(h)._decodeRaw.call(this,a,y,l)}}return f})}registerEnumType(t,e){for(let s in e){let a=this.tempKey(),c=e[s];c!==null&&!Array.isArray(c)&&typeof c!="string"&&(e[s]=a,this.registerStructType(a,c))}let r=Object.freeze(e),n=Object.keys(r),{name:i,params:o}=this.parseTypeName(t);return this.registerType(t,function(a,c,l,f){if(!c)throw new Error(`Unable to write enum "${i}", missing data.
1
+ "use strict";var MSafeWallet=(()=>{var ua=Object.create;var or=Object.defineProperty;var xa=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var da=Object.getPrototypeOf,ha=Object.prototype.hasOwnProperty;var Ln=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),pa=(t,e)=>{for(var r in e)or(t,r,{get:e[r],enumerable:!0})},Wn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of la(e))!ha.call(t,i)&&i!==r&&or(t,i,{get:()=>e[i],enumerable:!(n=xa(e,i))||n.enumerable});return t};var sr=(t,e,r)=>(r=t!=null?ua(da(t)):{},Wn(e||!t||!t.__esModule?or(r,"default",{value:t,enumerable:!0}):r,t)),ya=t=>Wn(or({},"__esModule",{value:!0}),t);var Kn=H((Yf,qn)=>{"use strict";function ga(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var n=0;n<t.length;n++){var i=t.charAt(n),o=i.charCodeAt(0);if(e[o]!==255)throw new TypeError(i+" is ambiguous");e[o]=n}var s=t.length,a=t.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function f(d){if(d instanceof Uint8Array||(ArrayBuffer.isView(d)?d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength):Array.isArray(d)&&(d=Uint8Array.from(d))),!(d instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(d.length===0)return"";for(var p=0,g=0,m=0,h=d.length;m!==h&&d[m]===0;)m++,p++;for(var y=(h-m)*l+1>>>0,B=new Uint8Array(y);m!==h;){for(var v=d[m],b=0,E=y-1;(v!==0||b<g)&&E!==-1;E--,b++)v+=256*B[E]>>>0,B[E]=v%s>>>0,v=v/s>>>0;if(v!==0)throw new Error("Non-zero carry");g=b,m++}for(var I=y-g;I!==y&&B[I]===0;)I++;for(var S=a.repeat(p);I<y;++I)S+=t.charAt(B[I]);return S}function u(d){if(typeof d!="string")throw new TypeError("Expected String");if(d.length===0)return new Uint8Array;for(var p=0,g=0,m=0;d[p]===a;)g++,p++;for(var h=(d.length-p)*c+1>>>0,y=new Uint8Array(h);d[p];){var B=e[d.charCodeAt(p)];if(B===255)return;for(var v=0,b=h-1;(B!==0||v<m)&&b!==-1;b--,v++)B+=s*y[b]>>>0,y[b]=B%256>>>0,B=B/256>>>0;if(B!==0)throw new Error("Non-zero carry");m=v,p++}for(var E=h-m;E!==h&&y[E]===0;)E++;for(var I=new Uint8Array(g+(h-E)),S=g;E!==h;)I[S++]=y[E++];return I}function x(d){var p=u(d);if(p)return p;throw new Error("Non-base"+s+" character")}return{encode:f,decodeUnsafe:u,decode:x}}qn.exports=ga});var Gn=H((Zf,Vn)=>{"use strict";var ma=Kn(),va="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Vn.exports=ma(va)});var gi=H(Er=>{"use strict";Er.byteLength=ac;Er.toByteArray=fc;Er.fromByteArray=lc;var Pe=[],Se=[],sc=typeof Uint8Array<"u"?Uint8Array:Array,on="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(at=0,pi=on.length;at<pi;++at)Pe[at]=on[at],Se[on.charCodeAt(at)]=at;var at,pi;Se[45]=62;Se[95]=63;function yi(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function ac(t){var e=yi(t),r=e[0],n=e[1];return(r+n)*3/4-n}function cc(t,e,r){return(e+r)*3/4-r}function fc(t){var e,r=yi(t),n=r[0],i=r[1],o=new sc(cc(t,n,i)),s=0,a=i>0?n-4:n,c;for(c=0;c<a;c+=4)e=Se[t.charCodeAt(c)]<<18|Se[t.charCodeAt(c+1)]<<12|Se[t.charCodeAt(c+2)]<<6|Se[t.charCodeAt(c+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=Se[t.charCodeAt(c)]<<2|Se[t.charCodeAt(c+1)]>>4,o[s++]=e&255),i===1&&(e=Se[t.charCodeAt(c)]<<10|Se[t.charCodeAt(c+1)]<<4|Se[t.charCodeAt(c+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function uc(t){return Pe[t>>18&63]+Pe[t>>12&63]+Pe[t>>6&63]+Pe[t&63]}function xc(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(uc(n));return i.join("")}function lc(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(xc(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(Pe[e>>2]+Pe[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Pe[e>>10]+Pe[e>>4&63]+Pe[e<<2&63]+"=")),i.join("")}});var mi=H(sn=>{"use strict";sn.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,f=-7,u=r?i-1:0,x=r?-1:1,d=t[e+u];for(u+=x,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=o*256+t[e+u],u+=x,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=s*256+t[e+u],u+=x,f-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(d?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(d?-1:1)*s*Math.pow(2,o-n)};sn.write=function(t,e,r,n,i,o){var s,a,c,l=o*8-i-1,f=(1<<l)-1,u=f>>1,x=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+u>=1?e+=x/c:e+=x*Math.pow(2,1-u),e*c>=2&&(s++,c/=2),s+u>=f?(a=0,s=f):s+u>=1?(a=(e*c-1)*Math.pow(2,i),s=s+u):(a=e*Math.pow(2,u-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=a&255,d+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[r+d]=s&255,d+=p,s/=256,l-=8);t[r+d-p]|=g*128}});var Ri=H(St=>{"use strict";var an=gi(),Dt=mi(),vi=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;St.Buffer=A;St.SlowBuffer=mc;St.INSPECT_MAX_BYTES=50;var Ar=2147483647;St.kMaxLength=Ar;A.TYPED_ARRAY_SUPPORT=dc();!A.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function dc(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(A.prototype,"parent",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.buffer}});Object.defineProperty(A.prototype,"offset",{enumerable:!0,get:function(){if(A.isBuffer(this))return this.byteOffset}});function Ne(t){if(t>Ar)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,A.prototype),e}function A(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return xn(t)}return Ai(t,e,r)}A.poolSize=8192;function Ai(t,e,r){if(typeof t=="string")return pc(t,e);if(ArrayBuffer.isView(t))return yc(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ze(t,ArrayBuffer)||t&&ze(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ze(t,SharedArrayBuffer)||t&&ze(t.buffer,SharedArrayBuffer)))return fn(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return A.from(n,e,r);let i=gc(t);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return A.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}A.from=function(t,e,r){return Ai(t,e,r)};Object.setPrototypeOf(A.prototype,Uint8Array.prototype);Object.setPrototypeOf(A,Uint8Array);function wi(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function hc(t,e,r){return wi(t),t<=0?Ne(t):e!==void 0?typeof r=="string"?Ne(t).fill(e,r):Ne(t).fill(e):Ne(t)}A.alloc=function(t,e,r){return hc(t,e,r)};function xn(t){return wi(t),Ne(t<0?0:ln(t)|0)}A.allocUnsafe=function(t){return xn(t)};A.allocUnsafeSlow=function(t){return xn(t)};function pc(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!A.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Ci(t,e)|0,n=Ne(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function cn(t){let e=t.length<0?0:ln(t.length)|0,r=Ne(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function yc(t){if(ze(t,Uint8Array)){let e=new Uint8Array(t);return fn(e.buffer,e.byteOffset,e.byteLength)}return cn(t)}function fn(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,A.prototype),n}function gc(t){if(A.isBuffer(t)){let e=ln(t.length)|0,r=Ne(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||hn(t.length)?Ne(0):cn(t);if(t.type==="Buffer"&&Array.isArray(t.data))return cn(t.data)}function ln(t){if(t>=Ar)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ar.toString(16)+" bytes");return t|0}function mc(t){return+t!=t&&(t=0),A.alloc(+t)}A.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==A.prototype};A.compare=function(e,r){if(ze(e,Uint8Array)&&(e=A.from(e,e.offset,e.byteLength)),ze(r,Uint8Array)&&(r=A.from(r,r.offset,r.byteLength)),!A.isBuffer(e)||!A.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,i=r.length;for(let o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0};A.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};A.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return A.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let i=A.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){let s=e[n];if(ze(s,Uint8Array))o+s.length>i.length?(A.isBuffer(s)||(s=A.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(A.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Ci(t,e){if(A.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ze(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return un(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ji(t).length;default:if(i)return n?-1:un(t).length;e=(""+e).toLowerCase(),i=!0}}A.byteLength=Ci;function vc(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return _c(this,e,r);case"utf8":case"utf-8":return Fi(this,e,r);case"ascii":return Fc(this,e,r);case"latin1":case"binary":return Sc(this,e,r);case"base64":return Cc(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tc(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}A.prototype._isBuffer=!0;function ct(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}A.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)ct(this,r,r+1);return this};A.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)ct(this,r,r+3),ct(this,r+1,r+2);return this};A.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)ct(this,r,r+7),ct(this,r+1,r+6),ct(this,r+2,r+5),ct(this,r+3,r+4);return this};A.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Fi(this,0,e):vc.apply(this,arguments)};A.prototype.toLocaleString=A.prototype.toString;A.prototype.equals=function(e){if(!A.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:A.compare(this,e)===0};A.prototype.inspect=function(){let e="",r=St.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};vi&&(A.prototype[vi]=A.prototype.inspect);A.prototype.compare=function(e,r,n,i,o){if(ze(e,Uint8Array)&&(e=A.from(e,e.offset,e.byteLength)),!A.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;let s=o-i,a=n-r,c=Math.min(s,a),l=this.slice(i,o),f=e.slice(r,n);for(let u=0;u<c;++u)if(l[u]!==f[u]){s=l[u],a=f[u];break}return s<a?-1:a<s?1:0};function Di(t,e,r,n,i){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,hn(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=A.from(e,n)),A.isBuffer(e))return e.length===0?-1:Bi(t,e,r,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Bi(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Bi(t,e,r,n,i){let o=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;o=2,s/=2,a/=2,r/=2}function c(f,u){return o===1?f[u]:f.readUInt16BE(u*o)}let l;if(i){let f=-1;for(l=r;l<s;l++)if(c(t,l)===c(e,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===a)return f*o}else f!==-1&&(l-=l-f),f=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){let f=!0;for(let u=0;u<a;u++)if(c(t,l+u)!==c(e,u)){f=!1;break}if(f)return l}return-1}A.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};A.prototype.indexOf=function(e,r,n){return Di(this,e,r,n,!0)};A.prototype.lastIndexOf=function(e,r,n){return Di(this,e,r,n,!1)};function Bc(t,e,r,n){r=Number(r)||0;let i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let o=e.length;n>o/2&&(n=o/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(hn(a))return s;t[r+s]=a}return s}function bc(t,e,r,n){return wr(un(e,t.length-r),t,r,n)}function Ec(t,e,r,n){return wr(jc(e),t,r,n)}function Ac(t,e,r,n){return wr(ji(e),t,r,n)}function wc(t,e,r,n){return wr(Rc(e,t.length-r),t,r,n)}A.prototype.write=function(e,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-r;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return Bc(this,e,r,n);case"utf8":case"utf-8":return bc(this,e,r,n);case"ascii":case"latin1":case"binary":return Ec(this,e,r,n);case"base64":return Ac(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wc(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Cc(t,e,r){return e===0&&r===t.length?an.fromByteArray(t):an.fromByteArray(t.slice(e,r))}function Fi(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){let c,l,f,u;switch(a){case 1:o<128&&(s=o);break;case 2:c=t[i+1],(c&192)===128&&(u=(o&31)<<6|c&63,u>127&&(s=u));break;case 3:c=t[i+1],l=t[i+2],(c&192)===128&&(l&192)===128&&(u=(o&15)<<12|(c&63)<<6|l&63,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:c=t[i+1],l=t[i+2],f=t[i+3],(c&192)===128&&(l&192)===128&&(f&192)===128&&(u=(o&15)<<18|(c&63)<<12|(l&63)<<6|f&63,u>65535&&u<1114112&&(s=u))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return Dc(n)}var bi=4096;function Dc(t){let e=t.length;if(e<=bi)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=bi));return r}function Fc(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]&127);return n}function Sc(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function _c(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let o=e;o<r;++o)i+=Uc[t[o]];return i}function Tc(t,e,r){let n=t.slice(e,r),i="";for(let o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}A.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let i=this.subarray(e,r);return Object.setPrototypeOf(i,A.prototype),i};function fe(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return i};A.prototype.readUintBE=A.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=this[e+--r],o=1;for(;r>0&&(o*=256);)i+=this[e+--r]*o;return i};A.prototype.readUint8=A.prototype.readUInt8=function(e,r){return e=e>>>0,r||fe(e,1,this.length),this[e]};A.prototype.readUint16LE=A.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||fe(e,2,this.length),this[e]|this[e+1]<<8};A.prototype.readUint16BE=A.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||fe(e,2,this.length),this[e]<<8|this[e+1]};A.prototype.readUint32LE=A.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};A.prototype.readUint32BE=A.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};A.prototype.readBigUInt64LE=Qe(function(e){e=e>>>0,Ft(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Gt(e,this.length-8);let i=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,o=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<<BigInt(32))});A.prototype.readBigUInt64BE=Qe(function(e){e=e>>>0,Ft(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Gt(e,this.length-8);let i=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],o=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(o)});A.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=this[e],o=1,s=0;for(;++s<r&&(o*=256);)i+=this[e+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};A.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||fe(e,r,this.length);let i=r,o=1,s=this[e+--i];for(;i>0&&(o*=256);)s+=this[e+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};A.prototype.readInt8=function(e,r){return e=e>>>0,r||fe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};A.prototype.readInt16LE=function(e,r){e=e>>>0,r||fe(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};A.prototype.readInt16BE=function(e,r){e=e>>>0,r||fe(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};A.prototype.readInt32LE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};A.prototype.readInt32BE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};A.prototype.readBigInt64LE=Qe(function(e){e=e>>>0,Ft(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Gt(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});A.prototype.readBigInt64BE=Qe(function(e){e=e>>>0,Ft(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Gt(e,this.length-8);let i=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});A.prototype.readFloatLE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),Dt.read(this,e,!0,23,4)};A.prototype.readFloatBE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),Dt.read(this,e,!1,23,4)};A.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||fe(e,8,this.length),Dt.read(this,e,!0,52,8)};A.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||fe(e,8,this.length),Dt.read(this,e,!1,52,8)};function ve(t,e,r,n,i,o){if(!A.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;ve(this,e,r,n,a,0)}let o=1,s=0;for(this[r]=e&255;++s<n&&(o*=256);)this[r+s]=e/o&255;return r+n};A.prototype.writeUintBE=A.prototype.writeUIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,n=n>>>0,!i){let a=Math.pow(2,8*n)-1;ve(this,e,r,n,a,0)}let o=n-1,s=1;for(this[r+o]=e&255;--o>=0&&(s*=256);)this[r+o]=e/s&255;return r+n};A.prototype.writeUint8=A.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,1,255,0),this[r]=e&255,r+1};A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Si(t,e,r,n,i){Oi(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o,o=o>>8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function _i(t,e,r,n,i){Oi(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o=o>>8,t[r+6]=o,o=o>>8,t[r+5]=o,o=o>>8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}A.prototype.writeBigUInt64LE=Qe(function(e,r=0){return Si(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});A.prototype.writeBigUInt64BE=Qe(function(e,r=0){return _i(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});A.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);ve(this,e,r,n,c-1,-c)}let o=0,s=1,a=0;for(this[r]=e&255;++o<n&&(s*=256);)e<0&&a===0&&this[r+o-1]!==0&&(a=1),this[r+o]=(e/s>>0)-a&255;return r+n};A.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r>>>0,!i){let c=Math.pow(2,8*n-1);ve(this,e,r,n,c-1,-c)}let o=n-1,s=1,a=0;for(this[r+o]=e&255;--o>=0&&(s*=256);)e<0&&a===0&&this[r+o+1]!==0&&(a=1),this[r+o]=(e/s>>0)-a&255;return r+n};A.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};A.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};A.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};A.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};A.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||ve(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};A.prototype.writeBigInt64LE=Qe(function(e,r=0){return Si(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});A.prototype.writeBigInt64BE=Qe(function(e,r=0){return _i(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ti(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ii(t,e,r,n,i){return e=+e,r=r>>>0,i||Ti(t,e,r,4,34028234663852886e22,-34028234663852886e22),Dt.write(t,e,r,n,23,4),r+4}A.prototype.writeFloatLE=function(e,r,n){return Ii(this,e,r,!0,n)};A.prototype.writeFloatBE=function(e,r,n){return Ii(this,e,r,!1,n)};function ki(t,e,r,n,i){return e=+e,r=r>>>0,i||Ti(t,e,r,8,17976931348623157e292,-17976931348623157e292),Dt.write(t,e,r,n,52,8),r+8}A.prototype.writeDoubleLE=function(e,r,n){return ki(this,e,r,!0,n)};A.prototype.writeDoubleBE=function(e,r,n){return ki(this,e,r,!1,n)};A.prototype.copy=function(e,r,n,i){if(!A.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);let o=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),r),o};A.prototype.fill=function(e,r,n,i){if(typeof e=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!A.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let s=e.charCodeAt(0);(i==="utf8"&&s<128||i==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let o;if(typeof e=="number")for(o=r;o<n;++o)this[o]=e;else{let s=A.isBuffer(e)?e:A.from(e,i),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=s[o%a]}return this};var Ct={};function dn(t,e,r){Ct[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}dn("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);dn("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);dn("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=Ei(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Ei(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function Ei(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Ic(t,e,r){Ft(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&Gt(e,t.length-(r+1))}function Oi(t,e,r,n,i,o){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw o>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:a=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Ct.ERR_OUT_OF_RANGE("value",a,t)}Ic(n,i,o)}function Ft(t,e){if(typeof t!="number")throw new Ct.ERR_INVALID_ARG_TYPE(e,"number",t)}function Gt(t,e,r){throw Math.floor(t)!==t?(Ft(t,r),new Ct.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Ct.ERR_BUFFER_OUT_OF_BOUNDS:new Ct.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var kc=/[^+/0-9A-Za-z-_]/g;function Oc(t){if(t=t.split("=")[0],t=t.trim().replace(kc,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function un(t,e){e=e||1/0;let r,n=t.length,i=null,o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function jc(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Rc(t,e){let r,n,i,o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function ji(t){return an.toByteArray(Oc(t))}function wr(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function ze(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function hn(t){return t!==t}var Uc=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Qe(t){return typeof BigInt>"u"?Pc:t}function Pc(){throw new Error("BigInt not supported")}});var Do=H(()=>{"use strict"});var V=H((Pr,Fo)=>{"use strict";(function(t,e){typeof Pr=="object"?Fo.exports=Pr=e():typeof define=="function"&&define.amd?define([],e):t.CryptoJS=e()})(Pr,function(){var t=t||function(e,r){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<"u"&&global.crypto&&(n=global.crypto),!n&&typeof Ln=="function")try{n=Do()}catch{}var i=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function h(){}return function(y){var B;return h.prototype=y,B=new h,h.prototype=null,B}}(),s={},a=s.lib={},c=a.Base=function(){return{extend:function(h){var y=o(this);return h&&y.mixIn(h),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var y in h)h.hasOwnProperty(y)&&(this[y]=h[y]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=c.extend({init:function(h,y){h=this.words=h||[],y!=r?this.sigBytes=y:this.sigBytes=h.length*4},toString:function(h){return(h||u).stringify(this)},concat:function(h){var y=this.words,B=h.words,v=this.sigBytes,b=h.sigBytes;if(this.clamp(),v%4)for(var E=0;E<b;E++){var I=B[E>>>2]>>>24-E%4*8&255;y[v+E>>>2]|=I<<24-(v+E)%4*8}else for(var S=0;S<b;S+=4)y[v+S>>>2]=B[S>>>2];return this.sigBytes+=b,this},clamp:function(){var h=this.words,y=this.sigBytes;h[y>>>2]&=4294967295<<32-y%4*8,h.length=e.ceil(y/4)},clone:function(){var h=c.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var y=[],B=0;B<h;B+=4)y.push(i());return new l.init(y,h)}}),f=s.enc={},u=f.Hex={stringify:function(h){for(var y=h.words,B=h.sigBytes,v=[],b=0;b<B;b++){var E=y[b>>>2]>>>24-b%4*8&255;v.push((E>>>4).toString(16)),v.push((E&15).toString(16))}return v.join("")},parse:function(h){for(var y=h.length,B=[],v=0;v<y;v+=2)B[v>>>3]|=parseInt(h.substr(v,2),16)<<24-v%8*4;return new l.init(B,y/2)}},x=f.Latin1={stringify:function(h){for(var y=h.words,B=h.sigBytes,v=[],b=0;b<B;b++){var E=y[b>>>2]>>>24-b%4*8&255;v.push(String.fromCharCode(E))}return v.join("")},parse:function(h){for(var y=h.length,B=[],v=0;v<y;v++)B[v>>>2]|=(h.charCodeAt(v)&255)<<24-v%4*8;return new l.init(B,y)}},d=f.Utf8={stringify:function(h){try{return decodeURIComponent(escape(x.stringify(h)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(h){return x.parse(unescape(encodeURIComponent(h)))}},p=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=d.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var y,B=this._data,v=B.words,b=B.sigBytes,E=this.blockSize,I=E*4,S=b/I;h?S=e.ceil(S):S=e.max((S|0)-this._minBufferSize,0);var R=S*E,M=e.min(R*4,b);if(R){for(var w=0;w<R;w+=E)this._doProcessBlock(v,w);y=v.splice(0,R),B.sigBytes-=M}return new l.init(y,M)},clone:function(){var h=c.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0}),g=a.Hasher=p.extend({cfg:c.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var y=this._doFinalize();return y},blockSize:512/32,_createHelper:function(h){return function(y,B){return new h.init(B).finalize(y)}},_createHmacHelper:function(h){return function(y,B){return new m.HMAC.init(h,B).finalize(y)}}}),m=s.algo={};return s}(Math);return t})});var er=H((zr,So)=>{"use strict";(function(t,e){typeof zr=="object"?So.exports=zr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(zr,function(t){return function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,s=r.x64={},a=s.Word=i.extend({init:function(l,f){this.high=l,this.low=f}}),c=s.WordArray=i.extend({init:function(l,f){l=this.words=l||[],f!=e?this.sigBytes=f:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,f=l.length,u=[],x=0;x<f;x++){var d=l[x];u.push(d.high),u.push(d.low)}return o.create(u,this.sigBytes)},clone:function(){for(var l=i.clone.call(this),f=l.words=this.words.slice(0),u=f.length,x=0;x<u;x++)f[x]=f[x].clone();return l}})}(),t})});var To=H((Mr,_o)=>{"use strict";(function(t,e){typeof Mr=="object"?_o.exports=Mr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Mr,function(t){return function(){if(typeof ArrayBuffer=="function"){var e=t,r=e.lib,n=r.WordArray,i=n.init,o=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var a=s.byteLength,c=[],l=0;l<a;l++)c[l>>>2]|=s[l]<<24-l%4*8;i.call(this,c,a)}else i.apply(this,arguments)};o.prototype=n}}(),t.lib.WordArray})});var ko=H((Nr,Io)=>{"use strict";(function(t,e){typeof Nr=="object"?Io.exports=Nr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Nr,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Utf16=i.Utf16BE={stringify:function(a){for(var c=a.words,l=a.sigBytes,f=[],u=0;u<l;u+=2){var x=c[u>>>2]>>>16-u%4*8&65535;f.push(String.fromCharCode(x))}return f.join("")},parse:function(a){for(var c=a.length,l=[],f=0;f<c;f++)l[f>>>1]|=a.charCodeAt(f)<<16-f%2*16;return n.create(l,c*2)}};i.Utf16LE={stringify:function(a){for(var c=a.words,l=a.sigBytes,f=[],u=0;u<l;u+=2){var x=s(c[u>>>2]>>>16-u%4*8&65535);f.push(String.fromCharCode(x))}return f.join("")},parse:function(a){for(var c=a.length,l=[],f=0;f<c;f++)l[f>>>1]|=s(a.charCodeAt(f)<<16-f%2*16);return n.create(l,c*2)}};function s(a){return a<<8&4278255360|a>>>8&16711935}}(),t.enc.Utf16})});var rt=H(($r,Oo)=>{"use strict";(function(t,e){typeof $r=="object"?Oo.exports=$r=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})($r,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Base64={stringify:function(a){var c=a.words,l=a.sigBytes,f=this._map;a.clamp();for(var u=[],x=0;x<l;x+=3)for(var d=c[x>>>2]>>>24-x%4*8&255,p=c[x+1>>>2]>>>24-(x+1)%4*8&255,g=c[x+2>>>2]>>>24-(x+2)%4*8&255,m=d<<16|p<<8|g,h=0;h<4&&x+h*.75<l;h++)u.push(f.charAt(m>>>6*(3-h)&63));var y=f.charAt(64);if(y)for(;u.length%4;)u.push(y);return u.join("")},parse:function(a){var c=a.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var u=0;u<l.length;u++)f[l.charCodeAt(u)]=u}var x=l.charAt(64);if(x){var d=a.indexOf(x);d!==-1&&(c=d)}return s(a,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(a,c,l){for(var f=[],u=0,x=0;x<c;x++)if(x%4){var d=l[a.charCodeAt(x-1)]<<x%4*2,p=l[a.charCodeAt(x)]>>>6-x%4*2,g=d|p;f[u>>>2]|=g<<24-u%4*8,u++}return n.create(f,u)}}(),t.enc.Base64})});var Ro=H((Hr,jo)=>{"use strict";(function(t,e){typeof Hr=="object"?jo.exports=Hr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Hr,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Base64url={stringify:function(a,c){c===void 0&&(c=!0);var l=a.words,f=a.sigBytes,u=c?this._safe_map:this._map;a.clamp();for(var x=[],d=0;d<f;d+=3)for(var p=l[d>>>2]>>>24-d%4*8&255,g=l[d+1>>>2]>>>24-(d+1)%4*8&255,m=l[d+2>>>2]>>>24-(d+2)%4*8&255,h=p<<16|g<<8|m,y=0;y<4&&d+y*.75<f;y++)x.push(u.charAt(h>>>6*(3-y)&63));var B=u.charAt(64);if(B)for(;x.length%4;)x.push(B);return x.join("")},parse:function(a,c){c===void 0&&(c=!0);var l=a.length,f=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var x=0;x<f.length;x++)u[f.charCodeAt(x)]=x}var d=f.charAt(64);if(d){var p=a.indexOf(d);p!==-1&&(l=p)}return s(a,l,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(a,c,l){for(var f=[],u=0,x=0;x<c;x++)if(x%4){var d=l[a.charCodeAt(x-1)]<<x%4*2,p=l[a.charCodeAt(x)]>>>6-x%4*2,g=d|p;f[u>>>2]|=g<<24-u%4*8,u++}return n.create(f,u)}}(),t.enc.Base64url})});var nt=H((Lr,Uo)=>{"use strict";(function(t,e){typeof Lr=="object"?Uo.exports=Lr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Lr,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];(function(){for(var d=0;d<64;d++)a[d]=e.abs(e.sin(d+1))*4294967296|0})();var c=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,p){for(var g=0;g<16;g++){var m=p+g,h=d[m];d[m]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var y=this._hash.words,B=d[p+0],v=d[p+1],b=d[p+2],E=d[p+3],I=d[p+4],S=d[p+5],R=d[p+6],M=d[p+7],w=d[p+8],O=d[p+9],z=d[p+10],T=d[p+11],$=d[p+12],N=d[p+13],W=d[p+14],G=d[p+15],D=y[0],_=y[1],k=y[2],F=y[3];D=l(D,_,k,F,B,7,a[0]),F=l(F,D,_,k,v,12,a[1]),k=l(k,F,D,_,b,17,a[2]),_=l(_,k,F,D,E,22,a[3]),D=l(D,_,k,F,I,7,a[4]),F=l(F,D,_,k,S,12,a[5]),k=l(k,F,D,_,R,17,a[6]),_=l(_,k,F,D,M,22,a[7]),D=l(D,_,k,F,w,7,a[8]),F=l(F,D,_,k,O,12,a[9]),k=l(k,F,D,_,z,17,a[10]),_=l(_,k,F,D,T,22,a[11]),D=l(D,_,k,F,$,7,a[12]),F=l(F,D,_,k,N,12,a[13]),k=l(k,F,D,_,W,17,a[14]),_=l(_,k,F,D,G,22,a[15]),D=f(D,_,k,F,v,5,a[16]),F=f(F,D,_,k,R,9,a[17]),k=f(k,F,D,_,T,14,a[18]),_=f(_,k,F,D,B,20,a[19]),D=f(D,_,k,F,S,5,a[20]),F=f(F,D,_,k,z,9,a[21]),k=f(k,F,D,_,G,14,a[22]),_=f(_,k,F,D,I,20,a[23]),D=f(D,_,k,F,O,5,a[24]),F=f(F,D,_,k,W,9,a[25]),k=f(k,F,D,_,E,14,a[26]),_=f(_,k,F,D,w,20,a[27]),D=f(D,_,k,F,N,5,a[28]),F=f(F,D,_,k,b,9,a[29]),k=f(k,F,D,_,M,14,a[30]),_=f(_,k,F,D,$,20,a[31]),D=u(D,_,k,F,S,4,a[32]),F=u(F,D,_,k,w,11,a[33]),k=u(k,F,D,_,T,16,a[34]),_=u(_,k,F,D,W,23,a[35]),D=u(D,_,k,F,v,4,a[36]),F=u(F,D,_,k,I,11,a[37]),k=u(k,F,D,_,M,16,a[38]),_=u(_,k,F,D,z,23,a[39]),D=u(D,_,k,F,N,4,a[40]),F=u(F,D,_,k,B,11,a[41]),k=u(k,F,D,_,E,16,a[42]),_=u(_,k,F,D,R,23,a[43]),D=u(D,_,k,F,O,4,a[44]),F=u(F,D,_,k,$,11,a[45]),k=u(k,F,D,_,G,16,a[46]),_=u(_,k,F,D,b,23,a[47]),D=x(D,_,k,F,B,6,a[48]),F=x(F,D,_,k,M,10,a[49]),k=x(k,F,D,_,W,15,a[50]),_=x(_,k,F,D,S,21,a[51]),D=x(D,_,k,F,$,6,a[52]),F=x(F,D,_,k,E,10,a[53]),k=x(k,F,D,_,z,15,a[54]),_=x(_,k,F,D,v,21,a[55]),D=x(D,_,k,F,w,6,a[56]),F=x(F,D,_,k,G,10,a[57]),k=x(k,F,D,_,R,15,a[58]),_=x(_,k,F,D,N,21,a[59]),D=x(D,_,k,F,I,6,a[60]),F=x(F,D,_,k,T,10,a[61]),k=x(k,F,D,_,b,15,a[62]),_=x(_,k,F,D,O,21,a[63]),y[0]=y[0]+D|0,y[1]=y[1]+_|0,y[2]=y[2]+k|0,y[3]=y[3]+F|0},_doFinalize:function(){var d=this._data,p=d.words,g=this._nDataBytes*8,m=d.sigBytes*8;p[m>>>5]|=128<<24-m%32;var h=e.floor(g/4294967296),y=g;p[(m+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,p[(m+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,d.sigBytes=(p.length+1)*4,this._process();for(var B=this._hash,v=B.words,b=0;b<4;b++){var E=v[b];v[b]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return B},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}});function l(d,p,g,m,h,y,B){var v=d+(p&g|~p&m)+h+B;return(v<<y|v>>>32-y)+p}function f(d,p,g,m,h,y,B){var v=d+(p&m|g&~m)+h+B;return(v<<y|v>>>32-y)+p}function u(d,p,g,m,h,y,B){var v=d+(p^g^m)+h+B;return(v<<y|v>>>32-y)+p}function x(d,p,g,m,h,y,B){var v=d+(g^(p|~m))+h+B;return(v<<y|v>>>32-y)+p}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),t.MD5})});var Fn=H((Wr,Po)=>{"use strict";(function(t,e){typeof Wr=="object"?Po.exports=Wr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Wr,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,l){for(var f=this._hash.words,u=f[0],x=f[1],d=f[2],p=f[3],g=f[4],m=0;m<80;m++){if(m<16)s[m]=c[l+m]|0;else{var h=s[m-3]^s[m-8]^s[m-14]^s[m-16];s[m]=h<<1|h>>>31}var y=(u<<5|u>>>27)+g+s[m];m<20?y+=(x&d|~x&p)+1518500249:m<40?y+=(x^d^p)+1859775393:m<60?y+=(x&d|x&p|d&p)-1894007588:y+=(x^d^p)-899497514,g=p,p=d,d=x<<30|x>>>2,x=u,u=y}f[0]=f[0]+u|0,f[1]=f[1]+x|0,f[2]=f[2]+d|0,f[3]=f[3]+p|0,f[4]=f[4]+g|0},_doFinalize:function(){var c=this._data,l=c.words,f=this._nDataBytes*8,u=c.sigBytes*8;return l[u>>>5]|=128<<24-u%32,l[(u+64>>>9<<4)+14]=Math.floor(f/4294967296),l[(u+64>>>9<<4)+15]=f,c.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var c=i.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=i._createHelper(a),e.HmacSHA1=i._createHmacHelper(a)}(),t.SHA1})});var Kr=H((qr,zo)=>{"use strict";(function(t,e){typeof qr=="object"?zo.exports=qr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(qr,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[],c=[];(function(){function u(g){for(var m=e.sqrt(g),h=2;h<=m;h++)if(!(g%h))return!1;return!0}function x(g){return(g-(g|0))*4294967296|0}for(var d=2,p=0;p<64;)u(d)&&(p<8&&(a[p]=x(e.pow(d,1/2))),c[p]=x(e.pow(d,1/3)),p++),d++})();var l=[],f=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(u,x){for(var d=this._hash.words,p=d[0],g=d[1],m=d[2],h=d[3],y=d[4],B=d[5],v=d[6],b=d[7],E=0;E<64;E++){if(E<16)l[E]=u[x+E]|0;else{var I=l[E-15],S=(I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3,R=l[E-2],M=(R<<15|R>>>17)^(R<<13|R>>>19)^R>>>10;l[E]=S+l[E-7]+M+l[E-16]}var w=y&B^~y&v,O=p&g^p&m^g&m,z=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),T=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),$=b+T+w+c[E]+l[E],N=z+O;b=v,v=B,B=y,y=h+$|0,h=m,m=g,g=p,p=$+N|0}d[0]=d[0]+p|0,d[1]=d[1]+g|0,d[2]=d[2]+m|0,d[3]=d[3]+h|0,d[4]=d[4]+y|0,d[5]=d[5]+B|0,d[6]=d[6]+v|0,d[7]=d[7]+b|0},_doFinalize:function(){var u=this._data,x=u.words,d=this._nDataBytes*8,p=u.sigBytes*8;return x[p>>>5]|=128<<24-p%32,x[(p+64>>>9<<4)+14]=e.floor(d/4294967296),x[(p+64>>>9<<4)+15]=d,u.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=o._createHelper(f),r.HmacSHA256=o._createHmacHelper(f)}(Math),t.SHA256})});var No=H((Vr,Mo)=>{"use strict";(function(t,e,r){typeof Vr=="object"?Mo.exports=Vr=e(V(),Kr()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(t.CryptoJS)})(Vr,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.algo,o=i.SHA256,s=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=o._doFinalize.call(this);return a.sigBytes-=4,a}});e.SHA224=o._createHelper(s),e.HmacSHA224=o._createHmacHelper(s)}(),t.SHA224})});var Sn=H((Gr,$o)=>{"use strict";(function(t,e,r){typeof Gr=="object"?$o.exports=Gr=e(V(),er()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(Gr,function(t){return function(){var e=t,r=e.lib,n=r.Hasher,i=e.x64,o=i.Word,s=i.WordArray,a=e.algo;function c(){return o.create.apply(o,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],f=[];(function(){for(var x=0;x<80;x++)f[x]=c()})();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(x,d){for(var p=this._hash.words,g=p[0],m=p[1],h=p[2],y=p[3],B=p[4],v=p[5],b=p[6],E=p[7],I=g.high,S=g.low,R=m.high,M=m.low,w=h.high,O=h.low,z=y.high,T=y.low,$=B.high,N=B.low,W=v.high,G=v.low,D=b.high,_=b.low,k=E.high,F=E.low,ie=I,ee=S,ge=R,K=M,Ot=w,dt=O,C0=z,jt=T,Te=$,Be=N,rr=W,Rt=G,nr=D,Ut=_,D0=k,Pt=F,Ie=0;Ie<80;Ie++){var Ae,We,ir=f[Ie];if(Ie<16)We=ir.high=x[d+Ie*2]|0,Ae=ir.low=x[d+Ie*2+1]|0;else{var In=f[Ie-15],ht=In.high,zt=In.low,Ys=(ht>>>1|zt<<31)^(ht>>>8|zt<<24)^ht>>>7,kn=(zt>>>1|ht<<31)^(zt>>>8|ht<<24)^(zt>>>7|ht<<25),On=f[Ie-2],pt=On.high,Mt=On.low,Zs=(pt>>>19|Mt<<13)^(pt<<3|Mt>>>29)^pt>>>6,jn=(Mt>>>19|pt<<13)^(Mt<<3|pt>>>29)^(Mt>>>6|pt<<26),Rn=f[Ie-7],Qs=Rn.high,ea=Rn.low,Un=f[Ie-16],ta=Un.high,Pn=Un.low;Ae=kn+ea,We=Ys+Qs+(Ae>>>0<kn>>>0?1:0),Ae=Ae+jn,We=We+Zs+(Ae>>>0<jn>>>0?1:0),Ae=Ae+Pn,We=We+ta+(Ae>>>0<Pn>>>0?1:0),ir.high=We,ir.low=Ae}var ra=Te&rr^~Te&nr,zn=Be&Rt^~Be&Ut,na=ie&ge^ie&Ot^ge&Ot,ia=ee&K^ee&dt^K&dt,oa=(ie>>>28|ee<<4)^(ie<<30|ee>>>2)^(ie<<25|ee>>>7),Mn=(ee>>>28|ie<<4)^(ee<<30|ie>>>2)^(ee<<25|ie>>>7),sa=(Te>>>14|Be<<18)^(Te>>>18|Be<<14)^(Te<<23|Be>>>9),aa=(Be>>>14|Te<<18)^(Be>>>18|Te<<14)^(Be<<23|Te>>>9),Nn=l[Ie],ca=Nn.high,$n=Nn.low,be=Pt+aa,qe=D0+sa+(be>>>0<Pt>>>0?1:0),be=be+zn,qe=qe+ra+(be>>>0<zn>>>0?1:0),be=be+$n,qe=qe+ca+(be>>>0<$n>>>0?1:0),be=be+Ae,qe=qe+We+(be>>>0<Ae>>>0?1:0),Hn=Mn+ia,fa=oa+na+(Hn>>>0<Mn>>>0?1:0);D0=nr,Pt=Ut,nr=rr,Ut=Rt,rr=Te,Rt=Be,Be=jt+be|0,Te=C0+qe+(Be>>>0<jt>>>0?1:0)|0,C0=Ot,jt=dt,Ot=ge,dt=K,ge=ie,K=ee,ee=be+Hn|0,ie=qe+fa+(ee>>>0<be>>>0?1:0)|0}S=g.low=S+ee,g.high=I+ie+(S>>>0<ee>>>0?1:0),M=m.low=M+K,m.high=R+ge+(M>>>0<K>>>0?1:0),O=h.low=O+dt,h.high=w+Ot+(O>>>0<dt>>>0?1:0),T=y.low=T+jt,y.high=z+C0+(T>>>0<jt>>>0?1:0),N=B.low=N+Be,B.high=$+Te+(N>>>0<Be>>>0?1:0),G=v.low=G+Rt,v.high=W+rr+(G>>>0<Rt>>>0?1:0),_=b.low=_+Ut,b.high=D+nr+(_>>>0<Ut>>>0?1:0),F=E.low=F+Pt,E.high=k+D0+(F>>>0<Pt>>>0?1:0)},_doFinalize:function(){var x=this._data,d=x.words,p=this._nDataBytes*8,g=x.sigBytes*8;d[g>>>5]|=128<<24-g%32,d[(g+128>>>10<<5)+30]=Math.floor(p/4294967296),d[(g+128>>>10<<5)+31]=p,x.sigBytes=d.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var x=n.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512})});var Lo=H((Xr,Ho)=>{"use strict";(function(t,e,r){typeof Xr=="object"?Ho.exports=Xr=e(V(),er(),Sn()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(t.CryptoJS)})(Xr,function(t){return function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a)}(),t.SHA384})});var qo=H((Jr,Wo)=>{"use strict";(function(t,e,r){typeof Jr=="object"?Wo.exports=Jr=e(V(),er()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(Jr,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.x64,a=s.Word,c=r.algo,l=[],f=[],u=[];(function(){for(var p=1,g=0,m=0;m<24;m++){l[p+5*g]=(m+1)*(m+2)/2%64;var h=g%5,y=(2*p+3*g)%5;p=h,g=y}for(var p=0;p<5;p++)for(var g=0;g<5;g++)f[p+5*g]=g+(2*p+3*g)%5*5;for(var B=1,v=0;v<24;v++){for(var b=0,E=0,I=0;I<7;I++){if(B&1){var S=(1<<I)-1;S<32?E^=1<<S:b^=1<<S-32}B&128?B=B<<1^113:B<<=1}u[v]=a.create(b,E)}})();var x=[];(function(){for(var p=0;p<25;p++)x[p]=a.create()})();var d=c.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],g=0;g<25;g++)p[g]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,g){for(var m=this._state,h=this.blockSize/2,y=0;y<h;y++){var B=p[g+2*y],v=p[g+2*y+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var b=m[y];b.high^=v,b.low^=B}for(var E=0;E<24;E++){for(var I=0;I<5;I++){for(var S=0,R=0,M=0;M<5;M++){var b=m[I+5*M];S^=b.high,R^=b.low}var w=x[I];w.high=S,w.low=R}for(var I=0;I<5;I++)for(var O=x[(I+4)%5],z=x[(I+1)%5],T=z.high,$=z.low,S=O.high^(T<<1|$>>>31),R=O.low^($<<1|T>>>31),M=0;M<5;M++){var b=m[I+5*M];b.high^=S,b.low^=R}for(var N=1;N<25;N++){var S,R,b=m[N],W=b.high,G=b.low,D=l[N];D<32?(S=W<<D|G>>>32-D,R=G<<D|W>>>32-D):(S=G<<D-32|W>>>64-D,R=W<<D-32|G>>>64-D);var _=x[f[N]];_.high=S,_.low=R}var k=x[0],F=m[0];k.high=F.high,k.low=F.low;for(var I=0;I<5;I++)for(var M=0;M<5;M++){var N=I+5*M,b=m[N],ie=x[N],ee=x[(I+1)%5+5*M],ge=x[(I+2)%5+5*M];b.high=ie.high^~ee.high&ge.high,b.low=ie.low^~ee.low&ge.low}var b=m[0],K=u[E];b.high^=K.high,b.low^=K.low}},_doFinalize:function(){var p=this._data,g=p.words,m=this._nDataBytes*8,h=p.sigBytes*8,y=this.blockSize*32;g[h>>>5]|=1<<24-h%32,g[(e.ceil((h+1)/y)*y>>>5)-1]|=128,p.sigBytes=g.length*4,this._process();for(var B=this._state,v=this.cfg.outputLength/8,b=v/8,E=[],I=0;I<b;I++){var S=B[I],R=S.high,M=S.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,E.push(M),E.push(R)}return new i.init(E,v)},clone:function(){for(var p=o.clone.call(this),g=p._state=this._state.slice(0),m=0;m<25;m++)g[m]=g[m].clone();return p}});r.SHA3=o._createHelper(d),r.HmacSHA3=o._createHmacHelper(d)}(Math),t.SHA3})});var Vo=H((Yr,Ko)=>{"use strict";(function(t,e){typeof Yr=="object"?Ko.exports=Yr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Yr,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),x=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,b){for(var E=0;E<16;E++){var I=b+E,S=v[I];v[I]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var R=this._hash.words,M=u.words,w=x.words,O=a.words,z=c.words,T=l.words,$=f.words,N,W,G,D,_,k,F,ie,ee,ge;k=N=R[0],F=W=R[1],ie=G=R[2],ee=D=R[3],ge=_=R[4];for(var K,E=0;E<80;E+=1)K=N+v[b+O[E]]|0,E<16?K+=p(W,G,D)+M[0]:E<32?K+=g(W,G,D)+M[1]:E<48?K+=m(W,G,D)+M[2]:E<64?K+=h(W,G,D)+M[3]:K+=y(W,G,D)+M[4],K=K|0,K=B(K,T[E]),K=K+_|0,N=_,_=D,D=B(G,10),G=W,W=K,K=k+v[b+z[E]]|0,E<16?K+=y(F,ie,ee)+w[0]:E<32?K+=h(F,ie,ee)+w[1]:E<48?K+=m(F,ie,ee)+w[2]:E<64?K+=g(F,ie,ee)+w[3]:K+=p(F,ie,ee)+w[4],K=K|0,K=B(K,$[E]),K=K+ge|0,k=ge,ge=ee,ee=B(ie,10),ie=F,F=K;K=R[1]+G+ee|0,R[1]=R[2]+D+ge|0,R[2]=R[3]+_+k|0,R[3]=R[4]+N+F|0,R[4]=R[0]+W+ie|0,R[0]=K},_doFinalize:function(){var v=this._data,b=v.words,E=this._nDataBytes*8,I=v.sigBytes*8;b[I>>>5]|=128<<24-I%32,b[(I+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,v.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,R=S.words,M=0;M<5;M++){var w=R[M];R[M]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return S},clone:function(){var v=o.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,b,E){return v^b^E}function g(v,b,E){return v&b|~v&E}function m(v,b,E){return(v|~b)^E}function h(v,b,E){return v&E|b&~E}function y(v,b,E){return v^(b|~E)}function B(v,b){return v<<b|v>>>32-b}r.RIPEMD160=o._createHelper(d),r.HmacRIPEMD160=o._createHmacHelper(d)}(Math),t.RIPEMD160})});var Qr=H((Zr,Go)=>{"use strict";(function(t,e){typeof Zr=="object"?Go.exports=Zr=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Zr,function(t){(function(){var e=t,r=e.lib,n=r.Base,i=e.enc,o=i.Utf8,s=e.algo,a=s.HMAC=n.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=o.parse(l));var f=c.blockSize,u=f*4;l.sigBytes>u&&(l=c.finalize(l)),l.clamp();for(var x=this._oKey=l.clone(),d=this._iKey=l.clone(),p=x.words,g=d.words,m=0;m<f;m++)p[m]^=1549556828,g[m]^=909522486;x.sigBytes=d.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,f=l.finalize(c);l.reset();var u=l.finalize(this._oKey.clone().concat(f));return u}})})()})});var Jo=H((e0,Xo)=>{"use strict";(function(t,e,r){typeof e0=="object"?Xo.exports=e0=e(V(),Kr(),Qr()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(t.CryptoJS)})(e0,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,s=o.SHA256,a=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:25e4}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var u=this.cfg,x=a.create(u.hasher,l),d=i.create(),p=i.create([1]),g=d.words,m=p.words,h=u.keySize,y=u.iterations;g.length<h;){var B=x.update(f).finalize(p);x.reset();for(var v=B.words,b=v.length,E=B,I=1;I<y;I++){E=x.finalize(E),x.reset();for(var S=E.words,R=0;R<b;R++)v[R]^=S[R]}d.concat(B),m[0]++}return d.sigBytes=h*4,d}});e.PBKDF2=function(l,f,u){return c.create(u).compute(l,f)}}(),t.PBKDF2})});var Le=H((t0,Yo)=>{"use strict";(function(t,e,r){typeof t0=="object"?Yo.exports=t0=e(V(),Fn(),Qr()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(t.CryptoJS)})(t0,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,s=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,l){for(var f,u=this.cfg,x=u.hasher.create(),d=i.create(),p=d.words,g=u.keySize,m=u.iterations;p.length<g;){f&&x.update(f),f=x.update(c).finalize(l),x.reset();for(var h=1;h<m;h++)f=x.finalize(f),x.reset();d.concat(f)}return d.sigBytes=g*4,d}});e.EvpKDF=function(c,l,f){return a.create(f).compute(c,l)}}(),t.EvpKDF})});var ae=H((r0,Zo)=>{"use strict";(function(t,e,r){typeof r0=="object"?Zo.exports=r0=e(V(),Le()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(t.CryptoJS)})(r0,function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,a=r.enc,c=a.Utf8,l=a.Base64,f=r.algo,u=f.EvpKDF,x=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(w,O){return this.create(this._ENC_XFORM_MODE,w,O)},createDecryptor:function(w,O){return this.create(this._DEC_XFORM_MODE,w,O)},init:function(w,O,z){this.cfg=this.cfg.extend(z),this._xformMode=w,this._key=O,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var O=this._doFinalize();return O},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(O){return typeof O=="string"?M:I}return function(O){return{encrypt:function(z,T,$){return w(T).encrypt(O,z,T,$)},decrypt:function(z,T,$){return w(T).decrypt(O,z,T,$)}}}}()}),d=n.StreamCipher=x.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1}),p=r.mode={},g=n.BlockCipherMode=i.extend({createEncryptor:function(w,O){return this.Encryptor.create(w,O)},createDecryptor:function(w,O){return this.Decryptor.create(w,O)},init:function(w,O){this._cipher=w,this._iv=O}}),m=p.CBC=function(){var w=g.extend();w.Encryptor=w.extend({processBlock:function(z,T){var $=this._cipher,N=$.blockSize;O.call(this,z,T,N),$.encryptBlock(z,T),this._prevBlock=z.slice(T,T+N)}}),w.Decryptor=w.extend({processBlock:function(z,T){var $=this._cipher,N=$.blockSize,W=z.slice(T,T+N);$.decryptBlock(z,T),O.call(this,z,T,N),this._prevBlock=W}});function O(z,T,$){var N,W=this._iv;W?(N=W,this._iv=e):N=this._prevBlock;for(var G=0;G<$;G++)z[T+G]^=N[G]}return w}(),h=r.pad={},y=h.Pkcs7={pad:function(w,O){for(var z=O*4,T=z-w.sigBytes%z,$=T<<24|T<<16|T<<8|T,N=[],W=0;W<T;W+=4)N.push($);var G=o.create(N,T);w.concat(G)},unpad:function(w){var O=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=O}},B=n.BlockCipher=x.extend({cfg:x.cfg.extend({mode:m,padding:y}),reset:function(){var w;x.reset.call(this);var O=this.cfg,z=O.iv,T=O.mode;this._xformMode==this._ENC_XFORM_MODE?w=T.createEncryptor:(w=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,z&&z.words):(this._mode=w.call(T,this,z&&z.words),this._mode.__creator=w)},_doProcessBlock:function(w,O){this._mode.processBlock(w,O)},_doFinalize:function(){var w,O=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(O.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),O.unpad(w)),w},blockSize:128/32}),v=n.CipherParams=i.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),b=r.format={},E=b.OpenSSL={stringify:function(w){var O,z=w.ciphertext,T=w.salt;return T?O=o.create([1398893684,1701076831]).concat(T).concat(z):O=z,O.toString(l)},parse:function(w){var O,z=l.parse(w),T=z.words;return T[0]==1398893684&&T[1]==1701076831&&(O=o.create(T.slice(2,4)),T.splice(0,4),z.sigBytes-=16),v.create({ciphertext:z,salt:O})}},I=n.SerializableCipher=i.extend({cfg:i.extend({format:E}),encrypt:function(w,O,z,T){T=this.cfg.extend(T);var $=w.createEncryptor(z,T),N=$.finalize(O),W=$.cfg;return v.create({ciphertext:N,key:z,iv:W.iv,algorithm:w,mode:W.mode,padding:W.padding,blockSize:w.blockSize,formatter:T.format})},decrypt:function(w,O,z,T){T=this.cfg.extend(T),O=this._parse(O,T.format);var $=w.createDecryptor(z,T).finalize(O.ciphertext);return $},_parse:function(w,O){return typeof w=="string"?O.parse(w,this):w}}),S=r.kdf={},R=S.OpenSSL={execute:function(w,O,z,T,$){if(T||(T=o.random(64/8)),$)var N=u.create({keySize:O+z,hasher:$}).compute(w,T);else var N=u.create({keySize:O+z}).compute(w,T);var W=o.create(N.words.slice(O),z*4);return N.sigBytes=O*4,v.create({key:N,iv:W,salt:T})}},M=n.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:R}),encrypt:function(w,O,z,T){T=this.cfg.extend(T);var $=T.kdf.execute(z,w.keySize,w.ivSize,T.salt,T.hasher);T.iv=$.iv;var N=I.encrypt.call(this,w,O,$.key,T);return N.mixIn($),N},decrypt:function(w,O,z,T){T=this.cfg.extend(T),O=this._parse(O,T.format);var $=T.kdf.execute(z,w.keySize,w.ivSize,O.salt,T.hasher);T.iv=$.iv;var N=I.decrypt.call(this,w,O,$.key,T);return N}})}()})});var es=H((n0,Qo)=>{"use strict";(function(t,e,r){typeof n0=="object"?Qo.exports=n0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(n0,function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize;r.call(this,n,i,s,o),this._prevBlock=n.slice(i,i+s)}}),e.Decryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize,a=n.slice(i,i+s);r.call(this,n,i,s,o),this._prevBlock=a}});function r(n,i,o,s){var a,c=this._iv;c?(a=c.slice(0),this._iv=void 0):a=this._prevBlock,s.encryptBlock(a,0);for(var l=0;l<o;l++)n[i+l]^=a[l]}return e}(),t.mode.CFB})});var rs=H((i0,ts)=>{"use strict";(function(t,e,r){typeof i0=="object"?ts.exports=i0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(i0,function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize,a=this._iv,c=this._counter;a&&(c=this._counter=a.slice(0),this._iv=void 0);var l=c.slice(0);o.encryptBlock(l,0),c[s-1]=c[s-1]+1|0;for(var f=0;f<s;f++)n[i+f]^=l[f]}});return e.Decryptor=r,e}(),t.mode.CTR})});var is=H((o0,ns)=>{"use strict";(function(t,e,r){typeof o0=="object"?ns.exports=o0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(o0,function(t){return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(o){if((o>>24&255)===255){var s=o>>16&255,a=o>>8&255,c=o&255;s===255?(s=0,a===255?(a=0,c===255?c=0:++c):++a):++s,o=0,o+=s<<16,o+=a<<8,o+=c}else o+=1<<24;return o}function n(o){return(o[0]=r(o[0]))===0&&(o[1]=r(o[1])),o}var i=e.Encryptor=e.extend({processBlock:function(o,s){var a=this._cipher,c=a.blockSize,l=this._iv,f=this._counter;l&&(f=this._counter=l.slice(0),this._iv=void 0),n(f);var u=f.slice(0);a.encryptBlock(u,0);for(var x=0;x<c;x++)o[s+x]^=u[x]}});return e.Decryptor=i,e}(),t.mode.CTRGladman})});var ss=H((s0,os)=>{"use strict";(function(t,e,r){typeof s0=="object"?os.exports=s0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(s0,function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(n,i){var o=this._cipher,s=o.blockSize,a=this._iv,c=this._keystream;a&&(c=this._keystream=a.slice(0),this._iv=void 0),o.encryptBlock(c,0);for(var l=0;l<s;l++)n[i+l]^=c[l]}});return e.Decryptor=r,e}(),t.mode.OFB})});var cs=H((a0,as)=>{"use strict";(function(t,e,r){typeof a0=="object"?as.exports=a0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(a0,function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),e.Decryptor=e.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),e}(),t.mode.ECB})});var us=H((c0,fs)=>{"use strict";(function(t,e,r){typeof c0=="object"?fs.exports=c0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(c0,function(t){return t.pad.AnsiX923={pad:function(e,r){var n=e.sigBytes,i=r*4,o=i-n%i,s=n+o-1;e.clamp(),e.words[s>>>2]|=o<<24-s%4*8,e.sigBytes+=o},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Ansix923})});var ls=H((f0,xs)=>{"use strict";(function(t,e,r){typeof f0=="object"?xs.exports=f0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(f0,function(t){return t.pad.Iso10126={pad:function(e,r){var n=r*4,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Iso10126})});var hs=H((u0,ds)=>{"use strict";(function(t,e,r){typeof u0=="object"?ds.exports=u0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(u0,function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971})});var ys=H((x0,ps)=>{"use strict";(function(t,e,r){typeof x0=="object"?ps.exports=x0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(x0,function(t){return t.pad.ZeroPadding={pad:function(e,r){var n=r*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var r=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(r[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},t.pad.ZeroPadding})});var ms=H((l0,gs)=>{"use strict";(function(t,e,r){typeof l0=="object"?gs.exports=l0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(l0,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})});var Bs=H((d0,vs)=>{"use strict";(function(t,e,r){typeof d0=="object"?vs.exports=d0=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(d0,function(t){return function(e){var r=t,n=r.lib,i=n.CipherParams,o=r.enc,s=o.Hex,a=r.format,c=a.Hex={stringify:function(l){return l.ciphertext.toString(s)},parse:function(l){var f=s.parse(l);return i.create({ciphertext:f})}}}(),t.format.Hex})});var Es=H((h0,bs)=>{"use strict";(function(t,e,r){typeof h0=="object"?bs.exports=h0=e(V(),rt(),nt(),Le(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(h0,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo,o=[],s=[],a=[],c=[],l=[],f=[],u=[],x=[],d=[],p=[];(function(){for(var h=[],y=0;y<256;y++)y<128?h[y]=y<<1:h[y]=y<<1^283;for(var B=0,v=0,y=0;y<256;y++){var b=v^v<<1^v<<2^v<<3^v<<4;b=b>>>8^b&255^99,o[B]=b,s[b]=B;var E=h[B],I=h[E],S=h[I],R=h[b]*257^b*16843008;a[B]=R<<24|R>>>8,c[B]=R<<16|R>>>16,l[B]=R<<8|R>>>24,f[B]=R;var R=S*16843009^I*65537^E*257^B*16843008;u[b]=R<<24|R>>>8,x[b]=R<<16|R>>>16,d[b]=R<<8|R>>>24,p[b]=R,B?(B=E^h[h[h[S^E]]],v^=h[h[v]]):B=v=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=n.extend({_doReset:function(){var h;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,B=y.words,v=y.sigBytes/4,b=this._nRounds=v+6,E=(b+1)*4,I=this._keySchedule=[],S=0;S<E;S++)S<v?I[S]=B[S]:(h=I[S-1],S%v?v>6&&S%v==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[h&255]):(h=h<<8|h>>>24,h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[h&255],h^=g[S/v|0]<<24),I[S]=I[S-v]^h);for(var R=this._invKeySchedule=[],M=0;M<E;M++){var S=E-M;if(M%4)var h=I[S];else var h=I[S-4];M<4||S<=4?R[M]=h:R[M]=u[o[h>>>24]]^x[o[h>>>16&255]]^d[o[h>>>8&255]]^p[o[h&255]]}}},encryptBlock:function(h,y){this._doCryptBlock(h,y,this._keySchedule,a,c,l,f,o)},decryptBlock:function(h,y){var B=h[y+1];h[y+1]=h[y+3],h[y+3]=B,this._doCryptBlock(h,y,this._invKeySchedule,u,x,d,p,s);var B=h[y+1];h[y+1]=h[y+3],h[y+3]=B},_doCryptBlock:function(h,y,B,v,b,E,I,S){for(var R=this._nRounds,M=h[y]^B[0],w=h[y+1]^B[1],O=h[y+2]^B[2],z=h[y+3]^B[3],T=4,$=1;$<R;$++){var N=v[M>>>24]^b[w>>>16&255]^E[O>>>8&255]^I[z&255]^B[T++],W=v[w>>>24]^b[O>>>16&255]^E[z>>>8&255]^I[M&255]^B[T++],G=v[O>>>24]^b[z>>>16&255]^E[M>>>8&255]^I[w&255]^B[T++],D=v[z>>>24]^b[M>>>16&255]^E[w>>>8&255]^I[O&255]^B[T++];M=N,w=W,O=G,z=D}var N=(S[M>>>24]<<24|S[w>>>16&255]<<16|S[O>>>8&255]<<8|S[z&255])^B[T++],W=(S[w>>>24]<<24|S[O>>>16&255]<<16|S[z>>>8&255]<<8|S[M&255])^B[T++],G=(S[O>>>24]<<24|S[z>>>16&255]<<16|S[M>>>8&255]<<8|S[w&255])^B[T++],D=(S[z>>>24]<<24|S[M>>>16&255]<<16|S[w>>>8&255]<<8|S[O&255])^B[T++];h[y]=N,h[y+1]=W,h[y+2]=G,h[y+3]=D},keySize:256/32});e.AES=n._createHelper(m)}(),t.AES})});var ws=H((p0,As)=>{"use strict";(function(t,e,r){typeof p0=="object"?As.exports=p0=e(V(),rt(),nt(),Le(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(p0,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=o.DES=i.extend({_doReset:function(){for(var g=this._key,m=g.words,h=[],y=0;y<56;y++){var B=s[y]-1;h[y]=m[B>>>5]>>>31-B%32&1}for(var v=this._subKeys=[],b=0;b<16;b++){for(var E=v[b]=[],I=c[b],y=0;y<24;y++)E[y/6|0]|=h[(a[y]-1+I)%28]<<31-y%6,E[4+(y/6|0)]|=h[28+(a[y+24]-1+I)%28]<<31-y%6;E[0]=E[0]<<1|E[0]>>>31;for(var y=1;y<7;y++)E[y]=E[y]>>>(y-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var S=this._invSubKeys=[],y=0;y<16;y++)S[y]=v[15-y]},encryptBlock:function(g,m){this._doCryptBlock(g,m,this._subKeys)},decryptBlock:function(g,m){this._doCryptBlock(g,m,this._invSubKeys)},_doCryptBlock:function(g,m,h){this._lBlock=g[m],this._rBlock=g[m+1],x.call(this,4,252645135),x.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),x.call(this,1,1431655765);for(var y=0;y<16;y++){for(var B=h[y],v=this._lBlock,b=this._rBlock,E=0,I=0;I<8;I++)E|=l[I][((b^B[I])&f[I])>>>0];this._lBlock=b,this._rBlock=v^E}var S=this._lBlock;this._lBlock=this._rBlock,this._rBlock=S,x.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),g[m]=this._lBlock,g[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function x(g,m){var h=(this._lBlock>>>g^this._rBlock)&m;this._rBlock^=h,this._lBlock^=h<<g}function d(g,m){var h=(this._rBlock>>>g^this._lBlock)&m;this._lBlock^=h,this._rBlock^=h<<g}e.DES=i._createHelper(u);var p=o.TripleDES=i.extend({_doReset:function(){var g=this._key,m=g.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=m.slice(0,2),y=m.length<4?m.slice(0,2):m.slice(2,4),B=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=u.createEncryptor(n.create(h)),this._des2=u.createEncryptor(n.create(y)),this._des3=u.createEncryptor(n.create(B))},encryptBlock:function(g,m){this._des1.encryptBlock(g,m),this._des2.decryptBlock(g,m),this._des3.encryptBlock(g,m)},decryptBlock:function(g,m){this._des3.decryptBlock(g,m),this._des2.encryptBlock(g,m),this._des1.decryptBlock(g,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=i._createHelper(p)}(),t.TripleDES})});var Ds=H((y0,Cs)=>{"use strict";(function(t,e,r){typeof y0=="object"?Cs.exports=y0=e(V(),rt(),nt(),Le(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(y0,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,o=i.RC4=n.extend({_doReset:function(){for(var c=this._key,l=c.words,f=c.sigBytes,u=this._S=[],x=0;x<256;x++)u[x]=x;for(var x=0,d=0;x<256;x++){var p=x%f,g=l[p>>>2]>>>24-p%4*8&255;d=(d+u[x]+g)%256;var m=u[x];u[x]=u[d],u[d]=m}this._i=this._j=0},_doProcessBlock:function(c,l){c[l]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,l=this._i,f=this._j,u=0,x=0;x<4;x++){l=(l+1)%256,f=(f+c[l])%256;var d=c[l];c[l]=c[f],c[f]=d,u|=c[(c[l]+c[f])%256]<<24-x*8}return this._i=l,this._j=f,u}e.RC4=n._createHelper(o);var a=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(a)}(),t.RC4})});var Ss=H((g0,Fs)=>{"use strict";(function(t,e,r){typeof g0=="object"?Fs.exports=g0=e(V(),rt(),nt(),Le(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(g0,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,o=[],s=[],a=[],c=i.Rabbit=n.extend({_doReset:function(){for(var f=this._key.words,u=this.cfg.iv,x=0;x<4;x++)f[x]=(f[x]<<8|f[x]>>>24)&16711935|(f[x]<<24|f[x]>>>8)&4278255360;var d=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],p=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var x=0;x<4;x++)l.call(this);for(var x=0;x<8;x++)p[x]^=d[x+4&7];if(u){var g=u.words,m=g[0],h=g[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,B=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=y>>>16|B&4294901760,b=B<<16|y&65535;p[0]^=y,p[1]^=v,p[2]^=B,p[3]^=b,p[4]^=y,p[5]^=v,p[6]^=B,p[7]^=b;for(var x=0;x<4;x++)l.call(this)}},_doProcessBlock:function(f,u){var x=this._X;l.call(this),o[0]=x[0]^x[5]>>>16^x[3]<<16,o[1]=x[2]^x[7]>>>16^x[5]<<16,o[2]=x[4]^x[1]>>>16^x[7]<<16,o[3]=x[6]^x[3]>>>16^x[1]<<16;for(var d=0;d<4;d++)o[d]=(o[d]<<8|o[d]>>>24)&16711935|(o[d]<<24|o[d]>>>8)&4278255360,f[u+d]^=o[d]},blockSize:128/32,ivSize:64/32});function l(){for(var f=this._X,u=this._C,x=0;x<8;x++)s[x]=u[x];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<s[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<s[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<s[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<s[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<s[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<s[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<s[6]>>>0?1:0)|0,this._b=u[7]>>>0<s[7]>>>0?1:0;for(var x=0;x<8;x++){var d=f[x]+u[x],p=d&65535,g=d>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,h=((d&4294901760)*d|0)+((d&65535)*d|0);a[x]=m^h}f[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,f[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,f[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,f[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,f[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,f[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,f[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,f[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=n._createHelper(c)}(),t.Rabbit})});var Ts=H((m0,_s)=>{"use strict";(function(t,e,r){typeof m0=="object"?_s.exports=m0=e(V(),rt(),nt(),Le(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(m0,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,o=[],s=[],a=[],c=i.RabbitLegacy=n.extend({_doReset:function(){var f=this._key.words,u=this.cfg.iv,x=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],d=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var p=0;p<4;p++)l.call(this);for(var p=0;p<8;p++)d[p]^=x[p+4&7];if(u){var g=u.words,m=g[0],h=g[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,B=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=y>>>16|B&4294901760,b=B<<16|y&65535;d[0]^=y,d[1]^=v,d[2]^=B,d[3]^=b,d[4]^=y,d[5]^=v,d[6]^=B,d[7]^=b;for(var p=0;p<4;p++)l.call(this)}},_doProcessBlock:function(f,u){var x=this._X;l.call(this),o[0]=x[0]^x[5]>>>16^x[3]<<16,o[1]=x[2]^x[7]>>>16^x[5]<<16,o[2]=x[4]^x[1]>>>16^x[7]<<16,o[3]=x[6]^x[3]>>>16^x[1]<<16;for(var d=0;d<4;d++)o[d]=(o[d]<<8|o[d]>>>24)&16711935|(o[d]<<24|o[d]>>>8)&4278255360,f[u+d]^=o[d]},blockSize:128/32,ivSize:64/32});function l(){for(var f=this._X,u=this._C,x=0;x<8;x++)s[x]=u[x];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<s[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<s[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<s[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<s[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<s[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<s[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<s[6]>>>0?1:0)|0,this._b=u[7]>>>0<s[7]>>>0?1:0;for(var x=0;x<8;x++){var d=f[x]+u[x],p=d&65535,g=d>>>16,m=((p*p>>>17)+p*g>>>15)+g*g,h=((d&4294901760)*d|0)+((d&65535)*d|0);a[x]=m^h}f[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,f[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,f[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,f[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,f[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,f[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,f[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,f[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=n._createHelper(c)}(),t.RabbitLegacy})});var ks=H((v0,Is)=>{"use strict";(function(t,e,r){typeof v0=="object"?Is.exports=v0=e(V(),rt(),nt(),Le(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(v0,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo;let o=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var c={pbox:[],sbox:[]};function l(p,g){let m=g>>24&255,h=g>>16&255,y=g>>8&255,B=g&255,v=p.sbox[0][m]+p.sbox[1][h];return v=v^p.sbox[2][y],v=v+p.sbox[3][B],v}function f(p,g,m){let h=g,y=m,B;for(let v=0;v<o;++v)h=h^p.pbox[v],y=l(p,h)^y,B=h,h=y,y=B;return B=h,h=y,y=B,y=y^p.pbox[o],h=h^p.pbox[o+1],{left:h,right:y}}function u(p,g,m){let h=g,y=m,B;for(let v=o+1;v>1;--v)h=h^p.pbox[v],y=l(p,h)^y,B=h,h=y,y=B;return B=h,h=y,y=B,y=y^p.pbox[1],h=h^p.pbox[0],{left:h,right:y}}function x(p,g,m){for(let b=0;b<4;b++){p.sbox[b]=[];for(let E=0;E<256;E++)p.sbox[b][E]=a[b][E]}let h=0;for(let b=0;b<o+2;b++)p.pbox[b]=s[b]^g[h],h++,h>=m&&(h=0);let y=0,B=0,v=0;for(let b=0;b<o+2;b+=2)v=f(p,y,B),y=v.left,B=v.right,p.pbox[b]=y,p.pbox[b+1]=B;for(let b=0;b<4;b++)for(let E=0;E<256;E+=2)v=f(p,y,B),y=v.left,B=v.right,p.sbox[b][E]=y,p.sbox[b][E+1]=B;return!0}var d=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,g=p.words,m=p.sigBytes/4;x(c,g,m)}},encryptBlock:function(p,g){var m=f(c,p[g],p[g+1]);p[g]=m.left,p[g+1]=m.right},decryptBlock:function(p,g){var m=u(c,p[g],p[g+1]);p[g]=m.left,p[g+1]=m.right},blockSize:64/32,keySize:128/32,ivSize:64/32});e.Blowfish=n._createHelper(d)}(),t.Blowfish})});var js=H((B0,Os)=>{"use strict";(function(t,e,r){typeof B0=="object"?Os.exports=B0=e(V(),er(),To(),ko(),rt(),Ro(),nt(),Fn(),Kr(),No(),Sn(),Lo(),qo(),Vo(),Qr(),Jo(),Le(),ae(),es(),rs(),is(),ss(),cs(),us(),ls(),hs(),ys(),ms(),Bs(),Es(),ws(),Ds(),Ss(),Ts(),ks()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],e):t.CryptoJS=e(t.CryptoJS)})(B0,function(t){return t})});var Ms=H((Zl,zs)=>{"use strict";zs.exports=t=>{if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}});var $s=H((Ql,Ns)=>{"use strict";var _n=Ms();Ns.exports=(t,e={})=>{if(!_n(t)&&!Array.isArray(t))throw new TypeError("Expected a plain object or array");let{deep:r}=e,n=[],i=[],o=a=>{let c=n.indexOf(a);if(c!==-1)return i[c];let l=[];return n.push(a),i.push(l),l.push(...a.map(f=>Array.isArray(f)?o(f):_n(f)?s(f):f)),l},s=a=>{let c=n.indexOf(a);if(c!==-1)return i[c];let l={},f=Object.keys(a).sort(e.compare);n.push(a),i.push(l);for(let u of f){let x=a[u],d;r&&Array.isArray(x)?d=o(x):d=r&&_n(x)?s(x):x,Object.defineProperty(l,u,{...Object.getOwnPropertyDescriptor(a,u),value:d})}return l};return Array.isArray(t)?r?o(t):t.slice():s(t)}});var Ws=H((e1,Ls)=>{"use strict";var Pf=Object.prototype.toString;Ls.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return Hf(e)?"generatorfunction":"function";if(zf(e))return"array";if(qf(e))return"buffer";if(Wf(e))return"arguments";if(Nf(e))return"date";if(Mf(e))return"error";if($f(e))return"regexp";switch(Hs(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Lf(e))return"generator";switch(r=Pf.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Hs(t){return typeof t.constructor=="function"?t.constructor.name:null}function zf(t){return Array.isArray?Array.isArray(t):t instanceof Array}function Mf(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Nf(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function $f(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function Hf(t,e){return Hs(t)==="GeneratorFunction"}function Lf(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function Wf(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function qf(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Xs=H((t1,Gs)=>{"use strict";var Kf=$s(),Tn=Ws(),qs=(t,e)=>!e||Tn(e)!=="array"?!1:e.indexOf(t)>-1,Vf=(t,e)=>Kf(t,{compare:e}),Ks=(t,e)=>{let r=e&&e.compareFunction;return t.slice().sort(r)};function Vs(t,e){let r=e&&e.compareFunction,n=Vf(t,r);return Object.keys(t).forEach(function(i){let o=n[i],s=Tn(o);if(s==="object"){(!e||!qs(i,e.ignoreObjectAtKeys))&&(n[i]=Vs(o,e));return}s==="array"&&(!e||!qs(i,e.ignoreArrayAtKeys))&&(n[i]=Ks(o,e))}),n}var tr=(t,e)=>{let r=Tn(t);return tr[r]?tr[r](t,e):t};tr.array=Ks;tr.object=Vs;Gs.exports=tr});var Xf={};pa(Xf,{appHelpers:()=>Gf});var F0=sr(Gn(),1),ke=t=>F0.default.encode(t),Ke=t=>F0.default.decode(t);function Ba(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:t===43?62:t===47?63:0}function we(t,e){for(var r=t.replace(/[^A-Za-z0-9+/]/g,""),n=r.length,i=e?Math.ceil((n*3+1>>2)/e)*e:n*3+1>>2,o=new Uint8Array(i),s,a,c=0,l=0,f=0;f<n;f++)if(a=f&3,c|=Ba(r.charCodeAt(f))<<6*(3-a),a===3||n-f===1){for(s=0;s<3&&l<i;s++,l++)o[l]=c>>>(16>>>s&24)&255;c=0}return o}function ar(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65}function Ve(t){for(var e=2,r="",n=t.length,i=0,o=0;o<n;o++)e=o%3,i|=t[o]<<(16>>>e&24),(e===2||t.length-o===1)&&(r+=String.fromCodePoint(ar(i>>>18&63),ar(i>>>12&63),ar(i>>>6&63),ar(i&63)),i=0);return r.slice(0,r.length-2+e)+(e===2?"":e===1?"=":"==")}function Ge(t){let e=t.startsWith("0x")?t.slice(2):t,n=(e.length%2===0?e:`0${e}}`).match(/.{2}/g)?.map(i=>parseInt(i,16))??[];return Uint8Array.from(n)}function Ue(t){return t.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")}function yt(t){let e=[],r=0;if(t===0)return[0];for(;t>0;)e[r]=t&127,(t>>=7)&&(e[r]|=128),r+=1;return e}function Xn(t){let e=0,r=0,n=0;for(;;){let i=t[n];if(n+=1,e|=(i&127)<<r,!(i&128))break;r+=7}return{value:e,length:n}}var gt=class{constructor(e){this.bytePosition=0,this.dataView=new DataView(e.buffer)}shift(e){return this.bytePosition+=e,this}read8(){let e=this.dataView.getUint8(this.bytePosition);return this.shift(1),e}read16(){let e=this.dataView.getUint16(this.bytePosition,!0);return this.shift(2),e}read32(){let e=this.dataView.getUint32(this.bytePosition,!0);return this.shift(4),e}read64(){let e=this.read32(),n=this.read32().toString(16)+e.toString(16).padStart(8,"0");return BigInt("0x"+n).toString(10)}read128(){let e=BigInt(this.read64()),n=BigInt(this.read64()).toString(16)+e.toString(16).padStart(16,"0");return BigInt("0x"+n).toString(10)}read256(){let e=BigInt(this.read128()),n=BigInt(this.read128()).toString(16)+e.toString(16).padStart(32,"0");return BigInt("0x"+n).toString(10)}readBytes(e){let r=this.bytePosition+this.dataView.byteOffset,n=new Uint8Array(this.dataView.buffer,r,e);return this.shift(e),n}readULEB(){let e=this.bytePosition+this.dataView.byteOffset,r=new Uint8Array(this.dataView.buffer,e),{value:n,length:i}=Xn(r);return this.shift(i),n}readVec(e){let r=this.readULEB(),n=[];for(let i=0;i<r;i++)n.push(e(this,i,r));return n}};function S0(t,e){switch(e){case"base58":return ke(t);case"base64":return Ve(t);case"hex":return Ue(t);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function _0(t,e){switch(e){case"base58":return Ke(t);case"base64":return we(t);case"hex":return Ge(t);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function it(t,e=["<",">"]){let[r,n]=e,i=[],o="",s=0;for(let a=0;a<t.length;a++){let c=t[a];if(c===r&&s++,c===n&&s--,s===0&&c===","){i.push(o.trim()),o="";continue}o+=c}return i.push(o.trim()),i}var mt=class{constructor({size:e=1024,maxSize:r,allocateSize:n=1024}={}){this.bytePosition=0,this.size=e,this.maxSize=r||e,this.allocateSize=n,this.dataView=new DataView(new ArrayBuffer(e))}ensureSizeOrGrow(e){let r=this.bytePosition+e;if(r>this.size){let n=Math.min(this.maxSize,this.size+this.allocateSize);if(r>n)throw new Error(`Attempting to serialize to BCS, but buffer does not have enough size. Allocated size: ${this.size}, Max size: ${this.maxSize}, Required size: ${r}`);this.size=n;let i=new ArrayBuffer(this.size);new Uint8Array(i).set(new Uint8Array(this.dataView.buffer)),this.dataView=new DataView(i)}}shift(e){return this.bytePosition+=e,this}write8(e){return this.ensureSizeOrGrow(1),this.dataView.setUint8(this.bytePosition,Number(e)),this.shift(1)}write16(e){return this.ensureSizeOrGrow(2),this.dataView.setUint16(this.bytePosition,Number(e),!0),this.shift(2)}write32(e){return this.ensureSizeOrGrow(4),this.dataView.setUint32(this.bytePosition,Number(e),!0),this.shift(4)}write64(e){return T0(BigInt(e),8).forEach(r=>this.write8(r)),this}write128(e){return T0(BigInt(e),16).forEach(r=>this.write8(r)),this}write256(e){return T0(BigInt(e),32).forEach(r=>this.write8(r)),this}writeULEB(e){return yt(e).forEach(r=>this.write8(r)),this}writeVec(e,r){return this.writeULEB(e.length),Array.from(e).forEach((n,i)=>r(this,n,i,e.length)),this}*[Symbol.iterator](){for(let e=0;e<this.bytePosition;e++)yield this.dataView.getUint8(e);return this.toBytes()}toBytes(){return new Uint8Array(this.dataView.buffer.slice(0,this.bytePosition))}toString(e){return S0(this.toBytes(),e)}};function T0(t,e){let r=new Uint8Array(e),n=0;for(;t>0;)r[n]=Number(t%BigInt(256)),t=t/BigInt(256),n+=1;return r}var Jn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Oe=(t,e,r)=>(Jn(t,e,"read from private field"),r?r.call(t):e.get(t)),fr=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ur=(t,e,r,n)=>(Jn(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),vt,Nt,cr,Xe,Yn=class{constructor(t){fr(this,vt,void 0),fr(this,Nt,void 0),this.name=t.name,this.read=t.read,this.serializedSize=t.serializedSize??(()=>null),ur(this,vt,t.write),ur(this,Nt,t.serialize??((e,r)=>{let n=new mt({size:this.serializedSize(e)??void 0,...r});return Oe(this,vt).call(this,e,n),n.toBytes()})),this.validate=t.validate??(()=>{})}write(t,e){this.validate(t),Oe(this,vt).call(this,t,e)}serialize(t,e){return this.validate(t),new xr(this,Oe(this,Nt).call(this,t,e))}parse(t){let e=new gt(t);return this.read(e)}transform({name:t,input:e,output:r}){return new Yn({name:t??this.name,read:n=>r(this.read(n)),write:(n,i)=>Oe(this,vt).call(this,e(n),i),serializedSize:n=>this.serializedSize(e(n)),serialize:(n,i)=>Oe(this,Nt).call(this,e(n),i),validate:n=>this.validate(e(n))})}},me=Yn;vt=new WeakMap;Nt=new WeakMap;var Zn=Symbol.for("@mysten/serialized-bcs");function Bt(t){return!!t&&typeof t=="object"&&t[Zn]===!0}var xr=class{constructor(e,r){fr(this,cr,void 0),fr(this,Xe,void 0),ur(this,cr,e),ur(this,Xe,r)}get[Zn](){return!0}toBytes(){return Oe(this,Xe)}toHex(){return Ue(Oe(this,Xe))}toBase64(){return Ve(Oe(this,Xe))}toBase58(){return ke(Oe(this,Xe))}parse(){return Oe(this,cr).parse(Oe(this,Xe))}};cr=new WeakMap;Xe=new WeakMap;function $t({size:t,...e}){return new me({...e,serializedSize:()=>t})}function lr({readMethod:t,writeMethod:e,...r}){return $t({...r,read:n=>n[t](),write:(n,i)=>i[e](n),validate:n=>{if(n<0||n>r.maxValue)throw new TypeError(`Invalid ${r.name} value: ${n}. Expected value in range 0-${r.maxValue}`);r.validate?.(n)}})}function dr({readMethod:t,writeMethod:e,...r}){return $t({...r,read:n=>n[t](),write:(n,i)=>i[e](BigInt(n)),validate:n=>{let i=BigInt(n);if(i<0||i>r.maxValue)throw new TypeError(`Invalid ${r.name} value: ${i}. Expected value in range 0-${r.maxValue}`);r.validate?.(i)}})}function Qn({serialize:t,...e}){let r=new me({...e,serialize:t,write:(n,i)=>{for(let o of r.serialize(n).toBytes())i.write8(o)}});return r}function ei({toBytes:t,fromBytes:e,...r}){return new me({...r,read:n=>{let i=n.readULEB(),o=n.readBytes(i);return e(o)},write:(n,i)=>{let o=t(n);i.writeULEB(o.length);for(let s=0;s<o.length;s++)i.write8(o[s])},serialize:n=>{let i=t(n),o=yt(i.length),s=new Uint8Array(o.length+i.length);return s.set(o,0),s.set(i,o.length),s},validate:n=>{if(typeof n!="string")throw new TypeError(`Invalid ${r.name} value: ${n}. Expected string`);r.validate?.(n)}})}function ti(t){let e=null;function r(){return e||(e=t()),e}return new me({name:"lazy",read:n=>r().read(n),serializedSize:n=>r().serializedSize(n),write:(n,i)=>r().write(n,i),serialize:(n,i)=>r().serialize(n,i).toBytes()})}var C={u8(t){return lr({name:"u8",readMethod:"read8",writeMethod:"write8",size:1,maxValue:2**8-1,...t})},u16(t){return lr({name:"u16",readMethod:"read16",writeMethod:"write16",size:2,maxValue:2**16-1,...t})},u32(t){return lr({name:"u32",readMethod:"read32",writeMethod:"write32",size:4,maxValue:2**32-1,...t})},u64(t){return dr({name:"u64",readMethod:"read64",writeMethod:"write64",size:8,maxValue:2n**64n-1n,...t})},u128(t){return dr({name:"u128",readMethod:"read128",writeMethod:"write128",size:16,maxValue:2n**128n-1n,...t})},u256(t){return dr({name:"u256",readMethod:"read256",writeMethod:"write256",size:32,maxValue:2n**256n-1n,...t})},bool(t){return $t({name:"bool",size:1,read:e=>e.read8()===1,write:(e,r)=>r.write8(e?1:0),...t,validate:e=>{if(t?.validate?.(e),typeof e!="boolean")throw new TypeError(`Expected boolean, found ${typeof e}`)}})},uleb128(t){return Qn({name:"uleb128",read:e=>e.readULEB(),serialize:e=>Uint8Array.from(yt(e)),...t})},bytes(t,e){return $t({name:`bytes[${t}]`,size:t,read:r=>r.readBytes(t),write:(r,n)=>{for(let i=0;i<t;i++)n.write8(r[i]??0)},...e,validate:r=>{if(e?.validate?.(r),!("length"in r))throw new TypeError(`Expected array, found ${typeof r}`);if(r.length!==t)throw new TypeError(`Expected array of length ${t}, found ${r.length}`)}})},string(t){return ei({name:"string",toBytes:e=>new TextEncoder().encode(e),fromBytes:e=>new TextDecoder().decode(e),...t})},fixedArray(t,e,r){return new me({name:`${e.name}[${t}]`,read:n=>{let i=new Array(t);for(let o=0;o<t;o++)i[o]=e.read(n);return i},write:(n,i)=>{for(let o of n)e.write(o,i)},...r,validate:n=>{if(r?.validate?.(n),!("length"in n))throw new TypeError(`Expected array, found ${typeof n}`);if(n.length!==t)throw new TypeError(`Expected array of length ${t}, found ${n.length}`)}})},option(t){return C.enum(`Option<${t.name}>`,{None:null,Some:t}).transform({input:e=>e==null?{None:!0}:{Some:e},output:e=>"Some"in e?e.Some:null})},vector(t,e){return new me({name:`vector<${t.name}>`,read:r=>{let n=r.readULEB(),i=new Array(n);for(let o=0;o<n;o++)i[o]=t.read(r);return i},write:(r,n)=>{n.writeULEB(r.length);for(let i of r)t.write(i,n)},...e,validate:r=>{if(e?.validate?.(r),!("length"in r))throw new TypeError(`Expected array, found ${typeof r}`)}})},tuple(t,e){return new me({name:`(${t.map(r=>r.name).join(", ")})`,serializedSize:r=>{let n=0;for(let i=0;i<t.length;i++){let o=t[i].serializedSize(r[i]);if(o==null)return null;n+=o}return n},read:r=>{let n=[];for(let i of t)n.push(i.read(r));return n},write:(r,n)=>{for(let i=0;i<t.length;i++)t[i].write(r[i],n)},...e,validate:r=>{if(e?.validate?.(r),!Array.isArray(r))throw new TypeError(`Expected array, found ${typeof r}`);if(r.length!==t.length)throw new TypeError(`Expected array of length ${t.length}, found ${r.length}`)}})},struct(t,e,r){let n=Object.entries(e);return new me({name:t,serializedSize:i=>{let o=0;for(let[s,a]of n){let c=a.serializedSize(i[s]);if(c==null)return null;o+=c}return o},read:i=>{let o={};for(let[s,a]of n)o[s]=a.read(i);return o},write:(i,o)=>{for(let[s,a]of n)a.write(i[s],o)},...r,validate:i=>{if(r?.validate?.(i),typeof i!="object"||i==null)throw new TypeError(`Expected object, found ${typeof i}`)}})},enum(t,e,r){let n=Object.entries(e);return new me({name:t,read:i=>{let o=i.readULEB(),[s,a]=n[o];return{[s]:a?.read(i)??!0}},write:(i,o)=>{let[s,a]=Object.entries(i)[0];for(let c=0;c<n.length;c++){let[l,f]=n[c];if(l===s){o.writeULEB(c),f?.write(a,o);return}}},...r,validate:i=>{if(r?.validate?.(i),typeof i!="object"||i==null)throw new TypeError(`Expected object, found ${typeof i}`);let o=Object.keys(i);if(o.length!==1)throw new TypeError(`Expected object with one key, found ${o.length}`);let[s]=o;if(!Object.hasOwn(e,s))throw new TypeError(`Invalid enum variant ${s}`)}})},map(t,e){return C.vector(C.tuple([t,e])).transform({name:`Map<${t.name}, ${e.name}>`,input:r=>[...r.entries()],output:r=>{let n=new Map;for(let[i,o]of r)n.set(i,o);return n}})},generic(t,e){return(...r)=>e(...r).transform({name:`${e.name}<${r.map(n=>n.name).join(", ")}>`,input:n=>n,output:n=>n})},lazy(t){return ti(t)}};var ba=32,Ht=class{constructor(t){if(this.types=new Map,this.counter=0,t instanceof Ht){this.schema=t.schema,this.types=new Map(t.types);return}if(this.schema=t,this.registerAddressType(Ht.ADDRESS,t.addressLength,t.addressEncoding),this.registerVectorType(t.vectorType),t.types&&t.types.structs)for(let e of Object.keys(t.types.structs))this.registerStructType(e,t.types.structs[e]);if(t.types&&t.types.enums)for(let e of Object.keys(t.types.enums))this.registerEnumType(e,t.types.enums[e]);if(t.types&&t.types.aliases)for(let e of Object.keys(t.types.aliases))this.registerAlias(e,t.types.aliases[e]);t.withPrimitives!==!1&&Ea(this)}tempKey(){return`bcs-struct-${++this.counter}`}ser(t,e,r){if(typeof t=="string"||Array.isArray(t)){let{name:n,params:i}=this.parseTypeName(t);return this.getTypeInterface(n).encode(this,e,r,i)}if(typeof t=="object"){let n=this.tempKey();return new Ht(this).registerStructType(n,t).ser(n,e,r)}throw new Error(`Incorrect type passed into the '.ser()' function.
2
+ ${JSON.stringify(t)}`)}de(t,e,r){if(typeof e=="string")if(r)e=_0(e,r);else throw new Error("To pass a string to `bcs.de`, specify encoding");if(typeof t=="string"||Array.isArray(t)){let{name:n,params:i}=this.parseTypeName(t);return this.getTypeInterface(n).decode(this,e,i)}if(typeof t=="object"){let n=new Ht(this),i=this.tempKey();return n.registerStructType(i,t).de(i,e,r)}throw new Error(`Incorrect type passed into the '.de()' function.
3
+ ${JSON.stringify(t)}`)}hasType(t){return this.types.has(t)}registerAlias(t,e){return this.types.set(t,e),this}registerType(t,e,r,n=()=>!0){let{name:i,params:o}=this.parseTypeName(t);return this.types.set(i,{encode(s,a,c,l){let f=o.reduce((u,x,d)=>Object.assign(u,{[x]:l[d]}),{});return this._encodeRaw.call(s,new mt(c),a,l,f)},decode(s,a,c){let l=o.reduce((f,u,x)=>Object.assign(f,{[u]:c[x]}),{});return this._decodeRaw.call(s,new gt(a),c,l)},_encodeRaw(s,a,c,l){if(n(a))return e.call(this,s,a,c,l);throw new Error(`Validation failed for type ${i}, data: ${a}`)},_decodeRaw(s,a,c){return r.call(this,s,a,c)}}),this}registerBcsType(t,e){return this.registerType(t,(r,n,i)=>{let o=i.map(s=>new me({name:String(s),write:(a,c)=>{let{name:l,params:f}=this.parseTypeName(s),u=this.getTypeInterface(l),x=f.reduce((d,p,g)=>Object.assign(d,{[p]:i[g]}),{});return u._encodeRaw.call(this,c,a,f,x)},read:()=>{throw new Error("Not implemented")}}));return e(...o).write(n,r),r},(r,n)=>{let i=n.map(o=>new me({name:String(o),write:(s,a)=>{throw new Error("Not implemented")},read:s=>{let{name:a,params:c}=this.parseTypeName(o),l=this.getTypeInterface(a),f=c.reduce((u,x,d)=>Object.assign(u,{[x]:n[d]}),{});return l._decodeRaw.call(this,s,c,f)}}));return e(...i).read(r)}),this}registerAddressType(t,e,r="hex"){switch(r){case"base64":return this.registerType(t,function(i,o){return we(o).reduce((s,a)=>s.write8(a),i)},function(i){return Ve(i.readBytes(e))});case"hex":return this.registerType(t,function(i,o){return Ge(o).reduce((s,a)=>s.write8(a),i)},function(i){return Ue(i.readBytes(e))});default:throw new Error("Unsupported encoding! Use either hex or base64")}}registerVectorType(t){let{name:e,params:r}=this.parseTypeName(t);if(r.length>1)throw new Error("Vector can have only one type parameter; got "+e);return this.registerType(t,function(i,o,s,a){return i.writeVec(o,(c,l)=>{let f=s[0];if(!f)throw new Error(`Incorrect number of type parameters passed a to vector '${t}'`);let{name:u,params:x}=this.parseTypeName(f);if(this.hasType(u))return this.getTypeInterface(u)._encodeRaw.call(this,c,l,x,a);if(!(u in a))throw new Error(`Unable to find a matching type definition for ${u} in vector; make sure you passed a generic`);let{name:d,params:p}=this.parseTypeName(a[u]);return this.getTypeInterface(d)._encodeRaw.call(this,c,l,p,a)})},function(i,o,s){return i.readVec(a=>{let c=o[0];if(!c)throw new Error(`Incorrect number of type parameters passed to a vector '${t}'`);let{name:l,params:f}=this.parseTypeName(c);if(this.hasType(l))return this.getTypeInterface(l)._decodeRaw.call(this,a,f,s);if(!(l in s))throw new Error(`Unable to find a matching type definition for ${l} in vector; make sure you passed a generic`);let{name:u,params:x}=this.parseTypeName(s[l]);return this.getTypeInterface(u)._decodeRaw.call(this,a,x,s)})})}registerStructType(t,e){for(let s in e){let a=this.tempKey(),c=e[s];!Array.isArray(c)&&typeof c!="string"&&(e[s]=a,this.registerStructType(a,c))}let r=Object.freeze(e),n=Object.keys(r),{name:i,params:o}=this.parseTypeName(t);return this.registerType(t,function(a,c,l,f){if(!c||c.constructor!==Object)throw new Error(`Expected ${i} to be an Object, got: ${c}`);if(l.length!==o.length)throw new Error(`Incorrect number of generic parameters passed; expected: ${o.length}, got: ${l.length}`);for(let u of n){if(!(u in c))throw new Error(`Struct ${i} requires field ${u}:${r[u]}`);let{name:x,params:d}=this.parseTypeName(r[u]);if(!o.includes(x))this.getTypeInterface(x)._encodeRaw.call(this,a,c[u],d,f);else{let p=o.indexOf(x),{name:g,params:m}=this.parseTypeName(l[p]);if(this.hasType(g)){this.getTypeInterface(g)._encodeRaw.call(this,a,c[u],m,f);continue}if(!(g in f))throw new Error(`Unable to find a matching type definition for ${g} in ${i}; make sure you passed a generic`);let{name:h,params:y}=this.parseTypeName(f[g]);this.getTypeInterface(h)._encodeRaw.call(this,a,c[u],y,f)}}return a},function(a,c,l){if(c.length!==o.length)throw new Error(`Incorrect number of generic parameters passed; expected: ${o.length}, got: ${c.length}`);let f={};for(let u of n){let{name:x,params:d}=this.parseTypeName(r[u]);if(!o.includes(x))f[u]=this.getTypeInterface(x)._decodeRaw.call(this,a,d,l);else{let p=o.indexOf(x),{name:g,params:m}=this.parseTypeName(c[p]);if(this.hasType(g)){f[u]=this.getTypeInterface(g)._decodeRaw.call(this,a,m,l);continue}if(!(g in l))throw new Error(`Unable to find a matching type definition for ${g} in ${i}; make sure you passed a generic`);let{name:h,params:y}=this.parseTypeName(l[g]);f[u]=this.getTypeInterface(h)._decodeRaw.call(this,a,y,l)}}return f})}registerEnumType(t,e){for(let s in e){let a=this.tempKey(),c=e[s];c!==null&&!Array.isArray(c)&&typeof c!="string"&&(e[s]=a,this.registerStructType(a,c))}let r=Object.freeze(e),n=Object.keys(r),{name:i,params:o}=this.parseTypeName(t);return this.registerType(t,function(a,c,l,f){if(!c)throw new Error(`Unable to write enum "${i}", missing data.
4
4
  Received: "${c}"`);if(typeof c!="object")throw new Error(`Incorrect data passed into enum "${i}", expected object with properties: "${n.join(" | ")}".
5
- Received: "${JSON.stringify(c)}"`);let u=Object.keys(c)[0];if(u===void 0)throw new Error(`Empty object passed as invariant of the enum "${i}"`);let x=n.indexOf(u);if(x===-1)throw new Error(`Unknown invariant of the enum "${i}", allowed values: "${n.join(" | ")}"; received "${u}"`);let d=n[x],p=r[d];if(a.write8(x),p===null)return a;let g=o.indexOf(p),v=g===-1?p:l[g];{let{name:h,params:y}=this.parseTypeName(v);return this.getTypeInterface(h)._encodeRaw.call(this,a,c[u],y,f)}},function(a,c,l){let f=a.readULEB(),u=n[f],x=r[u];if(f===-1)throw new Error(`Decoding type mismatch, expected enum "${i}" invariant index, received "${f}"`);if(x===null)return{[u]:!0};let d=o.indexOf(x),p=d===-1?x:c[d];{let{name:g,params:v}=this.parseTypeName(p);return{[u]:this.getTypeInterface(g)._decodeRaw.call(this,a,v,l)}}})}getTypeInterface(t){let e=this.types.get(t);if(typeof e=="string"){let r=[];for(;typeof e=="string";){if(r.includes(e))throw new Error(`Recursive definition found: ${r.join(" -> ")} -> ${e}`);r.push(e),e=this.types.get(e)}}if(e===void 0)throw new Error(`Type ${t} is not registered`);return e}parseTypeName(t){if(Array.isArray(t)){let[a,...c]=t;return{name:a,params:c}}if(typeof t!="string")throw new Error(`Illegal type passed as a name of the type: ${t}`);let[e,r]=this.schema.genericSeparators||["<",">"],n=t.indexOf(e),i=Array.from(t).reverse().indexOf(r);if(n===-1&&i===-1)return{name:t,params:[]};if(n===-1||i===-1)throw new Error(`Unclosed generic in name '${t}'`);let o=t.slice(0,n),s=s0(t.slice(n+1,t.length-i-1),this.schema.genericSeparators);return{name:o,params:s}}},te=$0;te.U8="u8";te.U16="u16";te.U32="u32";te.U64="u64";te.U128="u128";te.U256="u256";te.BOOL="bool";te.VECTOR="vector";te.ADDRESS="address";te.STRING="string";te.HEX="hex-string";te.BASE58="base58-string";te.BASE64="base64-string";function na(t){t.registerType(te.U8,function(e,r){return e.write8(r)},function(e){return e.read8()},e=>e<256),t.registerType(te.U16,function(e,r){return e.write16(r)},function(e){return e.read16()},e=>e<65536),t.registerType(te.U32,function(e,r){return e.write32(r)},function(e){return e.read32()},e=>e<=4294967296n),t.registerType(te.U64,function(e,r){return e.write64(r)},function(e){return e.read64()}),t.registerType(te.U128,function(e,r){return e.write128(r)},function(e){return e.read128()}),t.registerType(te.U256,function(e,r){return e.write256(r)},function(e){return e.read256()}),t.registerType(te.BOOL,function(e,r){return e.write8(r)},function(e){return e.read8().toString(10)==="1"}),t.registerType(te.STRING,function(e,r){return e.writeVec(Array.from(r),(n,i)=>n.write8(i.charCodeAt(0)))},function(e){return e.readVec(r=>r.read8()).map(r=>String.fromCharCode(Number(r))).join("")},e=>!0),t.registerType(te.HEX,function(e,r){return e.writeVec(Array.from(Je(r)),(n,i)=>n.write8(i))},function(e){let r=e.readVec(n=>n.read8());return ze(new Uint8Array(r))}),t.registerType(te.BASE58,function(e,r){return e.writeVec(Array.from(Ge(r)),(n,i)=>n.write8(i))},function(e){let r=e.readVec(n=>n.read8());return je(new Uint8Array(r))}),t.registerType(te.BASE64,function(e,r){return e.writeVec(Array.from(Ce(r)),(n,i)=>n.write8(i))},function(e){let r=e.readVec(n=>n.read8());return Xe(new Uint8Array(r))})}function Jn(){return{genericSeparators:["<",">"],vectorType:"vector",addressLength:ra,addressEncoding:"hex"}}function xt(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function ia(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function oa(t,...e){if(!ia(t))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function Fr(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Yn(t,e){oa(t);let r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}var E0=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));function sa(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}var aa=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!aa)throw new Error("Non little-endian hardware is not supported");function ca(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function a0(t){if(typeof t=="string"&&(t=ca(t)),!sa(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}var lt=class{clone(){return this._cloneInto()}},uu={}.toString;function Zn(t){let e=(n,i)=>t(i).update(a0(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}var Qn=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]),dt=class extends lt{constructor(e,r,n={},i,o,s){if(super(),this.blockLen=e,this.outputLen=r,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,xt(e),xt(r),xt(i),r<0||r>i)throw new Error("outputLen bigger than keyLen");if(n.key!==void 0&&(n.key.length<1||n.key.length>i))throw new Error(`key must be up 1..${i} byte long or undefined`);if(n.salt!==void 0&&n.salt.length!==o)throw new Error(`salt must be ${o} byte long or undefined`);if(n.personalization!==void 0&&n.personalization.length!==s)throw new Error(`personalization must be ${s} byte long or undefined`);this.buffer32=E0(this.buffer=new Uint8Array(e))}update(e){Fr(this);let{blockLen:r,buffer:n,buffer32:i}=this;e=a0(e);let o=e.length,s=e.byteOffset,a=e.buffer;for(let c=0;c<o;){this.pos===r&&(this.compress(i,0,!1),this.pos=0);let l=Math.min(r-this.pos,o-c),f=s+c;if(l===r&&!(f%4)&&c+l<o){let u=new Uint32Array(a,f,Math.floor((o-c)/4));for(let x=0;c+r<o;x+=i.length,c+=r)this.length+=r,this.compress(u,x,!1);continue}n.set(e.subarray(c,c+l),this.pos),this.pos+=l,this.length+=l,c+=l}return this}digestInto(e){Fr(this),Yn(e,this);let{pos:r,buffer32:n}=this;this.finished=!0,this.buffer.subarray(r).fill(0),this.compress(n,0,!0);let i=E0(e);this.get().forEach((o,s)=>i[s]=o)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){let{buffer:r,length:n,finished:i,destroyed:o,outputLen:s,pos:a}=this;return e||(e=new this.constructor({dkLen:s})),e.set(...this.get()),e.length=n,e.finished=i,e.destroyed=o,e.outputLen=s,e.buffer.set(r),e.pos=a,e}};var ht=BigInt(4294967295),Dr=BigInt(32);function ei(t,e=!1){return e?{h:Number(t&ht),l:Number(t>>Dr&ht)}:{h:Number(t>>Dr&ht)|0,l:Number(t&ht)|0}}function fa(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){let{h:o,l:s}=ei(t[i],e);[r[i],n[i]]=[o,s]}return[r,n]}var ua=(t,e)=>BigInt(t>>>0)<<Dr|BigInt(e>>>0),xa=(t,e,r)=>t>>>r,la=(t,e,r)=>t<<32-r|e>>>r,da=(t,e,r)=>t>>>r|e<<32-r,ha=(t,e,r)=>t<<32-r|e>>>r,pa=(t,e,r)=>t<<64-r|e>>>r-32,ya=(t,e,r)=>t>>>r-32|e<<64-r,ga=(t,e)=>e,va=(t,e)=>t,ma=(t,e,r)=>t<<r|e>>>32-r,Ba=(t,e,r)=>e<<r|t>>>32-r,Ea=(t,e,r)=>e<<r-32|t>>>64-r,ba=(t,e,r)=>t<<r-32|e>>>64-r;function wa(t,e,r,n){let i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}var Aa=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Ca=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Fa=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Da=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,Sa=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),_a=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;var Ta={fromBig:ei,split:fa,toBig:ua,shrSH:xa,shrSL:la,rotrSH:da,rotrSL:ha,rotrBH:pa,rotrBL:ya,rotr32H:ga,rotr32L:va,rotlSH:ma,rotlSL:Ba,rotlBH:Ea,rotlBL:ba,add:wa,add3L:Aa,add3H:Ca,add4L:Fa,add4H:Da,add5H:_a,add5L:Sa},le=Ta;var se=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),P=new Uint32Array(32);function Ze(t,e,r,n,i,o){let s=i[o],a=i[o+1],c=P[2*t],l=P[2*t+1],f=P[2*e],u=P[2*e+1],x=P[2*r],d=P[2*r+1],p=P[2*n],g=P[2*n+1],v=le.add3L(c,f,s);l=le.add3H(v,l,u,a),c=v|0,{Dh:g,Dl:p}={Dh:g^l,Dl:p^c},{Dh:g,Dl:p}={Dh:le.rotr32H(g,p),Dl:le.rotr32L(g,p)},{h:d,l:x}=le.add(d,x,g,p),{Bh:u,Bl:f}={Bh:u^d,Bl:f^x},{Bh:u,Bl:f}={Bh:le.rotrSH(u,f,24),Bl:le.rotrSL(u,f,24)},P[2*t]=c,P[2*t+1]=l,P[2*e]=f,P[2*e+1]=u,P[2*r]=x,P[2*r+1]=d,P[2*n]=p,P[2*n+1]=g}function Qe(t,e,r,n,i,o){let s=i[o],a=i[o+1],c=P[2*t],l=P[2*t+1],f=P[2*e],u=P[2*e+1],x=P[2*r],d=P[2*r+1],p=P[2*n],g=P[2*n+1],v=le.add3L(c,f,s);l=le.add3H(v,l,u,a),c=v|0,{Dh:g,Dl:p}={Dh:g^l,Dl:p^c},{Dh:g,Dl:p}={Dh:le.rotrSH(g,p,16),Dl:le.rotrSL(g,p,16)},{h:d,l:x}=le.add(d,x,g,p),{Bh:u,Bl:f}={Bh:u^d,Bl:f^x},{Bh:u,Bl:f}={Bh:le.rotrBH(u,f,63),Bl:le.rotrBL(u,f,63)},P[2*t]=c,P[2*t+1]=l,P[2*e]=f,P[2*e+1]=u,P[2*r]=x,P[2*r+1]=d,P[2*n]=p,P[2*n+1]=g}var Sr=class extends dt{constructor(e={}){super(128,e.dkLen===void 0?64:e.dkLen,e,64,16,16),this.v0l=se[0]|0,this.v0h=se[1]|0,this.v1l=se[2]|0,this.v1h=se[3]|0,this.v2l=se[4]|0,this.v2h=se[5]|0,this.v3l=se[6]|0,this.v3h=se[7]|0,this.v4l=se[8]|0,this.v4h=se[9]|0,this.v5l=se[10]|0,this.v5h=se[11]|0,this.v6l=se[12]|0,this.v6h=se[13]|0,this.v7l=se[14]|0,this.v7h=se[15]|0;let r=e.key?e.key.length:0;if(this.v0l^=this.outputLen|r<<8|65536|1<<24,e.salt){let n=E0(a0(e.salt));this.v4l^=n[0],this.v4h^=n[1],this.v5l^=n[2],this.v5h^=n[3]}if(e.personalization){let n=E0(a0(e.personalization));this.v6l^=n[0],this.v6h^=n[1],this.v7l^=n[2],this.v7h^=n[3]}if(e.key){let n=new Uint8Array(this.blockLen);n.set(a0(e.key)),this.update(n)}}get(){let{v0l:e,v0h:r,v1l:n,v1h:i,v2l:o,v2h:s,v3l:a,v3h:c,v4l:l,v4h:f,v5l:u,v5h:x,v6l:d,v6h:p,v7l:g,v7h:v}=this;return[e,r,n,i,o,s,a,c,l,f,u,x,d,p,g,v]}set(e,r,n,i,o,s,a,c,l,f,u,x,d,p,g,v){this.v0l=e|0,this.v0h=r|0,this.v1l=n|0,this.v1h=i|0,this.v2l=o|0,this.v2h=s|0,this.v3l=a|0,this.v3h=c|0,this.v4l=l|0,this.v4h=f|0,this.v5l=u|0,this.v5h=x|0,this.v6l=d|0,this.v6h=p|0,this.v7l=g|0,this.v7h=v|0}compress(e,r,n){this.get().forEach((c,l)=>P[l]=c),P.set(se,16);let{h:i,l:o}=le.fromBig(BigInt(this.length));P[24]=se[8]^o,P[25]=se[9]^i,n&&(P[28]=~P[28],P[29]=~P[29]);let s=0,a=Qn;for(let c=0;c<12;c++)Ze(0,4,8,12,e,r+2*a[s++]),Qe(0,4,8,12,e,r+2*a[s++]),Ze(1,5,9,13,e,r+2*a[s++]),Qe(1,5,9,13,e,r+2*a[s++]),Ze(2,6,10,14,e,r+2*a[s++]),Qe(2,6,10,14,e,r+2*a[s++]),Ze(3,7,11,15,e,r+2*a[s++]),Qe(3,7,11,15,e,r+2*a[s++]),Ze(0,5,10,15,e,r+2*a[s++]),Qe(0,5,10,15,e,r+2*a[s++]),Ze(1,6,11,12,e,r+2*a[s++]),Qe(1,6,11,12,e,r+2*a[s++]),Ze(2,7,8,13,e,r+2*a[s++]),Qe(2,7,8,13,e,r+2*a[s++]),Ze(3,4,9,14,e,r+2*a[s++]),Qe(3,4,9,14,e,r+2*a[s++]);this.v0l^=P[0]^P[16],this.v0h^=P[1]^P[17],this.v1l^=P[2]^P[18],this.v1h^=P[3]^P[19],this.v2l^=P[4]^P[20],this.v2h^=P[5]^P[21],this.v3l^=P[6]^P[22],this.v3h^=P[7]^P[23],this.v4l^=P[8]^P[24],this.v4h^=P[9]^P[25],this.v5l^=P[10]^P[26],this.v5h^=P[11]^P[27],this.v6l^=P[12]^P[28],this.v6h^=P[13]^P[29],this.v7l^=P[14]^P[30],this.v7h^=P[15]^P[31],P.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},ti=Zn(t=>new Sr(t));var H0=32;function _r(t){return ka(t)&&Oa(t)===H0}function Ia(t){return t.includes("::")?Tr(t):t}function Tr(t){let[e,r]=t.split("::"),n=t.slice(e.length+r.length+4),i=n.includes("<")?n.slice(0,n.indexOf("<")):n,o=n.includes("<")?s0(n.slice(n.indexOf("<")+1,n.lastIndexOf(">"))).map(s=>Ia(s.trim())):[];return{address:re(e),module:r,name:i,typeParams:o}}function b0(t){let{address:e,module:r,name:n,typeParams:i}=typeof t=="string"?Tr(t):t,o=i.length>0?`<${i.map(s=>typeof s=="string"?s:b0(s)).join(",")}>`:"";return`${e}::${r}::${n}${o}`}function re(t,e=!1){let r=t.toLowerCase();return!e&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart(H0*2,"0")}`}function e0(t,e=!1){return re(t,e)}function ka(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)&&t.length%2===0}function Oa(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}var ja=/^vector<(.+)>$/,Ra=/^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/,be=class{static parseFromStr(e,r=!1){if(e==="address")return{address:null};if(e==="bool")return{bool:null};if(e==="u8")return{u8:null};if(e==="u16")return{u16:null};if(e==="u32")return{u32:null};if(e==="u64")return{u64:null};if(e==="u128")return{u128:null};if(e==="u256")return{u256:null};if(e==="signer")return{signer:null};let n=e.match(ja);if(n)return{vector:be.parseFromStr(n[1],r)};let i=e.match(Ra);if(i)return{struct:{address:r?re(i[1]):i[1],module:i[2],name:i[3],typeParams:i[5]===void 0?[]:be.parseStructTypeArgs(i[5],r)}};throw new Error(`Encountered unexpected token when parsing type args for ${e}`)}static parseStructTypeArgs(e,r=!1){return s0(e).map(n=>be.parseFromStr(n,r))}static tagToString(e){if("bool"in e)return"bool";if("u8"in e)return"u8";if("u16"in e)return"u16";if("u32"in e)return"u32";if("u64"in e)return"u64";if("u128"in e)return"u128";if("u256"in e)return"u256";if("address"in e)return"address";if("signer"in e)return"signer";if("vector"in e)return`vector<${be.tagToString(e.vector)}>`;if("struct"in e){let r=e.struct,n=r.typeParams.map(be.tagToString).join(", ");return`${r.address}::${r.module}::${r.name}${n?`<${n}>`:""}`}throw new Error("Invalid TypeTag")}};var Z=new te({...Jn(),types:{enums:{"Option<T>":{None:null,Some:"T"}}}});function ri(t){return C.u64({name:"unsafe_u64",...t}).transform({input:e=>e,output:e=>Number(e)})}function Ua(t){return C.enum("Option",{None:null,Some:t})}function Ir(t){return t.transform({input:e=>({[e.kind]:e}),output:e=>{let r=Object.keys(e)[0];return{kind:r,...e[r]}}})}var Pe=C.bytes(H0).transform({input:t=>typeof t=="string"?Je(re(t)):t,output:t=>re(ze(t))}),kr=C.vector(C.u8()).transform({name:"ObjectDigest",input:t=>Ge(t),output:t=>je(new Uint8Array(t))}),L0=C.struct("SuiObjectRef",{objectId:Pe,version:C.u64(),digest:kr}),Or=C.struct("SharedObjectRef",{objectId:Pe,initialSharedVersion:C.u64(),mutable:C.bool()}),pt=C.enum("ObjectArg",{ImmOrOwned:L0,Shared:Or,Receiving:L0}),jr=C.enum("CallArg",{Pure:C.vector(C.u8()),Object:pt,ObjVec:C.vector(pt)}),w0=C.enum("TypeTag",{bool:null,u8:null,u64:null,u128:null,address:null,signer:null,vector:C.lazy(()=>w0),struct:C.lazy(()=>Nr),u16:null,u32:null,u256:null}),Ue=Ir(C.enum("Argument",{GasCoin:null,Input:C.struct("Input",{index:C.u16()}),Result:C.struct("Result",{index:C.u16()}),NestedResult:C.struct("NestedResult",{index:C.u16(),resultIndex:C.u16()})})),Rr=C.struct("ProgrammableMoveCall",{package:Pe,module:C.string(),function:C.string(),type_arguments:C.vector(w0),arguments:C.vector(Ue)}).transform({input:t=>{let[e,r,n]=t.target.split("::"),i=t.typeArguments.map(o=>be.parseFromStr(o,!0));return{package:re(e),module:r,function:n,type_arguments:i,arguments:t.arguments}},output:t=>({target:[t.package,t.module,t.function].join("::"),arguments:t.arguments,typeArguments:t.type_arguments.map(be.tagToString)})}),Ur=Ir(C.enum("Transaction",{MoveCall:Rr,TransferObjects:C.struct("TransferObjects",{objects:C.vector(Ue),address:Ue}),SplitCoins:C.struct("SplitCoins",{coin:Ue,amounts:C.vector(Ue)}),MergeCoins:C.struct("MergeCoins",{destination:Ue,sources:C.vector(Ue)}),Publish:C.struct("Publish",{modules:C.vector(C.vector(C.u8())),dependencies:C.vector(Pe)}),MakeMoveVec:C.struct("MakeMoveVec",{type:Ua(w0),objects:C.vector(Ue)}),Upgrade:C.struct("Upgrade",{modules:C.vector(C.vector(C.u8())),dependencies:C.vector(Pe),packageId:Pe,ticket:Ue})})),Pr=C.struct("ProgrammableTransaction",{inputs:C.vector(jr),transactions:C.vector(Ur)}),zr=C.enum("TransactionKind",{ProgrammableTransaction:Pr,ChangeEpoch:null,Genesis:null,ConsensusCommitPrologue:null}),Mr=C.enum("TransactionExpiration",{None:null,Epoch:ri()}),Nr=C.struct("StructTag",{address:Pe,module:C.string(),name:C.string(),typeParams:C.vector(w0)}),$r=C.struct("GasData",{payment:C.vector(L0),owner:Pe,price:C.u64(),budget:C.u64()}),Hr=C.struct("TransactionDataV1",{kind:zr,sender:Pe,gasData:$r,expiration:Mr}),Lr=C.enum("TransactionData",{V1:Hr}),ni=C.struct("SenderSignedData",{data:Lr,txSignatures:C.vector(C.vector(C.u8()))}),Wr=C.enum("CompressedSignature",{ED25519:C.fixedArray(64,C.u8()),Secp256k1:C.fixedArray(64,C.u8()),Secp256r1:C.fixedArray(64,C.u8()),ZkLogin:C.vector(C.u8())}),qr=C.enum("PublicKey",{ED25519:C.fixedArray(32,C.u8()),Secp256k1:C.fixedArray(33,C.u8()),Secp256r1:C.fixedArray(33,C.u8()),ZkLogin:C.vector(C.u8())}),Kr=C.struct("MultiSigPkMap",{pubKey:qr,weight:C.u8()}),Vr=C.struct("MultiSigPublicKey",{pk_map:C.vector(Kr),threshold:C.u16()}),ii=C.struct("MultiSig",{sigs:C.vector(Wr),bitmap:C.u16(),multisig_pk:Vr}),oe={...C,U8:C.u8(),U16:C.u16(),U32:C.u32(),U64:C.u64(),U128:C.u128(),U256:C.u256(),ULEB128:C.uleb128(),Bool:C.bool(),String:C.string(),Address:Pe,Argument:Ue,CallArg:jr,CompressedSignature:Wr,GasData:$r,MultiSig:ii,MultiSigPkMap:Kr,MultiSigPublicKey:Vr,ObjectArg:pt,ObjectDigest:kr,ProgrammableMoveCall:Rr,ProgrammableTransaction:Pr,PublicKey:qr,SenderSignedData:ni,SharedObjectRef:Or,StructTag:Nr,SuiObjectRef:L0,Transaction:Ur,TransactionData:Lr,TransactionDataV1:Hr,TransactionExpiration:Mr,TransactionKind:zr,TypeTag:w0,ser:Z.ser.bind(Z),de:Z.de.bind(Z),getTypeInterface:Z.getTypeInterface.bind(Z),hasType:Z.hasType.bind(Z),parseTypeName:Z.parseTypeName.bind(Z),registerAddressType:Z.registerAddressType.bind(Z),registerAlias:Z.registerAlias.bind(Z),registerBcsType:Z.registerBcsType.bind(Z),registerEnumType:Z.registerEnumType.bind(Z),registerStructType:Z.registerStructType.bind(Z),registerType:Z.registerType.bind(Z),types:Z.types};Z.registerBcsType("utf8string",()=>C.string({name:"utf8string"}));Z.registerBcsType("unsafe_u64",()=>ri());Z.registerBcsType("enumKind",t=>Ir(t));[Pe,Ue,jr,Wr,$r,ii,Kr,Vr,pt,kr,Rr,Pr,qr,ni,Or,Nr,L0,Ur,Lr,Hr,Mr,zr,w0].forEach(t=>{Z.registerBcsType(t.name,()=>t)});var Gr=class extends TypeError{constructor(e,r){let n,{message:i,explanation:o,...s}=e,{path:a}=e,c=a.length===0?i:`At path: ${a.join(".")} -- ${i}`;super(o??c),o!=null&&(this.cause=c),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...r()])}};function Pa(t){return Fe(t)&&typeof t[Symbol.iterator]=="function"}function Fe(t){return typeof t=="object"&&t!=null}function De(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function za(t){let{done:e,value:r}=t.next();return e?void 0:r}function Ma(t,e,r,n){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});let{path:i,branch:o}=e,{type:s}=r,{refinement:a,message:c=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${De(n)}\``}=t;return{value:n,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...t,message:c}}function*oi(t,e,r,n){Pa(t)||(t=[t]);for(let i of t){let o=Ma(i,e,r,n);o&&(yield o)}}function*Xr(t,e,r={}){let{path:n=[],branch:i=[t],coerce:o=!1,mask:s=!1}=r,a={path:n,branch:i};if(o&&(t=e.coercer(t,a),s&&e.type!=="type"&&Fe(e.schema)&&Fe(t)&&!Array.isArray(t)))for(let l in t)e.schema[l]===void 0&&delete t[l];let c="valid";for(let l of e.validator(t,a))l.explanation=r.message,c="not_valid",yield[l,void 0];for(let[l,f,u]of e.entries(t,a)){let x=Xr(f,u,{path:l===void 0?n:[...n,l],branch:l===void 0?i:[...i,f],coerce:o,mask:s,message:r.message});for(let d of x)d[0]?(c=d[0].refinement!=null?"not_refined":"not_valid",yield[d[0],void 0]):o&&(f=d[1],l===void 0?t=f:t instanceof Map?t.set(l,f):t instanceof Set?t.add(f):Fe(t)&&(f!==void 0||l in t)&&(t[l]=f))}if(c!=="not_valid")for(let l of e.refiner(t,a))l.explanation=r.message,c="not_refined",yield[l,void 0];c==="valid"&&(yield[void 0,t])}var Se=class{constructor(e){let{type:r,schema:n,validator:i,refiner:o,coercer:s=c=>c,entries:a=function*(){}}=e;this.type=r,this.schema=n,this.entries=a,this.coercer=s,i?this.validator=(c,l)=>{let f=i(c,l);return oi(f,l,this,c)}:this.validator=()=>[],o?this.refiner=(c,l)=>{let f=o(c,l);return oi(f,l,this,c)}:this.refiner=()=>[]}assert(e,r){return W0(e,this,r)}create(e,r){return Jr(e,this,r)}is(e){return de(e,this)}mask(e,r){return Yr(e,this,r)}validate(e,r={}){return q0(e,this,r)}};function W0(t,e,r){let n=q0(t,e,{message:r});if(n[0])throw n[0]}function Jr(t,e,r){let n=q0(t,e,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Yr(t,e,r){let n=q0(t,e,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function de(t,e){return!q0(t,e)[0]}function q0(t,e,r={}){let n=Xr(t,e,r),i=za(n);return i[0]?[new Gr(i[0],function*(){for(let s of n)s[0]&&(yield s[0])}),void 0]:[void 0,i[1]]}function A0(...t){let e=t[0].type==="type",r=t.map(i=>i.schema),n=Object.assign({},...r);return e?Na(n):U(n)}function xe(t,e){return new Se({type:t,schema:null,validator:e})}function K0(){return xe("any",()=>!0)}function X(t){return new Se({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(let[r,n]of e.entries())yield[r,n,t]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||`Expected an array value, but received: ${De(e)}`}})}function si(){return xe("bigint",t=>typeof t=="bigint")}function ce(){return xe("boolean",t=>typeof t=="boolean")}function we(){return xe("integer",t=>typeof t=="number"&&!isNaN(t)&&Number.isInteger(t)||`Expected an integer, but received: ${De(t)}`)}function L(t){let e=De(t),r=typeof t;return new Se({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(n){return n===t||`Expected the literal \`${e}\`, but received: ${De(n)}`}})}function ai(){return xe("never",()=>!1)}function ne(t){return new Se({...t,validator:(e,r)=>e===null||t.validator(e,r),refiner:(e,r)=>e===null||t.refiner(e,r)})}function $e(){return xe("number",t=>typeof t=="number"&&!isNaN(t)||`Expected a number, but received: ${De(t)}`)}function U(t){let e=t?Object.keys(t):[],r=ai();return new Se({type:"object",schema:t||null,*entries(n){if(t&&Fe(n)){let i=new Set(Object.keys(n));for(let o of e)i.delete(o),yield[o,n[o],t[o]];for(let o of i)yield[o,n[o],r]}},validator(n){return Fe(n)||`Expected an object, but received: ${De(n)}`},coercer(n){return Fe(n)?{...n}:n}})}function q(t){return new Se({...t,validator:(e,r)=>e===void 0||t.validator(e,r),refiner:(e,r)=>e===void 0||t.refiner(e,r)})}function pe(t,e){return new Se({type:"record",schema:null,*entries(r){if(Fe(r))for(let n in r){let i=r[n];yield[n,n,t],yield[n,i,e]}},validator(r){return Fe(r)||`Expected an object, but received: ${De(r)}`}})}function j(){return xe("string",t=>typeof t=="string"||`Expected a string, but received: ${De(t)}`)}function yt(t){let e=ai();return new Se({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){let n=Math.max(t.length,r.length);for(let i=0;i<n;i++)yield[i,r[i],t[i]||e]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${De(r)}`}})}function Na(t){let e=Object.keys(t);return new Se({type:"type",schema:t,*entries(r){if(Fe(r))for(let n of e)yield[n,r[n],t[n]]},validator(r){return Fe(r)||`Expected an object, but received: ${De(r)}`},coercer(r){return Fe(r)?{...r}:r}})}function Q(t){let e=t.map(r=>r.type).join(" | ");return new Se({type:"union",schema:null,coercer(r){for(let n of t){let[i,o]=n.validate(r,{coerce:!0});if(!i)return o}return r},validator(r,n){let i=[];for(let o of t){let[...s]=Xr(r,o,n),[a]=s;if(a[0])for(let[c]of s)c&&i.push(c);else return[]}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${De(r)}`,...i]}})}function gt(){return xe("unknown",()=>!0)}var Ou=BigInt(1e9),vt="0x1",Zr="0x2";var ju=e0("0x6");var ci=`${Zr}::sui::SUI`,Ru=e0("0x5");var ff=Er(_i(),1);var bt=Q([U({AddressOwner:j()}),U({ObjectOwner:j()}),U({Shared:U({initial_shared_version:ne(j())})}),L("Immutable")]),Hu=xe("SuiJsonValue",()=>!0),mc=Q([U({u32:j()}),U({u64:j()}),U({f64:j()})]),Lu=U({attributes:pe(j(),ne(mc)),featureFlags:pe(j(),ce()),maxSupportedProtocolVersion:j(),minSupportedProtocolVersion:j(),protocolVersion:j()});var Bc=Q([j(),L("package")]),Te=U({digest:j(),objectId:j(),version:Q([$e(),j(),si()])}),Vu=U({owner:bt,reference:Te}),Gu=U({objectId:j(),sequenceNumber:j()}),Ec=U({payment:X(Te),owner:j(),price:j(),budget:j()}),Ti=A0(Te,U({type:j(),owner:bt,previousTransaction:j()})),Ii=pe(j(),K0()),ki=pe(j(),gt()),Oi=U({type:j(),fields:Ii,hasPublicTransfer:ce()}),ji=U({disassembled:ki}),Ri=Q([A0(Oi,U({dataType:L("moveObject")})),A0(ji,U({dataType:L("package")}))]),Ui=U({type:j(),hasPublicTransfer:ce(),version:j(),bcsBytes:j()}),Pi=U({id:j(),moduleMap:pe(j(),j())}),zi=Q([A0(Ui,U({dataType:L("moveObject")})),A0(Pi,U({dataType:L("package")}))]);var Xu=BigInt(1e9),un=U({code:j(),error:q(j()),object_id:q(j()),parent_object_id:q(j()),version:q(j()),digest:q(j())}),Mi=U({data:ne(q(pe(j(),j()))),error:ne(q(un))}),Ni=Q([Mi,q(pe(j(),j()))]),xn=U({objectId:j(),version:j(),digest:j(),type:ne(q(j())),content:ne(q(Ri)),bcs:ne(q(zi)),owner:ne(q(bt)),previousTransaction:ne(q(j())),storageRebate:ne(q(j())),display:ne(q(Ni))}),bc=U({showType:ne(q(ce())),showContent:ne(q(ce())),showBcs:ne(q(ce())),showOwner:ne(q(ce())),showPreviousTransaction:ne(q(ce())),showStorageRebate:ne(q(ce())),showDisplay:ne(q(ce()))}),wc=Q([L("Exists"),L("notExists"),L("Deleted")]),Ac=X(Ti),$i=U({data:ne(q(xn)),error:ne(q(un))});function Hi(t){return t.data}function Li(t){if(t.error&&"object_id"in t.error&&"version"in t.error&&"digest"in t.error){let e=t.error;return{objectId:e.object_id,version:e.version,digest:e.digest}}}function wt(t){if("reference"in t)return t.reference;let e=Hi(t);return e?{objectId:e.objectId,version:e.version,digest:e.digest}:Li(t)}var Cc=U({objectId:j(),atCheckpoint:q($e())}),Fc=U({data:X($i),nextCursor:q(ne(j())),hasNextPage:ce()}),Dc=Q([U({details:xn,status:L("VersionFound")}),U({details:j(),status:L("ObjectNotExists")}),U({details:Te,status:L("ObjectDeleted")}),U({details:yt([j(),$e()]),status:L("VersionNotFound")}),U({details:U({asked_version:$e(),latest_version:$e(),object_id:j()}),status:L("VersionTooHigh")})]);var Wi=Q([j(),U({Object:j()})]),Sc=X(Wi),qi=U({address:j(),name:j()}),Ki=Q([L("Private"),L("Public"),L("Friend")]),Ct=U({abilities:X(j())}),Vi=U({constraints:Ct,isPhantom:ce()}),Gi=U({TypeParameter:$e()}),At=yt([U({module:j(),package:j(),function:j()}),j()]),_c=U({rank3Days:X(At),rank7Days:X(At),rank30Days:X(At)});function Xi(t){if(!t)return!1;if(typeof t=="string"||de(t,Gi)||Ji(t))return!0;if(typeof t!="object")return!1;let e=t;return!!(de(e.Reference,u0)||de(e.MutableReference,u0)||de(e.Vector,u0))}var u0=xe("SuiMoveNormalizedType",Xi);function Ji(t){if(!t||typeof t!="object")return!1;let e=t;if(!e.Struct||typeof e.Struct!="object")return!1;let r=e.Struct;return!(typeof r.address!="string"||typeof r.module!="string"||typeof r.name!="string"||!Array.isArray(r.typeArguments)||!r.typeArguments.every(n=>Xi(n)))}var Tc=xe("SuiMoveNormalizedStructType",Ji),Yi=U({visibility:Ki,isEntry:ce(),typeParameters:X(Ct),parameters:X(u0),return:X(u0)}),Zi=U({name:j(),type:u0}),Qi=U({abilities:Ct,typeParameters:X(Vi),fields:X(Zi)}),eo=U({fileFormatVersion:$e(),address:j(),name:j(),friends:X(qi),structs:pe(j(),Qi),exposedFunctions:pe(j(),Yi)}),Ic=pe(j(),eo);function G0(t){return typeof t=="object"&&"MutableReference"in t?t.MutableReference:void 0}function Ft(t){return typeof t=="object"&&"Reference"in t?t.Reference:void 0}function _0(t){if(typeof t=="object"&&"Struct"in t)return t;let e=Ft(t),r=G0(t);if(typeof e=="object"&&"Struct"in e)return e;if(typeof r=="object"&&"Struct"in r)return r}var kc="object",Oc="ID",jc="ascii",Rc="String",Uc="string",Pc="String",zc="option",Mc="Option",Nc={address:Zr,module:kc,name:Oc},$c={address:vt,module:jc,name:Rc},Hc={address:vt,module:Uc,name:Pc},Lc={address:vt,module:zc,name:Mc},Dt=(t,e)=>t.address===e.address&&t.module===e.module&&t.name===e.name;function to(t){let e=_0(t)?.Struct;return e?.address==="0x2"&&e?.module==="tx_context"&&e?.name==="TxContext"}function ln(t,e){if(!(typeof e>"u")&&typeof e!==t)throw new Error(`Expect ${e} to be ${t}, received ${typeof e}`)}var Wc=["Address","Bool","U8","U16","U32","U64","U128","U256"];function St(t,e){if(typeof t=="string"&&Wc.includes(t)){if(t in["U8","U16","U32","U64","U128","U256"])ln("number",e);else if(t==="Bool")ln("boolean",e);else if(t==="Address"&&(ln("string",e),e&&!_r(e)))throw new Error("Invalid Sui Address");return t.toLowerCase()}else if(typeof t=="string")throw new Error(`Unknown pure normalized type ${JSON.stringify(t,null,2)}`);if("Vector"in t){if((e===void 0||typeof e=="string")&&t.Vector==="U8")return"string";if(e!==void 0&&!Array.isArray(e))throw new Error(`Expect ${e} to be a array, received ${typeof e}`);let r=St(t.Vector,e?e[0]:void 0);return r===void 0?void 0:`vector<${r}>`}if("Struct"in t){if(Dt(t.Struct,$c))return"string";if(Dt(t.Struct,Hc))return"utf8string";if(Dt(t.Struct,Nc))return"address";if(Dt(t.Struct,Lc)){let r={Vector:t.Struct.typeArguments[0]};return St(r,e)}}}var qc=Q([U({ImmOrOwned:Te}),U({Shared:U({objectId:j(),initialSharedVersion:Q([we(),j()]),mutable:ce()})}),U({Receiving:Te})]),T0=U({Pure:X(we())}),Kc=U({Object:qc}),I0=Q([T0,Kc]);function Vc(t,e){return{Pure:Array.from(t instanceof Uint8Array?t:B0(t)?t.toBytes():oe.ser(e,t,{maxSize:1/0}).toBytes())}}var ye={Pure:Vc,ObjectRef({objectId:t,digest:e,version:r}){return{Object:{ImmOrOwned:{digest:e,version:r,objectId:re(t)}}}},SharedObjectRef({objectId:t,mutable:e,initialSharedVersion:r}){return{Object:{Shared:{mutable:e,initialSharedVersion:r,objectId:re(t)}}}},ReceivingRef({objectId:t,digest:e,version:r}){return{Object:{Receiving:{digest:e,version:r,objectId:re(t)}}}}};function dn(t){return typeof t=="string"?re(t):"ImmOrOwned"in t.Object?re(t.Object.ImmOrOwned.objectId):"Receiving"in t.Object?re(t.Object.Receiving.objectId):re(t.Object.Shared.objectId)}function Gc(t){return typeof t=="object"&&"Object"in t&&"Shared"in t.Object?t.Object.Shared:void 0}function ro(t){return Gc(t)?.mutable??!1}function he(t,e){return Jr(t,e)}var Xc=t=>Q([U({None:Q([L(!0),L(null)])}),U({Some:t})]),x0=Q([U({kind:L("Input"),index:we(),value:q(K0()),type:q(L("object"))}),U({kind:L("Input"),index:we(),value:q(K0()),type:L("pure")})]),Jc=[x0,U({kind:L("GasCoin")}),U({kind:L("Result"),index:we()}),U({kind:L("NestedResult"),index:we(),resultIndex:we()})],Le=Q([...Jc]),no=U({kind:L("MoveCall"),target:xe("target",j().validator),typeArguments:X(j()),arguments:X(Le)}),io=U({kind:L("TransferObjects"),objects:X(Le),address:Le}),oo=U({kind:L("SplitCoins"),coin:Le,amounts:X(Le)}),so=U({kind:L("MergeCoins"),destination:Le,sources:X(Le)}),ao=U({kind:L("MakeMoveVec"),type:q(Xc(pe(j(),gt()))),objects:X(Le)}),co=U({kind:L("Publish"),modules:X(X(we())),dependencies:X(j())});var fo=U({kind:L("Upgrade"),modules:X(X(we())),dependencies:X(j()),packageId:j(),ticket:Le}),Yc=[no,io,oo,so,co,fo,ao],uo=Q([...Yc]);var r0={MoveCall(t){return he({kind:"MoveCall",target:t.target,arguments:t.arguments??[],typeArguments:t.typeArguments??[]},no)},TransferObjects(t,e){return e.kind==="Input"&&e.type==="pure"&&typeof e.value!="object"&&(e.value=ye.Pure(oe.Address.serialize(e.value))),he({kind:"TransferObjects",objects:t,address:e},io)},SplitCoins(t,e){return e.forEach(r=>{r.kind==="Input"&&r.type==="pure"&&typeof r.value!="object"&&(r.value=ye.Pure(oe.U64.serialize(r.value)))}),he({kind:"SplitCoins",coin:t,amounts:e},oo)},MergeCoins(t,e){return he({kind:"MergeCoins",destination:t,sources:e},so)},Publish({modules:t,dependencies:e}){return he({kind:"Publish",modules:t.map(r=>typeof r=="string"?Array.from(Ce(r)):r),dependencies:e.map(r=>e0(r))},co)},Upgrade({modules:t,dependencies:e,packageId:r,ticket:n}){return he({kind:"Upgrade",modules:t.map(i=>typeof i=="string"?Array.from(Ce(i)):i),dependencies:e.map(i=>e0(i)),packageId:r,ticket:n},fo)},MakeMoveVec({type:t,objects:e}){return he({kind:"MakeMoveVec",type:t?{Some:be.parseFromStr(t)}:{None:null},objects:e},ao)}};function xo(t){function e(r,n){return t(r,n)}return e.u8=r=>t(oe.U8.serialize(r)),e.u16=r=>t(oe.U16.serialize(r)),e.u32=r=>t(oe.U32.serialize(r)),e.u64=r=>t(oe.U64.serialize(r)),e.u128=r=>t(oe.U128.serialize(r)),e.u256=r=>t(oe.U256.serialize(r)),e.bool=r=>t(oe.Bool.serialize(r)),e.string=r=>t(oe.String.serialize(r)),e.address=r=>t(oe.Address.serialize(r)),e.id=e.address,e}function lo(t,e){let r=Array.from(`${t}::`).map(i=>i.charCodeAt(0)),n=new Uint8Array(r.length+e.length);return n.set(r),n.set(e,r.length),ti(n,{dkLen:32})}var Zc=q(ne(Q([U({Epoch:we()}),U({None:Q([L(!0),L(null)])})]))),ho=xe("StringEncodedBigint",t=>{if(!["string","number","bigint"].includes(typeof t))return!1;try{return BigInt(t),!0}catch{return!1}}),Qc=U({budget:q(ho),price:q(ho),payment:q(X(Te)),owner:q(j())}),_t=U({version:L(1),sender:q(j()),expiration:Zc,gasConfig:Qc,inputs:X(x0),transactions:X(uo)});function po(t){return re(t).replace("0x","")}var Ie=class{constructor(e){this.version=1,this.sender=e?.sender,this.expiration=e?.expiration,this.gasConfig=e?.gasConfig??{},this.inputs=e?.inputs??[],this.transactions=e?.transactions??[]}static fromKindBytes(e){let r=oe.TransactionKind.parse(e),n="ProgrammableTransaction"in r?r.ProgrammableTransaction:null;if(!n)throw new Error("Unable to deserialize from bytes.");let i=he({version:1,gasConfig:{},inputs:n.inputs.map((o,s)=>he({kind:"Input",value:o,index:s,type:de(o,T0)?"pure":"object"},x0)),transactions:n.transactions},_t);return Ie.restore(i)}static fromBytes(e){let n=oe.TransactionData.parse(e)?.V1,i="ProgrammableTransaction"in n.kind?n?.kind?.ProgrammableTransaction:null;if(!n||!i)throw new Error("Unable to deserialize from bytes.");let o=he({version:1,sender:n.sender,expiration:n.expiration,gasConfig:n.gasData,inputs:i.inputs.map((s,a)=>he({kind:"Input",value:s,index:a,type:de(s,T0)?"pure":"object"},x0)),transactions:i.transactions},_t);return Ie.restore(o)}static restore(e){W0(e,_t);let r=new Ie;return Object.assign(r,e),r}static getDigestFromBytes(e){let r=lo("TransactionData",e);return je(r)}build({maxSizeBytes:e=1/0,overrides:r,onlyTransactionKind:n}={}){let i=this.inputs.map(f=>(W0(f.value,I0),f.value)),o={ProgrammableTransaction:{inputs:i,transactions:this.transactions}};if(n)return oe.TransactionKind.serialize(o,{maxSize:e}).toBytes();let s=r?.expiration??this.expiration,a=r?.sender??this.sender,c={...this.gasConfig,...r?.gasConfig};if(!a)throw new Error("Missing transaction sender");if(!c.budget)throw new Error("Missing gas budget");if(!c.payment)throw new Error("Missing gas payment");if(!c.price)throw new Error("Missing gas price");let l={sender:po(a),expiration:s||{None:!0},gasData:{payment:c.payment,owner:po(this.gasConfig.owner??a),price:BigInt(c.price),budget:BigInt(c.budget)},kind:{ProgrammableTransaction:{inputs:i,transactions:this.transactions}}};return oe.TransactionData.serialize({V1:l},{maxSize:e}).toBytes()}getDigest(){let e=this.build({onlyTransactionKind:!1});return Ie.getDigestFromBytes(e)}snapshot(){return he(this,_t)}};var gn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Y=(t,e,r)=>(gn(t,e,"read from private field"),r?r.call(t):e.get(t)),We=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Tt=(t,e,r,n)=>(gn(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),ue=(t,e,r)=>(gn(t,e,"access private method"),r),J,X0,It,J0,kt,n0,l0,vn,yo,mn,go,Bn,vo,En,mo,Ot,pn,ef={maxPureArgumentSize:16*1024,maxTxGas:5e10,maxGasObjects:256,maxTxSizeBytes:128*1024};function tf(t){let e={kind:"Result",index:t},r=[],n=i=>r[i]??(r[i]={kind:"NestedResult",index:t,resultIndex:i});return new Proxy(e,{set(){throw new Error("The transaction result is a proxy, and does not support setting properties directly")},get(i,o){if(o in i)return Reflect.get(i,o);if(o===Symbol.iterator)return function*(){let a=0;for(;;)yield n(a),a++};if(typeof o=="symbol")return;let s=parseInt(o,10);if(!(Number.isNaN(s)||s<0))return n(s)}})}function rf(t){let e=_0(t);return e?e.Struct.address==="0x2"&&e.Struct.module==="transfer"&&e.Struct.name==="Receiving":!1}function Y0(t){if(!t.client)throw new Error("No provider passed to Transaction#build, but transaction data was not sufficient to build offline.");return t.client}var nf=Symbol.for("@mysten/transaction"),hn={maxTxGas:"max_tx_gas",maxGasObjects:"max_gas_payment_objects",maxTxSizeBytes:"max_tx_size_bytes",maxPureArgumentSize:"max_pure_argument_size"},of=1000n,sf=50,af=(t,e)=>Array.from({length:Math.ceil(t.length/e)},(r,n)=>t.slice(n*e,n*e+e));var yn=class{constructor(t){We(this,X0),We(this,J0),We(this,n0),We(this,vn),We(this,mn),We(this,Bn),We(this,En),We(this,Ot),We(this,J,void 0),Tt(this,J,new Ie(t?t.blockData:void 0))}static fromKind(t){let e=new yn;return Tt(e,J,Ie.fromKindBytes(typeof t=="string"?Ce(t):t)),e}static from(t){let e=new yn;return typeof t!="string"||!t.startsWith("{")?Tt(e,J,Ie.fromBytes(typeof t=="string"?Ce(t):t)):Tt(e,J,Ie.restore(JSON.parse(t))),e}setSender(t){Y(this,J).sender=t}setSenderIfNotSet(t){Y(this,J).sender||(Y(this,J).sender=t)}setExpiration(t){Y(this,J).expiration=t}setGasPrice(t){Y(this,J).gasConfig.price=String(t)}setGasBudget(t){Y(this,J).gasConfig.budget=String(t)}setGasOwner(t){Y(this,J).gasConfig.owner=t}setGasPayment(t){Y(this,J).gasConfig.payment=t.map(e=>Yr(e,Te))}get blockData(){return Y(this,J).snapshot()}get[nf](){return!0}get pure(){return Object.defineProperty(this,"pure",{enumerable:!1,value:xo((t,e)=>B0(t)?ue(this,X0,It).call(this,"pure",{Pure:Array.from(t.toBytes())}):ue(this,X0,It).call(this,"pure",t instanceof Uint8Array?ye.Pure(t):e?ye.Pure(t,e):t))}),this.pure}get gas(){return{kind:"GasCoin"}}object(t){if(typeof t=="object"&&"kind"in t)return t;let e=dn(t);return Y(this,J).inputs.find(n=>n.type==="object"&&e===dn(n.value))??ue(this,X0,It).call(this,"object",typeof t=="string"?re(t):t)}objectRef(...t){return this.object(ye.ObjectRef(...t))}receivingRef(...t){return this.object(ye.ReceivingRef(...t))}sharedObjectRef(...t){return this.object(ye.SharedObjectRef(...t))}add(t){let e=Y(this,J).transactions.push(t);return tf(e-1)}splitCoins(t,e){return this.add(r0.SplitCoins(typeof t=="string"?this.object(t):t,e.map(r=>typeof r=="number"||typeof r=="bigint"||typeof r=="string"?this.pure.u64(r):ue(this,J0,kt).call(this,r))))}mergeCoins(t,e){return this.add(r0.MergeCoins(typeof t=="string"?this.object(t):t,e.map(r=>typeof r=="string"?this.object(r):r)))}publish({modules:t,dependencies:e}){return this.add(r0.Publish({modules:t,dependencies:e}))}upgrade({modules:t,dependencies:e,packageId:r,ticket:n}){return this.add(r0.Upgrade({modules:t,dependencies:e,packageId:r,ticket:typeof n=="string"?this.object(n):n}))}moveCall({arguments:t,typeArguments:e,target:r}){return this.add(r0.MoveCall({arguments:t?.map(n=>ue(this,J0,kt).call(this,n)),typeArguments:e,target:r}))}transferObjects(t,e){return this.add(r0.TransferObjects(t.map(r=>typeof r=="string"?this.object(r):r),typeof e=="string"?this.pure.address(e):ue(this,J0,kt).call(this,e)))}makeMoveVec({type:t,objects:e}){return this.add(r0.MakeMoveVec({type:t,objects:e.map(r=>typeof r=="string"?this.object(r):r)}))}serialize(){return JSON.stringify(Y(this,J).snapshot())}async sign(t){let{signer:e,...r}=t,n=await this.build(r);return e.signTransactionBlock(n)}async build(t={}){return await ue(this,Ot,pn).call(this,t),Y(this,J).build({maxSizeBytes:ue(this,n0,l0).call(this,"maxTxSizeBytes",t),onlyTransactionKind:t.onlyTransactionKind})}async getDigest(t={}){return await ue(this,Ot,pn).call(this,t),Y(this,J).getDigest()}},Z0=yn;J=new WeakMap;X0=new WeakSet;It=function(t,e){let r=Y(this,J).inputs.length,n=he({kind:"Input",value:typeof e=="bigint"?String(e):e,index:r,type:t},x0);return Y(this,J).inputs.push(n),n};J0=new WeakSet;kt=function(t){return B0(t)?this.pure(t):t};n0=new WeakSet;l0=function(t,{protocolConfig:e,limits:r}){if(r&&typeof r[t]=="number")return r[t];if(!e)return ef[t];let n=e?.attributes[hn[t]];if(!n)throw new Error(`Missing expected protocol config: "${hn[t]}"`);let i="u64"in n?n.u64:"u32"in n?n.u32:n.f64;if(!i)throw new Error(`Unexpected protocol config value found for: "${hn[t]}"`);return Number(i)};vn=new WeakSet;yo=function(t){let e=ue(this,n0,l0).call(this,"maxPureArgumentSize",t);Y(this,J).inputs.forEach((r,n)=>{if(de(r.value,T0)&&r.value.Pure.length>e)throw new Error(`Input at index ${n} is too large, max pure input size is ${e} bytes, got ${r.value.Pure.length} bytes`)})};mn=new WeakSet;go=async function(t){if(Y(this,J).gasConfig.payment){let i=ue(this,n0,l0).call(this,"maxGasObjects",t);if(Y(this,J).gasConfig.payment.length>i)throw new Error(`Payment objects exceed maximum amount: ${i}`)}if(t.onlyTransactionKind||Y(this,J).gasConfig.payment)return;let e=Y(this,J).gasConfig.owner??Y(this,J).sender,n=(await Y0(t).getCoins({owner:e,coinType:ci})).data.filter(i=>!Y(this,J).inputs.find(s=>de(s.value,I0)&&"Object"in s.value&&"ImmOrOwned"in s.value.Object?i.coinObjectId===s.value.Object.ImmOrOwned.objectId:!1)).slice(0,ue(this,n0,l0).call(this,"maxGasObjects",t)-1).map(i=>({objectId:i.coinObjectId,digest:i.digest,version:i.version}));if(!n.length)throw new Error("No valid gas coins found for the transaction.");this.setGasPayment(n)};Bn=new WeakSet;vo=async function(t){t.onlyTransactionKind||Y(this,J).gasConfig.price||this.setGasPrice(await Y0(t).getReferenceGasPrice())};En=new WeakSet;mo=async function(t){let{inputs:e,transactions:r}=Y(this,J),n=[],i=[];if(e.forEach(o=>{if(o.type==="object"&&typeof o.value=="string"){i.push({id:re(o.value),input:o});return}}),r.forEach(o=>{if(o.kind==="MoveCall"&&o.arguments.some(a=>a.kind==="Input"&&!de(e[a.index].value,I0))&&n.push(o),o.kind==="SplitCoins"&&o.amounts.forEach(s=>{if(s.kind==="Input"){let a=e[s.index];typeof a.value!="object"&&(a.value=ye.Pure(oe.U64.serialize(a.value)))}}),o.kind==="TransferObjects"&&o.address.kind==="Input"){let s=e[o.address.index];typeof s.value!="object"&&(s.value=ye.Pure(oe.Address.serialize(s.value)))}}),n.length&&await Promise.all(n.map(async o=>{let[s,a,c]=o.target.split("::"),l=await Y0(t).getNormalizedMoveFunction({package:e0(s),module:a,function:c}),u=l.parameters.length>0&&to(l.parameters.at(-1))?l.parameters.slice(0,l.parameters.length-1):l.parameters;if(u.length!==o.arguments.length)throw new Error("Incorrect number of arguments.");u.forEach((x,d)=>{let p=o.arguments[d];if(p.kind!=="Input")return;let g=e[p.index];if(de(g.value,I0))return;let v=g.value,h=St(x,v);if(h){g.value=ye.Pure(v,h);return}if(_0(x)!=null||typeof x=="object"&&"TypeParameter"in x){if(typeof v!="string")throw new Error(`Expect the argument to be an object id string, got ${JSON.stringify(v,null,2)}`);i.push({id:v,input:g,normalizedType:x});return}throw new Error(`Unknown call arg type ${JSON.stringify(x,null,2)} for value ${JSON.stringify(v,null,2)}`)})})),i.length){let o=[...new Set(i.map(({id:f})=>f))],s=af(o,sf),a=(await Promise.all(s.map(f=>Y0(t).multiGetObjects({ids:f,options:{showOwner:!0}})))).flat(),c=new Map(o.map((f,u)=>[f,a[u]])),l=Array.from(c).filter(([f,u])=>u.error).map(([f,u])=>f);if(l.length)throw new Error(`The following input objects are invalid: ${l.join(", ")}`);i.forEach(({id:f,input:u,normalizedType:x})=>{let d=c.get(f),p=d.data?.owner,g=p&&typeof p=="object"&&"Shared"in p?p.Shared.initial_shared_version:void 0;if(g){let v=x!=null&&G0(x)==null&&Ft(x)==null,h=ro(u.value)||v||x!=null&&G0(x)!=null;u.value=ye.SharedObjectRef({objectId:f,initialSharedVersion:g,mutable:h})}else x&&rf(x)?u.value=ye.ReceivingRef(wt(d)):u.value=ye.ObjectRef(wt(d))})}};Ot=new WeakSet;pn=async function(t){if(!t.onlyTransactionKind&&!Y(this,J).sender)throw new Error("Missing transaction sender");if(!t.protocolConfig&&!t.limits&&t.client&&(t.protocolConfig=await t.client.getProtocolConfig()),await Promise.all([ue(this,Bn,vo).call(this,t),ue(this,En,mo).call(this,t)]),!t.onlyTransactionKind&&(await ue(this,mn,go).call(this,t),!Y(this,J).gasConfig.budget)){let e=await Y0(t).dryRunTransactionBlock({transactionBlock:Y(this,J).build({maxSizeBytes:ue(this,n0,l0).call(this,"maxTxSizeBytes",t),overrides:{gasConfig:{budget:String(ue(this,n0,l0).call(this,"maxTxGas",t)),payment:[]}}})});if(e.effects.status.status!=="success")throw new Error(`Dry run failed, could not automatically determine a budget: ${e.effects.status.error}`,{cause:e});let r=of*BigInt(this.blockData.gasConfig.price||1n),n=BigInt(e.effects.gasUsed.computationCost)+r,i=n+BigInt(e.effects.gasUsed.storageCost)-BigInt(e.effects.gasUsed.storageRebate);this.setGasBudget(i>n?i:n)}ue(this,vn,yo).call(this,t)};var gf=Er(Ss(),1);var cf="0x2::sui::SUI";function uf(t,e){return re(t)===re(e)}function _s(t,e){return b0(t)===b0(e)}function xf(t){return b0(t).startsWith("0x2::coin::Coin")}async function lf(t,e,r){let n=!0,i,o=[];for(;n;){let s=await t.getCoins({owner:e,coinType:r,cursor:i});o.push(...s.data),n=s.hasNextPage,i=s.nextCursor}return o}async function Ts(t,e,r){return _s(e.coinType,cf)?df(e,r):hf(t,e,r)}function df(t,e){let r=new Z0,[n]=r.splitCoins(r.gas,[r.pure(t.amount)]);return r.transferObjects([n],r.pure(t.recipient)),r.setSender(e),r}async function hf(t,e,r){let n=await lf(t,r,e.coinType);if(n.length===0)throw new Error("No valid coin found to send");if(n.reduce((c,l)=>c+BigInt(l.balance),0n)<BigInt(e.amount))throw new Error("Not enough balance");let o=new Z0,s=o.object(n[0].coinObjectId);n.length>1&&o.mergeCoins(s,n.slice(1).map(c=>o.object(c.coinObjectId)));let[a]=o.splitCoins(s,[o.pure(e.amount)]);return o.transferObjects([a],o.pure(e.recipient)),o.setSender(r),o}async function Is(t,e,r){await pf(t,e,r);let n=new Z0;return n.transferObjects([n.object(e.objectId)],n.pure(e.receiver)),n.setSender(r),n}async function pf(t,e,r){let n=await t.getObject({id:e.objectId});if(n.data===void 0)throw new Error("Object not found");if(!n.data?.type)throw new Error("Object type is null");if(_s(n.data.type,e.objectType))throw new Error("Object type not expected");if(xf(n.data.type))throw new Error("Can not transfer coin object in Object Transfer transactions");let i=yf(n);if(!uf(i,r))throw new Error("Object owner not match")}function yf(t){let e=t.data?.owner;if(!e)throw new Error("Object Owner not found");if(typeof e!="object"||!("AddressOwner"in e))throw new Error("Invalid object owner");return e.AddressOwner}var vr=class{async deserialize(e){throw new Error("MSafe core transaction intention should be build from API")}async build(e){let{transactionIntention:r,context:n}=e;switch(r.txSubType){case"CoinTransfer":return Ts(n.suiClient,r.data,n.account.address);case"ObjectTransfer":return Is(n.suiClient,r.data,n.account.address);default:throw new Error("Unsupported transaction type")}}};var An=class{msafeCore=new vr};return Ys(vf);})();
5
+ Received: "${JSON.stringify(c)}"`);let u=Object.keys(c)[0];if(u===void 0)throw new Error(`Empty object passed as invariant of the enum "${i}"`);let x=n.indexOf(u);if(x===-1)throw new Error(`Unknown invariant of the enum "${i}", allowed values: "${n.join(" | ")}"; received "${u}"`);let d=n[x],p=r[d];if(a.write8(x),p===null)return a;let g=o.indexOf(p),m=g===-1?p:l[g];{let{name:h,params:y}=this.parseTypeName(m);return this.getTypeInterface(h)._encodeRaw.call(this,a,c[u],y,f)}},function(a,c,l){let f=a.readULEB(),u=n[f],x=r[u];if(f===-1)throw new Error(`Decoding type mismatch, expected enum "${i}" invariant index, received "${f}"`);if(x===null)return{[u]:!0};let d=o.indexOf(x),p=d===-1?x:c[d];{let{name:g,params:m}=this.parseTypeName(p);return{[u]:this.getTypeInterface(g)._decodeRaw.call(this,a,m,l)}}})}getTypeInterface(t){let e=this.types.get(t);if(typeof e=="string"){let r=[];for(;typeof e=="string";){if(r.includes(e))throw new Error(`Recursive definition found: ${r.join(" -> ")} -> ${e}`);r.push(e),e=this.types.get(e)}}if(e===void 0)throw new Error(`Type ${t} is not registered`);return e}parseTypeName(t){if(Array.isArray(t)){let[a,...c]=t;return{name:a,params:c}}if(typeof t!="string")throw new Error(`Illegal type passed as a name of the type: ${t}`);let[e,r]=this.schema.genericSeparators||["<",">"],n=t.indexOf(e),i=Array.from(t).reverse().indexOf(r);if(n===-1&&i===-1)return{name:t,params:[]};if(n===-1||i===-1)throw new Error(`Unclosed generic in name '${t}'`);let o=t.slice(0,n),s=it(t.slice(n+1,t.length-i-1),this.schema.genericSeparators);return{name:o,params:s}}},te=Ht;te.U8="u8";te.U16="u16";te.U32="u32";te.U64="u64";te.U128="u128";te.U256="u256";te.BOOL="bool";te.VECTOR="vector";te.ADDRESS="address";te.STRING="string";te.HEX="hex-string";te.BASE58="base58-string";te.BASE64="base64-string";function Ea(t){t.registerType(te.U8,function(e,r){return e.write8(r)},function(e){return e.read8()},e=>e<256),t.registerType(te.U16,function(e,r){return e.write16(r)},function(e){return e.read16()},e=>e<65536),t.registerType(te.U32,function(e,r){return e.write32(r)},function(e){return e.read32()},e=>e<=4294967296n),t.registerType(te.U64,function(e,r){return e.write64(r)},function(e){return e.read64()}),t.registerType(te.U128,function(e,r){return e.write128(r)},function(e){return e.read128()}),t.registerType(te.U256,function(e,r){return e.write256(r)},function(e){return e.read256()}),t.registerType(te.BOOL,function(e,r){return e.write8(r)},function(e){return e.read8().toString(10)==="1"}),t.registerType(te.STRING,function(e,r){return e.writeVec(Array.from(r),(n,i)=>n.write8(i.charCodeAt(0)))},function(e){return e.readVec(r=>r.read8()).map(r=>String.fromCharCode(Number(r))).join("")},e=>!0),t.registerType(te.HEX,function(e,r){return e.writeVec(Array.from(Ge(r)),(n,i)=>n.write8(i))},function(e){let r=e.readVec(n=>n.read8());return Ue(new Uint8Array(r))}),t.registerType(te.BASE58,function(e,r){return e.writeVec(Array.from(Ke(r)),(n,i)=>n.write8(i))},function(e){let r=e.readVec(n=>n.read8());return ke(new Uint8Array(r))}),t.registerType(te.BASE64,function(e,r){return e.writeVec(Array.from(we(r)),(n,i)=>n.write8(i))},function(e){let r=e.readVec(n=>n.read8());return Ve(new Uint8Array(r))})}function ri(){return{genericSeparators:["<",">"],vectorType:"vector",addressLength:ba,addressEncoding:"hex"}}function hr(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Aa(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function wa(t,...e){if(!Aa(t))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function I0(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function ni(t,e){wa(t);let r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}var bt=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));function Ca(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}var Da=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Da)throw new Error("Non little-endian hardware is not supported");function Fa(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function ot(t){if(typeof t=="string"&&(t=Fa(t)),!Ca(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}var pr=class{clone(){return this._cloneInto()}},$u={}.toString;function ii(t){let e=(n,i)=>t(i).update(ot(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}var oi=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3]),yr=class extends pr{constructor(e,r,n={},i,o,s){if(super(),this.blockLen=e,this.outputLen=r,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,hr(e),hr(r),hr(i),r<0||r>i)throw new Error("outputLen bigger than keyLen");if(n.key!==void 0&&(n.key.length<1||n.key.length>i))throw new Error(`key must be up 1..${i} byte long or undefined`);if(n.salt!==void 0&&n.salt.length!==o)throw new Error(`salt must be ${o} byte long or undefined`);if(n.personalization!==void 0&&n.personalization.length!==s)throw new Error(`personalization must be ${s} byte long or undefined`);this.buffer32=bt(this.buffer=new Uint8Array(e))}update(e){I0(this);let{blockLen:r,buffer:n,buffer32:i}=this;e=ot(e);let o=e.length,s=e.byteOffset,a=e.buffer;for(let c=0;c<o;){this.pos===r&&(this.compress(i,0,!1),this.pos=0);let l=Math.min(r-this.pos,o-c),f=s+c;if(l===r&&!(f%4)&&c+l<o){let u=new Uint32Array(a,f,Math.floor((o-c)/4));for(let x=0;c+r<o;x+=i.length,c+=r)this.length+=r,this.compress(u,x,!1);continue}n.set(e.subarray(c,c+l),this.pos),this.pos+=l,this.length+=l,c+=l}return this}digestInto(e){I0(this),ni(e,this);let{pos:r,buffer32:n}=this;this.finished=!0,this.buffer.subarray(r).fill(0),this.compress(n,0,!0);let i=bt(e);this.get().forEach((o,s)=>i[s]=o)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){let{buffer:r,length:n,finished:i,destroyed:o,outputLen:s,pos:a}=this;return e||(e=new this.constructor({dkLen:s})),e.set(...this.get()),e.length=n,e.finished=i,e.destroyed=o,e.outputLen=s,e.buffer.set(r),e.pos=a,e}};var gr=BigInt(4294967295),k0=BigInt(32);function si(t,e=!1){return e?{h:Number(t&gr),l:Number(t>>k0&gr)}:{h:Number(t>>k0&gr)|0,l:Number(t&gr)|0}}function Sa(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;i<t.length;i++){let{h:o,l:s}=si(t[i],e);[r[i],n[i]]=[o,s]}return[r,n]}var _a=(t,e)=>BigInt(t>>>0)<<k0|BigInt(e>>>0),Ta=(t,e,r)=>t>>>r,Ia=(t,e,r)=>t<<32-r|e>>>r,ka=(t,e,r)=>t>>>r|e<<32-r,Oa=(t,e,r)=>t<<32-r|e>>>r,ja=(t,e,r)=>t<<64-r|e>>>r-32,Ra=(t,e,r)=>t>>>r-32|e<<64-r,Ua=(t,e)=>e,Pa=(t,e)=>t,za=(t,e,r)=>t<<r|e>>>32-r,Ma=(t,e,r)=>e<<r|t>>>32-r,Na=(t,e,r)=>e<<r-32|t>>>64-r,$a=(t,e,r)=>t<<r-32|e>>>64-r;function Ha(t,e,r,n){let i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}var La=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Wa=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,qa=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Ka=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,Va=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Ga=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;var Xa={fromBig:si,split:Sa,toBig:_a,shrSH:Ta,shrSL:Ia,rotrSH:ka,rotrSL:Oa,rotrBH:ja,rotrBL:Ra,rotr32H:Ua,rotr32L:Pa,rotlSH:za,rotlSL:Ma,rotlBH:Na,rotlBL:$a,add:Ha,add3L:La,add3H:Wa,add4L:qa,add4H:Ka,add5H:Ga,add5L:Va},le=Xa;var se=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),P=new Uint32Array(32);function Je(t,e,r,n,i,o){let s=i[o],a=i[o+1],c=P[2*t],l=P[2*t+1],f=P[2*e],u=P[2*e+1],x=P[2*r],d=P[2*r+1],p=P[2*n],g=P[2*n+1],m=le.add3L(c,f,s);l=le.add3H(m,l,u,a),c=m|0,{Dh:g,Dl:p}={Dh:g^l,Dl:p^c},{Dh:g,Dl:p}={Dh:le.rotr32H(g,p),Dl:le.rotr32L(g,p)},{h:d,l:x}=le.add(d,x,g,p),{Bh:u,Bl:f}={Bh:u^d,Bl:f^x},{Bh:u,Bl:f}={Bh:le.rotrSH(u,f,24),Bl:le.rotrSL(u,f,24)},P[2*t]=c,P[2*t+1]=l,P[2*e]=f,P[2*e+1]=u,P[2*r]=x,P[2*r+1]=d,P[2*n]=p,P[2*n+1]=g}function Ye(t,e,r,n,i,o){let s=i[o],a=i[o+1],c=P[2*t],l=P[2*t+1],f=P[2*e],u=P[2*e+1],x=P[2*r],d=P[2*r+1],p=P[2*n],g=P[2*n+1],m=le.add3L(c,f,s);l=le.add3H(m,l,u,a),c=m|0,{Dh:g,Dl:p}={Dh:g^l,Dl:p^c},{Dh:g,Dl:p}={Dh:le.rotrSH(g,p,16),Dl:le.rotrSL(g,p,16)},{h:d,l:x}=le.add(d,x,g,p),{Bh:u,Bl:f}={Bh:u^d,Bl:f^x},{Bh:u,Bl:f}={Bh:le.rotrBH(u,f,63),Bl:le.rotrBL(u,f,63)},P[2*t]=c,P[2*t+1]=l,P[2*e]=f,P[2*e+1]=u,P[2*r]=x,P[2*r+1]=d,P[2*n]=p,P[2*n+1]=g}var O0=class extends yr{constructor(e={}){super(128,e.dkLen===void 0?64:e.dkLen,e,64,16,16),this.v0l=se[0]|0,this.v0h=se[1]|0,this.v1l=se[2]|0,this.v1h=se[3]|0,this.v2l=se[4]|0,this.v2h=se[5]|0,this.v3l=se[6]|0,this.v3h=se[7]|0,this.v4l=se[8]|0,this.v4h=se[9]|0,this.v5l=se[10]|0,this.v5h=se[11]|0,this.v6l=se[12]|0,this.v6h=se[13]|0,this.v7l=se[14]|0,this.v7h=se[15]|0;let r=e.key?e.key.length:0;if(this.v0l^=this.outputLen|r<<8|65536|1<<24,e.salt){let n=bt(ot(e.salt));this.v4l^=n[0],this.v4h^=n[1],this.v5l^=n[2],this.v5h^=n[3]}if(e.personalization){let n=bt(ot(e.personalization));this.v6l^=n[0],this.v6h^=n[1],this.v7l^=n[2],this.v7h^=n[3]}if(e.key){let n=new Uint8Array(this.blockLen);n.set(ot(e.key)),this.update(n)}}get(){let{v0l:e,v0h:r,v1l:n,v1h:i,v2l:o,v2h:s,v3l:a,v3h:c,v4l:l,v4h:f,v5l:u,v5h:x,v6l:d,v6h:p,v7l:g,v7h:m}=this;return[e,r,n,i,o,s,a,c,l,f,u,x,d,p,g,m]}set(e,r,n,i,o,s,a,c,l,f,u,x,d,p,g,m){this.v0l=e|0,this.v0h=r|0,this.v1l=n|0,this.v1h=i|0,this.v2l=o|0,this.v2h=s|0,this.v3l=a|0,this.v3h=c|0,this.v4l=l|0,this.v4h=f|0,this.v5l=u|0,this.v5h=x|0,this.v6l=d|0,this.v6h=p|0,this.v7l=g|0,this.v7h=m|0}compress(e,r,n){this.get().forEach((c,l)=>P[l]=c),P.set(se,16);let{h:i,l:o}=le.fromBig(BigInt(this.length));P[24]=se[8]^o,P[25]=se[9]^i,n&&(P[28]=~P[28],P[29]=~P[29]);let s=0,a=oi;for(let c=0;c<12;c++)Je(0,4,8,12,e,r+2*a[s++]),Ye(0,4,8,12,e,r+2*a[s++]),Je(1,5,9,13,e,r+2*a[s++]),Ye(1,5,9,13,e,r+2*a[s++]),Je(2,6,10,14,e,r+2*a[s++]),Ye(2,6,10,14,e,r+2*a[s++]),Je(3,7,11,15,e,r+2*a[s++]),Ye(3,7,11,15,e,r+2*a[s++]),Je(0,5,10,15,e,r+2*a[s++]),Ye(0,5,10,15,e,r+2*a[s++]),Je(1,6,11,12,e,r+2*a[s++]),Ye(1,6,11,12,e,r+2*a[s++]),Je(2,7,8,13,e,r+2*a[s++]),Ye(2,7,8,13,e,r+2*a[s++]),Je(3,4,9,14,e,r+2*a[s++]),Ye(3,4,9,14,e,r+2*a[s++]);this.v0l^=P[0]^P[16],this.v0h^=P[1]^P[17],this.v1l^=P[2]^P[18],this.v1h^=P[3]^P[19],this.v2l^=P[4]^P[20],this.v2h^=P[5]^P[21],this.v3l^=P[6]^P[22],this.v3h^=P[7]^P[23],this.v4l^=P[8]^P[24],this.v4h^=P[9]^P[25],this.v5l^=P[10]^P[26],this.v5h^=P[11]^P[27],this.v6l^=P[12]^P[28],this.v6h^=P[13]^P[29],this.v7l^=P[14]^P[30],this.v7h^=P[15]^P[31],P.fill(0)}destroy(){this.destroyed=!0,this.buffer32.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},ai=ii(t=>new O0(t));var Lt=32;function j0(t){return Ya(t)&&Za(t)===Lt}function Ja(t){return t.includes("::")?R0(t):t}function R0(t){let[e,r]=t.split("::"),n=t.slice(e.length+r.length+4),i=n.includes("<")?n.slice(0,n.indexOf("<")):n,o=n.includes("<")?it(n.slice(n.indexOf("<")+1,n.lastIndexOf(">"))).map(s=>Ja(s.trim())):[];return{address:re(e),module:r,name:i,typeParams:o}}function Et(t){let{address:e,module:r,name:n,typeParams:i}=typeof t=="string"?R0(t):t,o=i.length>0?`<${i.map(s=>typeof s=="string"?s:Et(s)).join(",")}>`:"";return`${e}::${r}::${n}${o}`}function re(t,e=!1){let r=t.toLowerCase();return!e&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart(Lt*2,"0")}`}function Ze(t,e=!1){return re(t,e)}function Ya(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)&&t.length%2===0}function Za(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}var Qa=/^vector<(.+)>$/,ec=/^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/,st=class t{static parseFromStr(e,r=!1){if(e==="address")return{address:null};if(e==="bool")return{bool:null};if(e==="u8")return{u8:null};if(e==="u16")return{u16:null};if(e==="u32")return{u32:null};if(e==="u64")return{u64:null};if(e==="u128")return{u128:null};if(e==="u256")return{u256:null};if(e==="signer")return{signer:null};let n=e.match(Qa);if(n)return{vector:t.parseFromStr(n[1],r)};let i=e.match(ec);if(i)return{struct:{address:r?re(i[1]):i[1],module:i[2],name:i[3],typeParams:i[5]===void 0?[]:t.parseStructTypeArgs(i[5],r)}};throw new Error(`Encountered unexpected token when parsing type args for ${e}`)}static parseStructTypeArgs(e,r=!1){return it(e).map(n=>t.parseFromStr(n,r))}static tagToString(e){if("bool"in e)return"bool";if("u8"in e)return"u8";if("u16"in e)return"u16";if("u32"in e)return"u32";if("u64"in e)return"u64";if("u128"in e)return"u128";if("u256"in e)return"u256";if("address"in e)return"address";if("signer"in e)return"signer";if("vector"in e)return`vector<${t.tagToString(e.vector)}>`;if("struct"in e){let r=e.struct,n=r.typeParams.map(t.tagToString).join(", ");return`${r.address}::${r.module}::${r.name}${n?`<${n}>`:""}`}throw new Error("Invalid TypeTag")}};var Z=new te({...ri(),types:{enums:{"Option<T>":{None:null,Some:"T"}}}});function ci(t){return C.u64({name:"unsafe_u64",...t}).transform({input:e=>e,output:e=>Number(e)})}function tc(t){return C.enum("Option",{None:null,Some:t})}function U0(t){return t.transform({input:e=>({[e.kind]:e}),output:e=>{let r=Object.keys(e)[0];return{kind:r,...e[r]}}})}var Re=C.bytes(Lt).transform({input:t=>typeof t=="string"?Ge(re(t)):t,output:t=>re(Ue(t))}),P0=C.vector(C.u8()).transform({name:"ObjectDigest",input:t=>Ke(t),output:t=>ke(new Uint8Array(t))}),Wt=C.struct("SuiObjectRef",{objectId:Re,version:C.u64(),digest:P0}),z0=C.struct("SharedObjectRef",{objectId:Re,initialSharedVersion:C.u64(),mutable:C.bool()}),mr=C.enum("ObjectArg",{ImmOrOwned:Wt,Shared:z0,Receiving:Wt}),M0=C.enum("CallArg",{Pure:C.vector(C.u8()),Object:mr,ObjVec:C.vector(mr)}),At=C.enum("TypeTag",{bool:null,u8:null,u64:null,u128:null,address:null,signer:null,vector:C.lazy(()=>At),struct:C.lazy(()=>q0),u16:null,u32:null,u256:null}),je=U0(C.enum("Argument",{GasCoin:null,Input:C.struct("Input",{index:C.u16()}),Result:C.struct("Result",{index:C.u16()}),NestedResult:C.struct("NestedResult",{index:C.u16(),resultIndex:C.u16()})})),N0=C.struct("ProgrammableMoveCall",{package:Re,module:C.string(),function:C.string(),type_arguments:C.vector(At),arguments:C.vector(je)}).transform({input:t=>{let[e,r,n]=t.target.split("::"),i=t.typeArguments.map(o=>st.parseFromStr(o,!0));return{package:re(e),module:r,function:n,type_arguments:i,arguments:t.arguments}},output:t=>({target:[t.package,t.module,t.function].join("::"),arguments:t.arguments,typeArguments:t.type_arguments.map(st.tagToString)})}),$0=U0(C.enum("Transaction",{MoveCall:N0,TransferObjects:C.struct("TransferObjects",{objects:C.vector(je),address:je}),SplitCoins:C.struct("SplitCoins",{coin:je,amounts:C.vector(je)}),MergeCoins:C.struct("MergeCoins",{destination:je,sources:C.vector(je)}),Publish:C.struct("Publish",{modules:C.vector(C.vector(C.u8())),dependencies:C.vector(Re)}),MakeMoveVec:C.struct("MakeMoveVec",{type:tc(At),objects:C.vector(je)}),Upgrade:C.struct("Upgrade",{modules:C.vector(C.vector(C.u8())),dependencies:C.vector(Re),packageId:Re,ticket:je})})),H0=C.struct("ProgrammableTransaction",{inputs:C.vector(M0),transactions:C.vector($0)}),L0=C.enum("TransactionKind",{ProgrammableTransaction:H0,ChangeEpoch:null,Genesis:null,ConsensusCommitPrologue:null}),W0=C.enum("TransactionExpiration",{None:null,Epoch:ci()}),q0=C.struct("StructTag",{address:Re,module:C.string(),name:C.string(),typeParams:C.vector(At)}),K0=C.struct("GasData",{payment:C.vector(Wt),owner:Re,price:C.u64(),budget:C.u64()}),V0=C.struct("TransactionDataV1",{kind:L0,sender:Re,gasData:K0,expiration:W0}),G0=C.enum("TransactionData",{V1:V0}),fi=C.struct("SenderSignedData",{data:G0,txSignatures:C.vector(C.vector(C.u8()))}),X0=C.enum("CompressedSignature",{ED25519:C.fixedArray(64,C.u8()),Secp256k1:C.fixedArray(64,C.u8()),Secp256r1:C.fixedArray(64,C.u8()),ZkLogin:C.vector(C.u8())}),J0=C.enum("PublicKey",{ED25519:C.fixedArray(32,C.u8()),Secp256k1:C.fixedArray(33,C.u8()),Secp256r1:C.fixedArray(33,C.u8()),ZkLogin:C.vector(C.u8())}),Y0=C.struct("MultiSigPkMap",{pubKey:J0,weight:C.u8()}),Z0=C.struct("MultiSigPublicKey",{pk_map:C.vector(Y0),threshold:C.u16()}),ui=C.struct("MultiSig",{sigs:C.vector(X0),bitmap:C.u16(),multisig_pk:Z0}),oe={...C,U8:C.u8(),U16:C.u16(),U32:C.u32(),U64:C.u64(),U128:C.u128(),U256:C.u256(),ULEB128:C.uleb128(),Bool:C.bool(),String:C.string(),Address:Re,Argument:je,CallArg:M0,CompressedSignature:X0,GasData:K0,MultiSig:ui,MultiSigPkMap:Y0,MultiSigPublicKey:Z0,ObjectArg:mr,ObjectDigest:P0,ProgrammableMoveCall:N0,ProgrammableTransaction:H0,PublicKey:J0,SenderSignedData:fi,SharedObjectRef:z0,StructTag:q0,SuiObjectRef:Wt,Transaction:$0,TransactionData:G0,TransactionDataV1:V0,TransactionExpiration:W0,TransactionKind:L0,TypeTag:At,ser:Z.ser.bind(Z),de:Z.de.bind(Z),getTypeInterface:Z.getTypeInterface.bind(Z),hasType:Z.hasType.bind(Z),parseTypeName:Z.parseTypeName.bind(Z),registerAddressType:Z.registerAddressType.bind(Z),registerAlias:Z.registerAlias.bind(Z),registerBcsType:Z.registerBcsType.bind(Z),registerEnumType:Z.registerEnumType.bind(Z),registerStructType:Z.registerStructType.bind(Z),registerType:Z.registerType.bind(Z),types:Z.types};Z.registerBcsType("utf8string",()=>C.string({name:"utf8string"}));Z.registerBcsType("unsafe_u64",()=>ci());Z.registerBcsType("enumKind",t=>U0(t));[Re,je,M0,X0,K0,ui,Y0,Z0,mr,P0,N0,H0,J0,fi,z0,q0,Wt,$0,G0,V0,W0,L0,At].forEach(t=>{Z.registerBcsType(t.name,()=>t)});var Q0=class extends TypeError{constructor(e,r){let n,{message:i,explanation:o,...s}=e,{path:a}=e,c=a.length===0?i:`At path: ${a.join(".")} -- ${i}`;super(o??c),o!=null&&(this.cause=c),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...r()])}};function rc(t){return Ce(t)&&typeof t[Symbol.iterator]=="function"}function Ce(t){return typeof t=="object"&&t!=null}function De(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function nc(t){let{done:e,value:r}=t.next();return e?void 0:r}function ic(t,e,r,n){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});let{path:i,branch:o}=e,{type:s}=r,{refinement:a,message:c=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${De(n)}\``}=t;return{value:n,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...t,message:c}}function*xi(t,e,r,n){rc(t)||(t=[t]);for(let i of t){let o=ic(i,e,r,n);o&&(yield o)}}function*en(t,e,r={}){let{path:n=[],branch:i=[t],coerce:o=!1,mask:s=!1}=r,a={path:n,branch:i};if(o&&(t=e.coercer(t,a),s&&e.type!=="type"&&Ce(e.schema)&&Ce(t)&&!Array.isArray(t)))for(let l in t)e.schema[l]===void 0&&delete t[l];let c="valid";for(let l of e.validator(t,a))l.explanation=r.message,c="not_valid",yield[l,void 0];for(let[l,f,u]of e.entries(t,a)){let x=en(f,u,{path:l===void 0?n:[...n,l],branch:l===void 0?i:[...i,f],coerce:o,mask:s,message:r.message});for(let d of x)d[0]?(c=d[0].refinement!=null?"not_refined":"not_valid",yield[d[0],void 0]):o&&(f=d[1],l===void 0?t=f:t instanceof Map?t.set(l,f):t instanceof Set?t.add(f):Ce(t)&&(f!==void 0||l in t)&&(t[l]=f))}if(c!=="not_valid")for(let l of e.refiner(t,a))l.explanation=r.message,c="not_refined",yield[l,void 0];c==="valid"&&(yield[void 0,t])}var Fe=class{constructor(e){let{type:r,schema:n,validator:i,refiner:o,coercer:s=c=>c,entries:a=function*(){}}=e;this.type=r,this.schema=n,this.entries=a,this.coercer=s,i?this.validator=(c,l)=>{let f=i(c,l);return xi(f,l,this,c)}:this.validator=()=>[],o?this.refiner=(c,l)=>{let f=o(c,l);return xi(f,l,this,c)}:this.refiner=()=>[]}assert(e,r){return qt(e,this,r)}create(e,r){return tn(e,this,r)}is(e){return de(e,this)}mask(e,r){return rn(e,this,r)}validate(e,r={}){return Kt(e,this,r)}};function qt(t,e,r){let n=Kt(t,e,{message:r});if(n[0])throw n[0]}function tn(t,e,r){let n=Kt(t,e,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function rn(t,e,r){let n=Kt(t,e,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function de(t,e){return!Kt(t,e)[0]}function Kt(t,e,r={}){let n=en(t,e,r),i=nc(n);return i[0]?[new Q0(i[0],function*(){for(let s of n)s[0]&&(yield s[0])}),void 0]:[void 0,i[1]]}function wt(...t){let e=t[0].type==="type",r=t.map(i=>i.schema),n=Object.assign({},...r);return e?oc(n):U(n)}function xe(t,e){return new Fe({type:t,schema:null,validator:e})}function Vt(){return xe("any",()=>!0)}function X(t){return new Fe({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(let[r,n]of e.entries())yield[r,n,t]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||`Expected an array value, but received: ${De(e)}`}})}function li(){return xe("bigint",t=>typeof t=="bigint")}function ce(){return xe("boolean",t=>typeof t=="boolean")}function Ee(){return xe("integer",t=>typeof t=="number"&&!isNaN(t)&&Number.isInteger(t)||`Expected an integer, but received: ${De(t)}`)}function L(t){let e=De(t),r=typeof t;return new Fe({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(n){return n===t||`Expected the literal \`${e}\`, but received: ${De(n)}`}})}function di(){return xe("never",()=>!1)}function ne(t){return new Fe({...t,validator:(e,r)=>e===null||t.validator(e,r),refiner:(e,r)=>e===null||t.refiner(e,r)})}function Me(){return xe("number",t=>typeof t=="number"&&!isNaN(t)||`Expected a number, but received: ${De(t)}`)}function U(t){let e=t?Object.keys(t):[],r=di();return new Fe({type:"object",schema:t||null,*entries(n){if(t&&Ce(n)){let i=new Set(Object.keys(n));for(let o of e)i.delete(o),yield[o,n[o],t[o]];for(let o of i)yield[o,n[o],r]}},validator(n){return Ce(n)||`Expected an object, but received: ${De(n)}`},coercer(n){return Ce(n)?{...n}:n}})}function q(t){return new Fe({...t,validator:(e,r)=>e===void 0||t.validator(e,r),refiner:(e,r)=>e===void 0||t.refiner(e,r)})}function pe(t,e){return new Fe({type:"record",schema:null,*entries(r){if(Ce(r))for(let n in r){let i=r[n];yield[n,n,t],yield[n,i,e]}},validator(r){return Ce(r)||`Expected an object, but received: ${De(r)}`}})}function j(){return xe("string",t=>typeof t=="string"||`Expected a string, but received: ${De(t)}`)}function vr(t){let e=di();return new Fe({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){let n=Math.max(t.length,r.length);for(let i=0;i<n;i++)yield[i,r[i],t[i]||e]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${De(r)}`}})}function oc(t){let e=Object.keys(t);return new Fe({type:"type",schema:t,*entries(r){if(Ce(r))for(let n of e)yield[n,r[n],t[n]]},validator(r){return Ce(r)||`Expected an object, but received: ${De(r)}`},coercer(r){return Ce(r)?{...r}:r}})}function Q(t){let e=t.map(r=>r.type).join(" | ");return new Fe({type:"union",schema:null,coercer(r){for(let n of t){let[i,o]=n.validate(r,{coerce:!0});if(!i)return o}return r},validator(r,n){let i=[];for(let o of t){let[...s]=en(r,o,n),[a]=s;if(a[0])for(let[c]of s)c&&i.push(c);else return[]}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${De(r)}`,...i]}})}function Br(){return xe("unknown",()=>!0)}var ux=BigInt(1e9),br="0x1",nn="0x2";var xx=Ze("0x6");var hi=`${nn}::sui::SUI`,lx=Ze("0x5");var Sf=sr(Ri(),1);var Cr=Q([U({AddressOwner:j()}),U({ObjectOwner:j()}),U({Shared:U({initial_shared_version:ne(j())})}),L("Immutable")]),vx=xe("SuiJsonValue",()=>!0),zc=Q([U({u32:j()}),U({u64:j()}),U({f64:j()})]),Bx=U({attributes:pe(j(),ne(zc)),featureFlags:pe(j(),ce()),maxSupportedProtocolVersion:j(),minSupportedProtocolVersion:j(),protocolVersion:j()});var Mc=Q([j(),L("package")]),_e=U({digest:j(),objectId:j(),version:Q([Me(),j(),li()])}),wx=U({owner:Cr,reference:_e}),Cx=U({objectId:j(),sequenceNumber:j()}),Nc=U({payment:X(_e),owner:j(),price:j(),budget:j()}),Ui=wt(_e,U({type:j(),owner:Cr,previousTransaction:j()})),Pi=pe(j(),Vt()),zi=pe(j(),Br()),Mi=U({type:j(),fields:Pi,hasPublicTransfer:ce()}),Ni=U({disassembled:zi}),$i=Q([wt(Mi,U({dataType:L("moveObject")})),wt(Ni,U({dataType:L("package")}))]),Hi=U({type:j(),hasPublicTransfer:ce(),version:j(),bcsBytes:j()}),Li=U({id:j(),moduleMap:pe(j(),j())}),Wi=Q([wt(Hi,U({dataType:L("moveObject")})),wt(Li,U({dataType:L("package")}))]);var Dx=BigInt(1e9),pn=U({code:j(),error:q(j()),object_id:q(j()),parent_object_id:q(j()),version:q(j()),digest:q(j())}),qi=U({data:ne(q(pe(j(),j()))),error:ne(q(pn))}),Ki=Q([qi,q(pe(j(),j()))]),yn=U({objectId:j(),version:j(),digest:j(),type:ne(q(j())),content:ne(q($i)),bcs:ne(q(Wi)),owner:ne(q(Cr)),previousTransaction:ne(q(j())),storageRebate:ne(q(j())),display:ne(q(Ki))}),$c=U({showType:ne(q(ce())),showContent:ne(q(ce())),showBcs:ne(q(ce())),showOwner:ne(q(ce())),showPreviousTransaction:ne(q(ce())),showStorageRebate:ne(q(ce())),showDisplay:ne(q(ce()))}),Hc=Q([L("Exists"),L("notExists"),L("Deleted")]),Lc=X(Ui),Vi=U({data:ne(q(yn)),error:ne(q(pn))});function Gi(t){return t.data}function Xi(t){if(t.error&&"object_id"in t.error&&"version"in t.error&&"digest"in t.error){let e=t.error;return{objectId:e.object_id,version:e.version,digest:e.digest}}}function Dr(t){if("reference"in t)return t.reference;let e=Gi(t);return e?{objectId:e.objectId,version:e.version,digest:e.digest}:Xi(t)}var Wc=U({objectId:j(),atCheckpoint:q(Me())}),qc=U({data:X(Vi),nextCursor:q(ne(j())),hasNextPage:ce()}),Kc=Q([U({details:yn,status:L("VersionFound")}),U({details:j(),status:L("ObjectNotExists")}),U({details:_e,status:L("ObjectDeleted")}),U({details:vr([j(),Me()]),status:L("VersionNotFound")}),U({details:U({asked_version:Me(),latest_version:Me(),object_id:j()}),status:L("VersionTooHigh")})]);var Ji=Q([j(),U({Object:j()})]),Vc=X(Ji),Yi=U({address:j(),name:j()}),Zi=Q([L("Private"),L("Public"),L("Friend")]),Sr=U({abilities:X(j())}),Qi=U({constraints:Sr,isPhantom:ce()}),eo=U({TypeParameter:Me()}),Fr=vr([U({module:j(),package:j(),function:j()}),j()]),Gc=U({rank3Days:X(Fr),rank7Days:X(Fr),rank30Days:X(Fr)});function to(t){if(!t)return!1;if(typeof t=="string"||de(t,eo)||ro(t))return!0;if(typeof t!="object")return!1;let e=t;return!!(de(e.Reference,ft)||de(e.MutableReference,ft)||de(e.Vector,ft))}var ft=xe("SuiMoveNormalizedType",to);function ro(t){if(!t||typeof t!="object")return!1;let e=t;if(!e.Struct||typeof e.Struct!="object")return!1;let r=e.Struct;return!(typeof r.address!="string"||typeof r.module!="string"||typeof r.name!="string"||!Array.isArray(r.typeArguments)||!r.typeArguments.every(n=>to(n)))}var Xc=xe("SuiMoveNormalizedStructType",ro),no=U({visibility:Zi,isEntry:ce(),typeParameters:X(Sr),parameters:X(ft),return:X(ft)}),io=U({name:j(),type:ft}),oo=U({abilities:Sr,typeParameters:X(Qi),fields:X(io)}),so=U({fileFormatVersion:Me(),address:j(),name:j(),friends:X(Yi),structs:pe(j(),oo),exposedFunctions:pe(j(),no)}),Jc=pe(j(),so);function Xt(t){return typeof t=="object"&&"MutableReference"in t?t.MutableReference:void 0}function _r(t){return typeof t=="object"&&"Reference"in t?t.Reference:void 0}function _t(t){if(typeof t=="object"&&"Struct"in t)return t;let e=_r(t),r=Xt(t);if(typeof e=="object"&&"Struct"in e)return e;if(typeof r=="object"&&"Struct"in r)return r}var Yc="object",Zc="ID",Qc="ascii",ef="String",tf="string",rf="String",nf="option",of="Option",sf={address:nn,module:Yc,name:Zc},af={address:br,module:Qc,name:ef},cf={address:br,module:tf,name:rf},ff={address:br,module:nf,name:of},Tr=(t,e)=>t.address===e.address&&t.module===e.module&&t.name===e.name;function ao(t){let e=_t(t)?.Struct;return e?.address==="0x2"&&e?.module==="tx_context"&&e?.name==="TxContext"}function gn(t,e){if(!(typeof e>"u")&&typeof e!==t)throw new Error(`Expect ${e} to be ${t}, received ${typeof e}`)}var uf=["Address","Bool","U8","U16","U32","U64","U128","U256"];function Ir(t,e){if(typeof t=="string"&&uf.includes(t)){if(t in["U8","U16","U32","U64","U128","U256"])gn("number",e);else if(t==="Bool")gn("boolean",e);else if(t==="Address"&&(gn("string",e),e&&!j0(e)))throw new Error("Invalid Sui Address");return t.toLowerCase()}else if(typeof t=="string")throw new Error(`Unknown pure normalized type ${JSON.stringify(t,null,2)}`);if("Vector"in t){if((e===void 0||typeof e=="string")&&t.Vector==="U8")return"string";if(e!==void 0&&!Array.isArray(e))throw new Error(`Expect ${e} to be a array, received ${typeof e}`);let r=Ir(t.Vector,e?e[0]:void 0);return r===void 0?void 0:`vector<${r}>`}if("Struct"in t){if(Tr(t.Struct,af))return"string";if(Tr(t.Struct,cf))return"utf8string";if(Tr(t.Struct,sf))return"address";if(Tr(t.Struct,ff)){let r={Vector:t.Struct.typeArguments[0]};return Ir(r,e)}}}var xf=Q([U({ImmOrOwned:_e}),U({Shared:U({objectId:j(),initialSharedVersion:Q([Ee(),j()]),mutable:ce()})}),U({Receiving:_e})]),Tt=U({Pure:X(Ee())}),lf=U({Object:xf}),It=Q([Tt,lf]);function df(t,e){return{Pure:Array.from(t instanceof Uint8Array?t:Bt(t)?t.toBytes():oe.ser(e,t,{maxSize:1/0}).toBytes())}}var ye={Pure:df,ObjectRef({objectId:t,digest:e,version:r}){return{Object:{ImmOrOwned:{digest:e,version:r,objectId:re(t)}}}},SharedObjectRef({objectId:t,mutable:e,initialSharedVersion:r}){return{Object:{Shared:{mutable:e,initialSharedVersion:r,objectId:re(t)}}}},ReceivingRef({objectId:t,digest:e,version:r}){return{Object:{Receiving:{digest:e,version:r,objectId:re(t)}}}}};function mn(t){return typeof t=="string"?re(t):"ImmOrOwned"in t.Object?re(t.Object.ImmOrOwned.objectId):"Receiving"in t.Object?re(t.Object.Receiving.objectId):re(t.Object.Shared.objectId)}function hf(t){return typeof t=="object"&&"Object"in t&&"Shared"in t.Object?t.Object.Shared:void 0}function co(t){return hf(t)?.mutable??!1}function he(t,e){return tn(t,e)}var pf=t=>Q([U({None:Q([L(!0),L(null)])}),U({Some:t})]),ut=Q([U({kind:L("Input"),index:Ee(),value:q(Vt()),type:q(L("object"))}),U({kind:L("Input"),index:Ee(),value:q(Vt()),type:L("pure")})]),yf=[ut,U({kind:L("GasCoin")}),U({kind:L("Result"),index:Ee()}),U({kind:L("NestedResult"),index:Ee(),resultIndex:Ee()})],$e=Q([...yf]),fo=U({kind:L("MoveCall"),target:xe("target",j().validator),typeArguments:X(j()),arguments:X($e)}),uo=U({kind:L("TransferObjects"),objects:X($e),address:$e}),xo=U({kind:L("SplitCoins"),coin:$e,amounts:X($e)}),lo=U({kind:L("MergeCoins"),destination:$e,sources:X($e)}),ho=U({kind:L("MakeMoveVec"),type:q(pf(pe(j(),Br()))),objects:X($e)}),po=U({kind:L("Publish"),modules:X(X(Ee())),dependencies:X(j())});var yo=U({kind:L("Upgrade"),modules:X(X(Ee())),dependencies:X(j()),packageId:j(),ticket:$e}),gf=[fo,uo,xo,lo,po,yo,ho],go=Q([...gf]);var et={MoveCall(t){return he({kind:"MoveCall",target:t.target,arguments:t.arguments??[],typeArguments:t.typeArguments??[]},fo)},TransferObjects(t,e){return e.kind==="Input"&&e.type==="pure"&&typeof e.value!="object"&&(e.value=ye.Pure(oe.Address.serialize(e.value))),he({kind:"TransferObjects",objects:t,address:e},uo)},SplitCoins(t,e){return e.forEach(r=>{r.kind==="Input"&&r.type==="pure"&&typeof r.value!="object"&&(r.value=ye.Pure(oe.U64.serialize(r.value)))}),he({kind:"SplitCoins",coin:t,amounts:e},xo)},MergeCoins(t,e){return he({kind:"MergeCoins",destination:t,sources:e},lo)},Publish({modules:t,dependencies:e}){return he({kind:"Publish",modules:t.map(r=>typeof r=="string"?Array.from(we(r)):r),dependencies:e.map(r=>Ze(r))},po)},Upgrade({modules:t,dependencies:e,packageId:r,ticket:n}){return he({kind:"Upgrade",modules:t.map(i=>typeof i=="string"?Array.from(we(i)):i),dependencies:e.map(i=>Ze(i)),packageId:r,ticket:n},yo)},MakeMoveVec({type:t,objects:e}){return he({kind:"MakeMoveVec",type:t?{Some:st.parseFromStr(t)}:{None:null},objects:e},ho)}};function mo(t){function e(r,n){return t(r,n)}return e.u8=r=>t(oe.U8.serialize(r)),e.u16=r=>t(oe.U16.serialize(r)),e.u32=r=>t(oe.U32.serialize(r)),e.u64=r=>t(oe.U64.serialize(r)),e.u128=r=>t(oe.U128.serialize(r)),e.u256=r=>t(oe.U256.serialize(r)),e.bool=r=>t(oe.Bool.serialize(r)),e.string=r=>t(oe.String.serialize(r)),e.address=r=>t(oe.Address.serialize(r)),e.id=e.address,e}function vo(t,e){let r=Array.from(`${t}::`).map(i=>i.charCodeAt(0)),n=new Uint8Array(r.length+e.length);return n.set(r),n.set(e,r.length),ai(n,{dkLen:32})}var mf=q(ne(Q([U({Epoch:Ee()}),U({None:Q([L(!0),L(null)])})]))),Bo=xe("StringEncodedBigint",t=>{if(!["string","number","bigint"].includes(typeof t))return!1;try{return BigInt(t),!0}catch{return!1}}),vf=U({budget:q(Bo),price:q(Bo),payment:q(X(_e)),owner:q(j())}),kr=U({version:L(1),sender:q(j()),expiration:mf,gasConfig:vf,inputs:X(ut),transactions:X(go)});function bo(t){return re(t).replace("0x","")}var xt=class t{constructor(e){this.version=1,this.sender=e?.sender,this.expiration=e?.expiration,this.gasConfig=e?.gasConfig??{},this.inputs=e?.inputs??[],this.transactions=e?.transactions??[]}static fromKindBytes(e){let r=oe.TransactionKind.parse(e),n="ProgrammableTransaction"in r?r.ProgrammableTransaction:null;if(!n)throw new Error("Unable to deserialize from bytes.");let i=he({version:1,gasConfig:{},inputs:n.inputs.map((o,s)=>he({kind:"Input",value:o,index:s,type:de(o,Tt)?"pure":"object"},ut)),transactions:n.transactions},kr);return t.restore(i)}static fromBytes(e){let n=oe.TransactionData.parse(e)?.V1,i="ProgrammableTransaction"in n.kind?n?.kind?.ProgrammableTransaction:null;if(!n||!i)throw new Error("Unable to deserialize from bytes.");let o=he({version:1,sender:n.sender,expiration:n.expiration,gasConfig:n.gasData,inputs:i.inputs.map((s,a)=>he({kind:"Input",value:s,index:a,type:de(s,Tt)?"pure":"object"},ut)),transactions:i.transactions},kr);return t.restore(o)}static restore(e){qt(e,kr);let r=new t;return Object.assign(r,e),r}static getDigestFromBytes(e){let r=vo("TransactionData",e);return ke(r)}build({maxSizeBytes:e=1/0,overrides:r,onlyTransactionKind:n}={}){let i=this.inputs.map(f=>(qt(f.value,It),f.value)),o={ProgrammableTransaction:{inputs:i,transactions:this.transactions}};if(n)return oe.TransactionKind.serialize(o,{maxSize:e}).toBytes();let s=r?.expiration??this.expiration,a=r?.sender??this.sender,c={...this.gasConfig,...r?.gasConfig};if(!a)throw new Error("Missing transaction sender");if(!c.budget)throw new Error("Missing gas budget");if(!c.payment)throw new Error("Missing gas payment");if(!c.price)throw new Error("Missing gas price");let l={sender:bo(a),expiration:s||{None:!0},gasData:{payment:c.payment,owner:bo(this.gasConfig.owner??a),price:BigInt(c.price),budget:BigInt(c.budget)},kind:{ProgrammableTransaction:{inputs:i,transactions:this.transactions}}};return oe.TransactionData.serialize({V1:l},{maxSize:e}).toBytes()}getDigest(){let e=this.build({onlyTransactionKind:!1});return t.getDigestFromBytes(e)}snapshot(){return he(this,kr)}};var En=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Y=(t,e,r)=>(En(t,e,"read from private field"),r?r.call(t):e.get(t)),He=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Or=(t,e,r,n)=>(En(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),ue=(t,e,r)=>(En(t,e,"access private method"),r),J,Jt,jr,Yt,Rr,tt,lt,An,Eo,wn,Ao,Cn,wo,Dn,Co,Ur,Bn,Bf={maxPureArgumentSize:16*1024,maxTxGas:5e10,maxGasObjects:256,maxTxSizeBytes:128*1024};function bf(t){let e={kind:"Result",index:t},r=[],n=i=>r[i]??(r[i]={kind:"NestedResult",index:t,resultIndex:i});return new Proxy(e,{set(){throw new Error("The transaction result is a proxy, and does not support setting properties directly")},get(i,o){if(o in i)return Reflect.get(i,o);if(o===Symbol.iterator)return function*(){let a=0;for(;;)yield n(a),a++};if(typeof o=="symbol")return;let s=parseInt(o,10);if(!(Number.isNaN(s)||s<0))return n(s)}})}function Ef(t){let e=_t(t);return e?e.Struct.address==="0x2"&&e.Struct.module==="transfer"&&e.Struct.name==="Receiving":!1}function Zt(t){if(!t.client)throw new Error("No provider passed to Transaction#build, but transaction data was not sufficient to build offline.");return t.client}var Af=Symbol.for("@mysten/transaction"),vn={maxTxGas:"max_tx_gas",maxGasObjects:"max_gas_payment_objects",maxTxSizeBytes:"max_tx_size_bytes",maxPureArgumentSize:"max_pure_argument_size"},wf=1000n,Cf=50,Df=(t,e)=>Array.from({length:Math.ceil(t.length/e)},(r,n)=>t.slice(n*e,n*e+e));var bn=class{constructor(t){He(this,Jt),He(this,Yt),He(this,tt),He(this,An),He(this,wn),He(this,Cn),He(this,Dn),He(this,Ur),He(this,J,void 0),Or(this,J,new xt(t?t.blockData:void 0))}static fromKind(t){let e=new bn;return Or(e,J,xt.fromKindBytes(typeof t=="string"?we(t):t)),e}static from(t){let e=new bn;return typeof t!="string"||!t.startsWith("{")?Or(e,J,xt.fromBytes(typeof t=="string"?we(t):t)):Or(e,J,xt.restore(JSON.parse(t))),e}setSender(t){Y(this,J).sender=t}setSenderIfNotSet(t){Y(this,J).sender||(Y(this,J).sender=t)}setExpiration(t){Y(this,J).expiration=t}setGasPrice(t){Y(this,J).gasConfig.price=String(t)}setGasBudget(t){Y(this,J).gasConfig.budget=String(t)}setGasOwner(t){Y(this,J).gasConfig.owner=t}setGasPayment(t){Y(this,J).gasConfig.payment=t.map(e=>rn(e,_e))}get blockData(){return Y(this,J).snapshot()}get[Af](){return!0}get pure(){return Object.defineProperty(this,"pure",{enumerable:!1,value:mo((t,e)=>Bt(t)?ue(this,Jt,jr).call(this,"pure",{Pure:Array.from(t.toBytes())}):ue(this,Jt,jr).call(this,"pure",t instanceof Uint8Array?ye.Pure(t):e?ye.Pure(t,e):t))}),this.pure}get gas(){return{kind:"GasCoin"}}object(t){if(typeof t=="object"&&"kind"in t)return t;let e=mn(t);return Y(this,J).inputs.find(n=>n.type==="object"&&e===mn(n.value))??ue(this,Jt,jr).call(this,"object",typeof t=="string"?re(t):t)}objectRef(...t){return this.object(ye.ObjectRef(...t))}receivingRef(...t){return this.object(ye.ReceivingRef(...t))}sharedObjectRef(...t){return this.object(ye.SharedObjectRef(...t))}add(t){let e=Y(this,J).transactions.push(t);return bf(e-1)}splitCoins(t,e){return this.add(et.SplitCoins(typeof t=="string"?this.object(t):t,e.map(r=>typeof r=="number"||typeof r=="bigint"||typeof r=="string"?this.pure.u64(r):ue(this,Yt,Rr).call(this,r))))}mergeCoins(t,e){return this.add(et.MergeCoins(typeof t=="string"?this.object(t):t,e.map(r=>typeof r=="string"?this.object(r):r)))}publish({modules:t,dependencies:e}){return this.add(et.Publish({modules:t,dependencies:e}))}upgrade({modules:t,dependencies:e,packageId:r,ticket:n}){return this.add(et.Upgrade({modules:t,dependencies:e,packageId:r,ticket:typeof n=="string"?this.object(n):n}))}moveCall({arguments:t,typeArguments:e,target:r}){return this.add(et.MoveCall({arguments:t?.map(n=>ue(this,Yt,Rr).call(this,n)),typeArguments:e,target:r}))}transferObjects(t,e){return this.add(et.TransferObjects(t.map(r=>typeof r=="string"?this.object(r):r),typeof e=="string"?this.pure.address(e):ue(this,Yt,Rr).call(this,e)))}makeMoveVec({type:t,objects:e}){return this.add(et.MakeMoveVec({type:t,objects:e.map(r=>typeof r=="string"?this.object(r):r)}))}serialize(){return JSON.stringify(Y(this,J).snapshot())}async sign(t){let{signer:e,...r}=t,n=await this.build(r);return e.signTransactionBlock(n)}async build(t={}){return await ue(this,Ur,Bn).call(this,t),Y(this,J).build({maxSizeBytes:ue(this,tt,lt).call(this,"maxTxSizeBytes",t),onlyTransactionKind:t.onlyTransactionKind})}async getDigest(t={}){return await ue(this,Ur,Bn).call(this,t),Y(this,J).getDigest()}},Qt=bn;J=new WeakMap;Jt=new WeakSet;jr=function(t,e){let r=Y(this,J).inputs.length,n=he({kind:"Input",value:typeof e=="bigint"?String(e):e,index:r,type:t},ut);return Y(this,J).inputs.push(n),n};Yt=new WeakSet;Rr=function(t){return Bt(t)?this.pure(t):t};tt=new WeakSet;lt=function(t,{protocolConfig:e,limits:r}){if(r&&typeof r[t]=="number")return r[t];if(!e)return Bf[t];let n=e?.attributes[vn[t]];if(!n)throw new Error(`Missing expected protocol config: "${vn[t]}"`);let i="u64"in n?n.u64:"u32"in n?n.u32:n.f64;if(!i)throw new Error(`Unexpected protocol config value found for: "${vn[t]}"`);return Number(i)};An=new WeakSet;Eo=function(t){let e=ue(this,tt,lt).call(this,"maxPureArgumentSize",t);Y(this,J).inputs.forEach((r,n)=>{if(de(r.value,Tt)&&r.value.Pure.length>e)throw new Error(`Input at index ${n} is too large, max pure input size is ${e} bytes, got ${r.value.Pure.length} bytes`)})};wn=new WeakSet;Ao=async function(t){if(Y(this,J).gasConfig.payment){let i=ue(this,tt,lt).call(this,"maxGasObjects",t);if(Y(this,J).gasConfig.payment.length>i)throw new Error(`Payment objects exceed maximum amount: ${i}`)}if(t.onlyTransactionKind||Y(this,J).gasConfig.payment)return;let e=Y(this,J).gasConfig.owner??Y(this,J).sender,n=(await Zt(t).getCoins({owner:e,coinType:hi})).data.filter(i=>!Y(this,J).inputs.find(s=>de(s.value,It)&&"Object"in s.value&&"ImmOrOwned"in s.value.Object?i.coinObjectId===s.value.Object.ImmOrOwned.objectId:!1)).slice(0,ue(this,tt,lt).call(this,"maxGasObjects",t)-1).map(i=>({objectId:i.coinObjectId,digest:i.digest,version:i.version}));if(!n.length)throw new Error("No valid gas coins found for the transaction.");this.setGasPayment(n)};Cn=new WeakSet;wo=async function(t){t.onlyTransactionKind||Y(this,J).gasConfig.price||this.setGasPrice(await Zt(t).getReferenceGasPrice())};Dn=new WeakSet;Co=async function(t){let{inputs:e,transactions:r}=Y(this,J),n=[],i=[];if(e.forEach(o=>{if(o.type==="object"&&typeof o.value=="string"){i.push({id:re(o.value),input:o});return}}),r.forEach(o=>{if(o.kind==="MoveCall"&&o.arguments.some(a=>a.kind==="Input"&&!de(e[a.index].value,It))&&n.push(o),o.kind==="SplitCoins"&&o.amounts.forEach(s=>{if(s.kind==="Input"){let a=e[s.index];typeof a.value!="object"&&(a.value=ye.Pure(oe.U64.serialize(a.value)))}}),o.kind==="TransferObjects"&&o.address.kind==="Input"){let s=e[o.address.index];typeof s.value!="object"&&(s.value=ye.Pure(oe.Address.serialize(s.value)))}}),n.length&&await Promise.all(n.map(async o=>{let[s,a,c]=o.target.split("::"),l=await Zt(t).getNormalizedMoveFunction({package:Ze(s),module:a,function:c}),u=l.parameters.length>0&&ao(l.parameters.at(-1))?l.parameters.slice(0,l.parameters.length-1):l.parameters;if(u.length!==o.arguments.length)throw new Error("Incorrect number of arguments.");u.forEach((x,d)=>{let p=o.arguments[d];if(p.kind!=="Input")return;let g=e[p.index];if(de(g.value,It))return;let m=g.value,h=Ir(x,m);if(h){g.value=ye.Pure(m,h);return}if(_t(x)!=null||typeof x=="object"&&"TypeParameter"in x){if(typeof m!="string")throw new Error(`Expect the argument to be an object id string, got ${JSON.stringify(m,null,2)}`);i.push({id:m,input:g,normalizedType:x});return}throw new Error(`Unknown call arg type ${JSON.stringify(x,null,2)} for value ${JSON.stringify(m,null,2)}`)})})),i.length){let o=[...new Set(i.map(({id:f})=>f))],s=Df(o,Cf),a=(await Promise.all(s.map(f=>Zt(t).multiGetObjects({ids:f,options:{showOwner:!0}})))).flat(),c=new Map(o.map((f,u)=>[f,a[u]])),l=Array.from(c).filter(([f,u])=>u.error).map(([f,u])=>f);if(l.length)throw new Error(`The following input objects are invalid: ${l.join(", ")}`);i.forEach(({id:f,input:u,normalizedType:x})=>{let d=c.get(f),p=d.data?.owner,g=p&&typeof p=="object"&&"Shared"in p?p.Shared.initial_shared_version:void 0;if(g){let m=x!=null&&Xt(x)==null&&_r(x)==null,h=co(u.value)||m||x!=null&&Xt(x)!=null;u.value=ye.SharedObjectRef({objectId:f,initialSharedVersion:g,mutable:h})}else x&&Ef(x)?u.value=ye.ReceivingRef(Dr(d)):u.value=ye.ObjectRef(Dr(d))})}};Ur=new WeakSet;Bn=async function(t){if(!t.onlyTransactionKind&&!Y(this,J).sender)throw new Error("Missing transaction sender");if(!t.protocolConfig&&!t.limits&&t.client&&(t.protocolConfig=await t.client.getProtocolConfig()),await Promise.all([ue(this,Cn,wo).call(this,t),ue(this,Dn,Co).call(this,t)]),!t.onlyTransactionKind&&(await ue(this,wn,Ao).call(this,t),!Y(this,J).gasConfig.budget)){let e=await Zt(t).dryRunTransactionBlock({transactionBlock:Y(this,J).build({maxSizeBytes:ue(this,tt,lt).call(this,"maxTxSizeBytes",t),overrides:{gasConfig:{budget:String(ue(this,tt,lt).call(this,"maxTxGas",t)),payment:[]}}})});if(e.effects.status.status!=="success")throw new Error(`Dry run failed, could not automatically determine a budget: ${e.effects.status.error}`,{cause:e});let r=wf*BigInt(this.blockData.gasConfig.price||1n),n=BigInt(e.effects.gasUsed.computationCost)+r,i=n+BigInt(e.effects.gasUsed.storageCost)-BigInt(e.effects.gasUsed.storageRebate);this.setGasBudget(i>n?i:n)}ue(this,An,Eo).call(this,t)};var Uf=sr(js(),1);var Ff="0x2::sui::SUI";function _f(t,e){return re(t)===re(e)}function Rs(t,e){return Et(t)===Et(e)}function Tf(t){return Et(t).startsWith("0x2::coin::Coin")}async function If(t,e,r){let n=!0,i,o=[];for(;n;){let s=await t.getCoins({owner:e,coinType:r,cursor:i});o.push(...s.data),n=s.hasNextPage,i=s.nextCursor}return o}async function Us(t,e,r){return Rs(e.coinType,Ff)?kf(e,r):Of(t,e,r)}function kf(t,e){let r=new Qt,[n]=r.splitCoins(r.gas,[r.pure(t.amount)]);return r.transferObjects([n],r.pure(t.recipient)),r.setSender(e),r}async function Of(t,e,r){let n=await If(t,r,e.coinType);if(n.length===0)throw new Error("No valid coin found to send");if(n.reduce((c,l)=>c+BigInt(l.balance),0n)<BigInt(e.amount))throw new Error("Not enough balance");let o=new Qt,s=o.object(n[0].coinObjectId);n.length>1&&o.mergeCoins(s,n.slice(1).map(c=>o.object(c.coinObjectId)));let[a]=o.splitCoins(s,[o.pure(e.amount)]);return o.transferObjects([a],o.pure(e.recipient)),o.setSender(r),o}async function Ps(t,e,r){await jf(t,e,r);let n=new Qt;return n.transferObjects([n.object(e.objectId)],n.pure(e.receiver)),n.setSender(r),n}async function jf(t,e,r){let n=await t.getObject({id:e.objectId,options:{showType:!0,showOwner:!0}});if(n.data===void 0)throw new Error("Object not found");if(!n.data?.type)throw new Error("Object type is null");if(!Rs(n.data.type,e.objectType))throw new Error("Object type not expected");if(Tf(n.data.type))throw new Error("Can not transfer coin object in Object Transfer transactions");let i=Rf(n);if(!_f(i,r))throw new Error("Object owner not match")}function Rf(t){let e=t.data?.owner;if(!e)throw new Error("Object Owner not found");if(typeof e!="object"||!("AddressOwner"in e))throw new Error("Invalid object owner");return e.AddressOwner}var Js=sr(Xs()),kt=class{constructor(e){this.data=e}get application(){return"msafe-core"}serialize(){return JSON.stringify((0,Js.default)(this.data))}};var b0=class t extends kt{constructor(r){super(r);this.data=r}txType;txSubType;async build(r){let{suiClient:n,account:i}=r;return Us(n,this.data,i.address)}static fromData(r){return new t(r)}};var E0=class t extends kt{constructor(r){super(r);this.data=r}txType;txSubType;async build(r){let{suiClient:n,account:i}=r;return Ps(n,this.data,i.address)}static fromData(r){return new t(r)}};var A0=class{application;constructor(){this.application="msafe-core"}deserialize(){throw new Error("MSafe core transaction intention should be build from API")}async build(e){let{suiClient:r,account:n}=e,i;switch(e.txSubType){case"coin-transfer":i=b0.fromData(e.intentionData);break;case"object-transfer":i=E0.fromData(e.intentionData);break;default:throw new Error("not implemented")}return i.build({suiClient:r,account:n})}};var w0=class{apps;constructor(e){this.apps=new Map(e.map(r=>[r.application,r]))}getAppHelper(e){let r=this.apps.get(e);if(!r)throw new Error(`${e} not registered`);return r}deserialize(e,r){return this.getAppHelper(e).deserialize(r)}build(e,r){return this.getAppHelper(e).build(r)}};var Gf=new w0([new A0]);return ya(Xf);})();
6
6
  /*! Bundled license information:
7
7
 
8
8
  ieee754/index.js: