@msafe/sui-app-store 0.0.3 → 0.0.4

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 $s=Object.create;var tt=Object.defineProperty;var Hs=Object.getOwnPropertyDescriptor;var Ls=Object.getOwnPropertyNames;var Ws=Object.getPrototypeOf,qs=Object.prototype.hasOwnProperty;var Un=(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),Ks=(t,e)=>{for(var r in e)tt(t,r,{get:e[r],enumerable:!0})},Pn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ls(e))!qs.call(t,i)&&i!==r&&tt(t,i,{get:()=>e[i],enumerable:!(n=Hs(e,i))||n.enumerable});return t};var mr=(t,e,r)=>(r=t!=null?$s(Ws(t)):{},Pn(e||!t||!t.__esModule?tt(r,"default",{value:t,enumerable:!0}):r,t)),Vs=t=>Pn(tt({},"__esModule",{value:!0}),t);var Mn=H((af,zn)=>{"use strict";function Gs(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 a=t.length,s=t.charAt(0),c=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);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%a>>>0,m=m/a>>>0;if(m!==0)throw new Error("Non-zero carry");g=E,v++}for(var k=y-g;k!==y&&B[k]===0;)k++;for(var S=s.repeat(p);k<y;++k)S+=t.charAt(B[k]);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]===s;)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+=a*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 k=new Uint8Array(g+(h-b)),S=g;b!==h;)k[S++]=y[b++];return k}function x(d){var p=u(d);if(p)return p;throw new Error("Non-base"+a+" character")}return{encode:f,decodeUnsafe:u,decode:x}}zn.exports=Gs});var $n=H((cf,Nn)=>{var Xs=Mn(),Js="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Nn.exports=Xs(Js)});var ui=H(gt=>{"use strict";gt.byteLength=Pa;gt.toByteArray=Ma;gt.fromByteArray=Ha;var Me=[],_e=[],Ua=typeof Uint8Array<"u"?Uint8Array:Array,Jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(a0=0,ci=Jr.length;a0<ci;++a0)Me[a0]=Jr[a0],_e[Jr.charCodeAt(a0)]=a0;var a0,ci;_e["-".charCodeAt(0)]=62;_e["_".charCodeAt(0)]=63;function fi(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 Pa(t){var e=fi(t),r=e[0],n=e[1];return(r+n)*3/4-n}function za(t,e,r){return(e+r)*3/4-r}function Ma(t){var e,r=fi(t),n=r[0],i=r[1],o=new Ua(za(t,n,i)),a=0,s=i>0?n-4:n,c;for(c=0;c<s;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[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=_e[t.charCodeAt(c)]<<2|_e[t.charCodeAt(c+1)]>>4,o[a++]=e&255),i===1&&(e=_e[t.charCodeAt(c)]<<10|_e[t.charCodeAt(c+1)]<<4|_e[t.charCodeAt(c+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function Na(t){return Me[t>>18&63]+Me[t>>12&63]+Me[t>>6&63]+Me[t&63]}function $a(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(Na(n));return i.join("")}function Ha(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push($a(t,a,a+o>s?s:a+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 xi=H(Yr=>{Yr.read=function(t,e,r,n,i){var o,a,s=i*8-n-1,c=(1<<s)-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+=s;f>0;o=o*256+t[e+u],u+=x,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=a*256+t[e+u],u+=x,f-=8);if(o===0)o=1-l;else{if(o===c)return a?NaN:(d?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-l}return(d?-1:1)*a*Math.pow(2,o-n)};Yr.write=function(t,e,r,n,i,o){var a,s,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?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+u>=1?e+=x/c:e+=x*Math.pow(2,1-u),e*c>=2&&(a++,c/=2),a+u>=f?(s=0,a=f):a+u>=1?(s=(e*c-1)*Math.pow(2,i),a=a+u):(s=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=s&255,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[r+d]=a&255,d+=p,a/=256,l-=8);t[r+d-p]|=g*128}});var Si=H(F0=>{"use strict";var Zr=ui(),A0=xi(),li=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;F0.Buffer=w;F0.SlowBuffer=Ga;F0.INSPECT_MAX_BYTES=50;var vt=2147483647;F0.kMaxLength=vt;w.TYPED_ARRAY_SUPPORT=La();!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 La(){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>vt)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 rn(t)}return yi(t,e,r)}w.poolSize=8192;function yi(t,e,r){if(typeof t=="string")return qa(t,e);if(ArrayBuffer.isView(t))return Ka(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 en(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=Va(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 yi(t,e,r)};Object.setPrototypeOf(w.prototype,Uint8Array.prototype);Object.setPrototypeOf(w,Uint8Array);function gi(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 Wa(t,e,r){return gi(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 Wa(t,e,r)};function rn(t){return gi(t),He(t<0?0:nn(t)|0)}w.allocUnsafe=function(t){return rn(t)};w.allocUnsafeSlow=function(t){return rn(t)};function qa(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!w.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=vi(t,e)|0,n=He(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}function Qr(t){let e=t.length<0?0:nn(t.length)|0,r=He(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function Ka(t){if(Ne(t,Uint8Array)){let e=new Uint8Array(t);return en(e.buffer,e.byteOffset,e.byteLength)}return Qr(t)}function en(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 Va(t){if(w.isBuffer(t)){let e=nn(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"||sn(t.length)?He(0):Qr(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Qr(t.data)}function nn(t){if(t>=vt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+vt.toString(16)+" bytes");return t|0}function Ga(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,a=Math.min(n,i);o<a;++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 a=e[n];if(Ne(a,Uint8Array))o+a.length>i.length?(w.isBuffer(a)||(a=w.from(a)),a.copy(i,o)):Uint8Array.prototype.set.call(i,a,o);else if(w.isBuffer(a))a.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return i};function vi(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 tn(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Di(t).length;default:if(i)return n?-1:tn(t).length;e=(""+e).toLowerCase(),i=!0}}w.byteLength=vi;function Xa(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 oc(this,e,r);case"utf8":case"utf-8":return Bi(this,e,r);case"ascii":return nc(this,e,r);case"latin1":case"binary":return ic(this,e,r);case"base64":return tc(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sc(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}w.prototype._isBuffer=!0;function c0(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)c0(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)c0(this,r,r+3),c0(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)c0(this,r,r+7),c0(this,r+1,r+6),c0(this,r+2,r+5),c0(this,r+3,r+4);return this};w.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Bi(this,0,e):Xa.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=F0.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};li&&(w.prototype[li]=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 a=o-i,s=n-r,c=Math.min(a,s),l=this.slice(i,o),f=e.slice(r,n);for(let u=0;u<c;++u)if(l[u]!==f[u]){a=l[u],s=f[u];break}return a<s?-1:s<a?1:0};function mi(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,sn(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:di(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):di(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function di(t,e,r,n,i){let o=1,a=t.length,s=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,a/=2,s/=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<a;l++)if(c(t,l)===c(e,f===-1?0:l-f)){if(f===-1&&(f=l),l-f+1===s)return f*o}else f!==-1&&(l-=l-f),f=-1}else for(r+s>a&&(r=a-s),l=r;l>=0;l--){let f=!0;for(let u=0;u<s;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 mi(this,e,r,n,!0)};w.prototype.lastIndexOf=function(e,r,n){return mi(this,e,r,n,!1)};function Ja(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 a;for(a=0;a<n;++a){let s=parseInt(e.substr(a*2,2),16);if(sn(s))return a;t[r+a]=s}return a}function Ya(t,e,r,n){return mt(tn(e,t.length-r),t,r,n)}function Za(t,e,r,n){return mt(uc(e),t,r,n)}function Qa(t,e,r,n){return mt(Di(e),t,r,n)}function ec(t,e,r,n){return mt(xc(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 a=!1;for(;;)switch(i){case"hex":return Ja(this,e,r,n);case"utf8":case"utf-8":return Ya(this,e,r,n);case"ascii":case"latin1":case"binary":return Za(this,e,r,n);case"base64":return Qa(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ec(this,e,r,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}};w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function tc(t,e,r){return e===0&&r===t.length?Zr.fromByteArray(t):Zr.fromByteArray(t.slice(e,r))}function Bi(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){let c,l,f,u;switch(s){case 1:o<128&&(a=o);break;case 2:c=t[i+1],(c&192)===128&&(u=(o&31)<<6|c&63,u>127&&(a=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)&&(a=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&&(a=u))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),i+=s}return rc(n)}var hi=4096;function rc(t){let e=t.length;if(e<=hi)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=hi));return r}function nc(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 ic(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 oc(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+=lc[t[o]];return i}function sc(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,a=0;for(;++a<r&&(o*=256);)i+=this[e+a]*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=e0(function(e){e=e>>>0,C0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&K0(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=e0(function(e){e=e>>>0,C0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&K0(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,a=0;for(;++a<r&&(o*=256);)i+=this[e+a]*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,a=this[e+--i];for(;i>0&&(o*=256);)a+=this[e+--i]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*r)),a};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=e0(function(e){e=e>>>0,C0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&K0(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=e0(function(e){e=e>>>0,C0(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&K0(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),A0.read(this,e,!0,23,4)};w.prototype.readFloatBE=function(e,r){return e=e>>>0,r||fe(e,4,this.length),A0.read(this,e,!1,23,4)};w.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||fe(e,8,this.length),A0.read(this,e,!0,52,8)};w.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||fe(e,8,this.length),A0.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 s=Math.pow(2,8*n)-1;me(this,e,r,n,s,0)}let o=1,a=0;for(this[r]=e&255;++a<n&&(o*=256);)this[r+a]=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 s=Math.pow(2,8*n)-1;me(this,e,r,n,s,0)}let o=n-1,a=1;for(this[r+o]=e&255;--o>=0&&(a*=256);)this[r+o]=e/a&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 Ei(t,e,r,n,i){Fi(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 a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,a=a>>8,t[r++]=a,r}function bi(t,e,r,n,i){Fi(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 a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a=a>>8,t[r+2]=a,a=a>>8,t[r+1]=a,a=a>>8,t[r]=a,r+8}w.prototype.writeBigUInt64LE=e0(function(e,r=0){return Ei(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});w.prototype.writeBigUInt64BE=e0(function(e,r=0){return bi(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,a=1,s=0;for(this[r]=e&255;++o<n&&(a*=256);)e<0&&s===0&&this[r+o-1]!==0&&(s=1),this[r+o]=(e/a>>0)-s&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,a=1,s=0;for(this[r+o]=e&255;--o>=0&&(a*=256);)e<0&&s===0&&this[r+o+1]!==0&&(s=1),this[r+o]=(e/a>>0)-s&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=e0(function(e,r=0){return Ei(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});w.prototype.writeBigInt64BE=e0(function(e,r=0){return bi(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wi(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 Ai(t,e,r,n,i){return e=+e,r=r>>>0,i||wi(t,e,r,4,34028234663852886e22,-34028234663852886e22),A0.write(t,e,r,n,23,4),r+4}w.prototype.writeFloatLE=function(e,r,n){return Ai(this,e,r,!0,n)};w.prototype.writeFloatBE=function(e,r,n){return Ai(this,e,r,!1,n)};function Ci(t,e,r,n,i){return e=+e,r=r>>>0,i||wi(t,e,r,8,17976931348623157e292,-17976931348623157e292),A0.write(t,e,r,n,52,8),r+8}w.prototype.writeDoubleLE=function(e,r,n){return Ci(this,e,r,!0,n)};w.prototype.writeDoubleBE=function(e,r,n){return Ci(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 a=e.charCodeAt(0);(i==="utf8"&&a<128||i==="latin1")&&(e=a)}}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 a=w.isBuffer(e)?e:w.from(e,i),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-r;++o)this[o+r]=a[o%s]}return this};var w0={};function on(t,e,r){w0[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}`}}}on("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);on("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);on("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=pi(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=pi(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function pi(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 ac(t,e,r){C0(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&K0(e,t.length-(r+1))}function Fi(t,e,r,n,i,o){if(t>r||t<e){let a=typeof e=="bigint"?"n":"",s;throw o>3?e===0||e===BigInt(0)?s=`>= 0${a} and < 2${a} ** ${(o+1)*8}${a}`:s=`>= -(2${a} ** ${(o+1)*8-1}${a}) and < 2 ** ${(o+1)*8-1}${a}`:s=`>= ${e}${a} and <= ${r}${a}`,new w0.ERR_OUT_OF_RANGE("value",s,t)}ac(n,i,o)}function C0(t,e){if(typeof t!="number")throw new w0.ERR_INVALID_ARG_TYPE(e,"number",t)}function K0(t,e,r){throw Math.floor(t)!==t?(C0(t,r),new w0.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new w0.ERR_BUFFER_OUT_OF_BOUNDS:new w0.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var cc=/[^+/0-9A-Za-z-_]/g;function fc(t){if(t=t.split("=")[0],t=t.trim().replace(cc,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function tn(t,e){e=e||1/0;let r,n=t.length,i=null,o=[];for(let a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}else if(a+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 uc(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function xc(t,e){let r,n,i,o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function Di(t){return Zr.toByteArray(fc(t))}function mt(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 sn(t){return t!==t}var lc=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 e0(t){return typeof BigInt>"u"?dc:t}function dc(){throw new Error("BigInt not supported")}});var mo=H(()=>{});var V=H((It,Bo)=>{(function(t,e){typeof It=="object"?Bo.exports=It=e():typeof define=="function"&&define.amd?define([],e):t.CryptoJS=e()})(It,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 Un=="function")try{n=mo()}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}}(),a={},s=a.lib={},c=s.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=s.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 k=B[b>>>2]>>>24-b%4*8&255;y[m+b>>>2]|=k<<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=a.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=s.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,k=b*4,S=E/k;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=s.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=a.algo={};return a}(Math);return t})});var Y0=H((Ot,Eo)=>{(function(t,e){typeof Ot=="object"?Eo.exports=Ot=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Ot,function(t){return function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={},s=a.Word=i.extend({init:function(l,f){this.high=l,this.low=f}}),c=a.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 wo=H((jt,bo)=>{(function(t,e){typeof jt=="object"?bo.exports=jt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(jt,function(t){return function(){if(typeof ArrayBuffer=="function"){var e=t,r=e.lib,n=r.WordArray,i=n.init,o=n.init=function(a){if(a instanceof ArrayBuffer&&(a=new Uint8Array(a)),(a instanceof Int8Array||typeof Uint8ClampedArray<"u"&&a instanceof Uint8ClampedArray||a instanceof Int16Array||a instanceof Uint16Array||a instanceof Int32Array||a instanceof Uint32Array||a instanceof Float32Array||a instanceof Float64Array)&&(a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength)),a instanceof Uint8Array){for(var s=a.byteLength,c=[],l=0;l<s;l++)c[l>>>2]|=a[l]<<24-l%4*8;i.call(this,c,s)}else i.apply(this,arguments)};o.prototype=n}}(),t.lib.WordArray})});var Co=H((Rt,Ao)=>{(function(t,e){typeof Rt=="object"?Ao.exports=Rt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Rt,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Utf16=i.Utf16BE={stringify:function(s){for(var c=s.words,l=s.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(s){for(var c=s.length,l=[],f=0;f<c;f++)l[f>>>1]|=s.charCodeAt(f)<<16-f%2*16;return n.create(l,c*2)}};i.Utf16LE={stringify:function(s){for(var c=s.words,l=s.sigBytes,f=[],u=0;u<l;u+=2){var x=a(c[u>>>2]>>>16-u%4*8&65535);f.push(String.fromCharCode(x))}return f.join("")},parse:function(s){for(var c=s.length,l=[],f=0;f<c;f++)l[f>>>1]|=a(s.charCodeAt(f)<<16-f%2*16);return n.create(l,c*2)}};function a(s){return s<<8&4278255360|s>>>8&16711935}}(),t.enc.Utf16})});var n0=H((Ut,Fo)=>{(function(t,e){typeof Ut=="object"?Fo.exports=Ut=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Ut,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,o=i.Base64={stringify:function(s){var c=s.words,l=s.sigBytes,f=this._map;s.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(s){var c=s.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=s.indexOf(x);d!==-1&&(c=d)}return a(s,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(s,c,l){for(var f=[],u=0,x=0;x<c;x++)if(x%4){var d=l[s.charCodeAt(x-1)]<<x%4*2,p=l[s.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 So=H((Pt,Do)=>{(function(t,e){typeof Pt=="object"?Do.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.Base64url={stringify:function(s,c){c===void 0&&(c=!0);var l=s.words,f=s.sigBytes,u=c?this._safe_map:this._map;s.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(s,c){c===void 0&&(c=!0);var l=s.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=s.indexOf(d);p!==-1&&(l=p)}return a(s,l,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(s,c,l){for(var f=[],u=0,x=0;x<c;x++)if(x%4){var d=l[s.charCodeAt(x-1)]<<x%4*2,p=l[s.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 i0=H((zt,_o)=>{(function(t,e){typeof zt=="object"?_o.exports=zt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(zt,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];(function(){for(var d=0;d<64;d++)s[d]=e.abs(e.sin(d+1))*4294967296|0})();var c=a.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],k=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],I=y[2],D=y[3];F=l(F,_,I,D,B,7,s[0]),D=l(D,F,_,I,m,12,s[1]),I=l(I,D,F,_,E,17,s[2]),_=l(_,I,D,F,b,22,s[3]),F=l(F,_,I,D,k,7,s[4]),D=l(D,F,_,I,S,12,s[5]),I=l(I,D,F,_,R,17,s[6]),_=l(_,I,D,F,M,22,s[7]),F=l(F,_,I,D,A,7,s[8]),D=l(D,F,_,I,O,12,s[9]),I=l(I,D,F,_,z,17,s[10]),_=l(_,I,D,F,T,22,s[11]),F=l(F,_,I,D,$,7,s[12]),D=l(D,F,_,I,N,12,s[13]),I=l(I,D,F,_,W,17,s[14]),_=l(_,I,D,F,G,22,s[15]),F=f(F,_,I,D,m,5,s[16]),D=f(D,F,_,I,R,9,s[17]),I=f(I,D,F,_,T,14,s[18]),_=f(_,I,D,F,B,20,s[19]),F=f(F,_,I,D,S,5,s[20]),D=f(D,F,_,I,z,9,s[21]),I=f(I,D,F,_,G,14,s[22]),_=f(_,I,D,F,k,20,s[23]),F=f(F,_,I,D,O,5,s[24]),D=f(D,F,_,I,W,9,s[25]),I=f(I,D,F,_,b,14,s[26]),_=f(_,I,D,F,A,20,s[27]),F=f(F,_,I,D,N,5,s[28]),D=f(D,F,_,I,E,9,s[29]),I=f(I,D,F,_,M,14,s[30]),_=f(_,I,D,F,$,20,s[31]),F=u(F,_,I,D,S,4,s[32]),D=u(D,F,_,I,A,11,s[33]),I=u(I,D,F,_,T,16,s[34]),_=u(_,I,D,F,W,23,s[35]),F=u(F,_,I,D,m,4,s[36]),D=u(D,F,_,I,k,11,s[37]),I=u(I,D,F,_,M,16,s[38]),_=u(_,I,D,F,z,23,s[39]),F=u(F,_,I,D,N,4,s[40]),D=u(D,F,_,I,B,11,s[41]),I=u(I,D,F,_,b,16,s[42]),_=u(_,I,D,F,R,23,s[43]),F=u(F,_,I,D,O,4,s[44]),D=u(D,F,_,I,$,11,s[45]),I=u(I,D,F,_,G,16,s[46]),_=u(_,I,D,F,E,23,s[47]),F=x(F,_,I,D,B,6,s[48]),D=x(D,F,_,I,M,10,s[49]),I=x(I,D,F,_,W,15,s[50]),_=x(_,I,D,F,S,21,s[51]),F=x(F,_,I,D,$,6,s[52]),D=x(D,F,_,I,b,10,s[53]),I=x(I,D,F,_,z,15,s[54]),_=x(_,I,D,F,m,21,s[55]),F=x(F,_,I,D,A,6,s[56]),D=x(D,F,_,I,G,10,s[57]),I=x(I,D,F,_,R,15,s[58]),_=x(_,I,D,F,N,21,s[59]),F=x(F,_,I,D,k,6,s[60]),D=x(D,F,_,I,T,10,s[61]),I=x(I,D,F,_,E,15,s[62]),_=x(_,I,D,F,O,21,s[63]),y[0]=y[0]+F|0,y[1]=y[1]+_|0,y[2]=y[2]+I|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((Mt,To)=>{(function(t,e){typeof Mt=="object"?To.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=r.Hasher,o=e.algo,a=[],s=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)a[v]=c[l+v]|0;else{var h=a[v-3]^a[v-8]^a[v-14]^a[v-16];a[v]=h<<1|h>>>31}var y=(u<<5|u>>>27)+g+a[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(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1})});var $t=H((Nt,ko)=>{(function(t,e){typeof Nt=="object"?ko.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,a=r.algo,s=[],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&&(s[p]=x(e.pow(d,1/2))),c[p]=x(e.pow(d,1/3)),p++),d++})();var l=[],f=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.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 k=l[b-15],S=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>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 Oo=H((Ht,Io)=>{(function(t,e,r){typeof Ht=="object"?Io.exports=Ht=e(V(),$t()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(t.CryptoJS)})(Ht,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=o._doFinalize.call(this);return s.sigBytes-=4,s}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224})});var En=H((Lt,jo)=>{(function(t,e,r){typeof Lt=="object"?jo.exports=Lt=e(V(),Y0()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(Lt,function(t){return function(){var e=t,r=e.lib,n=r.Hasher,i=e.x64,o=i.Word,a=i.WordArray,s=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=s.SHA512=n.extend({_doReset:function(){this._hash=new a.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],k=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,I=b.high,D=b.low,ne=k,ee=S,ge=R,K=M,T0=A,l0=O,gr=z,k0=T,Ie=$,Be=N,Z0=W,I0=G,Q0=F,O0=_,vr=I,j0=D,Oe=0;Oe<80;Oe++){var Ae,Ke,et=f[Oe];if(Oe<16)Ke=et.high=x[d+Oe*2]|0,Ae=et.low=x[d+Oe*2+1]|0;else{var An=f[Oe-15],d0=An.high,R0=An.low,Ss=(d0>>>1|R0<<31)^(d0>>>8|R0<<24)^d0>>>7,Cn=(R0>>>1|d0<<31)^(R0>>>8|d0<<24)^(R0>>>7|d0<<25),Fn=f[Oe-2],h0=Fn.high,U0=Fn.low,_s=(h0>>>19|U0<<13)^(h0<<3|U0>>>29)^h0>>>6,Dn=(U0>>>19|h0<<13)^(U0<<3|h0>>>29)^(U0>>>6|h0<<26),Sn=f[Oe-7],Ts=Sn.high,ks=Sn.low,_n=f[Oe-16],Is=_n.high,Tn=_n.low;Ae=Cn+ks,Ke=Ss+Ts+(Ae>>>0<Cn>>>0?1:0),Ae=Ae+Dn,Ke=Ke+_s+(Ae>>>0<Dn>>>0?1:0),Ae=Ae+Tn,Ke=Ke+Is+(Ae>>>0<Tn>>>0?1:0),et.high=Ke,et.low=Ae}var Os=Ie&Z0^~Ie&Q0,kn=Be&I0^~Be&O0,js=ne&ge^ne&T0^ge&T0,Rs=ee&K^ee&l0^K&l0,Us=(ne>>>28|ee<<4)^(ne<<30|ee>>>2)^(ne<<25|ee>>>7),In=(ee>>>28|ne<<4)^(ee<<30|ne>>>2)^(ee<<25|ne>>>7),Ps=(Ie>>>14|Be<<18)^(Ie>>>18|Be<<14)^(Ie<<23|Be>>>9),zs=(Be>>>14|Ie<<18)^(Be>>>18|Ie<<14)^(Be<<23|Ie>>>9),On=l[Oe],Ms=On.high,jn=On.low,Ee=j0+zs,Ve=vr+Ps+(Ee>>>0<j0>>>0?1:0),Ee=Ee+kn,Ve=Ve+Os+(Ee>>>0<kn>>>0?1:0),Ee=Ee+jn,Ve=Ve+Ms+(Ee>>>0<jn>>>0?1:0),Ee=Ee+Ae,Ve=Ve+Ke+(Ee>>>0<Ae>>>0?1:0),Rn=In+Rs,Ns=Us+js+(Rn>>>0<In>>>0?1:0);vr=Q0,j0=O0,Q0=Z0,O0=I0,Z0=Ie,I0=Be,Be=k0+Ee|0,Ie=gr+Ve+(Be>>>0<k0>>>0?1:0)|0,gr=T0,k0=l0,T0=ge,l0=K,ge=ne,K=ee,ee=Ee+Rn|0,ne=Ve+Ns+(ee>>>0<Ee>>>0?1:0)|0}S=g.low=S+ee,g.high=k+ne+(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+l0,h.high=A+T0+(O>>>0<l0>>>0?1:0),T=y.low=T+k0,y.high=z+gr+(T>>>0<k0>>>0?1:0),N=B.low=N+Be,B.high=$+Ie+(N>>>0<Be>>>0?1:0),G=m.low=G+I0,m.high=W+Z0+(G>>>0<I0>>>0?1:0),_=E.low=_+O0,E.high=F+Q0+(_>>>0<O0>>>0?1:0),D=b.low=D+j0,b.high=I+vr+(D>>>0<j0>>>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 Uo=H((Wt,Ro)=>{(function(t,e,r){typeof Wt=="object"?Ro.exports=Wt=e(V(),Y0(),En()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(t.CryptoJS)})(Wt,function(t){return function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.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=a._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384})});var zo=H((qt,Po)=>{(function(t,e,r){typeof qt=="object"?Po.exports=qt=e(V(),Y0()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(qt,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64,s=a.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,k=0;k<7;k++){if(B&1){var S=(1<<k)-1;S<32?b^=1<<S:E^=1<<S-32}B&128?B=B<<1^113:B<<=1}u[m]=s.create(E,b)}})();var x=[];(function(){for(var p=0;p<25;p++)x[p]=s.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 s.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 k=0;k<5;k++){for(var S=0,R=0,M=0;M<5;M++){var E=v[k+5*M];S^=E.high,R^=E.low}var A=x[k];A.high=S,A.low=R}for(var k=0;k<5;k++)for(var O=x[(k+4)%5],z=x[(k+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[k+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 I=x[0],D=v[0];I.high=D.high,I.low=D.low;for(var k=0;k<5;k++)for(var M=0;M<5;M++){var N=k+5*M,E=v[N],ne=x[N],ee=x[(k+1)%5+5*M],ge=x[(k+2)%5+5*M];E.high=ne.high^~ee.high&ge.high,E.low=ne.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=[],k=0;k<E;k++){var S=B[k],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 No=H((Kt,Mo)=>{(function(t,e){typeof Kt=="object"?Mo.exports=Kt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Kt,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=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=a.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 k=E+b,S=m[k];m[k]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var R=this._hash.words,M=u.words,A=x.words,O=s.words,z=c.words,T=l.words,$=f.words,N,W,G,F,_,I,D,ne,ee,ge;I=N=R[0],D=W=R[1],ne=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=I+m[E+z[b]]|0,b<16?K+=y(D,ne,ee)+A[0]:b<32?K+=h(D,ne,ee)+A[1]:b<48?K+=v(D,ne,ee)+A[2]:b<64?K+=g(D,ne,ee)+A[3]:K+=p(D,ne,ee)+A[4],K=K|0,K=B(K,$[b]),K=K+ge|0,I=ge,ge=ee,ee=B(ne,10),ne=D,D=K;K=R[1]+G+ee|0,R[1]=R[2]+F+ge|0,R[2]=R[3]+_+I|0,R[3]=R[4]+N+D|0,R[4]=R[0]+W+ne|0,R[0]=K},_doFinalize:function(){var m=this._data,E=m.words,b=this._nDataBytes*8,k=m.sigBytes*8;E[k>>>5]|=128<<24-k%32,E[(k+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 Gt=H((Vt,$o)=>{(function(t,e){typeof Vt=="object"?$o.exports=Vt=e(V()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Vt,function(t){(function(){var e=t,r=e.lib,n=r.Base,i=e.enc,o=i.Utf8,a=e.algo,s=a.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 Lo=H((Xt,Ho)=>{(function(t,e,r){typeof Xt=="object"?Ho.exports=Xt=e(V(),$t(),Gt()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(t.CryptoJS)})(Xt,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:a,iterations:25e4}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var u=this.cfg,x=s.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,k=1;k<y;k++){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((Jt,Wo)=>{(function(t,e,r){typeof Jt=="object"?Wo.exports=Jt=e(V(),Bn(),Gt()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(t.CryptoJS)})(Jt,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:a,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 s.create(f).compute(c,l)}}(),t.EvpKDF})});var ae=H((Yt,qo)=>{(function(t,e,r){typeof Yt=="object"?qo.exports=Yt=e(V(),qe()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(t.CryptoJS)})(Yt,function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc,c=s.Utf8,l=s.Base64,f=r.algo,u=f.EvpKDF,x=n.Cipher=a.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(){a.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:k}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})}},k=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=k.extend({cfg:k.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=k.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=k.decrypt.call(this,A,O,$.key,T);return N}})}()})});var Vo=H((Zt,Ko)=>{(function(t,e,r){typeof Zt=="object"?Ko.exports=Zt=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Zt,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,a=o.blockSize;r.call(this,n,i,a,o),this._prevBlock=n.slice(i,i+a)}}),e.Decryptor=e.extend({processBlock:function(n,i){var o=this._cipher,a=o.blockSize,s=n.slice(i,i+a);r.call(this,n,i,a,o),this._prevBlock=s}});function r(n,i,o,a){var s,c=this._iv;c?(s=c.slice(0),this._iv=void 0):s=this._prevBlock,a.encryptBlock(s,0);for(var l=0;l<o;l++)n[i+l]^=s[l]}return e}(),t.mode.CFB})});var Xo=H((Qt,Go)=>{(function(t,e,r){typeof Qt=="object"?Go.exports=Qt=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Qt,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,a=o.blockSize,s=this._iv,c=this._counter;s&&(c=this._counter=s.slice(0),this._iv=void 0);var l=c.slice(0);o.encryptBlock(l,0),c[a-1]=c[a-1]+1|0;for(var f=0;f<a;f++)n[i+f]^=l[f]}});return e.Decryptor=r,e}(),t.mode.CTR})});var Yo=H((er,Jo)=>{(function(t,e,r){typeof er=="object"?Jo.exports=er=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(er,function(t){return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(o){if((o>>24&255)===255){var a=o>>16&255,s=o>>8&255,c=o&255;a===255?(a=0,s===255?(s=0,c===255?c=0:++c):++s):++a,o=0,o+=a<<16,o+=s<<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,a){var s=this._cipher,c=s.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);s.encryptBlock(u,0);for(var x=0;x<c;x++)o[a+x]^=u[x]}});return e.Decryptor=i,e}(),t.mode.CTRGladman})});var Qo=H((tr,Zo)=>{(function(t,e,r){typeof tr=="object"?Zo.exports=tr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(tr,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,a=o.blockSize,s=this._iv,c=this._keystream;s&&(c=this._keystream=s.slice(0),this._iv=void 0),o.encryptBlock(c,0);for(var l=0;l<a;l++)n[i+l]^=c[l]}});return e.Decryptor=r,e}(),t.mode.OFB})});var ts=H((rr,es)=>{(function(t,e,r){typeof rr=="object"?es.exports=rr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(rr,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 ns=H((nr,rs)=>{(function(t,e,r){typeof nr=="object"?rs.exports=nr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(nr,function(t){return t.pad.AnsiX923={pad:function(e,r){var n=e.sigBytes,i=r*4,o=i-n%i,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Ansix923})});var os=H((ir,is)=>{(function(t,e,r){typeof ir=="object"?is.exports=ir=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(ir,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 as=H((or,ss)=>{(function(t,e,r){typeof or=="object"?ss.exports=or=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(or,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 fs=H((sr,cs)=>{(function(t,e,r){typeof sr=="object"?cs.exports=sr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(sr,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 xs=H((ar,us)=>{(function(t,e,r){typeof ar=="object"?us.exports=ar=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(ar,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})});var ds=H((cr,ls)=>{(function(t,e,r){typeof cr=="object"?ls.exports=cr=e(V(),ae()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(cr,function(t){return function(e){var r=t,n=r.lib,i=n.CipherParams,o=r.enc,a=o.Hex,s=r.format,c=s.Hex={stringify:function(l){return l.ciphertext.toString(a)},parse:function(l){var f=a.parse(l);return i.create({ciphertext:f})}}}(),t.format.Hex})});var ps=H((fr,hs)=>{(function(t,e,r){typeof fr=="object"?hs.exports=fr=e(V(),n0(),i0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(fr,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo,o=[],a=[],s=[],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,a[E]=B;var b=h[B],k=h[b],S=h[k],R=h[E]*257^E*16843008;s[B]=R<<24|R>>>8,c[B]=R<<16|R>>>16,l[B]=R<<8|R>>>24,f[B]=R;var R=S*16843009^k*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,k=this._keySchedule=[],S=0;S<b;S++)S<m?k[S]=B[S]:(h=k[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),k[S]=k[S-m]^h);for(var R=this._invKeySchedule=[],M=0;M<b;M++){var S=b-M;if(M%4)var h=k[S];else var h=k[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,s,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,a);var B=h[y+1];h[y+1]=h[y+3],h[y+3]=B},_doCryptBlock:function(h,y,B,m,E,b,k,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]^k[z&255]^B[T++],W=m[A>>>24]^E[O>>>16&255]^b[z>>>8&255]^k[M&255]^B[T++],G=m[O>>>24]^E[z>>>16&255]^b[M>>>8&255]^k[A&255]^B[T++],F=m[z>>>24]^E[M>>>16&255]^b[A>>>8&255]^k[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 gs=H((ur,ys)=>{(function(t,e,r){typeof ur=="object"?ys.exports=ur=e(V(),n0(),i0(),qe(),ae()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(ur,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,a=[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],s=[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=a[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]=[],k=c[E],y=0;y<24;y++)b[y/6|0]|=h[(s[y]-1+k)%28]<<31-y%6,b[4+(y/6|0)]|=h[28+(s[y+24]-1+k)%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,k=0;k<8;k++)b|=l[k][((E^B[k])&f[k])>>>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 ms=H((xr,vs)=>{(function(t,e,r){typeof xr=="object"?vs.exports=xr=e(V(),n0(),i0(),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.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]^=a.call(this)},keySize:256/32,ivSize:0});function a(){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 s=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--)a.call(this)}});e.RC4Drop=n._createHelper(s)}(),t.RC4})});var Es=H((lr,Bs)=>{(function(t,e,r){typeof lr=="object"?Bs.exports=lr=e(V(),n0(),i0(),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.StreamCipher,i=e.algo,o=[],a=[],s=[],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++)a[x]=u[x];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<a[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<a[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<a[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<a[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<a[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<a[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<a[6]>>>0?1:0)|0,this._b=u[7]>>>0<a[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);s[x]=v^h}f[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,f[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,f[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,f[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,f[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,f[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,f[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,f[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=n._createHelper(c)}(),t.Rabbit})});var ws=H((dr,bs)=>{(function(t,e,r){typeof dr=="object"?bs.exports=dr=e(V(),n0(),i0(),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=[],a=[],s=[],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++)a[x]=u[x];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<a[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<a[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<a[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<a[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<a[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<a[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<a[6]>>>0?1:0)|0,this._b=u[7]>>>0<a[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);s[x]=v^h}f[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,f[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,f[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,f[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,f[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,f[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,f[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,f[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=n._createHelper(c)}(),t.RabbitLegacy})});var Cs=H((hr,As)=>{(function(t,e,r){typeof hr=="object"?As.exports=hr=e(V(),n0(),i0(),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.BlockCipher,i=e.algo;let o=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[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]=s[E][b]}let h=0;for(let E=0;E<o+2;E++)p.pbox[E]=a[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 Ds=H((pr,Fs)=>{(function(t,e,r){typeof pr=="object"?Fs.exports=pr=e(V(),Y0(),wo(),Co(),n0(),So(),i0(),Bn(),$t(),Oo(),En(),Uo(),zo(),No(),Gt(),Lo(),qe(),ae(),Vo(),Xo(),Yo(),Qo(),ts(),ns(),os(),as(),fs(),xs(),ds(),ps(),gs(),ms(),Es(),ws(),Cs()):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)})(pr,function(t){return t})});var of={};Ks(of,{MSafeApps:()=>wn});var Br=mr($n(),1),je=t=>Br.default.encode(t),o0=t=>Br.default.decode(t);function Ys(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),a,s,c=0,l=0,f=0;f<n;f++)if(s=f&3,c|=Ys(r.charCodeAt(f))<<6*(3-s),s===3||n-f===1){for(a=0;a<3&&l<i;a++,l++)o[l]=c>>>(16>>>a&24)&255;c=0}return o}function rt(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65}function Ge(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(rt(i>>>18&63),rt(i>>>12&63),rt(i>>>6&63),rt(i&63)),i=0);return r.slice(0,r.length-2+e)+(e===2?"":e===1?"=":"==")}function Xe(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 p0(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 Hn(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 y0=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}=Hn(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 Er(t,e){switch(e){case"base58":return je(t);case"base64":return Ge(t);case"hex":return ze(t);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function br(t,e){switch(e){case"base58":return o0(t);case"base64":return Ce(t);case"hex":return Xe(t);default:throw new Error("Unsupported encoding, supported values are: base64, hex")}}function P0(t,e=["<",">"]){let[r,n]=e,i=[],o="",a=0;for(let s=0;s<t.length;s++){let c=t[s];if(c===r&&a++,c===n&&a--,a===0&&c===","){i.push(o.trim()),o="";continue}o+=c}return i.push(o.trim()),i}var g0=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 wr(BigInt(e),8).forEach(r=>this.write8(r)),this}write128(e){return wr(BigInt(e),16).forEach(r=>this.write8(r)),this}write256(e){return wr(BigInt(e),32).forEach(r=>this.write8(r)),this}writeULEB(e){return p0(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 Er(this.toBytes(),e)}};function wr(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 Ln=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Re=(t,e,r)=>(Ln(t,e,"read from private field"),r?r.call(t):e.get(t)),it=(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)},ot=(t,e,r,n)=>(Ln(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),v0,z0,nt,Je,Wn=class{constructor(t){it(this,v0,void 0),it(this,z0,void 0),this.name=t.name,this.read=t.read,this.serializedSize=t.serializedSize??(()=>null),ot(this,v0,t.write),ot(this,z0,t.serialize??((e,r)=>{let n=new g0({size:this.serializedSize(e)??void 0,...r});return Re(this,v0).call(this,e,n),n.toBytes()})),this.validate=t.validate??(()=>{})}write(t,e){this.validate(t),Re(this,v0).call(this,t,e)}serialize(t,e){return this.validate(t),new st(this,Re(this,z0).call(this,t,e))}parse(t){let e=new y0(t);return this.read(e)}transform({name:t,input:e,output:r}){return new Wn({name:t??this.name,read:n=>r(this.read(n)),write:(n,i)=>Re(this,v0).call(this,e(n),i),serializedSize:n=>this.serializedSize(e(n)),serialize:(n,i)=>Re(this,z0).call(this,e(n),i),validate:n=>this.validate(e(n))})}},ve=Wn;v0=new WeakMap;z0=new WeakMap;var qn=Symbol.for("@mysten/serialized-bcs");function m0(t){return!!t&&typeof t=="object"&&t[qn]===!0}var st=class{constructor(e,r){it(this,nt,void 0),it(this,Je,void 0),ot(this,nt,e),ot(this,Je,r)}get[qn](){return!0}toBytes(){return Re(this,Je)}toHex(){return ze(Re(this,Je))}toBase64(){return Ge(Re(this,Je))}toBase58(){return je(Re(this,Je))}parse(){return Re(this,nt).parse(Re(this,Je))}};nt=new WeakMap;Je=new WeakMap;function M0({size:t,...e}){return new ve({...e,serializedSize:()=>t})}function at({readMethod:t,writeMethod:e,...r}){return M0({...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 ct({readMethod:t,writeMethod:e,...r}){return M0({...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 Kn({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 Vn({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 a=0;a<o.length;a++)i.write8(o[a])},serialize:n=>{let i=t(n),o=p0(i.length),a=new Uint8Array(o.length+i.length);return a.set(o,0),a.set(i,o.length),a},validate:n=>{if(typeof n!="string")throw new TypeError(`Invalid ${r.name} value: ${n}. Expected string`);r.validate?.(n)}})}function Gn(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 at({name:"u8",readMethod:"read8",writeMethod:"write8",size:1,maxValue:2**8-1,...t})},u16(t){return at({name:"u16",readMethod:"read16",writeMethod:"write16",size:2,maxValue:2**16-1,...t})},u32(t){return at({name:"u32",readMethod:"read32",writeMethod:"write32",size:4,maxValue:2**32-1,...t})},u64(t){return ct({name:"u64",readMethod:"read64",writeMethod:"write64",size:8,maxValue:2n**64n-1n,...t})},u128(t){return ct({name:"u128",readMethod:"read128",writeMethod:"write128",size:16,maxValue:2n**128n-1n,...t})},u256(t){return ct({name:"u256",readMethod:"read256",writeMethod:"write256",size:32,maxValue:2n**256n-1n,...t})},bool(t){return M0({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 Kn({name:"uleb128",read:e=>e.readULEB(),serialize:e=>Uint8Array.from(p0(e)),...t})},bytes(t,e){return M0({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 Vn({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[a,s]of n){let c=s.serializedSize(i[a]);if(c==null)return null;o+=c}return o},read:i=>{let o={};for(let[a,s]of n)o[a]=s.read(i);return o},write:(i,o)=>{for(let[a,s]of n)s.write(i[a],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(),[a,s]=n[o];return{[a]:s?.read(i)??!0}},write:(i,o)=>{let[a,s]=Object.entries(i)[0];for(let c=0;c<n.length;c++){let[l,f]=n[c];if(l===a){o.writeULEB(c),f?.write(s,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[a]=o;if(!Object.hasOwn(e,a))throw new TypeError(`Invalid enum variant ${a}`)}})},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 Gn(t)}};var Zs=32,N0=class{constructor(t){if(this.types=new Map,this.counter=0,t instanceof N0){this.schema=t.schema,this.types=new Map(t.types);return}if(this.schema=t,this.registerAddressType(N0.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&&Qs(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 N0(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=br(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 N0(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(a,s,c,l){let f=o.reduce((u,x,d)=>Object.assign(u,{[x]:l[d]}),{});return this._encodeRaw.call(a,new g0(c),s,l,f)},decode(a,s,c){let l=o.reduce((f,u,x)=>Object.assign(f,{[u]:c[x]}),{});return this._decodeRaw.call(a,new y0(s),c,l)},_encodeRaw(a,s,c,l){if(n(s))return e.call(this,a,s,c,l);throw new Error(`Validation failed for type ${i}, data: ${s}`)},_decodeRaw(a,s,c){return r.call(this,a,s,c)}}),this}registerBcsType(t,e){return this.registerType(t,(r,n,i)=>{let o=i.map(a=>new ve({name:String(a),write:(s,c)=>{let{name:l,params:f}=this.parseTypeName(a),u=this.getTypeInterface(l),x=f.reduce((d,p,g)=>Object.assign(d,{[p]:i[g]}),{});return u._encodeRaw.call(this,c,s,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:(a,s)=>{throw new Error("Not implemented")},read:a=>{let{name:s,params:c}=this.parseTypeName(o),l=this.getTypeInterface(s),f=c.reduce((u,x,d)=>Object.assign(u,{[x]:n[d]}),{});return l._decodeRaw.call(this,a,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((a,s)=>a.write8(s),i)},function(i){return Ge(i.readBytes(e))});case"hex":return this.registerType(t,function(i,o){return Xe(o).reduce((a,s)=>a.write8(s),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,a,s){return i.writeVec(o,(c,l)=>{let f=a[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,s);if(!(u in s))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(s[u]);return this.getTypeInterface(d)._encodeRaw.call(this,c,l,p,s)})},function(i,o,a){return i.readVec(s=>{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,s,f,a);if(!(l in a))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(a[l]);return this.getTypeInterface(u)._decodeRaw.call(this,s,x,a)})})}registerStructType(t,e){for(let a in e){let s=this.tempKey(),c=e[a];!Array.isArray(c)&&typeof c!="string"&&(e[a]=s,this.registerStructType(s,c))}let r=Object.freeze(e),n=Object.keys(r),{name:i,params:o}=this.parseTypeName(t);return this.registerType(t,function(s,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,s,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,s,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,s,c[u],y,f)}}return s},function(s,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,s,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,s,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,s,y,l)}}return f})}registerEnumType(t,e){for(let a in e){let s=this.tempKey(),c=e[a];c!==null&&!Array.isArray(c)&&typeof c!="string"&&(e[a]=s,this.registerStructType(s,c))}let r=Object.freeze(e),n=Object.keys(r),{name:i,params:o}=this.parseTypeName(t);return this.registerType(t,function(s,c,l,f){if(!c)throw new Error(`Unable to write enum "${i}", missing data.
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.
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(s.write8(x),p===null)return s;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,s,c[u],y,f)}},function(s,c,l){let f=s.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,s,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[s,...c]=t;return{name:s,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),a=P0(t.slice(n+1,t.length-i-1),this.schema.genericSeparators);return{name:o,params:a}}},te=N0;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 Qs(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(Xe(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(o0(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 Ge(new Uint8Array(r))})}function Xn(){return{genericSeparators:["<",">"],vectorType:"vector",addressLength:Zs,addressEncoding:"hex"}}function ft(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function ea(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ta(t,...e){if(!ea(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 Ar(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 Jn(t,e){ta(t);let r=e.outputLen;if(t.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}var B0=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));function ra(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}var na=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!na)throw new Error("Non little-endian hardware is not supported");function ia(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function s0(t){if(typeof t=="string"&&(t=ia(t)),!ra(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}var ut=class{clone(){return this._cloneInto()}},Yf={}.toString;function Yn(t){let e=(n,i)=>t(i).update(s0(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}var Zn=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]),xt=class extends ut{constructor(e,r,n={},i,o,a){if(super(),this.blockLen=e,this.outputLen=r,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,ft(e),ft(r),ft(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!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=B0(this.buffer=new Uint8Array(e))}update(e){Ar(this);let{blockLen:r,buffer:n,buffer32:i}=this;e=s0(e);let o=e.length,a=e.byteOffset,s=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=a+c;if(l===r&&!(f%4)&&c+l<o){let u=new Uint32Array(s,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){Ar(this),Jn(e,this);let{pos:r,buffer32:n}=this;this.finished=!0,this.buffer.subarray(r).fill(0),this.compress(n,0,!0);let i=B0(e);this.get().forEach((o,a)=>i[a]=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:a,pos:s}=this;return e||(e=new this.constructor({dkLen:a})),e.set(...this.get()),e.length=n,e.finished=i,e.destroyed=o,e.outputLen=a,e.buffer.set(r),e.pos=s,e}};var lt=BigInt(4294967295),Cr=BigInt(32);function Qn(t,e=!1){return e?{h:Number(t&lt),l:Number(t>>Cr&lt)}:{h:Number(t>>Cr&lt)|0,l:Number(t&lt)|0}}function oa(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:a}=Qn(t[i],e);[r[i],n[i]]=[o,a]}return[r,n]}var sa=(t,e)=>BigInt(t>>>0)<<Cr|BigInt(e>>>0),aa=(t,e,r)=>t>>>r,ca=(t,e,r)=>t<<32-r|e>>>r,fa=(t,e,r)=>t>>>r|e<<32-r,ua=(t,e,r)=>t<<32-r|e>>>r,xa=(t,e,r)=>t<<64-r|e>>>r-32,la=(t,e,r)=>t>>>r-32|e<<64-r,da=(t,e)=>e,ha=(t,e)=>t,pa=(t,e,r)=>t<<r|e>>>32-r,ya=(t,e,r)=>e<<r|t>>>32-r,ga=(t,e,r)=>e<<r-32|t>>>64-r,va=(t,e,r)=>t<<r-32|e>>>64-r;function ma(t,e,r,n){let i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:i|0}}var Ba=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Ea=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,ba=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),wa=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,Aa=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Ca=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;var Fa={fromBig:Qn,split:oa,toBig:sa,shrSH:aa,shrSL:ca,rotrSH:fa,rotrSL:ua,rotrBH:xa,rotrBL:la,rotr32H:da,rotr32L:ha,rotlSH:pa,rotlSL:ya,rotlBH:ga,rotlBL:va,add:ma,add3L:Ba,add3H:Ea,add4L:ba,add4H:wa,add5H:Ca,add5L:Aa},le=Fa;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 Ye(t,e,r,n,i,o){let a=i[o],s=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,a);l=le.add3H(v,l,u,s),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 Ze(t,e,r,n,i,o){let a=i[o],s=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,a);l=le.add3H(v,l,u,s),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 Fr=class extends xt{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=B0(s0(e.salt));this.v4l^=n[0],this.v4h^=n[1],this.v5l^=n[2],this.v5h^=n[3]}if(e.personalization){let n=B0(s0(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(s0(e.key)),this.update(n)}}get(){let{v0l:e,v0h:r,v1l:n,v1h:i,v2l:o,v2h:a,v3l:s,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,a,s,c,l,f,u,x,d,p,g,v]}set(e,r,n,i,o,a,s,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=a|0,this.v3l=s|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 a=0,s=Zn;for(let c=0;c<12;c++)Ye(0,4,8,12,e,r+2*s[a++]),Ze(0,4,8,12,e,r+2*s[a++]),Ye(1,5,9,13,e,r+2*s[a++]),Ze(1,5,9,13,e,r+2*s[a++]),Ye(2,6,10,14,e,r+2*s[a++]),Ze(2,6,10,14,e,r+2*s[a++]),Ye(3,7,11,15,e,r+2*s[a++]),Ze(3,7,11,15,e,r+2*s[a++]),Ye(0,5,10,15,e,r+2*s[a++]),Ze(0,5,10,15,e,r+2*s[a++]),Ye(1,6,11,12,e,r+2*s[a++]),Ze(1,6,11,12,e,r+2*s[a++]),Ye(2,7,8,13,e,r+2*s[a++]),Ze(2,7,8,13,e,r+2*s[a++]),Ye(3,4,9,14,e,r+2*s[a++]),Ze(3,4,9,14,e,r+2*s[a++]);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)}},ei=Yn(t=>new Fr(t));var $0=32;function Dr(t){return Da(t)&&Sa(t)===$0}function oe(t,e=!1){let r=t.toLowerCase();return!e&&r.startsWith("0x")&&(r=r.slice(2)),`0x${r.padStart($0*2,"0")}`}function Qe(t,e=!1){return oe(t,e)}function Da(t){return/^(0x|0X)?[a-fA-F0-9]+$/.test(t)&&t.length%2===0}function Sa(t){return/^(0x|0X)/.test(t)?(t.length-2)/2:t.length/2}var _a=/^vector<(.+)>$/,Ta=/^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/,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(_a);if(n)return{vector:be.parseFromStr(n[1],r)};let i=e.match(Ta);if(i)return{struct:{address:r?oe(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 P0(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({...Xn(),types:{enums:{"Option<T>":{None:null,Some:"T"}}}});function ti(t){return C.u64({name:"unsafe_u64",...t}).transform({input:e=>e,output:e=>Number(e)})}function ka(t){return C.enum("Option",{None:null,Some:t})}function Sr(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($0).transform({input:t=>typeof t=="string"?Xe(oe(t)):t,output:t=>oe(ze(t))}),_r=C.vector(C.u8()).transform({name:"ObjectDigest",input:t=>o0(t),output:t=>je(new Uint8Array(t))}),H0=C.struct("SuiObjectRef",{objectId:Pe,version:C.u64(),digest:_r}),Tr=C.struct("SharedObjectRef",{objectId:Pe,initialSharedVersion:C.u64(),mutable:C.bool()}),dt=C.enum("ObjectArg",{ImmOrOwned:H0,Shared:Tr,Receiving:H0}),kr=C.enum("CallArg",{Pure:C.vector(C.u8()),Object:dt,ObjVec:C.vector(dt)}),E0=C.enum("TypeTag",{bool:null,u8:null,u64:null,u128:null,address:null,signer:null,vector:C.lazy(()=>E0),struct:C.lazy(()=>Pr),u16:null,u32:null,u256:null}),Ue=Sr(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()})})),Ir=C.struct("ProgrammableMoveCall",{package:Pe,module:C.string(),function:C.string(),type_arguments:C.vector(E0),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:oe(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)})}),Or=Sr(C.enum("Transaction",{MoveCall:Ir,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:ka(E0),objects:C.vector(Ue)}),Upgrade:C.struct("Upgrade",{modules:C.vector(C.vector(C.u8())),dependencies:C.vector(Pe),packageId:Pe,ticket:Ue})})),jr=C.struct("ProgrammableTransaction",{inputs:C.vector(kr),transactions:C.vector(Or)}),Rr=C.enum("TransactionKind",{ProgrammableTransaction:jr,ChangeEpoch:null,Genesis:null,ConsensusCommitPrologue:null}),Ur=C.enum("TransactionExpiration",{None:null,Epoch:ti()}),Pr=C.struct("StructTag",{address:Pe,module:C.string(),name:C.string(),typeParams:C.vector(E0)}),zr=C.struct("GasData",{payment:C.vector(H0),owner:Pe,price:C.u64(),budget:C.u64()}),Mr=C.struct("TransactionDataV1",{kind:Rr,sender:Pe,gasData:zr,expiration:Ur}),Nr=C.enum("TransactionData",{V1:Mr}),ri=C.struct("SenderSignedData",{data:Nr,txSignatures:C.vector(C.vector(C.u8()))}),$r=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())}),Hr=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())}),Lr=C.struct("MultiSigPkMap",{pubKey:Hr,weight:C.u8()}),Wr=C.struct("MultiSigPublicKey",{pk_map:C.vector(Lr),threshold:C.u16()}),ni=C.struct("MultiSig",{sigs:C.vector($r),bitmap:C.u16(),multisig_pk:Wr}),ie={...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:kr,CompressedSignature:$r,GasData:zr,MultiSig:ni,MultiSigPkMap:Lr,MultiSigPublicKey:Wr,ObjectArg:dt,ObjectDigest:_r,ProgrammableMoveCall:Ir,ProgrammableTransaction:jr,PublicKey:Hr,SenderSignedData:ri,SharedObjectRef:Tr,StructTag:Pr,SuiObjectRef:H0,Transaction:Or,TransactionData:Nr,TransactionDataV1:Mr,TransactionExpiration:Ur,TransactionKind:Rr,TypeTag:E0,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",()=>ti());Z.registerBcsType("enumKind",t=>Sr(t));[Pe,Ue,kr,$r,zr,ni,Lr,Wr,dt,_r,Ir,jr,Hr,ri,Tr,Pr,H0,Or,Nr,Mr,Ur,Rr,E0].forEach(t=>{Z.registerBcsType(t.name,()=>t)});var qr=class extends TypeError{constructor(e,r){let n,{message:i,explanation:o,...a}=e,{path:s}=e,c=s.length===0?i:`At path: ${s.join(".")} -- ${i}`;super(o??c),o!=null&&(this.cause=c),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...r()])}};function Ia(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 Oa(t){let{done:e,value:r}=t.next();return e?void 0:r}function ja(t,e,r,n){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});let{path:i,branch:o}=e,{type:a}=r,{refinement:s,message:c=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${De(n)}\``}=t;return{value:n,type:a,refinement:s,key:i[i.length-1],path:i,branch:o,...t,message:c}}function*ii(t,e,r,n){Ia(t)||(t=[t]);for(let i of t){let o=ja(i,e,r,n);o&&(yield o)}}function*Kr(t,e,r={}){let{path:n=[],branch:i=[t],coerce:o=!1,mask:a=!1}=r,s={path:n,branch:i};if(o&&(t=e.coercer(t,s),a&&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,s))l.explanation=r.message,c="not_valid",yield[l,void 0];for(let[l,f,u]of e.entries(t,s)){let x=Kr(f,u,{path:l===void 0?n:[...n,l],branch:l===void 0?i:[...i,f],coerce:o,mask:a,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,s))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:a=c=>c,entries:s=function*(){}}=e;this.type=r,this.schema=n,this.entries=s,this.coercer=a,i?this.validator=(c,l)=>{let f=i(c,l);return ii(f,l,this,c)}:this.validator=()=>[],o?this.refiner=(c,l)=>{let f=o(c,l);return ii(f,l,this,c)}:this.refiner=()=>[]}assert(e,r){return L0(e,this,r)}create(e,r){return Vr(e,this,r)}is(e){return de(e,this)}mask(e,r){return Gr(e,this,r)}validate(e,r={}){return W0(e,this,r)}};function L0(t,e,r){let n=W0(t,e,{message:r});if(n[0])throw n[0]}function Vr(t,e,r){let n=W0(t,e,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function Gr(t,e,r){let n=W0(t,e,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function de(t,e){return!W0(t,e)[0]}function W0(t,e,r={}){let n=Kr(t,e,r),i=Oa(n);return i[0]?[new qr(i[0],function*(){for(let a of n)a[0]&&(yield a[0])}),void 0]:[void 0,i[1]]}function b0(...t){let e=t[0].type==="type",r=t.map(i=>i.schema),n=Object.assign({},...r);return e?Ra(n):U(n)}function xe(t,e){return new Se({type:t,schema:null,validator:e})}function q0(){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 oi(){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 si(){return xe("never",()=>!1)}function re(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=si();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 ht(t){let e=si();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 Ra(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[...a]=Kr(r,o,n),[s]=a;if(s[0])for(let[c]of a)c&&i.push(c);else return[]}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${De(r)}`,...i]}})}function pt(){return xe("unknown",()=>!0)}var Eu=BigInt(1e9),yt="0x1",Xr="0x2";var bu=Qe("0x6");var ai=`${Xr}::sui::SUI`,wu=Qe("0x5");var rf=mr(Si(),1);var Bt=Q([U({AddressOwner:j()}),U({ObjectOwner:j()}),U({Shared:U({initial_shared_version:re(j())})}),L("Immutable")]),Tu=xe("SuiJsonValue",()=>!0),hc=Q([U({u32:j()}),U({u64:j()}),U({f64:j()})]),ku=U({attributes:pe(j(),re(hc)),featureFlags:pe(j(),ce()),maxSupportedProtocolVersion:j(),minSupportedProtocolVersion:j(),protocolVersion:j()});var pc=Q([j(),L("package")]),Te=U({digest:j(),objectId:j(),version:Q([$e(),j(),oi()])}),Ru=U({owner:Bt,reference:Te}),Uu=U({objectId:j(),sequenceNumber:j()}),yc=U({payment:X(Te),owner:j(),price:j(),budget:j()}),_i=b0(Te,U({type:j(),owner:Bt,previousTransaction:j()})),Ti=pe(j(),q0()),ki=pe(j(),pt()),Ii=U({type:j(),fields:Ti,hasPublicTransfer:ce()}),Oi=U({disassembled:ki}),ji=Q([b0(Ii,U({dataType:L("moveObject")})),b0(Oi,U({dataType:L("package")}))]),Ri=U({type:j(),hasPublicTransfer:ce(),version:j(),bcsBytes:j()}),Ui=U({id:j(),moduleMap:pe(j(),j())}),Pi=Q([b0(Ri,U({dataType:L("moveObject")})),b0(Ui,U({dataType:L("package")}))]);var Pu=BigInt(1e9),an=U({code:j(),error:q(j()),object_id:q(j()),parent_object_id:q(j()),version:q(j()),digest:q(j())}),zi=U({data:re(q(pe(j(),j()))),error:re(q(an))}),Mi=Q([zi,q(pe(j(),j()))]),cn=U({objectId:j(),version:j(),digest:j(),type:re(q(j())),content:re(q(ji)),bcs:re(q(Pi)),owner:re(q(Bt)),previousTransaction:re(q(j())),storageRebate:re(q(j())),display:re(q(Mi))}),gc=U({showType:re(q(ce())),showContent:re(q(ce())),showBcs:re(q(ce())),showOwner:re(q(ce())),showPreviousTransaction:re(q(ce())),showStorageRebate:re(q(ce())),showDisplay:re(q(ce()))}),vc=Q([L("Exists"),L("notExists"),L("Deleted")]),mc=X(_i),Ni=U({data:re(q(cn)),error:re(q(an))});function $i(t){return t.data}function Hi(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 Et(t){if("reference"in t)return t.reference;let e=$i(t);return e?{objectId:e.objectId,version:e.version,digest:e.digest}:Hi(t)}var Bc=U({objectId:j(),atCheckpoint:q($e())}),Ec=U({data:X(Ni),nextCursor:q(re(j())),hasNextPage:ce()}),bc=Q([U({details:cn,status:L("VersionFound")}),U({details:j(),status:L("ObjectNotExists")}),U({details:Te,status:L("ObjectDeleted")}),U({details:ht([j(),$e()]),status:L("VersionNotFound")}),U({details:U({asked_version:$e(),latest_version:$e(),object_id:j()}),status:L("VersionTooHigh")})]);var Li=Q([j(),U({Object:j()})]),wc=X(Li),Wi=U({address:j(),name:j()}),qi=Q([L("Private"),L("Public"),L("Friend")]),wt=U({abilities:X(j())}),Ki=U({constraints:wt,isPhantom:ce()}),Vi=U({TypeParameter:$e()}),bt=ht([U({module:j(),package:j(),function:j()}),j()]),Ac=U({rank3Days:X(bt),rank7Days:X(bt),rank30Days:X(bt)});function Gi(t){if(!t)return!1;if(typeof t=="string"||de(t,Vi)||Xi(t))return!0;if(typeof t!="object")return!1;let e=t;return!!(de(e.Reference,f0)||de(e.MutableReference,f0)||de(e.Vector,f0))}var f0=xe("SuiMoveNormalizedType",Gi);function Xi(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=>Gi(n)))}var Cc=xe("SuiMoveNormalizedStructType",Xi),Ji=U({visibility:qi,isEntry:ce(),typeParameters:X(wt),parameters:X(f0),return:X(f0)}),Yi=U({name:j(),type:f0}),Zi=U({abilities:wt,typeParameters:X(Ki),fields:X(Yi)}),Qi=U({fileFormatVersion:$e(),address:j(),name:j(),friends:X(Wi),structs:pe(j(),Zi),exposedFunctions:pe(j(),Ji)}),Fc=pe(j(),Qi);function V0(t){return typeof t=="object"&&"MutableReference"in t?t.MutableReference:void 0}function At(t){return typeof t=="object"&&"Reference"in t?t.Reference:void 0}function D0(t){if(typeof t=="object"&&"Struct"in t)return t;let e=At(t),r=V0(t);if(typeof e=="object"&&"Struct"in e)return e;if(typeof r=="object"&&"Struct"in r)return r}var Dc="object",Sc="ID",_c="ascii",Tc="String",kc="string",Ic="String",Oc="option",jc="Option",Rc={address:Xr,module:Dc,name:Sc},Uc={address:yt,module:_c,name:Tc},Pc={address:yt,module:kc,name:Ic},zc={address:yt,module:Oc,name:jc},Ct=(t,e)=>t.address===e.address&&t.module===e.module&&t.name===e.name;function eo(t){let e=D0(t)?.Struct;return e?.address==="0x2"&&e?.module==="tx_context"&&e?.name==="TxContext"}function fn(t,e){if(!(typeof e>"u")&&typeof e!==t)throw new Error(`Expect ${e} to be ${t}, received ${typeof e}`)}var Mc=["Address","Bool","U8","U16","U32","U64","U128","U256"];function Ft(t,e){if(typeof t=="string"&&Mc.includes(t)){if(t in["U8","U16","U32","U64","U128","U256"])fn("number",e);else if(t==="Bool")fn("boolean",e);else if(t==="Address"&&(fn("string",e),e&&!Dr(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=Ft(t.Vector,e?e[0]:void 0);return r===void 0?void 0:`vector<${r}>`}if("Struct"in t){if(Ct(t.Struct,Uc))return"string";if(Ct(t.Struct,Pc))return"utf8string";if(Ct(t.Struct,Rc))return"address";if(Ct(t.Struct,zc)){let r={Vector:t.Struct.typeArguments[0]};return Ft(r,e)}}}var Nc=Q([U({ImmOrOwned:Te}),U({Shared:U({objectId:j(),initialSharedVersion:Q([we(),j()]),mutable:ce()})}),U({Receiving:Te})]),S0=U({Pure:X(we())}),$c=U({Object:Nc}),_0=Q([S0,$c]);function Hc(t,e){return{Pure:Array.from(t instanceof Uint8Array?t:m0(t)?t.toBytes():ie.ser(e,t,{maxSize:1/0}).toBytes())}}var ye={Pure:Hc,ObjectRef({objectId:t,digest:e,version:r}){return{Object:{ImmOrOwned:{digest:e,version:r,objectId:oe(t)}}}},SharedObjectRef({objectId:t,mutable:e,initialSharedVersion:r}){return{Object:{Shared:{mutable:e,initialSharedVersion:r,objectId:oe(t)}}}},ReceivingRef({objectId:t,digest:e,version:r}){return{Object:{Receiving:{digest:e,version:r,objectId:oe(t)}}}}};function un(t){return typeof t=="string"?oe(t):"ImmOrOwned"in t.Object?oe(t.Object.ImmOrOwned.objectId):"Receiving"in t.Object?oe(t.Object.Receiving.objectId):oe(t.Object.Shared.objectId)}function Lc(t){return typeof t=="object"&&"Object"in t&&"Shared"in t.Object?t.Object.Shared:void 0}function to(t){return Lc(t)?.mutable??!1}function he(t,e){return Vr(t,e)}var Wc=t=>Q([U({None:Q([L(!0),L(null)])}),U({Some:t})]),u0=Q([U({kind:L("Input"),index:we(),value:q(q0()),type:q(L("object"))}),U({kind:L("Input"),index:we(),value:q(q0()),type:L("pure")})]),qc=[u0,U({kind:L("GasCoin")}),U({kind:L("Result"),index:we()}),U({kind:L("NestedResult"),index:we(),resultIndex:we()})],Le=Q([...qc]),ro=U({kind:L("MoveCall"),target:xe("target",j().validator),typeArguments:X(j()),arguments:X(Le)}),no=U({kind:L("TransferObjects"),objects:X(Le),address:Le}),io=U({kind:L("SplitCoins"),coin:Le,amounts:X(Le)}),oo=U({kind:L("MergeCoins"),destination:Le,sources:X(Le)}),so=U({kind:L("MakeMoveVec"),type:q(Wc(pe(j(),pt()))),objects:X(Le)}),ao=U({kind:L("Publish"),modules:X(X(we())),dependencies:X(j())});var co=U({kind:L("Upgrade"),modules:X(X(we())),dependencies:X(j()),packageId:j(),ticket:Le}),Kc=[ro,no,io,oo,ao,co,so],fo=Q([...Kc]);var t0={MoveCall(t){return he({kind:"MoveCall",target:t.target,arguments:t.arguments??[],typeArguments:t.typeArguments??[]},ro)},TransferObjects(t,e){return e.kind==="Input"&&e.type==="pure"&&typeof e.value!="object"&&(e.value=ye.Pure(ie.Address.serialize(e.value))),he({kind:"TransferObjects",objects:t,address:e},no)},SplitCoins(t,e){return e.forEach(r=>{r.kind==="Input"&&r.type==="pure"&&typeof r.value!="object"&&(r.value=ye.Pure(ie.U64.serialize(r.value)))}),he({kind:"SplitCoins",coin:t,amounts:e},io)},MergeCoins(t,e){return he({kind:"MergeCoins",destination:t,sources:e},oo)},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=>Qe(r))},ao)},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=>Qe(i)),packageId:r,ticket:n},co)},MakeMoveVec({type:t,objects:e}){return he({kind:"MakeMoveVec",type:t?{Some:be.parseFromStr(t)}:{None:null},objects:e},so)}};function uo(t){function e(r,n){return t(r,n)}return e.u8=r=>t(ie.U8.serialize(r)),e.u16=r=>t(ie.U16.serialize(r)),e.u32=r=>t(ie.U32.serialize(r)),e.u64=r=>t(ie.U64.serialize(r)),e.u128=r=>t(ie.U128.serialize(r)),e.u256=r=>t(ie.U256.serialize(r)),e.bool=r=>t(ie.Bool.serialize(r)),e.string=r=>t(ie.String.serialize(r)),e.address=r=>t(ie.Address.serialize(r)),e.id=e.address,e}function xo(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),ei(n,{dkLen:32})}var Vc=q(re(Q([U({Epoch:we()}),U({None:Q([L(!0),L(null)])})]))),lo=xe("StringEncodedBigint",t=>{if(!["string","number","bigint"].includes(typeof t))return!1;try{return BigInt(t),!0}catch{return!1}}),Gc=U({budget:q(lo),price:q(lo),payment:q(X(Te)),owner:q(j())}),Dt=U({version:L(1),sender:q(j()),expiration:Vc,gasConfig:Gc,inputs:X(u0),transactions:X(fo)});function ho(t){return oe(t).replace("0x","")}var ke=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=ie.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,a)=>he({kind:"Input",value:o,index:a,type:de(o,S0)?"pure":"object"},u0)),transactions:n.transactions},Dt);return ke.restore(i)}static fromBytes(e){let n=ie.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((a,s)=>he({kind:"Input",value:a,index:s,type:de(a,S0)?"pure":"object"},u0)),transactions:i.transactions},Dt);return ke.restore(o)}static restore(e){L0(e,Dt);let r=new ke;return Object.assign(r,e),r}static getDigestFromBytes(e){let r=xo("TransactionData",e);return je(r)}build({maxSizeBytes:e=1/0,overrides:r,onlyTransactionKind:n}={}){let i=this.inputs.map(f=>(L0(f.value,_0),f.value)),o={ProgrammableTransaction:{inputs:i,transactions:this.transactions}};if(n)return ie.TransactionKind.serialize(o,{maxSize:e}).toBytes();let a=r?.expiration??this.expiration,s=r?.sender??this.sender,c={...this.gasConfig,...r?.gasConfig};if(!s)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:ho(s),expiration:a||{None:!0},gasData:{payment:c.payment,owner:ho(this.gasConfig.owner??s),price:BigInt(c.price),budget:BigInt(c.budget)},kind:{ProgrammableTransaction:{inputs:i,transactions:this.transactions}}};return ie.TransactionData.serialize({V1:l},{maxSize:e}).toBytes()}getDigest(){let e=this.build({onlyTransactionKind:!1});return ke.getDigestFromBytes(e)}snapshot(){return he(this,Dt)}};var hn=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Y=(t,e,r)=>(hn(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)},St=(t,e,r,n)=>(hn(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),ue=(t,e,r)=>(hn(t,e,"access private method"),r),J,G0,_t,X0,Tt,r0,x0,pn,po,yn,yo,gn,go,vn,vo,kt,ln,Xc={maxPureArgumentSize:16*1024,maxTxGas:5e10,maxGasObjects:256,maxTxSizeBytes:128*1024};function Jc(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 s=0;for(;;)yield n(s),s++};if(typeof o=="symbol")return;let a=parseInt(o,10);if(!(Number.isNaN(a)||a<0))return n(a)}})}function Yc(t){let e=D0(t);return e?e.Struct.address==="0x2"&&e.Struct.module==="transfer"&&e.Struct.name==="Receiving":!1}function J0(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 Zc=Symbol.for("@mysten/transaction"),xn={maxTxGas:"max_tx_gas",maxGasObjects:"max_gas_payment_objects",maxTxSizeBytes:"max_tx_size_bytes",maxPureArgumentSize:"max_pure_argument_size"},Qc=1000n,ef=50,tf=(t,e)=>Array.from({length:Math.ceil(t.length/e)},(r,n)=>t.slice(n*e,n*e+e));var dn=class{constructor(t){We(this,G0),We(this,X0),We(this,r0),We(this,pn),We(this,yn),We(this,gn),We(this,vn),We(this,kt),We(this,J,void 0),St(this,J,new ke(t?t.blockData:void 0))}static fromKind(t){let e=new dn;return St(e,J,ke.fromKindBytes(typeof t=="string"?Ce(t):t)),e}static from(t){let e=new dn;return typeof t!="string"||!t.startsWith("{")?St(e,J,ke.fromBytes(typeof t=="string"?Ce(t):t)):St(e,J,ke.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=>Gr(e,Te))}get blockData(){return Y(this,J).snapshot()}get[Zc](){return!0}get pure(){return Object.defineProperty(this,"pure",{enumerable:!1,value:uo((t,e)=>m0(t)?ue(this,G0,_t).call(this,"pure",{Pure:Array.from(t.toBytes())}):ue(this,G0,_t).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=un(t);return Y(this,J).inputs.find(n=>n.type==="object"&&e===un(n.value))??ue(this,G0,_t).call(this,"object",typeof t=="string"?oe(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 Jc(e-1)}splitCoins(t,e){return this.add(t0.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,X0,Tt).call(this,r))))}mergeCoins(t,e){return this.add(t0.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(t0.Publish({modules:t,dependencies:e}))}upgrade({modules:t,dependencies:e,packageId:r,ticket:n}){return this.add(t0.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(t0.MoveCall({arguments:t?.map(n=>ue(this,X0,Tt).call(this,n)),typeArguments:e,target:r}))}transferObjects(t,e){return this.add(t0.TransferObjects(t.map(r=>typeof r=="string"?this.object(r):r),typeof e=="string"?this.pure.address(e):ue(this,X0,Tt).call(this,e)))}makeMoveVec({type:t,objects:e}){return this.add(t0.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,kt,ln).call(this,t),Y(this,J).build({maxSizeBytes:ue(this,r0,x0).call(this,"maxTxSizeBytes",t),onlyTransactionKind:t.onlyTransactionKind})}async getDigest(t={}){return await ue(this,kt,ln).call(this,t),Y(this,J).getDigest()}},mn=dn;J=new WeakMap;G0=new WeakSet;_t=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},u0);return Y(this,J).inputs.push(n),n};X0=new WeakSet;Tt=function(t){return m0(t)?this.pure(t):t};r0=new WeakSet;x0=function(t,{protocolConfig:e,limits:r}){if(r&&typeof r[t]=="number")return r[t];if(!e)return Xc[t];let n=e?.attributes[xn[t]];if(!n)throw new Error(`Missing expected protocol config: "${xn[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: "${xn[t]}"`);return Number(i)};pn=new WeakSet;po=function(t){let e=ue(this,r0,x0).call(this,"maxPureArgumentSize",t);Y(this,J).inputs.forEach((r,n)=>{if(de(r.value,S0)&&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`)})};yn=new WeakSet;yo=async function(t){if(Y(this,J).gasConfig.payment){let i=ue(this,r0,x0).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 J0(t).getCoins({owner:e,coinType:ai})).data.filter(i=>!Y(this,J).inputs.find(a=>de(a.value,_0)&&"Object"in a.value&&"ImmOrOwned"in a.value.Object?i.coinObjectId===a.value.Object.ImmOrOwned.objectId:!1)).slice(0,ue(this,r0,x0).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)};gn=new WeakSet;go=async function(t){t.onlyTransactionKind||Y(this,J).gasConfig.price||this.setGasPrice(await J0(t).getReferenceGasPrice())};vn=new WeakSet;vo=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:oe(o.value),input:o});return}}),r.forEach(o=>{if(o.kind==="MoveCall"&&o.arguments.some(s=>s.kind==="Input"&&!de(e[s.index].value,_0))&&n.push(o),o.kind==="SplitCoins"&&o.amounts.forEach(a=>{if(a.kind==="Input"){let s=e[a.index];typeof s.value!="object"&&(s.value=ye.Pure(ie.U64.serialize(s.value)))}}),o.kind==="TransferObjects"&&o.address.kind==="Input"){let a=e[o.address.index];typeof a.value!="object"&&(a.value=ye.Pure(ie.Address.serialize(a.value)))}}),n.length&&await Promise.all(n.map(async o=>{let[a,s,c]=o.target.split("::"),l=await J0(t).getNormalizedMoveFunction({package:Qe(a),module:s,function:c}),u=l.parameters.length>0&&eo(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,_0))return;let v=g.value,h=Ft(x,v);if(h){g.value=ye.Pure(v,h);return}if(D0(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))],a=tf(o,ef),s=(await Promise.all(a.map(f=>J0(t).multiGetObjects({ids:f,options:{showOwner:!0}})))).flat(),c=new Map(o.map((f,u)=>[f,s[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&&V0(x)==null&&At(x)==null,h=to(u.value)||v||x!=null&&V0(x)!=null;u.value=ye.SharedObjectRef({objectId:f,initialSharedVersion:g,mutable:h})}else x&&Yc(x)?u.value=ye.ReceivingRef(Et(d)):u.value=ye.ObjectRef(Et(d))})}};kt=new WeakSet;ln=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,gn,go).call(this,t),ue(this,vn,vo).call(this,t)]),!t.onlyTransactionKind&&(await ue(this,yn,yo).call(this,t),!Y(this,J).gasConfig.budget)){let e=await J0(t).dryRunTransactionBlock({transactionBlock:Y(this,J).build({maxSizeBytes:ue(this,r0,x0).call(this,"maxTxSizeBytes",t),overrides:{gasConfig:{budget:String(ue(this,r0,x0).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=Qc*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,pn,po).call(this,t)};var nf=mr(Ds(),1);var bn=(t=>(t.Assets="Assets",t.NFT="NFT",t.Account="Account",t.Swap="Swap",t.Staking="Staking",t.Bridge="Bridge",t.ending="Ending",t.Other="Other",t))(bn||{});var yr=class{async deserilize(e){return{txType:bn.Assets,txSubType:"CoinTransfer",data:{recipient:e.account.address,amount:"10000",coinType:"0x2::sui::SUI"}}}async build(e){if(e.transactionIntention.txSubType==="CoinTransfer"){let r=e.transactionIntention.data,n=new mn,[i]=n.splitCoins(n.gas,[n.pure(r.amount)]);return n.transferObjects([i],n.pure(r.recipient)),n.setSender(e.account.address),n}throw new Error("Method not implemented.")}};var wn=class{example=new yr};return Vs(of);})();
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);})();
6
6
  /*! Bundled license information:
7
7
 
8
8
  ieee754/index.js: